Documentation
¶
Index ¶
- type BalanceArguments
- type BalanceReply
- type CreateReply
- type GrantReply
- type Share
- func (share *Share) Balance(arguments *BalanceArguments, reply *BalanceReply) error
- func (share *Share) Create(bmfr *transactionrecord.BitmarkShare, reply *CreateReply) error
- func (share *Share) Grant(arguments *transactionrecord.ShareGrant, reply *GrantReply) error
- func (share *Share) Swap(arguments *transactionrecord.ShareSwap, reply *SwapReply) error
- type SwapReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceArguments ¶
type BalanceArguments struct { Owner *account.Account `json:"owner"` // base58 Count int `json:"count"` // number of records }
BalanceArguments - arguments for RPC
type BalanceReply ¶
type BalanceReply struct {
Balances []reservoir.BalanceInfo `json:"balances"`
}
BalanceReply - balances of shares belonging to an account
type CreateReply ¶
type CreateReply struct { TxId merkle.Digest `json:"txId"` PayId pay.PayId `json:"payId"` Payments map[string]transactionrecord.PaymentAlternative `json:"payments"` }
CreateReply - results from creating a share
type GrantReply ¶
type GrantReply struct { Remaining uint64 `json:"remaining"` TxId merkle.Digest `json:"txId"` PayId pay.PayId `json:"payId"` Payments map[string]transactionrecord.PaymentAlternative `json:"payments"` }
GrantReply - result of granting some shares to another account
type Share ¶
type Share struct {}
Share - type for RPC
func (*Share) Balance ¶
func (share *Share) Balance(arguments *BalanceArguments, reply *BalanceReply) error
Balance - list balances for an account
func (*Share) Create ¶
func (share *Share) Create(bmfr *transactionrecord.BitmarkShare, reply *CreateReply) error
Create - create fractional bitmark
func (*Share) Grant ¶
func (share *Share) Grant(arguments *transactionrecord.ShareGrant, reply *GrantReply) error
Grant - grant a number of shares to another account
type SwapReply ¶
type SwapReply struct { RemainingOne uint64 `json:"remainingOne"` RemainingTwo uint64 `json:"remainingTwo"` TxId merkle.Digest `json:"txId"` PayId pay.PayId `json:"payId"` Payments map[string]transactionrecord.PaymentAlternative `json:"payments"` }
SwapReply - result of a share swap
Click to show internal directories.
Click to hide internal directories.