Documentation ¶
Index ¶
- Constants
- func AssertDoubleMapping(res DoubleMappingRes, diffID, headerID int64, keyOne, keyTwo, value string)
- func AssertMapping(res MappingRes, diffID, headerID int64, key, value string)
- func AssertVariable(res VariableRes, diffID, headerID int64, value string)
- func CreateDiffRecord(db *postgres.DB, header core.Header, hashedAddress, key, value common.Hash) types.PersistedDiff
- func CreateFakeDiffRecord(db *postgres.DB) int64
- func CreateFakeDiffRecordWithHeader(db *postgres.DB, header core.Header) int64
- func CreateHeader(timestamp int64, blockNumber int, db *postgres.DB) core.Header
- func CreateHeaderWithHash(hash string, timestamp int64, blockNumber int, db *postgres.DB) core.Header
- func FormatTimestamp(timestamp int64) string
- func GetFakeStorageDiffForHeader(header core.Header, hashedAddress, storageKey, storageValue common.Hash) types.RawDiff
- type BlockMetadata
- type DiffMetadata
- type DoubleMappingRes
- type FlapRes
- type FlopRes
- type MappingRes
- type MappingResWithAddress
- type MockMakerStorageRepository
- func (repository *MockMakerStorageRepository) GetCdpis() ([]string, error)
- func (repository *MockMakerStorageRepository) GetDaiKeys() ([]string, error)
- func (repository *MockMakerStorageRepository) GetFlapBidIDs(string) ([]string, error)
- func (repository *MockMakerStorageRepository) GetFlipBidIDs(contractAddress string) ([]string, error)
- func (repository *MockMakerStorageRepository) GetFlopBidIDs(contractAddress string) ([]string, error)
- func (repository *MockMakerStorageRepository) GetGemKeys() ([]storage.Urn, error)
- func (repository *MockMakerStorageRepository) GetIlks() ([]string, error)
- func (repository *MockMakerStorageRepository) GetMedianBudAddresses(address string) ([]string, error)
- func (repository *MockMakerStorageRepository) GetMedianOrclAddresses(address string) ([]string, error)
- func (repository *MockMakerStorageRepository) GetMedianSlotIDs() ([]string, error)
- func (repository *MockMakerStorageRepository) GetOwners() ([]string, error)
- func (repository *MockMakerStorageRepository) GetPotPieUsers() ([]string, error)
- func (repository *MockMakerStorageRepository) GetUrns() ([]storage.Urn, error)
- func (repository *MockMakerStorageRepository) GetVatSinKeys() ([]string, error)
- func (repository *MockMakerStorageRepository) GetVatWardsAddresses() ([]string, error)
- func (repository *MockMakerStorageRepository) GetVowSinKeys() ([]string, error)
- func (repository *MockMakerStorageRepository) GetWardsAddresses(contractAddress string) ([]string, error)
- func (repository *MockMakerStorageRepository) SetDB(db *postgres.DB)
- type VariableRes
Constants ¶
View Source
const ( FakeAddress = "0x0123456789abcdef000000000000000000000000" FakeIlk = "0x464b450000000000000000000000000000000000000000000000000000000000" )
Variables ¶
This section is empty.
Functions ¶
func AssertDoubleMapping ¶
func AssertDoubleMapping(res DoubleMappingRes, diffID, headerID int64, keyOne, keyTwo, value string)
func AssertMapping ¶
func AssertMapping(res MappingRes, diffID, headerID int64, key, value string)
func AssertVariable ¶
func AssertVariable(res VariableRes, diffID, headerID int64, value string)
func CreateDiffRecord ¶ added in v0.2.17
func CreateFakeDiffRecord ¶ added in v0.2.17
func CreateFakeDiffRecordWithHeader ¶ added in v0.2.17
func CreateHeader ¶ added in v0.2.15
func CreateHeaderWithHash ¶ added in v0.2.15
func FormatTimestamp ¶ added in v0.2.15
Types ¶
type BlockMetadata ¶
type BlockMetadata struct {
HeaderID int64 `db:"header_id"`
}
type DiffMetadata ¶ added in v0.2.17
type DiffMetadata struct { BlockMetadata DiffID int64 `db:"diff_id"` Value string }
type DoubleMappingRes ¶
type DoubleMappingRes struct { DiffMetadata KeyOne string `db:"key_one"` KeyTwo string `db:"key_two"` }
type MappingRes ¶
type MappingRes struct { DiffMetadata Key string }
type MappingResWithAddress ¶
type MappingResWithAddress struct { MappingRes AddressID string `db:"address_id"` }
type MockMakerStorageRepository ¶
type MockMakerStorageRepository struct { Cdpis []string DaiKeys []string FlapBidIDs []string FlipBidIDs []string FlopBidIDs []string GemKeys []storage.Urn Ilks []string MedianBudAddresses []string MedianOrclAddresses []string MedianSlotIDs []string Owners []string PotPieUsers []string SinKeys []string Urns []storage.Urn VatWardsKeys []string WardsKeys []string GetCdpisCalled bool GetCdpisError error GetDaiKeysCalled bool GetDaiKeysError error GetFlapBidIDsCalled bool GetFlapBidIDsError error GetFlipBidIDsCalledWith string GetFlipBidIDsError error GetFlopBidIDsCalledWith string GetFlopBidIDsError error GetGemKeysCalled bool GetGemKeysError error GetIlksCalled bool GetIlksError error GetMedianBudAddressesCalledWith string GetMedianBudAddressesError error GetMedianOrclAddressesCalledWith string GetMedianOrclAddressesError error GetMedianSlotIdCalled bool GetMedianSlotIdError error GetOwnersCalled bool GetOwnersError error GetPotPieUsersCalled bool GetPotPieUsersError error GetVatSinKeysCalled bool GetVatSinKeysError error GetVowSinKeysCalled bool GetVowSinKeysError error GetUrnsCalled bool GetUrnsError error GetVatWardsKeysCalled bool GetVatWardsKeysError error GetWardsKeysCalledWith string GetWardsKeysError error }
func (*MockMakerStorageRepository) GetCdpis ¶ added in v0.2.15
func (repository *MockMakerStorageRepository) GetCdpis() ([]string, error)
func (*MockMakerStorageRepository) GetDaiKeys ¶
func (repository *MockMakerStorageRepository) GetDaiKeys() ([]string, error)
func (*MockMakerStorageRepository) GetFlapBidIDs ¶
func (repository *MockMakerStorageRepository) GetFlapBidIDs(string) ([]string, error)
func (*MockMakerStorageRepository) GetFlipBidIDs ¶
func (repository *MockMakerStorageRepository) GetFlipBidIDs(contractAddress string) ([]string, error)
func (*MockMakerStorageRepository) GetFlopBidIDs ¶
func (repository *MockMakerStorageRepository) GetFlopBidIDs(contractAddress string) ([]string, error)
func (*MockMakerStorageRepository) GetGemKeys ¶
func (repository *MockMakerStorageRepository) GetGemKeys() ([]storage.Urn, error)
func (*MockMakerStorageRepository) GetIlks ¶
func (repository *MockMakerStorageRepository) GetIlks() ([]string, error)
func (*MockMakerStorageRepository) GetMedianBudAddresses ¶
func (repository *MockMakerStorageRepository) GetMedianBudAddresses(address string) ([]string, error)
func (*MockMakerStorageRepository) GetMedianOrclAddresses ¶
func (repository *MockMakerStorageRepository) GetMedianOrclAddresses(address string) ([]string, error)
func (*MockMakerStorageRepository) GetMedianSlotIDs ¶
func (repository *MockMakerStorageRepository) GetMedianSlotIDs() ([]string, error)
func (*MockMakerStorageRepository) GetOwners ¶ added in v0.2.15
func (repository *MockMakerStorageRepository) GetOwners() ([]string, error)
func (*MockMakerStorageRepository) GetPotPieUsers ¶ added in v0.2.17
func (repository *MockMakerStorageRepository) GetPotPieUsers() ([]string, error)
func (*MockMakerStorageRepository) GetUrns ¶
func (repository *MockMakerStorageRepository) GetUrns() ([]storage.Urn, error)
func (*MockMakerStorageRepository) GetVatSinKeys ¶ added in v0.2.2
func (repository *MockMakerStorageRepository) GetVatSinKeys() ([]string, error)
func (*MockMakerStorageRepository) GetVatWardsAddresses ¶
func (repository *MockMakerStorageRepository) GetVatWardsAddresses() ([]string, error)
func (*MockMakerStorageRepository) GetVowSinKeys ¶ added in v0.2.2
func (repository *MockMakerStorageRepository) GetVowSinKeys() ([]string, error)
func (*MockMakerStorageRepository) GetWardsAddresses ¶
func (repository *MockMakerStorageRepository) GetWardsAddresses(contractAddress string) ([]string, error)
func (*MockMakerStorageRepository) SetDB ¶
func (repository *MockMakerStorageRepository) SetDB(db *postgres.DB)
type VariableRes ¶
type VariableRes struct {
DiffMetadata
}
Click to show internal directories.
Click to hide internal directories.