types

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const TimeFormat = `"2006-01-02T15:04:05"`
View Source
const (
	TxExpirationDefault = 30 * time.Second
)

Variables

View Source
var (
	ErrInvalidCurve               = fmt.Errorf("invalid elliptic curve")
	ErrSharedKeyTooBig            = fmt.Errorf("shared key params are too big")
	ErrSharedKeyIsPointAtInfinity = fmt.Errorf("shared key is point at infinity")
)
View Source
var (
	//	ErrRPCClientNotInitialized      = fmt.Errorf("RPC client is not initialized")
	ErrNotImplemented               = fmt.Errorf("not implemented")
	ErrInvalidInputType             = fmt.Errorf("invalid input type")
	ErrInvalidInputLength           = fmt.Errorf("invalid input length")
	ErrInvalidPublicKey             = fmt.Errorf("invalid PublicKey")
	ErrInvalidAddress               = fmt.Errorf("invalid Address")
	ErrPublicKeyChainPrefixMismatch = fmt.Errorf("PublicKey chain prefix mismatch")
	ErrAddressChainPrefixMismatch   = fmt.Errorf("Address chain prefix mismatch")
	ErrInvalidChecksum              = fmt.Errorf("invalid checksum")
	ErrNoSigningKeyFound            = fmt.Errorf("no signing key found")
	ErrNoVerifyingKeyFound          = fmt.Errorf("no verifying key found")
	ErrInvalidDigestLength          = fmt.Errorf("invalid digest length")
	ErrInvalidPrivateKeyCurve       = fmt.Errorf("invalid PrivateKey curve")
	ErrChainConfigIsUndefined       = fmt.Errorf("chain config is undefined")
)
View Source
var (
	EmptyBuffer = []byte{}
	EmptyParams = []interface{}{}
)
View Source
var (
	GrapheneMaxInstanceID = UInt64(math.MaxUint64 >> 16)
)
View Source
var (
	OperationMap = make(map[OperationType]GetOpFunc)
)

Functions

This section is empty.

Types

type Account

type Account struct {
	ID                            AccountID              `json:"id"`
	Name                          String                 `json:"name"`
	Statistics                    ObjectID               `json:"statistics"`
	MembershipExpirationDate      Time                   `json:"membership_expiration_date"`
	NetworkFeePercentage          UInt64                 `json:"network_fee_percentage"`
	LifetimeReferrerFeePercentage UInt64                 `json:"lifetime_referrer_fee_percentage"`
	ReferrerRewardsPercentage     UInt64                 `json:"referrer_rewards_percentage"`
	TopNControlFlags              UInt64                 `json:"top_n_control_flags"`
	WhitelistingAccounts          AccountIDs             `json:"whitelisting_accounts"`
	BlacklistingAccounts          AccountIDs             `json:"blacklisting_accounts"`
	WhitelistedAccounts           AccountIDs             `json:"whitelisted_accounts"`
	BlacklistedAccounts           AccountIDs             `json:"blacklisted_accounts"`
	Options                       AccountOptions         `json:"options"`
	Registrar                     AccountID              `json:"registrar"`
	Referrer                      AccountID              `json:"referrer"`
	LifetimeReferrer              AccountID              `json:"lifetime_referrer"`
	CashbackVB                    VestingBalanceID       `json:"cashback_vb"`
	Owner                         Authority              `json:"owner"`
	Active                        Authority              `json:"active"`
	OwnerSpecialAuthority         OwnerSpecialAuthority  `json:"owner_special_authority"`
	ActiveSpecialAuthority        ActiveSpecialAuthority `json:"active_special_authority"`
}

func (*Account) MarshalJSON

func (j *Account) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*Account) MarshalJSONBuf

func (j *Account) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*Account) UnmarshalJSON

func (j *Account) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Account) UnmarshalJSONFFLexer

func (j *Account) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AccountAuthsMap

type AccountAuthsMap map[GrapheneObject]UInt16

func (AccountAuthsMap) Marshal

func (p AccountAuthsMap) Marshal(enc *util.TypeEncoder) error

func (AccountAuthsMap) MarshalJSON

func (p AccountAuthsMap) MarshalJSON() ([]byte, error)

func (*AccountAuthsMap) UnmarshalJSON

func (p *AccountAuthsMap) UnmarshalJSON(data []byte) error

type AccountBalance

type AccountBalance struct {
	ID              AccountBalanceID `json:"id"`
	Owner           AccountID        `json:"owner"`
	AssetType       AssetID          `json:"asset_type"`
	Balance         UInt64           `json:"balance"`
	MaintenanceFlag bool             `json:"maintenance_flag"`
}

func (*AccountBalance) MarshalJSON

func (j *AccountBalance) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*AccountBalance) MarshalJSONBuf

func (j *AccountBalance) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*AccountBalance) UnmarshalJSON

func (j *AccountBalance) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*AccountBalance) UnmarshalJSONFFLexer

func (j *AccountBalance) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AccountBalanceID

type AccountBalanceID struct {
	ObjectID
}

func AccountBalanceIDFromObject

func AccountBalanceIDFromObject(ob GrapheneObject) AccountBalanceID

func (AccountBalanceID) Marshal

func (p AccountBalanceID) Marshal(enc *util.TypeEncoder) error

func (*AccountBalanceID) Unmarshal

func (p *AccountBalanceID) Unmarshal(dec *util.TypeDecoder) error

type AccountBalanceIDs

type AccountBalanceIDs []AccountBalanceID

func (AccountBalanceIDs) Marshal

func (p AccountBalanceIDs) Marshal(enc *util.TypeEncoder) error

type AccountBalances

type AccountBalances []AccountBalance

type AccountCreateExtensions

type AccountCreateExtensions struct {
	NullExt                *NullExtension          `json:"null_ext,omitempty"`
	OwnerSpecialAuthority  *OwnerSpecialAuthority  `json:"owner_special_authority,omitempty"`
	ActiveSpecialAuthority *ActiveSpecialAuthority `json:"active_special_authority,omitempty"`
	BuybackOptions         *BuybackOptions         `json:"buyback_options,omitempty"`
}

func (AccountCreateExtensions) Length

func (p AccountCreateExtensions) Length() int

func (AccountCreateExtensions) Marshal

func (*AccountCreateExtensions) MarshalJSON

func (j *AccountCreateExtensions) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*AccountCreateExtensions) MarshalJSONBuf

func (j *AccountCreateExtensions) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*AccountCreateExtensions) UnmarshalJSON

func (j *AccountCreateExtensions) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*AccountCreateExtensions) UnmarshalJSONFFLexer

func (j *AccountCreateExtensions) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AccountCreateExtensionsType

type AccountCreateExtensionsType UInt8
const (
	AccountCreateExtensionsNullExt AccountCreateExtensionsType = iota
	AccountCreateExtensionsOwnerSpecial
	AccountCreateExtensionsActiveSpecial
	AccountCreateExtensionsBuyback
)

type AccountID

type AccountID struct {
	ObjectID
}

func AccountIDFromObject

func AccountIDFromObject(ob GrapheneObject) AccountID

func (AccountID) Marshal

func (p AccountID) Marshal(enc *util.TypeEncoder) error

func (*AccountID) Unmarshal

func (p *AccountID) Unmarshal(dec *util.TypeDecoder) error

type AccountIDs

type AccountIDs []AccountID

func (AccountIDs) Marshal

func (p AccountIDs) Marshal(enc *util.TypeEncoder) error

type AccountInfo

type AccountInfo struct {
	Account              Account               `json:"account"`
	RegistrarName        String                `json:"registrar_name"`
	ReferrerName         String                `json:"referrer_name"`
	LifetimeReferrerName String                `json:"lifetime_referrer_name"`
	CashbackBalance      VestingBalance        `json:"cashback_balance"`
	Balances             AccountBalances       `json:"balances"`
	VestingBalances      VestingBalances       `json:"vesting_balances"`
	LimitOrders          LimitOrders           `json:"limit_orders"`
	CallOrders           CallOrders            `json:"call_orders"`
	SettleOrders         ForceSettlementOrders `json:"settle_orders"`
	Statistics           AccountStatistics     `json:"statistics"`
	Assets               AssetIDs              `json:"assets"`
}

func (*AccountInfo) MarshalJSON

func (j *AccountInfo) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*AccountInfo) MarshalJSONBuf

func (j *AccountInfo) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*AccountInfo) UnmarshalJSON

func (j *AccountInfo) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*AccountInfo) UnmarshalJSONFFLexer

func (j *AccountInfo) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AccountOptions

type AccountOptions struct {
	MemoKey       PublicKey  `json:"memo_key"`
	VotingAccount AccountID  `json:"voting_account"`
	NumWitness    UInt16     `json:"num_witness"`
	NumCommittee  UInt16     `json:"num_committee"`
	Votes         Votes      `json:"votes"`
	Extensions    Extensions `json:"extensions"`
}

func (AccountOptions) Marshal

func (p AccountOptions) Marshal(enc *util.TypeEncoder) error

func (*AccountOptions) MarshalJSON

func (j *AccountOptions) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*AccountOptions) MarshalJSONBuf

func (j *AccountOptions) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*AccountOptions) UnmarshalJSON

func (j *AccountOptions) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*AccountOptions) UnmarshalJSONFFLexer

func (j *AccountOptions) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AccountStatistics

type AccountStatistics struct {
	ID                AccountStatisticsID         `json:"id"`
	MostRecentOp      AccountTransactionHistoryID `json:"most_recent_op"`
	Owner             AccountID                   `json:"owner"`
	LifetimeFeesPaid  UInt64                      `json:"lifetime_fees_paid"`
	PendingFees       UInt64                      `json:"pending_fees"`
	PendingVestedFees UInt64                      `json:"pending_vested_fees"`
	RemovedOps        UInt64                      `json:"removed_ops"`
	TotalOps          UInt64                      `json:"total_ops"`
	TotalCoreInOrders UInt64                      `json:"total_core_in_orders"`
}

func (*AccountStatistics) MarshalJSON

func (j *AccountStatistics) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*AccountStatistics) MarshalJSONBuf

func (j *AccountStatistics) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*AccountStatistics) UnmarshalJSON

func (j *AccountStatistics) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*AccountStatistics) UnmarshalJSONFFLexer

func (j *AccountStatistics) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AccountStatisticsID

type AccountStatisticsID struct {
	ObjectID
}

func AccountStatisticsIDFromObject

func AccountStatisticsIDFromObject(ob GrapheneObject) AccountStatisticsID

func (AccountStatisticsID) Marshal

func (p AccountStatisticsID) Marshal(enc *util.TypeEncoder) error

func (*AccountStatisticsID) Unmarshal

func (p *AccountStatisticsID) Unmarshal(dec *util.TypeDecoder) error

type AccountStatisticsIDs

type AccountStatisticsIDs []AccountStatisticsID

func (AccountStatisticsIDs) Marshal

func (p AccountStatisticsIDs) Marshal(enc *util.TypeEncoder) error

type AccountTransactionHistoryID

type AccountTransactionHistoryID struct {
	ObjectID
}

func AccountTransactionHistoryIDFromObject

func AccountTransactionHistoryIDFromObject(ob GrapheneObject) AccountTransactionHistoryID

func (AccountTransactionHistoryID) Marshal

func (*AccountTransactionHistoryID) Unmarshal

type AccountTransactionHistoryIDs

type AccountTransactionHistoryIDs []AccountTransactionHistoryID

func (AccountTransactionHistoryIDs) Marshal

type AccountUpdateExtensions

type AccountUpdateExtensions struct {
	NullExt                *NullExtension          `json:"null_ext,omitempty"`
	OwnerSpecialAuthority  *OwnerSpecialAuthority  `json:"owner_special_authority,omitempty"`
	ActiveSpecialAuthority *ActiveSpecialAuthority `json:"active_special_authority,omitempty"`
}

func (AccountUpdateExtensions) Length

func (p AccountUpdateExtensions) Length() int

func (AccountUpdateExtensions) Marshal

func (*AccountUpdateExtensions) MarshalJSON

func (j *AccountUpdateExtensions) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*AccountUpdateExtensions) MarshalJSONBuf

func (j *AccountUpdateExtensions) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*AccountUpdateExtensions) UnmarshalJSON

func (j *AccountUpdateExtensions) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*AccountUpdateExtensions) UnmarshalJSONFFLexer

func (j *AccountUpdateExtensions) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type Accounts

type Accounts []Account

func (Accounts) Lookup

func (p Accounts) Lookup(ID GrapheneObject) *Account

type ActiveSpecialAuthority

type ActiveSpecialAuthority struct {
	SpecialAuthority
}

func (ActiveSpecialAuthority) Marshal

func (p ActiveSpecialAuthority) Marshal(enc *util.TypeEncoder) error

type Address

type Address struct {
	// contains filtered or unexported fields
}

An Address is a shortened non-reversable hash of a PublicKey.

func NewAddress

func NewAddress(pub *PublicKey) (*Address, error)

func NewAddressFromString

func NewAddressFromString(add string) (*Address, error)

NewAddressFromString creates a new Address from string e.g.("BTSFN9r6VYzBK8EKtMewfNbfiGCr56pHDBFi")

func (Address) Bytes

func (p Address) Bytes() []byte

func (Address) Marshal

func (p Address) Marshal(enc *util.TypeEncoder) error

func (Address) MarshalJSON

func (p Address) MarshalJSON() ([]byte, error)

func (Address) String

func (p Address) String() string

func (*Address) UnmarshalJSON

func (p *Address) UnmarshalJSON(data []byte) error

type AddressAuthsMap

type AddressAuthsMap map[*Address]UInt16

func (AddressAuthsMap) Marshal

func (p AddressAuthsMap) Marshal(enc *util.TypeEncoder) error

func (AddressAuthsMap) MarshalJSON

func (p AddressAuthsMap) MarshalJSON() ([]byte, error)

func (*AddressAuthsMap) UnmarshalJSON

func (p *AddressAuthsMap) UnmarshalJSON(data []byte) error

type Asset

type Asset struct {
	ID                 AssetID             `json:"id"`
	Symbol             String              `json:"symbol"`
	Precision          int                 `json:"precision"`
	Issuer             AccountID           `json:"issuer"`
	DynamicAssetDataID AssetDynamicDataID  `json:"dynamic_asset_data_id"`
	BitassetDataID     AssetBitAssetDataID `json:"bitasset_data_id"`
	Options            AssetOptions        `json:"options"`
}

func (*Asset) MarshalJSON

func (j *Asset) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*Asset) MarshalJSONBuf

func (j *Asset) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*Asset) UnmarshalJSON

func (j *Asset) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Asset) UnmarshalJSONFFLexer

func (j *Asset) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AssetAmount

type AssetAmount struct {
	Amount Int64   `json:"amount"`
	Asset  AssetID `json:"asset_id"`
}

func (AssetAmount) Marshal

func (p AssetAmount) Marshal(enc *util.TypeEncoder) error

func (*AssetAmount) MarshalJSON

func (j *AssetAmount) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*AssetAmount) MarshalJSONBuf

func (j *AssetAmount) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (AssetAmount) Rate

func (p AssetAmount) Rate(prec float64) float64

func (*AssetAmount) UnmarshalJSON

func (j *AssetAmount) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*AssetAmount) UnmarshalJSONFFLexer

func (j *AssetAmount) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

func (AssetAmount) Valid

func (p AssetAmount) Valid() bool

type AssetAmounts

type AssetAmounts []AssetAmount

type AssetBitAssetDataID

type AssetBitAssetDataID struct {
	ObjectID
}

func AssetBitAssetDataIDFromObject

func AssetBitAssetDataIDFromObject(ob GrapheneObject) AssetBitAssetDataID

func (AssetBitAssetDataID) Marshal

func (p AssetBitAssetDataID) Marshal(enc *util.TypeEncoder) error

func (*AssetBitAssetDataID) Unmarshal

func (p *AssetBitAssetDataID) Unmarshal(dec *util.TypeDecoder) error

type AssetBitAssetDataIDs

type AssetBitAssetDataIDs []AssetBitAssetDataID

func (AssetBitAssetDataIDs) Marshal

func (p AssetBitAssetDataIDs) Marshal(enc *util.TypeEncoder) error

type AssetDynamicDataID

type AssetDynamicDataID struct {
	ObjectID
}

func AssetDynamicDataIDFromObject

func AssetDynamicDataIDFromObject(ob GrapheneObject) AssetDynamicDataID

func (AssetDynamicDataID) Marshal

func (p AssetDynamicDataID) Marshal(enc *util.TypeEncoder) error

func (*AssetDynamicDataID) Unmarshal

func (p *AssetDynamicDataID) Unmarshal(dec *util.TypeDecoder) error

type AssetDynamicDataIDs

type AssetDynamicDataIDs []AssetDynamicDataID

func (AssetDynamicDataIDs) Marshal

func (p AssetDynamicDataIDs) Marshal(enc *util.TypeEncoder) error

type AssetFeed

type AssetFeed struct {
	ProviderID AccountID
	DateTime   Time
	FeedInfo   PriceFeed
}

func (AssetFeed) MarshalJSON

func (p AssetFeed) MarshalJSON() ([]byte, error)

func (*AssetFeed) UnmarshalJSON

func (p *AssetFeed) UnmarshalJSON(data []byte) error

type AssetFeeds

type AssetFeeds []AssetFeed

type AssetID

type AssetID struct {
	ObjectID
}

func AssetIDFromObject

func AssetIDFromObject(ob GrapheneObject) AssetID

func (AssetID) Marshal

func (p AssetID) Marshal(enc *util.TypeEncoder) error

func (*AssetID) Unmarshal

func (p *AssetID) Unmarshal(dec *util.TypeDecoder) error

type AssetIDs

type AssetIDs []AssetID

func (AssetIDs) Marshal

func (p AssetIDs) Marshal(enc *util.TypeEncoder) error

type AssetOptions

type AssetOptions struct {
	MaxSupply            Int64      `json:"max_supply"`
	MaxMarketFee         Int64      `json:"max_market_fee"`
	MarketFeePercent     UInt16     `json:"market_fee_percent"`
	Flags                UInt16     `json:"flags"`
	Description          String     `json:"description"`
	CoreExchangeRate     Price      `json:"core_exchange_rate"`
	IssuerPermissions    UInt16     `json:"issuer_permissions"`
	BlacklistAuthorities AccountIDs `json:"blacklist_authorities"`
	WhitelistAuthorities AccountIDs `json:"whitelist_authorities"`
	BlacklistMarkets     AccountIDs `json:"blacklist_markets"`
	WhitelistMarkets     AccountIDs `json:"whitelist_markets"`
	Extensions           Extensions `json:"extensions"`
}

func (AssetOptions) Marshal

func (p AssetOptions) Marshal(enc *util.TypeEncoder) error

func (*AssetOptions) MarshalJSON

func (j *AssetOptions) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*AssetOptions) MarshalJSONBuf

func (j *AssetOptions) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*AssetOptions) UnmarshalJSON

func (j *AssetOptions) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*AssetOptions) UnmarshalJSONFFLexer

func (j *AssetOptions) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AssetPermission

type AssetPermission Int16
const (
	AssetPermissionChargeMarketFee     AssetPermission = 0x01
	AssetPermissionWhiteList           AssetPermission = 0x02
	AssetPermissionOverrideAuthority   AssetPermission = 0x04
	AssetPermissionTransferRestricted  AssetPermission = 0x08
	AssetPermissionDisableForceSettle  AssetPermission = 0x10
	AssetPermissionGlobalSettle        AssetPermission = 0x20
	AssetPermissionDisableConfidential AssetPermission = 0x40
	AssetPermissionWitnessFedAsset     AssetPermission = 0x80
	AssetPermissionComiteeFedAsset     AssetPermission = 0x100
)

func (AssetPermission) String

func (i AssetPermission) String() string

type AssetType

type AssetType Int8
const (
	AssetTypeUndefined AssetType = -1
	AssetTypeCoreAsset AssetType = iota
	AssetTypeUIA
	AssetTypeSmartCoin
	AssetTypePredictionMarket
)

func (AssetType) String

func (i AssetType) String() string

type Assets

type Assets []Asset

type Authority

type Authority struct {
	WeightThreshold UInt32          `json:"weight_threshold"`
	AccountAuths    AccountAuthsMap `json:"account_auths"`
	KeyAuths        KeyAuthsMap     `json:"key_auths"`
	AddressAuths    AddressAuthsMap `json:"address_auths"`
}

func (Authority) Marshal

func (p Authority) Marshal(enc *util.TypeEncoder) error

func (*Authority) MarshalJSON

func (j *Authority) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*Authority) MarshalJSONBuf

func (j *Authority) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*Authority) UnmarshalJSON

func (j *Authority) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Authority) UnmarshalJSONFFLexer

func (j *Authority) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type Balance

type Balance struct {
	ID            BalanceID   `json:"id"`
	Balance       AssetAmount `json:"balance"`
	LastClaimDate Time        `json:"last_claim_date"`
	Owner         Address     `json:"owner"`
}

func (*Balance) MarshalJSON

func (j *Balance) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*Balance) MarshalJSONBuf

func (j *Balance) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*Balance) UnmarshalJSON

func (j *Balance) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Balance) UnmarshalJSONFFLexer

func (j *Balance) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type BalanceID

type BalanceID struct {
	ObjectID
}

func BalanceIDFromObject

func BalanceIDFromObject(ob GrapheneObject) BalanceID

func (BalanceID) Marshal

func (p BalanceID) Marshal(enc *util.TypeEncoder) error

func (*BalanceID) Unmarshal

func (p *BalanceID) Unmarshal(dec *util.TypeDecoder) error

type BalanceIDs

type BalanceIDs []BalanceID

func (BalanceIDs) Marshal

func (p BalanceIDs) Marshal(enc *util.TypeEncoder) error

type BitAssetData

type BitAssetData struct {
	ID                       AssetBitAssetDataID `json:"id"`
	MembershipExpirationDate Time                `json:"current_feed_publication_time"`
	IsPredictionMarket       bool                `json:"is_prediction_market"`
	SettlementPrice          Price               `json:"settlement_price"`
	Feeds                    AssetFeeds          `json:"feeds"`
	Options                  BitassetOptions     `json:"options"`
	CurrentFeed              PriceFeed           `json:"current_feed"`
	ForcedSettledVolume      UInt64              `json:"force_settled_volume"`
	SettlementFund           UInt64              `json:"settlement_fund"`
}

func (*BitAssetData) MarshalJSON

func (j *BitAssetData) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*BitAssetData) MarshalJSONBuf

func (j *BitAssetData) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*BitAssetData) UnmarshalJSON

func (j *BitAssetData) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*BitAssetData) UnmarshalJSONFFLexer

func (j *BitAssetData) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type BitassetOptions

type BitassetOptions struct {
	FeedLifetimeSec              UInt32     `json:"feed_lifetime_sec"`
	MinimumFeeds                 UInt8      `json:"minimum_feeds"`
	ForceSettlementDelaySec      UInt32     `json:"force_settlement_delay_sec"`
	ForceSettlementOffsetPercent UInt16     `json:"force_settlement_offset_percent"`
	MaximumForceSettlementVolume UInt16     `json:"maximum_force_settlement_volume"`
	ShortBackingAsset            AssetID    `json:"short_backing_asset"`
	Extensions                   Extensions `json:"extensions"`
}

func (BitassetOptions) Marshal

func (p BitassetOptions) Marshal(enc *util.TypeEncoder) error

func (*BitassetOptions) MarshalJSON

func (j *BitassetOptions) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*BitassetOptions) MarshalJSONBuf

func (j *BitassetOptions) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*BitassetOptions) UnmarshalJSON

func (j *BitassetOptions) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*BitassetOptions) UnmarshalJSONFFLexer

func (j *BitassetOptions) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type BlindInput

type BlindInput struct {
	Commitment FixedBuffer `json:"commitment"`
	Owner      Authority   `json:"owner"`
}

func (BlindInput) Marshal

func (p BlindInput) Marshal(enc *util.TypeEncoder) error

func (*BlindInput) MarshalJSON

func (j *BlindInput) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*BlindInput) MarshalJSONBuf

func (j *BlindInput) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*BlindInput) UnmarshalJSON

func (j *BlindInput) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*BlindInput) UnmarshalJSONFFLexer

func (j *BlindInput) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type BlindInputs

type BlindInputs []BlindInput

func (BlindInputs) Marshal

func (p BlindInputs) Marshal(enc *util.TypeEncoder) error

type BlindOutput

type BlindOutput struct {
	Commitment          FixedBuffer          `json:"commitment"`
	Owner               Authority            `json:"owner"`
	RangeProof          Buffer               `json:"range_proof"`
	StealthConfirmation *StealthConfirmation `json:"stealth_memo,omitempty"`
}

func (BlindOutput) Marshal

func (p BlindOutput) Marshal(enc *util.TypeEncoder) error

func (*BlindOutput) MarshalJSON

func (j *BlindOutput) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*BlindOutput) MarshalJSONBuf

func (j *BlindOutput) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*BlindOutput) UnmarshalJSON

func (j *BlindOutput) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*BlindOutput) UnmarshalJSONFFLexer

func (j *BlindOutput) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type BlindOutputs

type BlindOutputs []BlindOutput

func (BlindOutputs) Marshal

func (p BlindOutputs) Marshal(enc *util.TypeEncoder) error

type BlindedBalanceID

type BlindedBalanceID struct {
	ObjectID
}

func BlindedBalanceIDFromObject

func BlindedBalanceIDFromObject(ob GrapheneObject) BlindedBalanceID

func (BlindedBalanceID) Marshal

func (p BlindedBalanceID) Marshal(enc *util.TypeEncoder) error

func (*BlindedBalanceID) Unmarshal

func (p *BlindedBalanceID) Unmarshal(dec *util.TypeDecoder) error

type BlindedBalanceIDs

type BlindedBalanceIDs []BlindedBalanceID

func (BlindedBalanceIDs) Marshal

func (p BlindedBalanceIDs) Marshal(enc *util.TypeEncoder) error

type Block

type Block struct {
	Witness               WitnessID          `json:"witness"`
	TransactionMerkleRoot Buffer             `json:"transaction_merkle_root"`
	WitnessSignature      Buffer             `json:"witness_signature"`
	Previous              Buffer             `json:"previous"`
	BlockID               Buffer             `json:"block_id"`
	TimeStamp             Time               `json:"timestamp"`
	SigningKey            *PublicKey         `json:"signing_key,omitempty"`
	Transactions          SignedTransactions `json:"transactions"`
	TransactionIDs        Buffers            `json:"transaction_ids"`
	Extensions            Extensions         `json:"extensions"`
}

func (*Block) MarshalJSON

func (j *Block) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*Block) MarshalJSONBuf

func (j *Block) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*Block) UnmarshalJSON

func (j *Block) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Block) UnmarshalJSONFFLexer

func (j *Block) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type BlockHeader

type BlockHeader struct {
	TransactionMerkleRoot Buffer     `json:"transaction_merkle_root"`
	Previous              Buffer     `json:"previous"`
	TimeStamp             Time       `json:"timestamp"`
	Witness               WitnessID  `json:"witness"`
	Extensions            Extensions `json:"extensions"`
}

func (*BlockHeader) MarshalJSON

func (j *BlockHeader) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*BlockHeader) MarshalJSONBuf

func (j *BlockHeader) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*BlockHeader) UnmarshalJSON

func (j *BlockHeader) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*BlockHeader) UnmarshalJSONFFLexer

func (j *BlockHeader) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type BlockSummaryID

type BlockSummaryID struct {
	ObjectID
}

func BlockSummaryIDFromObject

func BlockSummaryIDFromObject(ob GrapheneObject) BlockSummaryID

func (BlockSummaryID) Marshal

func (p BlockSummaryID) Marshal(enc *util.TypeEncoder) error

func (*BlockSummaryID) Unmarshal

func (p *BlockSummaryID) Unmarshal(dec *util.TypeDecoder) error

type BlockSummaryIDs

type BlockSummaryIDs []BlockSummaryID

func (BlockSummaryIDs) Marshal

func (p BlockSummaryIDs) Marshal(enc *util.TypeEncoder) error

type BroadcastResponse

type BroadcastResponse struct {
	ID       string            `json:"id"`
	BlockNum UInt64            `json:"block_num"`
	TrxNum   UInt32            `json:"trx_num"`
	Expired  bool              `json:"expired"`
	Trx      SignedTransaction `json:"trx"`
}

func (*BroadcastResponse) MarshalJSON

func (j *BroadcastResponse) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*BroadcastResponse) MarshalJSONBuf

func (j *BroadcastResponse) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*BroadcastResponse) UnmarshalJSON

func (j *BroadcastResponse) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*BroadcastResponse) UnmarshalJSONFFLexer

func (j *BroadcastResponse) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type BudgetRecordID

type BudgetRecordID struct {
	ObjectID
}

func BudgetRecordIDFromObject

func BudgetRecordIDFromObject(ob GrapheneObject) BudgetRecordID

func (BudgetRecordID) Marshal

func (p BudgetRecordID) Marshal(enc *util.TypeEncoder) error

func (*BudgetRecordID) Unmarshal

func (p *BudgetRecordID) Unmarshal(dec *util.TypeDecoder) error

type BudgetRecordIDs

type BudgetRecordIDs []BudgetRecordID

func (BudgetRecordIDs) Marshal

func (p BudgetRecordIDs) Marshal(enc *util.TypeEncoder) error

type Buffer

type Buffer []byte

func BufferFromString

func BufferFromString(data string) (b Buffer, err error)

func (Buffer) Bytes

func (p Buffer) Bytes() []byte

func (*Buffer) Decrypt

func (p *Buffer) Decrypt(cipherKey []byte) ([]byte, error)

Decrypt AES decrypts the buffer content

func (*Buffer) Encrypt

func (p *Buffer) Encrypt(cipherKey []byte) ([]byte, error)

Encrypt AES-encrypts the buffer content

func (*Buffer) FromString

func (p *Buffer) FromString(data string) error

func (Buffer) Length

func (p Buffer) Length() int

func (Buffer) Marshal

func (p Buffer) Marshal(enc *util.TypeEncoder) error

func (Buffer) MarshalJSON

func (p Buffer) MarshalJSON() ([]byte, error)

func (Buffer) String

func (p Buffer) String() string

func (*Buffer) Unmarshal

func (p *Buffer) Unmarshal(dec *util.TypeDecoder) error

func (*Buffer) UnmarshalJSON

func (p *Buffer) UnmarshalJSON(data []byte) error

type Buffers

type Buffers []Buffer

type BurnWorkerInitializer

type BurnWorkerInitializer struct {
}

func (BurnWorkerInitializer) Marshal

func (p BurnWorkerInitializer) Marshal(enc *util.TypeEncoder) error

type BuybackOptions

type BuybackOptions struct {
	AssetToBuy       AssetID   `json:"asset_to_buy"`
	AssetToBuyIssuer AccountID `json:"asset_to_buy_issuer"`
	Markets          AssetIDs  `json:"markets"`
}

func (BuybackOptions) Marshal

func (p BuybackOptions) Marshal(enc *util.TypeEncoder) error

func (*BuybackOptions) MarshalJSON

func (j *BuybackOptions) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*BuybackOptions) MarshalJSONBuf

func (j *BuybackOptions) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*BuybackOptions) UnmarshalJSON

func (j *BuybackOptions) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*BuybackOptions) UnmarshalJSONFFLexer

func (j *BuybackOptions) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type CCDVestingPolicy

type CCDVestingPolicy struct {
	StartClaim                  Time   `json:"start_claim"`
	CoinSecondsEarnedLastUpdate Time   `json:"coin_seconds_earned_last_update"`
	VestingSeconds              UInt32 `json:"vesting_seconds"`
	CoinSecondsEarned           UInt64 `json:"coin_seconds_earned"` //UInt128!!
}

TODO: CoinSecondsEarned is UInt128! Since golang has no 128 bit uint, check marshal and implement this later.

func (CCDVestingPolicy) Marshal

func (p CCDVestingPolicy) Marshal(enc *util.TypeEncoder) error

TODO: check order!

func (*CCDVestingPolicy) MarshalJSON

func (j *CCDVestingPolicy) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*CCDVestingPolicy) MarshalJSONBuf

func (j *CCDVestingPolicy) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*CCDVestingPolicy) UnmarshalJSON

func (j *CCDVestingPolicy) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*CCDVestingPolicy) UnmarshalJSONFFLexer

func (j *CCDVestingPolicy) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type CallOrder

type CallOrder struct {
	ID         CallOrderID `json:"id"`
	Borrower   AccountID   `json:"borrower"`
	Collateral Int64       `json:"collateral"`
	Debt       Int64       `json:"debt"`
	CallPrice  Price       `json:"call_price"`
}

func (*CallOrder) MarshalJSON

func (j *CallOrder) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*CallOrder) MarshalJSONBuf

func (j *CallOrder) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*CallOrder) UnmarshalJSON

func (j *CallOrder) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*CallOrder) UnmarshalJSONFFLexer

func (j *CallOrder) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type CallOrderID

type CallOrderID struct {
	ObjectID
}

func CallOrderIDFromObject

func CallOrderIDFromObject(ob GrapheneObject) CallOrderID

func (CallOrderID) Marshal

func (p CallOrderID) Marshal(enc *util.TypeEncoder) error

func (*CallOrderID) Unmarshal

func (p *CallOrderID) Unmarshal(dec *util.TypeDecoder) error

type CallOrderIDs

type CallOrderIDs []CallOrderID

func (CallOrderIDs) Marshal

func (p CallOrderIDs) Marshal(enc *util.TypeEncoder) error

type CallOrderUpdateExtensions

type CallOrderUpdateExtensions struct {
	TargetCollateralRatio *TargetCollRatio `json:"target_collateral_ratio,omitempty"`
}

func (CallOrderUpdateExtensions) Length

func (p CallOrderUpdateExtensions) Length() int

func (CallOrderUpdateExtensions) Marshal

func (*CallOrderUpdateExtensions) MarshalJSON

func (j *CallOrderUpdateExtensions) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*CallOrderUpdateExtensions) MarshalJSONBuf

func (j *CallOrderUpdateExtensions) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*CallOrderUpdateExtensions) UnmarshalJSON

func (j *CallOrderUpdateExtensions) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*CallOrderUpdateExtensions) UnmarshalJSONFFLexer

func (j *CallOrderUpdateExtensions) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type CallOrderUpdateExtensionsType

type CallOrderUpdateExtensionsType UInt8
const (
	CallOrderUpdateExtensionsTypeTargetRatio CallOrderUpdateExtensionsType = iota
)

type CallOrders

type CallOrders []CallOrder

type ChainPropertyID

type ChainPropertyID struct {
	ObjectID
}

func ChainPropertyIDFromObject

func ChainPropertyIDFromObject(ob GrapheneObject) ChainPropertyID

func (ChainPropertyID) Marshal

func (p ChainPropertyID) Marshal(enc *util.TypeEncoder) error

func (*ChainPropertyID) Unmarshal

func (p *ChainPropertyID) Unmarshal(dec *util.TypeDecoder) error

type ChainPropertyIDs

type ChainPropertyIDs []ChainPropertyID

func (ChainPropertyIDs) Marshal

func (p ChainPropertyIDs) Marshal(enc *util.TypeEncoder) error

type CommitteeMember

type CommitteeMember struct {
	ID                     CommitteeMemberID `json:"id"`
	CommitteeMemberAccount AccountID         `json:"committee_member_account"`
	TotalVotes             UInt64            `json:"total_votes"`
	URL                    String            `json:"url"`
	VoteID                 VoteID            `json:"vote_id"`
}

func (CommitteeMember) Marshal

func (p CommitteeMember) Marshal(enc *util.TypeEncoder) error

func (*CommitteeMember) MarshalJSON

func (j *CommitteeMember) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*CommitteeMember) MarshalJSONBuf

func (j *CommitteeMember) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*CommitteeMember) UnmarshalJSON

func (j *CommitteeMember) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*CommitteeMember) UnmarshalJSONFFLexer

func (j *CommitteeMember) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type CommitteeMemberID

type CommitteeMemberID struct {
	ObjectID
}

func CommitteeMemberIDFromObject

func CommitteeMemberIDFromObject(ob GrapheneObject) CommitteeMemberID

func (CommitteeMemberID) Marshal

func (p CommitteeMemberID) Marshal(enc *util.TypeEncoder) error

func (*CommitteeMemberID) Unmarshal

func (p *CommitteeMemberID) Unmarshal(dec *util.TypeDecoder) error

type CommitteeMemberIDs

type CommitteeMemberIDs []CommitteeMemberID

func (CommitteeMemberIDs) Marshal

func (p CommitteeMemberIDs) Marshal(enc *util.TypeEncoder) error

type CustomID

type CustomID struct {
	ObjectID
}

func CustomIDFromObject

func CustomIDFromObject(ob GrapheneObject) CustomID

func (CustomID) Marshal

func (p CustomID) Marshal(enc *util.TypeEncoder) error

func (*CustomID) Unmarshal

func (p *CustomID) Unmarshal(dec *util.TypeDecoder) error

type CustomIDs

type CustomIDs []CustomID

func (CustomIDs) Marshal

func (p CustomIDs) Marshal(enc *util.TypeEncoder) error

type DynamicGlobalProperties

type DynamicGlobalProperties struct {
	ID                             DynamicGlobalPropertyID `json:"id"`
	CurrentWitness                 WitnessID               `json:"current_witness"`
	LastBudgetTime                 Time                    `json:"last_budget_time"`
	Time                           Time                    `json:"time"`
	NextMaintenanceTime            Time                    `json:"next_maintenance_time"`
	AccountsRegisteredThisInterval int                     `json:"accounts_registered_this_interval"`
	DynamicFlags                   int                     `json:"dynamic_flags"`
	HeadBlockID                    String                  `json:"head_block_id"`
	RecentSlotsFilled              String                  `json:"recent_slots_filled"`
	HeadBlockNumber                UInt32                  `json:"head_block_number"`
	LastIrreversibleBlockNum       UInt32                  `json:"last_irreversible_block_num"`
	CurrentAslot                   int64                   `json:"current_aslot"`
	WitnessBudget                  int64                   `json:"witness_budget"`
	RecentlyMissedCount            int64                   `json:"recently_missed_count"`
}

func (*DynamicGlobalProperties) MarshalJSON

func (j *DynamicGlobalProperties) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*DynamicGlobalProperties) MarshalJSONBuf

func (j *DynamicGlobalProperties) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (DynamicGlobalProperties) RefBlockNum

func (p DynamicGlobalProperties) RefBlockNum() UInt16

func (DynamicGlobalProperties) RefBlockPrefix

func (p DynamicGlobalProperties) RefBlockPrefix() (UInt32, error)

func (*DynamicGlobalProperties) UnmarshalJSON

func (j *DynamicGlobalProperties) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*DynamicGlobalProperties) UnmarshalJSONFFLexer

func (j *DynamicGlobalProperties) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type DynamicGlobalPropertyID

type DynamicGlobalPropertyID struct {
	ObjectID
}

func DynamicGlobalPropertyIDFromObject

func DynamicGlobalPropertyIDFromObject(ob GrapheneObject) DynamicGlobalPropertyID

func (DynamicGlobalPropertyID) Marshal

func (*DynamicGlobalPropertyID) Unmarshal

func (p *DynamicGlobalPropertyID) Unmarshal(dec *util.TypeDecoder) error

type DynamicGlobalPropertyIDs

type DynamicGlobalPropertyIDs []DynamicGlobalPropertyID

func (DynamicGlobalPropertyIDs) Marshal

type Extensions

type Extensions struct {
	// contains filtered or unexported fields
}

func (Extensions) Marshal

func (p Extensions) Marshal(enc *util.TypeEncoder) error

TODO refactor and test

func (Extensions) MarshalJSON

func (p Extensions) MarshalJSON() ([]byte, error)

func (*Extensions) UnmarshalJSON

func (p *Extensions) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type FeeSchedule

type FeeSchedule struct {
	Scale      UInt32                `json:"scale"`
	Parameters FeeScheduleParameters `json:"parameters"`
}

func (FeeSchedule) Marshal

func (p FeeSchedule) Marshal(enc *util.TypeEncoder) error

type FeeScheduleParameter

type FeeScheduleParameter struct {
	OperationType OperationType
	Params        M
}

func (FeeScheduleParameter) Marshal

func (p FeeScheduleParameter) Marshal(enc *util.TypeEncoder) error

func (FeeScheduleParameter) MarshalJSON

func (p FeeScheduleParameter) MarshalJSON() ([]byte, error)

func (*FeeScheduleParameter) UnmarshalJSON

func (p *FeeScheduleParameter) UnmarshalJSON(data []byte) error

type FeeScheduleParameters

type FeeScheduleParameters []FeeScheduleParameter

func (FeeScheduleParameters) Marshal

func (p FeeScheduleParameters) Marshal(enc *util.TypeEncoder) error

type FixedBuffer

type FixedBuffer struct {
	Buffer
}

func (FixedBuffer) Marshal

func (p FixedBuffer) Marshal(enc *util.TypeEncoder) error

type Float32

type Float32 float32

func (Float32) Marshal

func (num Float32) Marshal(enc *util.TypeEncoder) error

func (*Float32) UnmarshalJSON

func (num *Float32) UnmarshalJSON(data []byte) error

type Float64

type Float64 float64

func (Float64) Marshal

func (num Float64) Marshal(enc *util.TypeEncoder) error

func (*Float64) UnmarshalJSON

func (num *Float64) UnmarshalJSON(data []byte) error

type ForceSettlementID

type ForceSettlementID struct {
	ObjectID
}

func ForceSettlementIDFromObject

func ForceSettlementIDFromObject(ob GrapheneObject) ForceSettlementID

func (ForceSettlementID) Marshal

func (p ForceSettlementID) Marshal(enc *util.TypeEncoder) error

func (*ForceSettlementID) Unmarshal

func (p *ForceSettlementID) Unmarshal(dec *util.TypeDecoder) error

type ForceSettlementIDs

type ForceSettlementIDs []ForceSettlementID

func (ForceSettlementIDs) Marshal

func (p ForceSettlementIDs) Marshal(enc *util.TypeEncoder) error

type ForceSettlementOrder

type ForceSettlementOrder struct {
	ID             ForceSettlementID `json:"id"`
	Owner          AccountID         `json:"owner"`
	SettlementDate Time              `json:"settlement_date"`
	Balance        AssetAmount       `json:"balance"`
}

func (*ForceSettlementOrder) MarshalJSON

func (j *ForceSettlementOrder) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*ForceSettlementOrder) MarshalJSONBuf

func (j *ForceSettlementOrder) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*ForceSettlementOrder) UnmarshalJSON

func (j *ForceSettlementOrder) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*ForceSettlementOrder) UnmarshalJSONFFLexer

func (j *ForceSettlementOrder) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type ForceSettlementOrders

type ForceSettlementOrders []ForceSettlementOrder

type FullAccountInfo

type FullAccountInfo struct {
	ID          AccountID
	AccountInfo AccountInfo
}

func (FullAccountInfo) MarshalJSON

func (p FullAccountInfo) MarshalJSON() ([]byte, error)

func (*FullAccountInfo) UnmarshalJSON

func (p *FullAccountInfo) UnmarshalJSON(data []byte) error

type FullAccountInfos

type FullAccountInfos []FullAccountInfo

type GetOpFunc

type GetOpFunc func() Operation

type GlobalPropertyID

type GlobalPropertyID struct {
	ObjectID
}

func GlobalPropertyIDFromObject

func GlobalPropertyIDFromObject(ob GrapheneObject) GlobalPropertyID

func (GlobalPropertyID) Marshal

func (p GlobalPropertyID) Marshal(enc *util.TypeEncoder) error

func (*GlobalPropertyID) Unmarshal

func (p *GlobalPropertyID) Unmarshal(dec *util.TypeDecoder) error

type GlobalPropertyIDs

type GlobalPropertyIDs []GlobalPropertyID

func (GlobalPropertyIDs) Marshal

func (p GlobalPropertyIDs) Marshal(enc *util.TypeEncoder) error

type GrapheneObject

type GrapheneObject interface {
	util.TypeMarshaler
	util.TypeUnmarshaler
	UnmarshalJSON(s []byte) error
	MarshalJSON() ([]byte, error)
	ID() string
	String() string
	ObjectType() ObjectType
	SpaceType() SpaceType
	Instance() UInt64
	Equals(id GrapheneObject) bool
	Valid() bool
}

func NewAccountBalanceID

func NewAccountBalanceID(id string) GrapheneObject

NewAccountBalanceID creates an new AccountBalanceID object

func NewAccountID

func NewAccountID(id string) GrapheneObject

NewAccountID creates an new AccountID object

func NewAccountStatisticsID

func NewAccountStatisticsID(id string) GrapheneObject

NewAccountStatisticsID creates an new AccountStatisticsID object

func NewAccountTransactionHistoryID

func NewAccountTransactionHistoryID(id string) GrapheneObject

NewAccountTransactionHistoryID creates an new AccountTransactionHistoryID object

func NewAssetBitAssetDataID

func NewAssetBitAssetDataID(id string) GrapheneObject

NewAssetBitAssetDataID creates an new AssetBitAssetDataID object

func NewAssetDynamicDataID

func NewAssetDynamicDataID(id string) GrapheneObject

NewAssetDynamicDataID creates an new AssetDynamicDataID object

func NewAssetID

func NewAssetID(id string) GrapheneObject

NewAssetID creates an new AssetID object

func NewBalanceID

func NewBalanceID(id string) GrapheneObject

NewBalanceID creates an new BalanceID object

func NewBlindedBalanceID

func NewBlindedBalanceID(id string) GrapheneObject

NewBlindedBalanceID creates an new BlindedBalanceID object

func NewBlockSummaryID

func NewBlockSummaryID(id string) GrapheneObject

NewBlockSummaryID creates an new BlockSummaryID object

func NewBudgetRecordID

func NewBudgetRecordID(id string) GrapheneObject

NewBudgetRecordID creates an new BudgetRecordID object

func NewCallOrderID

func NewCallOrderID(id string) GrapheneObject

NewCallOrderID creates an new CallOrderID object

func NewChainPropertyID

func NewChainPropertyID(id string) GrapheneObject

NewChainPropertyID creates an new ChainPropertyID object

func NewCommitteeMemberID

func NewCommitteeMemberID(id string) GrapheneObject

NewCommitteeMemberID creates an new CommitteeMemberID object

func NewCustomID

func NewCustomID(id string) GrapheneObject

NewCustomID creates an new CustomID object

func NewDynamicGlobalPropertyID

func NewDynamicGlobalPropertyID(id string) GrapheneObject

NewDynamicGlobalPropertyID creates an new DynamicGlobalPropertyID object

func NewForceSettlementID

func NewForceSettlementID(id string) GrapheneObject

NewForceSettlementID creates an new ForceSettlementID object

func NewGlobalPropertyID

func NewGlobalPropertyID(id string) GrapheneObject

NewGlobalPropertyID creates an new GlobalPropertyID object

func NewLimitOrderID

func NewLimitOrderID(id string) GrapheneObject

NewLimitOrderID creates an new LimitOrderID object

func NewObjectID

func NewObjectID(id string) GrapheneObject

NewObjectID creates an new ObjectID object

func NewOperationHistoryID

func NewOperationHistoryID(id string) GrapheneObject

NewOperationHistoryID creates an new OperationHistoryID object

func NewProposalID

func NewProposalID(id string) GrapheneObject

NewProposalID creates an new ProposalID object

func NewSpecialAuthorityID

func NewSpecialAuthorityID(id string) GrapheneObject

NewSpecialAuthorityID creates an new SpecialAuthorityID object

func NewTransactionID

func NewTransactionID(id string) GrapheneObject

NewTransactionID creates an new TransactionID object

func NewVestingBalanceID

func NewVestingBalanceID(id string) GrapheneObject

NewVestingBalanceID creates an new VestingBalanceID object

func NewWithdrawPermissionID

func NewWithdrawPermissionID(id string) GrapheneObject

NewWithdrawPermissionID creates an new WithdrawPermissionID object

func NewWitnessID

func NewWitnessID(id string) GrapheneObject

NewWitnessID creates an new WitnessID object

func NewWitnessScheduleID

func NewWitnessScheduleID(id string) GrapheneObject

NewWitnessScheduleID creates an new WitnessScheduleID object

func NewWorkerID

func NewWorkerID(id string) GrapheneObject

NewWorkerID creates an new WorkerID object

type GrapheneObjects

type GrapheneObjects []GrapheneObject

func (GrapheneObjects) String

func (p GrapheneObjects) String() string

func (GrapheneObjects) ToStrings

func (p GrapheneObjects) ToStrings() []string

type Info

type Info struct {
	ActiveCommitteeMembers CommitteeMemberIDs `json:"active_committee_members"`
	ActiveWitnesses        WitnessIDs         `json:"active_witnesses"`
	ChainID                String             `json:"chain_id"`
	HeadBlockAge           String             `json:"head_block_age"`
	HeadBlockID            Buffer             `json:"head_block_id"`
	HeadBlockNum           UInt64             `json:"head_block_num"`
	NextMaintenanceTime    String             `json:"next_maintenance_time"`
	Participation          String             `json:"participation"`
}

type Int16

type Int16 int16

func (Int16) Marshal

func (num Int16) Marshal(enc *util.TypeEncoder) error

func (*Int16) UnmarshalJSON

func (num *Int16) UnmarshalJSON(data []byte) error

type Int32

type Int32 int32

func (Int32) Marshal

func (num Int32) Marshal(enc *util.TypeEncoder) error

func (*Int32) UnmarshalJSON

func (num *Int32) UnmarshalJSON(data []byte) error

type Int64

type Int64 int64

func (Int64) Marshal

func (num Int64) Marshal(enc *util.TypeEncoder) error

func (*Int64) UnmarshalJSON

func (num *Int64) UnmarshalJSON(data []byte) error

type Int8

type Int8 int8

func (Int8) Marshal

func (num Int8) Marshal(enc *util.TypeEncoder) error

func (*Int8) UnmarshalJSON

func (num *Int8) UnmarshalJSON(data []byte) error

type KeyAuthsMap

type KeyAuthsMap map[*PublicKey]UInt16

func (KeyAuthsMap) Marshal

func (p KeyAuthsMap) Marshal(enc *util.TypeEncoder) error

func (KeyAuthsMap) MarshalJSON

func (p KeyAuthsMap) MarshalJSON() ([]byte, error)

func (*KeyAuthsMap) UnmarshalJSON

func (p *KeyAuthsMap) UnmarshalJSON(data []byte) error

type LimitOrder

type LimitOrder struct {
	ID          LimitOrderID `json:"id"`
	Seller      AccountID    `json:"seller"`
	Expiration  Time         `json:"expiration"`
	ForSale     UInt64       `json:"for_sale"`
	DeferredFee UInt64       `json:"deferred_fee"`
	SellPrice   Price        `json:"sell_price"`
}

func (*LimitOrder) MarshalJSON

func (j *LimitOrder) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*LimitOrder) MarshalJSONBuf

func (j *LimitOrder) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*LimitOrder) UnmarshalJSON

func (j *LimitOrder) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*LimitOrder) UnmarshalJSONFFLexer

func (j *LimitOrder) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type LimitOrderID

type LimitOrderID struct {
	ObjectID
}

func LimitOrderIDFromObject

func LimitOrderIDFromObject(ob GrapheneObject) LimitOrderID

func (LimitOrderID) Marshal

func (p LimitOrderID) Marshal(enc *util.TypeEncoder) error

func (*LimitOrderID) Unmarshal

func (p *LimitOrderID) Unmarshal(dec *util.TypeDecoder) error

type LimitOrderIDs

type LimitOrderIDs []LimitOrderID

func (LimitOrderIDs) Marshal

func (p LimitOrderIDs) Marshal(enc *util.TypeEncoder) error

type LimitOrders

type LimitOrders []LimitOrder

type LinearVestingPolicy

type LinearVestingPolicy struct {
	BeginTimestamp         Time   `json:"begin_timestamp"`
	VestingCliffSeconds    UInt32 `json:"vesting_cliff_seconds"`
	VestingDurationSeconds UInt32 `json:"vesting_duration_seconds"`
}

func (LinearVestingPolicy) Marshal

func (p LinearVestingPolicy) Marshal(enc *util.TypeEncoder) error

func (*LinearVestingPolicy) MarshalJSON

func (j *LinearVestingPolicy) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*LinearVestingPolicy) MarshalJSONBuf

func (j *LinearVestingPolicy) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*LinearVestingPolicy) UnmarshalJSON

func (j *LinearVestingPolicy) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*LinearVestingPolicy) UnmarshalJSONFFLexer

func (j *LinearVestingPolicy) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type M

type M map[string]interface{}

type MarketTicker

type MarketTicker struct {
	Time          Time    `json:"time"`
	Base          String  `json:"base"`
	Quote         String  `json:"quote"`
	Latest        Float64 `json:"latest"`
	LowestAsk     Float64 `json:"lowest_ask"`
	HighestBid    Float64 `json:"highest_bid"`
	PercentChange Float64 `json:"percent_change"`
	BaseVolume    Float64 `json:"base_volume"`
	QuoteVolume   Float64 `json:"quote_volume"`
}

type MarketTrade

type MarketTrade struct {
	DateTime Time    `json:"date"`
	Price    Float64 `json:"price"`
	Amount   Float64 `json:"amount"`
	Value    Float64 `json:"value"`
}

func (*MarketTrade) MarshalJSON

func (j *MarketTrade) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*MarketTrade) MarshalJSONBuf

func (j *MarketTrade) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*MarketTrade) UnmarshalJSON

func (j *MarketTrade) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*MarketTrade) UnmarshalJSONFFLexer

func (j *MarketTrade) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type MarketTrades

type MarketTrades []MarketTrade

type Memo

type Memo struct {
	From    PublicKey `json:"from"`
	To      PublicKey `json:"to"`
	Nonce   UInt64    `json:"nonce"`
	Message Buffer    `json:"message"`
}

func (Memo) Decrypt

func (p Memo) Decrypt(priv *PrivateKey) (string, error)

Decrypt calculates a shared secret by the receivers private key and the senders public key, then decrypts the given memo message.

func (*Memo) Encrypt

func (p *Memo) Encrypt(priv *PrivateKey, msg string) error

Encrypt calculates a shared secret by the senders private key and the recipients public key, then encrypts the given memo message.

func (Memo) Marshal

func (p Memo) Marshal(enc *util.TypeEncoder) error

func (*Memo) MarshalJSON

func (j *Memo) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*Memo) MarshalJSONBuf

func (j *Memo) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*Memo) UnmarshalJSON

func (j *Memo) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Memo) UnmarshalJSONFFLexer

func (j *Memo) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type NoSpecialAuthority

type NoSpecialAuthority struct{}

func (*NoSpecialAuthority) MarshalJSON

func (j *NoSpecialAuthority) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*NoSpecialAuthority) MarshalJSONBuf

func (j *NoSpecialAuthority) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*NoSpecialAuthority) UnmarshalJSON

func (j *NoSpecialAuthority) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*NoSpecialAuthority) UnmarshalJSONFFLexer

func (j *NoSpecialAuthority) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type NullExtension

type NullExtension struct{}

func (NullExtension) Marshal

func (p NullExtension) Marshal(enc *util.TypeEncoder) error

func (*NullExtension) MarshalJSON

func (j *NullExtension) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*NullExtension) MarshalJSONBuf

func (j *NullExtension) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*NullExtension) UnmarshalJSON

func (j *NullExtension) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*NullExtension) UnmarshalJSONFFLexer

func (j *NullExtension) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type ObjectID

type ObjectID struct {
	// contains filtered or unexported fields
}

func ObjectIDFromObject

func ObjectIDFromObject(ob GrapheneObject) ObjectID

func (ObjectID) Equals

func (p ObjectID) Equals(o GrapheneObject) bool

func (*ObjectID) FromObject

func (p *ObjectID) FromObject(ob GrapheneObject) error

func (*ObjectID) FromRawData

func (p *ObjectID) FromRawData(in interface{}) error

func (ObjectID) ID

func (p ObjectID) ID() string

ID returns the objects string representation

func (ObjectID) Instance

func (p ObjectID) Instance() UInt64

func (ObjectID) Marshal

func (p ObjectID) Marshal(enc *util.TypeEncoder) error

func (ObjectID) MarshalJSON

func (p ObjectID) MarshalJSON() ([]byte, error)

func (*ObjectID) MustFromObject

func (p *ObjectID) MustFromObject(ob GrapheneObject)

func (ObjectID) ObjectType

func (p ObjectID) ObjectType() ObjectType

ObjectType returns the objects ObjectType

func (*ObjectID) Parse

func (p *ObjectID) Parse(in string) error

func (ObjectID) SpaceType

func (p ObjectID) SpaceType() SpaceType

SpaceType returns the objects SpaceType

func (ObjectID) String

func (p ObjectID) String() string

String, ObjectID implements Stringer

func (*ObjectID) Unmarshal

func (p *ObjectID) Unmarshal(dec *util.TypeDecoder) error

func (*ObjectID) UnmarshalJSON

func (p *ObjectID) UnmarshalJSON(s []byte) error

func (ObjectID) Valid

func (p ObjectID) Valid() bool

type ObjectIDs

type ObjectIDs []ObjectID

func (ObjectIDs) Marshal

func (p ObjectIDs) Marshal(enc *util.TypeEncoder) error

type ObjectType

type ObjectType UInt8
const (
	ObjectTypeBase ObjectType = iota + 1
	ObjectTypeAccount
	ObjectTypeAsset
	ObjectTypeForceSettlement
	ObjectTypeCommitteeMember
	ObjectTypeWitness
	ObjectTypeLimitOrder
	ObjectTypeCallOrder
	ObjectTypeCustom
	ObjectTypeProposal
	ObjectTypeOperationHistory
	ObjectTypeWithdrawPermission
	ObjectTypeVestingBalance
	ObjectTypeWorker
	ObjectTypeBalance
)

for SpaceTypeProtocol

const (
	ObjectTypeGlobalProperty ObjectType = iota + 1
	ObjectTypeDynamicGlobalProperty
	ObjectTypeAssetDynamicData
	ObjectTypeAssetBitAssetData
	ObjectTypeAccountBalance
	ObjectTypeAccountStatistics
	ObjectTypeTransaction
	ObjectTypeBlockSummary
	ObjectTypeAccountTransactionHistory
	ObjectTypeBlindedBalance
	ObjectTypeChainProperty
	ObjectTypeWitnessSchedule
	ObjectTypeBudgetRecord
	ObjectTypeSpecialAuthority
)

for SpaceTypeImplementation

func (ObjectType) String

func (i ObjectType) String() string

type Operation

type Operation interface {
	util.TypeMarshaler
	SetFee(fee AssetAmount)
	GetFee() AssetAmount
	Type() OperationType
	MarshalFeeScheduleParams(M, *util.TypeEncoder) error
}

type OperationEnvelope

type OperationEnvelope struct {
	Type      OperationType
	Operation Operation
}

func (OperationEnvelope) Marshal

func (p OperationEnvelope) Marshal(enc *util.TypeEncoder) error

func (OperationEnvelope) MarshalJSON

func (p OperationEnvelope) MarshalJSON() ([]byte, error)

func (*OperationEnvelope) UnmarshalJSON

func (p *OperationEnvelope) UnmarshalJSON(data []byte) error

type OperationEnvelopeHolder

type OperationEnvelopeHolder struct {
	Op OperationEnvelope `json:"op"`
}

type OperationEnvelopeHolders

type OperationEnvelopeHolders []OperationEnvelopeHolder

func (OperationEnvelopeHolders) Marshal

type OperationFee

type OperationFee struct {
	Fee *AssetAmount `json:"fee,omitempty"`
}

func (OperationFee) GetFee

func (p OperationFee) GetFee() AssetAmount

func (*OperationFee) MarshalFeeScheduleParams

func (p *OperationFee) MarshalFeeScheduleParams(params M, enc *util.TypeEncoder) error

func (*OperationFee) SetFee

func (p *OperationFee) SetFee(fee AssetAmount)

type OperationHistories

type OperationHistories []OperationHistory

type OperationHistory

type OperationHistory struct {
	ID         OperationHistoryID `json:"id"`
	BlockNum   UInt32             `json:"block_num"`
	TrxInBlock UInt16             `json:"trx_in_block"`
	OpInTrx    UInt16             `json:"op_in_trx"`
	VirtualOp  UInt16             `json:"virtual_op"`
	Operation  OperationEnvelope  `json:"op"`
	Result     OperationResult    `json:"result"`
}

func (*OperationHistory) MarshalJSON

func (j *OperationHistory) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*OperationHistory) MarshalJSONBuf

func (j *OperationHistory) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*OperationHistory) UnmarshalJSON

func (j *OperationHistory) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*OperationHistory) UnmarshalJSONFFLexer

func (j *OperationHistory) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type OperationHistoryID

type OperationHistoryID struct {
	ObjectID
}

func OperationHistoryIDFromObject

func OperationHistoryIDFromObject(ob GrapheneObject) OperationHistoryID

func (OperationHistoryID) Marshal

func (p OperationHistoryID) Marshal(enc *util.TypeEncoder) error

func (*OperationHistoryID) Unmarshal

func (p *OperationHistoryID) Unmarshal(dec *util.TypeDecoder) error

type OperationHistoryIDs

type OperationHistoryIDs []OperationHistoryID

func (OperationHistoryIDs) Marshal

func (p OperationHistoryIDs) Marshal(enc *util.TypeEncoder) error

type OperationRelativeHistories

type OperationRelativeHistories []OperationRelativeHistory

type OperationRelativeHistory

type OperationRelativeHistory struct {
	Memo        Buffer           `json:"memo"`
	Description String           `json:"description"`
	Op          OperationHistory `json:"op"`
}

func (*OperationRelativeHistory) MarshalJSON

func (j *OperationRelativeHistory) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*OperationRelativeHistory) MarshalJSONBuf

func (j *OperationRelativeHistory) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*OperationRelativeHistory) UnmarshalJSON

func (j *OperationRelativeHistory) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*OperationRelativeHistory) UnmarshalJSONFFLexer

func (j *OperationRelativeHistory) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type OperationResult

type OperationResult interface {
}

type OperationType

type OperationType UInt8
const (
	OperationTypeTransfer                              OperationType = iota //0
	OperationTypeLimitOrderCreate                                           //1
	OperationTypeLimitOrderCancel                                           //2
	OperationTypeCallOrderUpdate                                            //3
	OperationTypeFillOrder                                                  //4
	OperationTypeAccountCreate                                              //5
	OperationTypeAccountUpdate                                              //6
	OperationTypeAccountWhitelist                                           //7
	OperationTypeAccountUpgrade                                             //8
	OperationTypeAccountTransfer                                            //9
	OperationTypeAssetCreate                                                //10
	OperationTypeAssetUpdate                                                //11
	OperationTypeAssetUpdateBitasset                                        //12
	OperationTypeAssetUpdateFeedProducers                                   //13
	OperationTypeAssetIssue                                                 //14
	OperationTypeAssetReserve                                               //15
	OperationTypeAssetFundFeePool                                           //16
	OperationTypeAssetSettle                                                //17
	OperationTypeAssetGlobalSettle                                          //18
	OperationTypeAssetPublishFeed                                           //19
	OperationTypeWitnessCreate                                              //20
	OperationTypeWitnessUpdate                                              //21
	OperationTypeProposalCreate                                             //22
	OperationTypeProposalUpdate                                             //23
	OperationTypeProposalDelete                                             //24
	OperationTypeWithdrawPermissionCreate                                   //25
	OperationTypeWithdrawPermissionUpdate                                   //26
	OperationTypeWithdrawPermissionClaim                                    //27
	OperationTypeWithdrawPermissionDelete                                   //28
	OperationTypeCommitteeMemberCreate                                      //29
	OperationTypeCommitteeMemberUpdate                                      //30
	OperationTypeCommitteeMemberUpdateGlobalParameters                      //31
	OperationTypeVestingBalanceCreate                                       //32
	OperationTypeVestingBalanceWithdraw                                     //33
	OperationTypeWorkerCreate                                               //34
	OperationTypeCustom                                                     //35
	OperationTypeAssert                                                     //36
	OperationTypeBalanceClaim                                               //37
	OperationTypeOverrideTransfer                                           //38
	OperationTypeTransferToBlind                                            //39
	OperationTypeBlindTransfer                                              ///40
	OperationTypeTransferFromBlind                                          //41
	OperationTypeAssetSettleCancel                                          ///42
	OperationTypeAssetClaimFees                                             //43
	OperationTypeFBADistribute                                              ///44
	OperationTypeBidCollateral                                              //45
	OperationTypeExecuteBid                                                 ///46
)

func (OperationType) OperationName

func (p OperationType) OperationName() string

func (OperationType) String

func (i OperationType) String() string

type Operations

type Operations []Operation

func (Operations) ApplyFees

func (p Operations) ApplyFees(fees AssetAmounts) error

func (Operations) CombinedFees

func (p Operations) CombinedFees() AssetAmounts

func (Operations) Envelopes

func (p Operations) Envelopes() []OperationEnvelope

func (Operations) Marshal

func (p Operations) Marshal(enc *util.TypeEncoder) error

func (Operations) MarshalJSON

func (p Operations) MarshalJSON() ([]byte, error)

func (*Operations) UnmarshalJSON

func (p *Operations) UnmarshalJSON(data []byte) error

type Order

type Order struct {
	Base  Float64 `json:"base"`
	Quote Float64 `json:"quote"`
	Price Float64 `json:"price"`
}

func (*Order) MarshalJSON

func (j *Order) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*Order) MarshalJSONBuf

func (j *Order) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*Order) UnmarshalJSON

func (j *Order) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Order) UnmarshalJSONFFLexer

func (j *Order) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type OrderBook

type OrderBook struct {
	Base  AssetID `json:"base"`
	Asks  []Order `json:"asks"`
	Quote AssetID `json:"quote"`
	Bids  []Order `json:"bids"`
}

func (*OrderBook) MarshalJSON

func (j *OrderBook) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*OrderBook) MarshalJSONBuf

func (j *OrderBook) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*OrderBook) UnmarshalJSON

func (j *OrderBook) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*OrderBook) UnmarshalJSONFFLexer

func (j *OrderBook) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type OwnerSpecialAuthority

type OwnerSpecialAuthority struct {
	SpecialAuthority
}

func (OwnerSpecialAuthority) Marshal

func (p OwnerSpecialAuthority) Marshal(enc *util.TypeEncoder) error

type Price

type Price struct {
	Base  AssetAmount `json:"base"`
	Quote AssetAmount `json:"quote"`
}

func (Price) Marshal

func (p Price) Marshal(enc *util.TypeEncoder) error

func (*Price) MarshalJSON

func (j *Price) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*Price) MarshalJSONBuf

func (j *Price) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (Price) Rate

func (p Price) Rate(precBase, precQuote float64) Rate

func (*Price) UnmarshalJSON

func (j *Price) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Price) UnmarshalJSONFFLexer

func (j *Price) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

func (Price) Valid

func (p Price) Valid() bool

type PriceFeed

type PriceFeed struct {
	MaintenanceCollateralRatio UInt16 `json:"maintenance_collateral_ratio"`
	MaximumShortSqueezeRatio   UInt16 `json:"maximum_short_squeeze_ratio"`
	SettlementPrice            Price  `json:"settlement_price"`
	CoreExchangeRate           Price  `json:"core_exchange_rate"`
}

func (PriceFeed) Marshal

func (p PriceFeed) Marshal(enc *util.TypeEncoder) error

func (*PriceFeed) MarshalJSON

func (j *PriceFeed) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*PriceFeed) MarshalJSONBuf

func (j *PriceFeed) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*PriceFeed) UnmarshalJSON

func (j *PriceFeed) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*PriceFeed) UnmarshalJSONFFLexer

func (j *PriceFeed) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type PrivateKey

type PrivateKey struct {
	// contains filtered or unexported fields
}

func NewPrivateKeyFromWif

func NewPrivateKeyFromWif(wifPrivateKey string) (*PrivateKey, error)

func (PrivateKey) Bytes

func (p PrivateKey) Bytes() []byte

func (PrivateKey) ECPrivateKey

func (p PrivateKey) ECPrivateKey() *btcec.PrivateKey

func (PrivateKey) Marshal

func (p PrivateKey) Marshal(enc *util.TypeEncoder) error

func (PrivateKey) PublicKey

func (p PrivateKey) PublicKey() *PublicKey

func (PrivateKey) SharedSecret

func (p PrivateKey) SharedSecret(pub *PublicKey, skLen, macLen int) (sk []byte, err error)

func (PrivateKey) SignCompact

func (p PrivateKey) SignCompact(hash []byte) (sig []byte, err error)

func (PrivateKey) ToECDSA

func (p PrivateKey) ToECDSA() *ecdsa.PrivateKey

func (PrivateKey) ToHex

func (p PrivateKey) ToHex() string

func (PrivateKey) ToWIF

func (p PrivateKey) ToWIF() string

func (*PrivateKey) Unmarshal

func (p *PrivateKey) Unmarshal(dec *util.TypeDecoder) error

type PrivateKeys

type PrivateKeys []PrivateKey

type ProposalID

type ProposalID struct {
	ObjectID
}

func ProposalIDFromObject

func ProposalIDFromObject(ob GrapheneObject) ProposalID

func (ProposalID) Marshal

func (p ProposalID) Marshal(enc *util.TypeEncoder) error

func (*ProposalID) Unmarshal

func (p *ProposalID) Unmarshal(dec *util.TypeDecoder) error

type ProposalIDs

type ProposalIDs []ProposalID

func (ProposalIDs) Marshal

func (p ProposalIDs) Marshal(enc *util.TypeEncoder) error

type PublicKey

type PublicKey struct {
	// contains filtered or unexported fields
}

func NewPublicKey

func NewPublicKey(pub *btcec.PublicKey) (*PublicKey, error)

func NewPublicKeyFromString

func NewPublicKeyFromString(key string) (*PublicKey, error)

NewPublicKeyFromString creates a new PublicKey from string e.g.("BTS6K35Bajw29N4fjP4XADHtJ7bEj2xHJ8CoY2P2s1igXTB5oMBhR")

func (PublicKey) Bytes

func (p PublicKey) Bytes() []byte

func (PublicKey) Equal

func (p PublicKey) Equal(pub *PublicKey) bool

func (PublicKey) Marshal

func (p PublicKey) Marshal(enc *util.TypeEncoder) error

func (PublicKey) MarshalJSON

func (p PublicKey) MarshalJSON() ([]byte, error)

func (PublicKey) MaxSharedKeyLength

func (p PublicKey) MaxSharedKeyLength() int

MaxSharedKeyLength returns the maximum length of the shared key the public key can produce.

func (PublicKey) String

func (p PublicKey) String() string

func (*PublicKey) ToAddress

func (p *PublicKey) ToAddress() (a *Address, err error)

func (PublicKey) ToECDSA

func (p PublicKey) ToECDSA() *ecdsa.PublicKey

func (*PublicKey) UnmarshalJSON

func (p *PublicKey) UnmarshalJSON(data []byte) error

type PublicKeys

type PublicKeys []PublicKey

func (PublicKeys) Marshal

func (p PublicKeys) Marshal(enc *util.TypeEncoder) error

type Rate

type Rate float64

func (Rate) Inverse

func (p Rate) Inverse() Rate

func (Rate) Value

func (p Rate) Value() float64

type RefundWorkerInitializer

type RefundWorkerInitializer struct {
}

func (RefundWorkerInitializer) Marshal

type Signatures

type Signatures []Buffer

func (Signatures) Marshal

func (p Signatures) Marshal(enc *util.TypeEncoder) error

func (*Signatures) Reset

func (p *Signatures) Reset()

type SignedTransaction

type SignedTransaction struct {
	Transaction
	Signatures Signatures `json:"signatures"`
}

func NewSignedTransaction

func NewSignedTransaction() *SignedTransaction

NewSignedTransaction creates an new SignedTransaction

func NewSignedTransactionWithBlockData

func NewSignedTransactionWithBlockData(props *DynamicGlobalProperties) (*SignedTransaction, error)

NewSignedTransactionWithBlockData creates a new SignedTransaction and initializes relevant Blockdata fields and expiration.

func (SignedTransaction) Digest

func (tx SignedTransaction) Digest(chain *config.ChainConfig) ([]byte, error)

Digest calculates ths sha256 hash of the transaction.

func (SignedTransaction) Marshal

func (p SignedTransaction) Marshal(enc *util.TypeEncoder) error

func (*SignedTransaction) MarshalJSON

func (j *SignedTransaction) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*SignedTransaction) MarshalJSONBuf

func (j *SignedTransaction) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (SignedTransaction) SerializeTrx

func (p SignedTransaction) SerializeTrx() ([]byte, error)

SerializeTrx serializes the transaction wihout signatures.

func (SignedTransaction) ToHex

func (p SignedTransaction) ToHex() (string, error)

ToHex returns th hex representation of the underlying transaction + signatures.

func (*SignedTransaction) UnmarshalJSON

func (j *SignedTransaction) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*SignedTransaction) UnmarshalJSONFFLexer

func (j *SignedTransaction) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type SignedTransactionWithTransactionId

type SignedTransactionWithTransactionId struct {
	TransactionId     string
	SignedTransaction SignedTransaction
}

func (SignedTransactionWithTransactionId) Marshal

func (SignedTransactionWithTransactionId) MarshalJSON

func (p SignedTransactionWithTransactionId) MarshalJSON() ([]byte, error)

func (*SignedTransactionWithTransactionId) UnmarshalJSON

func (p *SignedTransactionWithTransactionId) UnmarshalJSON(data []byte) error

type SignedTransactions

type SignedTransactions []SignedTransaction

type SpaceType

type SpaceType UInt8
const (
	SpaceTypeProtocol SpaceType = iota + 1
	SpaceTypeImplementation
)

func (SpaceType) String

func (i SpaceType) String() string

type SpecialAuthority

type SpecialAuthority struct {
	Type SpecialAuthorityType
	Auth interface{}
}

func (SpecialAuthority) Marshal

func (p SpecialAuthority) Marshal(enc *util.TypeEncoder) error

func (SpecialAuthority) MarshalJSON

func (p SpecialAuthority) MarshalJSON() ([]byte, error)

func (*SpecialAuthority) UnmarshalJSON

func (p *SpecialAuthority) UnmarshalJSON(data []byte) error

type SpecialAuthorityID

type SpecialAuthorityID struct {
	ObjectID
}

func SpecialAuthorityIDFromObject

func SpecialAuthorityIDFromObject(ob GrapheneObject) SpecialAuthorityID

func (SpecialAuthorityID) Marshal

func (p SpecialAuthorityID) Marshal(enc *util.TypeEncoder) error

func (*SpecialAuthorityID) Unmarshal

func (p *SpecialAuthorityID) Unmarshal(dec *util.TypeDecoder) error

type SpecialAuthorityIDs

type SpecialAuthorityIDs []SpecialAuthorityID

func (SpecialAuthorityIDs) Marshal

func (p SpecialAuthorityIDs) Marshal(enc *util.TypeEncoder) error

type SpecialAuthorityType

type SpecialAuthorityType UInt8
const (
	SpecialAuthorityTypeNoSpecial SpecialAuthorityType = iota
	SpecialAuthorityTypeTopHolders
)

type StealthConfirmation

type StealthConfirmation struct {
	OneTimeKey    PublicKey  `json:"one_time_key"`
	To            *PublicKey `json:"to,omitempty"`
	EncryptedMemo Buffer     `json:"encrypted_memo"`
}

func (StealthConfirmation) Marshal

func (p StealthConfirmation) Marshal(enc *util.TypeEncoder) error

func (*StealthConfirmation) MarshalJSON

func (j *StealthConfirmation) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*StealthConfirmation) MarshalJSONBuf

func (j *StealthConfirmation) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*StealthConfirmation) UnmarshalJSON

func (j *StealthConfirmation) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*StealthConfirmation) UnmarshalJSONFFLexer

func (j *StealthConfirmation) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type String

type String struct {
	// contains filtered or unexported fields
}

func (String) Marshal

func (p String) Marshal(enc *util.TypeEncoder) error

func (String) MarshalJSON

func (p String) MarshalJSON() ([]byte, error)

func (String) String

func (p String) String() string

func (*String) Unmarshal

func (p *String) Unmarshal(dec *util.TypeDecoder) error

func (*String) UnmarshalJSON

func (p *String) UnmarshalJSON(data []byte) error

type TargetCollRatio

type TargetCollRatio UInt16

func (TargetCollRatio) Marshal

func (p TargetCollRatio) Marshal(enc *util.TypeEncoder) error

type Time

type Time struct {
	time.Time
}

func (Time) Add

func (t Time) Add(dur time.Duration) Time

func (*Time) FromTime

func (t *Time) FromTime(tm time.Time)

func (Time) IsZero

func (t Time) IsZero() bool

func (Time) Marshal

func (t Time) Marshal(enc *util.TypeEncoder) error

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (*Time) Set

func (t *Time) Set(dur time.Duration)

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) error

type TopHoldersSpecialAuthority

type TopHoldersSpecialAuthority struct {
	Asset         AssetID `json:"asset"`
	NumTopHolders UInt8   `json:"num_top_holders"`
}

func (TopHoldersSpecialAuthority) Marshal

func (*TopHoldersSpecialAuthority) MarshalJSON

func (j *TopHoldersSpecialAuthority) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*TopHoldersSpecialAuthority) MarshalJSONBuf

func (j *TopHoldersSpecialAuthority) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*TopHoldersSpecialAuthority) UnmarshalJSON

func (j *TopHoldersSpecialAuthority) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*TopHoldersSpecialAuthority) UnmarshalJSONFFLexer

func (j *TopHoldersSpecialAuthority) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type Transaction

type Transaction struct {
	RefBlockNum    UInt16     `json:"ref_block_num"`
	RefBlockPrefix UInt32     `json:"ref_block_prefix"`
	Expiration     Time       `json:"expiration"`
	Operations     Operations `json:"operations"`
	Extensions     Extensions `json:"extensions"`
}

func (*Transaction) AdjustExpiration

func (p *Transaction) AdjustExpiration(dur time.Duration)

AdjustExpiration extends expiration by given duration.

func (Transaction) Marshal

func (p Transaction) Marshal(enc *util.TypeEncoder) error

func (*Transaction) MarshalJSON

func (j *Transaction) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*Transaction) MarshalJSONBuf

func (j *Transaction) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*Transaction) UnmarshalJSON

func (j *Transaction) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Transaction) UnmarshalJSONFFLexer

func (j *Transaction) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type TransactionID

type TransactionID struct {
	ObjectID
}

func TransactionIDFromObject

func TransactionIDFromObject(ob GrapheneObject) TransactionID

func (TransactionID) Marshal

func (p TransactionID) Marshal(enc *util.TypeEncoder) error

func (*TransactionID) Unmarshal

func (p *TransactionID) Unmarshal(dec *util.TypeDecoder) error

type TransactionIDs

type TransactionIDs []TransactionID

func (TransactionIDs) Marshal

func (p TransactionIDs) Marshal(enc *util.TypeEncoder) error

type UInt

type UInt uint

func (UInt) Marshal

func (num UInt) Marshal(enc *util.TypeEncoder) error

func (*UInt) UnmarshalJSON

func (num *UInt) UnmarshalJSON(data []byte) error

type UInt16

type UInt16 uint16

func (UInt16) Marshal

func (num UInt16) Marshal(enc *util.TypeEncoder) error

func (*UInt16) UnmarshalJSON

func (num *UInt16) UnmarshalJSON(data []byte) error

type UInt32

type UInt32 uint32

func (UInt32) Marshal

func (num UInt32) Marshal(enc *util.TypeEncoder) error

func (*UInt32) UnmarshalJSON

func (num *UInt32) UnmarshalJSON(data []byte) error

type UInt64

type UInt64 uint64

func (UInt64) Marshal

func (num UInt64) Marshal(enc *util.TypeEncoder) error

func (*UInt64) UnmarshalJSON

func (num *UInt64) UnmarshalJSON(data []byte) error

type UInt8

type UInt8 uint8

func (UInt8) Marshal

func (num UInt8) Marshal(enc *util.TypeEncoder) error

func (*UInt8) UnmarshalJSON

func (num *UInt8) UnmarshalJSON(data []byte) error

type Unmarshalable

type Unmarshalable interface {
	UnmarshalJSON(input []byte) error
}

type VestingBalance

type VestingBalance struct {
	ID      VestingBalanceID `json:"id"`
	Balance AssetAmount      `json:"balance"`
	Owner   AccountID        `json:"owner"`
	Policy  VestingPolicy    `json:"policy"`
}

func (*VestingBalance) MarshalJSON

func (j *VestingBalance) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*VestingBalance) MarshalJSONBuf

func (j *VestingBalance) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*VestingBalance) UnmarshalJSON

func (j *VestingBalance) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*VestingBalance) UnmarshalJSONFFLexer

func (j *VestingBalance) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type VestingBalanceID

type VestingBalanceID struct {
	ObjectID
}

func VestingBalanceIDFromObject

func VestingBalanceIDFromObject(ob GrapheneObject) VestingBalanceID

func (VestingBalanceID) Marshal

func (p VestingBalanceID) Marshal(enc *util.TypeEncoder) error

func (*VestingBalanceID) Unmarshal

func (p *VestingBalanceID) Unmarshal(dec *util.TypeDecoder) error

type VestingBalanceIDs

type VestingBalanceIDs []VestingBalanceID

func (VestingBalanceIDs) Marshal

func (p VestingBalanceIDs) Marshal(enc *util.TypeEncoder) error

type VestingBalanceWorkerInitializer

type VestingBalanceWorkerInitializer struct {
	PayVestingPeriodDays UInt16 `json:"pay_vesting_period_days"`
}

func (VestingBalanceWorkerInitializer) Marshal

type VestingBalances

type VestingBalances []VestingBalance

type VestingPolicy

type VestingPolicy struct {
	// contains filtered or unexported fields
}

func (VestingPolicy) Marshal

func (p VestingPolicy) Marshal(enc *util.TypeEncoder) error

func (VestingPolicy) MarshalJSON

func (p VestingPolicy) MarshalJSON() ([]byte, error)

func (*VestingPolicy) UnmarshalJSON

func (p *VestingPolicy) UnmarshalJSON(data []byte) error

type VestingPolicyType

type VestingPolicyType UInt8
const (
	VestingPolicyTypeLinear VestingPolicyType = iota
	VestingPolicyTypeCCD
)

type Volume24

type Volume24 struct {
	Base        String  `json:"base"`
	BaseVolume  Float64 `json:"base_volume"`
	Quote       String  `json:"quote"`
	QuoteVolume Float64 `json:"quote_volume"`
	Time        Time    `json:"time"`
}

func (*Volume24) MarshalJSON

func (j *Volume24) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*Volume24) MarshalJSONBuf

func (j *Volume24) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*Volume24) UnmarshalJSON

func (j *Volume24) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*Volume24) UnmarshalJSONFFLexer

func (j *Volume24) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type VoteID

type VoteID struct {
	// contains filtered or unexported fields
}

func NewVoteID

func NewVoteID(id string) *VoteID

func (VoteID) Marshal

func (p VoteID) Marshal(enc *util.TypeEncoder) error

TODO: define this

func (VoteID) MarshalJSON

func (p VoteID) MarshalJSON() ([]byte, error)

func (*VoteID) UnmarshalJSON

func (p *VoteID) UnmarshalJSON(data []byte) error

type Votes

type Votes []VoteID

func (Votes) Marshal

func (p Votes) Marshal(enc *util.TypeEncoder) error

TODO: define this

type WithdrawPermissionID

type WithdrawPermissionID struct {
	ObjectID
}

func WithdrawPermissionIDFromObject

func WithdrawPermissionIDFromObject(ob GrapheneObject) WithdrawPermissionID

func (WithdrawPermissionID) Marshal

func (p WithdrawPermissionID) Marshal(enc *util.TypeEncoder) error

func (*WithdrawPermissionID) Unmarshal

func (p *WithdrawPermissionID) Unmarshal(dec *util.TypeDecoder) error

type WithdrawPermissionIDs

type WithdrawPermissionIDs []WithdrawPermissionID

func (WithdrawPermissionIDs) Marshal

func (p WithdrawPermissionIDs) Marshal(enc *util.TypeEncoder) error

type WitnessID

type WitnessID struct {
	ObjectID
}

func WitnessIDFromObject

func WitnessIDFromObject(ob GrapheneObject) WitnessID

func (WitnessID) Marshal

func (p WitnessID) Marshal(enc *util.TypeEncoder) error

func (*WitnessID) Unmarshal

func (p *WitnessID) Unmarshal(dec *util.TypeDecoder) error

type WitnessIDs

type WitnessIDs []WitnessID

func (WitnessIDs) Marshal

func (p WitnessIDs) Marshal(enc *util.TypeEncoder) error

type WitnessScheduleID

type WitnessScheduleID struct {
	ObjectID
}

func WitnessScheduleIDFromObject

func WitnessScheduleIDFromObject(ob GrapheneObject) WitnessScheduleID

func (WitnessScheduleID) Marshal

func (p WitnessScheduleID) Marshal(enc *util.TypeEncoder) error

func (*WitnessScheduleID) Unmarshal

func (p *WitnessScheduleID) Unmarshal(dec *util.TypeDecoder) error

type WitnessScheduleIDs

type WitnessScheduleIDs []WitnessScheduleID

func (WitnessScheduleIDs) Marshal

func (p WitnessScheduleIDs) Marshal(enc *util.TypeEncoder) error

type WorkerID

type WorkerID struct {
	ObjectID
}

func WorkerIDFromObject

func WorkerIDFromObject(ob GrapheneObject) WorkerID

func (WorkerID) Marshal

func (p WorkerID) Marshal(enc *util.TypeEncoder) error

func (*WorkerID) Unmarshal

func (p *WorkerID) Unmarshal(dec *util.TypeDecoder) error

type WorkerIDs

type WorkerIDs []WorkerID

func (WorkerIDs) Marshal

func (p WorkerIDs) Marshal(enc *util.TypeEncoder) error

type WorkerInitializer

type WorkerInitializer struct {
	Type        WorkerInitializerType
	Initializer interface{}
}

func (WorkerInitializer) Marshal

func (p WorkerInitializer) Marshal(enc *util.TypeEncoder) error

func (WorkerInitializer) MarshalJSON

func (p WorkerInitializer) MarshalJSON() ([]byte, error)

func (*WorkerInitializer) UnmarshalJSON

func (p *WorkerInitializer) UnmarshalJSON(data []byte) error

type WorkerInitializerType

type WorkerInitializerType UInt8
const (
	WorkerInitializerTypeRefund WorkerInitializerType = iota
	WorkerInitializerTypeVestingBalance
	WorkerInitializerTypeBurn
)

Source Files

Jump to

Keyboard shortcuts

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