|
|
@ -36,7 +36,7 @@ type Service struct { |
|
|
|
CallFaucetContract func(common.Address) common.Hash |
|
|
|
CallFaucetContract func(common.Address) common.Hash |
|
|
|
GetAccountBalance func(common.Address) (*big.Int, error) |
|
|
|
GetAccountBalance func(common.Address) (*big.Int, error) |
|
|
|
CreateTransactionForPlayMethod func(string, int) error |
|
|
|
CreateTransactionForPlayMethod func(string, int) error |
|
|
|
CreateTransactionForPayoutMethod func(string, int, int, string) error |
|
|
|
CreateTransactionForPayoutMethod func(string, int, string) error |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// New returns new client support service.
|
|
|
|
// New returns new client support service.
|
|
|
@ -46,7 +46,7 @@ func New( |
|
|
|
CreateTransactionForPickWinner func() error, |
|
|
|
CreateTransactionForPickWinner func() error, |
|
|
|
CallFaucetContract func(common.Address) common.Hash, GetAccountBalance func(common.Address) (*big.Int, error), |
|
|
|
CallFaucetContract func(common.Address) common.Hash, GetAccountBalance func(common.Address) (*big.Int, error), |
|
|
|
CreateTransactionForPlayMethod func(string, int) error, |
|
|
|
CreateTransactionForPlayMethod func(string, int) error, |
|
|
|
CreateTransactionForPayoutMethod func(string, int, int, string) error) *Service { |
|
|
|
CreateTransactionForPayoutMethod func(string, int, string) error) *Service { |
|
|
|
return &Service{ |
|
|
|
return &Service{ |
|
|
|
CreateTransactionForEnterMethod: CreateTransactionForEnterMethod, |
|
|
|
CreateTransactionForEnterMethod: CreateTransactionForEnterMethod, |
|
|
|
GetResult: GetResult, |
|
|
|
GetResult: GetResult, |
|
|
|