Documentation
¶
Index ¶
- Constants
- func AssertDoubleMapping(res DoubleMappingRes, blockNumber int, blockHash, keyOne, keyTwo, value string)
- func AssertMapping(res MappingRes, blockNumber int, blockHash, key, value string)
- func AssertVariable(res VariableRes, blockNumber int, blockHash, value string)
- type AuctionMappingRes
- type AuctionVariableRes
- type BlockMetadata
- type DoubleMappingRes
- type MappingRes
- type MockMakerStorageRepository
- 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) GetUrns() ([]storage.Urn, error)
- func (repository *MockMakerStorageRepository) GetVatSinKeys() ([]string, error)
- func (repository *MockMakerStorageRepository) GetVowSinKeys() ([]string, error)
- func (repository *MockMakerStorageRepository) SetDB(db *postgres.DB)
- type VariableRes
Constants ¶
View Source
const ( FakeAddress = "0x0123456789abcdef000000000000000000000000" FakeIlk = "0x1234567890abcdef000000000000000000000000000000000000000000000000" )
Variables ¶
This section is empty.
Functions ¶
func AssertDoubleMapping ¶
func AssertDoubleMapping(res DoubleMappingRes, blockNumber int, blockHash, keyOne, keyTwo, value string)
func AssertMapping ¶
func AssertMapping(res MappingRes, blockNumber int, blockHash, key, value string)
func AssertVariable ¶
func AssertVariable(res VariableRes, blockNumber int, blockHash, value string)
Types ¶
type AuctionMappingRes ¶ added in v0.2.9
type AuctionMappingRes struct {
MappingRes
ContractAddress string `db:"contract_address"`
}
type AuctionVariableRes ¶ added in v0.2.9
type AuctionVariableRes struct {
VariableRes
ContractAddress string `db:"contract_address"`
}
type BlockMetadata ¶
type DoubleMappingRes ¶
type DoubleMappingRes struct {
BlockMetadata
KeyOne string `db:"key_one"`
KeyTwo string `db:"key_two"`
Value string
}
type MappingRes ¶
type MappingRes struct {
BlockMetadata
Key string
Value string
}
type MockMakerStorageRepository ¶
type MockMakerStorageRepository struct {
DaiKeys []string
FlapBidIds []string
FlipBidIds []string
FlopBidIds []string
GemKeys []storage.Urn
GetDaiKeysCalled bool
GetDaiKeysError error
GetGemKeysCalled bool
GetGemKeysError error
GetFlapBidIdsCalled bool
GetFlipBidIdsCalledWith string
GetFlopBidIdsCalledWith string
GetFlapBidIdsError error
GetFlipBidIdsError error
GetFlopBidIdsError error
GetIlksCalled bool
GetIlksError error
GetVatSinKeysCalled bool
GetVatSinKeysError error
GetVowSinKeysCalled bool
GetVowSinKeysError error
GetUrnsCalled bool
GetUrnsError error
Ilks []string
SinKeys []string
Urns []storage.Urn
}
func (*MockMakerStorageRepository) GetDaiKeys ¶
func (repository *MockMakerStorageRepository) GetDaiKeys() ([]string, error)
func (*MockMakerStorageRepository) GetFlapBidIds ¶ added in v0.2.9
func (repository *MockMakerStorageRepository) GetFlapBidIds(string) ([]string, error)
func (*MockMakerStorageRepository) GetFlipBidIds ¶ added in v0.2.9
func (repository *MockMakerStorageRepository) GetFlipBidIds(contractAddress string) ([]string, error)
func (*MockMakerStorageRepository) GetFlopBidIds ¶ added in v0.2.9
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) GetUrns ¶
func (repository *MockMakerStorageRepository) GetUrns() ([]storage.Urn, error)
func (*MockMakerStorageRepository) GetVatSinKeys ¶ added in v0.2.2
func (repository *MockMakerStorageRepository) GetVatSinKeys() ([]string, error)
func (*MockMakerStorageRepository) GetVowSinKeys ¶ added in v0.2.2
func (repository *MockMakerStorageRepository) GetVowSinKeys() ([]string, error)
func (*MockMakerStorageRepository) SetDB ¶
func (repository *MockMakerStorageRepository) SetDB(db *postgres.DB)
type VariableRes ¶
type VariableRes struct {
BlockMetadata
Value string
}
Click to show internal directories.
Click to hide internal directories.