operations

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToUInt64

func ToUInt64(in interface{}) (types.UInt64, error)

Types

type AccountCreateOperation

type AccountCreateOperation struct {
	types.OperationFee
	Registrar       types.AccountID               `json:"registrar"`
	Referrer        types.AccountID               `json:"referrer"`
	ReferrerPercent types.UInt16                  `json:"referrer_percent"`
	Owner           types.Authority               `json:"owner"`
	Active          types.Authority               `json:"active"`
	Name            types.String                  `json:"name"`
	Extensions      types.AccountCreateExtensions `json:"extensions"`
	Options         types.AccountOptions          `json:"options"`
}

func (AccountCreateOperation) Marshal

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

func (AccountCreateOperation) MarshalFeeScheduleParams

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

func (*AccountCreateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AccountCreateOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AccountCreateOperation) Type

func (*AccountCreateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AccountCreateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AccountTransferOperation

type AccountTransferOperation struct {
	types.OperationFee
	AccountID  types.AccountID  `json:"account_id"`
	NewOwner   types.AccountID  `json:"new_owner"`
	Extensions types.Extensions `json:"extensions"`
}

func (AccountTransferOperation) Marshal

func (*AccountTransferOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AccountTransferOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AccountTransferOperation) Type

func (*AccountTransferOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AccountTransferOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AccountUpdateOperation

type AccountUpdateOperation struct {
	types.OperationFee
	Account    types.AccountID               `json:"account"`
	Active     *types.Authority              `json:"active,omitempty"`
	Extensions types.AccountUpdateExtensions `json:"extensions"`
	NewOptions *types.AccountOptions         `json:"new_options,omitempty"`
	Owner      *types.Authority              `json:"owner,omitempty"`
}

func (AccountUpdateOperation) Marshal

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

func (AccountUpdateOperation) MarshalFeeScheduleParams

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

func (*AccountUpdateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AccountUpdateOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AccountUpdateOperation) Type

func (*AccountUpdateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AccountUpdateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AccountUpgradeOperation

type AccountUpgradeOperation struct {
	types.OperationFee
	AccountToUpgrade        types.AccountID  `json:"account_to_upgrade"`
	Extensions              types.Extensions `json:"extensions"`
	UpgradeToLifetimeMember bool             `json:"upgrade_to_lifetime_member"`
}

func (AccountUpgradeOperation) Marshal

func (AccountUpgradeOperation) MarshalFeeScheduleParams

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

func (*AccountUpgradeOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AccountUpgradeOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AccountUpgradeOperation) Type

func (*AccountUpgradeOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AccountUpgradeOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AccountWhitelistOperation

type AccountWhitelistOperation struct {
	types.OperationFee
	AccountToList      types.AccountID  `json:"account_to_list"`
	AuthorizingAccount types.AccountID  `json:"authorizing_account"`
	Extensions         types.Extensions `json:"extensions"`
	NewListing         types.UInt8      `json:"new_listing"`
}

func (AccountWhitelistOperation) Marshal

TODO: validate order

func (*AccountWhitelistOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AccountWhitelistOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AccountWhitelistOperation) Type

func (*AccountWhitelistOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AccountWhitelistOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AssertOperation

type AssertOperation struct {
	types.OperationFee
}

func (AssertOperation) Marshal

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

func (*AssertOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AssertOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AssertOperation) Type

func (*AssertOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AssertOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AssetClaimFeesOperation

type AssetClaimFeesOperation struct {
	types.OperationFee
	Issuer        types.AccountID   `json:"issuer"`
	AmountToClaim types.AssetAmount `json:"amount_to_claim"`
	Extensions    types.Extensions  `json:"extensions"`
}

func (AssetClaimFeesOperation) Marshal

func (*AssetClaimFeesOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AssetClaimFeesOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AssetClaimFeesOperation) Type

func (*AssetClaimFeesOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AssetClaimFeesOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AssetCreateOperation

type AssetCreateOperation struct {
	types.OperationFee
	BitassetOptions    *types.BitassetOptions `json:"bitasset_opts"`
	CommonOptions      types.AssetOptions     `json:"common_options"`
	Extensions         types.Extensions       `json:"extensions"`
	IsPredictionMarket bool                   `json:"is_prediction_market"`
	Issuer             types.AccountID        `json:"issuer"`
	Precision          types.UInt8            `json:"precision"`
	Symbol             types.String           `json:"symbol"`
}

func (AssetCreateOperation) Marshal

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

func (AssetCreateOperation) MarshalFeeScheduleParams

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

func (*AssetCreateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AssetCreateOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AssetCreateOperation) Type

func (*AssetCreateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AssetCreateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AssetFundFeePoolOperation

type AssetFundFeePoolOperation struct {
	types.OperationFee
	Amount      types.UInt64     `json:"amount"`
	AssetID     types.AssetID    `json:"asset_id"`
	Extensions  types.Extensions `json:"extensions"`
	FromAccount types.AccountID  `json:"from_account"`
}

func (AssetFundFeePoolOperation) Marshal

func (*AssetFundFeePoolOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AssetFundFeePoolOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AssetFundFeePoolOperation) Type

func (*AssetFundFeePoolOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AssetFundFeePoolOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AssetGlobalSettleOperation

type AssetGlobalSettleOperation struct {
	types.OperationFee
	AssetToSettle types.AssetID    `json:"asset_to_settle"`
	Extensions    types.Extensions `json:"extensions"`
	Issuer        types.AccountID  `json:"issuer"`
	SettlePrice   types.Price      `json:"settle_price"`
}

func (AssetGlobalSettleOperation) Marshal

func (*AssetGlobalSettleOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AssetGlobalSettleOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AssetGlobalSettleOperation) Type

func (*AssetGlobalSettleOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AssetGlobalSettleOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AssetIssueOperation

type AssetIssueOperation struct {
	types.OperationFee
	Issuer         types.AccountID   `json:"issuer"`
	IssueToAccount types.AccountID   `json:"issue_to_account"`
	AssetToIssue   types.AssetAmount `json:"asset_to_issue"`
	Memo           *types.Memo       `json:"memo,omitempty"`
	Extensions     types.Extensions  `json:"extensions"`
}

func (AssetIssueOperation) Marshal

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

func (AssetIssueOperation) MarshalFeeScheduleParams

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

func (*AssetIssueOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AssetIssueOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AssetIssueOperation) Type

func (*AssetIssueOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AssetIssueOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AssetPublishFeedOperation

type AssetPublishFeedOperation struct {
	types.OperationFee
	Publisher  types.AccountID  `json:"publisher"`
	AssetID    types.AssetID    `json:"asset_id"`
	Feed       types.PriceFeed  `json:"feed"`
	Extensions types.Extensions `json:"extensions"`
}

func (AssetPublishFeedOperation) Marshal

func (*AssetPublishFeedOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AssetPublishFeedOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AssetPublishFeedOperation) Type

func (*AssetPublishFeedOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AssetPublishFeedOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AssetReserveOperation

type AssetReserveOperation struct {
	types.OperationFee
	Payer           types.AccountID   `json:"payer"`
	AmountToReserve types.AssetAmount `json:"amount_to_reserve"`
	Extensions      types.Extensions  `json:"extensions"`
}

func (AssetReserveOperation) Marshal

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

func (*AssetReserveOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AssetReserveOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AssetReserveOperation) Type

func (*AssetReserveOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AssetReserveOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AssetSettleOperation

type AssetSettleOperation struct {
	types.OperationFee
	Account    types.AccountID   `json:"account"`
	Amount     types.AssetAmount `json:"amount"`
	Extensions types.Extensions  `json:"extensions"`
}

func (AssetSettleOperation) Marshal

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

func (*AssetSettleOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AssetSettleOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AssetSettleOperation) Type

func (*AssetSettleOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AssetSettleOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AssetUpdateBitassetOperation

type AssetUpdateBitassetOperation struct {
	types.OperationFee
	AssetToUpdate types.AssetID         `json:"asset_to_update"`
	Issuer        types.AccountID       `json:"issuer"`
	Extensions    types.Extensions      `json:"extensions"`
	NewOptions    types.BitassetOptions `json:"new_options"`
}

func (AssetUpdateBitassetOperation) Marshal

TODO: validate order

func (*AssetUpdateBitassetOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AssetUpdateBitassetOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AssetUpdateBitassetOperation) Type

func (*AssetUpdateBitassetOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AssetUpdateBitassetOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AssetUpdateFeedProducersOperation

type AssetUpdateFeedProducersOperation struct {
	types.OperationFee
	AssetToUpdate    types.AssetID    `json:"asset_to_update"`
	Extensions       types.Extensions `json:"extensions"`
	Issuer           types.AccountID  `json:"issuer"`
	NewFeedProducers types.AccountIDs `json:"new_feed_producers"`
}

func (AssetUpdateFeedProducersOperation) Marshal

func (*AssetUpdateFeedProducersOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AssetUpdateFeedProducersOperation) MarshalJSONBuf

MarshalJSONBuf marshal buff to json - template

func (AssetUpdateFeedProducersOperation) Type

func (*AssetUpdateFeedProducersOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AssetUpdateFeedProducersOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type AssetUpdateOperation

type AssetUpdateOperation struct {
	types.OperationFee
	AssetToUpdate types.AssetID      `json:"asset_to_update"`
	Issuer        types.AccountID    `json:"issuer"`
	Extensions    types.Extensions   `json:"extensions"`
	NewIssuer     *types.AccountID   `json:"new_issuer"`
	NewOptions    types.AssetOptions `json:"new_options"`
}

func (AssetUpdateOperation) Marshal

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

func (AssetUpdateOperation) MarshalFeeScheduleParams

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

func (*AssetUpdateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*AssetUpdateOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (AssetUpdateOperation) Type

func (*AssetUpdateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*AssetUpdateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type BalanceClaimOperation

type BalanceClaimOperation struct {
	types.OperationFee
	BalanceToClaim   types.BalanceID   `json:"balance_to_claim"`
	BalanceOwnerKey  types.PublicKey   `json:"balance_owner_key"`
	DepositToAccount types.AccountID   `json:"deposit_to_account"`
	TotalClaimed     types.AssetAmount `json:"total_claimed"`
}

func (BalanceClaimOperation) Marshal

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

func (BalanceClaimOperation) MarshalFeeScheduleParams

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

func (*BalanceClaimOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*BalanceClaimOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (BalanceClaimOperation) Type

func (*BalanceClaimOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*BalanceClaimOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type BidCollateralOperation

type BidCollateralOperation struct {
	types.OperationFee
	AdditionalCollateral types.AssetAmount `json:"additional_collateral"`
	Bidder               types.AccountID   `json:"bidder"`
	DebtCovered          types.AssetAmount `json:"debt_covered"`
	Extensions           types.Extensions  `json:"extensions"`
}

func (BidCollateralOperation) Marshal

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

func (*BidCollateralOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*BidCollateralOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (BidCollateralOperation) Type

func (*BidCollateralOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*BidCollateralOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type CallOrderUpdateOperation

type CallOrderUpdateOperation struct {
	types.OperationFee
	DeltaCollateral types.AssetAmount               `json:"delta_collateral"`
	DeltaDebt       types.AssetAmount               `json:"delta_debt"`
	FundingAccount  types.AccountID                 `json:"funding_account"`
	Extensions      types.CallOrderUpdateExtensions `json:"extensions"`
}

func (CallOrderUpdateOperation) Marshal

func (*CallOrderUpdateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*CallOrderUpdateOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (CallOrderUpdateOperation) Type

func (*CallOrderUpdateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*CallOrderUpdateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type ChainParameters

type ChainParameters struct {
	AllowNonMemberWhitelists         bool              `json:"allow_non_member_whitelists"`
	CountNonMemberVotes              bool              `json:"count_non_member_votes"`
	Extensions                       types.Extensions  `json:"extensions"`
	CurrentFees                      types.FeeSchedule `json:"current_fees"`
	AccountFeeScaleBitshifts         types.UInt8       `json:"account_fee_scale_bitshifts"`
	BlockInterval                    types.UInt8       `json:"block_interval"`
	MaintenanceSkipSlots             types.UInt8       `json:"maintenance_skip_slots"`
	MaxAuthorityDepth                types.UInt8       `json:"max_authority_depth"`
	MaximumAssetFeedPublishers       types.UInt8       `json:"maximum_asset_feed_publishers"`
	MaximumAssetWhitelistAuthorities types.UInt8       `json:"maximum_asset_whitelist_authorities"`
	AccountsPerFeeScale              types.UInt16      `json:"accounts_per_fee_scale"`
	LifetimeReferrerPercentOfFee     types.UInt16      `json:"lifetime_referrer_percent_of_fee"`
	MaxPredicateOpcode               types.UInt16      `json:"max_predicate_opcode"`
	MaximumAuthorityMembership       types.UInt16      `json:"maximum_authority_membership"`
	MaximumCommitteeCount            types.UInt16      `json:"maximum_committee_count"`
	MaximumWitnessCount              types.UInt16      `json:"maximum_witness_count"`
	NetworkPercentOfFee              types.UInt16      `json:"network_percent_of_fee"`
	ReservePercentOfFee              types.UInt16      `json:"reserve_percent_of_fee"`
	CashbackVestingPeriodSeconds     types.UInt32      `json:"cashback_vesting_period_seconds"`
	CommitteeProposalReviewPeriod    types.UInt32      `json:"committee_proposal_review_period"`
	WitnessPayVestingSeconds         types.UInt32      `json:"witness_pay_vesting_seconds"`
	MaximumProposalLifetime          types.UInt32      `json:"maximum_proposal_lifetime"`
	MaximumTimeUntilExpiration       types.UInt32      `json:"maximum_time_until_expiration"`
	MaximumTransactionSize           types.UInt32      `json:"maximum_transaction_size"`
	MaintenanceInterval              types.UInt32      `json:"maintenance_interval"`
	MaximumBlockSize                 types.UInt32      `json:"maximum_block_size"`
	CashbackVestingThreshold         types.Int64       `json:"cashback_vesting_threshold"`
	WitnessPayPerBlock               types.Int64       `json:"witness_pay_per_block"`
	WorkerBudgetPerDay               types.Int64       `json:"worker_budget_per_day"`
	FeeLiquidationThreshold          types.Int64       `json:"fee_liquidation_threshold"`
}

func (ChainParameters) Marshal

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

func (*ChainParameters) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*ChainParameters) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (*ChainParameters) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*ChainParameters) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type CommitteeMemberCreateOperation

type CommitteeMemberCreateOperation struct {
	types.OperationFee
	CommitteeMemberAccount types.AccountID `json:"committee_member_account"`
	URL                    types.String    `json:"url"`
}

func (CommitteeMemberCreateOperation) Marshal

func (*CommitteeMemberCreateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*CommitteeMemberCreateOperation) MarshalJSONBuf

MarshalJSONBuf marshal buff to json - template

func (CommitteeMemberCreateOperation) Type

func (*CommitteeMemberCreateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*CommitteeMemberCreateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type CommitteeMemberUpdateGlobalParametersOperation

type CommitteeMemberUpdateGlobalParametersOperation struct {
	types.OperationFee
	NewParameters ChainParameters `json:"new_parameters"`
}

func (CommitteeMemberUpdateGlobalParametersOperation) Marshal

func (*CommitteeMemberUpdateGlobalParametersOperation) MarshalJSON

MarshalJSON marshal bytes to json - template

func (*CommitteeMemberUpdateGlobalParametersOperation) MarshalJSONBuf

MarshalJSONBuf marshal buff to json - template

func (CommitteeMemberUpdateGlobalParametersOperation) Type

func (*CommitteeMemberUpdateGlobalParametersOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*CommitteeMemberUpdateGlobalParametersOperation) UnmarshalJSONFFLexer

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type CommitteeMemberUpdateOperation

type CommitteeMemberUpdateOperation struct {
	types.OperationFee
	CommitteeMember        types.CommitteeMember `json:"committee_member"`
	CommitteeMemberAccount types.AccountID       `json:"committee_member_account"`
	NewURL                 *types.String         `json:"new_url,omitempty"`
}

func (CommitteeMemberUpdateOperation) Marshal

func (*CommitteeMemberUpdateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*CommitteeMemberUpdateOperation) MarshalJSONBuf

MarshalJSONBuf marshal buff to json - template

func (CommitteeMemberUpdateOperation) Type

func (*CommitteeMemberUpdateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*CommitteeMemberUpdateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type CustomOperation

type CustomOperation struct {
	types.OperationFee
	Payer         types.AccountID  `json:"payer"`
	RequiredAuths types.AccountIDs `json:"required_auths"`
	ID            types.UInt16     `json:"id"`
	Data          types.Buffer     `json:"data"`
}

func (CustomOperation) Marshal

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

func (CustomOperation) MarshalFeeScheduleParams

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

func (*CustomOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*CustomOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (CustomOperation) Type

func (*CustomOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*CustomOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type FillOrderOperation

type FillOrderOperation struct {
	types.OperationFee
	OrderID   types.ObjectID    `json:"order_id"`
	AccountID types.AccountID   `json:"account_id"`
	Pays      types.AssetAmount `json:"pays"`
	Receives  types.AssetAmount `json:"receives"`
	IsMaker   bool              `json:"is_maker"`
	FillPrice types.Price       `json:"fill_price"`
}

virtual order

func (FillOrderOperation) Marshal

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

func (FillOrderOperation) MarshalFeeScheduleParams

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

func (*FillOrderOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*FillOrderOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (FillOrderOperation) Type

func (*FillOrderOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*FillOrderOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type LimitOrderCancelOperation

type LimitOrderCancelOperation struct {
	types.OperationFee
	FeePayingAccount types.AccountID    `json:"fee_paying_account"`
	Order            types.LimitOrderID `json:"order"`
	Extensions       types.Extensions   `json:"extensions"`
}

func (LimitOrderCancelOperation) Marshal

func (*LimitOrderCancelOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*LimitOrderCancelOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (LimitOrderCancelOperation) Type

func (*LimitOrderCancelOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*LimitOrderCancelOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type LimitOrderCreateOperation

type LimitOrderCreateOperation struct {
	types.OperationFee
	Seller       types.AccountID   `json:"seller"`
	AmountToSell types.AssetAmount `json:"amount_to_sell"`
	MinToReceive types.AssetAmount `json:"min_to_receive"`
	Expiration   types.Time        `json:"expiration"`
	FillOrKill   bool              `json:"fill_or_kill"`
	Extensions   types.Extensions  `json:"extensions"`
}

LimitOrderCreateOperation instructs the blockchain to attempt to sell one asset for another. The blockchain will attempt to sell amount_to_sell.asset_id for as much min_to_receive.asset_id as possible. The fee will be paid by the seller’s account. Market fees will apply as specified by the issuer of both the selling asset and the receiving asset as a percentage of the amount exchanged. If either the selling asset or the receiving asset is white list restricted, the order will only be created if the seller is on the white list of the restricted asset type. Market orders are matched in the order they are included in the block chain.

func (LimitOrderCreateOperation) Marshal

func (*LimitOrderCreateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*LimitOrderCreateOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (LimitOrderCreateOperation) Type

func (*LimitOrderCreateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*LimitOrderCreateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type OverrideTransferOperation

type OverrideTransferOperation struct {
	types.OperationFee
	Amount     types.AssetAmount `json:"amount"`
	Extensions types.Extensions  `json:"extensions"`
	From       types.AccountID   `json:"from"`
	Issuer     types.AccountID   `json:"issuer"`
	Memo       *types.Memo       `json:"memo,omitempty"`
	To         types.AccountID   `json:"to"`
}

func (OverrideTransferOperation) Marshal

func (OverrideTransferOperation) MarshalFeeScheduleParams

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

func (*OverrideTransferOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*OverrideTransferOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (OverrideTransferOperation) Type

func (*OverrideTransferOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*OverrideTransferOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type ProposalCreateOperation

type ProposalCreateOperation struct {
	types.OperationFee
	ExpirationTime      types.Time                     `json:"expiration_time"`
	Extensions          types.Extensions               `json:"extensions"`
	FeePayingAccount    types.AccountID                `json:"fee_paying_account"`
	ReviewPeriodSeconds *types.UInt32                  `json:"review_period_seconds,omitempty"`
	ProposedOps         types.OperationEnvelopeHolders `json:"proposed_ops"`
}

func (ProposalCreateOperation) Marshal

func (ProposalCreateOperation) MarshalFeeScheduleParams

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

func (*ProposalCreateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*ProposalCreateOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (ProposalCreateOperation) Type

func (*ProposalCreateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*ProposalCreateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type ProposalDeleteOperation

type ProposalDeleteOperation struct {
	types.OperationFee
	Extensions          types.Extensions `json:"extensions"`
	FeePayingAccount    types.AccountID  `json:"fee_paying_account"`
	Proposal            types.ProposalID `json:"proposal"`
	UsingOwnerAuthority bool             `json:"using_owner_authority"`
}

func (ProposalDeleteOperation) Marshal

func (*ProposalDeleteOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*ProposalDeleteOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (ProposalDeleteOperation) Type

func (*ProposalDeleteOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*ProposalDeleteOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type ProposalUpdateOperation

type ProposalUpdateOperation struct {
	types.OperationFee
	ActiveApprovalsToAdd    types.AccountIDs `json:"active_approvals_to_add"`
	ActiveApprovalsToRemove types.AccountIDs `json:"active_approvals_to_remove"`
	OwnerApprovalsToAdd     types.AccountIDs `json:"owner_approvals_to_add"`
	OwnerApprovalsToRemove  types.AccountIDs `json:"owner_approvals_to_remove"`
	Extensions              types.Extensions `json:"extensions"`
	FeePayingAccount        types.AccountID  `json:"fee_paying_account"`
	KeyApprovalsToAdd       types.PublicKeys `json:"key_approvals_to_add"`
	KeyApprovalsToRemove    types.PublicKeys `json:"key_approvals_to_remove"`
	Proposal                types.ProposalID `json:"proposal"`
}

func (ProposalUpdateOperation) Marshal

func (ProposalUpdateOperation) MarshalFeeScheduleParams

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

func (*ProposalUpdateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*ProposalUpdateOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (ProposalUpdateOperation) Type

func (*ProposalUpdateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*ProposalUpdateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type TransferFromBlindOperation

type TransferFromBlindOperation struct {
	types.OperationFee
	Amount      types.AssetAmount `json:"amount"`
	To          types.AccountID   `json:"to"`
	BlindFactor types.FixedBuffer `json:"blinding_factor"`
	BlindInputs types.BlindInputs `json:"inputs"`
}

func (TransferFromBlindOperation) Marshal

func (*TransferFromBlindOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*TransferFromBlindOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (TransferFromBlindOperation) Type

func (*TransferFromBlindOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*TransferFromBlindOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type TransferOperation

type TransferOperation struct {
	types.OperationFee
	From        types.AccountID   `json:"from"`
	To          types.AccountID   `json:"to"`
	FromAddr    types.Address     `json:"from_addr"`
	ToAddr      types.Address     `json:"to_addr"`
	Amount      types.AssetAmount `json:"amount"`
	Memo        *types.Memo       `json:"memo,omitempty"`
	Extensions  types.Extensions  `json:"extensions"`
	GuaranteeId types.ObjectID    `json:"guarantee_id"`
}

func (TransferOperation) Marshal

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

func (TransferOperation) MarshalFeeScheduleParams

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

func (*TransferOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*TransferOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (TransferOperation) Type

func (*TransferOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*TransferOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type TransferToBlindOperation

type TransferToBlindOperation struct {
	types.OperationFee
	Amount         types.AssetAmount  `json:"amount"`
	BlindingFactor types.FixedBuffer  `json:"blinding_factor"`
	From           types.AccountID    `json:"from"`
	Outputs        types.BlindOutputs `json:"outputs"`
}

func (TransferToBlindOperation) Marshal

func (TransferToBlindOperation) MarshalFeeScheduleParams

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

func (*TransferToBlindOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*TransferToBlindOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (TransferToBlindOperation) Type

func (*TransferToBlindOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*TransferToBlindOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type VestingBalanceCreateOperation

type VestingBalanceCreateOperation struct {
	types.OperationFee
	Amount  types.AssetAmount   `json:"amount"`
	Creator types.AccountID     `json:"creator"`
	Owner   types.AccountID     `json:"owner"`
	Policy  types.VestingPolicy `json:"policy"`
}

func (VestingBalanceCreateOperation) Marshal

func (*VestingBalanceCreateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*VestingBalanceCreateOperation) MarshalJSONBuf

MarshalJSONBuf marshal buff to json - template

func (VestingBalanceCreateOperation) Type

func (*VestingBalanceCreateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*VestingBalanceCreateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type VestingBalanceWithdrawOperation

type VestingBalanceWithdrawOperation struct {
	types.OperationFee
	Amount         types.AssetAmount      `json:"amount"`
	Owner          types.AccountID        `json:"owner"`
	VestingBalance types.VestingBalanceID `json:"vesting_balance"`
}

func (VestingBalanceWithdrawOperation) Marshal

func (*VestingBalanceWithdrawOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*VestingBalanceWithdrawOperation) MarshalJSONBuf

MarshalJSONBuf marshal buff to json - template

func (VestingBalanceWithdrawOperation) Type

func (*VestingBalanceWithdrawOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*VestingBalanceWithdrawOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type WithdrawPermissionClaimOperation

type WithdrawPermissionClaimOperation struct {
	types.OperationFee
	WithdrawPermission  types.WithdrawPermissionID `json:"withdraw_permission"`
	WithdrawFromAccount types.AccountID            `json:"withdraw_from_account"`
	WithdrawToAccount   types.AccountID            `json:"withdraw_to_account"`
	AmountToWithdraw    types.AssetAmount          `json:"amount_to_withdraw"`
	Memo                *types.Memo                `json:"memo,omitempty"`
}

func (WithdrawPermissionClaimOperation) Marshal

func (WithdrawPermissionClaimOperation) MarshalFeeScheduleParams

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

func (*WithdrawPermissionClaimOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*WithdrawPermissionClaimOperation) MarshalJSONBuf

MarshalJSONBuf marshal buff to json - template

func (WithdrawPermissionClaimOperation) Type

func (*WithdrawPermissionClaimOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*WithdrawPermissionClaimOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type WithdrawPermissionCreateOperation

type WithdrawPermissionCreateOperation struct {
	types.OperationFee
	AuthorizedAccount      types.AccountID   `json:"authorized_account"`
	PeriodStartTime        types.Time        `json:"period_start_time"`
	PeriodsUntilExpiration types.UInt32      `json:"periods_until_expiration"`
	WithdrawFromAccount    types.AccountID   `json:"withdraw_from_account"`
	WithdrawalLimit        types.AssetAmount `json:"withdrawal_limit"`
	WithdrawalPeriodSec    types.UInt32      `json:"withdrawal_period_sec"`
}

func (WithdrawPermissionCreateOperation) Marshal

func (*WithdrawPermissionCreateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*WithdrawPermissionCreateOperation) MarshalJSONBuf

MarshalJSONBuf marshal buff to json - template

func (WithdrawPermissionCreateOperation) Type

func (*WithdrawPermissionCreateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*WithdrawPermissionCreateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type WithdrawPermissionDeleteOperation

type WithdrawPermissionDeleteOperation struct {
	types.OperationFee
	AuthorizedAccount    types.AccountID            `json:"authorized_account"`
	WithdrawFromAccount  types.AccountID            `json:"withdraw_from_account"`
	WithdrawalPermission types.WithdrawPermissionID `json:"withdrawal_permission"`
}

func (WithdrawPermissionDeleteOperation) Marshal

func (*WithdrawPermissionDeleteOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*WithdrawPermissionDeleteOperation) MarshalJSONBuf

MarshalJSONBuf marshal buff to json - template

func (WithdrawPermissionDeleteOperation) Type

func (*WithdrawPermissionDeleteOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*WithdrawPermissionDeleteOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type WithdrawPermissionUpdateOperation

type WithdrawPermissionUpdateOperation struct {
	types.OperationFee
	WithdrawFromAccount    types.AccountID            `json:"withdraw_from_account"`
	AuthorizedAccount      types.AccountID            `json:"authorized_account"`
	PermissionToUpdate     types.WithdrawPermissionID `json:"permission_to_update"`
	WithdrawalLimit        types.AssetAmount          `json:"withdrawal_limit"`
	WithdrawalPeriodSec    types.UInt32               `json:"withdrawal_period_sec"`
	PeriodStartTime        types.Time                 `json:"period_start_time"`
	PeriodsUntilExpiration types.UInt32               `json:"periods_until_expiration"`
}

func (WithdrawPermissionUpdateOperation) Marshal

func (*WithdrawPermissionUpdateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*WithdrawPermissionUpdateOperation) MarshalJSONBuf

MarshalJSONBuf marshal buff to json - template

func (WithdrawPermissionUpdateOperation) Type

func (*WithdrawPermissionUpdateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*WithdrawPermissionUpdateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type WitnessCreateOperation

type WitnessCreateOperation struct {
	types.OperationFee
	BlockSigningKey types.PublicKey `json:"block_signing_key"`
	URL             string          `json:"url"`
	WitnessAccount  types.AccountID `json:"witness_account"`
}

func (WitnessCreateOperation) Marshal

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

TODO: verify order

func (*WitnessCreateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*WitnessCreateOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (WitnessCreateOperation) Type

func (*WitnessCreateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*WitnessCreateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type WitnessUpdateOperation

type WitnessUpdateOperation struct {
	types.OperationFee
	NewSigningKey  *types.PublicKey `json:"new_signing_key,omitempty"`
	NewURL         *types.String    `json:"new_url,omitempty"`
	Witness        types.WitnessID  `json:"witness"`
	WitnessAccount types.AccountID  `json:"witness_account"`
}

func (WitnessUpdateOperation) Marshal

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

func (*WitnessUpdateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*WitnessUpdateOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (WitnessUpdateOperation) Type

func (*WitnessUpdateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*WitnessUpdateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type WorkerCreateOperation

type WorkerCreateOperation struct {
	types.OperationFee
	DailyPay      types.UInt64            `json:"daily_pay"`
	Initializer   types.WorkerInitializer `json:"initializer"`
	Name          string                  `json:"name"`
	Owner         types.AccountID         `json:"owner"`
	URL           string                  `json:"url"`
	WorkBeginDate types.Time              `json:"work_begin_date"`
	WorkEndDate   types.Time              `json:"work_end_date"`
}

func (WorkerCreateOperation) Marshal

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

func (*WorkerCreateOperation) MarshalJSON

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

MarshalJSON marshal bytes to json - template

func (*WorkerCreateOperation) MarshalJSONBuf

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

MarshalJSONBuf marshal buff to json - template

func (WorkerCreateOperation) Type

func (*WorkerCreateOperation) UnmarshalJSON

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

UnmarshalJSON umarshall json - template of ffjson

func (*WorkerCreateOperation) UnmarshalJSONFFLexer

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

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

Source Files

Jump to

Keyboard shortcuts

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