Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) BuildAddProviderTransaction(ctx context.Context, torrentHash []byte, owner *address.Address, ...) (addr *address.Address, bodyData, stateInit []byte, err error)
- func (c *Client) BuildWithdrawalTransaction(torrentHash []byte, owner *address.Address) (addr *address.Address, bodyData []byte, err error)
- func (c *Client) FetchProviderContract(ctx context.Context, torrentHash []byte, owner *address.Address) (*ProviderContractData, error)
- func (c *Client) FetchProviderRates(ctx context.Context, torrentHash, providerKey []byte) (*ProviderRates, error)
- func (c *Client) RequestProviderStorageInfo(ctx context.Context, torrentHash, providerKey []byte, owner *address.Address) (*ProviderStorageInfo, error)
- type NewProviderData
- type ProviderContractData
- type ProviderRates
- type ProviderStorageInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = log.Println
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BuildAddProviderTransaction ¶
func (*Client) BuildWithdrawalTransaction ¶
func (*Client) FetchProviderContract ¶
func (*Client) FetchProviderRates ¶
func (*Client) RequestProviderStorageInfo ¶
type NewProviderData ¶
type ProviderContractData ¶
type ProviderRates ¶
Click to show internal directories.
Click to hide internal directories.