github.com/lino-network/lino@v0.6.11/x/developer/mocks/DeveloperKeeper.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	amino "github.com/tendermint/go-amino"
     7  
     8  	linotypes "github.com/lino-network/lino/types"
     9  
    10  	mock "github.com/stretchr/testify/mock"
    11  
    12  	model "github.com/lino-network/lino/x/developer/model"
    13  
    14  	types "github.com/cosmos/cosmos-sdk/types"
    15  )
    16  
    17  // DeveloperKeeper is an autogenerated mock type for the DeveloperKeeper type
    18  type DeveloperKeeper struct {
    19  	mock.Mock
    20  }
    21  
    22  // AppTransferIDA provides a mock function with given fields: ctx, appname, signer, amount, from, to
    23  func (_m *DeveloperKeeper) AppTransferIDA(ctx types.Context, appname linotypes.AccountKey, signer linotypes.AccountKey, amount types.Int, from linotypes.AccountKey, to linotypes.AccountKey) types.Error {
    24  	ret := _m.Called(ctx, appname, signer, amount, from, to)
    25  
    26  	var r0 types.Error
    27  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey, linotypes.AccountKey, types.Int, linotypes.AccountKey, linotypes.AccountKey) types.Error); ok {
    28  		r0 = rf(ctx, appname, signer, amount, from, to)
    29  	} else {
    30  		if ret.Get(0) != nil {
    31  			r0 = ret.Get(0).(types.Error)
    32  		}
    33  	}
    34  
    35  	return r0
    36  }
    37  
    38  // BurnIDA provides a mock function with given fields: ctx, app, user, amount
    39  func (_m *DeveloperKeeper) BurnIDA(ctx types.Context, app linotypes.AccountKey, user linotypes.AccountKey, amount linotypes.MiniDollar) (linotypes.Coin, types.Error) {
    40  	ret := _m.Called(ctx, app, user, amount)
    41  
    42  	var r0 linotypes.Coin
    43  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey, linotypes.AccountKey, linotypes.MiniDollar) linotypes.Coin); ok {
    44  		r0 = rf(ctx, app, user, amount)
    45  	} else {
    46  		r0 = ret.Get(0).(linotypes.Coin)
    47  	}
    48  
    49  	var r1 types.Error
    50  	if rf, ok := ret.Get(1).(func(types.Context, linotypes.AccountKey, linotypes.AccountKey, linotypes.MiniDollar) types.Error); ok {
    51  		r1 = rf(ctx, app, user, amount)
    52  	} else {
    53  		if ret.Get(1) != nil {
    54  			r1 = ret.Get(1).(types.Error)
    55  		}
    56  	}
    57  
    58  	return r0, r1
    59  }
    60  
    61  // DoesDeveloperExist provides a mock function with given fields: ctx, username
    62  func (_m *DeveloperKeeper) DoesDeveloperExist(ctx types.Context, username linotypes.AccountKey) bool {
    63  	ret := _m.Called(ctx, username)
    64  
    65  	var r0 bool
    66  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey) bool); ok {
    67  		r0 = rf(ctx, username)
    68  	} else {
    69  		r0 = ret.Get(0).(bool)
    70  	}
    71  
    72  	return r0
    73  }
    74  
    75  // ExportToFile provides a mock function with given fields: ctx, cdc, filepath
    76  func (_m *DeveloperKeeper) ExportToFile(ctx types.Context, cdc *amino.Codec, filepath string) error {
    77  	ret := _m.Called(ctx, cdc, filepath)
    78  
    79  	var r0 error
    80  	if rf, ok := ret.Get(0).(func(types.Context, *amino.Codec, string) error); ok {
    81  		r0 = rf(ctx, cdc, filepath)
    82  	} else {
    83  		r0 = ret.Error(0)
    84  	}
    85  
    86  	return r0
    87  }
    88  
    89  // GetAffiliated provides a mock function with given fields: ctx, app
    90  func (_m *DeveloperKeeper) GetAffiliated(ctx types.Context, app linotypes.AccountKey) []linotypes.AccountKey {
    91  	ret := _m.Called(ctx, app)
    92  
    93  	var r0 []linotypes.AccountKey
    94  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey) []linotypes.AccountKey); ok {
    95  		r0 = rf(ctx, app)
    96  	} else {
    97  		if ret.Get(0) != nil {
    98  			r0 = ret.Get(0).([]linotypes.AccountKey)
    99  		}
   100  	}
   101  
   102  	return r0
   103  }
   104  
   105  // GetAffiliatingApp provides a mock function with given fields: ctx, username
   106  func (_m *DeveloperKeeper) GetAffiliatingApp(ctx types.Context, username linotypes.AccountKey) (linotypes.AccountKey, types.Error) {
   107  	ret := _m.Called(ctx, username)
   108  
   109  	var r0 linotypes.AccountKey
   110  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey) linotypes.AccountKey); ok {
   111  		r0 = rf(ctx, username)
   112  	} else {
   113  		r0 = ret.Get(0).(linotypes.AccountKey)
   114  	}
   115  
   116  	var r1 types.Error
   117  	if rf, ok := ret.Get(1).(func(types.Context, linotypes.AccountKey) types.Error); ok {
   118  		r1 = rf(ctx, username)
   119  	} else {
   120  		if ret.Get(1) != nil {
   121  			r1 = ret.Get(1).(types.Error)
   122  		}
   123  	}
   124  
   125  	return r0, r1
   126  }
   127  
   128  // GetDeveloper provides a mock function with given fields: ctx, username
   129  func (_m *DeveloperKeeper) GetDeveloper(ctx types.Context, username linotypes.AccountKey) (model.Developer, types.Error) {
   130  	ret := _m.Called(ctx, username)
   131  
   132  	var r0 model.Developer
   133  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey) model.Developer); ok {
   134  		r0 = rf(ctx, username)
   135  	} else {
   136  		r0 = ret.Get(0).(model.Developer)
   137  	}
   138  
   139  	var r1 types.Error
   140  	if rf, ok := ret.Get(1).(func(types.Context, linotypes.AccountKey) types.Error); ok {
   141  		r1 = rf(ctx, username)
   142  	} else {
   143  		if ret.Get(1) != nil {
   144  			r1 = ret.Get(1).(types.Error)
   145  		}
   146  	}
   147  
   148  	return r0, r1
   149  }
   150  
   151  // GetIDA provides a mock function with given fields: ctx, app
   152  func (_m *DeveloperKeeper) GetIDA(ctx types.Context, app linotypes.AccountKey) (model.AppIDA, types.Error) {
   153  	ret := _m.Called(ctx, app)
   154  
   155  	var r0 model.AppIDA
   156  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey) model.AppIDA); ok {
   157  		r0 = rf(ctx, app)
   158  	} else {
   159  		r0 = ret.Get(0).(model.AppIDA)
   160  	}
   161  
   162  	var r1 types.Error
   163  	if rf, ok := ret.Get(1).(func(types.Context, linotypes.AccountKey) types.Error); ok {
   164  		r1 = rf(ctx, app)
   165  	} else {
   166  		if ret.Get(1) != nil {
   167  			r1 = ret.Get(1).(types.Error)
   168  		}
   169  	}
   170  
   171  	return r0, r1
   172  }
   173  
   174  // GetIDABank provides a mock function with given fields: ctx, app, user
   175  func (_m *DeveloperKeeper) GetIDABank(ctx types.Context, app linotypes.AccountKey, user linotypes.AccountKey) (model.IDABank, types.Error) {
   176  	ret := _m.Called(ctx, app, user)
   177  
   178  	var r0 model.IDABank
   179  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey, linotypes.AccountKey) model.IDABank); ok {
   180  		r0 = rf(ctx, app, user)
   181  	} else {
   182  		r0 = ret.Get(0).(model.IDABank)
   183  	}
   184  
   185  	var r1 types.Error
   186  	if rf, ok := ret.Get(1).(func(types.Context, linotypes.AccountKey, linotypes.AccountKey) types.Error); ok {
   187  		r1 = rf(ctx, app, user)
   188  	} else {
   189  		if ret.Get(1) != nil {
   190  			r1 = ret.Get(1).(types.Error)
   191  		}
   192  	}
   193  
   194  	return r0, r1
   195  }
   196  
   197  // GetIDAStats provides a mock function with given fields: ctx, app
   198  func (_m *DeveloperKeeper) GetIDAStats(ctx types.Context, app linotypes.AccountKey) (model.AppIDAStats, types.Error) {
   199  	ret := _m.Called(ctx, app)
   200  
   201  	var r0 model.AppIDAStats
   202  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey) model.AppIDAStats); ok {
   203  		r0 = rf(ctx, app)
   204  	} else {
   205  		r0 = ret.Get(0).(model.AppIDAStats)
   206  	}
   207  
   208  	var r1 types.Error
   209  	if rf, ok := ret.Get(1).(func(types.Context, linotypes.AccountKey) types.Error); ok {
   210  		r1 = rf(ctx, app)
   211  	} else {
   212  		if ret.Get(1) != nil {
   213  			r1 = ret.Get(1).(types.Error)
   214  		}
   215  	}
   216  
   217  	return r0, r1
   218  }
   219  
   220  // GetLiveDevelopers provides a mock function with given fields: ctx
   221  func (_m *DeveloperKeeper) GetLiveDevelopers(ctx types.Context) []model.Developer {
   222  	ret := _m.Called(ctx)
   223  
   224  	var r0 []model.Developer
   225  	if rf, ok := ret.Get(0).(func(types.Context) []model.Developer); ok {
   226  		r0 = rf(ctx)
   227  	} else {
   228  		if ret.Get(0) != nil {
   229  			r0 = ret.Get(0).([]model.Developer)
   230  		}
   231  	}
   232  
   233  	return r0
   234  }
   235  
   236  // GetMiniIDAPrice provides a mock function with given fields: ctx, app
   237  func (_m *DeveloperKeeper) GetMiniIDAPrice(ctx types.Context, app linotypes.AccountKey) (linotypes.MiniDollar, types.Error) {
   238  	ret := _m.Called(ctx, app)
   239  
   240  	var r0 linotypes.MiniDollar
   241  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey) linotypes.MiniDollar); ok {
   242  		r0 = rf(ctx, app)
   243  	} else {
   244  		r0 = ret.Get(0).(linotypes.MiniDollar)
   245  	}
   246  
   247  	var r1 types.Error
   248  	if rf, ok := ret.Get(1).(func(types.Context, linotypes.AccountKey) types.Error); ok {
   249  		r1 = rf(ctx, app)
   250  	} else {
   251  		if ret.Get(1) != nil {
   252  			r1 = ret.Get(1).(types.Error)
   253  		}
   254  	}
   255  
   256  	return r0, r1
   257  }
   258  
   259  // GetReservePool provides a mock function with given fields: ctx
   260  func (_m *DeveloperKeeper) GetReservePool(ctx types.Context) model.ReservePool {
   261  	ret := _m.Called(ctx)
   262  
   263  	var r0 model.ReservePool
   264  	if rf, ok := ret.Get(0).(func(types.Context) model.ReservePool); ok {
   265  		r0 = rf(ctx)
   266  	} else {
   267  		r0 = ret.Get(0).(model.ReservePool)
   268  	}
   269  
   270  	return r0
   271  }
   272  
   273  // IDAConvertFromLino provides a mock function with given fields: ctx, username, appname, amount
   274  func (_m *DeveloperKeeper) IDAConvertFromLino(ctx types.Context, username linotypes.AccountKey, appname linotypes.AccountKey, amount linotypes.Coin) types.Error {
   275  	ret := _m.Called(ctx, username, appname, amount)
   276  
   277  	var r0 types.Error
   278  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey, linotypes.AccountKey, linotypes.Coin) types.Error); ok {
   279  		r0 = rf(ctx, username, appname, amount)
   280  	} else {
   281  		if ret.Get(0) != nil {
   282  			r0 = ret.Get(0).(types.Error)
   283  		}
   284  	}
   285  
   286  	return r0
   287  }
   288  
   289  // ImportFromFile provides a mock function with given fields: ctx, cdc, filepath
   290  func (_m *DeveloperKeeper) ImportFromFile(ctx types.Context, cdc *amino.Codec, filepath string) error {
   291  	ret := _m.Called(ctx, cdc, filepath)
   292  
   293  	var r0 error
   294  	if rf, ok := ret.Get(0).(func(types.Context, *amino.Codec, string) error); ok {
   295  		r0 = rf(ctx, cdc, filepath)
   296  	} else {
   297  		r0 = ret.Error(0)
   298  	}
   299  
   300  	return r0
   301  }
   302  
   303  // InitGenesis provides a mock function with given fields: ctx, reservePoolAmount
   304  func (_m *DeveloperKeeper) InitGenesis(ctx types.Context, reservePoolAmount linotypes.Coin) types.Error {
   305  	ret := _m.Called(ctx, reservePoolAmount)
   306  
   307  	var r0 types.Error
   308  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.Coin) types.Error); ok {
   309  		r0 = rf(ctx, reservePoolAmount)
   310  	} else {
   311  		if ret.Get(0) != nil {
   312  			r0 = ret.Get(0).(types.Error)
   313  		}
   314  	}
   315  
   316  	return r0
   317  }
   318  
   319  // IssueIDA provides a mock function with given fields: ctx, appname, idaName, idaPrice
   320  func (_m *DeveloperKeeper) IssueIDA(ctx types.Context, appname linotypes.AccountKey, idaName string, idaPrice int64) types.Error {
   321  	ret := _m.Called(ctx, appname, idaName, idaPrice)
   322  
   323  	var r0 types.Error
   324  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey, string, int64) types.Error); ok {
   325  		r0 = rf(ctx, appname, idaName, idaPrice)
   326  	} else {
   327  		if ret.Get(0) != nil {
   328  			r0 = ret.Get(0).(types.Error)
   329  		}
   330  	}
   331  
   332  	return r0
   333  }
   334  
   335  // MintIDA provides a mock function with given fields: ctx, appname, amount
   336  func (_m *DeveloperKeeper) MintIDA(ctx types.Context, appname linotypes.AccountKey, amount linotypes.Coin) types.Error {
   337  	ret := _m.Called(ctx, appname, amount)
   338  
   339  	var r0 types.Error
   340  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey, linotypes.Coin) types.Error); ok {
   341  		r0 = rf(ctx, appname, amount)
   342  	} else {
   343  		if ret.Get(0) != nil {
   344  			r0 = ret.Get(0).(types.Error)
   345  		}
   346  	}
   347  
   348  	return r0
   349  }
   350  
   351  // MonthlyDistributeDevInflation provides a mock function with given fields: ctx
   352  func (_m *DeveloperKeeper) MonthlyDistributeDevInflation(ctx types.Context) types.Error {
   353  	ret := _m.Called(ctx)
   354  
   355  	var r0 types.Error
   356  	if rf, ok := ret.Get(0).(func(types.Context) types.Error); ok {
   357  		r0 = rf(ctx)
   358  	} else {
   359  		if ret.Get(0) != nil {
   360  			r0 = ret.Get(0).(types.Error)
   361  		}
   362  	}
   363  
   364  	return r0
   365  }
   366  
   367  // MoveIDA provides a mock function with given fields: ctx, app, from, to, amount
   368  func (_m *DeveloperKeeper) MoveIDA(ctx types.Context, app linotypes.AccountKey, from linotypes.AccountKey, to linotypes.AccountKey, amount linotypes.MiniDollar) types.Error {
   369  	ret := _m.Called(ctx, app, from, to, amount)
   370  
   371  	var r0 types.Error
   372  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey, linotypes.AccountKey, linotypes.AccountKey, linotypes.MiniDollar) types.Error); ok {
   373  		r0 = rf(ctx, app, from, to, amount)
   374  	} else {
   375  		if ret.Get(0) != nil {
   376  			r0 = ret.Get(0).(types.Error)
   377  		}
   378  	}
   379  
   380  	return r0
   381  }
   382  
   383  // RegisterDeveloper provides a mock function with given fields: ctx, username, website, description, appMetaData
   384  func (_m *DeveloperKeeper) RegisterDeveloper(ctx types.Context, username linotypes.AccountKey, website string, description string, appMetaData string) types.Error {
   385  	ret := _m.Called(ctx, username, website, description, appMetaData)
   386  
   387  	var r0 types.Error
   388  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey, string, string, string) types.Error); ok {
   389  		r0 = rf(ctx, username, website, description, appMetaData)
   390  	} else {
   391  		if ret.Get(0) != nil {
   392  			r0 = ret.Get(0).(types.Error)
   393  		}
   394  	}
   395  
   396  	return r0
   397  }
   398  
   399  // ReportConsumption provides a mock function with given fields: ctx, username, consumption
   400  func (_m *DeveloperKeeper) ReportConsumption(ctx types.Context, username linotypes.AccountKey, consumption linotypes.MiniDollar) types.Error {
   401  	ret := _m.Called(ctx, username, consumption)
   402  
   403  	var r0 types.Error
   404  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey, linotypes.MiniDollar) types.Error); ok {
   405  		r0 = rf(ctx, username, consumption)
   406  	} else {
   407  		if ret.Get(0) != nil {
   408  			r0 = ret.Get(0).(types.Error)
   409  		}
   410  	}
   411  
   412  	return r0
   413  }
   414  
   415  // UpdateAffiliated provides a mock function with given fields: ctx, appname, username, activate
   416  func (_m *DeveloperKeeper) UpdateAffiliated(ctx types.Context, appname linotypes.AccountKey, username linotypes.AccountKey, activate bool) types.Error {
   417  	ret := _m.Called(ctx, appname, username, activate)
   418  
   419  	var r0 types.Error
   420  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey, linotypes.AccountKey, bool) types.Error); ok {
   421  		r0 = rf(ctx, appname, username, activate)
   422  	} else {
   423  		if ret.Get(0) != nil {
   424  			r0 = ret.Get(0).(types.Error)
   425  		}
   426  	}
   427  
   428  	return r0
   429  }
   430  
   431  // UpdateDeveloper provides a mock function with given fields: ctx, username, website, description, appMetadata
   432  func (_m *DeveloperKeeper) UpdateDeveloper(ctx types.Context, username linotypes.AccountKey, website string, description string, appMetadata string) types.Error {
   433  	ret := _m.Called(ctx, username, website, description, appMetadata)
   434  
   435  	var r0 types.Error
   436  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey, string, string, string) types.Error); ok {
   437  		r0 = rf(ctx, username, website, description, appMetadata)
   438  	} else {
   439  		if ret.Get(0) != nil {
   440  			r0 = ret.Get(0).(types.Error)
   441  		}
   442  	}
   443  
   444  	return r0
   445  }
   446  
   447  // UpdateIDAAuth provides a mock function with given fields: ctx, app, username, active
   448  func (_m *DeveloperKeeper) UpdateIDAAuth(ctx types.Context, app linotypes.AccountKey, username linotypes.AccountKey, active bool) types.Error {
   449  	ret := _m.Called(ctx, app, username, active)
   450  
   451  	var r0 types.Error
   452  	if rf, ok := ret.Get(0).(func(types.Context, linotypes.AccountKey, linotypes.AccountKey, bool) types.Error); ok {
   453  		r0 = rf(ctx, app, username, active)
   454  	} else {
   455  		if ret.Get(0) != nil {
   456  			r0 = ret.Get(0).(types.Error)
   457  		}
   458  	}
   459  
   460  	return r0
   461  }