Documentation
¶
Index ¶
- Constants
- Variables
- type ActualFee
- type Block
- type Coin
- type Coins
- type Delegation
- type Fee
- type IrisAssetDetail
- type IrisTx
- type KVPair
- type MsgBeginRedelegate
- type MsgBurn
- type MsgDeposit
- type MsgSetWithdrawAddress
- type MsgStakeBeginUnbonding
- type MsgStakeCreate
- type MsgStakeDelegate
- type MsgStakeEdit
- type MsgSubmitProposal
- type MsgSubmitSoftwareUpgradeProposal
- type MsgSubmitTaxUsageProposal
- type MsgTransfer
- type MsgUnjail
- type MsgVote
- type MsgWithdrawDelegatorReward
- type MsgWithdrawDelegatorRewardsAll
- type MsgWithdrawValidatorRewardsAll
- type Proposal
- type SdkCoins
- type SdkVote
- type StakeValidator
- type SyncTask
- func (d SyncTask) GetExecutableTask(maxWorkerSleepTime int64) ([]SyncTask, error)
- func (d SyncTask) GetMaxBlockHeight() (int64, error)
- func (d SyncTask) GetTaskById(id bson.ObjectId) (SyncTask, error)
- func (d SyncTask) GetTaskByIdAndWorker(id bson.ObjectId, worker string) (SyncTask, error)
- func (d SyncTask) Name() string
- func (d SyncTask) PkKvPair() map[string]interface{}
- func (d SyncTask) QueryAll(status []string, taskType string) ([]SyncTask, error)
- func (d SyncTask) TakeOverTask(task SyncTask, workerId string) error
- func (d SyncTask) UpdateLastUpdateTime(task SyncTask) error
- type UnbondingDelegation
- type WorkerLog
Constants ¶
View Source
const (
CollectionNameAssetDetail = "sync_iris_asset_detail"
)
View Source
const (
CollectionNameBlock = "sync_iris_block"
)
View Source
const (
CollectionNameIrisTx = "sync_iris_tx"
)
View Source
const (
CollectionNameSyncTask = "sync_iris_task"
)
Variables ¶
View Source
var (
TagDistributionReward = dtags.Reward
)
Functions ¶
This section is empty.
Types ¶
type Delegation ¶
type Delegation = stake.Delegation
type IrisAssetDetail ¶
type IrisAssetDetail struct {
From string `bson:"from"`
To string `bson:"to"`
CoinAmount string `bson:"coin_amount"`
CoinUnit string `bson:"coin_unit"`
Trigger string `bson:"trigger"`
Subject string `bson:"subject"`
Description string `bson:"description"`
Timestamp string `bson:"timestamp"`
Height int64 `bson:"height"`
TxHash string `bson:"tx_hash"`
Ext string `bson:"ext"`
}
func (IrisAssetDetail) Name ¶
func (d IrisAssetDetail) Name() string
func (IrisAssetDetail) PkKvPair ¶
func (d IrisAssetDetail) PkKvPair() map[string]interface{}
type IrisTx ¶
type IrisTx struct {
Time time.Time `json:"time" bson:"time"`
Height int64 `json:"height" bson:"height"`
TxHash string `json:"tx_hash" bson:"tx_hash"`
From string `json:"from" bson:"from"`
To string `json:"to" bson:"to"`
Initiator string `json:"initiator" bson:"initiator"`
Amount []*Coin `json:"amount" bson:"amount"`
Type string `json:"type" bson:"type"`
Fee *Fee `json:"fee" bson:"fee"`
ActualFee *ActualFee `json:"actual_fee" bson:"actual_fee"`
Memo string `json:"memo" bson:"memo"`
Status string `json:"status" bson:"status"`
Code uint32 `json:"code" bson:"code"`
Tags map[string]string `json:"tags" bson:"tags"`
}
type MsgBeginRedelegate ¶
type MsgBeginRedelegate = stake.MsgBeginRedelegate
type MsgDeposit ¶
type MsgDeposit = gov.MsgDeposit
type MsgSetWithdrawAddress ¶
type MsgSetWithdrawAddress = dtypes.MsgSetWithdrawAddress
type MsgStakeBeginUnbonding ¶
type MsgStakeBeginUnbonding = stake.MsgBeginUnbonding
type MsgStakeCreate ¶
type MsgStakeCreate = stake.MsgCreateValidator
type MsgStakeDelegate ¶
type MsgStakeDelegate = stake.MsgDelegate
type MsgStakeEdit ¶
type MsgStakeEdit = stake.MsgEditValidator
type MsgSubmitProposal ¶
type MsgSubmitProposal = gov.MsgSubmitProposal
type MsgSubmitSoftwareUpgradeProposal ¶
type MsgSubmitSoftwareUpgradeProposal = gov.MsgSubmitSoftwareUpgradeProposal
type MsgSubmitTaxUsageProposal ¶
type MsgSubmitTaxUsageProposal = gov.MsgSubmitTxTaxUsageProposal
type MsgTransfer ¶
type MsgWithdrawDelegatorReward ¶
type MsgWithdrawDelegatorReward = distribution.MsgWithdrawDelegatorReward
type MsgWithdrawDelegatorRewardsAll ¶
type MsgWithdrawDelegatorRewardsAll = distribution.MsgWithdrawDelegatorRewardsAll
type MsgWithdrawValidatorRewardsAll ¶
type MsgWithdrawValidatorRewardsAll = distribution.MsgWithdrawValidatorRewardsAll
type StakeValidator ¶
type SyncTask ¶
type SyncTask struct {
ID bson.ObjectId `bson:"_id"`
StartHeight int64 `bson:"start_height"` // task start height
EndHeight int64 `bson:"end_height"` // task end height
CurrentHeight int64 `bson:"current_height"` // task current height
Status string `bson:"status"` // task status
WorkerId string `bson:"worker_id"` // worker id
WorkerLogs []WorkerLog `bson:"worker_logs"` // worker logs
LastUpdateTime int64 `bson:"last_update_time"` // unix timestamp
}
func (SyncTask) GetExecutableTask ¶
func (SyncTask) GetMaxBlockHeight ¶
get max block height in sync task
func (SyncTask) GetTaskByIdAndWorker ¶
func (SyncTask) TakeOverTask ¶
take over a task update status, worker_id, worker_logs and last_update_time
func (SyncTask) UpdateLastUpdateTime ¶
update task last update time
type UnbondingDelegation ¶
type UnbondingDelegation = stake.UnbondingDelegation
Click to show internal directories.
Click to hide internal directories.