Documentation ¶
Overview ¶
Package models implement database models for the indexer
Index ¶
- type BridgeHistory
- type BridgeRemoteChain
- type BridgeToken
- type Collection
- type Inscription
- type InscriptionHistory
- type InscriptionTradeHistory
- type Launchpad
- type LaunchpadMintReservation
- type LaunchpadStage
- type LaunchpadWhitelist
- type MarketplaceCFT20Detail
- type MarketplaceInscriptionDetail
- type MarketplaceListing
- type MarketplaceListingHistory
- type MigrationPermissionGrant
- type PriceCurve
- type Status
- type Token
- type TokenAddressHistory
- type TokenHolder
- type TokenOpenPosition
- type TokenTradeHistory
- type Transaction
- type TrollPost
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BridgeHistory ¶
type BridgeHistory struct { ID uint64 `gorm:"primary_key"` ChainID string `gorm:"column:chain_id"` Height uint64 `gorm:"column:height"` TransactionID uint64 `gorm:"column:transaction_id"` TokenID uint64 `gorm:"column:token_id"` Sender string `gorm:"column:sender"` Action string `gorm:"column:action"` Amount uint64 `gorm:"column:amount"` RemoteChainID string `gorm:"column:remote_chain_id"` RemoteContract string `gorm:"column:remote_contract"` Receiver string `gorm:"column:receiver"` Signature string `gorm:"column:signature"` DateCreated time.Time `gorm:"column:date_created"` }
func (BridgeHistory) TableName ¶
func (BridgeHistory) TableName() string
type BridgeRemoteChain ¶
type BridgeRemoteChain struct { ID uint64 `gorm:"primary_key"` ChainID string `gorm:"column:chain_id"` RemoteChainID string `gorm:"column:remote_chain_id"` RemoteContract string `gorm:"column:remote_contract"` IBCChannel string `gorm:"column:ibc_channel"` DateCreated time.Time `gorm:"column:date_created"` DateModified time.Time `gorm:"column:date_modified"` }
func (BridgeRemoteChain) TableName ¶
func (BridgeRemoteChain) TableName() string
type BridgeToken ¶
type BridgeToken struct { ID uint64 `gorm:"primary_key"` RemoteChainID uint64 `gorm:"column:remote_chain_id"` TokenID uint64 `gorm:"column:token_id"` Enabled bool `gorm:"column:enabled"` DateCreated time.Time `gorm:"column:date_created"` DateModified time.Time `gorm:"column:date_modified"` Signature string `gorm:"column:signature"` }
func (BridgeToken) TableName ¶
func (BridgeToken) TableName() string
type Collection ¶
type Collection struct { ID uint64 `gorm:"primary_key"` ChainID string `gorm:"column:chain_id"` Height uint64 `gorm:"column:height"` Version string `gorm:"column:version"` TransactionID uint64 `gorm:"column:transaction_id"` ContentHash string `gorm:"column:content_hash"` Creator string `gorm:"column:creator"` Minter sql.NullString `gorm:"column:minter"` Name string `gorm:"column:name"` Symbol string `gorm:"column:symbol"` RoyaltyPercentage sql.NullFloat64 `gorm:"column:royalty_percentage"` PaymentAddress sql.NullString `gorm:"column:payment_address"` Metadata datatypes.JSON `gorm:"column:metadata"` ContentPath string `gorm:"column:content_path"` ContentSizeBytes uint64 `gorm:"column:content_size_bytes"` DateCreated time.Time `gorm:"column:date_created"` }
func (Collection) TableName ¶
func (Collection) TableName() string
type Inscription ¶
type Inscription struct { ID uint64 `gorm:"primary_key"` InscriptionNumber uint64 `gorm:"column:inscription_number"` ChainID string `gorm:"column:chain_id"` Height uint64 `gorm:"column:height"` Version string `gorm:"column:version"` TransactionID uint64 `gorm:"column:transaction_id"` CollectionID sql.NullInt64 `gorm:"column:collection_id"` TokenID sql.NullInt64 `gorm:"column:token_id"` ContentHash string `gorm:"column:content_hash"` Creator string `gorm:"column:creator"` CurrentOwner string `gorm:"column:current_owner"` Type string `gorm:"column:type"` Metadata datatypes.JSON `gorm:"column:metadata"` ContentPath string `gorm:"column:content_path"` ContentSizeBytes uint64 `gorm:"column:content_size_bytes"` DateCreated time.Time `gorm:"column:date_created"` }
func (Inscription) TableName ¶
func (Inscription) TableName() string
type InscriptionHistory ¶
type InscriptionHistory struct { ID uint64 `gorm:"primary_key"` ChainID string `gorm:"column:chain_id"` Height uint64 `gorm:"column:height"` TransactionID uint64 `gorm:"column:transaction_id"` InscriptionID uint64 `gorm:"column:inscription_id"` Sender string `gorm:"column:sender"` Receiver string `gorm:"column:receiver"` Action string `gorm:"column:action"` DateCreated time.Time `gorm:"column:date_created"` }
func (InscriptionHistory) TableName ¶
func (InscriptionHistory) TableName() string
type InscriptionTradeHistory ¶
type InscriptionTradeHistory struct { ID uint64 `gorm:"primary_key"` ChainID string `gorm:"column:chain_id"` TransactionID uint64 `gorm:"column:transaction_id"` InscriptionID uint64 `gorm:"column:inscription_id"` SellerAddress string `gorm:"column:seller_address"` BuyerAddress string `gorm:"column:buyer_address"` AmountQuote uint64 `gorm:"column:amount_quote"` // Total ATOM TotalUSD float64 `gorm:"column:total_usd"` // Amount in USD DateCreated time.Time `gorm:"column:date_created"` }
func (InscriptionTradeHistory) TableName ¶
func (InscriptionTradeHistory) TableName() string
type Launchpad ¶
type Launchpad struct { ID uint64 `gorm:"primary_key"` ChainID string `gorm:"column:chain_id"` Height uint64 `gorm:"column:height"` Version string `gorm:"column:version"` TransactionID uint64 `gorm:"column:transaction_id"` CollectionID uint64 `gorm:"column:collection_id"` MaxSupply uint64 `gorm:"column:max_supply"` MintedSupply uint64 `gorm:"column:minted_supply"` StartDate sql.NullTime `gorm:"column:start_date"` FinishDate sql.NullTime `gorm:"column:finish_date"` DateCreated time.Time `gorm:"column:date_created"` RevealDate sql.NullTime `gorm:"column:reveal_date"` RevealImmediately bool `gorm:"column:reveal_immediately"` }
type LaunchpadMintReservation ¶
type LaunchpadMintReservation struct { ID uint64 `gorm:"primary_key"` CollectionID uint64 `gorm:"column:collection_id"` LaunchpadID uint64 `gorm:"column:launchpad_id"` StageID uint64 `gorm:"column:stage_id"` Address string `gorm:"column:address"` TokenId uint64 `gorm:"column:token_id"` IsMinted bool `gorm:"column:is_minted"` Metadata datatypes.JSON `gorm:"column:metadata"` IsRandom bool `gorm:"column:is_random"` IsExpired bool `gorm:"column:is_expired"` DateCreated time.Time `gorm:"column:date_created"` }
func (LaunchpadMintReservation) TableName ¶
func (LaunchpadMintReservation) TableName() string
type LaunchpadStage ¶
type LaunchpadStage struct { ID uint64 `gorm:"primary_key"` CollectionID uint64 `gorm:"column:collection_id"` LaunchpadID uint64 `gorm:"column:launchpad_id"` Name sql.NullString `gorm:"column:name"` Description sql.NullString `gorm:"column:description"` StartDate sql.NullTime `gorm:"column:start_date"` FinishDate sql.NullTime `gorm:"column:finish_date"` Price uint64 `gorm:"column:price"` PriceCurve PriceCurve `gorm:"column:price_curve"` PerUserLimit int64 `gorm:"column:per_user_limit"` HasWhitelist bool `gorm:"column:has_whitelist"` }
func (LaunchpadStage) TableName ¶
func (LaunchpadStage) TableName() string
type LaunchpadWhitelist ¶
type LaunchpadWhitelist struct { ID uint64 `gorm:"primary_key"` CollectionID uint64 `gorm:"column:collection_id"` LaunchpadID uint64 `gorm:"column:launchpad_id"` StageID uint64 `gorm:"column:stage_id"` Address string `gorm:"column:address"` }
func (LaunchpadWhitelist) TableName ¶
func (LaunchpadWhitelist) TableName() string
type MarketplaceCFT20Detail ¶
type MarketplaceCFT20Detail struct { ID uint64 `gorm:"primary_key"` ListingID uint64 `gorm:"column:listing_id"` TokenID uint64 `gorm:"column:token_id"` Amount uint64 `gorm:"column:amount"` // Amount of TokenID listed PPT uint64 `gorm:"column:ppt"` // PPT = Price Per Token, in uatom DateCreated time.Time `gorm:"column:date_created"` }
func (MarketplaceCFT20Detail) TableName ¶
func (MarketplaceCFT20Detail) TableName() string
type MarketplaceInscriptionDetail ¶
type MarketplaceInscriptionDetail struct { ID uint64 `gorm:"primary_key"` ListingID uint64 `gorm:"column:listing_id"` InscriptionID uint64 `gorm:"column:inscription_id"` DateCreated time.Time `gorm:"column:date_created"` }
func (MarketplaceInscriptionDetail) TableName ¶
func (MarketplaceInscriptionDetail) TableName() string
type MarketplaceListing ¶
type MarketplaceListing struct { ID uint64 `gorm:"primary_key"` ChainID string `gorm:"column:chain_id"` TransactionID uint64 `gorm:"column:transaction_id"` SellerAddress string `gorm:"column:seller_address"` Total uint64 `gorm:"column:total"` DepositTotal uint64 `gorm:"column:deposit_total"` DepositTimeout uint64 `gorm:"column:deposit_timeout"` DepositorAddress string `gorm:"column:depositor_address"` DepositorTimeoutBlock uint64 `gorm:"column:depositor_timedout_block"` IsDeposited bool `gorm:"column:is_deposited"` IsFilled bool `gorm:"column:is_filled"` IsCancelled bool `gorm:"column:is_cancelled"` DateUpdated time.Time `gorm:"column:date_updated"` DateCreated time.Time `gorm:"column:date_created"` }
func (MarketplaceListing) TableName ¶
func (MarketplaceListing) TableName() string
type MarketplaceListingHistory ¶
type MarketplaceListingHistory struct { ID uint64 `gorm:"primary_key"` ListingID uint64 `gorm:"column:listing_id"` TransactionID uint64 `gorm:"column:transaction_id"` SenderAddress string `gorm:"column:sender_address"` Action string `gorm:"column:action"` DateCreated time.Time `gorm:"column:date_created"` }
func (MarketplaceListingHistory) TableName ¶
func (MarketplaceListingHistory) TableName() string
type MigrationPermissionGrant ¶
type MigrationPermissionGrant struct { ID uint64 `gorm:"primary_key"` InscriptionID uint64 `gorm:"column:inscription_id"` Granter string `gorm:"column:granter"` Grantee string `gorm:"column:grantee"` DateCreated time.Time `gorm:"column:date_created"` }
func (MigrationPermissionGrant) TableName ¶
func (MigrationPermissionGrant) TableName() string
type PriceCurve ¶
type PriceCurve string
const ( Fixed PriceCurve = "fixed" Linear PriceCurve = "linear" )
func (*PriceCurve) Scan ¶
func (p *PriceCurve) Scan(value interface{}) error
type Status ¶
type Status struct { ID uint64 `gorm:"primary_key"` ChainID string `gorm:"column:chain_id"` LastKnownHeight uint64 `gorm:"column:last_known_height"` LastProcessedHeight uint64 `gorm:"column:last_processed_height"` BaseToken string `gorm:"column:base_token"` BaseTokenUSD float64 `gorm:"column:base_token_usd"` DateUpdated time.Time `gorm:"column:date_updated"` }
type Token ¶
type Token struct { ID uint64 `gorm:"primary_key"` ChainID string `gorm:"column:chain_id"` Height uint64 `gorm:"column:height"` Version string `gorm:"column:version"` TransactionID uint64 `gorm:"column:transaction_id"` Creator string `gorm:"column:creator"` CurrentOwner string `gorm:"column:current_owner"` Name string `gorm:"column:name"` Ticker string `gorm:"column:ticker"` Decimals uint64 `gorm:"column:decimals"` MaxSupply uint64 `gorm:"column:max_supply"` PreMint uint64 `gorm:"column:pre_mint"` PerMintLimit uint64 `gorm:"column:per_mint_limit"` LaunchTimestamp uint64 `gorm:"column:launch_timestamp"` MintPage string `gorm:"column:mint_page"` Metadata datatypes.JSON `gorm:"column:metadata"` ContentPath string `gorm:"column:content_path"` ContentSizeBytes uint64 `gorm:"column:content_size_bytes"` CirculatingSupply uint64 `gorm:"column:circulating_supply"` LastPriceBase uint64 `gorm:"column:last_price_base"` Volume24Base uint64 `gorm:"column:volume_24_base"` DateCreated time.Time `gorm:"column:date_created"` }
type TokenAddressHistory ¶
type TokenAddressHistory struct { ID uint64 `gorm:"primary_key"` ChainID string `gorm:"column:chain_id"` Height uint64 `gorm:"column:height"` TransactionID uint64 `gorm:"column:transaction_id"` TokenID uint64 `gorm:"column:token_id"` Sender string `gorm:"column:sender"` Receiver string `gorm:"column:receiver"` Action string `gorm:"column:action"` Amount uint64 `gorm:"column:amount"` DateCreated time.Time `gorm:"column:date_created"` }
func (TokenAddressHistory) TableName ¶
func (TokenAddressHistory) TableName() string
type TokenHolder ¶
type TokenHolder struct { ID uint64 `gorm:"primary_key"` ChainID string `gorm:"column:chain_id"` TokenID uint64 `gorm:"column:token_id"` Address string `gorm:"column:address"` Amount uint64 `gorm:"column:amount"` DateUpdated time.Time `gorm:"column:date_updated"` }
func (TokenHolder) TableName ¶
func (TokenHolder) TableName() string
type TokenOpenPosition ¶
type TokenOpenPosition struct { ID uint64 `gorm:"primary_key"` ChainID string `gorm:"column:chain_id"` TransactionID uint64 `gorm:"column:transaction_id"` TokenID uint64 `gorm:"column:token_id"` SellerAddress string `gorm:"column:seller_address"` Amount uint64 `gorm:"column:amount"` // Amount of TokenID listed PPT uint64 `gorm:"column:ppt"` // PPT = Price Per Token, in uatom Total uint64 `gorm:"column:total"` // Amount * PPT IsFilled bool `gorm:"column:is_filled"` IsCancelled bool `gorm:"column:is_cancelled"` DateFilled time.Time `gorm:"column:date_filled"` DateCreated time.Time `gorm:"column:date_created"` }
func (TokenOpenPosition) TableName ¶
func (TokenOpenPosition) TableName() string
type TokenTradeHistory ¶
type TokenTradeHistory struct { ID uint64 `gorm:"primary_key"` ChainID string `gorm:"column:chain_id"` TransactionID uint64 `gorm:"column:transaction_id"` TokenID uint64 `gorm:"column:token_id"` SellerAddress string `gorm:"column:seller_address"` BuyerAddress string `gorm:"column:buyer_address"` AmountQuote uint64 `gorm:"column:amount_quote"` // Amount of TokenID AmountBase uint64 `gorm:"column:amount_base"` // Amount of ATOM Rate uint64 `gorm:"column:rate"` // Amount of ATOM per TokenID TotalUSD float64 `gorm:"column:total_usd"` // Amount of USD DateCreated time.Time `gorm:"column:date_created"` }
func (TokenTradeHistory) TableName ¶
func (TokenTradeHistory) TableName() string
type Transaction ¶
type Transaction struct { ID uint64 `gorm:"primary_key"` Height uint64 `gorm:"column:height"` Hash string `gorm:"column:hash"` Content string `gorm:"column:content"` GasUsed uint64 `gorm:"column:gas_used"` Fees string `gorm:"column:fees"` ContentLength uint64 `gorm:"column:content_length"` DateCreated time.Time `gorm:"column:date_created"` StatusMessage string `gorm:"column:status_message"` }
func (Transaction) TableName ¶
func (Transaction) TableName() string
type TrollPost ¶
type TrollPost struct { ID uint64 `gorm:"primary_key"` ChainID string `gorm:"column:chain_id"` Height uint64 `gorm:"column:height"` Version string `gorm:"column:version"` TransactionID uint64 `gorm:"column:transaction_id"` LaunchpadID sql.NullInt64 `gorm:"column:launchpad_id"` ContentHash string `gorm:"column:content_hash"` Creator string `gorm:"column:creator"` Text string `gorm:"column:text"` ContentPath string `gorm:"column:content_path"` ContentSizeBytes uint64 `gorm:"column:content_size_bytes"` DateCreated time.Time `gorm:"column:date_created"` }
Source Files ¶
- bridge_history.go
- bridge_remote_chain.go
- bridge_token.go
- collection.go
- doc.go
- inscription.go
- inscription_history.go
- inscription_trade_history.go
- launchpad.go
- launchpad_mint_reservation.go
- launchpad_stage.go
- launchpad_whitelist.go
- marketplace_cft20_detail.go
- marketplace_inscription_detail.go
- marketplace_listing.go
- marketplace_listing_history.go
- migration_permission_grant.go
- status.go
- token.go
- token_address_history.go
- token_holder.go
- token_open_position.go
- token_trade_history.go
- transaction.go
- troll_post.go
Click to show internal directories.
Click to hide internal directories.