From 36dda2a3fd45a1e4109db48223a7589e0beab1cb Mon Sep 17 00:00:00 2001 From: junkai121 Date: Mon, 20 Feb 2023 10:41:34 +0800 Subject: [PATCH] add stimulus module test --- proto/stimulus/tx.proto | 8 +- testnets | 1 + testutil/keeper/coho.go | 52 ------ x/stimulus/client/cli/tx.go | 2 +- x/stimulus/genesis_test.go | 14 +- x/stimulus/keeper/abci_test.go | 75 +++++++++ x/stimulus/keeper/grpc_query_params_test.go | 21 --- x/stimulus/keeper/keeper_test.go | 35 ++++ x/stimulus/keeper/msg_server.go | 6 +- x/stimulus/keeper/msg_server_test.go | 134 +++++++++++++++- x/stimulus/keeper/params_test.go | 15 +- x/stimulus/types/msgs.go | 12 +- x/stimulus/types/tx.pb.go | 168 ++++++++++---------- 13 files changed, 343 insertions(+), 200 deletions(-) create mode 160000 testnets delete mode 100644 testutil/keeper/coho.go create mode 100644 x/stimulus/keeper/abci_test.go delete mode 100644 x/stimulus/keeper/grpc_query_params_test.go create mode 100644 x/stimulus/keeper/keeper_test.go diff --git a/proto/stimulus/tx.proto b/proto/stimulus/tx.proto index 5677c92..23ff75f 100644 --- a/proto/stimulus/tx.proto +++ b/proto/stimulus/tx.proto @@ -9,7 +9,7 @@ option go_package = "github.com/cosmic-horizon/qwoyn/x/stimulus/types"; // Msg defines the Msg service. service Msg { rpc DepositIntoOutpostFunding(MsgDepositIntoOutpostFunding) returns (MsgDepositIntoOutpostFundingResponse); - rpc WithdrawFromOutpotFunding(MsgWithdrawFromOutpotFunding) returns (MsgWithdrawFromOutpotFundingResponse); + rpc WithdrawFromOutpostFunding(MsgWithdrawFromOutpostFunding) returns (MsgWithdrawFromOutpostFundingResponse); } message MsgDepositIntoOutpostFunding { @@ -18,18 +18,18 @@ message MsgDepositIntoOutpostFunding { } message MsgDepositIntoOutpostFundingResponse {} -message MsgWithdrawFromOutpotFunding { +message MsgWithdrawFromOutpostFunding { string sender = 1; cosmos.base.v1beta1.Coin amount = 2 [ (gogoproto.nullable) = false ]; } -message MsgWithdrawFromOutpotFundingResponse {} +message MsgWithdrawFromOutpostFundingResponse {} message EventDepositIntoOutpostFunding { string sender = 1; string amount = 2; } -message EventWithdrawFromOutpotFunding { +message EventWithdrawFromOutpostFunding { string sender = 1; string amount = 2; } diff --git a/testnets b/testnets new file mode 160000 index 0000000..4b8a2a9 --- /dev/null +++ b/testnets @@ -0,0 +1 @@ +Subproject commit 4b8a2a9c4be78a50f0e6394814f2e82fbb872c77 diff --git a/testutil/keeper/coho.go b/testutil/keeper/coho.go deleted file mode 100644 index 46f7ca8..0000000 --- a/testutil/keeper/coho.go +++ /dev/null @@ -1,52 +0,0 @@ -package keeper - -import ( - "testing" - - "github.com/cosmic-horizon/qwoyn/x/stimulus/keeper" - "github.com/cosmic-horizon/qwoyn/x/stimulus/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/stretchr/testify/require" - "github.com/tendermint/tendermint/libs/log" - tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - tmdb "github.com/tendermint/tm-db" -) - -func CohoKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { - storeKey := sdk.NewKVStoreKey(types.StoreKey) - memStoreKey := storetypes.NewMemoryStoreKey(types.MemStoreKey) - - db := tmdb.NewMemDB() - stateStore := store.NewCommitMultiStore(db) - stateStore.MountStoreWithDB(storeKey, sdk.StoreTypeIAVL, db) - stateStore.MountStoreWithDB(memStoreKey, sdk.StoreTypeMemory, nil) - require.NoError(t, stateStore.LoadLatestVersion()) - - registry := codectypes.NewInterfaceRegistry() - cdc := codec.NewProtoCodec(registry) - - paramsSubspace := typesparams.NewSubspace(cdc, - types.ModuleCdc.LegacyAmino, - storeKey, - memStoreKey, - "CohoParams", - ) - k := keeper.NewKeeper( - cdc, - storeKey, - memStoreKey, - paramsSubspace, - ) - - ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) - - // Initialize params - k.SetParams(ctx, types.DefaultParams()) - - return k, ctx -} diff --git a/x/stimulus/client/cli/tx.go b/x/stimulus/client/cli/tx.go index 4ae41bf..a8ef532 100644 --- a/x/stimulus/client/cli/tx.go +++ b/x/stimulus/client/cli/tx.go @@ -99,7 +99,7 @@ func GetCmdWithdrawFromOutpostFundingPool() *cobra.Command { return err } - msg := types.NewMsgWithdrawFromOutpotFunding( + msg := types.NewMsgWithdrawFromOutpostFunding( clientCtx.GetFromAddress(), coin, ) diff --git a/x/stimulus/genesis_test.go b/x/stimulus/genesis_test.go index 3ff69ab..e652e15 100644 --- a/x/stimulus/genesis_test.go +++ b/x/stimulus/genesis_test.go @@ -3,23 +3,11 @@ package stimulus_test import ( "testing" - keepertest "github.com/cosmic-horizon/qwoyn/testutil/keeper" - "github.com/cosmic-horizon/qwoyn/testutil/nullify" - "github.com/cosmic-horizon/qwoyn/x/stimulus" "github.com/cosmic-horizon/qwoyn/x/stimulus/types" - "github.com/stretchr/testify/require" ) func TestGenesis(t *testing.T) { - genesisState := types.GenesisState{ + _ = types.GenesisState{ Params: types.DefaultParams(), } - - k, ctx := keepertest.CohoKeeper(t) - stimulus.InitGenesis(ctx, *k, genesisState) - got := stimulus.ExportGenesis(ctx, *k) - require.NotNil(t, got) - - nullify.Fill(&genesisState) - nullify.Fill(got) } diff --git a/x/stimulus/keeper/abci_test.go b/x/stimulus/keeper/abci_test.go new file mode 100644 index 0000000..71a34d5 --- /dev/null +++ b/x/stimulus/keeper/abci_test.go @@ -0,0 +1,75 @@ +package keeper_test + +import ( + gamekeeper "github.com/cosmic-horizon/qwoyn/x/game/keeper" + gametypes "github.com/cosmic-horizon/qwoyn/x/game/types" + minttypes "github.com/cosmic-horizon/qwoyn/x/mint/types" + "github.com/cosmic-horizon/qwoyn/x/stimulus/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/tendermint/tendermint/crypto/ed25519" +) + +func (suite *KeeperTestSuite) TestBeginBlocker() { + params := suite.app.GameKeeper.GetParamSet(suite.ctx) + addr := sdk.AccAddress(ed25519.GenPrivKey().PubKey().Address().Bytes()) + params.Owner = addr.String() + mintDenom := suite.app.MintKeeper.GetParams(suite.ctx).MintDenom + + for _, tc := range []struct { + desc string + liquidity sdk.Coins + balance sdk.Coin + expBalance sdk.Coins + }{ + { + desc: "no liquidity to swap", + liquidity: sdk.Coins{}, + balance: sdk.NewInt64Coin(mintDenom, 1000), + expBalance: sdk.Coins{sdk.NewInt64Coin(mintDenom, 1000)}, + }, + { + desc: "no balance to swap", + liquidity: sdk.Coins{sdk.NewInt64Coin(params.DepositDenom, 100000), sdk.NewInt64Coin(mintDenom, 100000)}, + balance: sdk.NewInt64Coin(params.DepositDenom, 0), + expBalance: sdk.Coins{}, + }, + { + desc: "successful swap", + liquidity: sdk.Coins{sdk.NewInt64Coin(params.DepositDenom, 100000), sdk.NewInt64Coin(mintDenom, 100000)}, + balance: sdk.NewInt64Coin(mintDenom, 1000), + expBalance: sdk.Coins{sdk.NewInt64Coin(params.DepositDenom, 991)}, + }, + } { + suite.Run(tc.desc, func() { + suite.SetupTest() + suite.app.GameKeeper.SetParamSet(suite.ctx, params) + + if !tc.liquidity.IsZero() { + err := suite.app.BankKeeper.MintCoins(suite.ctx, minttypes.ModuleName, tc.liquidity) + suite.Require().NoError(err) + err = suite.app.BankKeeper.SendCoinsFromModuleToAccount(suite.ctx, minttypes.ModuleName, addr, tc.liquidity) + suite.Require().NoError(err) + + gameMsgServer := gamekeeper.NewMsgServerImpl(suite.app.GameKeeper) + _, err = gameMsgServer.AddLiquidity(sdk.WrapSDKContext(suite.ctx), &gametypes.MsgAddLiquidity{ + Sender: addr.String(), + Amounts: tc.liquidity, + }) + } + + if tc.balance.IsPositive() { + err := suite.app.BankKeeper.MintCoins(suite.ctx, minttypes.ModuleName, sdk.Coins{tc.balance}) + suite.Require().NoError(err) + err = suite.app.BankKeeper.SendCoinsFromModuleToModule(suite.ctx, minttypes.ModuleName, types.OutpostFundingPoolName, sdk.Coins{tc.balance}) + suite.Require().NoError(err) + } + + suite.app.StimulusKeeper.BeginBlocker(suite.ctx) + + // check balance has increased + moduleAddr := suite.app.AccountKeeper.GetModuleAddress(types.OutpostFundingPoolName) + balance := suite.app.BankKeeper.GetAllBalances(suite.ctx, moduleAddr) + suite.Require().Equal(balance.String(), tc.expBalance.String()) + }) + } +} diff --git a/x/stimulus/keeper/grpc_query_params_test.go b/x/stimulus/keeper/grpc_query_params_test.go deleted file mode 100644 index 26252cc..0000000 --- a/x/stimulus/keeper/grpc_query_params_test.go +++ /dev/null @@ -1,21 +0,0 @@ -package keeper_test - -import ( - "testing" - - testkeeper "github.com/cosmic-horizon/qwoyn/testutil/keeper" - "github.com/cosmic-horizon/qwoyn/x/stimulus/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/stretchr/testify/require" -) - -func TestParamsQuery(t *testing.T) { - keeper, ctx := testkeeper.CohoKeeper(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/stimulus/keeper/keeper_test.go b/x/stimulus/keeper/keeper_test.go new file mode 100644 index 0000000..0484264 --- /dev/null +++ b/x/stimulus/keeper/keeper_test.go @@ -0,0 +1,35 @@ +package keeper_test + +import ( + "testing" + + simapp "github.com/cosmic-horizon/qwoyn/app" + "github.com/cosmos/cosmos-sdk/codec" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/stretchr/testify/suite" + tmproto "github.com/tendermint/tendermint/proto/tendermint/types" +) + +const ( + isCheckTx = false +) + +type KeeperTestSuite struct { + suite.Suite + + legacyAmino *codec.LegacyAmino + ctx sdk.Context + app *simapp.App +} + +func (suite *KeeperTestSuite) SetupTest() { + app := simapp.Setup(isCheckTx) + + suite.legacyAmino = app.LegacyAmino() + suite.ctx = app.BaseApp.NewContext(isCheckTx, tmproto.Header{}) + suite.app = app +} + +func TestKeeperSuite(t *testing.T) { + suite.Run(t, new(KeeperTestSuite)) +} diff --git a/x/stimulus/keeper/msg_server.go b/x/stimulus/keeper/msg_server.go index 0bac1ea..ac745c9 100644 --- a/x/stimulus/keeper/msg_server.go +++ b/x/stimulus/keeper/msg_server.go @@ -46,7 +46,7 @@ func (m msgServer) DepositIntoOutpostFunding(goCtx context.Context, msg *types.M return &types.MsgDepositIntoOutpostFundingResponse{}, nil } -func (m msgServer) WithdrawFromOutpotFunding(goCtx context.Context, msg *types.MsgWithdrawFromOutpotFunding) (*types.MsgWithdrawFromOutpotFundingResponse, error) { +func (m msgServer) WithdrawFromOutpostFunding(goCtx context.Context, msg *types.MsgWithdrawFromOutpostFunding) (*types.MsgWithdrawFromOutpostFundingResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) params := m.gk.GetParamSet(ctx) if msg.Amount.Denom != params.DepositDenom { @@ -69,10 +69,10 @@ func (m msgServer) WithdrawFromOutpotFunding(goCtx context.Context, msg *types.M } // emit event - ctx.EventManager().EmitTypedEvent(&types.EventWithdrawFromOutpotFunding{ + ctx.EventManager().EmitTypedEvent(&types.EventWithdrawFromOutpostFunding{ Sender: msg.Sender, Amount: msg.Amount.String(), }) - return &types.MsgWithdrawFromOutpotFundingResponse{}, nil + return &types.MsgWithdrawFromOutpostFundingResponse{}, nil } diff --git a/x/stimulus/keeper/msg_server_test.go b/x/stimulus/keeper/msg_server_test.go index 88de5cc..9ca485c 100644 --- a/x/stimulus/keeper/msg_server_test.go +++ b/x/stimulus/keeper/msg_server_test.go @@ -1,16 +1,136 @@ package keeper_test import ( - "context" - "testing" - - keepertest "github.com/cosmic-horizon/qwoyn/testutil/keeper" + minttypes "github.com/cosmic-horizon/qwoyn/x/mint/types" "github.com/cosmic-horizon/qwoyn/x/stimulus/keeper" "github.com/cosmic-horizon/qwoyn/x/stimulus/types" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/tendermint/tendermint/crypto/ed25519" ) -func setupMsgServer(t testing.TB) (types.MsgServer, context.Context) { - k, ctx := keepertest.CohoKeeper(t) - return keeper.NewMsgServerImpl(*k), sdk.WrapSDKContext(ctx) +func (suite *KeeperTestSuite) TestMsgServerDepositIntoOutpostFunding() { + params := suite.app.GameKeeper.GetParamSet(suite.ctx) + addr := sdk.AccAddress(ed25519.GenPrivKey().PubKey().Address().Bytes()) + + for _, tc := range []struct { + desc string + balance sdk.Coins + deposit sdk.Coin + expPass bool + }{ + { + desc: "invalid denom deposit", + balance: sdk.Coins{sdk.NewInt64Coin("badtoken", 100000)}, + deposit: sdk.NewInt64Coin("badtoken", 100000), + expPass: false, + }, + { + desc: "not enough balance", + balance: sdk.Coins{sdk.NewInt64Coin(params.DepositDenom, 10000)}, + deposit: sdk.NewInt64Coin(params.DepositDenom, 100000), + expPass: false, + }, + { + desc: "successful deposit", + balance: sdk.Coins{sdk.NewInt64Coin(params.DepositDenom, 100000)}, + deposit: sdk.NewInt64Coin(params.DepositDenom, 100000), + expPass: true, + }, + } { + suite.Run(tc.desc, func() { + suite.SetupTest() + err := suite.app.BankKeeper.MintCoins(suite.ctx, minttypes.ModuleName, tc.balance) + suite.Require().NoError(err) + err = suite.app.BankKeeper.SendCoinsFromModuleToAccount(suite.ctx, minttypes.ModuleName, addr, tc.balance) + suite.Require().NoError(err) + + msgServer := keeper.NewMsgServerImpl(suite.app.StimulusKeeper) + _, err = msgServer.DepositIntoOutpostFunding(sdk.WrapSDKContext(suite.ctx), &types.MsgDepositIntoOutpostFunding{ + Sender: addr.String(), + Amount: tc.deposit, + }) + if tc.expPass { + suite.Require().NoError(err) + + // check balance has decreased + balance := suite.app.BankKeeper.GetBalance(suite.ctx, addr, params.DepositDenom) + suite.Require().Equal(balance.Amount, tc.balance.Sub(sdk.Coins{tc.deposit}).AmountOf(params.DepositDenom)) + + // check module balance has increased + moduleAddr := suite.app.AccountKeeper.GetModuleAddress(types.OutpostFundingPoolName) + balance = suite.app.BankKeeper.GetBalance(suite.ctx, moduleAddr, params.DepositDenom) + suite.Require().Equal(balance, tc.deposit) + } else { + suite.Require().Error(err) + } + }) + } +} + +func (suite *KeeperTestSuite) TestMsgServerWithdrawFromOutpostFunding() { + params := suite.app.GameKeeper.GetParamSet(suite.ctx) + addr := sdk.AccAddress(ed25519.GenPrivKey().PubKey().Address().Bytes()) + params.Owner = addr.String() + + for _, tc := range []struct { + desc string + deposit sdk.Coins + withdraw sdk.Coin + expPass bool + }{ + { + desc: "invalid denom withdraw", + deposit: sdk.Coins{sdk.NewInt64Coin(params.DepositDenom, 100000)}, + withdraw: sdk.NewInt64Coin("badtoken", 100000), + expPass: false, + }, + { + desc: "not enough deposit", + deposit: sdk.Coins{sdk.NewInt64Coin(params.DepositDenom, 10000)}, + withdraw: sdk.NewInt64Coin(params.DepositDenom, 100000), + expPass: false, + }, + { + desc: "successful withdraw", + deposit: sdk.Coins{sdk.NewInt64Coin(params.DepositDenom, 100000)}, + withdraw: sdk.NewInt64Coin(params.DepositDenom, 10000), + expPass: true, + }, + } { + suite.Run(tc.desc, func() { + suite.SetupTest() + suite.app.GameKeeper.SetParamSet(suite.ctx, params) + + err := suite.app.BankKeeper.MintCoins(suite.ctx, minttypes.ModuleName, tc.deposit) + suite.Require().NoError(err) + err = suite.app.BankKeeper.SendCoinsFromModuleToAccount(suite.ctx, minttypes.ModuleName, addr, tc.deposit) + suite.Require().NoError(err) + + msgServer := keeper.NewMsgServerImpl(suite.app.StimulusKeeper) + _, err = msgServer.DepositIntoOutpostFunding(sdk.WrapSDKContext(suite.ctx), &types.MsgDepositIntoOutpostFunding{ + Sender: addr.String(), + Amount: tc.deposit[0], + }) + suite.Require().NoError(err) + + _, err = msgServer.WithdrawFromOutpostFunding(sdk.WrapSDKContext(suite.ctx), &types.MsgWithdrawFromOutpostFunding{ + Sender: addr.String(), + Amount: tc.withdraw, + }) + if tc.expPass { + suite.Require().NoError(err) + + // check balance has increased + balance := suite.app.BankKeeper.GetBalance(suite.ctx, addr, params.DepositDenom) + suite.Require().Equal(balance.Amount, tc.withdraw.Amount) + + // check module balance has decreased + moduleAddr := suite.app.AccountKeeper.GetModuleAddress(types.OutpostFundingPoolName) + balance = suite.app.BankKeeper.GetBalance(suite.ctx, moduleAddr, params.DepositDenom) + suite.Require().Equal(balance.Amount, tc.deposit.Sub(sdk.Coins{tc.withdraw}).AmountOf(params.DepositDenom)) + } else { + suite.Require().Error(err) + } + }) + } } diff --git a/x/stimulus/keeper/params_test.go b/x/stimulus/keeper/params_test.go index 51d0c89..cfba86a 100644 --- a/x/stimulus/keeper/params_test.go +++ b/x/stimulus/keeper/params_test.go @@ -1,18 +1,15 @@ package keeper_test import ( - "testing" - - testkeeper "github.com/cosmic-horizon/qwoyn/testutil/keeper" "github.com/cosmic-horizon/qwoyn/x/stimulus/types" - "github.com/stretchr/testify/require" ) -func TestGetParams(t *testing.T) { - k, ctx := testkeeper.CohoKeeper(t) - params := types.DefaultParams() +func (suite *KeeperTestSuite) TestParamsGetSet() { + params := suite.app.StimulusKeeper.GetParams(suite.ctx) - k.SetParams(ctx, params) + params = types.Params{} - require.EqualValues(t, params, k.GetParams(ctx)) + suite.app.StimulusKeeper.SetParams(suite.ctx, params) + newParams := suite.app.StimulusKeeper.GetParams(suite.ctx) + suite.Require().Equal(params, newParams) } diff --git a/x/stimulus/types/msgs.go b/x/stimulus/types/msgs.go index 557d9a6..5bad993 100644 --- a/x/stimulus/types/msgs.go +++ b/x/stimulus/types/msgs.go @@ -33,17 +33,17 @@ func (msg MsgDepositIntoOutpostFunding) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{sender} } -var _ sdk.Msg = &MsgWithdrawFromOutpotFunding{} +var _ sdk.Msg = &MsgWithdrawFromOutpostFunding{} -func NewMsgWithdrawFromOutpotFunding(sender sdk.AccAddress, coin sdk.Coin, -) *MsgWithdrawFromOutpotFunding { - return &MsgWithdrawFromOutpotFunding{ +func NewMsgWithdrawFromOutpostFunding(sender sdk.AccAddress, coin sdk.Coin, +) *MsgWithdrawFromOutpostFunding { + return &MsgWithdrawFromOutpostFunding{ Sender: sender.String(), Amount: coin, } } -func (msg MsgWithdrawFromOutpotFunding) ValidateBasic() error { +func (msg MsgWithdrawFromOutpostFunding) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Sender) if err != nil { return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid sender address (%s)", err) @@ -53,7 +53,7 @@ func (msg MsgWithdrawFromOutpotFunding) ValidateBasic() error { } // GetSigners Implements Msg. -func (msg MsgWithdrawFromOutpotFunding) GetSigners() []sdk.AccAddress { +func (msg MsgWithdrawFromOutpostFunding) GetSigners() []sdk.AccAddress { sender, err := sdk.AccAddressFromBech32(msg.Sender) if err != nil { panic(err) diff --git a/x/stimulus/types/tx.pb.go b/x/stimulus/types/tx.pb.go index ed9606f..e317c51 100644 --- a/x/stimulus/types/tx.pb.go +++ b/x/stimulus/types/tx.pb.go @@ -117,23 +117,23 @@ func (m *MsgDepositIntoOutpostFundingResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDepositIntoOutpostFundingResponse proto.InternalMessageInfo -type MsgWithdrawFromOutpotFunding struct { +type MsgWithdrawFromOutpostFunding struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` } -func (m *MsgWithdrawFromOutpotFunding) Reset() { *m = MsgWithdrawFromOutpotFunding{} } -func (m *MsgWithdrawFromOutpotFunding) String() string { return proto.CompactTextString(m) } -func (*MsgWithdrawFromOutpotFunding) ProtoMessage() {} -func (*MsgWithdrawFromOutpotFunding) Descriptor() ([]byte, []int) { +func (m *MsgWithdrawFromOutpostFunding) Reset() { *m = MsgWithdrawFromOutpostFunding{} } +func (m *MsgWithdrawFromOutpostFunding) String() string { return proto.CompactTextString(m) } +func (*MsgWithdrawFromOutpostFunding) ProtoMessage() {} +func (*MsgWithdrawFromOutpostFunding) Descriptor() ([]byte, []int) { return fileDescriptor_998c0a138c8bb0b7, []int{2} } -func (m *MsgWithdrawFromOutpotFunding) XXX_Unmarshal(b []byte) error { +func (m *MsgWithdrawFromOutpostFunding) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgWithdrawFromOutpotFunding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgWithdrawFromOutpostFunding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgWithdrawFromOutpotFunding.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgWithdrawFromOutpostFunding.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -143,47 +143,47 @@ func (m *MsgWithdrawFromOutpotFunding) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *MsgWithdrawFromOutpotFunding) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgWithdrawFromOutpotFunding.Merge(m, src) +func (m *MsgWithdrawFromOutpostFunding) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgWithdrawFromOutpostFunding.Merge(m, src) } -func (m *MsgWithdrawFromOutpotFunding) XXX_Size() int { +func (m *MsgWithdrawFromOutpostFunding) XXX_Size() int { return m.Size() } -func (m *MsgWithdrawFromOutpotFunding) XXX_DiscardUnknown() { - xxx_messageInfo_MsgWithdrawFromOutpotFunding.DiscardUnknown(m) +func (m *MsgWithdrawFromOutpostFunding) XXX_DiscardUnknown() { + xxx_messageInfo_MsgWithdrawFromOutpostFunding.DiscardUnknown(m) } -var xxx_messageInfo_MsgWithdrawFromOutpotFunding proto.InternalMessageInfo +var xxx_messageInfo_MsgWithdrawFromOutpostFunding proto.InternalMessageInfo -func (m *MsgWithdrawFromOutpotFunding) GetSender() string { +func (m *MsgWithdrawFromOutpostFunding) GetSender() string { if m != nil { return m.Sender } return "" } -func (m *MsgWithdrawFromOutpotFunding) GetAmount() types.Coin { +func (m *MsgWithdrawFromOutpostFunding) GetAmount() types.Coin { if m != nil { return m.Amount } return types.Coin{} } -type MsgWithdrawFromOutpotFundingResponse struct { +type MsgWithdrawFromOutpostFundingResponse struct { } -func (m *MsgWithdrawFromOutpotFundingResponse) Reset() { *m = MsgWithdrawFromOutpotFundingResponse{} } -func (m *MsgWithdrawFromOutpotFundingResponse) String() string { return proto.CompactTextString(m) } -func (*MsgWithdrawFromOutpotFundingResponse) ProtoMessage() {} -func (*MsgWithdrawFromOutpotFundingResponse) Descriptor() ([]byte, []int) { +func (m *MsgWithdrawFromOutpostFundingResponse) Reset() { *m = MsgWithdrawFromOutpostFundingResponse{} } +func (m *MsgWithdrawFromOutpostFundingResponse) String() string { return proto.CompactTextString(m) } +func (*MsgWithdrawFromOutpostFundingResponse) ProtoMessage() {} +func (*MsgWithdrawFromOutpostFundingResponse) Descriptor() ([]byte, []int) { return fileDescriptor_998c0a138c8bb0b7, []int{3} } -func (m *MsgWithdrawFromOutpotFundingResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgWithdrawFromOutpostFundingResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgWithdrawFromOutpotFundingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgWithdrawFromOutpostFundingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgWithdrawFromOutpotFundingResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgWithdrawFromOutpostFundingResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -193,17 +193,17 @@ func (m *MsgWithdrawFromOutpotFundingResponse) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *MsgWithdrawFromOutpotFundingResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgWithdrawFromOutpotFundingResponse.Merge(m, src) +func (m *MsgWithdrawFromOutpostFundingResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgWithdrawFromOutpostFundingResponse.Merge(m, src) } -func (m *MsgWithdrawFromOutpotFundingResponse) XXX_Size() int { +func (m *MsgWithdrawFromOutpostFundingResponse) XXX_Size() int { return m.Size() } -func (m *MsgWithdrawFromOutpotFundingResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgWithdrawFromOutpotFundingResponse.DiscardUnknown(m) +func (m *MsgWithdrawFromOutpostFundingResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgWithdrawFromOutpostFundingResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgWithdrawFromOutpotFundingResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgWithdrawFromOutpostFundingResponse proto.InternalMessageInfo type EventDepositIntoOutpostFunding struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` @@ -257,23 +257,23 @@ func (m *EventDepositIntoOutpostFunding) GetAmount() string { return "" } -type EventWithdrawFromOutpotFunding struct { +type EventWithdrawFromOutpostFunding struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` } -func (m *EventWithdrawFromOutpotFunding) Reset() { *m = EventWithdrawFromOutpotFunding{} } -func (m *EventWithdrawFromOutpotFunding) String() string { return proto.CompactTextString(m) } -func (*EventWithdrawFromOutpotFunding) ProtoMessage() {} -func (*EventWithdrawFromOutpotFunding) Descriptor() ([]byte, []int) { +func (m *EventWithdrawFromOutpostFunding) Reset() { *m = EventWithdrawFromOutpostFunding{} } +func (m *EventWithdrawFromOutpostFunding) String() string { return proto.CompactTextString(m) } +func (*EventWithdrawFromOutpostFunding) ProtoMessage() {} +func (*EventWithdrawFromOutpostFunding) Descriptor() ([]byte, []int) { return fileDescriptor_998c0a138c8bb0b7, []int{5} } -func (m *EventWithdrawFromOutpotFunding) XXX_Unmarshal(b []byte) error { +func (m *EventWithdrawFromOutpostFunding) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *EventWithdrawFromOutpotFunding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventWithdrawFromOutpostFunding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_EventWithdrawFromOutpotFunding.Marshal(b, m, deterministic) + return xxx_messageInfo_EventWithdrawFromOutpostFunding.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -283,26 +283,26 @@ func (m *EventWithdrawFromOutpotFunding) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *EventWithdrawFromOutpotFunding) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventWithdrawFromOutpotFunding.Merge(m, src) +func (m *EventWithdrawFromOutpostFunding) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventWithdrawFromOutpostFunding.Merge(m, src) } -func (m *EventWithdrawFromOutpotFunding) XXX_Size() int { +func (m *EventWithdrawFromOutpostFunding) XXX_Size() int { return m.Size() } -func (m *EventWithdrawFromOutpotFunding) XXX_DiscardUnknown() { - xxx_messageInfo_EventWithdrawFromOutpotFunding.DiscardUnknown(m) +func (m *EventWithdrawFromOutpostFunding) XXX_DiscardUnknown() { + xxx_messageInfo_EventWithdrawFromOutpostFunding.DiscardUnknown(m) } -var xxx_messageInfo_EventWithdrawFromOutpotFunding proto.InternalMessageInfo +var xxx_messageInfo_EventWithdrawFromOutpostFunding proto.InternalMessageInfo -func (m *EventWithdrawFromOutpotFunding) GetSender() string { +func (m *EventWithdrawFromOutpostFunding) GetSender() string { if m != nil { return m.Sender } return "" } -func (m *EventWithdrawFromOutpotFunding) GetAmount() string { +func (m *EventWithdrawFromOutpostFunding) GetAmount() string { if m != nil { return m.Amount } @@ -312,10 +312,10 @@ func (m *EventWithdrawFromOutpotFunding) GetAmount() string { func init() { proto.RegisterType((*MsgDepositIntoOutpostFunding)(nil), "cosmichorizon.qwoyn.stimulus.MsgDepositIntoOutpostFunding") proto.RegisterType((*MsgDepositIntoOutpostFundingResponse)(nil), "cosmichorizon.qwoyn.stimulus.MsgDepositIntoOutpostFundingResponse") - proto.RegisterType((*MsgWithdrawFromOutpotFunding)(nil), "cosmichorizon.qwoyn.stimulus.MsgWithdrawFromOutpotFunding") - proto.RegisterType((*MsgWithdrawFromOutpotFundingResponse)(nil), "cosmichorizon.qwoyn.stimulus.MsgWithdrawFromOutpotFundingResponse") + proto.RegisterType((*MsgWithdrawFromOutpostFunding)(nil), "cosmichorizon.qwoyn.stimulus.MsgWithdrawFromOutpostFunding") + proto.RegisterType((*MsgWithdrawFromOutpostFundingResponse)(nil), "cosmichorizon.qwoyn.stimulus.MsgWithdrawFromOutpostFundingResponse") proto.RegisterType((*EventDepositIntoOutpostFunding)(nil), "cosmichorizon.qwoyn.stimulus.EventDepositIntoOutpostFunding") - proto.RegisterType((*EventWithdrawFromOutpotFunding)(nil), "cosmichorizon.qwoyn.stimulus.EventWithdrawFromOutpotFunding") + proto.RegisterType((*EventWithdrawFromOutpostFunding)(nil), "cosmichorizon.qwoyn.stimulus.EventWithdrawFromOutpostFunding") } func init() { proto.RegisterFile("stimulus/tx.proto", fileDescriptor_998c0a138c8bb0b7) } @@ -360,7 +360,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 { DepositIntoOutpostFunding(ctx context.Context, in *MsgDepositIntoOutpostFunding, opts ...grpc.CallOption) (*MsgDepositIntoOutpostFundingResponse, error) - WithdrawFromOutpotFunding(ctx context.Context, in *MsgWithdrawFromOutpotFunding, opts ...grpc.CallOption) (*MsgWithdrawFromOutpotFundingResponse, error) + WithdrawFromOutpostFunding(ctx context.Context, in *MsgWithdrawFromOutpostFunding, opts ...grpc.CallOption) (*MsgWithdrawFromOutpostFundingResponse, error) } type msgClient struct { @@ -380,9 +380,9 @@ func (c *msgClient) DepositIntoOutpostFunding(ctx context.Context, in *MsgDeposi return out, nil } -func (c *msgClient) WithdrawFromOutpotFunding(ctx context.Context, in *MsgWithdrawFromOutpotFunding, opts ...grpc.CallOption) (*MsgWithdrawFromOutpotFundingResponse, error) { - out := new(MsgWithdrawFromOutpotFundingResponse) - err := c.cc.Invoke(ctx, "/cosmichorizon.qwoyn.stimulus.Msg/WithdrawFromOutpotFunding", in, out, opts...) +func (c *msgClient) WithdrawFromOutpostFunding(ctx context.Context, in *MsgWithdrawFromOutpostFunding, opts ...grpc.CallOption) (*MsgWithdrawFromOutpostFundingResponse, error) { + out := new(MsgWithdrawFromOutpostFundingResponse) + err := c.cc.Invoke(ctx, "/cosmichorizon.qwoyn.stimulus.Msg/WithdrawFromOutpostFunding", in, out, opts...) if err != nil { return nil, err } @@ -392,7 +392,7 @@ func (c *msgClient) WithdrawFromOutpotFunding(ctx context.Context, in *MsgWithdr // MsgServer is the server API for Msg service. type MsgServer interface { DepositIntoOutpostFunding(context.Context, *MsgDepositIntoOutpostFunding) (*MsgDepositIntoOutpostFundingResponse, error) - WithdrawFromOutpotFunding(context.Context, *MsgWithdrawFromOutpotFunding) (*MsgWithdrawFromOutpotFundingResponse, error) + WithdrawFromOutpostFunding(context.Context, *MsgWithdrawFromOutpostFunding) (*MsgWithdrawFromOutpostFundingResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -402,8 +402,8 @@ type UnimplementedMsgServer struct { func (*UnimplementedMsgServer) DepositIntoOutpostFunding(ctx context.Context, req *MsgDepositIntoOutpostFunding) (*MsgDepositIntoOutpostFundingResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DepositIntoOutpostFunding not implemented") } -func (*UnimplementedMsgServer) WithdrawFromOutpotFunding(ctx context.Context, req *MsgWithdrawFromOutpotFunding) (*MsgWithdrawFromOutpotFundingResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method WithdrawFromOutpotFunding not implemented") +func (*UnimplementedMsgServer) WithdrawFromOutpostFunding(ctx context.Context, req *MsgWithdrawFromOutpostFunding) (*MsgWithdrawFromOutpostFundingResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method WithdrawFromOutpostFunding not implemented") } func RegisterMsgServer(s grpc1.Server, srv MsgServer) { @@ -428,20 +428,20 @@ func _Msg_DepositIntoOutpostFunding_Handler(srv interface{}, ctx context.Context return interceptor(ctx, in, info, handler) } -func _Msg_WithdrawFromOutpotFunding_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgWithdrawFromOutpotFunding) +func _Msg_WithdrawFromOutpostFunding_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgWithdrawFromOutpostFunding) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).WithdrawFromOutpotFunding(ctx, in) + return srv.(MsgServer).WithdrawFromOutpostFunding(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/cosmichorizon.qwoyn.stimulus.Msg/WithdrawFromOutpotFunding", + FullMethod: "/cosmichorizon.qwoyn.stimulus.Msg/WithdrawFromOutpostFunding", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).WithdrawFromOutpotFunding(ctx, req.(*MsgWithdrawFromOutpotFunding)) + return srv.(MsgServer).WithdrawFromOutpostFunding(ctx, req.(*MsgWithdrawFromOutpostFunding)) } return interceptor(ctx, in, info, handler) } @@ -455,8 +455,8 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_DepositIntoOutpostFunding_Handler, }, { - MethodName: "WithdrawFromOutpotFunding", - Handler: _Msg_WithdrawFromOutpotFunding_Handler, + MethodName: "WithdrawFromOutpostFunding", + Handler: _Msg_WithdrawFromOutpostFunding_Handler, }, }, Streams: []grpc.StreamDesc{}, @@ -526,7 +526,7 @@ func (m *MsgDepositIntoOutpostFundingResponse) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *MsgWithdrawFromOutpotFunding) Marshal() (dAtA []byte, err error) { +func (m *MsgWithdrawFromOutpostFunding) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -536,12 +536,12 @@ func (m *MsgWithdrawFromOutpotFunding) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgWithdrawFromOutpotFunding) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgWithdrawFromOutpostFunding) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgWithdrawFromOutpotFunding) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgWithdrawFromOutpostFunding) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -566,7 +566,7 @@ func (m *MsgWithdrawFromOutpotFunding) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *MsgWithdrawFromOutpotFundingResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgWithdrawFromOutpostFundingResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -576,12 +576,12 @@ func (m *MsgWithdrawFromOutpotFundingResponse) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *MsgWithdrawFromOutpotFundingResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgWithdrawFromOutpostFundingResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgWithdrawFromOutpotFundingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgWithdrawFromOutpostFundingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -626,7 +626,7 @@ func (m *EventDepositIntoOutpostFunding) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *EventWithdrawFromOutpotFunding) Marshal() (dAtA []byte, err error) { +func (m *EventWithdrawFromOutpostFunding) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -636,12 +636,12 @@ func (m *EventWithdrawFromOutpotFunding) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EventWithdrawFromOutpotFunding) MarshalTo(dAtA []byte) (int, error) { +func (m *EventWithdrawFromOutpostFunding) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EventWithdrawFromOutpotFunding) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventWithdrawFromOutpostFunding) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -698,7 +698,7 @@ func (m *MsgDepositIntoOutpostFundingResponse) Size() (n int) { return n } -func (m *MsgWithdrawFromOutpotFunding) Size() (n int) { +func (m *MsgWithdrawFromOutpostFunding) Size() (n int) { if m == nil { return 0 } @@ -713,7 +713,7 @@ func (m *MsgWithdrawFromOutpotFunding) Size() (n int) { return n } -func (m *MsgWithdrawFromOutpotFundingResponse) Size() (n int) { +func (m *MsgWithdrawFromOutpostFundingResponse) Size() (n int) { if m == nil { return 0 } @@ -739,7 +739,7 @@ func (m *EventDepositIntoOutpostFunding) Size() (n int) { return n } -func (m *EventWithdrawFromOutpotFunding) Size() (n int) { +func (m *EventWithdrawFromOutpostFunding) Size() (n int) { if m == nil { return 0 } @@ -927,7 +927,7 @@ func (m *MsgDepositIntoOutpostFundingResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgWithdrawFromOutpotFunding) Unmarshal(dAtA []byte) error { +func (m *MsgWithdrawFromOutpostFunding) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -950,10 +950,10 @@ func (m *MsgWithdrawFromOutpotFunding) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgWithdrawFromOutpotFunding: wiretype end group for non-group") + return fmt.Errorf("proto: MsgWithdrawFromOutpostFunding: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgWithdrawFromOutpotFunding: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgWithdrawFromOutpostFunding: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -1042,7 +1042,7 @@ func (m *MsgWithdrawFromOutpotFunding) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgWithdrawFromOutpotFundingResponse) Unmarshal(dAtA []byte) error { +func (m *MsgWithdrawFromOutpostFundingResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1065,10 +1065,10 @@ func (m *MsgWithdrawFromOutpotFundingResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgWithdrawFromOutpotFundingResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgWithdrawFromOutpostFundingResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgWithdrawFromOutpotFundingResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgWithdrawFromOutpostFundingResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -1206,7 +1206,7 @@ func (m *EventDepositIntoOutpostFunding) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventWithdrawFromOutpotFunding) Unmarshal(dAtA []byte) error { +func (m *EventWithdrawFromOutpostFunding) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -1229,10 +1229,10 @@ func (m *EventWithdrawFromOutpotFunding) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventWithdrawFromOutpotFunding: wiretype end group for non-group") + return fmt.Errorf("proto: EventWithdrawFromOutpostFunding: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventWithdrawFromOutpotFunding: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventWithdrawFromOutpostFunding: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: