operations

package
v0.0.0-...-8e4544a Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONMarshal

func JSONMarshal(t interface{}) ([]byte, error)

JSONMarshal the function of packing with the processing of HTML tags.

Types

type AccountCreateOperation

type AccountCreateOperation struct {
	Fee            *types.Asset     `json:"fee"`
	Delegation     *types.Asset     `json:"delegation"`
	Creator        string           `json:"creator"`
	NewAccountName string           `json:"new_account_name"`
	Master         *types.Authority `json:"master"`
	Active         *types.Authority `json:"active"`
	Regular        *types.Authority `json:"regular"`
	MemoKey        string           `json:"memo_key"`
	JSONMetadata   string           `json:"json_metadata"`
	Referrer       string           `json:"referrer"`
	Extensions     []interface{}    `json:"extensions"`
}

AccountCreateOperation represents account_create operation data.

func (*AccountCreateOperation) Data

func (op *AccountCreateOperation) Data() interface{}

Data returns the operation data AccountCreateOperation.

func (*AccountCreateOperation) MarshalTransaction

func (op *AccountCreateOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type AccountCreateOperation to bytes.

func (*AccountCreateOperation) Type

func (op *AccountCreateOperation) Type() OpType

Type function that defines the type of operation AccountCreateOperation.

type AccountMetadataOperation

type AccountMetadataOperation struct {
	Account      string `json:"account"`
	JSONMetadata string `json:"json_metadata"`
}

AccountMetadataOperation represents account_metadata operation data.

func (*AccountMetadataOperation) Data

func (op *AccountMetadataOperation) Data() interface{}

Data returns the operation data AccountMetadataOperation.

func (*AccountMetadataOperation) MarshalTransaction

func (op *AccountMetadataOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type AccountMetadataOperation to bytes.

func (*AccountMetadataOperation) Type

func (op *AccountMetadataOperation) Type() OpType

Type function that defines the type of operation AccountMetadataOperation.

type AccountSaleOperation

type AccountSaleOperation struct {
	Account string      `json:"account"`
	Price   types.Asset `json:"price"`
	Buyer   string      `json:"buyer"`
	Seller  string      `json:"seller"`
}

AccountSaleOperation represents account_sale operation data.

func (*AccountSaleOperation) Data

func (op *AccountSaleOperation) Data() interface{}

Data returns the operation data AccountSaleOperation.

func (*AccountSaleOperation) Type

func (op *AccountSaleOperation) Type() OpType

Type function that defines the type of operation AccountSaleOperation.

type AccountUpdateOperation

type AccountUpdateOperation struct {
	Account      string           `json:"account"`
	Master       *types.Authority `json:"master,omitempty"`
	Active       *types.Authority `json:"active,omitempty"`
	Regular      *types.Authority `json:"regular,omitempty"`
	MemoKey      string           `json:"memo_key"`
	JSONMetadata string           `json:"json_metadata"`
}

AccountUpdateOperation represents account_update operation data.

func (*AccountUpdateOperation) Data

func (op *AccountUpdateOperation) Data() interface{}

Data returns the operation data AccountUpdateOperation.

func (*AccountUpdateOperation) MarshalTransaction

func (op *AccountUpdateOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type AccountUpdateOperation to bytes.

func (*AccountUpdateOperation) Type

func (op *AccountUpdateOperation) Type() OpType

Type function that defines the type of operation AccountUpdateOperation.

type AccountWitnessProxyOperation

type AccountWitnessProxyOperation struct {
	Account string `json:"account"`
	Proxy   string `json:"proxy"`
}

AccountWitnessProxyOperation represents account_witness_proxy operation data.

func (*AccountWitnessProxyOperation) Data

func (op *AccountWitnessProxyOperation) Data() interface{}

Data returns the operation data AccountWitnessProxyOperation.

func (*AccountWitnessProxyOperation) MarshalTransaction

func (op *AccountWitnessProxyOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type AccountWitnessProxyOperation to bytes.

func (*AccountWitnessProxyOperation) Type

Type function that defines the type of operation AccountWitnessProxyOperation.

type AccountWitnessVoteOperation

type AccountWitnessVoteOperation struct {
	Account string `json:"account"`
	Witness string `json:"witness"`
	Approve bool   `json:"approve"`
}

AccountWitnessVoteOperation represents account_witness_vote operation data.

func (*AccountWitnessVoteOperation) Data

func (op *AccountWitnessVoteOperation) Data() interface{}

Data returns the operation data AccountWitnessVoteOperation.

func (*AccountWitnessVoteOperation) MarshalTransaction

func (op *AccountWitnessVoteOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type AccountWitnessVoteOperation to bytes.

func (*AccountWitnessVoteOperation) Type

Type function that defines the type of operation AccountWitnessVoteOperation.

type AuthorRewardOperation

type AuthorRewardOperation struct {
	Author        string      `json:"author"`
	Permlink      string      `json:"permlink"`
	TokenPayout   types.Asset `json:"token_payout"`
	VestingPayout types.Asset `json:"vesting_payout"`
}

AuthorRewardOperation represents author_reward operation data.

func (*AuthorRewardOperation) Data

func (op *AuthorRewardOperation) Data() interface{}

Data returns the operation data AuthorRewardOperation.

func (*AuthorRewardOperation) Type

func (op *AuthorRewardOperation) Type() OpType

Type function that defines the type of operation AuthorRewardOperation.

type AwardOperation

type AwardOperation struct {
	Initiator      string              `json:"initiator"`
	Receiver       string              `json:"receiver"`
	Energy         uint16              `json:"energy"`
	CustomSequence uint64              `json:"custom_sequence"`
	Memo           string              `json:"memo"`
	Beneficiaries  []types.Beneficiary `json:"beneficiaries"`
}

AwardOperation represents award operation data.

func (*AwardOperation) Data

func (op *AwardOperation) Data() interface{}

Data returns the operation data AwardOperation.

func (*AwardOperation) MarshalTransaction

func (op *AwardOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type AwardOperation to bytes.

func (*AwardOperation) Type

func (op *AwardOperation) Type() OpType

Type function that defines the type of operation AwardOperation.

type BenefactorAwardOperation

type BenefactorAwardOperation struct {
	Initiator      string      `json:"initiator"`
	Benefactor     string      `json:"benefactor"`
	Receiver       string      `json:"receiver"`
	CustomSequence uint64      `json:"custom_sequence"`
	Memo           string      `json:"memo"`
	Shares         types.Asset `json:"shares"`
}

BenefactorAwardOperation represents benefactor_award operation data.

func (*BenefactorAwardOperation) Data

func (op *BenefactorAwardOperation) Data() interface{}

Data returns the operation data BenefactorAwardOperation.

func (*BenefactorAwardOperation) Type

func (op *BenefactorAwardOperation) Type() OpType

Type function that defines the type of operation BenefactorAwardOperation.

type BuyAccountOperation

type BuyAccountOperation struct {
	Buyer                 string       `json:"buyer"`
	Account               string       `json:"account"`
	AccountOfferPrice     *types.Asset `json:"account_offer_price"`
	AccountAuthoritiesKey string       `json:"account_authorities_key"`
	TokensToShares        *types.Asset `json:"tokens_to_shares"`
}

BuyAccountOperation represents buy_account operation data.

func (*BuyAccountOperation) Data

func (op *BuyAccountOperation) Data() interface{}

Data returns the operation data BuyAccountOperation.

func (*BuyAccountOperation) MarshalTransaction

func (op *BuyAccountOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type BuyAccountOperation to bytes.

func (*BuyAccountOperation) Type

func (op *BuyAccountOperation) Type() OpType

Type function that defines the type of operation BuyAccountOperation.

type CallbackBlockOperations

type CallbackBlockOperations struct {
	TrxInBlock    int       `json:"trx_in_block"`
	OpInTrx       int       `json:"op_in_trx"`
	VirtualOp     int       `json:"virtual_op"`
	Operation     Operation `json:"op"`
	OperationType OpType    `json:"-"`
}

func (*CallbackBlockOperations) MarshalJSON

func (op *CallbackBlockOperations) MarshalJSON() ([]byte, error)

MarshalJSON function for packing the CallbackBlockOperations type in JSON.

func (*CallbackBlockOperations) UnmarshalJSON

func (op *CallbackBlockOperations) UnmarshalJSON(p []byte) error

UnmarshalJSON unpacking the JSON parameter in the CallbackBlockOperations type.

type CancelPaidSubscriptionOperation

type CancelPaidSubscriptionOperation struct {
	Subscriber string `json:"subscriber"`
	Account    string `json:"account"`
}

CancelPaidSubscriptionOperation represents cancel_paid_subscription operation data.

func (*CancelPaidSubscriptionOperation) Data

func (op *CancelPaidSubscriptionOperation) Data() interface{}

Data returns the operation data CancelPaidSubscriptionOperation.

func (*CancelPaidSubscriptionOperation) Type

Type function that defines the type of operation CancelPaidSubscriptionOperation.

type ChainPropertiesUpdateOperation

type ChainPropertiesUpdateOperation struct {
	Owner string                    `json:"owner"`
	Props *types.ChainPropertiesOLD `json:"props"`
}

ChainPropertiesUpdateOperation represents chain_properties_update operation data.

func (*ChainPropertiesUpdateOperation) Data

func (op *ChainPropertiesUpdateOperation) Data() interface{}

Data returns the operation data ChainPropertiesUpdateOperation.

func (*ChainPropertiesUpdateOperation) MarshalTransaction

func (op *ChainPropertiesUpdateOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type ChainPropertiesUpdateOperation to bytes.

func (*ChainPropertiesUpdateOperation) Type

Type function that defines the type of operation ChainPropertiesUpdateOperation.

type ChangeRecoveryAccountOperation

type ChangeRecoveryAccountOperation struct {
	AccountToRecover   string        `json:"account_to_recover"`
	NewRecoveryAccount string        `json:"new_recovery_account"`
	Extensions         []interface{} `json:"extensions"`
}

ChangeRecoveryAccountOperation represents change_recovery_account operation data.

func (*ChangeRecoveryAccountOperation) Data

func (op *ChangeRecoveryAccountOperation) Data() interface{}

Data returns the operation data ChangeRecoveryAccountOperation.

func (*ChangeRecoveryAccountOperation) MarshalTransaction

func (op *ChangeRecoveryAccountOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type ChangeRecoveryAccountOperation to bytes.

func (*ChangeRecoveryAccountOperation) Type

Type function that defines the type of operation ChangeRecoveryAccountOperation.

type ClaimInviteBalanceOperation

type ClaimInviteBalanceOperation struct {
	Initiator    string `json:"initiator"`
	Receiver     string `json:"receiver"`
	InviteSecret string `json:"invite_secret"`
}

ClaimInviteBalanceOperation represents claim_invite_balance operation data.

func (*ClaimInviteBalanceOperation) Data

func (op *ClaimInviteBalanceOperation) Data() interface{}

Data returns the operation data ClaimInviteBalanceOperation.

func (*ClaimInviteBalanceOperation) MarshalTransaction

func (op *ClaimInviteBalanceOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type ClaimInviteBalanceOperation to bytes.

func (*ClaimInviteBalanceOperation) Type

Type function that defines the type of operation ClaimInviteBalanceOperation.

type CommitteeApproveRequestOperation

type CommitteeApproveRequestOperation struct {
	RequestID uint32 `json:"request_id"`
}

CommitteeApproveRequestOperation represents committee_approve_request operation data.

func (*CommitteeApproveRequestOperation) Data

func (op *CommitteeApproveRequestOperation) Data() interface{}

Data returns the operation data CommitteeApproveRequestOperation.

func (*CommitteeApproveRequestOperation) Type

Type function that defines the type of operation CommitteeApproveRequestOperation.

type CommitteeCancelRequestOperation

type CommitteeCancelRequestOperation struct {
	RequestID uint32 `json:"request_id"`
}

CommitteeCancelRequestOperation represents committee_cancel_request operation data.

func (*CommitteeCancelRequestOperation) Data

func (op *CommitteeCancelRequestOperation) Data() interface{}

Data returns the operation data CommitteeCancelRequestOperation.

func (*CommitteeCancelRequestOperation) Type

Type function that defines the type of operation CommitteeCancelRequestOperation.

type CommitteePayRequestOperation

type CommitteePayRequestOperation struct {
	Worker    string      `json:"worker"`
	RequestID uint32      `json:"request_id"`
	Tokens    types.Asset `json:"tokens"`
}

CommitteePayRequestOperation represents committee_pay_request operation data.

func (*CommitteePayRequestOperation) Data

func (op *CommitteePayRequestOperation) Data() interface{}

Data returns the operation data CommitteePayRequestOperation.

func (*CommitteePayRequestOperation) Type

Type function that defines the type of operation CommitteePayRequestOperation.

type CommitteePayoutRequestOperation

type CommitteePayoutRequestOperation struct {
	RequestID uint32 `json:"request_id"`
}

CommitteePayoutRequestOperation represents committee_payout_request operation data.

func (*CommitteePayoutRequestOperation) Data

func (op *CommitteePayoutRequestOperation) Data() interface{}

Data returns the operation data CommitteePayoutRequestOperation.

func (*CommitteePayoutRequestOperation) Type

Type function that defines the type of operation CommitteePayoutRequestOperation.

type CommitteeVoteRequestOperation

type CommitteeVoteRequestOperation struct {
	Voter       string `json:"voter"`
	RequestID   uint32 `json:"request_id"`
	VotePercent int16  `json:"vote_percent"`
}

CommitteeVoteRequestOperation represents committee_vote_request operation data.

func (*CommitteeVoteRequestOperation) Data

func (op *CommitteeVoteRequestOperation) Data() interface{}

Data returns the operation data CommitteeVoteRequestOperation.

func (*CommitteeVoteRequestOperation) MarshalTransaction

func (op *CommitteeVoteRequestOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type CommitteeVoteRequestOperation to bytes.

func (*CommitteeVoteRequestOperation) Type

Type function that defines the type of operation CommitteeVoteRequestOperation.

type CommitteeWorkerCancelRequestOperation

type CommitteeWorkerCancelRequestOperation struct {
	Creator   string `json:"creator"`
	RequestID uint32 `json:"request_id"`
}

CommitteeWorkerCancelRequestOperation represents committee_worker_cancel_request operation data.

func (*CommitteeWorkerCancelRequestOperation) Data

func (op *CommitteeWorkerCancelRequestOperation) Data() interface{}

Data returns the operation data CommitteeWorkerCancelRequestOperation.

func (*CommitteeWorkerCancelRequestOperation) MarshalTransaction

func (op *CommitteeWorkerCancelRequestOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type CommitteeWorkerCancelRequestOperation to bytes.

func (*CommitteeWorkerCancelRequestOperation) Type

Type function that defines the type of operation CommitteeWorkerCancelRequestOperation.

type CommitteeWorkerCreateRequestOperation

type CommitteeWorkerCreateRequestOperation struct {
	Creator           string       `json:"creator"`
	URL               string       `json:"url"`
	Worker            string       `json:"worker"`
	RequiredAmountMin *types.Asset `json:"required_amount_min"`
	RequiredAmountMax *types.Asset `json:"required_amount_max"`
	Duration          uint32       `json:"duration"`
}

CommitteeWorkerCreateRequestOperation represents committee_worker_create_request operation data.

func (*CommitteeWorkerCreateRequestOperation) Data

func (op *CommitteeWorkerCreateRequestOperation) Data() interface{}

Data returns the operation data CommitteeWorkerCreateRequestOperation.

func (*CommitteeWorkerCreateRequestOperation) MarshalTransaction

func (op *CommitteeWorkerCreateRequestOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type CommitteeWorkerCreateRequestOperation to bytes.

func (*CommitteeWorkerCreateRequestOperation) Type

Type function that defines the type of operation CommitteeWorkerCreateRequestOperation.

type ContentBenefactorRewardOperation

type ContentBenefactorRewardOperation struct {
	Benefactor string      `json:"benefactor"`
	Author     string      `json:"author"`
	Permlink   string      `json:"permlink"`
	Reward     types.Asset `json:"reward"`
}

ContentBenefactorRewardOperation represents content_benefactor_reward operation data.

func (*ContentBenefactorRewardOperation) Data

func (op *ContentBenefactorRewardOperation) Data() interface{}

Data returns the operation data ContentBenefactorRewardOperation.

func (*ContentBenefactorRewardOperation) Type

Type function that defines the type of operation ContentBenefactorRewardOperation.

type ContentOperation

type ContentOperation struct {
	ParentAuthor   string        `json:"parent_author"`
	ParentPermlink string        `json:"parent_permlink"`
	Author         string        `json:"author"`
	Permlink       string        `json:"permlink"`
	Title          string        `json:"title"`
	Body           string        `json:"body"`
	JSONMetadata   string        `json:"json_metadata"`
	Extensions     []interface{} `json:"extensions"`
}

ContentOperation represents content operation data.

func (*ContentOperation) Data

func (op *ContentOperation) Data() interface{}

Data returns the operation data ContentOperation.

func (*ContentOperation) IsStory

func (op *ContentOperation) IsStory() bool

IsStory function specifies the type of publication.

func (*ContentOperation) MarshalTransaction

func (op *ContentOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type ContentOperation to bytes.

func (*ContentOperation) Type

func (op *ContentOperation) Type() OpType

Type function that defines the type of operation ContentOperation.

type ContentPayoutUpdateOperation

type ContentPayoutUpdateOperation struct {
	Author   string `json:"author"`
	Permlink string `json:"permlink"`
}

ContentPayoutUpdateOperation represents content_payout_update operation data.

func (*ContentPayoutUpdateOperation) Data

func (op *ContentPayoutUpdateOperation) Data() interface{}

Data returns the operation data ContentPayoutUpdateOperation.

func (*ContentPayoutUpdateOperation) Type

Type function that defines the type of operation ContentPayoutUpdateOperation.

type ContentRewardOperation

type ContentRewardOperation struct {
	Author   string      `json:"author"`
	Permlink string      `json:"permlink"`
	Payout   types.Asset `json:"payout"`
}

ContentRewardOperation represents content_reward operation data.

func (*ContentRewardOperation) Data

func (op *ContentRewardOperation) Data() interface{}

Data returns the operation data ContentRewardOperation.

func (*ContentRewardOperation) Type

func (op *ContentRewardOperation) Type() OpType

Type function that defines the type of operation ContentRewardOperation.

type CreateInviteOperation

type CreateInviteOperation struct {
	Creator   string       `json:"creator"`
	Balance   *types.Asset `json:"balance"`
	InviteKey string       `json:"invite_key"`
}

CreateInviteOperation represents create_invite operation data.

func (*CreateInviteOperation) Data

func (op *CreateInviteOperation) Data() interface{}

Data returns the operation data CreateInviteOperation.

func (*CreateInviteOperation) MarshalTransaction

func (op *CreateInviteOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type CreateInviteOperation to bytes.

func (*CreateInviteOperation) Type

func (op *CreateInviteOperation) Type() OpType

Type function that defines the type of operation CreateInviteOperation.

type CurationRewardOperation

type CurationRewardOperation struct {
	Curator         string      `json:"curator"`
	Reward          types.Asset `json:"reward"`
	CommentAuthor   string      `json:"comment_author"`
	CommentPermlink string      `json:"comment_permlink"`
}

CurationRewardOperation represents curation_reward operation data.

func (*CurationRewardOperation) Data

func (op *CurationRewardOperation) Data() interface{}

Data returns the operation data CurationRewardOperation.

func (*CurationRewardOperation) Type

func (op *CurationRewardOperation) Type() OpType

Type function that defines the type of operation CurationRewardOperation.

type CustomOperation

type CustomOperation struct {
	RequiredActiveAuths  []string `json:"required_active_auths"`
	RequiredRegularAuths []string `json:"required_regular_auths"`
	ID                   string   `json:"id"`
	JSON                 string   `json:"json"`
}

CustomOperation represents custom operation data.

func (*CustomOperation) Data

func (op *CustomOperation) Data() interface{}

Data returns the operation data.

func (*CustomOperation) MarshalTransaction

func (op *CustomOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type CustomOperation to bytes.

func (*CustomOperation) Type

func (op *CustomOperation) Type() OpType

Type function that defines the type of operation.

type DelegateVestingSharesOperation

type DelegateVestingSharesOperation struct {
	Delegator     string       `json:"delegator"`
	Delegatee     string       `json:"delegatee"`
	VestingShares *types.Asset `json:"vesting_shares"`
}

DelegateVestingSharesOperation represents delegate_vesting_shares operation data.

func (*DelegateVestingSharesOperation) Data

func (op *DelegateVestingSharesOperation) Data() interface{}

Data returns the operation data DelegateVestingSharesOperation.

func (*DelegateVestingSharesOperation) MarshalTransaction

func (op *DelegateVestingSharesOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type DelegateVestingSharesOperation to bytes.

func (*DelegateVestingSharesOperation) Type

Type function that defines the type of operation DelegateVestingSharesOperation.

type DeleteContentOperation

type DeleteContentOperation struct {
	Author   string `json:"author"`
	Permlink string `json:"permlink"`
}

DeleteContentOperation represents delete_content operation data.

func (*DeleteContentOperation) Data

func (op *DeleteContentOperation) Data() interface{}

Data returns the operation data DeleteContentOperation.

func (*DeleteContentOperation) MarshalTransaction

func (op *DeleteContentOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type DeleteContentOperation to bytes.

func (*DeleteContentOperation) Type

func (op *DeleteContentOperation) Type() OpType

Type function that defines the type of operation DeleteContentOperation.

type EscrowApproveOperation

type EscrowApproveOperation struct {
	From     string `json:"from"`
	To       string `json:"to"`
	Agent    string `json:"agent"`
	Who      string `json:"who"`
	EscrowID uint32 `json:"escrow_id"`
	Approve  bool   `json:"approve"`
}

EscrowApproveOperation represents escrow_approve operation data.

func (*EscrowApproveOperation) Data

func (op *EscrowApproveOperation) Data() interface{}

Data returns the operation data EscrowApproveOperation.

func (*EscrowApproveOperation) MarshalTransaction

func (op *EscrowApproveOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type EscrowApproveOperation to bytes.

func (*EscrowApproveOperation) Type

func (op *EscrowApproveOperation) Type() OpType

Type function that defines the type of operation EscrowApproveOperation.

type EscrowDisputeOperation

type EscrowDisputeOperation struct {
	From     string `json:"from"`
	To       string `json:"to"`
	Agent    string `json:"agent"`
	Who      string `json:"who"`
	EscrowID uint32 `json:"escrow_id"`
}

EscrowDisputeOperation represents escrow_dispute operation data.

func (*EscrowDisputeOperation) Data

func (op *EscrowDisputeOperation) Data() interface{}

Data returns the operation data EscrowDisputeOperation.

func (*EscrowDisputeOperation) MarshalTransaction

func (op *EscrowDisputeOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type EscrowDisputeOperation to bytes.

func (*EscrowDisputeOperation) Type

func (op *EscrowDisputeOperation) Type() OpType

Type function that defines the type of operation EscrowDisputeOperation.

type EscrowReleaseOperation

type EscrowReleaseOperation struct {
	From        string       `json:"from"`
	To          string       `json:"to"`
	Agent       string       `json:"agent"`
	Who         string       `json:"who"`
	Receiver    string       `json:"receiver"`
	EscrowID    uint32       `json:"escrow_id"`
	TokenAmount *types.Asset `json:"token_amount"`
}

EscrowReleaseOperation represents escrow_release operation data.

func (*EscrowReleaseOperation) Data

func (op *EscrowReleaseOperation) Data() interface{}

Data returns the operation data EscrowReleaseOperation.

func (*EscrowReleaseOperation) MarshalTransaction

func (op *EscrowReleaseOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type EscrowReleaseOperation to bytes.

func (*EscrowReleaseOperation) Type

func (op *EscrowReleaseOperation) Type() OpType

Type function that defines the type of operation EscrowReleaseOperation.

type EscrowTransferOperation

type EscrowTransferOperation struct {
	From                 string       `json:"from"`
	To                   string       `json:"to"`
	Agent                string       `json:"agent"`
	EscrowID             uint32       `json:"escrow_id"`
	TokenAmount          *types.Asset `json:"token_amount"`
	Fee                  *types.Asset `json:"fee"`
	RatificationDeadline *types.Time  `json:"ratification_deadline"`
	EscrowExpiration     *types.Time  `json:"escrow_expiration"`
	JSONMeta             string       `json:"json_meta"`
}

EscrowTransferOperation represents escrow_transfer operation data.

func (*EscrowTransferOperation) Data

func (op *EscrowTransferOperation) Data() interface{}

Data returns the operation data EscrowTransferOperation.

func (*EscrowTransferOperation) MarshalTransaction

func (op *EscrowTransferOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type EscrowTransferOperation to bytes.

func (*EscrowTransferOperation) Type

func (op *EscrowTransferOperation) Type() OpType

Type function that defines the type of operation EscrowTransferOperation.

type FillVestingWithdrawOperation

type FillVestingWithdrawOperation struct {
	FromAccount string      `json:"from_account"`
	ToAccount   string      `json:"to_account"`
	Withdrawn   types.Asset `json:"withdrawn"`
	Deposited   types.Asset `json:"deposited"`
}

FillVestingWithdrawOperation represents fill_vesting_withdraw operation data.

func (*FillVestingWithdrawOperation) Data

func (op *FillVestingWithdrawOperation) Data() interface{}

Data returns the operation data FillVestingWithdrawOperation.

func (*FillVestingWithdrawOperation) Type

Type function that defines the type of operation FillVestingWithdrawOperation.

type HardforkOperation

type HardforkOperation struct {
	HardforkID uint32 `json:"hardfork_id"`
}

HardforkOperation represents hardfork operation data.

func (*HardforkOperation) Data

func (op *HardforkOperation) Data() interface{}

Data returns the operation data HardforkOperation.

func (*HardforkOperation) Type

func (op *HardforkOperation) Type() OpType

Type function that defines the type of operation HardforkOperation.

type InviteRegistrationOperation

type InviteRegistrationOperation struct {
	Initiator      string `json:"initiator"`
	NewAccountName string `json:"new_account_name"`
	InviteSecret   string `json:"invite_secret"`
	NewAccountKey  string `json:" new_account_key"`
}

InviteRegistrationOperation represents invite_registration operation data.

func (*InviteRegistrationOperation) Data

func (op *InviteRegistrationOperation) Data() interface{}

Data returns the operation data InviteRegistrationOperation.

func (*InviteRegistrationOperation) MarshalTransaction

func (op *InviteRegistrationOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type InviteRegistrationOperation to bytes.

func (*InviteRegistrationOperation) Type

Type function that defines the type of operation InviteRegistrationOperation.

type OpType

type OpType string

OpType represents a Golos operation type, i.e. vote, content and so on.

const (
	TypeVote                           OpType = "vote"
	TypeContent                        OpType = "content"
	TypeTransfer                       OpType = "transfer"
	TypeTransferToVesting              OpType = "transfer_to_vesting"
	TypeWithdrawVesting                OpType = "withdraw_vesting"
	TypeAccountUpdate                  OpType = "account_update"
	TypeWitnessUpdate                  OpType = "witness_update"
	TypeAccountWitnessVote             OpType = "account_witness_vote"
	TypeAccountWitnessProxy            OpType = "account_witness_proxy"
	TypeDeleteContent                  OpType = "delete_content"
	TypeCustom                         OpType = "custom"
	TypeSetWithdrawVestingRoute        OpType = "set_withdraw_vesting_route"
	TypeRequestAccountRecovery         OpType = "request_account_recovery"
	TypeRecoverAccount                 OpType = "recover_account"
	TypeChangeRecoveryAccount          OpType = "change_recovery_account"
	TypeEscrowTransfer                 OpType = "escrow_transfer"
	TypeEscrowDispute                  OpType = "escrow_dispute"
	TypeEscrowRelease                  OpType = "escrow_release"
	TypeEscrowApprove                  OpType = "escrow_approve"
	TypeDelegateVestingShares          OpType = "delegate_vesting_shares"
	TypeAccountCreate                  OpType = "account_create"
	TypeAccountMetadata                OpType = "account_metadata"
	TypeProposalCreate                 OpType = "proposal_create"
	TypeProposalUpdate                 OpType = "proposal_update"
	TypeProposalDelete                 OpType = "proposal_delete"
	TypeChainPropertiesUpdate          OpType = "chain_properties_update"
	TypeAuthorReward                   OpType = "author_reward"             //Virtual Operation
	TypeCurationReward                 OpType = "curation_reward"           //Virtual Operation
	TypeContentReward                  OpType = "content_reward"            //Virtual Operation
	TypeFillVestingWithdraw            OpType = "fill_vesting_withdraw"     //Virtual Operation
	TypeShutdownWitness                OpType = "shutdown_witness"          //Virtual Operation
	TypeHardfork                       OpType = "hardfork"                  //Virtual Operation
	TypeContentPayoutUpdate            OpType = "content_payout_update"     //Virtual Operation
	TypeContentBenefactorReward        OpType = "content_benefactor_reward" //Virtual Operation
	TypeReturnVestingDelegation        OpType = "return_vesting_delegation" //Virtual Operation
	TypeCommitteeWorkerCreateRequest   OpType = "committee_worker_create_request"
	TypeCommitteeWorkerCancelRequest   OpType = "committee_worker_cancel_request"
	TypeCommitteeVoteRequest           OpType = "committee_vote_request"
	TypeCommitteeCancelRequest         OpType = "committee_cancel_request"  //Virtual Operation
	TypeCommitteeApproveRequest        OpType = "committee_approve_request" //Virtual Operation
	TypeCommitteePayoutRequest         OpType = "committee_payout_request"  //Virtual Operation
	TypeCommitteePayRequest            OpType = "committee_pay_request"     //Virtual Operation
	TypeWitnessReward                  OpType = "witness_reward"            //Virtual Operation
	TypeCreateInvite                   OpType = "create_invite"
	TypeClaimInviteBalance             OpType = "claim_invite_balance"
	TypeInviteRegistration             OpType = "invite_registration"
	TypeVersionedChainPropertiesUpdate OpType = "versioned_chain_properties_update"
	TypeAward                          OpType = "award"
	TypeReceiveAward                   OpType = "receive_award"    //Virtual Operation
	TypeBenefactorAward                OpType = "benefactor_award" //Virtual Operation
	TypeSetPaidSubscription            OpType = "set_paid_subscription"
	TypePaidSubscribe                  OpType = "paid_subscribe"
	TypePaidSubscriptionAction         OpType = "paid_subscription_action" //Virtual Operation
	TypeCancelPaidSubscription         OpType = "cancel_paid_subscription" //Virtual Operation
	TypeSetAccountPrice                OpType = "set_account_price"
	TypeSetSubaccountPrice             OpType = "set_subaccount_price"
	TypeBuyAccount                     OpType = "buy_account"
	TypeAccountSale                    OpType = "account_sale" //Virtual Operation
)

func (OpType) Code

func (kind OpType) Code() uint16

Code returns the operation code associated with the given operation type.

type Operation

type Operation interface {
	// Type returns the operation type as present in the operation object, element [0].
	Type() OpType

	// Data returns the operation data as present in the operation object, element [1].
	//
	// When the operation type is known to this package, this field contains
	// the operation data object associated with the given operation type,
	// e.g. Type is TypeVote -> Data contains *VoteOperation.
	// Otherwise this field contains raw JSON (type *json.RawMessage).
	Data() interface{}
}

Operation represents an operation stored in a transaction.

type OperationObject

type OperationObject struct {
	BlockNumber            uint32      `json:"block"`
	TransactionID          string      `json:"trx_id"`
	TransactionInBlock     uint32      `json:"trx_in_block"`
	Operation              Operation   `json:"op"`
	OperationType          OpType      `json:"-"`
	OperationInTransaction uint16      `json:"op_in_trx"`
	VirtualOperation       uint64      `json:"virtual_op"`
	Timestamp              *types.Time `json:"timestamp"`
}

OperationObject type from parameter JSON

func (*OperationObject) MarshalJSON

func (op *OperationObject) MarshalJSON() ([]byte, error)

MarshalJSON function for packing the OperationObject type in JSON.

func (*OperationObject) UnmarshalJSON

func (op *OperationObject) UnmarshalJSON(p []byte) error

UnmarshalJSON unpacking the JSON parameter in the OperationObject type.

type Operations

type Operations []Operation

Operations structure from the set Operation.

func (Operations) MarshalJSON

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

MarshalJSON function for packing the Operations type in JSON.

func (*Operations) UnmarshalJSON

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

UnmarshalJSON unpacking the JSON parameter in the Operations type.

type PaidSubscribeOperation

type PaidSubscribeOperation struct {
	Subscriber  string       `json:"subscriber"`
	Account     string       `json:"account"`
	Level       uint16       `json:"level"`
	Amount      *types.Asset `json:"amount"`
	Period      uint16       `json:"period"`
	AutoRenewal bool         `json:"auto_renewal"`
}

PaidSubscribeOperation represents paid_subscribe operation data.

func (*PaidSubscribeOperation) Data

func (op *PaidSubscribeOperation) Data() interface{}

Data returns the operation data PaidSubscribeOperation.

func (*PaidSubscribeOperation) MarshalTransaction

func (op *PaidSubscribeOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type PaidSubscribeOperation to bytes.

func (*PaidSubscribeOperation) Type

func (op *PaidSubscribeOperation) Type() OpType

Type function that defines the type of operation PaidSubscribeOperation.

type PaidSubscriptionActionOperation

type PaidSubscriptionActionOperation struct {
	Subscriber         string      `json:"subscriber"`
	Account            string      `json:"account"`
	Level              uint16      `json:"level"`
	Amount             types.Asset `json:"amount"`
	Period             uint16      `json:"period"`
	SummaryDurationSec uint64      `json:"summary_duration_sec"`
	SummaryAmount      types.Asset `json:"summary_amount"`
}

PaidSubscriptionActionOperation represents paid_subscription_action operation data.

func (*PaidSubscriptionActionOperation) Data

func (op *PaidSubscriptionActionOperation) Data() interface{}

Data returns the operation data PaidSubscriptionActionOperation.

func (*PaidSubscriptionActionOperation) Type

Type function that defines the type of operation PaidSubscriptionActionOperation.

type ProposalCreateOperation

type ProposalCreateOperation struct {
	Author             string            `json:"author"`
	Title              string            `json:"title"`
	Memo               string            `json:"memo"`
	ExpirationTime     *types.Time       `json:"expiration_time"`
	ProposedOperations []ProposalObjects `json:"proposed_operations"`
	ReviewPeriodTime   *types.Time       `json:"review_period_time,omnitempty"`
	Extensions         []interface{}     `json:"extensions"`
}

ProposalCreateOperation represents proposal_create operation data.

func (*ProposalCreateOperation) Data

func (op *ProposalCreateOperation) Data() interface{}

Data returns the operation data ProposalCreateOperation.

func (*ProposalCreateOperation) MarshalTransaction

func (op *ProposalCreateOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type ProposalCreateOperation to bytes.

func (*ProposalCreateOperation) Type

func (op *ProposalCreateOperation) Type() OpType

Type function that defines the type of operation ProposalCreateOperation.

type ProposalDeleteOperation

type ProposalDeleteOperation struct {
	Author     string        `json:"author"`
	Title      string        `json:"title"`
	Requester  string        `json:"requester"`
	Extensions []interface{} `json:"extensions"`
}

ProposalDeleteOperation represents proposal_delete operation data.

func (*ProposalDeleteOperation) Data

func (op *ProposalDeleteOperation) Data() interface{}

Data returns the operation data ProposalDeleteOperation.

func (*ProposalDeleteOperation) MarshalTransaction

func (op *ProposalDeleteOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type ProposalDeleteOperation to bytes.

func (*ProposalDeleteOperation) Type

func (op *ProposalDeleteOperation) Type() OpType

Type function that defines the type of operation ProposalDeleteOperation.

type ProposalObject

type ProposalObject struct {
	Operation     Operation `json:"op"`
	OperationType OpType    `json:"-"`
}

ProposalObject type from parameter JSON

func (*ProposalObject) MarshalJSON

func (op *ProposalObject) MarshalJSON() ([]byte, error)

MarshalJSON function for packing the ProposalObject type in JSON.

func (*ProposalObject) UnmarshalJSON

func (op *ProposalObject) UnmarshalJSON(p []byte) error

UnmarshalJSON unpacking the JSON parameter in the ProposalObject type.

type ProposalObjects

type ProposalObjects []ProposalObject

ProposalObjects array of values of type ProposalObject.

func (ProposalObjects) MarshalTransaction

func (op ProposalObjects) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type ProposalObjects to bytes.

type ProposalUpdateOperation

type ProposalUpdateOperation struct {
	Author                   string        `json:"author"`
	Title                    string        `json:"title"`
	ActiveApprovalsToAdd     []string      `json:"active_approvals_to_add"`
	ActiveApprovalsToRemove  []string      `json:"active_approvals_to_remove"`
	MasterApprovalsToAdd     []string      `json:"master_approvals_to_add"`
	MasterApprovalsToRemove  []string      `json:"master_approvals_to_remove"`
	RegularApprovalsToAdd    []string      `json:"regular_approvals_to_add"`
	RegularApprovalsToRemove []string      `json:"regular_approvals_to_remove"`
	KeyApprovalsToAdd        []string      `json:"key_approvals_to_add"`
	KeyApprovalsToRemove     []string      `json:"key_approvals_to_remove"`
	Extensions               []interface{} `json:"extensions"`
}

ProposalUpdateOperation represents proposal_update operation data.

func (*ProposalUpdateOperation) Data

func (op *ProposalUpdateOperation) Data() interface{}

Data returns the operation data ProposalUpdateOperation.

func (*ProposalUpdateOperation) MarshalTransaction

func (op *ProposalUpdateOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type ProposalUpdateOperation to bytes.

func (*ProposalUpdateOperation) Type

func (op *ProposalUpdateOperation) Type() OpType

Type function that defines the type of operation ProposalUpdateOperation.

type ReceiveAwardOperation

type ReceiveAwardOperation struct {
	Initiator      string      `json:"initiator"`
	Receiver       string      `json:"receiver"`
	CustomSequence uint64      `json:"custom_sequence"`
	Memo           string      `json:"memo"`
	Shares         types.Asset `json:"shares"`
}

ReceiveAwardOperation represents receive_award operation data.

func (*ReceiveAwardOperation) Data

func (op *ReceiveAwardOperation) Data() interface{}

Data returns the operation data ReceiveAwardOperation.

func (*ReceiveAwardOperation) Type

func (op *ReceiveAwardOperation) Type() OpType

Type function that defines the type of operation ReceiveAwardOperation.

type RecoverAccountOperation

type RecoverAccountOperation struct {
	AccountToRecover      string           `json:"account_to_recover"`
	NewMasterAuthority    *types.Authority `json:"new_master_authority"`
	RecentMasterAuthority *types.Authority `json:"recent_master_authority"`
	Extensions            []interface{}    `json:"extensions"`
}

RecoverAccountOperation represents recover_account operation data.

func (*RecoverAccountOperation) Data

func (op *RecoverAccountOperation) Data() interface{}

Data returns the operation data RecoverAccountOperation.

func (*RecoverAccountOperation) MarshalTransaction

func (op *RecoverAccountOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type RecoverAccountOperation to bytes.

func (*RecoverAccountOperation) Type

func (op *RecoverAccountOperation) Type() OpType

Type function that defines the type of operation RecoverAccountOperation.

type RequestAccountRecoveryOperation

type RequestAccountRecoveryOperation struct {
	RecoveryAccount    string           `json:"recovery_account"`
	AccountToRecover   string           `json:"account_to_recover"`
	NewMasterAuthority *types.Authority `json:"new_master_authority"`
	Extensions         []interface{}    `json:"extensions"`
}

RequestAccountRecoveryOperation represents request_account_recovery operation data.

func (*RequestAccountRecoveryOperation) Data

func (op *RequestAccountRecoveryOperation) Data() interface{}

Data returns the operation data RequestAccountRecoveryOperation.

func (*RequestAccountRecoveryOperation) MarshalTransaction

func (op *RequestAccountRecoveryOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type RequestAccountRecoveryOperation to bytes.

func (*RequestAccountRecoveryOperation) Type

Type function that defines the type of operation RequestAccountRecoveryOperation.

type ReturnVestingDelegationOperation

type ReturnVestingDelegationOperation struct {
	Account       string      `json:"account"`
	VestingShares types.Asset `json:"vesting_shares"`
}

ReturnVestingDelegationOperation represents return_vesting_delegation operation data.

func (*ReturnVestingDelegationOperation) Data

func (op *ReturnVestingDelegationOperation) Data() interface{}

Data returns the operation data ReturnVestingDelegationOperation.

func (*ReturnVestingDelegationOperation) Type

Type function that defines the type of operation ReturnVestingDelegationOperation.

type SetAccountPriceOperation

type SetAccountPriceOperation struct {
	Account           string       `json:"account"`
	AccountSeller     string       `json:"account_seller"`
	AccountOfferPrice *types.Asset `json:"account_offer_price"`
	AccountOnSale     bool         `json:"account_on_sale"`
}

SetAccountPriceOperation represents set_account_price operation data.

func (*SetAccountPriceOperation) Data

func (op *SetAccountPriceOperation) Data() interface{}

Data returns the operation data SetAccountPriceOperation.

func (*SetAccountPriceOperation) MarshalTransaction

func (op *SetAccountPriceOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type SetAccountPriceOperation to bytes.

func (*SetAccountPriceOperation) Type

func (op *SetAccountPriceOperation) Type() OpType

Type function that defines the type of operation SetAccountPriceOperation.

type SetPaidSubscriptionOperation

type SetPaidSubscriptionOperation struct {
	Account string       `json:"account"`
	URL     string       `json:"url"`
	Levels  uint16       `json:"levels"`
	Amount  *types.Asset `json:"amount"`
	Period  uint16       `json:"period"`
}

SetPaidSubscriptionOperation represents set_paid_subscription operation data.

func (*SetPaidSubscriptionOperation) Data

func (op *SetPaidSubscriptionOperation) Data() interface{}

Data returns the operation data SetPaidSubscriptionOperation.

func (*SetPaidSubscriptionOperation) MarshalTransaction

func (op *SetPaidSubscriptionOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type SetPaidSubscriptionOperation to bytes.

func (*SetPaidSubscriptionOperation) Type

Type function that defines the type of operation SetPaidSubscriptionOperation.

type SetSubaccountPriceOperation

type SetSubaccountPriceOperation struct {
	Account              string       `json:"account"`
	SubAccountSeller     string       `json:"subaccount_seller"`
	SubAccountOfferPrice *types.Asset `json:"subaccount_offer_price"`
	SubAccountOnSale     bool         `json:"subaccount_on_sale"`
}

SetSubaccountPriceOperation represents set_subaccount_price operation data.

func (*SetSubaccountPriceOperation) Data

func (op *SetSubaccountPriceOperation) Data() interface{}

Data returns the operation data SetSubaccountPriceOperation.

func (*SetSubaccountPriceOperation) MarshalTransaction

func (op *SetSubaccountPriceOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type SetSubaccountPriceOperation to bytes.

func (*SetSubaccountPriceOperation) Type

Type function that defines the type of operation SetSubaccountPriceOperation.

type SetWithdrawVestingRouteOperation

type SetWithdrawVestingRouteOperation struct {
	FromAccount string `json:"from_account"`
	ToAccount   string `json:"to_account"`
	Percent     uint16 `json:"percent"`
	AutoVest    bool   `json:"auto_vest"`
}

SetWithdrawVestingRouteOperation represents set_withdraw_vesting_route operation data.

func (*SetWithdrawVestingRouteOperation) Data

func (op *SetWithdrawVestingRouteOperation) Data() interface{}

Data returns the operation data SetWithdrawVestingRouteOperation.

func (*SetWithdrawVestingRouteOperation) MarshalTransaction

func (op *SetWithdrawVestingRouteOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type SetWithdrawVestingRouteOperation to bytes.

func (*SetWithdrawVestingRouteOperation) Type

Type function that defines the type of operation SetWithdrawVestingRouteOperation.

type ShutdownWitnessOperation

type ShutdownWitnessOperation struct {
	Owner string `json:"owner"`
}

ShutdownWitnessOperation represents shutdown_witness operation data.

func (*ShutdownWitnessOperation) Data

func (op *ShutdownWitnessOperation) Data() interface{}

Data returns the operation data ShutdownWitnessOperation.

func (*ShutdownWitnessOperation) Type

func (op *ShutdownWitnessOperation) Type() OpType

Type function that defines the type of operation ShutdownWitnessOperation.

type Transaction

type Transaction struct {
	RefBlockNum    types.UInt16 `json:"ref_block_num"`
	RefBlockPrefix types.UInt32 `json:"ref_block_prefix"`
	Expiration     *types.Time  `json:"expiration"`
	Operations     Operations   `json:"operations"`
	Signatures     []string     `json:"signatures"`
}

Transaction represents a blockchain transaction.

func (*Transaction) MarshalTransaction

func (tx *Transaction) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction implements transaction.Marshaller interface.

func (*Transaction) PushOperation

func (tx *Transaction) PushOperation(op Operation)

PushOperation can be used to add an operation into the transaction.

type TransferOperation

type TransferOperation struct {
	From   string       `json:"from"`
	To     string       `json:"to"`
	Amount *types.Asset `json:"amount"`
	Memo   string       `json:"memo"`
}

TransferOperation represents transfer operation data.

func (*TransferOperation) Data

func (op *TransferOperation) Data() interface{}

Data returns the operation data TransferOperation.

func (*TransferOperation) MarshalTransaction

func (op *TransferOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type TransferOperation to bytes.

func (*TransferOperation) Type

func (op *TransferOperation) Type() OpType

Type function that defines the type of operation TransferOperation.

type TransferToVestingOperation

type TransferToVestingOperation struct {
	From   string       `json:"from"`
	To     string       `json:"to"`
	Amount *types.Asset `json:"amount"`
}

TransferToVestingOperation represents transfer_to_vesting operation data.

func (*TransferToVestingOperation) Data

func (op *TransferToVestingOperation) Data() interface{}

Data returns the operation data TransferToVestingOperation.

func (*TransferToVestingOperation) MarshalTransaction

func (op *TransferToVestingOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type TransferToVestingOperation to bytes.

func (*TransferToVestingOperation) Type

Type function that defines the type of operation TransferToVestingOperation.

type UnknownOperation

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

UnknownOperation represents Unknown operation data.

func (*UnknownOperation) Data

func (op *UnknownOperation) Data() interface{}

Data returns the operation data UnknownOperation.

func (*UnknownOperation) Type

func (op *UnknownOperation) Type() OpType

Type function that defines the type of operation UnknownOperation.

type VersionedChainPropertiesUpdateOperation

type VersionedChainPropertiesUpdateOperation struct {
	Owner string                 `json:"owner"`
	Props *types.ChainProperties `json:"props"`
}

VersionedChainPropertiesUpdateOperation represents versioned_chain_properties_update operation data.

func (*VersionedChainPropertiesUpdateOperation) Data

func (op *VersionedChainPropertiesUpdateOperation) Data() interface{}

Data returns the operation data VersionedChainPropertiesUpdateOperation.

func (*VersionedChainPropertiesUpdateOperation) MarshalTransaction

func (op *VersionedChainPropertiesUpdateOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type VersionedChainPropertiesUpdateOperation to bytes.

func (*VersionedChainPropertiesUpdateOperation) Type

Type function that defines the type of operation VersionedChainPropertiesUpdateOperation.

type VoteOperation

type VoteOperation struct {
	Voter    string `json:"voter"`
	Author   string `json:"author"`
	Permlink string `json:"permlink"`
	Weight   int16  `json:"weight"`
}

VoteOperation represents vote operation data.

func (*VoteOperation) Data

func (op *VoteOperation) Data() interface{}

Data returns the operation data VoteOperation.

func (*VoteOperation) MarshalTransaction

func (op *VoteOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type VoteOperation to bytes.

func (*VoteOperation) Type

func (op *VoteOperation) Type() OpType

Type function that defines the type of operation VoteOperation.

type WithdrawVestingOperation

type WithdrawVestingOperation struct {
	Account       string       `json:"account"`
	VestingShares *types.Asset `json:"vesting_shares"`
}

WithdrawVestingOperation represents withdraw_vesting operation data.

func (*WithdrawVestingOperation) Data

func (op *WithdrawVestingOperation) Data() interface{}

Data returns the operation data WithdrawVestingOperation.

func (*WithdrawVestingOperation) MarshalTransaction

func (op *WithdrawVestingOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type WithdrawVestingOperation to bytes.

func (*WithdrawVestingOperation) Type

func (op *WithdrawVestingOperation) Type() OpType

Type function that defines the type of operation WithdrawVestingOperation.

type WitnessRewardOperation

type WitnessRewardOperation struct {
	Witness string      `json:"witness"`
	Shares  types.Asset `json:"shares"`
}

WitnessRewardOperation represents witness_reward operation data.

func (*WitnessRewardOperation) Data

func (op *WitnessRewardOperation) Data() interface{}

Data returns the operation data WitnessRewardOperation.

func (*WitnessRewardOperation) Type

func (op *WitnessRewardOperation) Type() OpType

Type function that defines the type of operation WitnessRewardOperation.

type WitnessUpdateOperation

type WitnessUpdateOperation struct {
	Owner           string `json:"owner"`
	URL             string `json:"url"`
	BlockSigningKey string `json:"block_signing_key"`
}

WitnessUpdateOperation represents witness_update operation data.

func (*WitnessUpdateOperation) Data

func (op *WitnessUpdateOperation) Data() interface{}

Data returns the operation data WitnessUpdateOperation.

func (*WitnessUpdateOperation) MarshalTransaction

func (op *WitnessUpdateOperation) MarshalTransaction(encoder *transaction.Encoder) error

MarshalTransaction is a function of converting type WitnessUpdateOperation to bytes.

func (*WitnessUpdateOperation) Type

func (op *WitnessUpdateOperation) Type() OpType

Type function that defines the type of operation WitnessUpdateOperation.

Source Files

Jump to

Keyboard shortcuts

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