Documentation ¶
Index ¶
- Constants
- type Address
- type AddressThresholdAmountByFarm
- type AmountInfo
- type AuraPoolCollection
- type Block
- type BlockSearchResponse
- type Blockheader
- type BtcNetworkParams
- type BtcWalletTransaction
- type BtcWalletTransactionDetails
- type CData
- type Collection
- type CollectionData
- type CollectionPaymentAllocation
- type CollectionResponse
- type CollectionResult
- type Data
- type DataJsonCollection
- type Denom
- type DenomsByDataProperty
- type Farm
- type FarmHashRate
- type FarmHashRateElement
- type FarmPayment
- type GetBlockResponse
- type HasuraNftMintEvent
- type HasuraTx
- type HasuraTxResult
- type MappedAddress
- type NFT
- type NFTDataJson
- type NFTOwnerInformation
- type NFTOwnerInformationRepo
- type NFTStatistics
- type NFTStatisticsRepo
- type NestedData
- type NftMintHistory
- type NftTransferEvent
- type NftTransferHistory
- type RBFTransactionHistory
- type TransactionHashWithStatus
- type Tx
- type TxQueryResponse
- type TxResult
- type UTXOTransaction
Constants ¶
View Source
const ( TransactionPending = "Pending" TransactionCompleted = "Completed" TransactionFailed = "Failed" TransactionReplaced = "Replaced" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmountInfo ¶
type AuraPoolCollection ¶
type Block ¶
type Block struct {
Header Blockheader `json:"header"`
}
type BlockSearchResponse ¶
type BlockSearchResponse struct { Result struct { Blocks []GetBlockResponse `json:"blocks"` } `json:"result"` }
type Blockheader ¶
type BtcNetworkParams ¶
type BtcWalletTransaction ¶ added in v1.0.8
type BtcWalletTransaction struct { Amount float64 `json:"amount"` Fee float64 `json:"fee"` Confirmations int64 `json:"confirmations"` Trusted bool `json:"trusted"` Txid string `json:"txid"` WalletConflicts []string `json:"walletconflicts"` Time uint64 `json:"time"` Timereceived uint64 `json:"timereceived"` Bip125Replaceable string `json:"bip125-replaceable"` ReplacedByTxid string `json:"replaced_by_txid"` ReplacesTxid string `json:"replaces_txid"` Details []BtcWalletTransactionDetails `json:"details"` Hex string `json:"hex"` }
type BtcWalletTransactionDetails ¶ added in v1.0.8
type CData ¶
type CData struct {
DenomsByDataProperty []DenomsByDataProperty `json:"denoms_by_data_property"`
}
type Collection ¶
type CollectionData ¶
type CollectionData struct {
Data CData `json:"data"`
}
type CollectionPaymentAllocation ¶
type CollectionPaymentAllocation struct { Id int64 `db:"id"` FarmId int64 `db:"farm_id"` FarmPaymentId int64 `db:"farm_payment_id"` CollectionId int64 `db:"collection_id"` CollectionAllocationAmount decimal.Decimal `db:"collection_allocation_amount_btc"` CUDOGeneralFee decimal.Decimal `db:"cudo_general_fee_btc"` CUDOMaintenanceFee decimal.Decimal `db:"cudo_maintenance_fee_btc"` FarmUnsoldLeftovers decimal.Decimal `db:"farm_unsold_leftover_btc"` FarmMaintenanceFee decimal.Decimal `db:"farm_maintenance_fee_btc"` CreatedAt time.Time `db:"createdAt"` UpdatedAt time.Time `db:"updatedAt"` }
type CollectionResponse ¶
type CollectionResponse struct { Height string `json:"height"` Result CollectionResult `json:"result"` }
type CollectionResult ¶
type CollectionResult struct {
Collections []Collection `json:"collections"`
}
type Data ¶
type Data struct {
NestedData NestedData `json:"action_nft_transfer_events"`
}
type DataJsonCollection ¶
type DenomsByDataProperty ¶
type DenomsByDataProperty struct { Id string `json:"id"` DataJson DataJsonCollection `json:"data_json"` }
type Farm ¶
type Farm struct { Id int64 `db:"id"` Name string `db:"name"` Description string `db:"description"` SubAccountName string `db:"sub_account_name"` RewardsFromPoolBtcWalletName string `db:"rewards_from_pool_btc_wallet_name"` // Location string `db:"location"` TotalHashPower float64 `db:"total_farm_hashrate"` AddressForReceivingRewardsFromPool string `db:"address_for_receiving_rewards_from_pool"` LeftoverRewardPayoutAddress string `db:"leftover_reward_payout_address"` MaintenanceFeePayoutAddress string `db:"maintenance_fee_payout_address"` MaintenanceFeeInBtc float64 `db:"maintenance_fee_in_btc"` // Manufacturers []uint8 `db:"manufacturers"` // MinerTypes []uint8 `db:"miner_types"` // EnergySource []uint8 `db:"energy_source"` // Status string `db:"status"` // Images [][]uint8 `db:"images"` // ProfileImage []uint8 `db:"profile_img"` // CoverImage []uint8 `db:"cover_img"` // PrimaryAccountOwnerName string `db:"primary_account_owner_name"` // PrimaryAccountOwnerEmail string `db:"primary_account_owner_email"` // CreatorId int `db:"creator_id"` // DeletedAt int64 `db:"deleted_at"` CreatedAt time.Time `db:"created_at"` // UpdatedAt int64 `db:"updated_at"` // ResaleFarmRoyaltiesCudosAddress string `db:"resale_farm_royalties_cudos_address"` // CudosMintNftRoyaltiesPercent float64 `db:"cudos_mint_nft_royalties_percent"` // CudosResaleNftRoyaltiesPercent float64 `db:"cudos_resale_nft_royalties_percent"` FarmStartTime time.Time `db:"farm_start_time"` }
type FarmHashRate ¶
type FarmHashRate []FarmHashRateElement
type FarmHashRateElement ¶
type FarmPayment ¶
type GetBlockResponse ¶
type GetBlockResponse struct {
Block Block `json:"block"`
}
type HasuraNftMintEvent ¶
type HasuraTxResult ¶
type HasuraTxResult struct { Data struct { Transactions []HasuraTx `json:"transaction"` } `json:"data"` }
type MappedAddress ¶
type MappedAddress struct {
Address Address `json:"address"`
}
type NFTDataJson ¶
type NFTOwnerInformation ¶
type NFTOwnerInformation struct { TimeOwnedFrom int64 `db:"time_owned_from"` TimeOwnedTo int64 `db:"time_owned_to"` TotalTimeOwned int64 `db:"total_time_owned"` PercentOfTimeOwned float64 `db:"percent_of_time_owned"` Owner string `db:"owner"` PayoutAddress string `db:"payout_address"` Reward decimal.Decimal `db:"reward"` CreatedAt time.Time `db:"createdAt"` UpdatedAt time.Time `db:"updatedAt"` }
type NFTOwnerInformationRepo ¶
type NFTOwnerInformationRepo struct { TimeOwnedFrom int64 `db:"time_owned_from"` TimeOwnedTo int64 `db:"time_owned_to"` TotalTimeOwned int64 `db:"total_time_owned"` PercentOfTimeOwned float64 `db:"percent_of_time_owned"` Owner string `db:"owner"` PayoutAddress string `db:"payout_address"` Reward string `db:"reward"` CreatedAt time.Time `db:"createdAt"` UpdatedAt time.Time `db:"updatedAt"` }
type NFTStatistics ¶
type NFTStatistics struct { Id string `db:"id"` TokenId string `db:"token_id"` DenomId string `db:"denom_id"` FarmPaymentId int64 `db:"farm_payment_id"` PayoutPeriodStart int64 `db:"payout_period_start"` PayoutPeriodEnd int64 `db:"payout_period_end"` Reward decimal.Decimal `db:"reward"` MaintenanceFee decimal.Decimal `db:"maintenance_fee"` CUDOPartOfMaintenanceFee decimal.Decimal `db:"cudo_part_of_maintenance_fee"` NFTOwnersForPeriod []NFTOwnerInformation TxHash string `db:"tx_hash"` CreatedAt time.Time `db:"createdAt"` UpdatedAt time.Time `db:"updatedAt"` }
type NFTStatisticsRepo ¶
type NFTStatisticsRepo struct { Id string `db:"id"` TokenId string `db:"token_id"` DenomId string `db:"denom_id"` FarmPaymentId int64 `db:"farm_payment_id"` PayoutPeriodStart int64 `db:"payout_period_start"` PayoutPeriodEnd int64 `db:"payout_period_end"` Reward string `db:"reward"` MaintenanceFee string `db:"maintenance_fee"` CUDOPartOfMaintenanceFee string `db:"cudo_part_of_maintenance_fee"` NFTOwnersForPeriod []NFTOwnerInformationRepo TxHash string `db:"tx_hash"` CreatedAt time.Time `db:"createdAt"` UpdatedAt time.Time `db:"updatedAt"` }
type NestedData ¶
type NestedData struct {
Events []NftTransferEvent `json:"events"`
}
type NftMintHistory ¶
type NftMintHistory struct { Data struct { History []HasuraNftMintEvent `json:"nft_transfer_history"` } `json:"data"` }
type NftTransferEvent ¶
type NftTransferHistory ¶
type NftTransferHistory struct {
Data Data `json:"data"`
}
type RBFTransactionHistory ¶
type TransactionHashWithStatus ¶
type TransactionHashWithStatus struct { Id string `db:"id"` FarmPaymentId int64 `db:"farm_payment_id"` TxHash string `db:"tx_hash"` Status string `db:"status"` TimeSent int64 `db:"time_sent"` FarmBtcWalletName string `db:"farm_btc_wallet_name"` RetryCount int `db:"retry_count"` CreatedAt time.Time `db:"createdAt"` UpdatedAt time.Time `db:"updatedAt"` }
type TxQueryResponse ¶
Click to show internal directories.
Click to hide internal directories.