constants

package
v1.1.2-mainnet.rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	A         types.Key = "a"
	Address   types.Key = "address"
	BidId     types.Key = "bid_id"
	Cdpi      types.Key = "cdpi"
	Flip      types.Key = "flip"
	Guy       types.Key = "guy"
	Ilk       types.Key = "ilk"
	MsgSender types.Key = "msg_sender"
	Owner     types.Key = "owner"
	SlotId    types.Key = "slot_id"
	Timestamp types.Key = "timestamp"
	User      types.Key = "usr"
)

Storage keys

View Source
const (
	AColumn         event.ColumnName = "a"
	ALengthColumn   event.ColumnName = "a_length"
	AgeColumn       event.ColumnName = "age"
	ArtColumn       event.ColumnName = "art"
	BidColumn       event.ColumnName = "bid"
	BidIDColumn     event.ColumnName = "bid_id"
	CdpColumn       event.ColumnName = "cdp"
	DartColumn      event.ColumnName = "dart"
	DataColumn      event.ColumnName = "data"
	DinkColumn      event.ColumnName = "dink"
	DstColumn       event.ColumnName = "dst"
	EndColumn       event.ColumnName = "end"
	EraColumn       event.ColumnName = "era"
	FlipColumn      event.ColumnName = "flip"
	GalColumn       event.ColumnName = "gal"
	GuyColumn       event.ColumnName = "guy"
	IlkColumn       event.ColumnName = "ilk_id"
	InkColumn       event.ColumnName = "ink"
	LotColumn       event.ColumnName = "lot"
	MsgSenderColumn event.ColumnName = "msg_sender"
	OwnColumn       event.ColumnName = "own"
	PipColumn       event.ColumnName = "pip"
	RadColumn       event.ColumnName = "rad"
	RateColumn      event.ColumnName = "rate"
	SpotColumn      event.ColumnName = "spot"
	SrcColumn       event.ColumnName = "src"
	TabColumn       event.ColumnName = "tab"
	TicColumn       event.ColumnName = "tic"
	UColumn         event.ColumnName = "u"
	UrnColumn       event.ColumnName = "urn_id"
	UsrColumn       event.ColumnName = "usr"
	VColumn         event.ColumnName = "v"
	ValColumn       event.ColumnName = "val"
	WColumn         event.ColumnName = "w"
	WadColumn       event.ColumnName = "wad"
	WhatColumn      event.ColumnName = "what"
	ValueColumn     event.ColumnName = "value"
)

Table column names

View Source
const (
	MakerSchema  = "maker"
	APISchema    = "api"
	PublicSchema = "public"
)
View Source
const (
	AuctionFileTable              = "auction_file"
	BiteTable                     = "bite"
	CatClawTable                  = "cat_claw"
	CatFileBoxTable               = "cat_file_box"
	CatFileChopLumpDunkTable      = "cat_file_chop_lump_dunk"
	CatFileFlipTable              = "cat_file_flip"
	CatFileVowTable               = "cat_file_vow"
	DealTable                     = "deal"
	DentTable                     = "dent"
	DenyTable                     = "deny"
	FlapKickTable                 = "flap_kick"
	FlipFileCatTable              = "flip_file_cat"
	FlipKickTable                 = "flip_kick"
	FlopKickTable                 = "flop_kick"
	JugDripTable                  = "jug_drip"
	JugFileBaseTable              = "jug_file_base"
	JugFileIlkTable               = "jug_file_ilk"
	JugFileVowTable               = "jug_file_vow"
	JugInitTable                  = "jug_init"
	LogMedianPriceTable           = "log_median_price"
	LogValueTable                 = "log_value"
	MedianDissBatchTable          = "median_diss_batch"
	MedianDissSingleTable         = "median_diss_single"
	MedianDropTable               = "median_drop"
	MedianKissBatchTable          = "median_kiss_batch"
	MedianKissSingleTable         = "median_kiss_single"
	MedianLiftTable               = "median_lift"
	NewCdpTable                   = "new_cdp"
	OsmChangeTable                = "osm_change"
	PotCageTable                  = "pot_cage"
	PotDripTable                  = "pot_drip"
	PotExitTable                  = "pot_exit"
	PotFileDSRTable               = "pot_file_dsr"
	PotFileVowTable               = "pot_file_vow"
	PotJoinTable                  = "pot_join"
	RelyTable                     = "rely"
	SpotFileMatTable              = "spot_file_mat"
	SpotFileParTable              = "spot_file_par"
	SpotFilePipTable              = "spot_file_pip"
	SpotPokeTable                 = "spot_poke"
	TendTable                     = "tend"
	TickTable                     = "tick"
	VatDenyTable                  = "vat_deny"
	VatFileDebtCeilingTable       = "vat_file_debt_ceiling"
	VatFileIlkTable               = "vat_file_ilk"
	VatFluxTable                  = "vat_flux"
	VatFoldTable                  = "vat_fold"
	VatForkTable                  = "vat_fork"
	VatFrobTable                  = "vat_frob"
	VatGrabTable                  = "vat_grab"
	VatHealTable                  = "vat_heal"
	VatHopeTable                  = "vat_hope"
	VatInitTable                  = "vat_init"
	VatMoveTable                  = "vat_move"
	VatNopeTable                  = "vat_nope"
	VatRelyTable                  = "vat_rely"
	VatSlipTable                  = "vat_slip"
	VatSuckTable                  = "vat_suck"
	VowFessTable                  = "vow_fess"
	VowFileAuctionAttributesTable = "vow_file_auction_attributes"
	VowFileAuctionAddressTable    = "vow_file_auction_address"
	VowFlogTable                  = "vow_flog"
	VowHealTable                  = "vow_heal"
	YankTable                     = "yank"
)

event tables

View Source
const (
	CatBoxTable             = "cat_box"
	CatIlkChopTable         = "cat_ilk_chop"
	CatIlkDunkTable         = "cat_ilk_dunk"
	CatIlkFlipTable         = "cat_ilk_flip"
	CatIlkLumpTable         = "cat_ilk_lump"
	CatLitterTable          = "cat_litter"
	CatLiveTable            = "cat_live"
	CatVatTable             = "cat_vat"
	CatVowTable             = "cat_vow"
	CdpManagerCdpiTable     = "cdp_manager_cdpi"
	CdpManagerCountTable    = "cdp_manager_count"
	CdpManagerFirstTable    = "cdp_manager_first"
	CdpManagerIlksTable     = "cdp_manager_ilks"
	CdpManagerLastTable     = "cdp_manager_last"
	CdpManagerListNextTable = "cdp_manager_list_next"
	CdpManagerListPrevTable = "cdp_manager_list_prev"
	CdpManagerOwnsTable     = "cdp_manager_owns"
	CdpManagerUrnsTable     = "cdp_manager_urns"
	CdpManagerVatTable      = "cdp_manager_vat"
	FlapBegTable            = "flap_beg"
	FlapBidBidTable         = "flap_bid_bid"
	FlapBidEndTable         = "flap_bid_end"
	FlapBidGuyTable         = "flap_bid_guy"
	FlapBidLotTable         = "flap_bid_lot"
	FlapBidTicTable         = "flap_bid_tic"
	FlapGemTable            = "flap_gem"
	FlapKicksTable          = "flap_kicks"
	FlapLiveTable           = "flap_live"
	FlapTauTable            = "flap_tau"
	FlapTtlTable            = "flap_ttl"
	FlapVatTable            = "flap_vat"
	FlipBegTable            = "flip_beg"
	FlipCatTable            = "flip_cat"
	FlipBidBidTable         = "flip_bid_bid"
	FlipBidEndTable         = "flip_bid_end"
	FlipBidGalTable         = "flip_bid_gal"
	FlipBidGuyTable         = "flip_bid_guy"
	FlipBidLotTable         = "flip_bid_lot"
	FlipBidTabTable         = "flip_bid_tab"
	FlipBidTicTable         = "flip_bid_tic"
	FlipBidUsrTable         = "flip_bid_usr"
	FlipIlkTable            = "flip_ilk"
	FlipKicksTable          = "flip_kicks"
	FlipTauTable            = "flip_tau"
	FlipTtlTable            = "flip_ttl"
	FlipVatTable            = "flip_vat"
	FlopBegTable            = "flop_beg"
	FlopBidBidTable         = "flop_bid_bid"
	FlopBidEndTable         = "flop_bid_end"
	FlopBidGuyTable         = "flop_bid_guy"
	FlopBidLotTable         = "flop_bid_lot"
	FlopBidTicTable         = "flop_bid_tic"
	FlopGemTable            = "flop_gem"
	FlopKicksTable          = "flop_kicks"
	FlopLiveTable           = "flop_live"
	FlopPadTable            = "flop_pad"
	FlopTauTable            = "flop_tau"
	FlopTtlTable            = "flop_ttl"
	FlopVatTable            = "flop_vat"
	FlopVowTable            = "flop_vow"
	JugBaseTable            = "jug_base"
	JugIlkDutyTable         = "jug_ilk_duty"
	JugIlkRhoTable          = "jug_ilk_rho"
	JugVatTable             = "jug_vat"
	JugVowTable             = "jug_vow"
	MedianValTable          = "median_val"
	MedianAgeTable          = "median_age"
	MedianBarTable          = "median_bar"
	MedianBudTable          = "median_bud"
	MedianOrclTable         = "median_orcl"
	MedianSlotTable         = "median_slot"
	PotChiTable             = "pot_chi"
	PotDsrTable             = "pot_dsr"
	PotLiveTable            = "pot_live"
	PotPieTable             = "pot_pie"
	PotRhoTable             = "pot_rho"
	SpotIlkMatTable         = "spot_ilk_mat"
	SpotIlkPipTable         = "spot_ilk_pip"
	SpotLiveTable           = "spot_live"
	SpotParTable            = "spot_par"
	SpotVatTable            = "spot_vat"
	VatDaiTable             = "vat_dai"
	VatDebtTable            = "vat_debt"
	VatGemTable             = "vat_gem"
	VatIlkArtTable          = "vat_ilk_art"
	VatIlkDustTable         = "vat_ilk_dust"
	VatIlkLineTable         = "vat_ilk_line"
	VatIlkRateTable         = "vat_ilk_rate"
	VatIlkSpotTable         = "vat_ilk_spot"
	VatLineTable            = "vat_line"
	VatLiveTable            = "vat_live"
	VatSinTable             = "vat_sin"
	VatUrnArtTable          = "vat_urn_art"
	VatUrnInkTable          = "vat_urn_ink"
	VatViceTable            = "vat_vice"
	VowAshTable             = "vow_ash"
	VowBumpTable            = "vow_bump"
	VowDumpTable            = "vow_dump"
	VowFlapperTable         = "vow_flapper"
	VowFlopperTable         = "vow_flopper"
	VowHumpTable            = "vow_hump"
	VowLiveTable            = "vow_live"
	VowSinIntegerTable      = "vow_sin_integer"
	VowSinMappingTable      = "vow_sin_mapping"
	VowSumpTable            = "vow_sump"
	VowVatTable             = "vow_vat"
	VowWaitTable            = "vow_wait"
	WardsTable              = "wards"
)

storage tables

View Source
const (
	FlapTable = "flap"
	FlipTable = "flip"
	FlopTable = "flop"
)

trigger tables

Variables

This section is empty.

Functions

func AuctionFileSignature

func AuctionFileSignature() string

func BiteSignature added in v0.2.4

func BiteSignature() string

func Cat100ABI

func Cat100ABI() string

TODO Figure out signatures automatically from config somehow :(

func Cat110ABI

func Cat110ABI() string

func CatClawSignature

func CatClawSignature() string

func CatFileBoxSignature

func CatFileBoxSignature() string

func CatFileChopLumpDunkSignature

func CatFileChopLumpDunkSignature() string

func CatFileFlipSignature added in v0.2.4

func CatFileFlipSignature() string

func CatFileVowSignature added in v0.2.4

func CatFileVowSignature() string

func CdpManagerABI added in v0.2.15

func CdpManagerABI() string

func DealSignature added in v0.2.4

func DealSignature() string

func DentSignature added in v0.2.4

func DentSignature() string

func DenySignature

func DenySignature() string

func FlapABI added in v0.2.15

func FlapABI() string

func FlapKickSignature added in v0.2.4

func FlapKickSignature() string

func FlipFileCatSignature

func FlipFileCatSignature() string

func FlipKickSignature added in v0.2.4

func FlipKickSignature() string

func FlipV100ABI

func FlipV100ABI() string

func FlipV110ABI

func FlipV110ABI() string

func FlopABI added in v0.2.15

func FlopABI() string

func FlopKickSignature added in v0.2.4

func FlopKickSignature() string

func GetABIFromContractsWithMatchingABI

func GetABIFromContractsWithMatchingABI(contractNames []string) string

GetABIFromContractsWithMatchingABI gets the ABI for multiple contracts from config Makes sure the ABI matches for all, since a single transformer may run against many contracts.

func GetContractAddress added in v0.2.15

func GetContractAddress(contract string) string

func GetContractAddresses added in v0.2.15

func GetContractAddresses(contractNames []string) (addresses []string)

Get the addresses for multiple contracts from config

func GetFirstABI

func GetFirstABI(contractNames []string) string

GetFirstABI returns the ABI from the first contract in a collection in config

func GetMinDeploymentBlock added in v0.2.15

func GetMinDeploymentBlock(contractNames []string) int64

Get the minimum deployment block for multiple contracts from config

func GetTransformerContractNames added in v0.2.15

func GetTransformerContractNames(transformerLabel string) []string
Returns all contract config names from transformer configuration:

[exporter.vow_file]

path = "transformers/events/vow_file/initializer"
type = "eth_event"
repository = "github.com/makerdao/vdb-mcd-transformers"
migrations = "db/migrations"
contracts = ["MCD_VOW"]   <----
rank = "0"

func JugABI added in v0.2.2

func JugABI() string

func JugDripSignature added in v0.2.4

func JugDripSignature() string

func JugFileBaseSignature added in v0.2.4

func JugFileBaseSignature() string

func JugFileIlkSignature added in v0.2.4

func JugFileIlkSignature() string

func JugFileVowSignature added in v0.2.4

func JugFileVowSignature() string

func JugInitSignature added in v0.2.6

func JugInitSignature() string

func LogMedianPriceSignature

func LogMedianPriceSignature() string

func LogValueSignature added in v0.2.17

func LogValueSignature() string

func MedianABI

func MedianABI() string

func MedianDissBatchSignature

func MedianDissBatchSignature() string

func MedianDissSingleSignature

func MedianDissSingleSignature() string

func MedianDropSignature

func MedianDropSignature() string

func MedianKissBatchSignature

func MedianKissBatchSignature() string

func MedianKissSingleSignature

func MedianKissSingleSignature() string

func MedianLiftSignature

func MedianLiftSignature() string

func NewCdpSignature added in v0.2.15

func NewCdpSignature() string

func OsmABI added in v0.2.17

func OsmABI() string

func OsmChangeSignature

func OsmChangeSignature() string

func PotABI added in v0.2.17

func PotABI() string

func PotCageSignature added in v0.2.17

func PotCageSignature() string

func PotDripSignature added in v0.2.17

func PotDripSignature() string

func PotExitSignature added in v0.2.17

func PotExitSignature() string

func PotFileDSRSignature added in v0.2.17

func PotFileDSRSignature() string

func PotFileVowSignature added in v0.2.17

func PotFileVowSignature() string

func PotJoinSignature added in v0.2.17

func PotJoinSignature() string

func RelySignature

func RelySignature() string

func SpotABI added in v0.2.7

func SpotABI() string

func SpotFileMatSignature added in v0.2.7

func SpotFileMatSignature() string

func SpotFileParSignature added in v0.2.17

func SpotFileParSignature() string

func SpotFilePipSignature added in v0.2.7

func SpotFilePipSignature() string

func SpotPokeSignature added in v0.2.7

func SpotPokeSignature() string

func TendSignature added in v0.2.4

func TendSignature() string

func TickSignature added in v0.2.15

func TickSignature() string

func VatABI

func VatABI() string

func VatFileDebtCeilingSignature added in v0.2.4

func VatFileDebtCeilingSignature() string

func VatFileIlkSignature added in v0.2.4

func VatFileIlkSignature() string

func VatFluxSignature added in v0.2.4

func VatFluxSignature() string

func VatFoldSignature added in v0.2.4

func VatFoldSignature() string

func VatForkSignature added in v0.2.6

func VatForkSignature() string

func VatFrobSignature added in v0.2.4

func VatFrobSignature() string

func VatGrabSignature added in v0.2.4

func VatGrabSignature() string

func VatHealSignature added in v0.2.4

func VatHealSignature() string

func VatHopeSignature

func VatHopeSignature() string

func VatInitSignature added in v0.2.4

func VatInitSignature() string

func VatMoveSignature added in v0.2.4

func VatMoveSignature() string

func VatNopeSignature

func VatNopeSignature() string

func VatSlipSignature added in v0.2.4

func VatSlipSignature() string

func VatSuckSignature added in v0.2.6

func VatSuckSignature() string

func VowABI

func VowABI() string

func VowFessSignature added in v0.2.4

func VowFessSignature() string

func VowFileAuctionAddressSignature

func VowFileAuctionAddressSignature() string

func VowFileAuctionAttributesSignature

func VowFileAuctionAttributesSignature() string

func VowFlogSignature added in v0.2.4

func VowFlogSignature() string

func VowHealSignature

func VowHealSignature() string

func YankSignature added in v0.2.8

func YankSignature() string

Types

type ContractMethod added in v0.2.8

type ContractMethod struct {
	Name   string
	Inputs []MethodInput
}

type MethodInput added in v0.2.8

type MethodInput struct {
	Type string
}

Jump to

Keyboard shortcuts

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