Documentation ¶
Index ¶
- Variables
- func AssertUrn(actual, expected UrnState)
- func CreateCatRecords(db *postgres.DB, header core.Header, valuesMap map[string]interface{}, ...)
- func CreateDeal(input DealCreationInput) (err error)
- func CreateDent(input DentCreationInput) (err error)
- func CreateFlap(db *postgres.DB, header core.Header, valuesMap map[string]interface{}, ...)
- func CreateFlapKick(contractAddress string, bidId int, headerId, logId int64, db *postgres.DB) error
- func CreateFlip(db *postgres.DB, header core.Header, valuesMap map[string]interface{}, ...)
- func CreateFlipKick(contractAddress string, bidId int, headerId, logId int64, usr string, ...) error
- func CreateFlop(db *postgres.DB, header core.Header, valuesMap map[string]interface{}, ...)
- func CreateFlopKick(contractAddress string, bidId int, headerId, logId int64, db *postgres.DB) error
- func CreateIlk(db *postgres.DB, header core.Header, valuesMap map[string]interface{}, ...)
- func CreateJugRecords(db *postgres.DB, header core.Header, valuesMap map[string]interface{}, ...)
- func CreateManagedCdp(db *postgres.DB, header core.Header, valuesMap map[string]interface{}, ...) error
- func CreateSpotRecords(db *postgres.DB, header core.Header, valuesMap map[string]interface{}, ...)
- func CreateTend(input TendCreationInput) (err error)
- func CreateTick(input TickCreationInput) (err error)
- func CreateUrn(db *postgres.DB, setupData map[string]interface{}, header core.Header, ...)
- func CreateVatInit(db *postgres.DB, headerID int64, ilkHex string) event.InsertionModel
- func CreateVatRecords(db *postgres.DB, header core.Header, valuesMap map[string]interface{}, ...)
- func CreateYank(input YankCreationInput) (err error)
- func GetCdpManagerMetadatas(cdpi string) []types.ValueMetadata
- func GetCdpManagerStorageValues(seed int, ilkHex string, urnGuy string, cdpi int) map[string]interface{}
- func GetCommonBidMetadatas(bidId string) []types.ValueMetadata
- func GetCommonBidStorageValues(seed, bidId int) map[string]interface{}
- func GetEmptyNullString() sql.NullString
- func GetExpectedTimestamp(epoch int) string
- func GetFlapMetadatas(bidId string) []types.ValueMetadata
- func GetFlapStorageValues(seed, bidId int) map[string]interface{}
- func GetFlipMetadatas(bidId string) []types.ValueMetadata
- func GetFlipStorageValues(seed int, ilk string, bidId int) map[string]interface{}
- func GetFlopMetadatas(bidId string) []types.ValueMetadata
- func GetFlopStorageValues(seed, bidId int) map[string]interface{}
- func GetIlkValues(seed int) map[string]interface{}
- func GetRandomInt(min, max int) int
- func GetUrnSetupData() map[string]interface{}
- func GetValidNullString(val string) sql.NullString
- func InsertValues(db *postgres.DB, repo vdbStorageFactory.Repository, header core.Header, ...)
- func SetUpFlapBidContext(setupData FlapBidCreationInput) (err error)
- func SetUpFlipBidContext(setupData FlipBidContextInput) (ilkId, urnId int64, err error)
- func SetUpFlopBidContext(setupData FlopBidCreationInput) (err error)
- type BidEvent
- type BiteEvent
- type DealCreationInput
- type DentCreationInput
- type FlapBid
- type FlapBidCreationInput
- type FlipBid
- type FlipBidContextInput
- type FlopBid
- type FlopBidCreationInput
- type FrobEvent
- type IlkFileEvent
- type IlkSnapshot
- type ManagedCdp
- type PokeEvent
- type SinQueueEvent
- type TendCreationInput
- type TestIlk
- type TickCreationInput
- type UrnMetadata
- type UrnState
- type YankCreationInput
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FakeIlk = TestIlk{ Hex: "0x464b450000000000000000000000000000000000000000000000000000000000", Identifier: "FKE", } AnotherFakeIlk = TestIlk{ Hex: "0x464b453200000000000000000000000000000000000000000000000000000000", Identifier: "FKE2", } EmptyMetadatas []types.ValueMetadata FakeIlkRateMetadata = types.GetValueMetadata(vat.IlkRate, map[types.Key]string{constants.Ilk: FakeIlk.Hex}, types.Uint256) FakeIlkArtMetadata = types.GetValueMetadata(vat.IlkArt, map[types.Key]string{constants.Ilk: FakeIlk.Hex}, types.Uint256) FakeIlkSpotMetadata = types.GetValueMetadata(vat.IlkSpot, map[types.Key]string{constants.Ilk: FakeIlk.Hex}, types.Uint256) FakeIlkLineMetadata = types.GetValueMetadata(vat.IlkLine, map[types.Key]string{constants.Ilk: FakeIlk.Hex}, types.Uint256) FakeIlkDustMetadata = types.GetValueMetadata(vat.IlkDust, map[types.Key]string{constants.Ilk: FakeIlk.Hex}, types.Uint256) FakeIlkVatMetadatas = []types.ValueMetadata{ FakeIlkRateMetadata, FakeIlkArtMetadata, FakeIlkSpotMetadata, FakeIlkLineMetadata, FakeIlkDustMetadata, } FakeIlkCatMetadatas = []types.ValueMetadata{ fakeIlkChopMetadata, fakeIlkLumpMetadata, fakeIlkFlipMetadata, } FakeIlkJugMetadatas = []types.ValueMetadata{ fakeIlkRhoMetadata, fakeIlkTaxMetadata, } FakeIlkSpotMetadatas = []types.ValueMetadata{ fakeIlkPipMetadata, fakeIlkMatMetadata, } AnotherFakeIlkVatMetadatas = []types.ValueMetadata{ anotherFakeIlkRateMetadata, anotherFakeIlkArtMetadata, anotherFakeIlkSpotMetadata, anotherFakeIlkLineMetadata, anotherFakeIlkDustMetadata, } AnotherFakeIlkCatMetadatas = []types.ValueMetadata{ anotherFakeIlkChopMetadata, anotherFakeIlkLumpMetadata, anotherFakeIlkFlipMetadata, } AnotherFakeIlkJugMetadatas = []types.ValueMetadata{ anotherFakeIlkRhoMetadata, anotherFakeIlkTaxMetadata, } AnotherFakeIlkSpotMetadatas = []types.ValueMetadata{ anotherFakeIlkPipMetadata, anotherFakeIlkMatMetadata, } )
Functions ¶
func CreateCatRecords ¶
func CreateCatRecords(db *postgres.DB, header core.Header, valuesMap map[string]interface{}, metadatas []types.ValueMetadata, repository cat.CatStorageRepository)
func CreateDeal ¶ added in v0.2.15
func CreateDeal(input DealCreationInput) (err error)
func CreateDent ¶ added in v0.2.15
func CreateDent(input DentCreationInput) (err error)
func CreateFlap ¶ added in v0.2.15
func CreateFlapKick ¶ added in v0.2.15
func CreateFlip ¶ added in v0.2.15
func CreateFlipKick ¶ added in v0.2.15
func CreateFlop ¶ added in v0.2.15
func CreateFlopKick ¶ added in v0.2.15
func CreateJugRecords ¶
func CreateJugRecords(db *postgres.DB, header core.Header, valuesMap map[string]interface{}, metadatas []types.ValueMetadata, repository jug.JugStorageRepository)
func CreateManagedCdp ¶ added in v0.2.15
func CreateSpotRecords ¶ added in v0.2.7
func CreateSpotRecords(db *postgres.DB, header core.Header, valuesMap map[string]interface{}, metadatas []types.ValueMetadata, repository spot.SpotStorageRepository)
func CreateTend ¶ added in v0.2.15
func CreateTend(input TendCreationInput) (err error)
func CreateTick ¶ added in v0.2.15
func CreateTick(input TickCreationInput) (err error)
func CreateUrn ¶
func CreateUrn(db *postgres.DB, setupData map[string]interface{}, header core.Header, metadata UrnMetadata, vatRepo vat.VatStorageRepository)
Creates urn by creating necessary state diffs and the corresponding header
func CreateVatInit ¶
func CreateVatRecords ¶
func CreateVatRecords(db *postgres.DB, header core.Header, valuesMap map[string]interface{}, metadatas []types.ValueMetadata, repository vat.VatStorageRepository)
func CreateYank ¶ added in v0.2.15
func CreateYank(input YankCreationInput) (err error)
func GetCdpManagerMetadatas ¶ added in v0.2.15
func GetCdpManagerMetadatas(cdpi string) []types.ValueMetadata
func GetCdpManagerStorageValues ¶ added in v0.2.15
func GetCommonBidMetadatas ¶
func GetCommonBidMetadatas(bidId string) []types.ValueMetadata
func GetEmptyNullString ¶ added in v0.2.4
func GetEmptyNullString() sql.NullString
func GetExpectedTimestamp ¶ added in v0.2.3
func GetFlapMetadatas ¶ added in v0.2.15
func GetFlapMetadatas(bidId string) []types.ValueMetadata
func GetFlapStorageValues ¶ added in v0.2.15
func GetFlipMetadatas ¶ added in v0.2.15
func GetFlipMetadatas(bidId string) []types.ValueMetadata
func GetFlipStorageValues ¶ added in v0.2.15
func GetFlopMetadatas ¶ added in v0.2.15
func GetFlopMetadatas(bidId string) []types.ValueMetadata
func GetFlopStorageValues ¶ added in v0.2.15
func GetIlkValues ¶
func GetRandomInt ¶ added in v0.2.4
func GetUrnSetupData ¶
func GetUrnSetupData() map[string]interface{}
func GetValidNullString ¶ added in v0.2.4
func GetValidNullString(val string) sql.NullString
func InsertValues ¶
func InsertValues(db *postgres.DB, repo vdbStorageFactory.Repository, header core.Header, valuesMap map[string]interface{}, metadatas []types.ValueMetadata)
func SetUpFlapBidContext ¶ added in v0.2.15
func SetUpFlapBidContext(setupData FlapBidCreationInput) (err error)
func SetUpFlipBidContext ¶ added in v0.2.15
func SetUpFlipBidContext(setupData FlipBidContextInput) (ilkId, urnId int64, err error)
func SetUpFlopBidContext ¶ added in v0.2.15
func SetUpFlopBidContext(setupData FlopBidCreationInput) (err error)
Types ¶
type DealCreationInput ¶ added in v0.2.15
type DentCreationInput ¶ added in v0.2.15
type FlapBid ¶ added in v0.2.15
type FlapBid struct {
// contains filtered or unexported fields
}
func FlapBidFromValues ¶ added in v0.2.15
type FlapBidCreationInput ¶ added in v0.2.15
type FlapBidCreationInput struct { DealCreationInput Dealt bool FlapKickHeaderId int64 }
type FlipBid ¶ added in v0.2.15
type FlipBid struct { IlkId string `db:"ilk_id"` UrnId string `db:"urn_id"` Gal string Tab string // contains filtered or unexported fields }
func FlipBidFromValues ¶ added in v0.2.15
type FlipBidContextInput ¶ added in v0.2.15
type FlipBidContextInput struct { DealCreationInput Dealt bool IlkHex string UrnGuy string FlipKickHeaderId int64 }
type FlopBid ¶ added in v0.2.15
type FlopBid struct {
// contains filtered or unexported fields
}
func FlopBidFromValues ¶ added in v0.2.15
type FlopBidCreationInput ¶ added in v0.2.15
type FlopBidCreationInput struct { DealCreationInput Dealt bool FlopKickHeaderId int64 }
type IlkFileEvent ¶ added in v0.2.4
type IlkFileEvent struct { IlkIdentifier sql.NullString `db:"ilk_identifier"` What string Data string }
type IlkSnapshot ¶
type IlkSnapshot struct { IlkIdentifier string `db:"ilk_identifier"` BlockNumber string `db:"block_number"` Rate string Art string Spot string Line string Dust string Chop string Lump string Flip string Rho string Duty string Pip string Mat string Created sql.NullString Updated sql.NullString }
func IlkSnapshotFromValues ¶
func IlkSnapshotFromValues(ilk, updated, created string, ilkValues map[string]interface{}) IlkSnapshot
type ManagedCdp ¶ added in v0.2.15
type ManagedCdp struct { Id string `db:"cdpi"` Usr string UrnIdentifier string `db:"urn_identifier"` IlkIdentifier string `db:"ilk_identifier"` Created sql.NullString }
func ManagedCdpFromValues ¶ added in v0.2.15
func ManagedCdpFromValues(ilkIdentifier, created string, cdpValues map[string]interface{}) ManagedCdp
type SinQueueEvent ¶ added in v0.2.4
type TendCreationInput ¶ added in v0.2.15
type TickCreationInput ¶ added in v0.2.15
type UrnMetadata ¶
type UrnMetadata struct { UrnInk types.ValueMetadata UrnArt types.ValueMetadata }
func GetUrnMetadata ¶
func GetUrnMetadata(ilk, urn string) UrnMetadata
Click to show internal directories.
Click to hide internal directories.