Documentation ¶
Index ¶
- Constants
- Variables
- type ActualFee
- type AssetCreateGateway
- type AssetEditGateWay
- type AssetEditToken
- type AssetIssueToken
- type AssetMintToken
- type AssetTransferGatewayOwner
- type AssetTransferTokenOwner
- type Block
- type Coin
- type Coins
- type DocTxMsg
- type Fee
- type IrisAssetDetail
- type IrisTx
- type KVPair
- type Msg
- type MsgBeginRedelegate
- type MsgBurn
- type MsgDeposit
- type MsgRequestRand
- type MsgSetMemoRegexp
- type MsgSetWithdrawAddress
- type MsgStakeBeginUnbonding
- type MsgStakeCreate
- type MsgStakeDelegate
- type MsgStakeEdit
- type MsgSubmitProposal
- type MsgSubmitSoftwareUpgradeProposal
- type MsgSubmitTaxUsageProposal
- type MsgSubmitTokenAdditionProposal
- type MsgTransfer
- type MsgUnjail
- type MsgVote
- type MsgWithdrawDelegatorReward
- type MsgWithdrawDelegatorRewardsAll
- type MsgWithdrawValidatorRewardsAll
- type SdkCoins
- 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 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 AssetCreateGateway ¶ added in v1.2.0
type AssetCreateGateway = asset.MsgCreateGateway
type AssetEditGateWay ¶ added in v1.2.0
type AssetEditGateWay = asset.MsgEditGateway
type AssetEditToken ¶ added in v1.2.0
type AssetEditToken = asset.MsgEditToken
type AssetIssueToken ¶ added in v1.2.0
type AssetIssueToken = asset.MsgIssueToken
type AssetMintToken ¶ added in v1.2.0
type AssetMintToken = asset.MsgMintToken
type AssetTransferGatewayOwner ¶ added in v1.2.0
type AssetTransferGatewayOwner = asset.MsgTransferGatewayOwner
type AssetTransferTokenOwner ¶ added in v1.2.0
type AssetTransferTokenOwner = asset.MsgTransferTokenOwner
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"` Log string `json:"log" bson:"log"` Tags map[string]string `json:"tags" bson:"tags"` Msgs []DocTxMsg `bson:"msgs"` }
type MsgBeginRedelegate ¶
type MsgBeginRedelegate = stake.MsgBeginRedelegate
type MsgDeposit ¶
type MsgDeposit = gov.MsgDeposit
type MsgRequestRand ¶ added in v1.2.0
type MsgRequestRand = rand.MsgRequestRand
type MsgSetMemoRegexp ¶ added in v1.2.0
type MsgSetMemoRegexp = bank.MsgSetMemoRegexp
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.MsgSubmitCommunityTaxUsageProposal
type MsgSubmitTokenAdditionProposal ¶ added in v1.2.0
type MsgSubmitTokenAdditionProposal = gov.MsgSubmitTokenAdditionProposal
type MsgTransfer ¶
type MsgWithdrawDelegatorReward ¶
type MsgWithdrawDelegatorReward = distribution.MsgWithdrawDelegatorReward
type MsgWithdrawDelegatorRewardsAll ¶
type MsgWithdrawDelegatorRewardsAll = distribution.MsgWithdrawDelegatorRewardsAll
type MsgWithdrawValidatorRewardsAll ¶
type MsgWithdrawValidatorRewardsAll = distribution.MsgWithdrawValidatorRewardsAll
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
Click to show internal directories.
Click to hide internal directories.