Documentation
¶
Index ¶
- Variables
- type Add20AssetParams
- type Add721AssetParams
- type Add1155AssetParams
- type AddBackfillCrawlerParams
- type AddNewAssetParams
- type AddOnchainTransactionParams
- type App
- type Asset
- type AssetType
- type BackfillCrawler
- type Chain
- type CrawlerStatus
- type Erc20CollectionAsset
- type Erc721CollectionAsset
- type Erc1155CollectionAsset
- type Erc1155TotalSupply
- type GetCrawlingBackfillCrawlerRow
- type NullAssetType
- type NullCrawlerStatus
- type OnchainHistory
- type UpdateCrawlingBackfillParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ContractType = make(map[int32]map[string]Asset)
Functions ¶
This section is empty.
Types ¶
type Add20AssetParams ¶
type Add721AssetParams ¶
type Add1155AssetParams ¶
type Add1155AssetParams struct {
ChainID int32 `json:"chainId"`
CollectionID string `json:"collectionId"`
TokenID string `json:"tokenId"`
Owner string `json:"owner"`
Balance string `json:"balance"`
Attributes sql.NullString `json:"attributes"`
UpdatedBy uuid.UUID `json:"updatedBy"`
Signature string `json:"signature"`
}
type AddNewAssetParams ¶
type AddNewAssetParams struct {
ID string `json:"id"`
ChainID int32 `json:"chainId"`
CollectionAddress string `json:"collectionAddress"`
Type AssetType `json:"type"`
DecimalData sql.NullInt16 `json:"decimalData"`
InitialBlock sql.NullInt64 `json:"initialBlock"`
LastUpdated sql.NullTime `json:"lastUpdated"`
}
type Asset ¶
type Asset struct {
ID string `json:"id"`
ChainID int32 `json:"chainId"`
CollectionAddress string `json:"collectionAddress"`
Type AssetType `json:"type"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DecimalData sql.NullInt16 `json:"decimalData"`
InitialBlock sql.NullInt64 `json:"initialBlock"`
LastUpdated sql.NullTime `json:"lastUpdated"`
}
type BackfillCrawler ¶
type CrawlerStatus ¶
type CrawlerStatus string
const ( CrawlerStatusCRAWLING CrawlerStatus = "CRAWLING" CrawlerStatusCRAWLED CrawlerStatus = "CRAWLED" )
func (*CrawlerStatus) Scan ¶
func (e *CrawlerStatus) Scan(src interface{}) error
type Erc20CollectionAsset ¶
type Erc721CollectionAsset ¶
type Erc721CollectionAsset struct {
ID uuid.UUID `json:"id"`
ChainID int32 `json:"chainId"`
AssetID string `json:"assetId"`
TokenID string `json:"tokenId"`
Owner string `json:"owner"`
Attributes sql.NullString `json:"attributes"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type Erc1155CollectionAsset ¶
type Erc1155CollectionAsset struct {
ID uuid.UUID `json:"id"`
ChainID int32 `json:"chainId"`
AssetID string `json:"assetId"`
TokenID string `json:"tokenId"`
Owner string `json:"owner"`
Balance string `json:"balance"`
Attributes sql.NullString `json:"attributes"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type Erc1155TotalSupply ¶
type Erc1155TotalSupply struct {
AssetID string `json:"assetId"`
TokenID string `json:"tokenId"`
Attributes sql.NullString `json:"attributes"`
TotalSupply int64 `json:"totalSupply"`
}
type GetCrawlingBackfillCrawlerRow ¶
type GetCrawlingBackfillCrawlerRow struct {
ChainID int32 `json:"chainId"`
CollectionAddress string `json:"collectionAddress"`
CurrentBlock int64 `json:"currentBlock"`
Status CrawlerStatus `json:"status"`
CreatedAt time.Time `json:"createdAt"`
Type AssetType `json:"type"`
InitialBlock sql.NullInt64 `json:"initialBlock"`
}
type NullAssetType ¶
type NullAssetType struct {
AssetType AssetType `json:"assetType"`
Valid bool `json:"valid"` // Valid is true if AssetType is not NULL
}
func (*NullAssetType) Scan ¶
func (ns *NullAssetType) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullCrawlerStatus ¶
type NullCrawlerStatus struct {
CrawlerStatus CrawlerStatus `json:"crawlerStatus"`
Valid bool `json:"valid"` // Valid is true if CrawlerStatus is not NULL
}
func (*NullCrawlerStatus) Scan ¶
func (ns *NullCrawlerStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type OnchainHistory ¶
type OnchainHistory struct {
ID uuid.UUID `json:"id"`
From string `json:"from"`
To string `json:"to"`
AssetID string `json:"assetId"`
TokenID string `json:"tokenId"`
Amount string `json:"amount"`
TxHash string `json:"txHash"`
Timestamp time.Time `json:"timestamp"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type UpdateCrawlingBackfillParams ¶
type UpdateCrawlingBackfillParams struct {
ChainID int32 `json:"chainId"`
CollectionAddress string `json:"collectionAddress"`
Status CrawlerStatus `json:"status"`
CurrentBlock int64 `json:"currentBlock"`
}
Click to show internal directories.
Click to hide internal directories.