github.com/turingchain2020/turingchain@v1.1.21/types/mocks/turingchainclient.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 context "context" 7 8 grpc "google.golang.org/grpc" 9 10 mock "github.com/stretchr/testify/mock" 11 12 types "github.com/turingchain2020/turingchain/types" 13 ) 14 15 // TuringchainClient is an autogenerated mock type for the TuringchainClient type 16 type TuringchainClient struct { 17 mock.Mock 18 } 19 20 // CloseQueue provides a mock function with given fields: ctx, in, opts 21 func (_m *TuringchainClient) CloseQueue(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Reply, error) { 22 _va := make([]interface{}, len(opts)) 23 for _i := range opts { 24 _va[_i] = opts[_i] 25 } 26 var _ca []interface{} 27 _ca = append(_ca, ctx, in) 28 _ca = append(_ca, _va...) 29 ret := _m.Called(_ca...) 30 31 var r0 *types.Reply 32 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqNil, ...grpc.CallOption) *types.Reply); ok { 33 r0 = rf(ctx, in, opts...) 34 } else { 35 if ret.Get(0) != nil { 36 r0 = ret.Get(0).(*types.Reply) 37 } 38 } 39 40 var r1 error 41 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqNil, ...grpc.CallOption) error); ok { 42 r1 = rf(ctx, in, opts...) 43 } else { 44 r1 = ret.Error(1) 45 } 46 47 return r0, r1 48 } 49 50 // CreateNoBalanceTransaction provides a mock function with given fields: ctx, in, opts 51 func (_m *TuringchainClient) CreateNoBalanceTransaction(ctx context.Context, in *types.NoBalanceTx, opts ...grpc.CallOption) (*types.ReplySignRawTx, error) { 52 _va := make([]interface{}, len(opts)) 53 for _i := range opts { 54 _va[_i] = opts[_i] 55 } 56 var _ca []interface{} 57 _ca = append(_ca, ctx, in) 58 _ca = append(_ca, _va...) 59 ret := _m.Called(_ca...) 60 61 var r0 *types.ReplySignRawTx 62 if rf, ok := ret.Get(0).(func(context.Context, *types.NoBalanceTx, ...grpc.CallOption) *types.ReplySignRawTx); ok { 63 r0 = rf(ctx, in, opts...) 64 } else { 65 if ret.Get(0) != nil { 66 r0 = ret.Get(0).(*types.ReplySignRawTx) 67 } 68 } 69 70 var r1 error 71 if rf, ok := ret.Get(1).(func(context.Context, *types.NoBalanceTx, ...grpc.CallOption) error); ok { 72 r1 = rf(ctx, in, opts...) 73 } else { 74 r1 = ret.Error(1) 75 } 76 77 return r0, r1 78 } 79 80 // CreateNoBalanceTxs provides a mock function with given fields: ctx, in, opts 81 func (_m *TuringchainClient) CreateNoBalanceTxs(ctx context.Context, in *types.NoBalanceTxs, opts ...grpc.CallOption) (*types.ReplySignRawTx, error) { 82 _va := make([]interface{}, len(opts)) 83 for _i := range opts { 84 _va[_i] = opts[_i] 85 } 86 var _ca []interface{} 87 _ca = append(_ca, ctx, in) 88 _ca = append(_ca, _va...) 89 ret := _m.Called(_ca...) 90 91 var r0 *types.ReplySignRawTx 92 if rf, ok := ret.Get(0).(func(context.Context, *types.NoBalanceTxs, ...grpc.CallOption) *types.ReplySignRawTx); ok { 93 r0 = rf(ctx, in, opts...) 94 } else { 95 if ret.Get(0) != nil { 96 r0 = ret.Get(0).(*types.ReplySignRawTx) 97 } 98 } 99 100 var r1 error 101 if rf, ok := ret.Get(1).(func(context.Context, *types.NoBalanceTxs, ...grpc.CallOption) error); ok { 102 r1 = rf(ctx, in, opts...) 103 } else { 104 r1 = ret.Error(1) 105 } 106 107 return r0, r1 108 } 109 110 // CreateRawTransaction provides a mock function with given fields: ctx, in, opts 111 func (_m *TuringchainClient) CreateRawTransaction(ctx context.Context, in *types.CreateTx, opts ...grpc.CallOption) (*types.UnsignTx, error) { 112 _va := make([]interface{}, len(opts)) 113 for _i := range opts { 114 _va[_i] = opts[_i] 115 } 116 var _ca []interface{} 117 _ca = append(_ca, ctx, in) 118 _ca = append(_ca, _va...) 119 ret := _m.Called(_ca...) 120 121 var r0 *types.UnsignTx 122 if rf, ok := ret.Get(0).(func(context.Context, *types.CreateTx, ...grpc.CallOption) *types.UnsignTx); ok { 123 r0 = rf(ctx, in, opts...) 124 } else { 125 if ret.Get(0) != nil { 126 r0 = ret.Get(0).(*types.UnsignTx) 127 } 128 } 129 130 var r1 error 131 if rf, ok := ret.Get(1).(func(context.Context, *types.CreateTx, ...grpc.CallOption) error); ok { 132 r1 = rf(ctx, in, opts...) 133 } else { 134 r1 = ret.Error(1) 135 } 136 137 return r0, r1 138 } 139 140 // CreateRawTxGroup provides a mock function with given fields: ctx, in, opts 141 func (_m *TuringchainClient) CreateRawTxGroup(ctx context.Context, in *types.CreateTransactionGroup, opts ...grpc.CallOption) (*types.UnsignTx, error) { 142 _va := make([]interface{}, len(opts)) 143 for _i := range opts { 144 _va[_i] = opts[_i] 145 } 146 var _ca []interface{} 147 _ca = append(_ca, ctx, in) 148 _ca = append(_ca, _va...) 149 ret := _m.Called(_ca...) 150 151 var r0 *types.UnsignTx 152 if rf, ok := ret.Get(0).(func(context.Context, *types.CreateTransactionGroup, ...grpc.CallOption) *types.UnsignTx); ok { 153 r0 = rf(ctx, in, opts...) 154 } else { 155 if ret.Get(0) != nil { 156 r0 = ret.Get(0).(*types.UnsignTx) 157 } 158 } 159 160 var r1 error 161 if rf, ok := ret.Get(1).(func(context.Context, *types.CreateTransactionGroup, ...grpc.CallOption) error); ok { 162 r1 = rf(ctx, in, opts...) 163 } else { 164 r1 = ret.Error(1) 165 } 166 167 return r0, r1 168 } 169 170 // CreateTransaction provides a mock function with given fields: ctx, in, opts 171 func (_m *TuringchainClient) CreateTransaction(ctx context.Context, in *types.CreateTxIn, opts ...grpc.CallOption) (*types.UnsignTx, error) { 172 _va := make([]interface{}, len(opts)) 173 for _i := range opts { 174 _va[_i] = opts[_i] 175 } 176 var _ca []interface{} 177 _ca = append(_ca, ctx, in) 178 _ca = append(_ca, _va...) 179 ret := _m.Called(_ca...) 180 181 var r0 *types.UnsignTx 182 if rf, ok := ret.Get(0).(func(context.Context, *types.CreateTxIn, ...grpc.CallOption) *types.UnsignTx); ok { 183 r0 = rf(ctx, in, opts...) 184 } else { 185 if ret.Get(0) != nil { 186 r0 = ret.Get(0).(*types.UnsignTx) 187 } 188 } 189 190 var r1 error 191 if rf, ok := ret.Get(1).(func(context.Context, *types.CreateTxIn, ...grpc.CallOption) error); ok { 192 r1 = rf(ctx, in, opts...) 193 } else { 194 r1 = ret.Error(1) 195 } 196 197 return r0, r1 198 } 199 200 // DumpPrivkey provides a mock function with given fields: ctx, in, opts 201 func (_m *TuringchainClient) DumpPrivkey(ctx context.Context, in *types.ReqString, opts ...grpc.CallOption) (*types.ReplyString, error) { 202 _va := make([]interface{}, len(opts)) 203 for _i := range opts { 204 _va[_i] = opts[_i] 205 } 206 var _ca []interface{} 207 _ca = append(_ca, ctx, in) 208 _ca = append(_ca, _va...) 209 ret := _m.Called(_ca...) 210 211 var r0 *types.ReplyString 212 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqString, ...grpc.CallOption) *types.ReplyString); ok { 213 r0 = rf(ctx, in, opts...) 214 } else { 215 if ret.Get(0) != nil { 216 r0 = ret.Get(0).(*types.ReplyString) 217 } 218 } 219 220 var r1 error 221 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqString, ...grpc.CallOption) error); ok { 222 r1 = rf(ctx, in, opts...) 223 } else { 224 r1 = ret.Error(1) 225 } 226 227 return r0, r1 228 } 229 230 // DumpPrivkeysFile provides a mock function with given fields: ctx, in, opts 231 func (_m *TuringchainClient) DumpPrivkeysFile(ctx context.Context, in *types.ReqPrivkeysFile, opts ...grpc.CallOption) (*types.Reply, error) { 232 _va := make([]interface{}, len(opts)) 233 for _i := range opts { 234 _va[_i] = opts[_i] 235 } 236 var _ca []interface{} 237 _ca = append(_ca, ctx, in) 238 _ca = append(_ca, _va...) 239 ret := _m.Called(_ca...) 240 241 var r0 *types.Reply 242 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqPrivkeysFile, ...grpc.CallOption) *types.Reply); ok { 243 r0 = rf(ctx, in, opts...) 244 } else { 245 if ret.Get(0) != nil { 246 r0 = ret.Get(0).(*types.Reply) 247 } 248 } 249 250 var r1 error 251 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqPrivkeysFile, ...grpc.CallOption) error); ok { 252 r1 = rf(ctx, in, opts...) 253 } else { 254 r1 = ret.Error(1) 255 } 256 257 return r0, r1 258 } 259 260 // ExecWallet provides a mock function with given fields: ctx, in, opts 261 func (_m *TuringchainClient) ExecWallet(ctx context.Context, in *types.ChainExecutor, opts ...grpc.CallOption) (*types.Reply, error) { 262 _va := make([]interface{}, len(opts)) 263 for _i := range opts { 264 _va[_i] = opts[_i] 265 } 266 var _ca []interface{} 267 _ca = append(_ca, ctx, in) 268 _ca = append(_ca, _va...) 269 ret := _m.Called(_ca...) 270 271 var r0 *types.Reply 272 if rf, ok := ret.Get(0).(func(context.Context, *types.ChainExecutor, ...grpc.CallOption) *types.Reply); ok { 273 r0 = rf(ctx, in, opts...) 274 } else { 275 if ret.Get(0) != nil { 276 r0 = ret.Get(0).(*types.Reply) 277 } 278 } 279 280 var r1 error 281 if rf, ok := ret.Get(1).(func(context.Context, *types.ChainExecutor, ...grpc.CallOption) error); ok { 282 r1 = rf(ctx, in, opts...) 283 } else { 284 r1 = ret.Error(1) 285 } 286 287 return r0, r1 288 } 289 290 // GenSeed provides a mock function with given fields: ctx, in, opts 291 func (_m *TuringchainClient) GenSeed(ctx context.Context, in *types.GenSeedLang, opts ...grpc.CallOption) (*types.ReplySeed, error) { 292 _va := make([]interface{}, len(opts)) 293 for _i := range opts { 294 _va[_i] = opts[_i] 295 } 296 var _ca []interface{} 297 _ca = append(_ca, ctx, in) 298 _ca = append(_ca, _va...) 299 ret := _m.Called(_ca...) 300 301 var r0 *types.ReplySeed 302 if rf, ok := ret.Get(0).(func(context.Context, *types.GenSeedLang, ...grpc.CallOption) *types.ReplySeed); ok { 303 r0 = rf(ctx, in, opts...) 304 } else { 305 if ret.Get(0) != nil { 306 r0 = ret.Get(0).(*types.ReplySeed) 307 } 308 } 309 310 var r1 error 311 if rf, ok := ret.Get(1).(func(context.Context, *types.GenSeedLang, ...grpc.CallOption) error); ok { 312 r1 = rf(ctx, in, opts...) 313 } else { 314 r1 = ret.Error(1) 315 } 316 317 return r0, r1 318 } 319 320 // GetAccount provides a mock function with given fields: ctx, in, opts 321 func (_m *TuringchainClient) GetAccount(ctx context.Context, in *types.ReqGetAccount, opts ...grpc.CallOption) (*types.WalletAccount, error) { 322 _va := make([]interface{}, len(opts)) 323 for _i := range opts { 324 _va[_i] = opts[_i] 325 } 326 var _ca []interface{} 327 _ca = append(_ca, ctx, in) 328 _ca = append(_ca, _va...) 329 ret := _m.Called(_ca...) 330 331 var r0 *types.WalletAccount 332 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqGetAccount, ...grpc.CallOption) *types.WalletAccount); ok { 333 r0 = rf(ctx, in, opts...) 334 } else { 335 if ret.Get(0) != nil { 336 r0 = ret.Get(0).(*types.WalletAccount) 337 } 338 } 339 340 var r1 error 341 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqGetAccount, ...grpc.CallOption) error); ok { 342 r1 = rf(ctx, in, opts...) 343 } else { 344 r1 = ret.Error(1) 345 } 346 347 return r0, r1 348 } 349 350 // GetAccounts provides a mock function with given fields: ctx, in, opts 351 func (_m *TuringchainClient) GetAccounts(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.WalletAccounts, error) { 352 _va := make([]interface{}, len(opts)) 353 for _i := range opts { 354 _va[_i] = opts[_i] 355 } 356 var _ca []interface{} 357 _ca = append(_ca, ctx, in) 358 _ca = append(_ca, _va...) 359 ret := _m.Called(_ca...) 360 361 var r0 *types.WalletAccounts 362 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqNil, ...grpc.CallOption) *types.WalletAccounts); ok { 363 r0 = rf(ctx, in, opts...) 364 } else { 365 if ret.Get(0) != nil { 366 r0 = ret.Get(0).(*types.WalletAccounts) 367 } 368 } 369 370 var r1 error 371 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqNil, ...grpc.CallOption) error); ok { 372 r1 = rf(ctx, in, opts...) 373 } else { 374 r1 = ret.Error(1) 375 } 376 377 return r0, r1 378 } 379 380 // GetAddrOverview provides a mock function with given fields: ctx, in, opts 381 func (_m *TuringchainClient) GetAddrOverview(ctx context.Context, in *types.ReqAddr, opts ...grpc.CallOption) (*types.AddrOverview, error) { 382 _va := make([]interface{}, len(opts)) 383 for _i := range opts { 384 _va[_i] = opts[_i] 385 } 386 var _ca []interface{} 387 _ca = append(_ca, ctx, in) 388 _ca = append(_ca, _va...) 389 ret := _m.Called(_ca...) 390 391 var r0 *types.AddrOverview 392 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqAddr, ...grpc.CallOption) *types.AddrOverview); ok { 393 r0 = rf(ctx, in, opts...) 394 } else { 395 if ret.Get(0) != nil { 396 r0 = ret.Get(0).(*types.AddrOverview) 397 } 398 } 399 400 var r1 error 401 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqAddr, ...grpc.CallOption) error); ok { 402 r1 = rf(ctx, in, opts...) 403 } else { 404 r1 = ret.Error(1) 405 } 406 407 return r0, r1 408 } 409 410 // GetAllExecBalance provides a mock function with given fields: ctx, in, opts 411 func (_m *TuringchainClient) GetAllExecBalance(ctx context.Context, in *types.ReqAllExecBalance, opts ...grpc.CallOption) (*types.AllExecBalance, error) { 412 _va := make([]interface{}, len(opts)) 413 for _i := range opts { 414 _va[_i] = opts[_i] 415 } 416 var _ca []interface{} 417 _ca = append(_ca, ctx, in) 418 _ca = append(_ca, _va...) 419 ret := _m.Called(_ca...) 420 421 var r0 *types.AllExecBalance 422 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqAllExecBalance, ...grpc.CallOption) *types.AllExecBalance); ok { 423 r0 = rf(ctx, in, opts...) 424 } else { 425 if ret.Get(0) != nil { 426 r0 = ret.Get(0).(*types.AllExecBalance) 427 } 428 } 429 430 var r1 error 431 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqAllExecBalance, ...grpc.CallOption) error); ok { 432 r1 = rf(ctx, in, opts...) 433 } else { 434 r1 = ret.Error(1) 435 } 436 437 return r0, r1 438 } 439 440 // GetBalance provides a mock function with given fields: ctx, in, opts 441 func (_m *TuringchainClient) GetBalance(ctx context.Context, in *types.ReqBalance, opts ...grpc.CallOption) (*types.Accounts, error) { 442 _va := make([]interface{}, len(opts)) 443 for _i := range opts { 444 _va[_i] = opts[_i] 445 } 446 var _ca []interface{} 447 _ca = append(_ca, ctx, in) 448 _ca = append(_ca, _va...) 449 ret := _m.Called(_ca...) 450 451 var r0 *types.Accounts 452 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqBalance, ...grpc.CallOption) *types.Accounts); ok { 453 r0 = rf(ctx, in, opts...) 454 } else { 455 if ret.Get(0) != nil { 456 r0 = ret.Get(0).(*types.Accounts) 457 } 458 } 459 460 var r1 error 461 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqBalance, ...grpc.CallOption) error); ok { 462 r1 = rf(ctx, in, opts...) 463 } else { 464 r1 = ret.Error(1) 465 } 466 467 return r0, r1 468 } 469 470 // GetBlockByHashes provides a mock function with given fields: ctx, in, opts 471 func (_m *TuringchainClient) GetBlockByHashes(ctx context.Context, in *types.ReqHashes, opts ...grpc.CallOption) (*types.BlockDetails, error) { 472 _va := make([]interface{}, len(opts)) 473 for _i := range opts { 474 _va[_i] = opts[_i] 475 } 476 var _ca []interface{} 477 _ca = append(_ca, ctx, in) 478 _ca = append(_ca, _va...) 479 ret := _m.Called(_ca...) 480 481 var r0 *types.BlockDetails 482 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqHashes, ...grpc.CallOption) *types.BlockDetails); ok { 483 r0 = rf(ctx, in, opts...) 484 } else { 485 if ret.Get(0) != nil { 486 r0 = ret.Get(0).(*types.BlockDetails) 487 } 488 } 489 490 var r1 error 491 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqHashes, ...grpc.CallOption) error); ok { 492 r1 = rf(ctx, in, opts...) 493 } else { 494 r1 = ret.Error(1) 495 } 496 497 return r0, r1 498 } 499 500 // GetBlockBySeq provides a mock function with given fields: ctx, in, opts 501 func (_m *TuringchainClient) GetBlockBySeq(ctx context.Context, in *types.Int64, opts ...grpc.CallOption) (*types.BlockSeq, error) { 502 _va := make([]interface{}, len(opts)) 503 for _i := range opts { 504 _va[_i] = opts[_i] 505 } 506 var _ca []interface{} 507 _ca = append(_ca, ctx, in) 508 _ca = append(_ca, _va...) 509 ret := _m.Called(_ca...) 510 511 var r0 *types.BlockSeq 512 if rf, ok := ret.Get(0).(func(context.Context, *types.Int64, ...grpc.CallOption) *types.BlockSeq); ok { 513 r0 = rf(ctx, in, opts...) 514 } else { 515 if ret.Get(0) != nil { 516 r0 = ret.Get(0).(*types.BlockSeq) 517 } 518 } 519 520 var r1 error 521 if rf, ok := ret.Get(1).(func(context.Context, *types.Int64, ...grpc.CallOption) error); ok { 522 r1 = rf(ctx, in, opts...) 523 } else { 524 r1 = ret.Error(1) 525 } 526 527 return r0, r1 528 } 529 530 // GetBlockHash provides a mock function with given fields: ctx, in, opts 531 func (_m *TuringchainClient) GetBlockHash(ctx context.Context, in *types.ReqInt, opts ...grpc.CallOption) (*types.ReplyHash, error) { 532 _va := make([]interface{}, len(opts)) 533 for _i := range opts { 534 _va[_i] = opts[_i] 535 } 536 var _ca []interface{} 537 _ca = append(_ca, ctx, in) 538 _ca = append(_ca, _va...) 539 ret := _m.Called(_ca...) 540 541 var r0 *types.ReplyHash 542 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqInt, ...grpc.CallOption) *types.ReplyHash); ok { 543 r0 = rf(ctx, in, opts...) 544 } else { 545 if ret.Get(0) != nil { 546 r0 = ret.Get(0).(*types.ReplyHash) 547 } 548 } 549 550 var r1 error 551 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqInt, ...grpc.CallOption) error); ok { 552 r1 = rf(ctx, in, opts...) 553 } else { 554 r1 = ret.Error(1) 555 } 556 557 return r0, r1 558 } 559 560 // GetBlockOverview provides a mock function with given fields: ctx, in, opts 561 func (_m *TuringchainClient) GetBlockOverview(ctx context.Context, in *types.ReqHash, opts ...grpc.CallOption) (*types.BlockOverview, error) { 562 _va := make([]interface{}, len(opts)) 563 for _i := range opts { 564 _va[_i] = opts[_i] 565 } 566 var _ca []interface{} 567 _ca = append(_ca, ctx, in) 568 _ca = append(_ca, _va...) 569 ret := _m.Called(_ca...) 570 571 var r0 *types.BlockOverview 572 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqHash, ...grpc.CallOption) *types.BlockOverview); ok { 573 r0 = rf(ctx, in, opts...) 574 } else { 575 if ret.Get(0) != nil { 576 r0 = ret.Get(0).(*types.BlockOverview) 577 } 578 } 579 580 var r1 error 581 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqHash, ...grpc.CallOption) error); ok { 582 r1 = rf(ctx, in, opts...) 583 } else { 584 r1 = ret.Error(1) 585 } 586 587 return r0, r1 588 } 589 590 // GetBlocks provides a mock function with given fields: ctx, in, opts 591 func (_m *TuringchainClient) GetBlocks(ctx context.Context, in *types.ReqBlocks, opts ...grpc.CallOption) (*types.Reply, error) { 592 _va := make([]interface{}, len(opts)) 593 for _i := range opts { 594 _va[_i] = opts[_i] 595 } 596 var _ca []interface{} 597 _ca = append(_ca, ctx, in) 598 _ca = append(_ca, _va...) 599 ret := _m.Called(_ca...) 600 601 var r0 *types.Reply 602 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqBlocks, ...grpc.CallOption) *types.Reply); ok { 603 r0 = rf(ctx, in, opts...) 604 } else { 605 if ret.Get(0) != nil { 606 r0 = ret.Get(0).(*types.Reply) 607 } 608 } 609 610 var r1 error 611 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqBlocks, ...grpc.CallOption) error); ok { 612 r1 = rf(ctx, in, opts...) 613 } else { 614 r1 = ret.Error(1) 615 } 616 617 return r0, r1 618 } 619 620 // GetFatalFailure provides a mock function with given fields: ctx, in, opts 621 func (_m *TuringchainClient) GetFatalFailure(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Int32, error) { 622 _va := make([]interface{}, len(opts)) 623 for _i := range opts { 624 _va[_i] = opts[_i] 625 } 626 var _ca []interface{} 627 _ca = append(_ca, ctx, in) 628 _ca = append(_ca, _va...) 629 ret := _m.Called(_ca...) 630 631 var r0 *types.Int32 632 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqNil, ...grpc.CallOption) *types.Int32); ok { 633 r0 = rf(ctx, in, opts...) 634 } else { 635 if ret.Get(0) != nil { 636 r0 = ret.Get(0).(*types.Int32) 637 } 638 } 639 640 var r1 error 641 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqNil, ...grpc.CallOption) error); ok { 642 r1 = rf(ctx, in, opts...) 643 } else { 644 r1 = ret.Error(1) 645 } 646 647 return r0, r1 648 } 649 650 // GetFork provides a mock function with given fields: ctx, in, opts 651 func (_m *TuringchainClient) GetFork(ctx context.Context, in *types.ReqKey, opts ...grpc.CallOption) (*types.Int64, error) { 652 _va := make([]interface{}, len(opts)) 653 for _i := range opts { 654 _va[_i] = opts[_i] 655 } 656 var _ca []interface{} 657 _ca = append(_ca, ctx, in) 658 _ca = append(_ca, _va...) 659 ret := _m.Called(_ca...) 660 661 var r0 *types.Int64 662 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqKey, ...grpc.CallOption) *types.Int64); ok { 663 r0 = rf(ctx, in, opts...) 664 } else { 665 if ret.Get(0) != nil { 666 r0 = ret.Get(0).(*types.Int64) 667 } 668 } 669 670 var r1 error 671 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqKey, ...grpc.CallOption) error); ok { 672 r1 = rf(ctx, in, opts...) 673 } else { 674 r1 = ret.Error(1) 675 } 676 677 return r0, r1 678 } 679 680 // GetHeaders provides a mock function with given fields: ctx, in, opts 681 func (_m *TuringchainClient) GetHeaders(ctx context.Context, in *types.ReqBlocks, opts ...grpc.CallOption) (*types.Headers, error) { 682 _va := make([]interface{}, len(opts)) 683 for _i := range opts { 684 _va[_i] = opts[_i] 685 } 686 var _ca []interface{} 687 _ca = append(_ca, ctx, in) 688 _ca = append(_ca, _va...) 689 ret := _m.Called(_ca...) 690 691 var r0 *types.Headers 692 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqBlocks, ...grpc.CallOption) *types.Headers); ok { 693 r0 = rf(ctx, in, opts...) 694 } else { 695 if ret.Get(0) != nil { 696 r0 = ret.Get(0).(*types.Headers) 697 } 698 } 699 700 var r1 error 701 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqBlocks, ...grpc.CallOption) error); ok { 702 r1 = rf(ctx, in, opts...) 703 } else { 704 r1 = ret.Error(1) 705 } 706 707 return r0, r1 708 } 709 710 // GetHexTxByHash provides a mock function with given fields: ctx, in, opts 711 func (_m *TuringchainClient) GetHexTxByHash(ctx context.Context, in *types.ReqHash, opts ...grpc.CallOption) (*types.HexTx, error) { 712 _va := make([]interface{}, len(opts)) 713 for _i := range opts { 714 _va[_i] = opts[_i] 715 } 716 var _ca []interface{} 717 _ca = append(_ca, ctx, in) 718 _ca = append(_ca, _va...) 719 ret := _m.Called(_ca...) 720 721 var r0 *types.HexTx 722 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqHash, ...grpc.CallOption) *types.HexTx); ok { 723 r0 = rf(ctx, in, opts...) 724 } else { 725 if ret.Get(0) != nil { 726 r0 = ret.Get(0).(*types.HexTx) 727 } 728 } 729 730 var r1 error 731 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqHash, ...grpc.CallOption) error); ok { 732 r1 = rf(ctx, in, opts...) 733 } else { 734 r1 = ret.Error(1) 735 } 736 737 return r0, r1 738 } 739 740 // GetLastBlockSequence provides a mock function with given fields: ctx, in, opts 741 func (_m *TuringchainClient) GetLastBlockSequence(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Int64, error) { 742 _va := make([]interface{}, len(opts)) 743 for _i := range opts { 744 _va[_i] = opts[_i] 745 } 746 var _ca []interface{} 747 _ca = append(_ca, ctx, in) 748 _ca = append(_ca, _va...) 749 ret := _m.Called(_ca...) 750 751 var r0 *types.Int64 752 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqNil, ...grpc.CallOption) *types.Int64); ok { 753 r0 = rf(ctx, in, opts...) 754 } else { 755 if ret.Get(0) != nil { 756 r0 = ret.Get(0).(*types.Int64) 757 } 758 } 759 760 var r1 error 761 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqNil, ...grpc.CallOption) error); ok { 762 r1 = rf(ctx, in, opts...) 763 } else { 764 r1 = ret.Error(1) 765 } 766 767 return r0, r1 768 } 769 770 // GetLastHeader provides a mock function with given fields: ctx, in, opts 771 func (_m *TuringchainClient) GetLastHeader(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Header, error) { 772 _va := make([]interface{}, len(opts)) 773 for _i := range opts { 774 _va[_i] = opts[_i] 775 } 776 var _ca []interface{} 777 _ca = append(_ca, ctx, in) 778 _ca = append(_ca, _va...) 779 ret := _m.Called(_ca...) 780 781 var r0 *types.Header 782 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqNil, ...grpc.CallOption) *types.Header); ok { 783 r0 = rf(ctx, in, opts...) 784 } else { 785 if ret.Get(0) != nil { 786 r0 = ret.Get(0).(*types.Header) 787 } 788 } 789 790 var r1 error 791 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqNil, ...grpc.CallOption) error); ok { 792 r1 = rf(ctx, in, opts...) 793 } else { 794 r1 = ret.Error(1) 795 } 796 797 return r0, r1 798 } 799 800 // GetLastMemPool provides a mock function with given fields: ctx, in, opts 801 func (_m *TuringchainClient) GetLastMemPool(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.ReplyTxList, error) { 802 _va := make([]interface{}, len(opts)) 803 for _i := range opts { 804 _va[_i] = opts[_i] 805 } 806 var _ca []interface{} 807 _ca = append(_ca, ctx, in) 808 _ca = append(_ca, _va...) 809 ret := _m.Called(_ca...) 810 811 var r0 *types.ReplyTxList 812 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqNil, ...grpc.CallOption) *types.ReplyTxList); ok { 813 r0 = rf(ctx, in, opts...) 814 } else { 815 if ret.Get(0) != nil { 816 r0 = ret.Get(0).(*types.ReplyTxList) 817 } 818 } 819 820 var r1 error 821 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqNil, ...grpc.CallOption) error); ok { 822 r1 = rf(ctx, in, opts...) 823 } else { 824 r1 = ret.Error(1) 825 } 826 827 return r0, r1 828 } 829 830 // GetMemPool provides a mock function with given fields: ctx, in, opts 831 func (_m *TuringchainClient) GetMemPool(ctx context.Context, in *types.ReqGetMempool, opts ...grpc.CallOption) (*types.ReplyTxList, error) { 832 _va := make([]interface{}, len(opts)) 833 for _i := range opts { 834 _va[_i] = opts[_i] 835 } 836 var _ca []interface{} 837 _ca = append(_ca, ctx, in) 838 _ca = append(_ca, _va...) 839 ret := _m.Called(_ca...) 840 841 var r0 *types.ReplyTxList 842 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqGetMempool, ...grpc.CallOption) *types.ReplyTxList); ok { 843 r0 = rf(ctx, in, opts...) 844 } else { 845 if ret.Get(0) != nil { 846 r0 = ret.Get(0).(*types.ReplyTxList) 847 } 848 } 849 850 var r1 error 851 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqGetMempool, ...grpc.CallOption) error); ok { 852 r1 = rf(ctx, in, opts...) 853 } else { 854 r1 = ret.Error(1) 855 } 856 857 return r0, r1 858 } 859 860 // GetParaTxByHeight provides a mock function with given fields: ctx, in, opts 861 func (_m *TuringchainClient) GetParaTxByHeight(ctx context.Context, in *types.ReqParaTxByHeight, opts ...grpc.CallOption) (*types.ParaTxDetails, error) { 862 _va := make([]interface{}, len(opts)) 863 for _i := range opts { 864 _va[_i] = opts[_i] 865 } 866 var _ca []interface{} 867 _ca = append(_ca, ctx, in) 868 _ca = append(_ca, _va...) 869 ret := _m.Called(_ca...) 870 871 var r0 *types.ParaTxDetails 872 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqParaTxByHeight, ...grpc.CallOption) *types.ParaTxDetails); ok { 873 r0 = rf(ctx, in, opts...) 874 } else { 875 if ret.Get(0) != nil { 876 r0 = ret.Get(0).(*types.ParaTxDetails) 877 } 878 } 879 880 var r1 error 881 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqParaTxByHeight, ...grpc.CallOption) error); ok { 882 r1 = rf(ctx, in, opts...) 883 } else { 884 r1 = ret.Error(1) 885 } 886 887 return r0, r1 888 } 889 890 // GetParaTxByTitle provides a mock function with given fields: ctx, in, opts 891 func (_m *TuringchainClient) GetParaTxByTitle(ctx context.Context, in *types.ReqParaTxByTitle, opts ...grpc.CallOption) (*types.ParaTxDetails, error) { 892 _va := make([]interface{}, len(opts)) 893 for _i := range opts { 894 _va[_i] = opts[_i] 895 } 896 var _ca []interface{} 897 _ca = append(_ca, ctx, in) 898 _ca = append(_ca, _va...) 899 ret := _m.Called(_ca...) 900 901 var r0 *types.ParaTxDetails 902 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqParaTxByTitle, ...grpc.CallOption) *types.ParaTxDetails); ok { 903 r0 = rf(ctx, in, opts...) 904 } else { 905 if ret.Get(0) != nil { 906 r0 = ret.Get(0).(*types.ParaTxDetails) 907 } 908 } 909 910 var r1 error 911 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqParaTxByTitle, ...grpc.CallOption) error); ok { 912 r1 = rf(ctx, in, opts...) 913 } else { 914 r1 = ret.Error(1) 915 } 916 917 return r0, r1 918 } 919 920 // GetPeerInfo provides a mock function with given fields: ctx, in, opts 921 func (_m *TuringchainClient) GetPeerInfo(ctx context.Context, in *types.P2PGetPeerReq, opts ...grpc.CallOption) (*types.PeerList, error) { 922 _va := make([]interface{}, len(opts)) 923 for _i := range opts { 924 _va[_i] = opts[_i] 925 } 926 var _ca []interface{} 927 _ca = append(_ca, ctx, in) 928 _ca = append(_ca, _va...) 929 ret := _m.Called(_ca...) 930 931 var r0 *types.PeerList 932 if rf, ok := ret.Get(0).(func(context.Context, *types.P2PGetPeerReq, ...grpc.CallOption) *types.PeerList); ok { 933 r0 = rf(ctx, in, opts...) 934 } else { 935 if ret.Get(0) != nil { 936 r0 = ret.Get(0).(*types.PeerList) 937 } 938 } 939 940 var r1 error 941 if rf, ok := ret.Get(1).(func(context.Context, *types.P2PGetPeerReq, ...grpc.CallOption) error); ok { 942 r1 = rf(ctx, in, opts...) 943 } else { 944 r1 = ret.Error(1) 945 } 946 947 return r0, r1 948 } 949 950 // GetProperFee provides a mock function with given fields: ctx, in, opts 951 func (_m *TuringchainClient) GetProperFee(ctx context.Context, in *types.ReqProperFee, opts ...grpc.CallOption) (*types.ReplyProperFee, error) { 952 _va := make([]interface{}, len(opts)) 953 for _i := range opts { 954 _va[_i] = opts[_i] 955 } 956 var _ca []interface{} 957 _ca = append(_ca, ctx, in) 958 _ca = append(_ca, _va...) 959 ret := _m.Called(_ca...) 960 961 var r0 *types.ReplyProperFee 962 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqProperFee, ...grpc.CallOption) *types.ReplyProperFee); ok { 963 r0 = rf(ctx, in, opts...) 964 } else { 965 if ret.Get(0) != nil { 966 r0 = ret.Get(0).(*types.ReplyProperFee) 967 } 968 } 969 970 var r1 error 971 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqProperFee, ...grpc.CallOption) error); ok { 972 r1 = rf(ctx, in, opts...) 973 } else { 974 r1 = ret.Error(1) 975 } 976 977 return r0, r1 978 } 979 980 // GetSeed provides a mock function with given fields: ctx, in, opts 981 func (_m *TuringchainClient) GetSeed(ctx context.Context, in *types.GetSeedByPw, opts ...grpc.CallOption) (*types.ReplySeed, error) { 982 _va := make([]interface{}, len(opts)) 983 for _i := range opts { 984 _va[_i] = opts[_i] 985 } 986 var _ca []interface{} 987 _ca = append(_ca, ctx, in) 988 _ca = append(_ca, _va...) 989 ret := _m.Called(_ca...) 990 991 var r0 *types.ReplySeed 992 if rf, ok := ret.Get(0).(func(context.Context, *types.GetSeedByPw, ...grpc.CallOption) *types.ReplySeed); ok { 993 r0 = rf(ctx, in, opts...) 994 } else { 995 if ret.Get(0) != nil { 996 r0 = ret.Get(0).(*types.ReplySeed) 997 } 998 } 999 1000 var r1 error 1001 if rf, ok := ret.Get(1).(func(context.Context, *types.GetSeedByPw, ...grpc.CallOption) error); ok { 1002 r1 = rf(ctx, in, opts...) 1003 } else { 1004 r1 = ret.Error(1) 1005 } 1006 1007 return r0, r1 1008 } 1009 1010 // GetSequenceByHash provides a mock function with given fields: ctx, in, opts 1011 func (_m *TuringchainClient) GetSequenceByHash(ctx context.Context, in *types.ReqHash, opts ...grpc.CallOption) (*types.Int64, error) { 1012 _va := make([]interface{}, len(opts)) 1013 for _i := range opts { 1014 _va[_i] = opts[_i] 1015 } 1016 var _ca []interface{} 1017 _ca = append(_ca, ctx, in) 1018 _ca = append(_ca, _va...) 1019 ret := _m.Called(_ca...) 1020 1021 var r0 *types.Int64 1022 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqHash, ...grpc.CallOption) *types.Int64); ok { 1023 r0 = rf(ctx, in, opts...) 1024 } else { 1025 if ret.Get(0) != nil { 1026 r0 = ret.Get(0).(*types.Int64) 1027 } 1028 } 1029 1030 var r1 error 1031 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqHash, ...grpc.CallOption) error); ok { 1032 r1 = rf(ctx, in, opts...) 1033 } else { 1034 r1 = ret.Error(1) 1035 } 1036 1037 return r0, r1 1038 } 1039 1040 // GetServerTime provides a mock function with given fields: ctx, in, opts 1041 func (_m *TuringchainClient) GetServerTime(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.ServerTime, error) { 1042 _va := make([]interface{}, len(opts)) 1043 for _i := range opts { 1044 _va[_i] = opts[_i] 1045 } 1046 var _ca []interface{} 1047 _ca = append(_ca, ctx, in) 1048 _ca = append(_ca, _va...) 1049 ret := _m.Called(_ca...) 1050 1051 var r0 *types.ServerTime 1052 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqNil, ...grpc.CallOption) *types.ServerTime); ok { 1053 r0 = rf(ctx, in, opts...) 1054 } else { 1055 if ret.Get(0) != nil { 1056 r0 = ret.Get(0).(*types.ServerTime) 1057 } 1058 } 1059 1060 var r1 error 1061 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqNil, ...grpc.CallOption) error); ok { 1062 r1 = rf(ctx, in, opts...) 1063 } else { 1064 r1 = ret.Error(1) 1065 } 1066 1067 return r0, r1 1068 } 1069 1070 // GetTransactionByAddr provides a mock function with given fields: ctx, in, opts 1071 func (_m *TuringchainClient) GetTransactionByAddr(ctx context.Context, in *types.ReqAddr, opts ...grpc.CallOption) (*types.ReplyTxInfos, error) { 1072 _va := make([]interface{}, len(opts)) 1073 for _i := range opts { 1074 _va[_i] = opts[_i] 1075 } 1076 var _ca []interface{} 1077 _ca = append(_ca, ctx, in) 1078 _ca = append(_ca, _va...) 1079 ret := _m.Called(_ca...) 1080 1081 var r0 *types.ReplyTxInfos 1082 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqAddr, ...grpc.CallOption) *types.ReplyTxInfos); ok { 1083 r0 = rf(ctx, in, opts...) 1084 } else { 1085 if ret.Get(0) != nil { 1086 r0 = ret.Get(0).(*types.ReplyTxInfos) 1087 } 1088 } 1089 1090 var r1 error 1091 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqAddr, ...grpc.CallOption) error); ok { 1092 r1 = rf(ctx, in, opts...) 1093 } else { 1094 r1 = ret.Error(1) 1095 } 1096 1097 return r0, r1 1098 } 1099 1100 // GetTransactionByHashes provides a mock function with given fields: ctx, in, opts 1101 func (_m *TuringchainClient) GetTransactionByHashes(ctx context.Context, in *types.ReqHashes, opts ...grpc.CallOption) (*types.TransactionDetails, error) { 1102 _va := make([]interface{}, len(opts)) 1103 for _i := range opts { 1104 _va[_i] = opts[_i] 1105 } 1106 var _ca []interface{} 1107 _ca = append(_ca, ctx, in) 1108 _ca = append(_ca, _va...) 1109 ret := _m.Called(_ca...) 1110 1111 var r0 *types.TransactionDetails 1112 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqHashes, ...grpc.CallOption) *types.TransactionDetails); ok { 1113 r0 = rf(ctx, in, opts...) 1114 } else { 1115 if ret.Get(0) != nil { 1116 r0 = ret.Get(0).(*types.TransactionDetails) 1117 } 1118 } 1119 1120 var r1 error 1121 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqHashes, ...grpc.CallOption) error); ok { 1122 r1 = rf(ctx, in, opts...) 1123 } else { 1124 r1 = ret.Error(1) 1125 } 1126 1127 return r0, r1 1128 } 1129 1130 // GetWalletStatus provides a mock function with given fields: ctx, in, opts 1131 func (_m *TuringchainClient) GetWalletStatus(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.WalletStatus, error) { 1132 _va := make([]interface{}, len(opts)) 1133 for _i := range opts { 1134 _va[_i] = opts[_i] 1135 } 1136 var _ca []interface{} 1137 _ca = append(_ca, ctx, in) 1138 _ca = append(_ca, _va...) 1139 ret := _m.Called(_ca...) 1140 1141 var r0 *types.WalletStatus 1142 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqNil, ...grpc.CallOption) *types.WalletStatus); ok { 1143 r0 = rf(ctx, in, opts...) 1144 } else { 1145 if ret.Get(0) != nil { 1146 r0 = ret.Get(0).(*types.WalletStatus) 1147 } 1148 } 1149 1150 var r1 error 1151 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqNil, ...grpc.CallOption) error); ok { 1152 r1 = rf(ctx, in, opts...) 1153 } else { 1154 r1 = ret.Error(1) 1155 } 1156 1157 return r0, r1 1158 } 1159 1160 // ImportPrivkey provides a mock function with given fields: ctx, in, opts 1161 func (_m *TuringchainClient) ImportPrivkey(ctx context.Context, in *types.ReqWalletImportPrivkey, opts ...grpc.CallOption) (*types.WalletAccount, error) { 1162 _va := make([]interface{}, len(opts)) 1163 for _i := range opts { 1164 _va[_i] = opts[_i] 1165 } 1166 var _ca []interface{} 1167 _ca = append(_ca, ctx, in) 1168 _ca = append(_ca, _va...) 1169 ret := _m.Called(_ca...) 1170 1171 var r0 *types.WalletAccount 1172 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqWalletImportPrivkey, ...grpc.CallOption) *types.WalletAccount); ok { 1173 r0 = rf(ctx, in, opts...) 1174 } else { 1175 if ret.Get(0) != nil { 1176 r0 = ret.Get(0).(*types.WalletAccount) 1177 } 1178 } 1179 1180 var r1 error 1181 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqWalletImportPrivkey, ...grpc.CallOption) error); ok { 1182 r1 = rf(ctx, in, opts...) 1183 } else { 1184 r1 = ret.Error(1) 1185 } 1186 1187 return r0, r1 1188 } 1189 1190 // ImportPrivkeysFile provides a mock function with given fields: ctx, in, opts 1191 func (_m *TuringchainClient) ImportPrivkeysFile(ctx context.Context, in *types.ReqPrivkeysFile, opts ...grpc.CallOption) (*types.Reply, error) { 1192 _va := make([]interface{}, len(opts)) 1193 for _i := range opts { 1194 _va[_i] = opts[_i] 1195 } 1196 var _ca []interface{} 1197 _ca = append(_ca, ctx, in) 1198 _ca = append(_ca, _va...) 1199 ret := _m.Called(_ca...) 1200 1201 var r0 *types.Reply 1202 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqPrivkeysFile, ...grpc.CallOption) *types.Reply); ok { 1203 r0 = rf(ctx, in, opts...) 1204 } else { 1205 if ret.Get(0) != nil { 1206 r0 = ret.Get(0).(*types.Reply) 1207 } 1208 } 1209 1210 var r1 error 1211 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqPrivkeysFile, ...grpc.CallOption) error); ok { 1212 r1 = rf(ctx, in, opts...) 1213 } else { 1214 r1 = ret.Error(1) 1215 } 1216 1217 return r0, r1 1218 } 1219 1220 // IsNtpClockSync provides a mock function with given fields: ctx, in, opts 1221 func (_m *TuringchainClient) IsNtpClockSync(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Reply, error) { 1222 _va := make([]interface{}, len(opts)) 1223 for _i := range opts { 1224 _va[_i] = opts[_i] 1225 } 1226 var _ca []interface{} 1227 _ca = append(_ca, ctx, in) 1228 _ca = append(_ca, _va...) 1229 ret := _m.Called(_ca...) 1230 1231 var r0 *types.Reply 1232 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqNil, ...grpc.CallOption) *types.Reply); ok { 1233 r0 = rf(ctx, in, opts...) 1234 } else { 1235 if ret.Get(0) != nil { 1236 r0 = ret.Get(0).(*types.Reply) 1237 } 1238 } 1239 1240 var r1 error 1241 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqNil, ...grpc.CallOption) error); ok { 1242 r1 = rf(ctx, in, opts...) 1243 } else { 1244 r1 = ret.Error(1) 1245 } 1246 1247 return r0, r1 1248 } 1249 1250 // IsSync provides a mock function with given fields: ctx, in, opts 1251 func (_m *TuringchainClient) IsSync(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Reply, error) { 1252 _va := make([]interface{}, len(opts)) 1253 for _i := range opts { 1254 _va[_i] = opts[_i] 1255 } 1256 var _ca []interface{} 1257 _ca = append(_ca, ctx, in) 1258 _ca = append(_ca, _va...) 1259 ret := _m.Called(_ca...) 1260 1261 var r0 *types.Reply 1262 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqNil, ...grpc.CallOption) *types.Reply); ok { 1263 r0 = rf(ctx, in, opts...) 1264 } else { 1265 if ret.Get(0) != nil { 1266 r0 = ret.Get(0).(*types.Reply) 1267 } 1268 } 1269 1270 var r1 error 1271 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqNil, ...grpc.CallOption) error); ok { 1272 r1 = rf(ctx, in, opts...) 1273 } else { 1274 r1 = ret.Error(1) 1275 } 1276 1277 return r0, r1 1278 } 1279 1280 // LoadParaTxByTitle provides a mock function with given fields: ctx, in, opts 1281 func (_m *TuringchainClient) LoadParaTxByTitle(ctx context.Context, in *types.ReqHeightByTitle, opts ...grpc.CallOption) (*types.ReplyHeightByTitle, error) { 1282 _va := make([]interface{}, len(opts)) 1283 for _i := range opts { 1284 _va[_i] = opts[_i] 1285 } 1286 var _ca []interface{} 1287 _ca = append(_ca, ctx, in) 1288 _ca = append(_ca, _va...) 1289 ret := _m.Called(_ca...) 1290 1291 var r0 *types.ReplyHeightByTitle 1292 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqHeightByTitle, ...grpc.CallOption) *types.ReplyHeightByTitle); ok { 1293 r0 = rf(ctx, in, opts...) 1294 } else { 1295 if ret.Get(0) != nil { 1296 r0 = ret.Get(0).(*types.ReplyHeightByTitle) 1297 } 1298 } 1299 1300 var r1 error 1301 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqHeightByTitle, ...grpc.CallOption) error); ok { 1302 r1 = rf(ctx, in, opts...) 1303 } else { 1304 r1 = ret.Error(1) 1305 } 1306 1307 return r0, r1 1308 } 1309 1310 // Lock provides a mock function with given fields: ctx, in, opts 1311 func (_m *TuringchainClient) Lock(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Reply, error) { 1312 _va := make([]interface{}, len(opts)) 1313 for _i := range opts { 1314 _va[_i] = opts[_i] 1315 } 1316 var _ca []interface{} 1317 _ca = append(_ca, ctx, in) 1318 _ca = append(_ca, _va...) 1319 ret := _m.Called(_ca...) 1320 1321 var r0 *types.Reply 1322 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqNil, ...grpc.CallOption) *types.Reply); ok { 1323 r0 = rf(ctx, in, opts...) 1324 } else { 1325 if ret.Get(0) != nil { 1326 r0 = ret.Get(0).(*types.Reply) 1327 } 1328 } 1329 1330 var r1 error 1331 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqNil, ...grpc.CallOption) error); ok { 1332 r1 = rf(ctx, in, opts...) 1333 } else { 1334 r1 = ret.Error(1) 1335 } 1336 1337 return r0, r1 1338 } 1339 1340 // MergeBalance provides a mock function with given fields: ctx, in, opts 1341 func (_m *TuringchainClient) MergeBalance(ctx context.Context, in *types.ReqWalletMergeBalance, opts ...grpc.CallOption) (*types.ReplyHashes, error) { 1342 _va := make([]interface{}, len(opts)) 1343 for _i := range opts { 1344 _va[_i] = opts[_i] 1345 } 1346 var _ca []interface{} 1347 _ca = append(_ca, ctx, in) 1348 _ca = append(_ca, _va...) 1349 ret := _m.Called(_ca...) 1350 1351 var r0 *types.ReplyHashes 1352 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqWalletMergeBalance, ...grpc.CallOption) *types.ReplyHashes); ok { 1353 r0 = rf(ctx, in, opts...) 1354 } else { 1355 if ret.Get(0) != nil { 1356 r0 = ret.Get(0).(*types.ReplyHashes) 1357 } 1358 } 1359 1360 var r1 error 1361 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqWalletMergeBalance, ...grpc.CallOption) error); ok { 1362 r1 = rf(ctx, in, opts...) 1363 } else { 1364 r1 = ret.Error(1) 1365 } 1366 1367 return r0, r1 1368 } 1369 1370 // NetInfo provides a mock function with given fields: ctx, in, opts 1371 func (_m *TuringchainClient) NetInfo(ctx context.Context, in *types.P2PGetNetInfoReq, opts ...grpc.CallOption) (*types.NodeNetInfo, error) { 1372 _va := make([]interface{}, len(opts)) 1373 for _i := range opts { 1374 _va[_i] = opts[_i] 1375 } 1376 var _ca []interface{} 1377 _ca = append(_ca, ctx, in) 1378 _ca = append(_ca, _va...) 1379 ret := _m.Called(_ca...) 1380 1381 var r0 *types.NodeNetInfo 1382 if rf, ok := ret.Get(0).(func(context.Context, *types.P2PGetNetInfoReq, ...grpc.CallOption) *types.NodeNetInfo); ok { 1383 r0 = rf(ctx, in, opts...) 1384 } else { 1385 if ret.Get(0) != nil { 1386 r0 = ret.Get(0).(*types.NodeNetInfo) 1387 } 1388 } 1389 1390 var r1 error 1391 if rf, ok := ret.Get(1).(func(context.Context, *types.P2PGetNetInfoReq, ...grpc.CallOption) error); ok { 1392 r1 = rf(ctx, in, opts...) 1393 } else { 1394 r1 = ret.Error(1) 1395 } 1396 1397 return r0, r1 1398 } 1399 1400 // NewAccount provides a mock function with given fields: ctx, in, opts 1401 func (_m *TuringchainClient) NewAccount(ctx context.Context, in *types.ReqNewAccount, opts ...grpc.CallOption) (*types.WalletAccount, error) { 1402 _va := make([]interface{}, len(opts)) 1403 for _i := range opts { 1404 _va[_i] = opts[_i] 1405 } 1406 var _ca []interface{} 1407 _ca = append(_ca, ctx, in) 1408 _ca = append(_ca, _va...) 1409 ret := _m.Called(_ca...) 1410 1411 var r0 *types.WalletAccount 1412 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqNewAccount, ...grpc.CallOption) *types.WalletAccount); ok { 1413 r0 = rf(ctx, in, opts...) 1414 } else { 1415 if ret.Get(0) != nil { 1416 r0 = ret.Get(0).(*types.WalletAccount) 1417 } 1418 } 1419 1420 var r1 error 1421 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqNewAccount, ...grpc.CallOption) error); ok { 1422 r1 = rf(ctx, in, opts...) 1423 } else { 1424 r1 = ret.Error(1) 1425 } 1426 1427 return r0, r1 1428 } 1429 1430 // QueryChain provides a mock function with given fields: ctx, in, opts 1431 func (_m *TuringchainClient) QueryChain(ctx context.Context, in *types.ChainExecutor, opts ...grpc.CallOption) (*types.Reply, error) { 1432 _va := make([]interface{}, len(opts)) 1433 for _i := range opts { 1434 _va[_i] = opts[_i] 1435 } 1436 var _ca []interface{} 1437 _ca = append(_ca, ctx, in) 1438 _ca = append(_ca, _va...) 1439 ret := _m.Called(_ca...) 1440 1441 var r0 *types.Reply 1442 if rf, ok := ret.Get(0).(func(context.Context, *types.ChainExecutor, ...grpc.CallOption) *types.Reply); ok { 1443 r0 = rf(ctx, in, opts...) 1444 } else { 1445 if ret.Get(0) != nil { 1446 r0 = ret.Get(0).(*types.Reply) 1447 } 1448 } 1449 1450 var r1 error 1451 if rf, ok := ret.Get(1).(func(context.Context, *types.ChainExecutor, ...grpc.CallOption) error); ok { 1452 r1 = rf(ctx, in, opts...) 1453 } else { 1454 r1 = ret.Error(1) 1455 } 1456 1457 return r0, r1 1458 } 1459 1460 // QueryConsensus provides a mock function with given fields: ctx, in, opts 1461 func (_m *TuringchainClient) QueryConsensus(ctx context.Context, in *types.ChainExecutor, opts ...grpc.CallOption) (*types.Reply, error) { 1462 _va := make([]interface{}, len(opts)) 1463 for _i := range opts { 1464 _va[_i] = opts[_i] 1465 } 1466 var _ca []interface{} 1467 _ca = append(_ca, ctx, in) 1468 _ca = append(_ca, _va...) 1469 ret := _m.Called(_ca...) 1470 1471 var r0 *types.Reply 1472 if rf, ok := ret.Get(0).(func(context.Context, *types.ChainExecutor, ...grpc.CallOption) *types.Reply); ok { 1473 r0 = rf(ctx, in, opts...) 1474 } else { 1475 if ret.Get(0) != nil { 1476 r0 = ret.Get(0).(*types.Reply) 1477 } 1478 } 1479 1480 var r1 error 1481 if rf, ok := ret.Get(1).(func(context.Context, *types.ChainExecutor, ...grpc.CallOption) error); ok { 1482 r1 = rf(ctx, in, opts...) 1483 } else { 1484 r1 = ret.Error(1) 1485 } 1486 1487 return r0, r1 1488 } 1489 1490 // QueryRandNum provides a mock function with given fields: ctx, in, opts 1491 func (_m *TuringchainClient) QueryRandNum(ctx context.Context, in *types.ReqRandHash, opts ...grpc.CallOption) (*types.ReplyHash, error) { 1492 _va := make([]interface{}, len(opts)) 1493 for _i := range opts { 1494 _va[_i] = opts[_i] 1495 } 1496 var _ca []interface{} 1497 _ca = append(_ca, ctx, in) 1498 _ca = append(_ca, _va...) 1499 ret := _m.Called(_ca...) 1500 1501 var r0 *types.ReplyHash 1502 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqRandHash, ...grpc.CallOption) *types.ReplyHash); ok { 1503 r0 = rf(ctx, in, opts...) 1504 } else { 1505 if ret.Get(0) != nil { 1506 r0 = ret.Get(0).(*types.ReplyHash) 1507 } 1508 } 1509 1510 var r1 error 1511 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqRandHash, ...grpc.CallOption) error); ok { 1512 r1 = rf(ctx, in, opts...) 1513 } else { 1514 r1 = ret.Error(1) 1515 } 1516 1517 return r0, r1 1518 } 1519 1520 // QueryTransaction provides a mock function with given fields: ctx, in, opts 1521 func (_m *TuringchainClient) QueryTransaction(ctx context.Context, in *types.ReqHash, opts ...grpc.CallOption) (*types.TransactionDetail, error) { 1522 _va := make([]interface{}, len(opts)) 1523 for _i := range opts { 1524 _va[_i] = opts[_i] 1525 } 1526 var _ca []interface{} 1527 _ca = append(_ca, ctx, in) 1528 _ca = append(_ca, _va...) 1529 ret := _m.Called(_ca...) 1530 1531 var r0 *types.TransactionDetail 1532 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqHash, ...grpc.CallOption) *types.TransactionDetail); ok { 1533 r0 = rf(ctx, in, opts...) 1534 } else { 1535 if ret.Get(0) != nil { 1536 r0 = ret.Get(0).(*types.TransactionDetail) 1537 } 1538 } 1539 1540 var r1 error 1541 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqHash, ...grpc.CallOption) error); ok { 1542 r1 = rf(ctx, in, opts...) 1543 } else { 1544 r1 = ret.Error(1) 1545 } 1546 1547 return r0, r1 1548 } 1549 1550 // SaveSeed provides a mock function with given fields: ctx, in, opts 1551 func (_m *TuringchainClient) SaveSeed(ctx context.Context, in *types.SaveSeedByPw, opts ...grpc.CallOption) (*types.Reply, error) { 1552 _va := make([]interface{}, len(opts)) 1553 for _i := range opts { 1554 _va[_i] = opts[_i] 1555 } 1556 var _ca []interface{} 1557 _ca = append(_ca, ctx, in) 1558 _ca = append(_ca, _va...) 1559 ret := _m.Called(_ca...) 1560 1561 var r0 *types.Reply 1562 if rf, ok := ret.Get(0).(func(context.Context, *types.SaveSeedByPw, ...grpc.CallOption) *types.Reply); ok { 1563 r0 = rf(ctx, in, opts...) 1564 } else { 1565 if ret.Get(0) != nil { 1566 r0 = ret.Get(0).(*types.Reply) 1567 } 1568 } 1569 1570 var r1 error 1571 if rf, ok := ret.Get(1).(func(context.Context, *types.SaveSeedByPw, ...grpc.CallOption) error); ok { 1572 r1 = rf(ctx, in, opts...) 1573 } else { 1574 r1 = ret.Error(1) 1575 } 1576 1577 return r0, r1 1578 } 1579 1580 // SendToAddress provides a mock function with given fields: ctx, in, opts 1581 func (_m *TuringchainClient) SendToAddress(ctx context.Context, in *types.ReqWalletSendToAddress, opts ...grpc.CallOption) (*types.ReplyHash, error) { 1582 _va := make([]interface{}, len(opts)) 1583 for _i := range opts { 1584 _va[_i] = opts[_i] 1585 } 1586 var _ca []interface{} 1587 _ca = append(_ca, ctx, in) 1588 _ca = append(_ca, _va...) 1589 ret := _m.Called(_ca...) 1590 1591 var r0 *types.ReplyHash 1592 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqWalletSendToAddress, ...grpc.CallOption) *types.ReplyHash); ok { 1593 r0 = rf(ctx, in, opts...) 1594 } else { 1595 if ret.Get(0) != nil { 1596 r0 = ret.Get(0).(*types.ReplyHash) 1597 } 1598 } 1599 1600 var r1 error 1601 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqWalletSendToAddress, ...grpc.CallOption) error); ok { 1602 r1 = rf(ctx, in, opts...) 1603 } else { 1604 r1 = ret.Error(1) 1605 } 1606 1607 return r0, r1 1608 } 1609 1610 // SendTransaction provides a mock function with given fields: ctx, in, opts 1611 func (_m *TuringchainClient) SendTransaction(ctx context.Context, in *types.Transaction, opts ...grpc.CallOption) (*types.Reply, error) { 1612 _va := make([]interface{}, len(opts)) 1613 for _i := range opts { 1614 _va[_i] = opts[_i] 1615 } 1616 var _ca []interface{} 1617 _ca = append(_ca, ctx, in) 1618 _ca = append(_ca, _va...) 1619 ret := _m.Called(_ca...) 1620 1621 var r0 *types.Reply 1622 if rf, ok := ret.Get(0).(func(context.Context, *types.Transaction, ...grpc.CallOption) *types.Reply); ok { 1623 r0 = rf(ctx, in, opts...) 1624 } else { 1625 if ret.Get(0) != nil { 1626 r0 = ret.Get(0).(*types.Reply) 1627 } 1628 } 1629 1630 var r1 error 1631 if rf, ok := ret.Get(1).(func(context.Context, *types.Transaction, ...grpc.CallOption) error); ok { 1632 r1 = rf(ctx, in, opts...) 1633 } else { 1634 r1 = ret.Error(1) 1635 } 1636 1637 return r0, r1 1638 } 1639 1640 // SendTransactionSync provides a mock function with given fields: ctx, in, opts 1641 func (_m *TuringchainClient) SendTransactionSync(ctx context.Context, in *types.Transaction, opts ...grpc.CallOption) (*types.Reply, error) { 1642 _va := make([]interface{}, len(opts)) 1643 for _i := range opts { 1644 _va[_i] = opts[_i] 1645 } 1646 var _ca []interface{} 1647 _ca = append(_ca, ctx, in) 1648 _ca = append(_ca, _va...) 1649 ret := _m.Called(_ca...) 1650 1651 var r0 *types.Reply 1652 if rf, ok := ret.Get(0).(func(context.Context, *types.Transaction, ...grpc.CallOption) *types.Reply); ok { 1653 r0 = rf(ctx, in, opts...) 1654 } else { 1655 if ret.Get(0) != nil { 1656 r0 = ret.Get(0).(*types.Reply) 1657 } 1658 } 1659 1660 var r1 error 1661 if rf, ok := ret.Get(1).(func(context.Context, *types.Transaction, ...grpc.CallOption) error); ok { 1662 r1 = rf(ctx, in, opts...) 1663 } else { 1664 r1 = ret.Error(1) 1665 } 1666 1667 return r0, r1 1668 } 1669 1670 // SetLabl provides a mock function with given fields: ctx, in, opts 1671 func (_m *TuringchainClient) SetLabl(ctx context.Context, in *types.ReqWalletSetLabel, opts ...grpc.CallOption) (*types.WalletAccount, error) { 1672 _va := make([]interface{}, len(opts)) 1673 for _i := range opts { 1674 _va[_i] = opts[_i] 1675 } 1676 var _ca []interface{} 1677 _ca = append(_ca, ctx, in) 1678 _ca = append(_ca, _va...) 1679 ret := _m.Called(_ca...) 1680 1681 var r0 *types.WalletAccount 1682 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqWalletSetLabel, ...grpc.CallOption) *types.WalletAccount); ok { 1683 r0 = rf(ctx, in, opts...) 1684 } else { 1685 if ret.Get(0) != nil { 1686 r0 = ret.Get(0).(*types.WalletAccount) 1687 } 1688 } 1689 1690 var r1 error 1691 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqWalletSetLabel, ...grpc.CallOption) error); ok { 1692 r1 = rf(ctx, in, opts...) 1693 } else { 1694 r1 = ret.Error(1) 1695 } 1696 1697 return r0, r1 1698 } 1699 1700 // SetPasswd provides a mock function with given fields: ctx, in, opts 1701 func (_m *TuringchainClient) SetPasswd(ctx context.Context, in *types.ReqWalletSetPasswd, opts ...grpc.CallOption) (*types.Reply, error) { 1702 _va := make([]interface{}, len(opts)) 1703 for _i := range opts { 1704 _va[_i] = opts[_i] 1705 } 1706 var _ca []interface{} 1707 _ca = append(_ca, ctx, in) 1708 _ca = append(_ca, _va...) 1709 ret := _m.Called(_ca...) 1710 1711 var r0 *types.Reply 1712 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqWalletSetPasswd, ...grpc.CallOption) *types.Reply); ok { 1713 r0 = rf(ctx, in, opts...) 1714 } else { 1715 if ret.Get(0) != nil { 1716 r0 = ret.Get(0).(*types.Reply) 1717 } 1718 } 1719 1720 var r1 error 1721 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqWalletSetPasswd, ...grpc.CallOption) error); ok { 1722 r1 = rf(ctx, in, opts...) 1723 } else { 1724 r1 = ret.Error(1) 1725 } 1726 1727 return r0, r1 1728 } 1729 1730 // SetTxFee provides a mock function with given fields: ctx, in, opts 1731 func (_m *TuringchainClient) SetTxFee(ctx context.Context, in *types.ReqWalletSetFee, opts ...grpc.CallOption) (*types.Reply, error) { 1732 _va := make([]interface{}, len(opts)) 1733 for _i := range opts { 1734 _va[_i] = opts[_i] 1735 } 1736 var _ca []interface{} 1737 _ca = append(_ca, ctx, in) 1738 _ca = append(_ca, _va...) 1739 ret := _m.Called(_ca...) 1740 1741 var r0 *types.Reply 1742 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqWalletSetFee, ...grpc.CallOption) *types.Reply); ok { 1743 r0 = rf(ctx, in, opts...) 1744 } else { 1745 if ret.Get(0) != nil { 1746 r0 = ret.Get(0).(*types.Reply) 1747 } 1748 } 1749 1750 var r1 error 1751 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqWalletSetFee, ...grpc.CallOption) error); ok { 1752 r1 = rf(ctx, in, opts...) 1753 } else { 1754 r1 = ret.Error(1) 1755 } 1756 1757 return r0, r1 1758 } 1759 1760 // SignRawTx provides a mock function with given fields: ctx, in, opts 1761 func (_m *TuringchainClient) SignRawTx(ctx context.Context, in *types.ReqSignRawTx, opts ...grpc.CallOption) (*types.ReplySignRawTx, error) { 1762 _va := make([]interface{}, len(opts)) 1763 for _i := range opts { 1764 _va[_i] = opts[_i] 1765 } 1766 var _ca []interface{} 1767 _ca = append(_ca, ctx, in) 1768 _ca = append(_ca, _va...) 1769 ret := _m.Called(_ca...) 1770 1771 var r0 *types.ReplySignRawTx 1772 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqSignRawTx, ...grpc.CallOption) *types.ReplySignRawTx); ok { 1773 r0 = rf(ctx, in, opts...) 1774 } else { 1775 if ret.Get(0) != nil { 1776 r0 = ret.Get(0).(*types.ReplySignRawTx) 1777 } 1778 } 1779 1780 var r1 error 1781 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqSignRawTx, ...grpc.CallOption) error); ok { 1782 r1 = rf(ctx, in, opts...) 1783 } else { 1784 r1 = ret.Error(1) 1785 } 1786 1787 return r0, r1 1788 } 1789 1790 // UnLock provides a mock function with given fields: ctx, in, opts 1791 func (_m *TuringchainClient) UnLock(ctx context.Context, in *types.WalletUnLock, opts ...grpc.CallOption) (*types.Reply, error) { 1792 _va := make([]interface{}, len(opts)) 1793 for _i := range opts { 1794 _va[_i] = opts[_i] 1795 } 1796 var _ca []interface{} 1797 _ca = append(_ca, ctx, in) 1798 _ca = append(_ca, _va...) 1799 ret := _m.Called(_ca...) 1800 1801 var r0 *types.Reply 1802 if rf, ok := ret.Get(0).(func(context.Context, *types.WalletUnLock, ...grpc.CallOption) *types.Reply); ok { 1803 r0 = rf(ctx, in, opts...) 1804 } else { 1805 if ret.Get(0) != nil { 1806 r0 = ret.Get(0).(*types.Reply) 1807 } 1808 } 1809 1810 var r1 error 1811 if rf, ok := ret.Get(1).(func(context.Context, *types.WalletUnLock, ...grpc.CallOption) error); ok { 1812 r1 = rf(ctx, in, opts...) 1813 } else { 1814 r1 = ret.Error(1) 1815 } 1816 1817 return r0, r1 1818 } 1819 1820 // Version provides a mock function with given fields: ctx, in, opts 1821 func (_m *TuringchainClient) Version(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.VersionInfo, error) { 1822 _va := make([]interface{}, len(opts)) 1823 for _i := range opts { 1824 _va[_i] = opts[_i] 1825 } 1826 var _ca []interface{} 1827 _ca = append(_ca, ctx, in) 1828 _ca = append(_ca, _va...) 1829 ret := _m.Called(_ca...) 1830 1831 var r0 *types.VersionInfo 1832 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqNil, ...grpc.CallOption) *types.VersionInfo); ok { 1833 r0 = rf(ctx, in, opts...) 1834 } else { 1835 if ret.Get(0) != nil { 1836 r0 = ret.Get(0).(*types.VersionInfo) 1837 } 1838 } 1839 1840 var r1 error 1841 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqNil, ...grpc.CallOption) error); ok { 1842 r1 = rf(ctx, in, opts...) 1843 } else { 1844 r1 = ret.Error(1) 1845 } 1846 1847 return r0, r1 1848 } 1849 1850 // WalletTransactionList provides a mock function with given fields: ctx, in, opts 1851 func (_m *TuringchainClient) WalletTransactionList(ctx context.Context, in *types.ReqWalletTransactionList, opts ...grpc.CallOption) (*types.WalletTxDetails, error) { 1852 _va := make([]interface{}, len(opts)) 1853 for _i := range opts { 1854 _va[_i] = opts[_i] 1855 } 1856 var _ca []interface{} 1857 _ca = append(_ca, ctx, in) 1858 _ca = append(_ca, _va...) 1859 ret := _m.Called(_ca...) 1860 1861 var r0 *types.WalletTxDetails 1862 if rf, ok := ret.Get(0).(func(context.Context, *types.ReqWalletTransactionList, ...grpc.CallOption) *types.WalletTxDetails); ok { 1863 r0 = rf(ctx, in, opts...) 1864 } else { 1865 if ret.Get(0) != nil { 1866 r0 = ret.Get(0).(*types.WalletTxDetails) 1867 } 1868 } 1869 1870 var r1 error 1871 if rf, ok := ret.Get(1).(func(context.Context, *types.ReqWalletTransactionList, ...grpc.CallOption) error); ok { 1872 r1 = rf(ctx, in, opts...) 1873 } else { 1874 r1 = ret.Error(1) 1875 } 1876 1877 return r0, r1 1878 }