Documentation
¶
Index ¶
- Constants
- type AccountsResults
- type AccountsView
- type BalanceResults
- type BalanceView
- type CoreAccountsService
- func (s *CoreAccountsService) Accounts() AccountsView
- func (s *CoreAccountsService) Balance() BalanceView
- func (s *CoreAccountsService) Deposit() DepositFunc
- func (s *CoreAccountsService) GetAccountNonce() GetAccountNonceView
- func (s *CoreAccountsService) Harvest() HarvestFunc
- func (s *CoreAccountsService) TotalAssets() TotalAssetsView
- func (s *CoreAccountsService) Withdraw() WithdrawFunc
- type DepositFunc
- type GetAccountNonceResults
- type GetAccountNonceView
- type HarvestFunc
- type TotalAssetsResults
- type TotalAssetsView
- type WithdrawFunc
Constants ¶
View Source
const ( ArgAgentID = "a" ArgWithdrawAmount = "m" ArgWithdrawColor = "c" ResAccountNonce = "n" ResAgents = "this" ResBalances = "this" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsResults ¶
type AccountsResults struct {
// contains filtered or unexported fields
}
func (*AccountsResults) Agents ¶
func (r *AccountsResults) Agents() map[wasmclient.AgentID][]byte
type AccountsView ¶
type AccountsView struct {
wasmclient.ClientView
}
func (*AccountsView) Call ¶
func (f *AccountsView) Call() AccountsResults
type BalanceResults ¶
type BalanceResults struct {
// contains filtered or unexported fields
}
func (*BalanceResults) Balances ¶
func (r *BalanceResults) Balances() map[wasmclient.Color]int64
type BalanceView ¶
type BalanceView struct {
wasmclient.ClientView
// contains filtered or unexported fields
}
func (*BalanceView) AgentID ¶
func (f *BalanceView) AgentID(v wasmclient.AgentID)
func (*BalanceView) Call ¶
func (f *BalanceView) Call() BalanceResults
type CoreAccountsService ¶
type CoreAccountsService struct {
wasmclient.Service
}
func NewCoreAccountsService ¶
func NewCoreAccountsService(cl *wasmclient.ServiceClient, chainID string) (*CoreAccountsService, error)
func (*CoreAccountsService) Accounts ¶
func (s *CoreAccountsService) Accounts() AccountsView
func (*CoreAccountsService) Balance ¶
func (s *CoreAccountsService) Balance() BalanceView
func (*CoreAccountsService) Deposit ¶
func (s *CoreAccountsService) Deposit() DepositFunc
func (*CoreAccountsService) GetAccountNonce ¶
func (s *CoreAccountsService) GetAccountNonce() GetAccountNonceView
func (*CoreAccountsService) Harvest ¶
func (s *CoreAccountsService) Harvest() HarvestFunc
func (*CoreAccountsService) TotalAssets ¶
func (s *CoreAccountsService) TotalAssets() TotalAssetsView
func (*CoreAccountsService) Withdraw ¶
func (s *CoreAccountsService) Withdraw() WithdrawFunc
type DepositFunc ¶
type DepositFunc struct {
wasmclient.ClientFunc
// contains filtered or unexported fields
}
func (*DepositFunc) AgentID ¶
func (f *DepositFunc) AgentID(v wasmclient.AgentID)
func (*DepositFunc) Post ¶
func (f *DepositFunc) Post() wasmclient.Request
type GetAccountNonceResults ¶
type GetAccountNonceResults struct {
// contains filtered or unexported fields
}
func (*GetAccountNonceResults) AccountNonce ¶
func (r *GetAccountNonceResults) AccountNonce() int64
type GetAccountNonceView ¶
type GetAccountNonceView struct {
wasmclient.ClientView
// contains filtered or unexported fields
}
func (*GetAccountNonceView) AgentID ¶
func (f *GetAccountNonceView) AgentID(v wasmclient.AgentID)
func (*GetAccountNonceView) Call ¶
func (f *GetAccountNonceView) Call() GetAccountNonceResults
type HarvestFunc ¶
type HarvestFunc struct {
wasmclient.ClientFunc
// contains filtered or unexported fields
}
func (*HarvestFunc) Post ¶
func (f *HarvestFunc) Post() wasmclient.Request
func (*HarvestFunc) WithdrawAmount ¶
func (f *HarvestFunc) WithdrawAmount(v int64)
func (*HarvestFunc) WithdrawColor ¶
func (f *HarvestFunc) WithdrawColor(v wasmclient.Color)
type TotalAssetsResults ¶
type TotalAssetsResults struct {
// contains filtered or unexported fields
}
func (*TotalAssetsResults) Balances ¶
func (r *TotalAssetsResults) Balances() map[wasmclient.Color]int64
type TotalAssetsView ¶
type TotalAssetsView struct {
wasmclient.ClientView
}
func (*TotalAssetsView) Call ¶
func (f *TotalAssetsView) Call() TotalAssetsResults
type WithdrawFunc ¶
type WithdrawFunc struct {
wasmclient.ClientFunc
}
func (*WithdrawFunc) Post ¶
func (f *WithdrawFunc) Post() wasmclient.Request
Click to show internal directories.
Click to hide internal directories.