Documentation
¶
Index ¶
- Constants
- Variables
- func GetChartPeriods() map[string]time.Duration
- func ValidatePeriod(period string) error
- type Account
- type AccountAssetBalance
- type AccountBaking
- type AccountBalance
- type AccountDelegator
- type AccountEndorsing
- type AccountFilter
- type AccountListView
- type AccountOrderField
- type AccountPrefix
- type AccountReward
- type AccountRewardsCount
- type AccountType
- type AccountsCheckpoint
- type AggTimeFilter
- type AggTimeInt
- type AssetHolder
- type AssetInfo
- type AssetOperation
- type AssetOperationReport
- type AssetReport
- type Baker
- type BakerBalance
- type BakerChanges
- type BakerChartData
- type BakerDelegators
- type BakerRegistry
- type BakerStats
- type BakersVoting
- type BakingCycle
- type BakingRight
- type BalanceUpdate
- type Ballot
- type BallotsStat
- type BigMapContent
- type Block
- type BlockAggregationView
- type BlockFilter
- type BlockPriority
- type ChartData
- type CommonReport
- type DailyStat
- type Delegate
- type DelegatedContract
- type DelegatesCheckpoint
- type DoubleOperationEvidence
- type DoubleOperationEvidenceExtended
- type DoubleOperationEvidenceQueryOptions
- type DoubleOperationType
- type EmailVerification
- type EndorsementRight
- type ExtendReport
- type Fee
- type FutureBakingRight
- type FutureBlockBakingRight
- type FutureBlockEndorsementRight
- type FutureEndorsementRight
- type GenericAccount
- type HolderAddress
- type HolderBalance
- type HoldingPoint
- type MarketDataProvider
- type MarketInfo
- type NFTContract
- type NFTContractOwnership
- type NFTDistribution
- type NFTOperations
- type NFTToken
- type Network
- type Operation
- type OperationCount
- type OperationCounter
- type OperationGroup
- type OperationReport
- type PeriodBallot
- type PeriodInfo
- type PeriodStats
- type PeriodType
- type Proposal
- type ProposalInfo
- type ProposalVoter
- type Proposer
- type Protocol
- type PublicBaker
- type PublicBakerSearch
- type RegisteredToken
- type ReportFilter
- type RewardStatus
- type RightFilter
- type Roll
- type Snapshot
- type SnapshotsView
- type Storage
- type ThirdPartyBaker
- type ThirdPartyBakerAgg
- type ThirdPartyProviders
- type User
- type UserAddress
- type UserAddressWithBalance
- type UserAddressWithEmail
- type UserNote
- type UserNoteWithBalance
- type Voter
- type VotingProposal
Constants ¶
View Source
const ( ImplicitAccountPrefix = "tz" ContractAccountPrefix = "KT1" )
View Source
const ( DayPeriod = "day" WeekPeriod = "week" MonthPeriod = "month" )
View Source
const ( LowBalanceAccountsStatKey = "low_balance_accounts" InactiveAccountsStatKey = "inactive_accounts" )
View Source
const ( SortAsc = "asc" SortDesc = "desc" )
View Source
const (
BakersChangesStorageKey = "bakers_changes"
)
Variables ¶
View Source
var AccountNotFoundErr = errors.New("account not found")
View Source
var UserLimitReachedErr = errors.New("limit reached")
Functions ¶
func GetChartPeriods ¶
func ValidatePeriod ¶
Types ¶
type Account ¶
type Account struct { AccountID null.String `gorm:"primary_key;AUTO_INCREMENT" json:"account_id"` BlockID null.String `json:"block_id"` Block *Block `json:"block"` // This line is infered from column name "block_id". Manager null.String `json:"manager"` Spendable null.Bool `json:"spendable"` DelegateSetable null.Bool `json:"delegate_setable"` DelegateValue string `json:"delegate_value"` Counter null.Int `json:"counter"` Script string `json:"script"` Storage string `json:"storage"` Balance null.Int `json:"balance"` BlockLevel null.Int `json:"block_level" sql:"DEFAULT:'-1'::integer"` AccountsCheckpoint []*AccountsCheckpoint `json:"accounts_checkpoint"` // This line is infered from other tables. DelegatedContracts []*DelegatedContract `json:"delegated_contracts"` // This line is infered from other tables. BakerInfo *Baker `json:"baker_info"` IsBaker bool `json:"is_baker"` IsRevealed bool `json:"is_revealed"` Transactions int64 `json:"transactions"` Operations int64 `json:"operations"` Index int64 `json:"index"` }
type AccountAssetBalance ¶
type AccountAssetBalance struct { AssetHolder AssetInfo }
type AccountBaking ¶
type AccountBaking struct { BakingCycle Status RewardStatus Count int64 Missed int64 Reward int64 AvgPriority float32 Stolen int64 TotalDeposit int64 }
type AccountBalance ¶
type AccountDelegator ¶
type AccountEndorsing ¶
type AccountEndorsing struct { BakingCycle Status RewardStatus Count int64 Missed int64 Reward int64 TotalDeposit int64 }
type AccountFilter ¶
type AccountFilter struct { Type AccountType OrderBy AccountOrderField Delegate string After string Favorites []string }
type AccountListView ¶
type AccountOrderField ¶
type AccountOrderField int
const ( AccountOrderFieldBalance AccountOrderField = iota AccountOrderFieldCreatedAt )
type AccountPrefix ¶
type AccountPrefix string
type AccountReward ¶
type AccountReward struct { BakingCycle Status RewardStatus Delegators int64 StakingBalance int64 BakingRewards int64 FutureBakingCount int64 EndorsementRewards int64 FutureEndorsementCount int64 Fees int64 MissedBaking int64 MissedEndorsements int64 Losses int64 }
TODO refactor Account rewards models
type AccountRewardsCount ¶
type AccountRewardsCount struct { BakingCycle Status RewardStatus StakingBalance int64 BakingCount int64 BakingReward int64 StolenBaking int64 FutureBakingCount int64 FutureEndorsementCount int64 EndorsementsCount int64 EndorsementsReward int64 //Deposit ActualBakingSecurityDeposit int64 ExpectedBakingSecurityDeposit int64 ActualEndorsementSecurityDeposit int64 ExpectedEndorsementSecurityDeposit int64 ActualTotalSecirityDeposit int64 ExpectedTotalSecurityDeposit int64 AvailableBond int64 }
type AccountType ¶
type AccountType int
const ( AccountTypeBoth AccountType = iota AccountTypeAccount AccountTypeContract )
type AccountsCheckpoint ¶
type AccountsCheckpoint struct { AccountID string `json:"account_id"` Account *Account `json:"account"` // This line is infered from column name "account_id". BlockID string `json:"block_id"` Block *Block `json:"block"` // This line is infered from column name "block_id". BlockLevel uint `json:"block_level" sql:"DEFAULT:'-1'::integer"` AsOf time.Time `json:"asof" gorm:"column:asof"` IsBaker bool `json:"is_baker"` }
type AggTimeFilter ¶
func (*AggTimeFilter) Validate ¶
func (agg *AggTimeFilter) Validate() error
type AggTimeInt ¶
type AssetHolder ¶
type AssetHolder struct { Address HolderAddress Balance HolderBalance }
type AssetOperation ¶
type AssetOperation struct { BlockLevel int64 `json:"block_level"` TokenId uint64 `json:"token_id"` OperationId int64 `json:"operation_id"` OperationGroupHash string `json:"operation_group_hash"` Sender string `json:"sender"` Receiver string `json:"receiver"` Amount int64 `json:"amount"` Type string `json:"type"` Timestamp time.Time `json:"timestamp"` }
type AssetOperationReport ¶
type AssetOperationReport struct { AssetOperation Fee int64 GasLimit int64 StorageLimit int64 }
type AssetReport ¶
type AssetReport struct { CommonReport Amount float64 `csv:"amount"` Source string `csv:"source"` Destination string `csv:"destination"` }
type Baker ¶
type Baker struct { AccountID string `json:"pkh"` BakerStats }
type BakerBalance ¶
type BakerChanges ¶
type BakerChartData ¶
type BakerDelegators ¶
type BakerRegistry ¶
type BakerRegistry struct { Delegate string `gorm:"primary_key" json:"delegate"` BakerName string `json:"bakerName"` BakerOffchainRegistryUrl string `json:"bakerOffchainRegistryUrl"` BakerPaysFromAccounts pq.StringArray `gorm:"type:varchar[]" json:"bakerPaysFromAccounts"` BakerChargesTransactionFee bool `json:"bakerChargesTransactionFee"` MinDelegation int64 `json:"minDelegation,string"` MinPayout int64 `json:"minPayout,string"` OverDelegationThreshold int64 `json:"overDelegationThreshold,string"` PayoutDelay int64 `json:"payoutDelay,string"` PaymentConfigMask string `json:"paymentConfigMask"` PayoutFrequency int64 `json:"payoutFrequency,string"` ReporterAccount pq.StringArray `gorm:"type:varchar[]" json:"reporterAccount"` Split int64 `json:"split,string""` OpenForDelegation bool `json:"openForDelegation"` SubtractPayoutsLessThanMin bool `json:"subtractPayoutsLessThanMin"` SubtractRewardsFromUninvitedDelegation bool `json:"subtractRewardsFromUninvitedDelegation"` LastUpdateId int64 `json:"-"` IsHidden bool `json:"is_hidden"` }
func (*BakerRegistry) Unmarshal ¶
func (pb *BakerRegistry) Unmarshal(data []byte) (err error)
type BakerStats ¶
type BakerStats struct { Name string `json:"name"` Fee int64 `json:"fee"` BakingSince time.Time `json:"baking_since"` //first baking or endorsement Balance int64 `json:"balance"` StakingBalance int64 `json:"staking_balance"` FrozenBalance int64 `json:"frozen_balance"` Rolls int64 `json:"rolls"` Blocks int64 `json:"blocks"` Endorsements int64 `json:"endorsements"` TotalPaidFees int64 `json:"fees"` ActiveDelegations int64 `json:"active_delegations"` StakingCapacity int64 `json:"staking_capacity"` FrozenEndorsementRewards int64 `json:"frozen_endorsement_rewards"` FrozenBakingRewards int64 `json:"frozen_baking_rewards"` EndorsementCount int64 `json:"endorsement_count"` BakingCount int64 `json:"baking_count"` Media string `json:"media"` // From old resp BakingDeposits int64 EndorsementDeposits int64 BakingRewards int64 EndorsementRewards int64 }
type BakersVoting ¶
type BakersVoting struct { ProposalsCount int64 Bakers []BakerDelegators }
type BakingRight ¶
type BalanceUpdate ¶
type BalanceUpdate struct { ID uint `gorm:"primary_key;AUTO_INCREMENT" json:"id"` Source string `json:"source"` SourceID uint `json:"source_id"` SourceHash string `json:"source_hash"` Kind string `json:"kind"` Contract string `json:"contract"` Change float64 `json:"change"` Level float64 `json:"level"` Delegate string `json:"delegate"` Category string `json:"category"` OperationGroupHash string `json:"operation_group_hash" gorm:"column:operation_group_hash"` }
type BallotsStat ¶
type BigMapContent ¶
type BigMapContent struct { BigMapId uint64 //big_map_id Key string //key KeyHash string //key_hash OperationGroupHash string //operation_group_id Value string //value }
DB model
type Block ¶
type Block struct { Level null.Int `json:"level"` Proto null.Int `json:"proto"` Predecessor null.String `json:"predecessor"` //Temp not unmarshal timestamp from json db because time.Time not support ISO without timezone Timestamp time.Time `json:"-"` BlockTime int64 `json:"block_time"` ValidationPass null.Int `json:"validation_pass"` Fitness null.String `json:"fitness"` Context string `json:"context"` Signature string `json:"signature"` Protocol null.String `json:"protocol"` ChainID string `json:"chain_id"` Hash null.String `json:"hash"` OperationsHash string `json:"operations_hash"` PeriodKind string `json:"period_kind"` CurrentExpectedQuorum int64 `json:"current_expected_quorum"` ActiveProposal string `json:"active_proposal"` Baker string `json:"baker"` BakerName string `json:"baker_name"` Reward int64 `json:"reward"` Deposit int64 `json:"deposit"` NonceHash string `json:"nonce_hash"` ConsumedGas int64 `json:"consumed_gas"` MetaLevel int64 `json:"meta_level"` MetaLevelPosition int64 `json:"meta_level_position"` MetaCycle int64 `json:"meta_cycle"` MetaCyclePosition int64 `json:"meta_cycle_position"` MetaVotingPeriod int64 `json:"meta_voting_period"` MetaVotingPeriodPosition int64 `json:"meta_voting_period_position"` ExpectedCommitment bool `json:"expected_commitment"` Priority null.Int `json:"priority" gorm:"column:priority"` BlockAggregation *BlockAggregationView `json:"-"` Delegates []*Delegate `json:"delegates"` // This line is infered from other tables. Proposals []*Proposal `json:"proposals"` // This line is infered from other tables. Rolls []*Roll `json:"rolls"` // This line is infered from other tables. Ballots []*Ballot `json:"ballots"` // This line is infered from other tables. AccountsCheckpoint []*AccountsCheckpoint `json:"accounts_checkpoint"` // This line is infered from other tables. OperationGroups []*OperationGroup `json:"operation_groups"` // This line is infered from other tables. DelegatesCheckpoint []*DelegatesCheckpoint `json:"delegates_checkpoint"` // This line is infered from other tables. Accounts []*Account `json:"accounts"` // This line is infered from other tables. BakingRights []FutureBakingRight `json:"baking_rights,omitempty"` }
type BlockAggregationView ¶
type BlockAggregationView struct { Level int64 `json:"level"` Volume int64 `json:"volume"` Fees int64 `json:"fees"` GasUsed int64 `json:"gas_used"` Endorsements int64 `json:"endorsements"` Proposals int64 `json:"proposals"` SeedNonceRevelations int64 `json:"seed_nonce_revelations"` Delegations int64 `json:"delegations"` Transactions int64 `json:"transactions"` ActivateAccounts int64 `json:"activate_accounts"` Ballots int64 `json:"ballots"` Originations int64 `json:"originations"` Reveals int64 `json:"reveals"` DoubleBakingEvidences int64 `json:"double_baking_evidences"` DoubleEndorsementEvidences int64 `json:"double_baking_evidences"` NumberOfOperations int64 `json:"number_of_operations"` }
func (*BlockAggregationView) TableName ¶
func (*BlockAggregationView) TableName() string
type BlockFilter ¶
type BlockPriority ¶
type CommonReport ¶
type CommonReport struct { BlockLevel uint64 `csv:"block level"` Kind string `csv:"operation type"` Timestamp time.Time `csv:"timestamp"` Coin string `csv:"coin"` Fee float64 `csv:"fee"` Status string `csv:"status"` //DB field OperationGroupHash null.String `csv:"-"` //CSV field Link string `csv:"link"` }
type Delegate ¶
type Delegate struct { Pkh string `gorm:"primary_key;AUTO_INCREMENT" json:"pkh"` BlockID string `json:"block_id"` Block *Block `json:"block"` // This line is infered from column name "block_id". Balance int64 `json:"balance"` FrozenBalance int64 `json:"frozen_balance"` StakingBalance int64 `json:"staking_balance"` DelegatedBalance int64 `json:"delegated_balance"` Deactivated bool `json:"deactivated"` GracePeriod uint `json:"grace_period"` BlockLevel uint `json:"block_level" sql:"DEFAULT:'-1'::integer"` }
type DelegatedContract ¶
type DelegatesCheckpoint ¶
type DoubleOperationEvidence ¶
type DoubleOperationEvidence struct { OperationID int64 `json:"operation_id" gorm:"column:operation_id"` Operation Operation `gorm:"save_associations:false;association_foreignkey:OperationID;foreignkey:OperationID"` Type DoubleOperationType `json:"type" gorm:"column:doe_type"` BlockHash string `json:"block_hash" gorm:"column:doe_block_hash"` BlockLevel int64 `json:"block_level" gorm:"column:doe_block_level"` DenouncedLevel int64 `json:"denounced_level" gorm:"column:doe_denounced_level"` Offender string `json:"offender" gorm:"column:doe_offender"` Priority int `json:"priority" gorm:"column:doe_priority"` EvidenceBaker string `json:"evidence_baker" gorm:"column:doe_evidence_baker"` BakerReward int64 `json:"baker_reward" gorm:"column:doe_baker_reward"` LostDeposits int64 `json:"lost_deposits" gorm:"column:doe_lost_deposits"` LostRewards int64 `json:"lost_rewards" gorm:"column:doe_lost_rewards"` LostFees int64 `json:"lost_fees" gorm:"column:doe_lost_fees"` }
type DoubleOperationEvidenceExtended ¶
type DoubleOperationEvidenceExtended struct { DoubleOperationEvidence OffenderName string `json:"offender_name" gorm:"column:baker_name"` EvidenceBakerName string `json:"evidence_baker_name" gorm:"column:baker_name"` }
type DoubleOperationType ¶
type DoubleOperationType string
const ( DoubleOperationTypeBaking DoubleOperationType = "double_baking_evidence" DoubleOperationTypeEndorsement DoubleOperationType = "double_endorsement_evidence" )
type EmailVerification ¶
type EndorsementRight ¶
type ExtendReport ¶
type ExtendReport struct { OperationReport //Baker operations Reward float64 `csv:"reward"` Loss float64 `csv:"loss"` }
type FutureBakingRight ¶
type FutureBakingRight struct { BlockLevel int64 `json:"block_level"` Delegate string `json:"delegate"` DelegateName string `json:"delegate_name" gorm:"-"` Cycle sql.NullInt64 `json:"cycle"` Priority int `json:"priority"` EstimatedTime time.Time `json:"estimated_time"` Deposit int64 `json:"deposit" gorm:"-"` Reward int64 `json:"reward" gorm:"-"` ForkId string `json:"fork_id"` }
type FutureBlockBakingRight ¶
type FutureBlockBakingRight struct { Level int64 `json:"level"` Rights []FutureBakingRight `json:"rights"` }
type FutureBlockEndorsementRight ¶
type FutureBlockEndorsementRight struct { Level int64 `json:"level"` Rights []FutureEndorsementRight `json:"rights"` }
type FutureEndorsementRight ¶
type FutureEndorsementRight struct { BlockLevel int64 `json:"block_level"` BlockHash string `json:"block_hash"` Delegate string `json:"delegate"` DelegateName string `json:"delegate_name" gorm:"-"` Cycle sql.NullInt64 `json:"cycle"` Slots pq.Int64Array `json:"slots" gorm: "type:integer[]"` EstimatedTime time.Time `json:"estimated_time"` ForkId string `json:"fork_id"` Reward int64 `json:"reward" gorm:"-"` Deposit int64 `json:"deposit" gorm:"-"` }
type GenericAccount ¶
type HolderAddress ¶
type HolderAddress string
func (*HolderAddress) Scan ¶
func (v *HolderAddress) Scan(value interface{}) (err error)
type HolderBalance ¶
type HolderBalance uint64
func (*HolderBalance) Scan ¶
func (v *HolderBalance) Scan(value interface{}) (err error)
type HoldingPoint ¶
type MarketDataProvider ¶
type MarketDataProvider interface {
GetTezosMarketData(curr string) (md MarketInfo, err error)
}
MarketDataProvider is an interface for getting actual price and price changes.
type MarketInfo ¶
type MarketInfo interface { GetPrice() float64 GetPriceChange() float64 GetMarketCap() float64 GetVolume() float64 GetSupply() float64 }
MarketInfo is the interface getting prices and price changes.
type NFTContract ¶
type NFTContract struct { ID int64 `gorm:"column:id"` Name string `gorm:"column:name"` ContractType string `gorm:"column:contract_type"` AccountId string `gorm:"column:account_id"` SwapContract string `gorm:"column:swap_contract"` Description string `gorm:"column:description"` LedgerBigMap int64 `gorm:"column:ledger_big_map"` TokensBigMap int64 `gorm:"column:tokens_big_map"` OperationsNum int64 `gorm:"column:operations_num"` LastHeight int64 `gorm:"column:last_height"` LastUpdateHeight int64 `gorm:"column:last_update_height"` NFTsNumber int64 `gorm:"column:nfts_number"` }
type NFTContractOwnership ¶
type NFTDistribution ¶
type NFTDistribution struct { Holders []AssetHolder TokenNum int64 UniqueHoldersNum int64 }
type NFTOperations ¶
type NFTToken ¶
type NFTToken struct { ContractID int64 `gorm:"column:contract_id"` ID uint64 `gorm:"column:token_id"` Name string `gorm:"column:name"` Category string `gorm:"column:category"` Description string `gorm:"column:description"` Decimals int64 `gorm:"column:decimals"` Amount int64 `gorm:"column:amount"` LastPrice int64 `gorm:"column:last_price"` IssuedBy string `gorm:"column:issued_by"` IsForSale bool `gorm:"column:is_for_sale"` IpfsSource string `gorm:"column:ipfs_source"` CreatedAt time.Time `gorm:"column:created_at"` LastActiveAt time.Time `gorm:"column:last_active_at"` }
type Operation ¶
type Operation struct { OperationID null.Int `gorm:"primary_key;AUTO_INCREMENT" json:"operation_id"` OperationGroupHash null.String `json:"operation_group_hash"` Kind null.String `json:"kind"` Level int64 `json:"level"` Delegate string `json:"delegate"` Slots string `json:"slots"` Nonce string `json:"nonce"` Pkh string `json:"pkh"` Secret string `json:"secret"` Source string `json:"source"` Fee int64 `json:"fee"` Counter int64 `json:"counter"` GasLimit int64 `json:"gas_limit"` StorageLimit int64 `json:"storage_limit"` PublicKey string `json:"public_key"` Amount int64 `json:"amount"` Destination string `json:"destination"` Parameters string `json:"parameters"` ParametersEntrypoints string `json:"parameters_entrypoints"` ParametersMicheline string `json:"parameters_micheline"` ManagerPubkey string `json:"manager_pubkey"` Balance int64 `json:"balance"` Spendable bool `json:"spendable"` Delegatable bool `json:"delegatable"` DelegationAmount int64 `json:"delegation_amount" gorm:"column:balance"` Script string `json:"script"` Storage string `json:"storage"` Status string `json:"status"` Errors string `json:"errors"` ConsumedGas int64 `json:"consumed_gas"` StorageSize int64 `json:"storage_size"` PaidStorageSizeDiff int64 `json:"paid_storage_size_diff"` OriginatedContracts string `json:"originated_contracts"` BlockHash null.String `json:"block_hash"` BlockLevel null.Int `json:"block_level"` //Temp not unmarshal timestamp from json db because time.Time not support ISO without timezone Timestamp time.Time `json:"-"` Branch string `json:"branch" gorm:"column:branch"` NumberOfSlots int64 `json:"number_of_slots" gorm:"column:number_of_slots"` Cycle int64 `json:"cycle" gorm:"column:cycle"` Proposal string `json:"proposal" gorm:"column:proposal"` Ballot string `json:"ballot" gorm:"column:ballot"` Internal bool `json:"internal" gorm:"column:internal"` Period int64 `json:"period" gorm:"column:period"` Reward int64 `json:"reward" gorm:"column:change"` DelegateName string `json:"delegate_name" gorm:"column:delegate_name"` SourceName string `json:"source_name" gorm:"column:source_name"` DestinationName string `json:"destination_name" gorm:"column:destination_name"` Confirmations int64 `json:"confirmations"` EndorsementReward int64 `json:"endorsement_reward" gorm:"column:endorsement_reward"` EndorsementDeposit int64 `json:"endorsement_reward" gorm:"column:endorsement_deposit"` ClaimedAmount int64 `json:"claimed_amount" gorm:"column:claimed_amount"` Deposit int64 `json:"deposit"` *DoubleOperationEvidenceExtended }
type OperationCount ¶
type OperationCounter ¶
type OperationGroup ¶
type OperationGroup struct { Protocol null.String `json:"protocol"` ChainID string `json:"chain_id"` Hash null.String `gorm:"primary_key;AUTO_INCREMENT" json:"hash"` Branch null.String `json:"branch"` Signature string `json:"signature"` BlockID null.String `json:"block_id"` Block *Block `json:"block"` // This line is infered from column name "block_id". BlockLevel int64 `json:"block_level" gorm:"column:block_level"` }
type OperationReport ¶
type PeriodBallot ¶
type PeriodInfo ¶
type PeriodStats ¶
type PeriodStats struct { Rolls int64 Bakers int64 BlockLevel int64 Period int64 Kind string TotalBakers int64 TotalRolls int64 BallotsStat *BallotsStat Proposal *ProposalInfo PeriodInfo }
type PeriodType ¶
type PeriodType string
type Proposal ¶
type Proposal struct { ProtocolHash string `json:"protocol_hash"` BlockID string `json:"block_id"` Block *Block `json:"block"` // This line is infered from column name "block_id". BlockLevel uint `json:"block_level"` Supporters uint `json:"supporters"` }
Unsupported
type ProposalInfo ¶
type ProposalVoter ¶
type Proposer ¶
type Proposer struct {
GenericAccount
}
type PublicBaker ¶
type PublicBakerSearch ¶
type RegisteredToken ¶
type ReportFilter ¶
type RewardStatus ¶
type RewardStatus string
const ( StatusPending RewardStatus = "pending" StatusActive RewardStatus = "active" StatusFrozen RewardStatus = "frozen" StatusUnfrozen RewardStatus = "unfrozen" )
type RightFilter ¶
type SnapshotsView ¶
type SnapshotsView struct { Snapshot BakingCycle }
type ThirdPartyBaker ¶
type ThirdPartyBaker struct { Provider string `json:"provider"` Number int `json:"number"` Name string `json:"name"` Address string `json:"address"` Yield float64 `json:"yield"` StakingBalance int64 `json:"staking_balance,omitempty"` Fee float64 `json:"fee"` AvailableCapacity int64 `json:"available_capacity,omitempty"` Efficiency float64 `json:"efficiency,omitempty"` PayoutAccuracy string `json:"payout_accuracy,omitempty"` }
type ThirdPartyBakerAgg ¶
type ThirdPartyBakerAgg struct { Address string Alias string StakingBalance int64 Providers ThirdPartyProviders }
type ThirdPartyProviders ¶
type ThirdPartyProviders []ThirdPartyBaker
func (*ThirdPartyProviders) Scan ¶
func (v *ThirdPartyProviders) Scan(value interface{}) (err error)
type UserAddress ¶
type UserAddressWithBalance ¶
type UserAddressWithBalance struct { UserAddress Balance null.Int }
type UserAddressWithEmail ¶
type UserAddressWithEmail struct { Email string UserAddress }
type UserNoteWithBalance ¶
type Voter ¶
type Voter struct { GenericAccount Rolls int64 }
type VotingProposal ¶
type VotingProposal struct { ProposalInfo PeriodBallot Bakers int64 BlockLevel int64 Period int64 Kind string }
Source Files
¶
- account.go
- accounts_checkpoint.go
- agg_values.go
- assets.go
- baker.go
- baking_rights.go
- balance_update.go
- ballot.go
- big_map.go
- block.go
- block_aggregations.go
- chart.go
- cycle.go
- daily_stat.go
- delegate.go
- delegated_contract.go
- delegates_checkpoint.go
- double_baking_evidence.go
- endorsment_rights.go
- fee.go
- holding_point.go
- interfaces.go
- network.go
- nft.go
- operation.go
- operation_counter.go
- operation_group.go
- proposal.go
- roll.go
- snapshot.go
- store.go
- user_profile.go
- voting.go
Click to show internal directories.
Click to hide internal directories.