prysm-pulse/contracts/deposit/helper.go
Preston Van Loon 943dec525c
Refactor mock test helpers (#10133)
* Delete deploy contract tool. Move mock to its own package as testonly with some helper functions

* gofmt contracts/deposit/mock/mock.go

* move stategen mock.go to its on testonly pkg

* move password_reader_mock.go to mock testonly package

* move mock keymanager to its own testonly package

* move attestations mock

* move voluntaryexits mock

* Move slashings mock to mock pkg

* move the slasher mock

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-26 14:48:20 +00:00

24 lines
979 B
Go

package deposit
import (
"github.com/ethereum/go-ethereum/accounts/abi/bind"
)
// NewDepositContractcallFromBoundContract creates a new instance of DepositContractCaller, bound to
// a specific deployed contract.
func NewDepositContractCallerFromBoundContract(contract *bind.BoundContract) DepositContractCaller {
return DepositContractCaller{contract: contract}
}
// NewDepositContractTransactorFromBoundContract creates a new instance of
// DepositContractTransactor, bound to a specific deployed contract.
func NewDepositContractTransactorFromBoundContract(contract *bind.BoundContract) DepositContractTransactor {
return DepositContractTransactor{contract: contract}
}
// NewDepositContractFiltererFromBoundContract creates a new instance of
// DepositContractFilterer, bound to a specific deployed contract.
func NewDepositContractFiltererFromBoundContract(contract *bind.BoundContract) DepositContractFilterer {
return DepositContractFilterer{contract: contract}
}