Documentation ¶
Index ¶
- type StorageHandler
- func (s *StorageHandler) BuyStorage(forAddress string, duration int64, gb int64) (*types.TxResponse, error)
- func (s *StorageHandler) QueryFidCid(fid string) (*storagetypes.QueryFidCidResponse, error)
- func (s *StorageHandler) QueryGetPayData(address string) (*storagetypes.QueryPayDataResponse, error)
- func (s *StorageHandler) QueryJackalPrice(bytes int64, duration int64) (*storagetypes.QueryPriceCheckResponse, error)
- func (s *StorageHandler) UpgradeStorage(forAddress string, duration int64, gb int64) (*types.TxResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageHandler ¶
type StorageHandler struct {
// contains filtered or unexported fields
}
func NewStorageHandler ¶
func NewStorageHandler(w *wallet_handler.WalletHandler) *StorageHandler
func (*StorageHandler) BuyStorage ¶
func (s *StorageHandler) BuyStorage(forAddress string, duration int64, gb int64) (*types.TxResponse, error)
func (*StorageHandler) QueryFidCid ¶
func (s *StorageHandler) QueryFidCid(fid string) (*storagetypes.QueryFidCidResponse, error)
func (*StorageHandler) QueryGetPayData ¶
func (s *StorageHandler) QueryGetPayData(address string) (*storagetypes.QueryPayDataResponse, error)
func (*StorageHandler) QueryJackalPrice ¶
func (s *StorageHandler) QueryJackalPrice(bytes int64, duration int64) (*storagetypes.QueryPriceCheckResponse, error)
func (*StorageHandler) UpgradeStorage ¶
func (s *StorageHandler) UpgradeStorage(forAddress string, duration int64, gb int64) (*types.TxResponse, error)
Click to show internal directories.
Click to hide internal directories.