forked from cerc-io/ipld-eth-server
Update flip kick and tend transformers due to contract changes
* Update FlipperAddress to new local ganache address * Update flip_kick table * Update flipkick transformer to handle new signature and abi * Update tend table * Update tend converter
This commit is contained in:
@@ -16,6 +16,7 @@ package flip_kick
|
||||
|
||||
import (
|
||||
"github.com/ethereum/go-ethereum/core/types"
|
||||
|
||||
"github.com/vulcanize/vulcanizedb/pkg/transformers/flip_kick"
|
||||
"github.com/vulcanize/vulcanizedb/pkg/transformers/test_data"
|
||||
)
|
||||
|
||||
@@ -25,19 +25,13 @@ type MockTendConverter struct {
|
||||
ConverterContract string
|
||||
ConverterAbi string
|
||||
LogsToConvert []types.Log
|
||||
EntitiesToConvert []tend.TendEntity
|
||||
ConverterError error
|
||||
}
|
||||
|
||||
func (c *MockTendConverter) ToEntity(contractAddress string, contractAbi string, ethLog types.Log) (tend.TendEntity, error) {
|
||||
func (c *MockTendConverter) Convert(contractAddress string, contractAbi string, ethLog types.Log) (tend.TendModel, error) {
|
||||
c.ConverterContract = contractAddress
|
||||
c.ConverterAbi = contractAbi
|
||||
c.LogsToConvert = append(c.LogsToConvert, ethLog)
|
||||
return test_data.TendEntity, c.ConverterError
|
||||
}
|
||||
|
||||
func (c *MockTendConverter) ToModel(entity tend.TendEntity) (tend.TendModel, error) {
|
||||
c.EntitiesToConvert = append(c.EntitiesToConvert, entity)
|
||||
return test_data.TendModel, c.ConverterError
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user