Documentation
¶
Index ¶
- Constants
- type Asset
- type Block
- type Error
- type Fulfills
- type Metadata
- type RootResponse
- type Transaction
- type TransactionInput
- type TransactionMode
- type TransactionOutput
- type TransactionOutputCondition
- func (m *TransactionOutputCondition) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *TransactionOutputCondition) MarshalBinary() ([]byte, error)
- func (m *TransactionOutputCondition) UnmarshalBinary(b []byte) error
- func (m *TransactionOutputCondition) Validate(formats strfmt.Registry) error
- type TransactionOutputConditionDetails
- func (m *TransactionOutputConditionDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *TransactionOutputConditionDetails) MarshalBinary() ([]byte, error)
- func (m *TransactionOutputConditionDetails) UnmarshalBinary(b []byte) error
- func (m *TransactionOutputConditionDetails) Validate(formats strfmt.Registry) error
- type ValidTransactionResponse
- func (m *ValidTransactionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ValidTransactionResponse) MarshalBinary() ([]byte, error)
- func (m *ValidTransactionResponse) UnmarshalBinary(b []byte) error
- func (m *ValidTransactionResponse) Validate(formats strfmt.Registry) error
Constants ¶
const ( // TransactionOperationCREATE captures enum value "CREATE" TransactionOperationCREATE string = "CREATE" // TransactionOperationTRANSFER captures enum value "TRANSFER" TransactionOperationTRANSFER string = "TRANSFER" // TransactionOperationVALIDATORELECTION captures enum value "VALIDATOR_ELECTION" TransactionOperationVALIDATORELECTION string = "VALIDATOR_ELECTION" // TransactionOperationCHAINMIGRATIONELECTION captures enum value "CHAIN_MIGRATION_ELECTION" TransactionOperationCHAINMIGRATIONELECTION string = "CHAIN_MIGRATION_ELECTION" // TransactionOperationVOTE captures enum value "VOTE" TransactionOperationVOTE string = "VOTE" )
const ( // TransactionOutputConditionDetailsTypeEd25519DashShaDash256 captures enum value "ed25519-sha-256" TransactionOutputConditionDetailsTypeEd25519DashShaDash256 string = "ed25519-sha-256" )
const ( // TransactionVersionNr2Dot0 captures enum value "2.0" TransactionVersionNr2Dot0 string = "2.0" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct {
// data
Data interface{} `json:"data,omitempty"`
// id
// Min Length: 32
ID string `json:"id,omitempty"`
}
Asset asset
swagger:model Asset
func (*Asset) ContextValidate ¶
ContextValidate validates this asset based on context it is used
func (*Asset) MarshalBinary ¶
MarshalBinary interface implementation
func (*Asset) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Block ¶
type Block struct {
// height
Height int64 `json:"height,omitempty"`
// transactions
Transactions []*Transaction `json:"transactions"`
}
Block block
swagger:model Block
func (*Block) ContextValidate ¶
ContextValidate validate this block based on the context it is used
func (*Block) MarshalBinary ¶
MarshalBinary interface implementation
func (*Block) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Error ¶
type Error struct {
// message
Message interface{} `json:"message,omitempty"`
// status
Status int64 `json:"status,omitempty"`
}
Error error
swagger:model Error
func (*Error) ContextValidate ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Fulfills ¶
type Fulfills struct {
// output index
// Required: true
OutputIndex int64 `json:"output_index"`
// transaction id
// Required: true
TransactionID string `json:"transaction_id"`
}
Fulfills fulfills
swagger:model Fulfills
func (*Fulfills) ContextValidate ¶
ContextValidate validates this fulfills based on context it is used
func (*Fulfills) MarshalBinary ¶
MarshalBinary interface implementation
func (*Fulfills) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type RootResponse ¶
type RootResponse struct {
// assets
Assets string `json:"assets,omitempty"`
// blocks
Blocks string `json:"blocks,omitempty"`
// docs
Docs string `json:"docs,omitempty"`
// metadata
Metadata string `json:"metadata,omitempty"`
// outputs
Outputs string `json:"outputs,omitempty"`
// streams
Streams string `json:"streams,omitempty"`
// transactions
Transactions string `json:"transactions,omitempty"`
// validators
Validators string `json:"validators,omitempty"`
}
RootResponse root response
swagger:model RootResponse
func (*RootResponse) ContextValidate ¶
ContextValidate validates this root response based on context it is used
func (*RootResponse) MarshalBinary ¶
func (m *RootResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RootResponse) UnmarshalBinary ¶
func (m *RootResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Transaction ¶
type Transaction struct {
// asset
// Required: true
Asset *Asset `json:"asset"`
// id
// Required: true
// Min Length: 32
ID *string `json:"id"`
// inputs
// Required: true
// Min Items: 1
Inputs []*TransactionInput `json:"inputs"`
// metadata
// Required: true
Metadata Metadata `json:"metadata"`
// operation
// Required: true
// Enum: [CREATE TRANSFER VALIDATOR_ELECTION CHAIN_MIGRATION_ELECTION VOTE]
Operation string `json:"operation"`
// outputs
// Required: true
Outputs []*TransactionOutput `json:"outputs"`
// version
// Required: true
// Enum: [2.0]
Version string `json:"version"`
}
Transaction transaction
swagger:model Transaction
func (*Transaction) ContextValidate ¶
ContextValidate validate this transaction based on the context it is used
func (*Transaction) MarshalBinary ¶
func (m *Transaction) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Transaction) UnmarshalBinary ¶
func (m *Transaction) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TransactionInput ¶
type TransactionInput struct {
// fulfillment
// Required: true
Fulfillment interface{} `json:"fulfillment"`
// fulfills
// Required: true
Fulfills *Fulfills `json:"fulfills"`
// owners before
// Required: true
// Min Items: 1
// Unique: true
OwnersBefore []string `json:"owners_before"`
}
TransactionInput transaction input
swagger:model TransactionInput
func (*TransactionInput) ContextValidate ¶
ContextValidate validate this transaction input based on the context it is used
func (*TransactionInput) MarshalBinary ¶
func (m *TransactionInput) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TransactionInput) UnmarshalBinary ¶
func (m *TransactionInput) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TransactionMode ¶
type TransactionMode string
TransactionMode transaction mode
swagger:model TransactionMode
const ( // TransactionModeAsync captures enum value "async" TransactionModeAsync TransactionMode = "async" // TransactionModeSync captures enum value "sync" TransactionModeSync TransactionMode = "sync" // TransactionModeCommit captures enum value "commit" TransactionModeCommit TransactionMode = "commit" )
func NewTransactionMode ¶
func NewTransactionMode(value TransactionMode) *TransactionMode
func (TransactionMode) ContextValidate ¶
ContextValidate validates this transaction mode based on context it is used
func (TransactionMode) Pointer ¶
func (m TransactionMode) Pointer() *TransactionMode
Pointer returns a pointer to a freshly-allocated TransactionMode.
type TransactionOutput ¶
type TransactionOutput struct {
// amount
// Required: true
Amount string `json:"amount"`
// condition
// Required: true
Condition TransactionOutputCondition `json:"condition"`
// public keys
// Required: true
// Min Items: 1
// Unique: true
PublicKeys []string `json:"public_keys"`
}
TransactionOutput transaction output
swagger:model TransactionOutput
func (*TransactionOutput) ContextValidate ¶
ContextValidate validate this transaction output based on the context it is used
func (*TransactionOutput) MarshalBinary ¶
func (m *TransactionOutput) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TransactionOutput) UnmarshalBinary ¶
func (m *TransactionOutput) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TransactionOutputCondition ¶
type TransactionOutputCondition struct {
// details
// Required: true
Details TransactionOutputConditionDetails `json:"details"`
// uri
// Required: true
// Min Length: 1
// Pattern: ^ni:///sha-256;([a-zA-Z0-9_-]{0,86})[?](fpt=(ed25519|threshold)-sha-256(&)?|cost=[0-9]+(&)?|subtypes=ed25519-sha-256(&)?){2,3}$
URI string `json:"uri"`
}
TransactionOutputCondition transaction output condition
swagger:model TransactionOutputCondition
func (*TransactionOutputCondition) ContextValidate ¶
func (m *TransactionOutputCondition) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this transaction output condition based on the context it is used
func (*TransactionOutputCondition) MarshalBinary ¶
func (m *TransactionOutputCondition) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TransactionOutputCondition) UnmarshalBinary ¶
func (m *TransactionOutputCondition) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TransactionOutputConditionDetails ¶
type TransactionOutputConditionDetails struct {
// public key
// Required: true
// Min Length: 1
PublicKey string `json:"public_key"`
// type
// Required: true
// Enum: [ed25519-sha-256]
Type string `json:"type"`
}
TransactionOutputConditionDetails transaction output condition details
swagger:model TransactionOutputConditionDetails
func (*TransactionOutputConditionDetails) ContextValidate ¶
func (m *TransactionOutputConditionDetails) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this transaction output condition details based on context it is used
func (*TransactionOutputConditionDetails) MarshalBinary ¶
func (m *TransactionOutputConditionDetails) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TransactionOutputConditionDetails) UnmarshalBinary ¶
func (m *TransactionOutputConditionDetails) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ValidTransactionResponse ¶
type ValidTransactionResponse struct {
// asset id
AssetID string `json:"asset_id,omitempty"`
// height
Height int64 `json:"height,omitempty"`
// transaction id
TransactionID string `json:"transaction_id,omitempty"`
}
ValidTransactionResponse valid transaction response
swagger:model ValidTransactionResponse
func (*ValidTransactionResponse) ContextValidate ¶
func (m *ValidTransactionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this valid transaction response based on context it is used
func (*ValidTransactionResponse) MarshalBinary ¶
func (m *ValidTransactionResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ValidTransactionResponse) UnmarshalBinary ¶
func (m *ValidTransactionResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation