github.com/lino-network/lino@v0.6.11/param/mocks/ParamKeeper.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	param "github.com/lino-network/lino/param"
     7  	mock "github.com/stretchr/testify/mock"
     8  
     9  	types "github.com/cosmos/cosmos-sdk/types"
    10  )
    11  
    12  // ParamKeeper is an autogenerated mock type for the ParamKeeper type
    13  type ParamKeeper struct {
    14  	mock.Mock
    15  }
    16  
    17  // GetAccountParam provides a mock function with given fields: ctx
    18  func (_m *ParamKeeper) GetAccountParam(ctx types.Context) *param.AccountParam {
    19  	ret := _m.Called(ctx)
    20  
    21  	var r0 *param.AccountParam
    22  	if rf, ok := ret.Get(0).(func(types.Context) *param.AccountParam); ok {
    23  		r0 = rf(ctx)
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).(*param.AccountParam)
    27  		}
    28  	}
    29  
    30  	return r0
    31  }
    32  
    33  // GetBandwidthParam provides a mock function with given fields: ctx
    34  func (_m *ParamKeeper) GetBandwidthParam(ctx types.Context) (*param.BandwidthParam, types.Error) {
    35  	ret := _m.Called(ctx)
    36  
    37  	var r0 *param.BandwidthParam
    38  	if rf, ok := ret.Get(0).(func(types.Context) *param.BandwidthParam); ok {
    39  		r0 = rf(ctx)
    40  	} else {
    41  		if ret.Get(0) != nil {
    42  			r0 = ret.Get(0).(*param.BandwidthParam)
    43  		}
    44  	}
    45  
    46  	var r1 types.Error
    47  	if rf, ok := ret.Get(1).(func(types.Context) types.Error); ok {
    48  		r1 = rf(ctx)
    49  	} else {
    50  		if ret.Get(1) != nil {
    51  			r1 = ret.Get(1).(types.Error)
    52  		}
    53  	}
    54  
    55  	return r0, r1
    56  }
    57  
    58  // GetCoinDayParam provides a mock function with given fields: ctx
    59  func (_m *ParamKeeper) GetCoinDayParam(ctx types.Context) (*param.CoinDayParam, types.Error) {
    60  	ret := _m.Called(ctx)
    61  
    62  	var r0 *param.CoinDayParam
    63  	if rf, ok := ret.Get(0).(func(types.Context) *param.CoinDayParam); ok {
    64  		r0 = rf(ctx)
    65  	} else {
    66  		if ret.Get(0) != nil {
    67  			r0 = ret.Get(0).(*param.CoinDayParam)
    68  		}
    69  	}
    70  
    71  	var r1 types.Error
    72  	if rf, ok := ret.Get(1).(func(types.Context) types.Error); ok {
    73  		r1 = rf(ctx)
    74  	} else {
    75  		if ret.Get(1) != nil {
    76  			r1 = ret.Get(1).(types.Error)
    77  		}
    78  	}
    79  
    80  	return r0, r1
    81  }
    82  
    83  // GetDeveloperParam provides a mock function with given fields: ctx
    84  func (_m *ParamKeeper) GetDeveloperParam(ctx types.Context) (*param.DeveloperParam, types.Error) {
    85  	ret := _m.Called(ctx)
    86  
    87  	var r0 *param.DeveloperParam
    88  	if rf, ok := ret.Get(0).(func(types.Context) *param.DeveloperParam); ok {
    89  		r0 = rf(ctx)
    90  	} else {
    91  		if ret.Get(0) != nil {
    92  			r0 = ret.Get(0).(*param.DeveloperParam)
    93  		}
    94  	}
    95  
    96  	var r1 types.Error
    97  	if rf, ok := ret.Get(1).(func(types.Context) types.Error); ok {
    98  		r1 = rf(ctx)
    99  	} else {
   100  		if ret.Get(1) != nil {
   101  			r1 = ret.Get(1).(types.Error)
   102  		}
   103  	}
   104  
   105  	return r0, r1
   106  }
   107  
   108  // GetGlobalAllocationParam provides a mock function with given fields: ctx
   109  func (_m *ParamKeeper) GetGlobalAllocationParam(ctx types.Context) *param.GlobalAllocationParam {
   110  	ret := _m.Called(ctx)
   111  
   112  	var r0 *param.GlobalAllocationParam
   113  	if rf, ok := ret.Get(0).(func(types.Context) *param.GlobalAllocationParam); ok {
   114  		r0 = rf(ctx)
   115  	} else {
   116  		if ret.Get(0) != nil {
   117  			r0 = ret.Get(0).(*param.GlobalAllocationParam)
   118  		}
   119  	}
   120  
   121  	return r0
   122  }
   123  
   124  // GetPostParam provides a mock function with given fields: ctx
   125  func (_m *ParamKeeper) GetPostParam(ctx types.Context) (*param.PostParam, types.Error) {
   126  	ret := _m.Called(ctx)
   127  
   128  	var r0 *param.PostParam
   129  	if rf, ok := ret.Get(0).(func(types.Context) *param.PostParam); ok {
   130  		r0 = rf(ctx)
   131  	} else {
   132  		if ret.Get(0) != nil {
   133  			r0 = ret.Get(0).(*param.PostParam)
   134  		}
   135  	}
   136  
   137  	var r1 types.Error
   138  	if rf, ok := ret.Get(1).(func(types.Context) types.Error); ok {
   139  		r1 = rf(ctx)
   140  	} else {
   141  		if ret.Get(1) != nil {
   142  			r1 = ret.Get(1).(types.Error)
   143  		}
   144  	}
   145  
   146  	return r0, r1
   147  }
   148  
   149  // GetPriceParam provides a mock function with given fields: ctx
   150  func (_m *ParamKeeper) GetPriceParam(ctx types.Context) *param.PriceParam {
   151  	ret := _m.Called(ctx)
   152  
   153  	var r0 *param.PriceParam
   154  	if rf, ok := ret.Get(0).(func(types.Context) *param.PriceParam); ok {
   155  		r0 = rf(ctx)
   156  	} else {
   157  		if ret.Get(0) != nil {
   158  			r0 = ret.Get(0).(*param.PriceParam)
   159  		}
   160  	}
   161  
   162  	return r0
   163  }
   164  
   165  // GetProposalParam provides a mock function with given fields: ctx
   166  func (_m *ParamKeeper) GetProposalParam(ctx types.Context) (*param.ProposalParam, types.Error) {
   167  	ret := _m.Called(ctx)
   168  
   169  	var r0 *param.ProposalParam
   170  	if rf, ok := ret.Get(0).(func(types.Context) *param.ProposalParam); ok {
   171  		r0 = rf(ctx)
   172  	} else {
   173  		if ret.Get(0) != nil {
   174  			r0 = ret.Get(0).(*param.ProposalParam)
   175  		}
   176  	}
   177  
   178  	var r1 types.Error
   179  	if rf, ok := ret.Get(1).(func(types.Context) types.Error); ok {
   180  		r1 = rf(ctx)
   181  	} else {
   182  		if ret.Get(1) != nil {
   183  			r1 = ret.Get(1).(types.Error)
   184  		}
   185  	}
   186  
   187  	return r0, r1
   188  }
   189  
   190  // GetReputationParam provides a mock function with given fields: ctx
   191  func (_m *ParamKeeper) GetReputationParam(ctx types.Context) *param.ReputationParam {
   192  	ret := _m.Called(ctx)
   193  
   194  	var r0 *param.ReputationParam
   195  	if rf, ok := ret.Get(0).(func(types.Context) *param.ReputationParam); ok {
   196  		r0 = rf(ctx)
   197  	} else {
   198  		if ret.Get(0) != nil {
   199  			r0 = ret.Get(0).(*param.ReputationParam)
   200  		}
   201  	}
   202  
   203  	return r0
   204  }
   205  
   206  // GetValidatorParam provides a mock function with given fields: ctx
   207  func (_m *ParamKeeper) GetValidatorParam(ctx types.Context) *param.ValidatorParam {
   208  	ret := _m.Called(ctx)
   209  
   210  	var r0 *param.ValidatorParam
   211  	if rf, ok := ret.Get(0).(func(types.Context) *param.ValidatorParam); ok {
   212  		r0 = rf(ctx)
   213  	} else {
   214  		if ret.Get(0) != nil {
   215  			r0 = ret.Get(0).(*param.ValidatorParam)
   216  		}
   217  	}
   218  
   219  	return r0
   220  }
   221  
   222  // GetVoteParam provides a mock function with given fields: ctx
   223  func (_m *ParamKeeper) GetVoteParam(ctx types.Context) *param.VoteParam {
   224  	ret := _m.Called(ctx)
   225  
   226  	var r0 *param.VoteParam
   227  	if rf, ok := ret.Get(0).(func(types.Context) *param.VoteParam); ok {
   228  		r0 = rf(ctx)
   229  	} else {
   230  		if ret.Get(0) != nil {
   231  			r0 = ret.Get(0).(*param.VoteParam)
   232  		}
   233  	}
   234  
   235  	return r0
   236  }
   237  
   238  // UpdateGlobalGrowthRate provides a mock function with given fields: ctx, growthRate
   239  func (_m *ParamKeeper) UpdateGlobalGrowthRate(ctx types.Context, growthRate types.Dec) types.Error {
   240  	ret := _m.Called(ctx, growthRate)
   241  
   242  	var r0 types.Error
   243  	if rf, ok := ret.Get(0).(func(types.Context, types.Dec) types.Error); ok {
   244  		r0 = rf(ctx, growthRate)
   245  	} else {
   246  		if ret.Get(0) != nil {
   247  			r0 = ret.Get(0).(types.Error)
   248  		}
   249  	}
   250  
   251  	return r0
   252  }