From faf57e9ae3db13b13e812a8873b1a13dc461c2fc Mon Sep 17 00:00:00 2001 From: skosito Date: Tue, 9 Apr 2024 23:15:41 +0200 Subject: [PATCH 1/5] Remove unused params from fungible module --- app/app.go | 2 - proto/fungible/genesis.proto | 6 +- proto/fungible/params.proto | 11 - proto/fungible/query.proto | 15 - testutil/keeper/crosschain.go | 1 - testutil/keeper/fungible.go | 2 - x/crosschain/keeper/keeper.go | 2 - x/fungible/client/cli/query.go | 1 - x/fungible/client/cli/query_params.go | 34 -- x/fungible/genesis.go | 2 - x/fungible/genesis_test.go | 1 - x/fungible/keeper/grpc_query_params.go | 19 - x/fungible/keeper/grpc_query_params_test.go | 21 - x/fungible/keeper/keeper.go | 9 - x/fungible/keeper/params.go | 16 - x/fungible/keeper/params_test.go | 18 - x/fungible/module_simulation.go | 4 +- x/fungible/types/genesis.go | 3 +- x/fungible/types/genesis.pb.go | 93 +--- x/fungible/types/params.go | 42 -- x/fungible/types/params.pb.go | 265 ----------- x/fungible/types/query.pb.go | 476 +++----------------- x/fungible/types/query.pb.gw.go | 65 --- 23 files changed, 93 insertions(+), 1015 deletions(-) delete mode 100644 proto/fungible/params.proto delete mode 100644 x/fungible/client/cli/query_params.go delete mode 100644 x/fungible/keeper/grpc_query_params.go delete mode 100644 x/fungible/keeper/grpc_query_params_test.go delete mode 100644 x/fungible/keeper/params.go delete mode 100644 x/fungible/keeper/params_test.go delete mode 100644 x/fungible/types/params.go delete mode 100644 x/fungible/types/params.pb.go diff --git a/app/app.go b/app/app.go index 0625df5f08..bbb50a7802 100644 --- a/app/app.go +++ b/app/app.go @@ -419,7 +419,6 @@ func New( appCodec, keys[fungibletypes.StoreKey], keys[fungibletypes.MemStoreKey], - app.GetSubspace(fungibletypes.ModuleName), app.AccountKeeper, app.EvmKeeper, app.BankKeeper, @@ -432,7 +431,6 @@ func New( keys[crosschaintypes.StoreKey], keys[crosschaintypes.MemStoreKey], &stakingKeeper, - app.GetSubspace(crosschaintypes.ModuleName), app.AccountKeeper, app.BankKeeper, app.ObserverKeeper, diff --git a/proto/fungible/genesis.proto b/proto/fungible/genesis.proto index bc6f804145..20c9cadd2b 100644 --- a/proto/fungible/genesis.proto +++ b/proto/fungible/genesis.proto @@ -2,7 +2,6 @@ syntax = "proto3"; package zetachain.zetacore.fungible; import "fungible/foreign_coins.proto"; -import "fungible/params.proto"; import "fungible/system_contract.proto"; import "gogoproto/gogo.proto"; @@ -10,7 +9,6 @@ option go_package = "github.com/zeta-chain/zetacore/x/fungible/types"; // GenesisState defines the fungible module's genesis state. message GenesisState { - Params params = 1 [(gogoproto.nullable) = false]; - repeated ForeignCoins foreignCoinsList = 2 [(gogoproto.nullable) = false]; - SystemContract systemContract = 3; + repeated ForeignCoins foreignCoinsList = 1 [(gogoproto.nullable) = false]; + SystemContract systemContract = 2; } diff --git a/proto/fungible/params.proto b/proto/fungible/params.proto deleted file mode 100644 index 2615f0b14f..0000000000 --- a/proto/fungible/params.proto +++ /dev/null @@ -1,11 +0,0 @@ -syntax = "proto3"; -package zetachain.zetacore.fungible; - -import "gogoproto/gogo.proto"; - -option go_package = "github.com/zeta-chain/zetacore/x/fungible/types"; - -// Params defines the parameters for the module. -message Params { - option (gogoproto.goproto_stringer) = false; -} diff --git a/proto/fungible/query.proto b/proto/fungible/query.proto index 94e4165cdd..17c3779512 100644 --- a/proto/fungible/query.proto +++ b/proto/fungible/query.proto @@ -3,7 +3,6 @@ package zetachain.zetacore.fungible; import "cosmos/base/query/v1beta1/pagination.proto"; import "fungible/foreign_coins.proto"; -import "fungible/params.proto"; import "fungible/system_contract.proto"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; @@ -12,11 +11,6 @@ option go_package = "github.com/zeta-chain/zetacore/x/fungible/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 = "/zeta-chain/fungible/params"; - } - // Queries a ForeignCoins by index. rpc ForeignCoins(QueryGetForeignCoinsRequest) returns (QueryGetForeignCoinsResponse) { option (google.api.http).get = "/zeta-chain/fungible/foreign_coins/{index}"; @@ -53,15 +47,6 @@ service Query { } } -// 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 QueryGetForeignCoinsRequest { string index = 1; } diff --git a/testutil/keeper/crosschain.go b/testutil/keeper/crosschain.go index 3fb8f81823..6e2a7416fc 100644 --- a/testutil/keeper/crosschain.go +++ b/testutil/keeper/crosschain.go @@ -134,7 +134,6 @@ func CrosschainKeeperWithMocks( storeKey, memStoreKey, stakingKeeper, - sdkKeepers.ParamsKeeper.Subspace(types.ModuleName), authKeeper, bankKeeper, observerKeeper, diff --git a/testutil/keeper/fungible.go b/testutil/keeper/fungible.go index 5097a208d2..ad4735c9a1 100644 --- a/testutil/keeper/fungible.go +++ b/testutil/keeper/fungible.go @@ -60,7 +60,6 @@ func initFungibleKeeper( cdc, storeKey, memKey, - paramKeeper.Subspace(types.ModuleName), authKeeper, evmKeeper, bankKeepr, @@ -145,7 +144,6 @@ func FungibleKeeperWithMocks(t testing.TB, mockOptions FungibleMockOptions) (*ke cdc, storeKey, memStoreKey, - sdkKeepers.ParamsKeeper.Subspace(types.ModuleName), authKeeper, evmKeeper, bankKeeper, diff --git a/x/crosschain/keeper/keeper.go b/x/crosschain/keeper/keeper.go index 5ed6084983..8cde3e214f 100644 --- a/x/crosschain/keeper/keeper.go +++ b/x/crosschain/keeper/keeper.go @@ -32,7 +32,6 @@ func NewKeeper( storeKey, memKey storetypes.StoreKey, stakingKeeper types.StakingKeeper, // custom - paramstore paramtypes.Subspace, authKeeper types.AccountKeeper, bankKeeper types.BankKeeper, zetaObserverKeeper types.ObserverKeeper, @@ -50,7 +49,6 @@ func NewKeeper( storeKey: storeKey, memKey: memKey, stakingKeeper: stakingKeeper, - paramstore: paramstore, authKeeper: authKeeper, bankKeeper: bankKeeper, zetaObserverKeeper: zetaObserverKeeper, diff --git a/x/fungible/client/cli/query.go b/x/fungible/client/cli/query.go index 2fcda320d5..e5f0033532 100644 --- a/x/fungible/client/cli/query.go +++ b/x/fungible/client/cli/query.go @@ -20,7 +20,6 @@ func GetQueryCmd(_ string) *cobra.Command { } cmd.AddCommand( - CmdQueryParams(), CmdListForeignCoins(), CmdShowForeignCoins(), CmdGasStabilityPoolAddress(), diff --git a/x/fungible/client/cli/query_params.go b/x/fungible/client/cli/query_params.go deleted file mode 100644 index fad97be7dd..0000000000 --- a/x/fungible/client/cli/query_params.go +++ /dev/null @@ -1,34 +0,0 @@ -package cli - -import ( - "context" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/spf13/cobra" - "github.com/zeta-chain/zetacore/x/fungible/types" -) - -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/fungible/genesis.go b/x/fungible/genesis.go index 59b54fe6da..4f19c7cebd 100644 --- a/x/fungible/genesis.go +++ b/x/fungible/genesis.go @@ -18,14 +18,12 @@ func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) k.SetSystemContract(ctx, *genState.SystemContract) } - k.SetParams(ctx, genState.Params) } // ExportGenesis returns the fungible module's exported genesis. func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *types.GenesisState { var genesis types.GenesisState - genesis.Params = k.GetParams(ctx) genesis.ForeignCoinsList = k.GetAllForeignCoins(ctx) // Get all zetaDepositAndCallContract diff --git a/x/fungible/genesis_test.go b/x/fungible/genesis_test.go index 119e862a18..ba57014f6b 100644 --- a/x/fungible/genesis_test.go +++ b/x/fungible/genesis_test.go @@ -13,7 +13,6 @@ import ( func TestGenesis(t *testing.T) { genesisState := types.GenesisState{ - Params: types.DefaultParams(), ForeignCoinsList: []types.ForeignCoins{ sample.ForeignCoins(t, sample.EthAddress().String()), sample.ForeignCoins(t, sample.EthAddress().String()), diff --git a/x/fungible/keeper/grpc_query_params.go b/x/fungible/keeper/grpc_query_params.go deleted file mode 100644 index e6bebfb779..0000000000 --- a/x/fungible/keeper/grpc_query_params.go +++ /dev/null @@ -1,19 +0,0 @@ -package keeper - -import ( - "context" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/zeta-chain/zetacore/x/fungible/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/fungible/keeper/grpc_query_params_test.go b/x/fungible/keeper/grpc_query_params_test.go deleted file mode 100644 index 634c6a38f6..0000000000 --- a/x/fungible/keeper/grpc_query_params_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package keeper_test - -import ( - "testing" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" - testkeeper "github.com/zeta-chain/zetacore/testutil/keeper" - "github.com/zeta-chain/zetacore/x/fungible/types" -) - -func TestParamsQuery(t *testing.T) { - keeper, ctx, _, _ := testkeeper.FungibleKeeper(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/fungible/keeper/keeper.go b/x/fungible/keeper/keeper.go index b25e466099..74b5f37730 100644 --- a/x/fungible/keeper/keeper.go +++ b/x/fungible/keeper/keeper.go @@ -6,7 +6,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/tendermint/tendermint/libs/log" "github.com/zeta-chain/zetacore/x/fungible/types" ) @@ -16,7 +15,6 @@ type ( cdc codec.BinaryCodec storeKey storetypes.StoreKey memKey storetypes.StoreKey - paramstore paramtypes.Subspace authKeeper types.AccountKeeper evmKeeper types.EVMKeeper bankKeeper types.BankKeeper @@ -29,23 +27,16 @@ func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, - ps paramtypes.Subspace, authKeeper types.AccountKeeper, evmKeeper types.EVMKeeper, bankKeeper types.BankKeeper, observerKeeper types.ObserverKeeper, authorityKeeper types.AuthorityKeeper, ) *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, authKeeper: authKeeper, evmKeeper: evmKeeper, bankKeeper: bankKeeper, diff --git a/x/fungible/keeper/params.go b/x/fungible/keeper/params.go deleted file mode 100644 index 18b311c264..0000000000 --- a/x/fungible/keeper/params.go +++ /dev/null @@ -1,16 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/zeta-chain/zetacore/x/fungible/types" -) - -// GetParams get all parameters as types.Params -func (k Keeper) GetParams(_ sdk.Context) types.Params { - return types.NewParams() -} - -// SetParams set the params -func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramstore.SetParamSet(ctx, ¶ms) -} diff --git a/x/fungible/keeper/params_test.go b/x/fungible/keeper/params_test.go deleted file mode 100644 index b3b9497a74..0000000000 --- a/x/fungible/keeper/params_test.go +++ /dev/null @@ -1,18 +0,0 @@ -package keeper_test - -import ( - "testing" - - "github.com/stretchr/testify/require" - testkeeper "github.com/zeta-chain/zetacore/testutil/keeper" - "github.com/zeta-chain/zetacore/x/fungible/types" -) - -func TestGetParams(t *testing.T) { - k, ctx, _, _ := testkeeper.FungibleKeeper(t) - params := types.DefaultParams() - - k.SetParams(ctx, params) - - require.EqualValues(t, params, k.GetParams(ctx)) -} diff --git a/x/fungible/module_simulation.go b/x/fungible/module_simulation.go index 0754216df7..5280860006 100644 --- a/x/fungible/module_simulation.go +++ b/x/fungible/module_simulation.go @@ -15,9 +15,7 @@ func (AppModule) GenerateGenesisState(simState *module.SimulationState) { for i, acc := range simState.Accounts { accs[i] = acc.Address.String() } - fungibleGenesis := types.GenesisState{ - Params: types.DefaultParams(), - } + fungibleGenesis := types.GenesisState{} simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(&fungibleGenesis) } diff --git a/x/fungible/types/genesis.go b/x/fungible/types/genesis.go index ccec34a914..859a19b3de 100644 --- a/x/fungible/types/genesis.go +++ b/x/fungible/types/genesis.go @@ -9,7 +9,6 @@ func DefaultGenesis() *GenesisState { return &GenesisState{ ForeignCoinsList: []ForeignCoins{}, SystemContract: nil, - Params: DefaultParams(), } } @@ -27,5 +26,5 @@ func (gs GenesisState) Validate() error { foreignCoinsIndexMap[index] = struct{}{} } - return gs.Params.Validate() + return nil } diff --git a/x/fungible/types/genesis.pb.go b/x/fungible/types/genesis.pb.go index 01a6e80047..718300f224 100644 --- a/x/fungible/types/genesis.pb.go +++ b/x/fungible/types/genesis.pb.go @@ -26,9 +26,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // GenesisState defines the fungible module's genesis state. type GenesisState struct { - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - ForeignCoinsList []ForeignCoins `protobuf:"bytes,2,rep,name=foreignCoinsList,proto3" json:"foreignCoinsList"` - SystemContract *SystemContract `protobuf:"bytes,3,opt,name=systemContract,proto3" json:"systemContract,omitempty"` + ForeignCoinsList []ForeignCoins `protobuf:"bytes,1,rep,name=foreignCoinsList,proto3" json:"foreignCoinsList"` + SystemContract *SystemContract `protobuf:"bytes,2,opt,name=systemContract,proto3" json:"systemContract,omitempty"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -64,13 +63,6 @@ func (m *GenesisState) XXX_DiscardUnknown() { var xxx_messageInfo_GenesisState proto.InternalMessageInfo -func (m *GenesisState) GetParams() Params { - if m != nil { - return m.Params - } - return Params{} -} - func (m *GenesisState) GetForeignCoinsList() []ForeignCoins { if m != nil { return m.ForeignCoinsList @@ -92,26 +84,24 @@ func init() { func init() { proto.RegisterFile("fungible/genesis.proto", fileDescriptor_11e46382f3a6d0c2) } var fileDescriptor_11e46382f3a6d0c2 = []byte{ - // 291 bytes of a gzipped FileDescriptorProto + // 261 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4b, 0x2b, 0xcd, 0x4b, 0xcf, 0x4c, 0xca, 0x49, 0xd5, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0xae, 0x4a, 0x2d, 0x49, 0x4c, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x03, 0xb3, 0xf2, 0x8b, 0x52, 0xf5, 0x60, 0x4a, 0xa5, 0x64, 0xe0, 0x9a, 0xd2, 0xf2, 0x8b, 0x52, 0x33, 0xd3, - 0xf3, 0xe2, 0x93, 0xf3, 0x33, 0xf3, 0xa0, 0x5a, 0xa5, 0x44, 0xe1, 0xb2, 0x05, 0x89, 0x45, 0x89, - 0xb9, 0x30, 0x61, 0x39, 0xb8, 0x70, 0x71, 0x65, 0x71, 0x49, 0x6a, 0x6e, 0x7c, 0x72, 0x7e, 0x5e, - 0x49, 0x51, 0x62, 0x72, 0x09, 0x54, 0x5e, 0x24, 0x3d, 0x3f, 0x3d, 0x1f, 0xcc, 0xd4, 0x07, 0xb1, - 0x20, 0xa2, 0x4a, 0xcd, 0x4c, 0x5c, 0x3c, 0xee, 0x10, 0x97, 0x05, 0x97, 0x24, 0x96, 0xa4, 0x0a, - 0x39, 0x72, 0xb1, 0x41, 0x8c, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0x52, 0xd6, 0xc3, 0xe3, - 0x52, 0xbd, 0x00, 0xb0, 0x52, 0x27, 0x96, 0x13, 0xf7, 0xe4, 0x19, 0x82, 0xa0, 0x1a, 0x85, 0xa2, - 0xb9, 0x04, 0xa0, 0xee, 0x76, 0x06, 0x39, 0xdb, 0x27, 0xb3, 0xb8, 0x44, 0x82, 0x49, 0x81, 0x59, - 0x83, 0xdb, 0x48, 0x13, 0xaf, 0x61, 0x6e, 0x48, 0x9a, 0xa0, 0x46, 0x62, 0x18, 0x24, 0x14, 0xcc, - 0xc5, 0x07, 0xf1, 0x9f, 0x33, 0xd4, 0x7b, 0x12, 0xcc, 0x60, 0x77, 0x6a, 0xe3, 0x35, 0x3a, 0x18, - 0x45, 0x4b, 0x10, 0x9a, 0x11, 0x4e, 0x9e, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, - 0xe0, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, - 0x10, 0xa5, 0x9f, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x0f, 0x32, 0x56, - 0x17, 0x6c, 0x83, 0x3e, 0xcc, 0x06, 0xfd, 0x0a, 0x7d, 0x78, 0xb0, 0x97, 0x54, 0x16, 0xa4, 0x16, - 0x27, 0xb1, 0x81, 0xc3, 0xd5, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xfe, 0xf8, 0xb7, 0x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 0xc4, 0x06, 0x0e, 0x14, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x2a, 0xc7, + 0x57, 0x9f, 0x01, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -144,7 +134,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } if len(m.ForeignCoinsList) > 0 { for iNdEx := len(m.ForeignCoinsList) - 1; iNdEx >= 0; iNdEx-- { @@ -157,19 +147,9 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + dAtA[i] = 0xa } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } @@ -190,8 +170,6 @@ func (m *GenesisState) Size() (n int) { } var l int _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) if len(m.ForeignCoinsList) > 0 { for _, e := range m.ForeignCoinsList { l = e.Size() @@ -241,39 +219,6 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } 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 ForeignCoinsList", wireType) } @@ -307,7 +252,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 3: + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SystemContract", wireType) } diff --git a/x/fungible/types/params.go b/x/fungible/types/params.go deleted file mode 100644 index 4b348397da..0000000000 --- a/x/fungible/types/params.go +++ /dev/null @@ -1,42 +0,0 @@ -package types - -import ( - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "gopkg.in/yaml.v2" -) - -var _ paramtypes.ParamSet = (*Params)(nil) - -// 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() Params { - return Params{} -} - -// DefaultParams returns a default set of parameters -func DefaultParams() Params { - return NewParams() -} - -// ParamSetPairs get the params.ParamSet -func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs { - return paramtypes.ParamSetPairs{} -} - -// Validate validates the set of params -func (p Params) Validate() error { - return nil -} - -// String implements the Stringer interface. -func (p Params) String() string { - out, err := yaml.Marshal(p) - if err != nil { - return "" - } - return string(out) -} diff --git a/x/fungible/types/params.pb.go b/x/fungible/types/params.pb.go deleted file mode 100644 index 7d485a75b0..0000000000 --- a/x/fungible/types/params.pb.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: fungible/params.proto - -package types - -import ( - fmt "fmt" - io "io" - math "math" - math_bits "math/bits" - - _ "github.com/cosmos/gogoproto/gogoproto" - proto "github.com/gogo/protobuf/proto" -) - -// 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 { -} - -func (m *Params) Reset() { *m = Params{} } -func (*Params) ProtoMessage() {} -func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_8285013990d8e1cf, []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 init() { - proto.RegisterType((*Params)(nil), "zetachain.zetacore.fungible.Params") -} - -func init() { proto.RegisterFile("fungible/params.proto", fileDescriptor_8285013990d8e1cf) } - -var fileDescriptor_8285013990d8e1cf = []byte{ - // 157 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4d, 0x2b, 0xcd, 0x4b, - 0xcf, 0x4c, 0xca, 0x49, 0xd5, 0x2f, 0x48, 0x2c, 0x4a, 0xcc, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, - 0xc9, 0x17, 0x92, 0xae, 0x4a, 0x2d, 0x49, 0x4c, 0xce, 0x48, 0xcc, 0xcc, 0xd3, 0x03, 0xb3, 0xf2, - 0x8b, 0x52, 0xf5, 0x60, 0x2a, 0xa5, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0xea, 0xf4, 0x41, 0x2c, - 0x88, 0x16, 0x25, 0x3e, 0x2e, 0xb6, 0x00, 0xb0, 0x11, 0x56, 0x2c, 0x33, 0x16, 0xc8, 0x33, 0x38, - 0x79, 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, 0x7e, 0x7a, 0x66, 0x49, - 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x3e, 0xc8, 0x74, 0x5d, 0xb0, 0x45, 0xfa, 0x30, 0x8b, - 0xf4, 0x2b, 0xf4, 0xe1, 0x8e, 0x2a, 0xa9, 0x2c, 0x48, 0x2d, 0x4e, 0x62, 0x03, 0xdb, 0x60, 0x0c, - 0x08, 0x00, 0x00, 0xff, 0xff, 0x61, 0x4b, 0x42, 0x58, 0xad, 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 - 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 - 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 { - 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/fungible/types/query.pb.go b/x/fungible/types/query.pb.go index 89ad3937b2..f30691101c 100644 --- a/x/fungible/types/query.pb.go +++ b/x/fungible/types/query.pb.go @@ -31,89 +31,6 @@ var _ = math.Inf // 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_d671b6e9298b37cd, []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_d671b6e9298b37cd, []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 QueryGetForeignCoinsRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` } @@ -122,7 +39,7 @@ func (m *QueryGetForeignCoinsRequest) Reset() { *m = QueryGetForeignCoin func (m *QueryGetForeignCoinsRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetForeignCoinsRequest) ProtoMessage() {} func (*QueryGetForeignCoinsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{2} + return fileDescriptor_d671b6e9298b37cd, []int{0} } func (m *QueryGetForeignCoinsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -166,7 +83,7 @@ func (m *QueryGetForeignCoinsResponse) Reset() { *m = QueryGetForeignCoi func (m *QueryGetForeignCoinsResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetForeignCoinsResponse) ProtoMessage() {} func (*QueryGetForeignCoinsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{3} + return fileDescriptor_d671b6e9298b37cd, []int{1} } func (m *QueryGetForeignCoinsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -210,7 +127,7 @@ func (m *QueryAllForeignCoinsRequest) Reset() { *m = QueryAllForeignCoin func (m *QueryAllForeignCoinsRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllForeignCoinsRequest) ProtoMessage() {} func (*QueryAllForeignCoinsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{4} + return fileDescriptor_d671b6e9298b37cd, []int{2} } func (m *QueryAllForeignCoinsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -255,7 +172,7 @@ func (m *QueryAllForeignCoinsResponse) Reset() { *m = QueryAllForeignCoi func (m *QueryAllForeignCoinsResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllForeignCoinsResponse) ProtoMessage() {} func (*QueryAllForeignCoinsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{5} + return fileDescriptor_d671b6e9298b37cd, []int{3} } func (m *QueryAllForeignCoinsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -305,7 +222,7 @@ func (m *QueryGetSystemContractRequest) Reset() { *m = QueryGetSystemCon func (m *QueryGetSystemContractRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetSystemContractRequest) ProtoMessage() {} func (*QueryGetSystemContractRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{6} + return fileDescriptor_d671b6e9298b37cd, []int{4} } func (m *QueryGetSystemContractRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -342,7 +259,7 @@ func (m *QueryGetSystemContractResponse) Reset() { *m = QueryGetSystemCo func (m *QueryGetSystemContractResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetSystemContractResponse) ProtoMessage() {} func (*QueryGetSystemContractResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{7} + return fileDescriptor_d671b6e9298b37cd, []int{5} } func (m *QueryGetSystemContractResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -385,7 +302,7 @@ func (m *QueryGetGasStabilityPoolAddress) Reset() { *m = QueryGetGasStab func (m *QueryGetGasStabilityPoolAddress) String() string { return proto.CompactTextString(m) } func (*QueryGetGasStabilityPoolAddress) ProtoMessage() {} func (*QueryGetGasStabilityPoolAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{8} + return fileDescriptor_d671b6e9298b37cd, []int{6} } func (m *QueryGetGasStabilityPoolAddress) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -425,7 +342,7 @@ func (m *QueryGetGasStabilityPoolAddressResponse) Reset() { func (m *QueryGetGasStabilityPoolAddressResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetGasStabilityPoolAddressResponse) ProtoMessage() {} func (*QueryGetGasStabilityPoolAddressResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{9} + return fileDescriptor_d671b6e9298b37cd, []int{7} } func (m *QueryGetGasStabilityPoolAddressResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -476,7 +393,7 @@ func (m *QueryGetGasStabilityPoolBalance) Reset() { *m = QueryGetGasStab func (m *QueryGetGasStabilityPoolBalance) String() string { return proto.CompactTextString(m) } func (*QueryGetGasStabilityPoolBalance) ProtoMessage() {} func (*QueryGetGasStabilityPoolBalance) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{10} + return fileDescriptor_d671b6e9298b37cd, []int{8} } func (m *QueryGetGasStabilityPoolBalance) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -522,7 +439,7 @@ func (m *QueryGetGasStabilityPoolBalanceResponse) Reset() { func (m *QueryGetGasStabilityPoolBalanceResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetGasStabilityPoolBalanceResponse) ProtoMessage() {} func (*QueryGetGasStabilityPoolBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{11} + return fileDescriptor_d671b6e9298b37cd, []int{9} } func (m *QueryGetGasStabilityPoolBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -565,7 +482,7 @@ func (m *QueryAllGasStabilityPoolBalance) Reset() { *m = QueryAllGasStab func (m *QueryAllGasStabilityPoolBalance) String() string { return proto.CompactTextString(m) } func (*QueryAllGasStabilityPoolBalance) ProtoMessage() {} func (*QueryAllGasStabilityPoolBalance) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{12} + return fileDescriptor_d671b6e9298b37cd, []int{10} } func (m *QueryAllGasStabilityPoolBalance) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -604,7 +521,7 @@ func (m *QueryAllGasStabilityPoolBalanceResponse) Reset() { func (m *QueryAllGasStabilityPoolBalanceResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllGasStabilityPoolBalanceResponse) ProtoMessage() {} func (*QueryAllGasStabilityPoolBalanceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{13} + return fileDescriptor_d671b6e9298b37cd, []int{11} } func (m *QueryAllGasStabilityPoolBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -653,7 +570,7 @@ func (m *QueryAllGasStabilityPoolBalanceResponse_Balance) String() string { } func (*QueryAllGasStabilityPoolBalanceResponse_Balance) ProtoMessage() {} func (*QueryAllGasStabilityPoolBalanceResponse_Balance) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{13, 0} + return fileDescriptor_d671b6e9298b37cd, []int{11, 0} } func (m *QueryAllGasStabilityPoolBalanceResponse_Balance) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -704,7 +621,7 @@ func (m *QueryCodeHashRequest) Reset() { *m = QueryCodeHashRequest{} } func (m *QueryCodeHashRequest) String() string { return proto.CompactTextString(m) } func (*QueryCodeHashRequest) ProtoMessage() {} func (*QueryCodeHashRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{14} + return fileDescriptor_d671b6e9298b37cd, []int{12} } func (m *QueryCodeHashRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -748,7 +665,7 @@ func (m *QueryCodeHashResponse) Reset() { *m = QueryCodeHashResponse{} } func (m *QueryCodeHashResponse) String() string { return proto.CompactTextString(m) } func (*QueryCodeHashResponse) ProtoMessage() {} func (*QueryCodeHashResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_d671b6e9298b37cd, []int{15} + return fileDescriptor_d671b6e9298b37cd, []int{13} } func (m *QueryCodeHashResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -785,8 +702,6 @@ func (m *QueryCodeHashResponse) GetCodeHash() string { } func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "zetachain.zetacore.fungible.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "zetachain.zetacore.fungible.QueryParamsResponse") proto.RegisterType((*QueryGetForeignCoinsRequest)(nil), "zetachain.zetacore.fungible.QueryGetForeignCoinsRequest") proto.RegisterType((*QueryGetForeignCoinsResponse)(nil), "zetachain.zetacore.fungible.QueryGetForeignCoinsResponse") proto.RegisterType((*QueryAllForeignCoinsRequest)(nil), "zetachain.zetacore.fungible.QueryAllForeignCoinsRequest") @@ -807,65 +722,61 @@ func init() { func init() { proto.RegisterFile("fungible/query.proto", fileDescriptor_d671b6e9298b37cd) } var fileDescriptor_d671b6e9298b37cd = []byte{ - // 927 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x41, 0x6f, 0x1b, 0x45, - 0x14, 0xce, 0xa6, 0x34, 0x49, 0x5f, 0x43, 0x91, 0x06, 0x57, 0x84, 0x4d, 0xbb, 0x81, 0x69, 0x69, - 0x4b, 0x28, 0xbb, 0x49, 0x8a, 0x44, 0x09, 0x11, 0xc2, 0x31, 0x6a, 0xa8, 0xc4, 0x21, 0x38, 0x17, - 0xe0, 0x62, 0x8d, 0xd7, 0x93, 0xf5, 0x4a, 0xeb, 0x1d, 0xc7, 0xb3, 0x8e, 0x6a, 0xac, 0x5c, 0xb8, - 0x72, 0xa9, 0xc4, 0x4f, 0xe0, 0x1f, 0x70, 0xe1, 0xc2, 0x0f, 0xe8, 0xb1, 0x12, 0x12, 0x82, 0x0b, - 0x02, 0x87, 0x1f, 0x82, 0x3c, 0xfb, 0x66, 0xe3, 0x35, 0xbb, 0xde, 0xc5, 0xb9, 0xed, 0xcc, 0xbc, - 0xef, 0xbd, 0xef, 0x7b, 0xf3, 0xfc, 0x8d, 0xa1, 0x72, 0xdc, 0x0f, 0x3d, 0xbf, 0x19, 0x70, 0xe7, - 0xa4, 0xcf, 0x7b, 0x03, 0xbb, 0xdb, 0x13, 0x91, 0x20, 0xeb, 0xdf, 0xf2, 0x88, 0xb9, 0x6d, 0xe6, - 0x87, 0xb6, 0xfa, 0x12, 0x3d, 0x6e, 0xeb, 0x40, 0x73, 0xd3, 0x15, 0xb2, 0x23, 0xa4, 0xd3, 0x64, - 0x12, 0x51, 0xce, 0xe9, 0x76, 0x93, 0x47, 0x6c, 0xdb, 0xe9, 0x32, 0xcf, 0x0f, 0x59, 0xe4, 0x8b, - 0x30, 0x4e, 0x64, 0xde, 0x4a, 0xd2, 0x1f, 0x8b, 0x1e, 0xf7, 0xbd, 0xb0, 0xe1, 0x0a, 0x3f, 0x94, - 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b, 0xc4, 0xd1, 0xa0, 0xcb, 0x65, 0x73, 0x49, 0xfd, 0x7b, 0x7f, - 0xf4, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x10, 0x51, 0x58, 0xac, 0xa7, 0x0c, 0x00, 0x00, + // 857 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xc1, 0x6e, 0xd3, 0x48, + 0x18, 0x8e, 0xdb, 0xed, 0x26, 0x9d, 0x76, 0xbb, 0xd2, 0x28, 0xab, 0xed, 0xba, 0x5d, 0x67, 0xd7, + 0xea, 0xb6, 0xdd, 0x50, 0xec, 0x26, 0x45, 0xa2, 0x94, 0x08, 0x91, 0x04, 0xb5, 0x54, 0xe2, 0x50, + 0xd2, 0x13, 0x5c, 0xa2, 0x89, 0x33, 0x75, 0x2c, 0x39, 0x9e, 0x34, 0xe3, 0x54, 0x0d, 0x51, 0x2f, + 0x3c, 0x01, 0x12, 0x8f, 0xc0, 0x1b, 0x70, 0xe1, 0xc2, 0x03, 0xf4, 0x58, 0x09, 0x09, 0xc1, 0x05, + 0x41, 0xca, 0x43, 0x70, 0x44, 0x19, 0xcf, 0xb8, 0x49, 0xb0, 0x13, 0x93, 0xde, 0x3c, 0x9e, 0xff, + 0xfb, 0xfe, 0xef, 0xfb, 0x67, 0xfc, 0x25, 0x20, 0x79, 0xd4, 0x72, 0x4c, 0xab, 0x62, 0x63, 0xfd, + 0xb8, 0x85, 0x9b, 0x6d, 0xad, 0xd1, 0x24, 0x2e, 0x81, 0x4b, 0xcf, 0xb0, 0x8b, 0x8c, 0x1a, 0xb2, + 0x1c, 0x8d, 0x3d, 0x91, 0x26, 0xd6, 0x44, 0xa1, 0x9c, 0x36, 0x08, 0xad, 0x13, 0xaa, 0x57, 0x10, + 0xe5, 0x28, 0xfd, 0x24, 0x53, 0xc1, 0x2e, 0xca, 0xe8, 0x0d, 0x64, 0x5a,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84, 0xfd, 0x4d, 0x90, 0x64, 0x12, 0x8a, + 0xa4, 0x8a, 0x1f, 0x22, 0x5a, 0x13, 0x1f, 0xf5, 0x22, 0x88, 0x0f, 0x1e, 0xad, 0x58, 0xaa, 0xb7, + 0xc0, 0x1f, 0x43, 0x08, 0x6e, 0x7d, 0x09, 0xcc, 0x1a, 0xa4, 0x8a, 0xcb, 0x35, 0x44, 0x6b, 0x1c, + 0x94, 0x30, 0x78, 0x51, 0xf6, 0x1b, 0x00, 0x33, 0x0c, 0x06, 0xdf, 0x48, 0x60, 0xbe, 0xff, 0xab, + 0x84, 0xdb, 0xe3, 0x07, 0x14, 0x9c, 0x91, 0xf2, 0x9d, 0x09, 0x90, 0x9e, 0x58, 0x35, 0xfb, 0xfc, + 0xdd, 0xd7, 0x97, 0x53, 0x1b, 0x30, 0xad, 0xf7, 0x80, 0x37, 0x19, 0x87, 0x1e, 0xfc, 0x1b, 0xa0, + 0x77, 0x58, 0xf6, 0x9e, 0xc1, 0xd7, 0x12, 0xf8, 0xbd, 0x9f, 0x2c, 0x6f, 0xdb, 0x51, 0xc4, 0x07, + 0xc7, 0x66, 0x14, 0xf1, 0x21, 0x41, 0xa8, 0xa6, 0x99, 0xf8, 0x15, 0xa8, 0x8e, 0x17, 0xdf, 0x1b, + 0xf7, 0x50, 0x16, 0xc0, 0x9d, 0x48, 0x63, 0x0b, 0x0c, 0x31, 0xf9, 0xee, 0x44, 0x58, 0xae, 0x7b, + 0x83, 0xe9, 0x5e, 0x85, 0x2b, 0x81, 0xba, 0x87, 0x7e, 0x5a, 0xe1, 0x7b, 0x09, 0xfc, 0x19, 0x12, + 0x44, 0x30, 0x17, 0x49, 0x46, 0x08, 0x5a, 0x7e, 0x70, 0x1d, 0xb4, 0xef, 0xe6, 0x36, 0x73, 0x93, + 0x81, 0x7a, 0xa0, 0x1b, 0x13, 0xd1, 0x32, 0x15, 0xf0, 0x72, 0x83, 0x10, 0x5b, 0xe4, 0x20, 0xfc, + 0x12, 0x60, 0x4c, 0x7c, 0xc4, 0x93, 0x19, 0xe3, 0xe8, 0x09, 0x8d, 0x0d, 0x65, 0x8d, 0x5a, 0x60, + 0xc6, 0x72, 0x70, 0x27, 0xaa, 0x31, 0x1e, 0x26, 0x7a, 0x47, 0xe4, 0xcf, 0x19, 0xec, 0x4a, 0x40, + 0x0e, 0xe9, 0xd3, 0xfb, 0x6c, 0x72, 0xd7, 0x09, 0xc5, 0x28, 0x36, 0xc7, 0x47, 0xaa, 0x7a, 0x9f, + 0xd9, 0xdc, 0x81, 0xdb, 0xfd, 0x36, 0x05, 0x5d, 0x14, 0xbf, 0xf0, 0x95, 0x04, 0x12, 0x22, 0x06, + 0x61, 0x66, 0xbc, 0xa8, 0xa1, 0x90, 0x95, 0xb3, 0x3f, 0x03, 0xe1, 0xaa, 0x37, 0x99, 0xea, 0x34, + 0x5c, 0x0f, 0x3c, 0x1c, 0x3f, 0x80, 0xf5, 0x0e, 0xbf, 0x6d, 0x67, 0x85, 0xfd, 0xf3, 0xae, 0x22, + 0x5d, 0x74, 0x15, 0xe9, 0x73, 0x57, 0x91, 0x5e, 0x5c, 0x2a, 0xb1, 0x8b, 0x4b, 0x25, 0xf6, 0xe1, + 0x52, 0x89, 0x3d, 0xd5, 0x4d, 0xcb, 0xad, 0xb5, 0x2a, 0x9a, 0x41, 0xea, 0x81, 0x33, 0x38, 0xbd, + 0x22, 0x76, 0xdb, 0x0d, 0x4c, 0x2b, 0xbf, 0xb2, 0xbf, 0xae, 0x5b, 0xdf, 0x03, 0x00, 0x00, 0xff, + 0xff, 0xad, 0xf6, 0x9f, 0xa6, 0x8d, 0x0b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -880,8 +791,6 @@ 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 { - // Parameters queries the parameters of the module. - Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a ForeignCoins by index. ForeignCoins(ctx context.Context, in *QueryGetForeignCoinsRequest, opts ...grpc.CallOption) (*QueryGetForeignCoinsResponse, error) // Queries a list of ForeignCoins items. @@ -906,15 +815,6 @@ 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, "/zetachain.zetacore.fungible.Query/Params", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) ForeignCoins(ctx context.Context, in *QueryGetForeignCoinsRequest, opts ...grpc.CallOption) (*QueryGetForeignCoinsResponse, error) { out := new(QueryGetForeignCoinsResponse) err := c.cc.Invoke(ctx, "/zetachain.zetacore.fungible.Query/ForeignCoins", in, out, opts...) @@ -980,8 +880,6 @@ func (c *queryClient) CodeHash(ctx context.Context, in *QueryCodeHashRequest, op // 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 ForeignCoins by index. ForeignCoins(context.Context, *QueryGetForeignCoinsRequest) (*QueryGetForeignCoinsResponse, error) // Queries a list of ForeignCoins items. @@ -1002,9 +900,6 @@ type QueryServer interface { 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) ForeignCoins(ctx context.Context, req *QueryGetForeignCoinsRequest) (*QueryGetForeignCoinsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ForeignCoins not implemented") } @@ -1031,24 +926,6 @@ 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: "/zetachain.zetacore.fungible.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_ForeignCoins_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGetForeignCoinsRequest) if err := dec(in); err != nil { @@ -1179,10 +1056,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "zetachain.zetacore.fungible.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ - { - MethodName: "Params", - Handler: _Query_Params_Handler, - }, { MethodName: "ForeignCoins", Handler: _Query_ForeignCoins_Handler, @@ -1216,62 +1089,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Metadata: "fungible/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 *QueryGetForeignCoinsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1759,26 +1576,6 @@ func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { 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 *QueryGetForeignCoinsRequest) Size() (n int) { if m == nil { return 0 @@ -1978,139 +1775,6 @@ func sovQuery(x uint64) (n int) { 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 *QueryGetForeignCoinsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/fungible/types/query.pb.gw.go b/x/fungible/types/query.pb.gw.go index c971723b1b..f007d04b3e 100644 --- a/x/fungible/types/query.pb.gw.go +++ b/x/fungible/types/query.pb.gw.go @@ -33,24 +33,6 @@ 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_ForeignCoins_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryGetForeignCoinsRequest var metadata runtime.ServerMetadata @@ -309,29 +291,6 @@ func local_request_Query_CodeHash_0(ctx context.Context, marshaler runtime.Marsh // 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_ForeignCoins_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -534,26 +493,6 @@ func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc // "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_ForeignCoins_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -698,8 +637,6 @@ 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{"zeta-chain", "fungible", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_ForeignCoins_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"zeta-chain", "fungible", "foreign_coins", "index"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_ForeignCoinsAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"zeta-chain", "fungible", "foreign_coins"}, "", runtime.AssumeColonVerbOpt(false))) @@ -716,8 +653,6 @@ var ( ) var ( - forward_Query_Params_0 = runtime.ForwardResponseMessage - forward_Query_ForeignCoins_0 = runtime.ForwardResponseMessage forward_Query_ForeignCoinsAll_0 = runtime.ForwardResponseMessage From 39d8eebb8f548746f5213779ec513d9299fe66cb Mon Sep 17 00:00:00 2001 From: skosito Date: Tue, 9 Apr 2024 23:16:58 +0200 Subject: [PATCH 2/5] Make generate --- .../cli/zetacored/zetacored_query_fungible.md | 1 - .../zetacored_query_fungible_params.md | 33 ------------ docs/openapi/openapi.swagger.yaml | 25 ---------- typescript/fungible/genesis_pb.d.ts | 10 +--- typescript/fungible/index.d.ts | 1 - typescript/fungible/params_pb.d.ts | 29 ----------- typescript/fungible/query_pb.d.ts | 50 ------------------- 7 files changed, 2 insertions(+), 147 deletions(-) delete mode 100644 docs/cli/zetacored/zetacored_query_fungible_params.md delete mode 100644 typescript/fungible/params_pb.d.ts diff --git a/docs/cli/zetacored/zetacored_query_fungible.md b/docs/cli/zetacored/zetacored_query_fungible.md index 52d7ccc81e..9ac579947a 100644 --- a/docs/cli/zetacored/zetacored_query_fungible.md +++ b/docs/cli/zetacored/zetacored_query_fungible.md @@ -30,7 +30,6 @@ zetacored query fungible [flags] * [zetacored query fungible gas-stability-pool-balance](zetacored_query_fungible_gas-stability-pool-balance.md) - query the balance of a gas stability pool for a chain * [zetacored query fungible gas-stability-pool-balances](zetacored_query_fungible_gas-stability-pool-balances.md) - query all gas stability pool balances * [zetacored query fungible list-foreign-coins](zetacored_query_fungible_list-foreign-coins.md) - list all ForeignCoins -* [zetacored query fungible params](zetacored_query_fungible_params.md) - shows the parameters of the module * [zetacored query fungible show-foreign-coins](zetacored_query_fungible_show-foreign-coins.md) - shows a ForeignCoins * [zetacored query fungible system-contract](zetacored_query_fungible_system-contract.md) - query system contract diff --git a/docs/cli/zetacored/zetacored_query_fungible_params.md b/docs/cli/zetacored/zetacored_query_fungible_params.md deleted file mode 100644 index 9845c39cf3..0000000000 --- a/docs/cli/zetacored/zetacored_query_fungible_params.md +++ /dev/null @@ -1,33 +0,0 @@ -# query fungible params - -shows the parameters of the module - -``` -zetacored query fungible params [flags] -``` - -### Options - -``` - --grpc-addr string the gRPC endpoint to use for this chain - --grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS - --height int Use a specific height to query state at (this can error if the node is pruning state) - -h, --help help for params - --node string [host]:[port] to Tendermint RPC interface for this chain - -o, --output string Output format (text|json) -``` - -### Options inherited from parent commands - -``` - --chain-id string The network chain ID - --home string directory for config and data - --log_format string The logging format (json|plain) - --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) - --trace print out full stack trace on errors -``` - -### SEE ALSO - -* [zetacored query fungible](zetacored_query_fungible.md) - Querying commands for the fungible module - diff --git a/docs/openapi/openapi.swagger.yaml b/docs/openapi/openapi.swagger.yaml index faf3e60692..65191e5d7f 100644 --- a/docs/openapi/openapi.swagger.yaml +++ b/docs/openapi/openapi.swagger.yaml @@ -27401,21 +27401,6 @@ paths: format: int64 tags: - Query - /zeta-chain/fungible/params: - get: - summary: Parameters queries the parameters of the module. - operationId: Query_Params - responses: - "200": - description: A successful response. - schema: - $ref: '#/definitions/zetacorefungibleQueryParamsResponse' - default: - description: An unexpected error response. - schema: - $ref: '#/definitions/googlerpcStatus' - tags: - - Query /zeta-chain/fungible/system_contract: get: summary: Queries SystemContract @@ -54764,16 +54749,6 @@ definitions: $ref: '#/definitions/zetacoreemissionsParams' description: params holds all the parameters of this module. description: QueryParamsResponse is response type for the Query/Params RPC method. - zetacorefungibleParams: - type: object - description: Params defines the parameters for the module. - zetacorefungibleQueryParamsResponse: - type: object - properties: - params: - $ref: '#/definitions/zetacorefungibleParams' - description: params holds all the parameters of this module. - description: QueryParamsResponse is response type for the Query/Params RPC method. zetacoreobserverParams: type: object properties: diff --git a/typescript/fungible/genesis_pb.d.ts b/typescript/fungible/genesis_pb.d.ts index 1a338d01c8..dd979f05a2 100644 --- a/typescript/fungible/genesis_pb.d.ts +++ b/typescript/fungible/genesis_pb.d.ts @@ -5,7 +5,6 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; -import type { Params } from "./params_pb.js"; import type { ForeignCoins } from "./foreign_coins_pb.js"; import type { SystemContract } from "./system_contract_pb.js"; @@ -16,17 +15,12 @@ import type { SystemContract } from "./system_contract_pb.js"; */ export declare class GenesisState extends Message { /** - * @generated from field: zetachain.zetacore.fungible.Params params = 1; - */ - params?: Params; - - /** - * @generated from field: repeated zetachain.zetacore.fungible.ForeignCoins foreignCoinsList = 2; + * @generated from field: repeated zetachain.zetacore.fungible.ForeignCoins foreignCoinsList = 1; */ foreignCoinsList: ForeignCoins[]; /** - * @generated from field: zetachain.zetacore.fungible.SystemContract systemContract = 3; + * @generated from field: zetachain.zetacore.fungible.SystemContract systemContract = 2; */ systemContract?: SystemContract; diff --git a/typescript/fungible/index.d.ts b/typescript/fungible/index.d.ts index ca17377759..1c8f51dade 100644 --- a/typescript/fungible/index.d.ts +++ b/typescript/fungible/index.d.ts @@ -1,7 +1,6 @@ export * from "./events_pb"; export * from "./foreign_coins_pb"; export * from "./genesis_pb"; -export * from "./params_pb"; export * from "./query_pb"; export * from "./system_contract_pb"; export * from "./tx_pb"; diff --git a/typescript/fungible/params_pb.d.ts b/typescript/fungible/params_pb.d.ts deleted file mode 100644 index a9f83a1d01..0000000000 --- a/typescript/fungible/params_pb.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -// @generated by protoc-gen-es v1.3.0 with parameter "target=dts" -// @generated from file fungible/params.proto (package zetachain.zetacore.fungible, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Params defines the parameters for the module. - * - * @generated from message zetachain.zetacore.fungible.Params - */ -export declare class Params extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.fungible.Params"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): Params; - - static fromJson(jsonValue: JsonValue, options?: Partial): Params; - - static fromJsonString(jsonString: string, options?: Partial): Params; - - static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean; -} - diff --git a/typescript/fungible/query_pb.d.ts b/typescript/fungible/query_pb.d.ts index 57b15066b9..df76823dc6 100644 --- a/typescript/fungible/query_pb.d.ts +++ b/typescript/fungible/query_pb.d.ts @@ -5,60 +5,10 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; -import type { Params } from "./params_pb.js"; import type { ForeignCoins } from "./foreign_coins_pb.js"; import type { PageRequest, PageResponse } from "../cosmos/base/query/v1beta1/pagination_pb.js"; import type { SystemContract } from "./system_contract_pb.js"; -/** - * QueryParamsRequest is request type for the Query/Params RPC method. - * - * @generated from message zetachain.zetacore.fungible.QueryParamsRequest - */ -export declare class QueryParamsRequest extends Message { - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.fungible.QueryParamsRequest"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest; - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest; - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest; - - static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean; -} - -/** - * QueryParamsResponse is response type for the Query/Params RPC method. - * - * @generated from message zetachain.zetacore.fungible.QueryParamsResponse - */ -export declare class QueryParamsResponse extends Message { - /** - * params holds all the parameters of this module. - * - * @generated from field: zetachain.zetacore.fungible.Params params = 1; - */ - params?: Params; - - constructor(data?: PartialMessage); - - static readonly runtime: typeof proto3; - static readonly typeName = "zetachain.zetacore.fungible.QueryParamsResponse"; - static readonly fields: FieldList; - - static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse; - - static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse; - - static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse; - - static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean; -} - /** * @generated from message zetachain.zetacore.fungible.QueryGetForeignCoinsRequest */ From ec1cbecc02239f57c0bda82402b52d7cecaf94c4 Mon Sep 17 00:00:00 2001 From: skosito Date: Tue, 9 Apr 2024 23:29:13 +0200 Subject: [PATCH 3/5] Changelog --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index 6957804246..cd70a82586 100644 --- a/changelog.md +++ b/changelog.md @@ -27,6 +27,7 @@ * [1966](https://github.com/zeta-chain/node/pull/1966) - move TSS vote message from crosschain to observer * [1853](https://github.com/zeta-chain/node/pull/1853) - refactor vote inbound tx and vote outbound tx * [2001](https://github.com/zeta-chain/node/pull/2001) - replace broadcast mode block with sync +* [2004](https://github.com/zeta-chain/node/pull/2004) - remove fungible params ### Features From 697395e0cca1b0e3daa6c9592853a02605175853 Mon Sep 17 00:00:00 2001 From: skosito Date: Tue, 9 Apr 2024 23:36:35 +0200 Subject: [PATCH 4/5] Lint fix --- testutil/keeper/crosschain.go | 1 - testutil/keeper/fungible.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/testutil/keeper/crosschain.go b/testutil/keeper/crosschain.go index 6e2a7416fc..3f52ed1e4d 100644 --- a/testutil/keeper/crosschain.go +++ b/testutil/keeper/crosschain.go @@ -75,7 +75,6 @@ func CrosschainKeeperWithMocks( cdc, db, stateStore, - sdkKeepers.ParamsKeeper, sdkKeepers.AuthKeeper, sdkKeepers.BankKeeper, sdkKeepers.EvmKeeper, diff --git a/testutil/keeper/fungible.go b/testutil/keeper/fungible.go index ad4735c9a1..ae61439c1a 100644 --- a/testutil/keeper/fungible.go +++ b/testutil/keeper/fungible.go @@ -8,7 +8,6 @@ import ( "github.com/cosmos/cosmos-sdk/store" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" "github.com/evmos/ethermint/x/evm/statedb" evmtypes "github.com/evmos/ethermint/x/evm/types" "github.com/stretchr/testify/mock" @@ -44,7 +43,6 @@ func initFungibleKeeper( cdc codec.Codec, db *tmdb.MemDB, ss store.CommitMultiStore, - paramKeeper paramskeeper.Keeper, authKeeper types.AccountKeeper, bankKeepr types.BankKeeper, evmKeeper types.EVMKeeper, From 3ad1bc3c741e82f9683536b125a57f7c7e123eee Mon Sep 17 00:00:00 2001 From: skosito Date: Tue, 9 Apr 2024 23:43:15 +0200 Subject: [PATCH 5/5] Lint fix --- x/crosschain/keeper/keeper.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/x/crosschain/keeper/keeper.go b/x/crosschain/keeper/keeper.go index 8cde3e214f..0962323ca5 100644 --- a/x/crosschain/keeper/keeper.go +++ b/x/crosschain/keeper/keeper.go @@ -6,7 +6,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/tendermint/tendermint/libs/log" "github.com/zeta-chain/zetacore/x/crosschain/types" ) @@ -18,7 +17,6 @@ type ( memKey storetypes.StoreKey stakingKeeper types.StakingKeeper - paramstore paramtypes.Subspace authKeeper types.AccountKeeper bankKeeper types.BankKeeper zetaObserverKeeper types.ObserverKeeper