Documentation ¶
Index ¶
- Variables
- func JSONMarshal(t interface{}) ([]byte, error)
- func MarshalCustomJSON(v interface{}) (string, error)
- type AccountCreateOperation
- type AccountCreateWithDelegationOperation
- type AccountMetadataOperation
- type AccountUpdateOperation
- type AccountWitnessProxyOperation
- type AccountWitnessVoteOperation
- type AuctionWindowRewardOperation
- type AuthorRewardOperation
- type BreakFreeReferralOperation
- type CallbackBlockOperations
- type CancelTransferFromSavingsOperation
- type ChainPropertiesUpdateOperation
- type ChallengeAuthorityOperation
- type ChangeRecoveryAccountOperation
- type CommentBenefactorRewardOperation
- type CommentOperation
- type CommentOptionsOperation
- type CommentPayoutUpdateOperation
- type CommentRewardOperation
- type ConvertOperation
- type ConvertSbdDebtOperation
- type CurationRewardOperation
- type CustomBinaryOperation
- type CustomJSONOperation
- type CustomOperation
- type DeclineVotingRightsOperation
- type DelegateVestingSharesOperation
- type DelegateVestingSharesWithInterestOperation
- type DelegationRewardOperation
- type DeleteCommentOperation
- type DeleteReblogOperation
- type EscrowApproveOperation
- type EscrowDisputeOperation
- type EscrowReleaseOperation
- type EscrowTransferOperation
- type FeedPublishOperation
- type FillConvertRequestOperation
- type FillOrderOperation
- type FillTransferFromSavingsOperation
- type FillVestingWithdrawOperation
- type FollowOperation
- type HardforkOperation
- type InterestOperation
- type LimitOrderCancelOperation
- type LimitOrderCreate2Operation
- type LimitOrderCreateOperation
- type LiquidityRewardOperation
- type OpType
- type Operation
- type OperationObject
- type Operations
- type POW2Operation
- type POWOperation
- type ProducerRewardOperationOperation
- type ProposalCreateOperation
- type ProposalDeleteOperation
- type ProposalObject
- type ProposalObjects
- type ProposalUpdateOperation
- type ProveAuthorityOperation
- type ReblogOperation
- type RecoverAccountOperation
- type RejectVestingSharesDelegationOperation
- type ReportOverProductionOperation
- type RequestAccountRecoveryOperation
- type ResetAccountOperation
- type ReturnVestingDelegationOperation
- type SetResetAccountOperation
- type SetWithdrawVestingRouteOperation
- type ShutdownWitnessOperation
- type TotalCommentRewardOperation
- type Transaction
- type TransferFromSavingsOperation
- type TransferOperation
- type TransferToSavingsOperation
- type TransferToVestingOperation
- type TransitToCyberwayOperation
- type UnknownOperation
- type VoteOperation
- type WithdrawVestingOperation
- type WitnessUpdateOperation
- type WorkerRequestDeleteOperation
- type WorkerRequestOperation
- type WorkerRequestVoteOperation
- type WorkerRewardOperation
- type WorkerStateOperation
Constants ¶
This section is empty.
Variables ¶
var ( TypeFollow = "follow" TypeReblog = "reblog" TypeDeleteReblog = "delete_reblog" )
Functions ¶
func JSONMarshal ¶
JSONMarshal the function of packing with the processing of HTML tags.
func MarshalCustomJSON ¶
MarshalCustomJSON generate a row from the structure fields.
Types ¶
type AccountCreateOperation ¶
type AccountCreateOperation struct { Fee *types.Asset `json:"fee"` Creator string `json:"creator"` NewAccountName string `json:"new_account_name"` Owner *types.Authority `json:"owner"` Active *types.Authority `json:"active"` Posting *types.Authority `json:"posting"` MemoKey string `json:"memo_key"` JSONMetadata string `json:"json_metadata"` }
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 AccountCreateWithDelegationOperation ¶
type AccountCreateWithDelegationOperation struct { Fee types.Asset `json:"fee"` Delegation types.Asset `json:"delegation"` Creator string `json:"creator"` NewAccountName string `json:"new_account_name"` Owner types.Authority `json:"owner"` Active types.Authority `json:"active"` Posting types.Authority `json:"posting"` MemoKey string `json:"memo_key"` JSONMetadata string `json:"json_metadata"` Extensions []interface{} `json:"extensions"` }
AccountCreateWithDelegationOperation represents account_create_with_delegation operation data.
func (*AccountCreateWithDelegationOperation) Data ¶
func (op *AccountCreateWithDelegationOperation) Data() interface{}
Data returns the operation data AccountCreateWithDelegationOperation.
func (*AccountCreateWithDelegationOperation) MarshalTransaction ¶
func (op *AccountCreateWithDelegationOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type AccountCreateWithDelegationOperation to bytes.
func (*AccountCreateWithDelegationOperation) Type ¶
func (op *AccountCreateWithDelegationOperation) Type() OpType
Type function that defines the type of operation AccountCreateWithDelegationOperation.
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 AccountUpdateOperation ¶
type AccountUpdateOperation struct { Account string `json:"account"` Owner *types.Authority `json:"owner,omitempty"` Active *types.Authority `json:"active,omitempty"` Posting *types.Authority `json:"posting,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 ¶
func (op *AccountWitnessProxyOperation) Type() OpType
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 ¶
func (op *AccountWitnessVoteOperation) Type() OpType
Type function that defines the type of operation AccountWitnessVoteOperation.
type AuctionWindowRewardOperation ¶
type AuctionWindowRewardOperation struct { Reward types.Asset `json:"reward"` CommentAuthor string `json:"comment_author"` CommentPermlink string `json:"comment_permlink"` }
AuctionWindowRewardOperation represents auction_window_reward operation data.
func (*AuctionWindowRewardOperation) Data ¶
func (op *AuctionWindowRewardOperation) Data() interface{}
Data returns the operation data AuctionWindowRewardOperation.
func (*AuctionWindowRewardOperation) Type ¶
func (op *AuctionWindowRewardOperation) Type() OpType
Type function that defines the type of operation AuctionWindowRewardOperation.
type AuthorRewardOperation ¶
type AuthorRewardOperation struct { Author string `json:"author"` Permlink string `json:"permlink"` SbdPayout types.Asset `json:"sbd_payout"` SteemPayout types.Asset `json:"steem_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 BreakFreeReferralOperation ¶
type BreakFreeReferralOperation struct { Referral string `json:"referral"` Extensions []interface{} `json:"extensions"` }
BreakFreeReferralOperation represents break_free_referral operation data.
func (*BreakFreeReferralOperation) Data ¶
func (op *BreakFreeReferralOperation) Data() interface{}
Data returns the operation data BreakFreeReferralOperation.
func (*BreakFreeReferralOperation) MarshalTransaction ¶
func (op *BreakFreeReferralOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type BreakFreeReferralOperation to bytes.
func (*BreakFreeReferralOperation) Type ¶
func (op *BreakFreeReferralOperation) Type() OpType
Type function that defines the type of operation BreakFreeReferralOperation.
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 CancelTransferFromSavingsOperation ¶
type CancelTransferFromSavingsOperation struct { From string `json:"from"` RequestID uint32 `json:"request_id"` }
CancelTransferFromSavingsOperation represents cancel_transfer_from_savings operation data.
func (*CancelTransferFromSavingsOperation) Data ¶
func (op *CancelTransferFromSavingsOperation) Data() interface{}
Data returns the operation data CancelTransferFromSavingsOperation.
func (*CancelTransferFromSavingsOperation) MarshalTransaction ¶
func (op *CancelTransferFromSavingsOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type CancelTransferFromSavingsOperation to bytes.
func (*CancelTransferFromSavingsOperation) Type ¶
func (op *CancelTransferFromSavingsOperation) Type() OpType
Type function that defines the type of operation CancelTransferFromSavingsOperation.
type ChainPropertiesUpdateOperation ¶
type ChainPropertiesUpdateOperation struct { Owner string `json:"owner"` Props []interface{} `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 ¶
func (op *ChainPropertiesUpdateOperation) Type() OpType
Type function that defines the type of operation ChainPropertiesUpdateOperation.
type ChallengeAuthorityOperation ¶
type ChallengeAuthorityOperation struct { Challenger string `json:"challenger"` Challenged string `json:"challenged"` RequireOwner bool `json:"require_owner"` }
ChallengeAuthorityOperation represents challenge_authority operation data.
func (*ChallengeAuthorityOperation) Data ¶
func (op *ChallengeAuthorityOperation) Data() interface{}
Data returns the operation data ChallengeAuthorityOperation.
func (*ChallengeAuthorityOperation) MarshalTransaction ¶
func (op *ChallengeAuthorityOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type ChallengeAuthorityOperation to bytes.
func (*ChallengeAuthorityOperation) Type ¶
func (op *ChallengeAuthorityOperation) Type() OpType
Type function that defines the type of operation ChallengeAuthorityOperation.
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 ¶
func (op *ChangeRecoveryAccountOperation) Type() OpType
Type function that defines the type of operation ChangeRecoveryAccountOperation.
type CommentBenefactorRewardOperation ¶
type CommentBenefactorRewardOperation struct { Benefactor string `json:"benefactor"` Author string `json:"author"` Permlink string `json:"permlink"` Reward types.Asset `json:"reward"` }
CommentBenefactorRewardOperation represents comment_benefactor_reward operation data.
func (*CommentBenefactorRewardOperation) Data ¶
func (op *CommentBenefactorRewardOperation) Data() interface{}
Data returns the operation data CommentBenefactorRewardOperation.
func (*CommentBenefactorRewardOperation) Type ¶
func (op *CommentBenefactorRewardOperation) Type() OpType
Type function that defines the type of operation CommentBenefactorRewardOperation.
type CommentOperation ¶
type CommentOperation 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"` }
CommentOperation represents comment operation data.
func (*CommentOperation) Data ¶
func (op *CommentOperation) Data() interface{}
Data returns the operation data CommentOperation.
func (*CommentOperation) IsStory ¶
func (op *CommentOperation) IsStory() bool
IsStory function specifies the type of publication.
func (*CommentOperation) MarshalTransaction ¶
func (op *CommentOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type CommentOperation to bytes.
func (*CommentOperation) Type ¶
func (op *CommentOperation) Type() OpType
Type function that defines the type of operation CommentOperation.
type CommentOptionsOperation ¶
type CommentOptionsOperation struct { Author string `json:"author"` Permlink string `json:"permlink"` MaxAcceptedPayout *types.Asset `json:"max_accepted_payout"` PercentSteemDollars uint16 `json:"percent_steem_dollars"` AllowVotes bool `json:"allow_votes"` AllowCurationRewards bool `json:"allow_curation_rewards"` Extensions []interface{} `json:"extensions"` }
CommentOptionsOperation represents comment_options operation data.
Extensions: CommentPayoutBeneficiaries CommentAuctionWindowRewardDestination CommentCurationRewardsPercent
func (*CommentOptionsOperation) Data ¶
func (op *CommentOptionsOperation) Data() interface{}
Data returns the operation data CommentOptionsOperation.
func (*CommentOptionsOperation) MarshalTransaction ¶
func (op *CommentOptionsOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type CommentOptionsOperation to bytes.
func (*CommentOptionsOperation) Type ¶
func (op *CommentOptionsOperation) Type() OpType
Type function that defines the type of operation CommentOptionsOperation.
type CommentPayoutUpdateOperation ¶
type CommentPayoutUpdateOperation struct { Author string `json:"author"` Permlink string `json:"permlink"` }
CommentPayoutUpdateOperation represents comment_payout_update operation data.
func (*CommentPayoutUpdateOperation) Data ¶
func (op *CommentPayoutUpdateOperation) Data() interface{}
Data returns the operation data CommentPayoutUpdateOperation.
func (*CommentPayoutUpdateOperation) Type ¶
func (op *CommentPayoutUpdateOperation) Type() OpType
Type function that defines the type of operation CommentPayoutUpdateOperation.
type CommentRewardOperation ¶
type CommentRewardOperation struct { Author string `json:"author"` Permlink string `json:"permlink"` Payout types.Asset `json:"payout"` }
CommentRewardOperation represents comment_reward operation data.
func (*CommentRewardOperation) Data ¶
func (op *CommentRewardOperation) Data() interface{}
Data returns the operation data CommentRewardOperation.
func (*CommentRewardOperation) Type ¶
func (op *CommentRewardOperation) Type() OpType
Type function that defines the type of operation CommentRewardOperation.
type ConvertOperation ¶
type ConvertOperation struct { Owner string `json:"owner"` RequestID uint32 `json:"requestid"` Amount *types.Asset `json:"amount"` }
ConvertOperation represents convert operation data.
func (*ConvertOperation) Data ¶
func (op *ConvertOperation) Data() interface{}
Data returns the operation data ConvertOperation.
func (*ConvertOperation) MarshalTransaction ¶
func (op *ConvertOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type ConvertOperation to bytes.
func (*ConvertOperation) Type ¶
func (op *ConvertOperation) Type() OpType
Type function that defines the type of operation ConvertOperation.
type ConvertSbdDebtOperation ¶
type ConvertSbdDebtOperation struct { Owner string `json:"owner"` SbdAmount types.Asset `json:"sbd_amount"` SteemAmount types.Asset `json:"steem_amount"` SavingsSbdAmount types.Asset `json:"savings_sbd_amount"` SavingsSteemAmount types.Asset `json:"savings_steem_amount"` }
ConvertSbdDebtOperation represents convert_sbd_debt operation data.
func (*ConvertSbdDebtOperation) Data ¶
func (op *ConvertSbdDebtOperation) Data() interface{}
Data returns the operation data ConvertSbdDebtOperation.
func (*ConvertSbdDebtOperation) Type ¶
func (op *ConvertSbdDebtOperation) Type() OpType
Type function that defines the type of operation ConvertSbdDebtOperation.
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 CustomBinaryOperation ¶
type CustomBinaryOperation struct { RequiredOwnerAuths []string `json:"required_owner_auths"` RequiredActiveAuths []string `json:"required_active_auths"` RequiredPostingAuths []string `json:"required_posting_auths"` RequiredAuths []types.Authority `json:"required_auths"` ID string `json:"id"` Datas []byte `json:"data"` }
CustomBinaryOperation represents custom_binary operation data.
func (*CustomBinaryOperation) Data ¶
func (op *CustomBinaryOperation) Data() interface{}
Data returns the operation data CustomBinaryOperation.
func (*CustomBinaryOperation) Type ¶
func (op *CustomBinaryOperation) Type() OpType
Type function that defines the type of operation CustomBinaryOperation.
type CustomJSONOperation ¶
type CustomJSONOperation struct { RequiredAuths []string `json:"required_auths"` RequiredPostingAuths []string `json:"required_posting_auths"` ID string `json:"id"` JSON string `json:"json"` }
CustomJSONOperation represents custom_json operation data.
func (*CustomJSONOperation) Data ¶
func (op *CustomJSONOperation) Data() interface{}
Data returns the operation data.
func (*CustomJSONOperation) MarshalTransaction ¶
func (op *CustomJSONOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type CustomJSONOperation to bytes.
func (*CustomJSONOperation) Type ¶
func (op *CustomJSONOperation) Type() OpType
Type function that defines the type of operation.
func (*CustomJSONOperation) UnmarshalData ¶
func (op *CustomJSONOperation) UnmarshalData() (interface{}, error)
UnmarshalData unpacking the JSON parameter in the CustomJSONOperation type.
type CustomOperation ¶
type CustomOperation struct { RequiredAuths []string `json:"required_auths"` ID uint16 `json:"id"` Datas []byte `json:"data"` }
CustomOperation represents custom operation data.
func (*CustomOperation) Data ¶
func (op *CustomOperation) Data() interface{}
Data returns the operation data CustomOperation.
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 CustomOperation.
type DeclineVotingRightsOperation ¶
type DeclineVotingRightsOperation struct { Account string `json:"account"` Decline bool `json:"decline"` }
DeclineVotingRightsOperation represents decline_voting_rights operation data.
func (*DeclineVotingRightsOperation) Data ¶
func (op *DeclineVotingRightsOperation) Data() interface{}
Data returns the operation data DeclineVotingRightsOperation.
func (*DeclineVotingRightsOperation) MarshalTransaction ¶
func (op *DeclineVotingRightsOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type DeclineVotingRightsOperation to bytes.
func (*DeclineVotingRightsOperation) Type ¶
func (op *DeclineVotingRightsOperation) Type() OpType
Type function that defines the type of operation DeclineVotingRightsOperation.
type DelegateVestingSharesOperation ¶
type DelegateVestingSharesOperation struct {}
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 ¶
func (op *DelegateVestingSharesOperation) Type() OpType
Type function that defines the type of operation DelegateVestingSharesOperation.
type DelegateVestingSharesWithInterestOperation ¶
type DelegateVestingSharesWithInterestOperation struct {}
DelegateVestingSharesWithInterestOperation represents delegate_vesting_shares_with_interest operation data.
PayoutStrategy: to_delegator - 0 to_delegated_vesting - 1
func (*DelegateVestingSharesWithInterestOperation) Data ¶
func (op *DelegateVestingSharesWithInterestOperation) Data() interface{}
Data returns the operation data DelegateVestingSharesWithInterestOperation.
func (*DelegateVestingSharesWithInterestOperation) MarshalTransaction ¶
func (op *DelegateVestingSharesWithInterestOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type DelegateVestingSharesWithInterestOperation to bytes.
func (*DelegateVestingSharesWithInterestOperation) Type ¶
func (op *DelegateVestingSharesWithInterestOperation) Type() OpType
Type function that defines the type of operation DelegateVestingSharesWithInterestOperation.
type DelegationRewardOperation ¶
type DelegationRewardOperation struct { Delegator string `json:"delegator"` Delegatee string `json:"delegatee"` PayoutStrategy int `json:"payout_strategy"` }
DelegationRewardOperation represents delegation_reward operation data.
func (*DelegationRewardOperation) Data ¶
func (op *DelegationRewardOperation) Data() interface{}
Data returns the operation data DelegationRewardOperation.
func (*DelegationRewardOperation) Type ¶
func (op *DelegationRewardOperation) Type() OpType
Type function that defines the type of operation DelegationRewardOperation.
type DeleteCommentOperation ¶
type DeleteCommentOperation struct { Author string `json:"author"` Permlink string `json:"permlink"` }
DeleteCommentOperation represents delete_comment operation data.
func (*DeleteCommentOperation) Data ¶
func (op *DeleteCommentOperation) Data() interface{}
Data returns the operation data DeleteCommentOperation.
func (*DeleteCommentOperation) MarshalTransaction ¶
func (op *DeleteCommentOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type DeleteCommentOperation to bytes.
func (*DeleteCommentOperation) Type ¶
func (op *DeleteCommentOperation) Type() OpType
Type function that defines the type of operation DeleteCommentOperation.
type DeleteReblogOperation ¶
type DeleteReblogOperation struct { Account string `json:"account"` Author string `json:"author"` Permlink string `json:"permlink"` }
DeleteReblogOperation the structure for the operation CustomJSONOperation.
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"` SbdAmount *types.Asset `json:"sbd_amount"` SteemAmount *types.Asset `json:"steem_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"` SbdAmount *types.Asset `json:"sbd_amount"` SteemAmount *types.Asset `json:"steem_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 FeedPublishOperation ¶
type FeedPublishOperation struct { Publisher string `json:"publisher"` ExchangeRate types.ExchRate `json:"exchange_rate"` }
FeedPublishOperation represents feed_publish operation data.
func (*FeedPublishOperation) Data ¶
func (op *FeedPublishOperation) Data() interface{}
Data returns the operation data FeedPublishOperation.
func (*FeedPublishOperation) MarshalTransaction ¶
func (op *FeedPublishOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type FeedPublishOperation to bytes.
func (*FeedPublishOperation) Type ¶
func (op *FeedPublishOperation) Type() OpType
Type function that defines the type of operation FeedPublishOperation.
type FillConvertRequestOperation ¶
type FillConvertRequestOperation struct { Owner string `json:"owner"` Requestid uint32 `json:"requestid"` AmountIn types.Asset `json:"amount_in"` AmountOut types.Asset `json:"amount_out"` }
FillConvertRequestOperation represents fill_convert_request operation data.
func (*FillConvertRequestOperation) Data ¶
func (op *FillConvertRequestOperation) Data() interface{}
Data returns the operation data FillConvertRequestOperation.
func (*FillConvertRequestOperation) Type ¶
func (op *FillConvertRequestOperation) Type() OpType
Type function that defines the type of operation FillConvertRequestOperation.
type FillOrderOperation ¶
type FillOrderOperation struct { CurrentOwner string `json:"current_owner"` CurrentOrderid uint32 `json:"current_orderid"` CurrentPays types.Asset `json:"current_pays"` OpenOwner string `json:"open_owner"` OpenOrderid uint32 `json:"open_orderid"` OpenPays types.Asset `json:"open_pays"` }
FillOrderOperation represents fill_order operation data.
func (*FillOrderOperation) Data ¶
func (op *FillOrderOperation) Data() interface{}
Data returns the operation data FillOrderOperation.
func (*FillOrderOperation) Type ¶
func (op *FillOrderOperation) Type() OpType
Type function that defines the type of operation FillOrderOperation.
type FillTransferFromSavingsOperation ¶
type FillTransferFromSavingsOperation struct { From string `json:"from"` To string `json:"to"` Amount types.Asset `json:"amount"` RequestID uint32 `json:"request_id"` Memo string `json:"memo"` }
FillTransferFromSavingsOperation represents fill_transfer_from_savings operation data.
func (*FillTransferFromSavingsOperation) Data ¶
func (op *FillTransferFromSavingsOperation) Data() interface{}
Data returns the operation data FillTransferFromSavingsOperation.
func (*FillTransferFromSavingsOperation) Type ¶
func (op *FillTransferFromSavingsOperation) Type() OpType
Type function that defines the type of operation FillTransferFromSavingsOperation.
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 ¶
func (op *FillVestingWithdrawOperation) Type() OpType
Type function that defines the type of operation FillVestingWithdrawOperation.
type FollowOperation ¶
type FollowOperation struct { Follower string `json:"follower"` Following string `json:"following"` What []string `json:"what"` }
FollowOperation the structure for the operation CustomJSONOperation.
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 InterestOperation ¶
type InterestOperation struct { Owner string `json:"owner"` Interest types.Asset `json:"interest"` }
InterestOperation represents interest operation data.
func (*InterestOperation) Data ¶
func (op *InterestOperation) Data() interface{}
Data returns the operation data InterestOperation.
func (*InterestOperation) Type ¶
func (op *InterestOperation) Type() OpType
Type function that defines the type of operation InterestOperation.
type LimitOrderCancelOperation ¶
type LimitOrderCancelOperation struct { Owner string `json:"owner"` OrderID uint32 `json:"orderid"` }
LimitOrderCancelOperation represents limit_order_cancel operation data.
func (*LimitOrderCancelOperation) Data ¶
func (op *LimitOrderCancelOperation) Data() interface{}
Data returns the operation data LimitOrderCancelOperation.
func (*LimitOrderCancelOperation) MarshalTransaction ¶
func (op *LimitOrderCancelOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type LimitOrderCancelOperation to bytes.
func (*LimitOrderCancelOperation) Type ¶
func (op *LimitOrderCancelOperation) Type() OpType
Type function that defines the type of operation LimitOrderCancelOperation.
type LimitOrderCreate2Operation ¶
type LimitOrderCreate2Operation struct { Owner string `json:"owner"` OrderID uint32 `json:"orderid"` AmountToSell *types.Asset `json:"amount_to_sell"` ExchangeRate types.ExchRate `json:"exchange_rate"` FillOrKill bool `json:"fill_or_kill"` Expiration *types.Time `json:"expiration"` }
LimitOrderCreate2Operation represents limit_order_create2 operation data.
func (*LimitOrderCreate2Operation) Data ¶
func (op *LimitOrderCreate2Operation) Data() interface{}
Data returns the operation data LimitOrderCreate2Operation.
func (*LimitOrderCreate2Operation) MarshalTransaction ¶
func (op *LimitOrderCreate2Operation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type LimitOrderCreate2Operation to bytes.
func (*LimitOrderCreate2Operation) Type ¶
func (op *LimitOrderCreate2Operation) Type() OpType
Type function that defines the type of operation LimitOrderCreate2Operation.
type LimitOrderCreateOperation ¶
type LimitOrderCreateOperation struct { Owner string `json:"owner"` OrderID uint32 `json:"orderid"` AmountToSell *types.Asset `json:"amount_to_sell"` MinToReceive *types.Asset `json:"min_to_receive"` FillOrKill bool `json:"fill_or_kill"` Expiration *types.Time `json:"expiration"` }
LimitOrderCreateOperation represents limit_order_create operation data.
func (*LimitOrderCreateOperation) Data ¶
func (op *LimitOrderCreateOperation) Data() interface{}
Data returns the operation data LimitOrderCreateOperation.
func (*LimitOrderCreateOperation) MarshalTransaction ¶
func (op *LimitOrderCreateOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type LimitOrderCreateOperation to bytes.
func (*LimitOrderCreateOperation) Type ¶
func (op *LimitOrderCreateOperation) Type() OpType
Type function that defines the type of operation LimitOrderCreateOperation.
type LiquidityRewardOperation ¶
type LiquidityRewardOperation struct { Owner string `json:"owner"` Payout types.Asset `json:"payout"` }
LiquidityRewardOperation represents liquidity_reward operation data.
func (*LiquidityRewardOperation) Data ¶
func (op *LiquidityRewardOperation) Data() interface{}
Data returns the operation data LiquidityRewardOperation.
func (*LiquidityRewardOperation) Type ¶
func (op *LiquidityRewardOperation) Type() OpType
Type function that defines the type of operation LiquidityRewardOperation.
type OpType ¶
type OpType string
OpType represents a Golos operation type, i.e. vote, comment, pow and so on.
const ( TypeVote OpType = "vote" TypeComment OpType = "comment" TypeTransfer OpType = "transfer" TypeTransferToVesting OpType = "transfer_to_vesting" TypeWithdrawVesting OpType = "withdraw_vesting" TypeLimitOrderCreate OpType = "limit_order_create" TypeLimitOrderCancel OpType = "limit_order_cancel" TypeFeedPublish OpType = "feed_publish" TypeConvert OpType = "convert" TypeAccountCreate OpType = "account_create" TypeAccountUpdate OpType = "account_update" TypeWitnessUpdate OpType = "witness_update" TypeAccountWitnessVote OpType = "account_witness_vote" TypeAccountWitnessProxy OpType = "account_witness_proxy" TypePOW OpType = "pow" TypeCustom OpType = "custom" TypeReportOverProduction OpType = "report_over_production" TypeDeleteComment OpType = "delete_comment" TypeCustomJSON OpType = "custom_json" TypeCommentOptions OpType = "comment_options" TypeSetWithdrawVestingRoute OpType = "set_withdraw_vesting_route" TypeLimitOrderCreate2 OpType = "limit_order_create2" TypeChallengeAuthority OpType = "challenge_authority" TypeProveAuthority OpType = "prove_authority" 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" TypePOW2 OpType = "pow2" TypeEscrowApprove OpType = "escrow_approve" TypeTransferToSavings OpType = "transfer_to_savings" TypeTransferFromSavings OpType = "transfer_from_savings" TypeCancelTransferFromSavings OpType = "cancel_transfer_from_savings" TypeCustomBinary OpType = "custom_binary" TypeDeclineVotingRights OpType = "decline_voting_rights" TypeResetAccount OpType = "reset_account" TypeSetResetAccount OpType = "set_reset_account" TypeAccountCreateWithDelegation OpType = "account_create_with_delegation" TypeAccountMetadata OpType = "account_metadata" TypeProposalCreate OpType = "proposal_create" TypeProposalUpdate OpType = "proposal_update" TypeProposalDelete OpType = "proposal_delete" TypeChainPropertiesUpdate OpType = "chain_properties_update" TypeBreakFreeReferral OpType = "break_free_referral" TypeTransitToCyberway OpType = "transit_to_cyberway" TypeWorkerRequest OpType = "worker_request" TypeWorkerRequestDelete OpType = "worker_request_delete" TypeWorkerRequestVote OpType = "worker_request_vote" TypeFillConvertRequest OpType = "fill_convert_request" //Virtual Operation TypeAuthorReward OpType = "author_reward" TypeCurationReward OpType = "curation_reward" TypeCommentReward OpType = "comment_reward" TypeLiquidityReward OpType = "liquidity_reward" TypeInterest OpType = "interest" TypeFillVestingWithdraw OpType = "fill_vesting_withdraw" TypeFillOrder OpType = "fill_order" TypeShutdownWitness OpType = "shutdown_witness" TypeFillTransferFromSavings OpType = "fill_transfer_from_savings" TypeHardfork OpType = "hardfork" TypeCommentPayoutUpdate OpType = "comment_payout_update" TypeCommentBenefactorReward OpType = "comment_benefactor_reward" TypeReturnVestingDelegation OpType = "return_vesting_delegation" TypeProducerRewardOperation OpType = "producer_reward_operation" TypeDelegationReward OpType = "delegation_reward" TypeAuctionWindowReward OpType = "auction_window_reward" TypeTotalCommentReward OpType = "total_comment_reward" TypeWorkerReward OpType = "worker_reward" TypeWorkerState OpType = "worker_state" TypeConvertSbdDebt OpType = "convert_sbd_debt" )
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 POW2Operation ¶
type POW2Operation struct { Input types.POW2Input `json:"input"` PowSummary uint32 `json:"pow_summary"` }
POW2Operation represents pow2 operation data.
func (*POW2Operation) Data ¶
func (op *POW2Operation) Data() interface{}
Data returns the operation data POW2Operation.
func (*POW2Operation) Type ¶
func (op *POW2Operation) Type() OpType
Type function that defines the type of operation POW2Operation.
type POWOperation ¶
type POWOperation struct { WorkerAccount string `json:"worker_account"` BlockID string `json:"block_id"` Nonce uint64 `json:"nonce"` Work types.POW `json:"work"` Props types.ChainPropertiesOLD `json:"props"` }
POWOperation represents pow operation data.
func (*POWOperation) Data ¶
func (op *POWOperation) Data() interface{}
Data returns the operation data POWOperation.
func (*POWOperation) Type ¶
func (op *POWOperation) Type() OpType
Type function that defines the type of operation POWOperation.
type ProducerRewardOperationOperation ¶
type ProducerRewardOperationOperation struct { Producer string `json:"producer"` }
ProducerRewardOperationOperation represents producer_reward operation data.
func (*ProducerRewardOperationOperation) Data ¶
func (op *ProducerRewardOperationOperation) Data() interface{}
Data returns the operation data ProducerRewardOperationOperation.
func (*ProducerRewardOperationOperation) Type ¶
func (op *ProducerRewardOperationOperation) Type() OpType
Type function that defines the type of operation ProducerRewardOperationOperation.
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 ¶
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"` OwnerApprovalsToAdd []string `json:"owner_approvals_to_add"` OwnerApprovalsToRemove []string `json:"owner_approvals_to_remove"` PostingApprovalsToAdd []string `json:"posting_approvals_to_add"` PostingApprovalsToRemove []string `json:"posting_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 ProveAuthorityOperation ¶
type ProveAuthorityOperation struct { Challenged string `json:"challenged"` RequireOwner bool `json:"require_owner"` }
ProveAuthorityOperation represents prove_authority operation data.
func (*ProveAuthorityOperation) Data ¶
func (op *ProveAuthorityOperation) Data() interface{}
Data returns the operation data ProveAuthorityOperation.
func (*ProveAuthorityOperation) MarshalTransaction ¶
func (op *ProveAuthorityOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type ProveAuthorityOperation to bytes.
func (*ProveAuthorityOperation) Type ¶
func (op *ProveAuthorityOperation) Type() OpType
Type function that defines the type of operation ProveAuthorityOperation.
type ReblogOperation ¶
type ReblogOperation struct { Account string `json:"account"` Author string `json:"author"` Permlink string `json:"permlink"` Title string `json:"title"` Body string `json:"body"` JSONMetadata string `json:"json_metadata"` }
ReblogOperation the structure for the operation CustomJSONOperation.
type RecoverAccountOperation ¶
type RecoverAccountOperation struct { AccountToRecover string `json:"account_to_recover"` NewOwnerAuthority *types.Authority `json:"new_owner_authority"` RecentOwnerAuthority *types.Authority `json:"recent_owner_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 RejectVestingSharesDelegationOperation ¶
type RejectVestingSharesDelegationOperation struct {}
RejectVestingSharesDelegationOperation represents reject_vesting_shares_delegation operation data.
func (*RejectVestingSharesDelegationOperation) Data ¶
func (op *RejectVestingSharesDelegationOperation) Data() interface{}
Data returns the operation data RejectVestingSharesDelegationOperation.
func (*RejectVestingSharesDelegationOperation) MarshalTransaction ¶
func (op *RejectVestingSharesDelegationOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type RejectVestingSharesDelegationOperation to bytes.
func (*RejectVestingSharesDelegationOperation) Type ¶
func (op *RejectVestingSharesDelegationOperation) Type() OpType
Type function that defines the type of operation RejectVestingSharesDelegationOperation.
type ReportOverProductionOperation ¶
type ReportOverProductionOperation struct {
Reporter string `json:"reporter"`
}
ReportOverProductionOperation represents report_over_production operation data.
func (*ReportOverProductionOperation) Data ¶
func (op *ReportOverProductionOperation) Data() interface{}
Data returns the operation data ReportOverProductionOperation.
func (*ReportOverProductionOperation) Type ¶
func (op *ReportOverProductionOperation) Type() OpType
Type function that defines the type of operation ReportOverProductionOperation.
type RequestAccountRecoveryOperation ¶
type RequestAccountRecoveryOperation struct { RecoveryAccount string `json:"recovery_account"` AccountToRecover string `json:"account_to_recover"` NewOwnerAuthority *types.Authority `json:"new_owner_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 ¶
func (op *RequestAccountRecoveryOperation) Type() OpType
Type function that defines the type of operation RequestAccountRecoveryOperation.
type ResetAccountOperation ¶
type ResetAccountOperation struct { ResetAccount string `json:"reset_account"` AccountToReset string `json:"account_to_reset"` NewOwnerAuthority *types.Authority `json:"new_owner_authority"` }
ResetAccountOperation represents reset_account operation data.
func (*ResetAccountOperation) Data ¶
func (op *ResetAccountOperation) Data() interface{}
Data returns the operation data ResetAccountOperation.
func (*ResetAccountOperation) MarshalTransaction ¶
func (op *ResetAccountOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type ResetAccountOperation to bytes.
func (*ResetAccountOperation) Type ¶
func (op *ResetAccountOperation) Type() OpType
Type function that defines the type of operation ResetAccountOperation.
type ReturnVestingDelegationOperation ¶
type ReturnVestingDelegationOperation struct { Account string `json:"account"` }
ReturnVestingDelegationOperation represents return_vesting_delegation operation data.
func (*ReturnVestingDelegationOperation) Data ¶
func (op *ReturnVestingDelegationOperation) Data() interface{}
Data returns the operation data ReturnVestingDelegationOperation.
func (*ReturnVestingDelegationOperation) Type ¶
func (op *ReturnVestingDelegationOperation) Type() OpType
Type function that defines the type of operation ReturnVestingDelegationOperation.
type SetResetAccountOperation ¶
type SetResetAccountOperation struct { Account string `json:"account"` CurrentResetAccount string `json:"current_reset_account"` ResetAccount string `json:"reset_account"` }
SetResetAccountOperation represents set_reset_account operation data.
func (*SetResetAccountOperation) Data ¶
func (op *SetResetAccountOperation) Data() interface{}
Data returns the operation data SetResetAccountOperation.
func (*SetResetAccountOperation) MarshalTransaction ¶
func (op *SetResetAccountOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type SetResetAccountOperation to bytes.
func (*SetResetAccountOperation) Type ¶
func (op *SetResetAccountOperation) Type() OpType
Type function that defines the type of operation SetResetAccountOperation.
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 ¶
func (op *SetWithdrawVestingRouteOperation) Type() OpType
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 TotalCommentRewardOperation ¶
type TotalCommentRewardOperation struct { Author string `json:"author"` Permlink string `json:"permlink"` AuthorReward types.Asset `json:"author_reward"` BenefactorReward types.Asset `json:"benefactor_reward"` CuratorReward types.Asset `json:"curator_reward"` }
TotalCommentRewardOperation represents total_comment_reward operation data.
func (*TotalCommentRewardOperation) Data ¶
func (op *TotalCommentRewardOperation) Data() interface{}
Data returns the operation data TotalCommentRewardOperation.
func (*TotalCommentRewardOperation) Type ¶
func (op *TotalCommentRewardOperation) Type() OpType
Type function that defines the type of operation TotalCommentRewardOperation.
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 TransferFromSavingsOperation ¶
type TransferFromSavingsOperation struct { From string `json:"from"` RequestID uint32 `json:"request_id"` To string `json:"to"` Amount *types.Asset `json:"amount"` Memo string `json:"memo"` }
TransferFromSavingsOperation represents transfer_from_savings operation data.
func (*TransferFromSavingsOperation) Data ¶
func (op *TransferFromSavingsOperation) Data() interface{}
Data returns the operation data TransferFromSavingsOperation.
func (*TransferFromSavingsOperation) MarshalTransaction ¶
func (op *TransferFromSavingsOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type TransferFromSavingsOperation to bytes.
func (*TransferFromSavingsOperation) Type ¶
func (op *TransferFromSavingsOperation) Type() OpType
Type function that defines the type of operation TransferFromSavingsOperation.
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 TransferToSavingsOperation ¶
type TransferToSavingsOperation struct { From string `json:"from"` To string `json:"to"` Amount *types.Asset `json:"amount"` Memo string `json:"memo"` }
TransferToSavingsOperation represents transfer_to_savings operation data.
func (*TransferToSavingsOperation) Data ¶
func (op *TransferToSavingsOperation) Data() interface{}
Data returns the operation data TransferToSavingsOperation.
func (*TransferToSavingsOperation) MarshalTransaction ¶
func (op *TransferToSavingsOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type TransferToSavingsOperation to bytes.
func (*TransferToSavingsOperation) Type ¶
func (op *TransferToSavingsOperation) Type() OpType
Type function that defines the type of operation TransferToSavingsOperation.
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 ¶
func (op *TransferToVestingOperation) Type() OpType
Type function that defines the type of operation TransferToVestingOperation.
type TransitToCyberwayOperation ¶
type TransitToCyberwayOperation struct { Owner string `json:"owner"` VoteToTransit bool `json:"vote_to_transit"` }
TransitToCyberwayOperation represents transit_to_cyberway operation data.
func (*TransitToCyberwayOperation) Data ¶
func (op *TransitToCyberwayOperation) Data() interface{}
Data returns the operation data TransitToCyberwayOperation.
func (*TransitToCyberwayOperation) MarshalTransaction ¶
func (op *TransitToCyberwayOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type TransitToCyberwayOperation to bytes.
func (*TransitToCyberwayOperation) Type ¶
func (op *TransitToCyberwayOperation) Type() OpType
Type function that defines the type of operation TransitToCyberwayOperation.
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 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"` }
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 WitnessUpdateOperation ¶
type WitnessUpdateOperation struct { Owner string `json:"owner"` URL string `json:"url"` BlockSigningKey string `json:"block_signing_key"` Props types.ChainPropertiesOLD `json:"props"` Fee *types.Asset `json:"fee"` }
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.
type WorkerRequestDeleteOperation ¶
type WorkerRequestDeleteOperation struct { Author string `json:"author"` Permlink string `json:"permlink"` Extensions []interface{} `json:"extensions"` }
WorkerRequestDeleteOperation represents worker_request_delete operation data.
func (*WorkerRequestDeleteOperation) Data ¶
func (op *WorkerRequestDeleteOperation) Data() interface{}
Data returns the operation data WorkerRequestDeleteOperation.
func (*WorkerRequestDeleteOperation) MarshalTransaction ¶
func (op *WorkerRequestDeleteOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type WorkerRequestDeleteOperation to bytes.
func (*WorkerRequestDeleteOperation) Type ¶
func (op *WorkerRequestDeleteOperation) Type() OpType
Type function that defines the type of operation WorkerRequestDeleteOperation.
type WorkerRequestOperation ¶
type WorkerRequestOperation struct { Author string `json:"author"` Permlink string `json:"permlink"` Worker string `json:"worker"` RequiredAmountMin *types.Asset `json:"required_amount_min"` RequiredAmountMax *types.Asset `json:"required_amount_max"` VestReward bool `json:"vest_reward"` Duration uint32 `json:"duration"` Extensions []interface{} `json:"extensions,omitempty"` }
WorkerRequestOperation represents worker_request operation data.
func (*WorkerRequestOperation) Data ¶
func (op *WorkerRequestOperation) Data() interface{}
Data returns the operation data WorkerRequestOperation.
func (*WorkerRequestOperation) MarshalTransaction ¶
func (op *WorkerRequestOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type WorkerRequestOperation to bytes.
func (*WorkerRequestOperation) Type ¶
func (op *WorkerRequestOperation) Type() OpType
Type function that defines the type of operation WorkerRequestOperation.
type WorkerRequestVoteOperation ¶
type WorkerRequestVoteOperation struct { Voter string `json:"voter"` Author string `json:"author"` Permlink string `json:"permlink"` VotePercent int16 `json:"vote_percent"` Extensions []interface{} `json:"extensions"` }
WorkerRequestVoteOperation represents worker_request_vote operation data.
func (*WorkerRequestVoteOperation) Data ¶
func (op *WorkerRequestVoteOperation) Data() interface{}
Data returns the operation data WorkerRequestVoteOperation.
func (*WorkerRequestVoteOperation) MarshalTransaction ¶
func (op *WorkerRequestVoteOperation) MarshalTransaction(encoder *transaction.Encoder) error
MarshalTransaction is a function of converting type WorkerRequestVoteOperation to bytes.
func (*WorkerRequestVoteOperation) Type ¶
func (op *WorkerRequestVoteOperation) Type() OpType
Type function that defines the type of operation WorkerRequestVoteOperation.
type WorkerRewardOperation ¶
type WorkerRewardOperation struct { Worker string `json:"worker"` WorkerRequestAuthor string `json:"worker_request_author"` WorkerRequestPermlink string `json:"worker_request_permlink"` Reward types.Asset `json:"reward"` RewardInVestsIfVest types.Asset `json:"reward_in_vests_if_vest"` }
WorkerRewardOperation represents worker_reward operation data.
func (*WorkerRewardOperation) Data ¶
func (op *WorkerRewardOperation) Data() interface{}
Data returns the operation data WorkerRewardOperation.
func (*WorkerRewardOperation) Type ¶
func (op *WorkerRewardOperation) Type() OpType
Type function that defines the type of operation WorkerRewardOperation.
type WorkerStateOperation ¶
type WorkerStateOperation struct { Author string `json:"author"` Permlink string `json:"permlink"` State int `json:"state"` }
WorkerStateOperation represents worker_state operation data.
func (*WorkerStateOperation) Data ¶
func (op *WorkerStateOperation) Data() interface{}
Data returns the operation data WorkerStateOperation.
func (*WorkerStateOperation) Type ¶
func (op *WorkerStateOperation) Type() OpType
Type function that defines the type of operation WorkerStateOperation.
Source Files ¶
- callback.go
- custom_json_body.go
- operation.go
- operation_account_create.go
- operation_account_create_with_delegation.go
- operation_account_metadata.go
- operation_account_update.go
- operation_account_witness_proxy.go
- operation_account_witness_vote.go
- operation_break_free_referral.go
- operation_cancel_transfer_from_savings.go
- operation_chain_properties_update.go
- operation_challenge_authority.go
- operation_change_recovery_account.go
- operation_comment.go
- operation_comment_options.go
- operation_convert.go
- operation_custom.go
- operation_custom_binary.go
- operation_custom_json.go
- operation_decline_voting_rights.go
- operation_delegate_vesting_shares.go
- operation_delegate_vesting_shares_with_interest.go
- operation_delete_comment.go
- operation_escrow_approve.go
- operation_escrow_dispute.go
- operation_escrow_release.go
- operation_escrow_transfer.go
- operation_feed_publish.go
- operation_limit_order_cancel.go
- operation_limit_order_create.go
- operation_limit_order_create2.go
- operation_object.go
- operation_pow.go
- operation_pow2.go
- operation_proposal_create.go
- operation_proposal_delete.go
- operation_proposal_update.go
- operation_prove_authority.go
- operation_recover_account.go
- operation_reject_vesting_shares_delegation.go
- operation_report_over_production.go
- operation_request_account_recovery.go
- operation_reset_account.go
- operation_set_reset_account.go
- operation_set_withdraw_vesting_route.go
- operation_transfer.go
- operation_transfer_from_savings.go
- operation_transfer_to_savings.go
- operation_transfer_to_vesting.go
- operation_transit_to_cyberway.go
- operation_vote.go
- operation_withdraw_vesting.go
- operation_witness_update.go
- operation_worker_request.go
- operation_worker_request_delete.go
- operation_worker_request_vote.go
- optype.go
- proposal_object.go
- transaction.go
- unknown_operation.go
- voperation_auction_window_reward.go
- voperation_author_reward.go
- voperation_comment_benefactor_reward.go
- voperation_comment_payout_update.go
- voperation_comment_reward.go
- voperation_convert_sbd_debt.go
- voperation_curation_reward.go
- voperation_delegation_reward.go
- voperation_fill_convert_request.go
- voperation_fill_order.go
- voperation_fill_transfer_from_savings.go
- voperation_fill_vesting_withdraw.go
- voperation_hardfork.go
- voperation_interest.go
- voperation_liquidity_reward.go
- voperation_producer_reward.go
- voperation_return_vesting_delegation.go
- voperation_shutdown_witness.go
- voperation_total_comment_reward.go
- voperation_worker_reward.go
- voperation_worker_state.go