test_data

package
v0.2.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2019 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TemporaryBiteBlockNumber = int64(26)

	TemporaryBiteTransaction = "0x5c698f13940a2153440c6d19660878bc90219d9298fdcf37365aa8d88d40fc42"
)
View Source
const (
	TemporaryNewCdpBlockNumber = int64(12975121)

	TemporaryNewCdpTransaction = "0x4c2902029e9250a1927e096262bd6d23db0e0f3adef3a26cc4b3585e9ed86d52"
)

Variables

View Source
var BiteHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawBiteLog,
	Transformed: false,
}
View Source
var CatFileChopHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawCatFileChopLog,
	Transformed: false,
}
View Source
var CatFileFlipHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawCatFileFlipLog,
	Transformed: false,
}
View Source
var CatFileLumpHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawCatFileLumpLog,
	Transformed: false,
}
View Source
var CatFileVowHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawCatFileVowLog,
	Transformed: false,
}
View Source
var DealHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawDealLog,
	Transformed: false,
}
View Source
var DealModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "deal",
	OrderedColumns: []string{
		constants.HeaderFK, "bid_id", string(constants.AddressFK), constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"bid_id":           "10000000000000000",
		constants.HeaderFK: DealHeaderSyncLog.HeaderID,
		constants.LogFK:    DealHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.AddressFK: rawDealLog.Address.Hex(),
	},
}
View Source
var DentHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawDentLog,
	Transformed: false,
}
View Source
var DentModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "dent",
	OrderedColumns: []string{
		constants.HeaderFK, "bid_id", "lot", "bid", string(constants.AddressFK), constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"bid_id":           dentBidId,
		"lot":              dentLot,
		"bid":              dentBid,
		constants.HeaderFK: DentHeaderSyncLog.HeaderID,
		constants.LogFK:    DentHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.AddressFK: DentHeaderSyncLog.Log.Address.Hex(),
	},
}
View Source
var (
	FakeUrn = "0x7340e006f4135BA6970D43bf43d88DCAD4e7a8CA"
)
View Source
var FlapKickHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawFlapKickLog,
	Transformed: false,
}
View Source
var (
	FlipKickBlockNumber = int64(10)
)
View Source
var FlipKickHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawFlipKickLog,
	Transformed: false,
}
View Source
var FlipTickHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawFlipTickLog,
	Transformed: false,
}
View Source
var FlopKickHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawFlopKickLog,
	Transformed: false,
}
View Source
var GenericTestConfig = shared_t.EventTransformerConfig{
	TransformerName:     "generic-test-transformer",
	ContractAddresses:   []string{address},
	ContractAbi:         RandomString(100),
	Topic:               topic,
	StartingBlockNumber: startingBlockNumber,
	EndingBlockNumber:   startingBlockNumber + 1,
}
View Source
var GenericTestLogs = []types.Log{{
	Address:     common.HexToAddress(address),
	Topics:      []common.Hash{common.HexToHash(topic)},
	BlockNumber: uint64(startingBlockNumber),
}}
View Source
var JugDripHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawJugDripLog,
	Transformed: false,
}
View Source
var JugDripModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "jug_drip",
	OrderedColumns: []string{
		constants.HeaderFK, string(constants.IlkFK), constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		constants.HeaderFK: JugDripHeaderSyncLog.HeaderID,
		constants.LogFK:    JugDripHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.IlkFK: "0x66616b6520696c6b000000000000000000000000000000000000000000000000",
	},
}
View Source
var JugFileBaseHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawJugFileBaseLog,
	Transformed: false,
}
View Source
var JugFileBaseModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "jug_file_base",
	OrderedColumns: []string{
		constants.HeaderFK, "what", "data", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"what":             "fake what",
		"data":             big.NewInt(123).String(),
		constants.HeaderFK: JugFileBaseHeaderSyncLog.HeaderID,
		constants.LogFK:    JugFileBaseHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{},
}
View Source
var JugFileIlkHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawJugFileIlkLog,
	Transformed: false,
}
View Source
var JugFileVowHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawJugFileVowLog,
	Transformed: false,
}
View Source
var JugFileVowModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "jug_file_vow",
	OrderedColumns: []string{
		constants.HeaderFK, "what", "data", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"what":             "vow",
		"data":             "0x17560834075DA3Db54f737db74377E799c865821",
		constants.HeaderFK: JugFileVowHeaderSyncLog.HeaderID,
		constants.LogFK:    JugFileVowHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{},
}
View Source
var JugInitHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawJugInitLog,
	Transformed: false,
}
View Source
var JugInitModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "jug_init",
	OrderedColumns: []string{
		constants.HeaderFK, string(constants.IlkFK), constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		constants.HeaderFK: JugInitHeaderSyncLog.HeaderID,
		constants.LogFK:    JugInitHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.IlkFK: "0x434f4c352d410000000000000000000000000000000000000000000000000000",
	},
}
View Source
var NewCdpHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawNewCdpLog,
	Transformed: false,
}
View Source
var SpotFileMatHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawSpotFileMatLog,
	Transformed: false,
}
View Source
var SpotFilePipHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawSpotFilePipLog,
	Transformed: false,
}
View Source
var SpotPokeHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawEthSpotPokeLog,
	Transformed: false,
}
View Source
var TTL = int64(10800) // 60 * 60 * 3 == 10800 seconds == 3 hours
View Source
var TendHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawTendLog,
	Transformed: false,
}
View Source
var TendModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "tend",
	OrderedColumns: []string{
		constants.HeaderFK, "bid_id", "lot", "bid", string(constants.AddressFK), constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"bid_id":           strconv.FormatInt(tendBidId, 10),
		"lot":              tendLot,
		"bid":              tendBid,
		constants.HeaderFK: TendHeaderSyncLog.HeaderID,
		constants.LogFK:    TendHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.AddressFK: tendAddress.Hex(),
	},
}
View Source
var TickModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "tick",
	OrderedColumns: []string{
		constants.HeaderFK, "bid_id", string(constants.AddressFK), constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"bid_id":           strconv.FormatInt(tickBidId, 10),
		constants.HeaderFK: FlipTickHeaderSyncLog.HeaderID,
		constants.LogFK:    FlipTickHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.AddressFK: FlipTickHeaderSyncLog.Log.Address.Hex(),
	},
}
View Source
var VatFileDebtCeilingHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatFileDebtCeilingLog,
	Transformed: false,
}
View Source
var VatFileIlkDustHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatFileIlkDustLog,
	Transformed: false,
}
View Source
var VatFileIlkLineHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatFileIlkLineLog,
	Transformed: false,
}
View Source
var VatFileIlkSpotHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatFileIlkSpotLog,
	Transformed: false,
}
View Source
var VatFluxHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatFluxLog,
	Transformed: false,
}
View Source
var VatFluxModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vat_flux",
	OrderedColumns: []string{
		constants.HeaderFK, string(constants.IlkFK), "src", "dst", "wad", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"src":              "0x07Fa9eF6609cA7921112231F8f195138ebbA2977",
		"dst":              "0x7340e006f4135BA6970D43bf43d88DCAD4e7a8CA",
		"wad":              "1000000000000",
		constants.HeaderFK: VatFluxHeaderSyncLog.HeaderID,
		constants.LogFK:    VatFluxHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.IlkFK: "0x66616b6520696c6b000000000000000000000000000000000000000000000000",
	},
}
View Source
var VatFoldHeaderSyncLogWithNegativeRate = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatFoldLogWithNegativeRate,
	Transformed: false,
}
View Source
var VatFoldHeaderSyncLogWithPositiveRate = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatFoldLogWithPositiveRate,
	Transformed: false,
}
View Source
var VatFoldModelWithNegativeRate = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vat_fold",
	OrderedColumns: []string{
		constants.HeaderFK, string(constants.UrnFK), "rate", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"rate":             "-500000000000000000000",
		constants.HeaderFK: VatFoldHeaderSyncLogWithNegativeRate.HeaderID,
		constants.LogFK:    VatFoldHeaderSyncLogWithNegativeRate.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.IlkFK: "0x66616b6520696c6b000000000000000000000000000000000000000000000000",
		constants.UrnFK: "0x7d7bEe5fCfD8028cf7b00876C5b1421c800561A6",
	},
}
View Source
var VatFoldModelWithPositiveRate = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vat_fold",
	OrderedColumns: []string{
		constants.HeaderFK, string(constants.UrnFK), "rate", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"rate":             "2",
		constants.HeaderFK: VatFoldHeaderSyncLogWithPositiveRate.HeaderID,
		constants.LogFK:    VatFoldHeaderSyncLogWithPositiveRate.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.IlkFK: "0x5245500000000000000000000000000000000000000000000000000000000000",
		constants.UrnFK: "0x3728e9777B2a0a611ee0F89e00E01044ce4736d1",
	},
}
View Source
var VatForkHeaderSyncLogWithNegativeDinkDart = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatForkLogWithNegativeDinkDart,
	Transformed: false,
}
View Source
var VatForkHeaderSyncLogWithPositiveDinkDart = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatForkLogWithPositiveDinkDart,
	Transformed: false,
}
View Source
var VatForkModelWithNegativeDinkDart = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vat_fork",
	OrderedColumns: []string{
		constants.HeaderFK, string(constants.IlkFK), "src", "dst", "dink", "dart", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"src":              "0x07Fa9eF6609cA7921112231F8f195138ebbA2977",
		"dst":              "0x7526EB4f95e2a1394797Cb38a921Fb1EbA09291B",
		"dink":             "-1000000000000000000000",
		"dart":             "-2000000000000000000000",
		constants.HeaderFK: VatForkHeaderSyncLogWithNegativeDinkDart.HeaderID,
		constants.LogFK:    VatForkHeaderSyncLogWithNegativeDinkDart.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.IlkFK: "0x66616b6520696c6b000000000000000000000000000000000000000000000000",
	},
}
View Source
var VatForkModelWithPositiveDinkDart = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vat_fork",
	OrderedColumns: []string{
		constants.HeaderFK, string(constants.IlkFK), "src", "dst", "dink", "dart", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"src":              "0x07Fa9eF6609cA7921112231F8f195138ebbA2977",
		"dst":              "0x7526EB4f95e2a1394797Cb38a921Fb1EbA09291B",
		"dink":             "100000000000000",
		"dart":             "2000000000000000",
		constants.HeaderFK: VatForkHeaderSyncLogWithPositiveDinkDart.HeaderID,
		constants.LogFK:    VatForkHeaderSyncLogWithPositiveDinkDart.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.IlkFK: "0x66616b6520696c6b000000000000000000000000000000000000000000000000",
	},
}
View Source
var VatFrobHeaderSyncLogWithNegativeDink = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatFrobLogWithNegativeDink,
	Transformed: false,
}
View Source
var VatFrobHeaderSyncLogWithPositiveDart = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatFrobLogWithPositiveDart,
	Transformed: false,
}
View Source
var VatGrabHeaderSyncLogWithNegativeDink = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatGrabLogWithNegativeDink,
	Transformed: false,
}
View Source
var VatGrabHeaderSyncLogWithPositiveDink = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatGrabLogWithPositiveDink,
	Transformed: false,
}
View Source
var VatGrabModelWithNegativeDink = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vat_grab",
	OrderedColumns: []string{
		constants.HeaderFK, string(constants.UrnFK), "v", "w", "dink", "dart", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"v":                "0x7340e006f4135BA6970D43bf43d88DCAD4e7a8CA",
		"w":                "0x7526EB4f95e2a1394797Cb38a921Fb1EbA09291B",
		"dink":             "-1000000000000000000000",
		"dart":             "-2000000000000000000000",
		constants.HeaderFK: VatGrabHeaderSyncLogWithNegativeDink.HeaderID,
		constants.LogFK:    VatGrabHeaderSyncLogWithNegativeDink.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.IlkFK: "0x66616b6520696c6b000000000000000000000000000000000000000000000000",
		constants.UrnFK: "0x07Fa9eF6609cA7921112231F8f195138ebbA2977",
	},
}
View Source
var VatGrabModelWithPositiveDink = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vat_grab",
	OrderedColumns: []string{
		constants.HeaderFK, string(constants.UrnFK), "v", "w", "dink", "dart", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"v":                "0x7340e006f4135BA6970D43bf43d88DCAD4e7a8CA",
		"w":                "0x7526EB4f95e2a1394797Cb38a921Fb1EbA09291B",
		"dink":             "1000000000000000000000",
		"dart":             "2000000000000000000000",
		constants.HeaderFK: VatGrabHeaderSyncLogWithPositiveDink.HeaderID,
		constants.LogFK:    VatGrabHeaderSyncLogWithPositiveDink.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.IlkFK: "0x66616b6520696c6b000000000000000000000000000000000000000000000000",
		constants.UrnFK: "0x07Fa9eF6609cA7921112231F8f195138ebbA2977",
	},
}
View Source
var VatHealHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatHealLog,
	Transformed: false,
}
View Source
var VatHealModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vat_heal",
	OrderedColumns: []string{
		constants.HeaderFK, "rad", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"rad":              "10001",
		constants.HeaderFK: VatHealHeaderSyncLog.HeaderID,
		constants.LogFK:    VatHealHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{},
}
View Source
var VatInitHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatInitLog,
	Transformed: false,
}
View Source
var VatInitModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vat_init",
	OrderedColumns: []string{
		constants.HeaderFK, string(constants.IlkFK), constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		constants.HeaderFK: VatInitHeaderSyncLog.HeaderID,
		constants.LogFK:    VatInitHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.IlkFK: "0x66616b6520696c6b000000000000000000000000000000000000000000000000",
	},
}
View Source
var VatMoveHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatMoveLog,
	Transformed: false,
}
View Source
var VatMoveModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vat_move",
	OrderedColumns: []string{
		constants.HeaderFK, "src", "dst", "rad", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"src":              "0xA730d1FF8B6Bc74a26d54c20a9dda539909BaB0e",
		"dst":              "0xB730D1fF8b6BC74a26D54c20a9ddA539909BAb0e",
		"rad":              "42",
		constants.HeaderFK: VatMoveHeaderSyncLog.HeaderID,
		constants.LogFK:    VatMoveHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{},
}
View Source
var VatSlipHeaderSyncLogWithNegativeWad = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatSlipLogWithNegativeWad,
	Transformed: false,
}
View Source
var VatSlipHeaderSyncLogWithPositiveWad = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatSlipLogWithPositiveWad,
	Transformed: false,
}
View Source
var VatSlipModelWithNegativeWad = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vat_slip",
	OrderedColumns: []string{
		constants.HeaderFK, string(constants.IlkFK), "usr", "wad", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"usr":              "0xFc7440E2Ed4A3AEb14d40c00f02a14221Be0474d",
		"wad":              "-5000000000000000",
		constants.HeaderFK: VatSlipHeaderSyncLogWithNegativeWad.HeaderID,
		constants.LogFK:    VatSlipHeaderSyncLogWithNegativeWad.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.IlkFK: "0x4554482d41000000000000000000000000000000000000000000000000000000",
	},
}
View Source
var VatSlipModelWithPositiveWad = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vat_slip",
	OrderedColumns: []string{
		constants.HeaderFK, string(constants.IlkFK), "usr", "wad", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"usr":              "0x5c8c8e5895B9cCf34ACF391C99E13C79EE2eFb46",
		"wad":              "10000000000000000",
		constants.HeaderFK: VatSlipHeaderSyncLogWithPositiveWad.HeaderID,
		constants.LogFK:    VatSlipHeaderSyncLogWithPositiveWad.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.IlkFK: "0x4554482d41000000000000000000000000000000000000000000000000000000",
	},
}
View Source
var VatSuckHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVatSuckLog,
	Transformed: false,
}
View Source
var VatSuckModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vat_suck",
	OrderedColumns: []string{
		constants.HeaderFK, "u", "v", "rad", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"u":                "0x07Fa9eF6609cA7921112231F8f195138ebbA2977",
		"v":                "0x7340e006f4135BA6970D43bf43d88DCAD4e7a8CA",
		"rad":              "1000000000000000000000",
		constants.HeaderFK: VatSuckHeaderSyncLog.HeaderID,
		constants.LogFK:    VatSuckHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{},
}
View Source
var VowFessHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVowFessLog,
	Transformed: false,
}
View Source
var VowFessModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vow_fess",
	OrderedColumns: []string{
		constants.HeaderFK, "tab", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"tab":              "1337",
		constants.HeaderFK: VowFessHeaderSyncLog.HeaderID,
		constants.LogFK:    VowFessHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{},
}
View Source
var VowFileHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVowFileLog,
	Transformed: false,
}
View Source
var VowFileModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vow_file",
	OrderedColumns: []string{
		constants.HeaderFK, "what", "data", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"what":             "wait",
		"data":             "100000000000000000000000",
		constants.HeaderFK: VowFileHeaderSyncLog.HeaderID,
		constants.LogFK:    VowFileHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{},
}
View Source
var VowFlogHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawVowFlogLog,
	Transformed: false,
}
View Source
var VowFlogModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "vow_flog",
	OrderedColumns: []string{
		constants.HeaderFK, "era", constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"era":              "1337",
		constants.HeaderFK: VowFlogHeaderSyncLog.HeaderID,
		constants.LogFK:    VowFlogHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{},
}
View Source
var YankHeaderSyncLog = core.HeaderSyncLog{
	ID:          int64(rand.Int31()),
	HeaderID:    int64(rand.Int31()),
	Log:         rawYankLog,
	Transformed: false,
}
View Source
var YankModel = shared.InsertionModel{
	SchemaName: "maker",
	TableName:  "yank",
	OrderedColumns: []string{
		constants.HeaderFK, "bid_id", string(constants.AddressFK), constants.LogFK,
	},
	ColumnValues: shared.ColumnValues{
		"bid_id":           "10000000000000000",
		constants.HeaderFK: YankHeaderSyncLog.HeaderID,
		constants.LogFK:    YankHeaderSyncLog.ID,
	},
	ForeignKeyValues: shared.ForeignKeyValues{
		constants.AddressFK: YankHeaderSyncLog.Log.Address.Hex(),
	},
}

Functions

func AlreadySeededRandomString added in v0.2.5

func AlreadySeededRandomString(length int) string

func AssertDBRecordCount added in v0.2.12

func AssertDBRecordCount(db *postgres.DB, dbTable string, expectedCount int)

func BiteModel

func BiteModel() event.InsertionModel

func CatAddress added in v0.2.10

func CatAddress() string

func CatFileChopModel

func CatFileChopModel() shared.InsertionModel

func CatFileFlipModel

func CatFileFlipModel() shared.InsertionModel

func CatFileLumpModel

func CatFileLumpModel() shared.InsertionModel

func CatFileVowModel added in v0.2.2

func CatFileVowModel() shared.InsertionModel

func CdpManagerAddress added in v0.2.11

func CdpManagerAddress() string

func CopyEventModel added in v0.2.15

func CopyEventModel(model event.InsertionModel) event.InsertionModel

TODO rename CopyEventModel => CopyModel

func CopyModel added in v0.2.8

func CopyModel(model shared.InsertionModel) shared.InsertionModel

Returns a deep copy of the given model, so tests aren't getting the same map/slice references

func CreateLogs added in v0.2.12

func CreateLogs(headerID int64, logs []types.Log, db *postgres.DB) []core.HeaderSyncLog

func CreateTestHeader added in v0.2.12

func CreateTestHeader(db *postgres.DB) int64

Create a header to reference in an event, returning headerID

func CreateTestLog added in v0.2.12

func CreateTestLog(headerID int64, db *postgres.DB) core.HeaderSyncLog

Create a header sync log to reference in an event, returning inserted header sync log

func EthFlipAddress added in v0.2.10

func EthFlipAddress() string

func FlapAddress added in v0.2.10

func FlapAddress() string

func FlapKickModel

func FlapKickModel() shared.InsertionModel

func FlipAddresses added in v0.2.10

func FlipAddresses() []string

func FlipKickModel

func FlipKickModel() shared.InsertionModel

func FlopAddress added in v0.2.10

func FlopAddress() string

func FlopKickModel

func FlopKickModel() shared.InsertionModel

func JugAddress added in v0.2.10

func JugAddress() string

func JugFileIlkModel added in v0.2.2

func JugFileIlkModel() shared.InsertionModel

func NewCdpModel added in v0.2.11

func NewCdpModel() shared.InsertionModel

func RandomString added in v0.2.2

func RandomString(length int) string

func SetTestConfig added in v0.2.4

func SetTestConfig() bool

func SpotAddress added in v0.2.10

func SpotAddress() string

func SpotFileMatModel added in v0.2.7

func SpotFileMatModel() shared.InsertionModel

func SpotFilePipModel added in v0.2.7

func SpotFilePipModel() shared.InsertionModel

func SpotPokeModel added in v0.2.7

func SpotPokeModel() shared.InsertionModel

func VatAddress added in v0.2.10

func VatAddress() string

func VatFileDebtCeilingModel added in v0.2.2

func VatFileDebtCeilingModel() shared.InsertionModel

func VatFileIlkDustModel added in v0.2.2

func VatFileIlkDustModel() shared.InsertionModel

func VatFileIlkLineModel added in v0.2.2

func VatFileIlkLineModel() shared.InsertionModel

func VatFileIlkSpotModel added in v0.2.2

func VatFileIlkSpotModel() shared.InsertionModel

func VatFrobModelWithNegativeDink added in v0.2.3

func VatFrobModelWithNegativeDink() shared.InsertionModel

func VatFrobModelWithPositiveDart added in v0.2.3

func VatFrobModelWithPositiveDart() shared.InsertionModel

func VowAddress added in v0.2.10

func VowAddress() string

Types

type GenericEntity

type GenericEntity struct{}

type GenericModel

type GenericModel struct{}

type WrongEntity

type WrongEntity struct{}

type WrongModel

type WrongModel struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL