coreaccountsclient

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2022 License: Apache-2.0, BSD-2-Clause, Apache-2.0, + 1 more Imports: 1 Imported by: 0

Documentation

Index

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

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

type WithdrawFunc

type WithdrawFunc struct {
	wasmclient.ClientFunc
}

func (*WithdrawFunc) Post

func (f *WithdrawFunc) Post() wasmclient.Request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL