owner

package
v0.13.3-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaximumBitmarksCount = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BitmarksArguments

type BitmarksArguments struct {
	Owner *account.Account `json:"owner"`        // base58
	Start uint64           `json:"Start,string"` // first record number
	Count int              `json:"count"`        // number of records
}

BitmarksArguments - arguments for RPC

type BitmarksRecord

type BitmarksRecord struct {
	Record  string      `json:"record"`
	TxId    interface{} `json:"txId,omitempty"`
	InBlock uint64      `json:"inBlock"`
	AssetId interface{} `json:"assetId,omitempty"`
	Data    interface{} `json:"data"`
}

BitmarksRecord - can be any of the transaction records

type BitmarksReply

type BitmarksReply struct {
	Next uint64                    `json:"next,string"` // Start value for the next call
	Data []ownership.Record        `json:"data"`        // list of bitmarks either issue or transfer
	Tx   map[string]BitmarksRecord `json:"tx"`          // table of tx records
}

BitmarksReply - result of owner RPC

type BlockAsset

type BlockAsset struct {
	Number uint64 `json:"number"`
}

BlockAsset - special record for owned blocks

type Owner

type Owner struct {
	Log              *logger.L
	Limiter          *rate.Limiter
	PoolTransactions storage.Handle
	PoolAssets       storage.Handle
	Ownership        ownership.Ownership
}

Owner - type for the RPC

func New

func New(log *logger.L, pools reservoir.Handles, os ownership.Ownership) *Owner

func (*Owner) Bitmarks

func (owner *Owner) Bitmarks(arguments *BitmarksArguments, reply *BitmarksReply) error

Bitmarks - list bitmarks belonging to an account

Jump to

Keyboard shortcuts

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