39 lines
757 B
Go
39 lines
757 B
Go
package fakes
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/accounts/abi"
|
|
"github.com/vulcanize/vulcanizedb/pkg/omni/shared/types"
|
|
)
|
|
|
|
type MockParser struct {
|
|
AbiToReturn string
|
|
}
|
|
|
|
func (*MockParser) Parse(contractAddr string) error {
|
|
return nil
|
|
}
|
|
|
|
func (*MockParser) ParseAbiStr(abiStr string) error {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (parser *MockParser) Abi() string {
|
|
return parser.AbiToReturn
|
|
}
|
|
|
|
func (*MockParser) ParsedAbi() abi.ABI {
|
|
return abi.ABI{}
|
|
}
|
|
|
|
func (*MockParser) GetMethods(wanted []string) []types.Method {
|
|
panic("implement me")
|
|
}
|
|
|
|
func (*MockParser) GetSelectMethods(wanted []string) []types.Method {
|
|
return []types.Method{}
|
|
}
|
|
|
|
func (*MockParser) GetEvents(wanted []string) map[string]types.Event {
|
|
return map[string]types.Event{}
|
|
}
|