Documentation ¶
Index ¶
- func ClientAllowanceList(startBlockTime, endBlockTime int64) (data []*models.ClientAllowance, err error)
- func NotaryAllowanceList(startEpoch, endEpoch uint64) (data []*models.NotaryAllowance, err error)
- func RpcCall(rpcMetchod string, rpcParams interface{}) (result []byte, requetRpcId int, err error)
- type ClientDataCapDealList
- type ClientDataCapDealNum
- type MarketDeal
- type NotaryDataCap
- type NotaryDataCapAllocated
- type NotaryDataCapAllocatedList
- type NotaryDataCapList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientAllowanceList ¶
func ClientAllowanceList(startBlockTime, endBlockTime int64) (data []*models.ClientAllowance, err error)
func NotaryAllowanceList ¶
func NotaryAllowanceList(startEpoch, endEpoch uint64) (data []*models.NotaryAllowance, err error)
Types ¶
type ClientDataCapDealList ¶
type ClientDataCapDealList struct { Total int `json:"total"` List []*MarketDeal `json:"list"` }
func GetClientDataCapDealList ¶
func GetClientDataCapDealList(client string, startEpoch int64, start, count int) (data *ClientDataCapDealList, err error)
type ClientDataCapDealNum ¶
type ClientDataCapDealNum struct {
Total int `json:"total"`
}
type MarketDeal ¶
type MarketDeal struct { //tableName string `pg:"lotus_market_deal,discard_unknown_columns"` Id int64 `pg:"id" json:"-"` Epoch int64 `pg:"epoch" json:"epoch"` Label string `pg:"label" json:"label"` Cid string `pg:"cid" json:"cid"` DealID int64 `pg:"dealid" json:"dealid"` Client string `pg:"client" json:"client"` StartEpoch int64 `pg:"start_epoch" json:"start_epoch"` EndEpoch int64 `pg:"end_epoch" json:"end_epoch"` PieceCID string `pg:"piece_cid" json:"piece_cid"` Provider string `pg:"provider" json:"provider"` PieceSize decimal.Decimal `pg:"piece_size" json:"piece_size"` VerifiedDeal bool `pg:"verified_deal" json:"verified_deal"` ClientCollateral decimal.Decimal `pg:"client_collateral" json:"client_collateral"` ProviderCollateral decimal.Decimal `pg:"provider_collateral" json:"provider_collateral"` StoragePricePerEpoch decimal.Decimal `pg:"storage_price_per_epoch" json:"storage_price_per_epoch"` BlockTime int `pg:"block_time" json:"block_time"` ServiceStart int `pg:"service_start" json:"service_start_time"` ServiceEnd int `pg:"service_end" json:"service_end_time"` }
type NotaryDataCap ¶
type NotaryDataCapAllocated ¶
type NotaryDataCapAllocatedList ¶
type NotaryDataCapAllocatedList struct { Total int `json:"total"` List []*NotaryDataCapAllocated `json:"list"` }
func GetNotaryDataCapAllocatedList ¶
func GetNotaryDataCapAllocatedList(address string, client []string, start, count int) (data *NotaryDataCapAllocatedList, err error)
type NotaryDataCapList ¶
type NotaryDataCapList struct { Total int `json:"total"` List []*NotaryDataCap `json:"list"` }
func GetNotaryList ¶
func GetNotaryList(start, count int) (data *NotaryDataCapList, err error)
Click to show internal directories.
Click to hide internal directories.