operations

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCreateOperation

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

func NewAccountCreateOperation

func NewAccountCreateOperation() *AccountCreateOperation

NewAccountCreateOperation creates a new AccountCreateOperation

func (AccountCreateOperation) Marshal

func (p AccountCreateOperation) Marshal(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 AccountUpdateOperation

type AccountUpdateOperation struct {
	types.OperationFee
	Account    types.GrapheneID              `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 NewAccountUpdateOperation

func NewAccountUpdateOperation() *AccountUpdateOperation

NewAccountUpdateOperation creates a new AccountUpdateOperation

func (AccountUpdateOperation) Marshal

func (p AccountUpdateOperation) Marshal(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.GrapheneID `json:"account_to_upgrade"`
	Extensions              types.Extensions `json:"extensions"`
	UpgradeToLifetimeMember bool             `json:"upgrade_to_lifetime_member"`
}

func NewAccountUpgradeOperation

func NewAccountUpgradeOperation() *AccountUpgradeOperation

NewAccountUpgradeOperation creates a new AccountUpgradeOperation

func (AccountUpgradeOperation) Marshal

TODO: validate order

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.GrapheneID `json:"account_to_list"`
	AuthorizingAccount types.GrapheneID `json:"authorizing_account"`
	Extensions         types.Extensions `json:"extensions"`
	NewListing         types.UInt8      `json:"new_listing"`
}

func NewAccountWhitelistOperation

func NewAccountWhitelistOperation() *AccountWhitelistOperation

NewAccountWhitelistOperation creates a new AccountWhitelistOperation

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 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.GrapheneID       `json:"issuer"`
	Precision          types.UInt8            `json:"precision"`
	Symbol             string                 `json:"symbol"`
}

func NewAssetCreateOperation

func NewAssetCreateOperation() *AssetCreateOperation

NewAssetCreateOperation creates a new AssetCreateOperation

func (AssetCreateOperation) Marshal

func (p AssetCreateOperation) Marshal(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.GrapheneID `json:"asset_id"`
	Extensions  types.Extensions `json:"extensions"`
	FromAccount types.GrapheneID `json:"from_account"`
}

func NewAssetFundFeePoolOperation

func NewAssetFundFeePoolOperation() *AssetFundFeePoolOperation

NewAssetFundFeePoolOperation creates a new AssetFundFeePoolOperation

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 AssetIssueOperation

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

func NewAssetIssueOperation

func NewAssetIssueOperation() *AssetIssueOperation

NewAssetIssueOperation creates a new AssetIssueOperation

func (AssetIssueOperation) Marshal

func (p AssetIssueOperation) Marshal(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.GrapheneID `json:"publisher"`
	AssetID    types.GrapheneID `json:"asset_id"`
	Feed       types.PriceFeed  `json:"feed"`
	Extensions types.Extensions `json:"extensions"`
}

func NewAssetPublishFeedOperation

func NewAssetPublishFeedOperation() *AssetPublishFeedOperation

NewAssetPublishFeedOperation creates a new AssetPublishFeedOperation

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.GrapheneID  `json:"payer"`
	AmountToReserve types.AssetAmount `json:"amount_to_reserve"`
	Extensions      types.Extensions  `json:"extensions"`
}

func NewAssetReserveOperation

func NewAssetReserveOperation() *AssetReserveOperation

NewAssetReserveOperation creates a new AssetReserveOperation

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.GrapheneID  `json:"account"`
	Amount     types.AssetAmount `json:"amount"`
	Extensions types.Extensions  `json:"extensions"`
}

func NewAssetSettleOperation

func NewAssetSettleOperation() *AssetSettleOperation

NewAssetSettleOperation creates a new AssetSettleOperation

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.GrapheneID      `json:"asset_to_update"`
	Issuer        types.GrapheneID      `json:"issuer"`
	Extensions    types.Extensions      `json:"extensions"`
	NewOptions    types.BitassetOptions `json:"new_options"`
}

func NewAssetUpdateBitassetOperation

func NewAssetUpdateBitassetOperation() *AssetUpdateBitassetOperation

NewAssetUpdateBitassetOperation creates a new AssetUpdateBitassetOperation

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.GrapheneID  `json:"asset_to_update"`
	Extensions       types.Extensions  `json:"extensions"`
	Issuer           types.GrapheneID  `json:"issuer"`
	NewFeedProducers types.GrapheneIDs `json:"new_feed_producers"`
}

func NewAssetUpdateFeedProducersOperation

func NewAssetUpdateFeedProducersOperation() *AssetUpdateFeedProducersOperation

NewAssetUpdateFeedProducersOperation creates a new AssetUpdateFeedProducersOperation

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.GrapheneID   `json:"asset_to_update"`
	Issuer        types.GrapheneID   `json:"issuer"`
	Extensions    types.Extensions   `json:"extensions"`
	NewIssuer     *types.GrapheneID  `json:"new_issuer"`
	NewOptions    types.AssetOptions `json:"new_options"`
}

func NewAssetUpdateOperation

func NewAssetUpdateOperation() *AssetUpdateOperation

NewAssetUpdateOperation creates a new AssetUpdateOperation

func (AssetUpdateOperation) Marshal

func (p AssetUpdateOperation) Marshal(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.GrapheneID  `json:"balance_to_claim"`
	BalanceOwnerKey  types.PublicKey   `json:"balance_owner_key"`
	DepositToAccount types.GrapheneID  `json:"deposit_to_account"`
	TotalClaimed     types.AssetAmount `json:"total_claimed"`
}

func NewBalanceClaimOperation

func NewBalanceClaimOperation() *BalanceClaimOperation

NewBalanceClaimOperation creates a new BalanceClaimOperation

func (BalanceClaimOperation) Marshal

func (p BalanceClaimOperation) Marshal(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.GrapheneID  `json:"bidder"`
	DebtCovered          types.AssetAmount `json:"debt_covered"`
	Extensions           types.Extensions  `json:"extensions"`
}

func NewBidCollateralOperation

func NewBidCollateralOperation() *BidCollateralOperation

NewBidCollateralOperation creates a new BidCollateralOperation

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.GrapheneID                `json:"funding_account"`
	Extensions      types.CallOrderUpdateExtensions `json:"extensions"`
}

func NewCallOrderUpdateOperation

func NewCallOrderUpdateOperation(acct types.GrapheneID) *CallOrderUpdateOperation

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 FillOrderOperation

type FillOrderOperation struct {
	types.OperationFee
	OrderID   types.GrapheneID  `json:"order_id"`
	AccountID types.GrapheneID  `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 NewFillOrderOperation

func NewFillOrderOperation() *FillOrderOperation

NewFillOrderOperation creates a new FillOrderOperation

func (FillOrderOperation) Marshal

func (p FillOrderOperation) Marshal(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.GrapheneID `json:"fee_paying_account"`
	Order            types.GrapheneID `json:"order"`
	Extensions       types.Extensions `json:"extensions"`
}

func NewLimitOrderCancelOperation

func NewLimitOrderCancelOperation(order types.GrapheneID) *LimitOrderCancelOperation

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.GrapheneID  `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 atempt 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 NewLimitOrderCreateOperation

func NewLimitOrderCreateOperation() *LimitOrderCreateOperation

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.GrapheneID  `json:"from"`
	Issuer     types.GrapheneID  `json:"issuer"`
	Memo       *types.Memo       `json:"memo,omitempty"`
	To         types.GrapheneID  `json:"to"`
}

func NewOverrideTransferOperation

func NewOverrideTransferOperation() *OverrideTransferOperation

NewOverrideTransferOperation creates a new OverrideTransferOperation

func (OverrideTransferOperation) Marshal

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.GrapheneID               `json:"fee_paying_account"`
	ReviewPeriodSeconds *types.UInt32                  `json:"review_period_seconds,omitempty"`
	ProposedOps         types.OperationEnvelopeHolders `json:"proposed_ops"`
}

func NewProposalCreateOperation

func NewProposalCreateOperation() *ProposalCreateOperation

NewProposalCreateOperation creates a new ProposalCreateOperation

func (ProposalCreateOperation) Marshal

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.GrapheneID `json:"fee_paying_account"`
	Proposal            types.GrapheneID `json:"proposal"`
	UsingOwnerAuthority bool             `json:"using_owner_authority"`
}

func NewProposalDeleteOperation

func NewProposalDeleteOperation() *ProposalDeleteOperation

NewProposalDeleteOperation creates a new ProposalDeleteOperation

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.GrapheneIDs `json:"active_approvals_to_add"`
	ActiveApprovalsToRemove types.GrapheneIDs `json:"active_approvals_to_remove"`
	Extensions              types.Extensions  `json:"extensions"`
	FeePayingAccount        types.GrapheneID  `json:"fee_paying_account"`
	KeyApprovalsToAdd       types.GrapheneIDs `json:"key_approvals_to_add"`
	KeyApprovalsToRemove    types.GrapheneIDs `json:"key_approvals_to_remove"`
	OwnerApprovalsToAdd     types.GrapheneIDs `json:"owner_approvals_to_add"`
	OwnerApprovalsToRemove  types.GrapheneIDs `json:"owner_approvals_to_remove"`
	Proposal                types.GrapheneID  `json:"proposal"`
}

func NewProposalUpdateOperation

func NewProposalUpdateOperation() *ProposalUpdateOperation

NewProposalUpdateOperation creates a new ProposalUpdateOperation

func (ProposalUpdateOperation) Marshal

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 TransferOperation

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

func NewTransferOperation

func NewTransferOperation() *TransferOperation

NewTransferOperation creates a new TransferOperation

func (TransferOperation) Marshal

func (p TransferOperation) Marshal(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 VestingBalanceCreateOperation

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

func NewVestingBalanceCreateOperation

func NewVestingBalanceCreateOperation() *VestingBalanceCreateOperation

NewVestingBalanceCreateOperation creates a new VestingBalanceCreateOperation

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.GrapheneID  `json:"owner"`
	VestingBalance types.GrapheneID  `json:"vesting_balance"`
}

func NewVestingBalanceWithdrawOperation

func NewVestingBalanceWithdrawOperation() *VestingBalanceWithdrawOperation

NewVestingBalanceWithdrawOperation creates a new VestingBalanceWithdrawOperation

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 WitnessCreateOperation

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

func NewWitnessCreateOperation

func NewWitnessCreateOperation() *WitnessCreateOperation

NewWitnessCreateOperation creates a new WitnessCreateOperation

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"`
	NewURL         string           `json:"new_url"`
	Witness        types.GrapheneID `json:"witness"`
	WitnessAccount types.GrapheneID `json:"witness_account"`
}

func NewWitnessUpdateOperation

func NewWitnessUpdateOperation() *WitnessUpdateOperation

NewWitnessUpdateOperation creates a new WitnessUpdateOperation

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.GrapheneID        `json:"owner"`
	URL           string                  `json:"url"`
	WorkBeginDate types.Time              `json:"work_begin_date"`
	WorkEndDate   types.Time              `json:"work_end_date"`
}

func NewWorkerCreateOperation

func NewWorkerCreateOperation() *WorkerCreateOperation

NewWorkerCreateOperation creates a new WorkerCreateOperation

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