models

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// TTLTypeDelta captures enum value "delta"
	TTLTypeDelta string = "delta"

	// TTLTypeBlock captures enum value "block"
	TTLTypeBlock string = "block"
)
View Source
const (

	// RelativeTTLTypeDelta captures enum value "delta"
	RelativeTTLTypeDelta string = "delta"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {

	// Balance
	// Required: true
	Balance utils.BigInt `json:"balance"`

	// Public key
	// Required: true
	ID EncodedHash `json:"id"`

	// Nonce
	// Required: true
	// Minimum: 0
	Nonce *uint64 `json:"nonce"`
}

Account account swagger:model Account

func (*Account) MarshalBinary

func (m *Account) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Account) UnmarshalBinary

func (m *Account) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Account) Validate

func (m *Account) Validate(formats strfmt.Registry) error

Validate validates this account

type ByteCode

type ByteCode struct {

	// bytecode
	// Required: true
	Bytecode *string `json:"bytecode"`
}

ByteCode byte code swagger:model ByteCode

func (*ByteCode) MarshalBinary

func (m *ByteCode) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ByteCode) UnmarshalBinary

func (m *ByteCode) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ByteCode) Validate

func (m *ByteCode) Validate(formats strfmt.Registry) error

Validate validates this byte code

type CallResult

type CallResult struct {

	// out
	// Required: true
	Out *string `json:"out"`
}

CallResult call result swagger:model CallResult

func (*CallResult) MarshalBinary

func (m *CallResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CallResult) UnmarshalBinary

func (m *CallResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CallResult) Validate

func (m *CallResult) Validate(formats strfmt.Registry) error

Validate validates this call result

type Calldata

type Calldata struct {

	// calldata
	// Required: true
	Calldata EncodedByteArray `json:"calldata"`
}

Calldata calldata swagger:model Calldata

func (*Calldata) MarshalBinary

func (m *Calldata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Calldata) UnmarshalBinary

func (m *Calldata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Calldata) Validate

func (m *Calldata) Validate(formats strfmt.Registry) error

Validate validates this calldata

type Channel

type Channel struct {

	// channel amount
	// Required: true
	ChannelAmount utils.BigInt `json:"channel_amount"`

	// channel reserve
	// Required: true
	ChannelReserve utils.BigInt `json:"channel_reserve"`

	// delegate ids
	// Required: true
	DelegateIds []EncodedHash `json:"delegate_ids"`

	// id
	// Required: true
	ID EncodedHash `json:"id"`

	// initiator amount
	// Required: true
	InitiatorAmount utils.BigInt `json:"initiator_amount"`

	// initiator id
	// Required: true
	InitiatorID EncodedHash `json:"initiator_id"`

	// lock period
	// Required: true
	// Minimum: 0
	LockPeriod *uint64 `json:"lock_period"`

	// locked until
	// Required: true
	LockedUntil *uint64 `json:"locked_until"`

	// responder amount
	// Required: true
	ResponderAmount utils.BigInt `json:"responder_amount"`

	// responder id
	// Required: true
	ResponderID EncodedHash `json:"responder_id"`

	// round
	// Required: true
	// Minimum: 0
	Round *uint64 `json:"round"`

	// solo round
	// Required: true
	// Minimum: 0
	SoloRound *uint64 `json:"solo_round"`

	// state hash
	// Required: true
	StateHash EncodedHash `json:"state_hash"`
}

Channel channel swagger:model Channel

func (*Channel) MarshalBinary

func (m *Channel) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Channel) UnmarshalBinary

func (m *Channel) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Channel) Validate

func (m *Channel) Validate(formats strfmt.Registry) error

Validate validates this channel

type ChannelCloseMutualTx

type ChannelCloseMutualTx struct {

	// channel id
	// Required: true
	ChannelID EncodedHash `json:"channel_id"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// from id
	// Required: true
	FromID EncodedHash `json:"from_id"`

	// initiator amount final
	// Required: true
	InitiatorAmountFinal utils.BigInt `json:"initiator_amount_final"`

	// nonce
	// Required: true
	// Minimum: 0
	Nonce *uint64 `json:"nonce"`

	// responder amount final
	// Required: true
	ResponderAmountFinal utils.BigInt `json:"responder_amount_final"`

	// ttl
	// Minimum: 0
	TTL *uint64 `json:"ttl,omitempty"`
}

ChannelCloseMutualTx channel close mutual tx swagger:model ChannelCloseMutualTx

func (*ChannelCloseMutualTx) MarshalBinary

func (m *ChannelCloseMutualTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChannelCloseMutualTx) UnmarshalBinary

func (m *ChannelCloseMutualTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelCloseMutualTx) Validate

func (m *ChannelCloseMutualTx) Validate(formats strfmt.Registry) error

Validate validates this channel close mutual tx

type ChannelCloseMutualTxJSON

type ChannelCloseMutualTxJSON struct {
	ChannelCloseMutualTx
	// contains filtered or unexported fields
}

ChannelCloseMutualTxJSON channel close mutual tx JSON swagger:model ChannelCloseMutualTxJSON

func (*ChannelCloseMutualTxJSON) MarshalBinary

func (m *ChannelCloseMutualTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ChannelCloseMutualTxJSON) MarshalJSON

func (m ChannelCloseMutualTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ChannelCloseMutualTxJSON) SetType

func (m *ChannelCloseMutualTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*ChannelCloseMutualTxJSON) SetVersion

func (m *ChannelCloseMutualTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*ChannelCloseMutualTxJSON) Type

func (m *ChannelCloseMutualTxJSON) Type() string

Type gets the type of this subtype

func (*ChannelCloseMutualTxJSON) UnmarshalBinary

func (m *ChannelCloseMutualTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelCloseMutualTxJSON) UnmarshalJSON

func (m *ChannelCloseMutualTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ChannelCloseMutualTxJSON) Validate

func (m *ChannelCloseMutualTxJSON) Validate(formats strfmt.Registry) error

Validate validates this channel close mutual tx JSON

func (*ChannelCloseMutualTxJSON) Version

func (m *ChannelCloseMutualTxJSON) Version() *uint64

Version gets the version of this subtype

type ChannelCloseSoloTx

type ChannelCloseSoloTx struct {

	// channel id
	// Required: true
	ChannelID EncodedHash `json:"channel_id"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// from id
	// Required: true
	FromID EncodedHash `json:"from_id"`

	// nonce
	// Minimum: 0
	Nonce *uint64 `json:"nonce,omitempty"`

	// payload
	// Required: true
	Payload *string `json:"payload"`

	// Proof of inclusion containing information for closing the channel
	// Required: true
	Poi *string `json:"poi"`

	// ttl
	// Minimum: 0
	TTL *uint64 `json:"ttl,omitempty"`
}

ChannelCloseSoloTx channel close solo tx swagger:model ChannelCloseSoloTx

func (*ChannelCloseSoloTx) MarshalBinary

func (m *ChannelCloseSoloTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChannelCloseSoloTx) UnmarshalBinary

func (m *ChannelCloseSoloTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelCloseSoloTx) Validate

func (m *ChannelCloseSoloTx) Validate(formats strfmt.Registry) error

Validate validates this channel close solo tx

type ChannelCloseSoloTxJSON

type ChannelCloseSoloTxJSON struct {
	ChannelCloseSoloTx
	// contains filtered or unexported fields
}

ChannelCloseSoloTxJSON channel close solo tx JSON swagger:model ChannelCloseSoloTxJSON

func (*ChannelCloseSoloTxJSON) MarshalBinary

func (m *ChannelCloseSoloTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ChannelCloseSoloTxJSON) MarshalJSON

func (m ChannelCloseSoloTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ChannelCloseSoloTxJSON) SetType

func (m *ChannelCloseSoloTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*ChannelCloseSoloTxJSON) SetVersion

func (m *ChannelCloseSoloTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*ChannelCloseSoloTxJSON) Type

func (m *ChannelCloseSoloTxJSON) Type() string

Type gets the type of this subtype

func (*ChannelCloseSoloTxJSON) UnmarshalBinary

func (m *ChannelCloseSoloTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelCloseSoloTxJSON) UnmarshalJSON

func (m *ChannelCloseSoloTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ChannelCloseSoloTxJSON) Validate

func (m *ChannelCloseSoloTxJSON) Validate(formats strfmt.Registry) error

Validate validates this channel close solo tx JSON

func (*ChannelCloseSoloTxJSON) Version

func (m *ChannelCloseSoloTxJSON) Version() *uint64

Version gets the version of this subtype

type ChannelCreateTx

type ChannelCreateTx struct {

	// channel reserve
	// Required: true
	ChannelReserve utils.BigInt `json:"channel_reserve"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// initiator amount
	// Required: true
	InitiatorAmount utils.BigInt `json:"initiator_amount"`

	// initiator id
	// Required: true
	InitiatorID EncodedHash `json:"initiator_id"`

	// lock period
	// Required: true
	// Minimum: 0
	LockPeriod *uint64 `json:"lock_period"`

	// nonce
	// Minimum: 0
	Nonce *uint64 `json:"nonce,omitempty"`

	// push amount
	// Required: true
	PushAmount utils.BigInt `json:"push_amount"`

	// responder amount
	// Required: true
	ResponderAmount utils.BigInt `json:"responder_amount"`

	// responder id
	// Required: true
	ResponderID EncodedHash `json:"responder_id"`

	// Root hash of the channel's internal state tree
	// Required: true
	StateHash EncodedHash `json:"state_hash"`

	// ttl
	// Minimum: 0
	TTL *uint64 `json:"ttl,omitempty"`
}

ChannelCreateTx channel create tx swagger:model ChannelCreateTx

func (*ChannelCreateTx) MarshalBinary

func (m *ChannelCreateTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChannelCreateTx) UnmarshalBinary

func (m *ChannelCreateTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelCreateTx) Validate

func (m *ChannelCreateTx) Validate(formats strfmt.Registry) error

Validate validates this channel create tx

type ChannelCreateTxJSON

type ChannelCreateTxJSON struct {
	ChannelCreateTx
	// contains filtered or unexported fields
}

ChannelCreateTxJSON channel create tx JSON swagger:model ChannelCreateTxJSON

func (*ChannelCreateTxJSON) MarshalBinary

func (m *ChannelCreateTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ChannelCreateTxJSON) MarshalJSON

func (m ChannelCreateTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ChannelCreateTxJSON) SetType

func (m *ChannelCreateTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*ChannelCreateTxJSON) SetVersion

func (m *ChannelCreateTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*ChannelCreateTxJSON) Type

func (m *ChannelCreateTxJSON) Type() string

Type gets the type of this subtype

func (*ChannelCreateTxJSON) UnmarshalBinary

func (m *ChannelCreateTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelCreateTxJSON) UnmarshalJSON

func (m *ChannelCreateTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ChannelCreateTxJSON) Validate

func (m *ChannelCreateTxJSON) Validate(formats strfmt.Registry) error

Validate validates this channel create tx JSON

func (*ChannelCreateTxJSON) Version

func (m *ChannelCreateTxJSON) Version() *uint64

Version gets the version of this subtype

type ChannelDepositTx

type ChannelDepositTx struct {

	// amount
	// Required: true
	Amount utils.BigInt `json:"amount"`

	// channel id
	// Required: true
	ChannelID EncodedHash `json:"channel_id"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// from id
	// Required: true
	FromID EncodedHash `json:"from_id"`

	// nonce
	// Required: true
	// Minimum: 0
	Nonce *uint64 `json:"nonce"`

	// Channel's next round
	// Required: true
	// Minimum: 0
	Round *uint64 `json:"round"`

	// Root hash of the channel's internal state tree after the deposit had been applied to it
	// Required: true
	StateHash EncodedHash `json:"state_hash"`

	// ttl
	// Minimum: 0
	TTL *uint64 `json:"ttl,omitempty"`
}

ChannelDepositTx channel deposit tx swagger:model ChannelDepositTx

func (*ChannelDepositTx) MarshalBinary

func (m *ChannelDepositTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChannelDepositTx) UnmarshalBinary

func (m *ChannelDepositTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelDepositTx) Validate

func (m *ChannelDepositTx) Validate(formats strfmt.Registry) error

Validate validates this channel deposit tx

type ChannelDepositTxJSON

type ChannelDepositTxJSON struct {
	ChannelDepositTx
	// contains filtered or unexported fields
}

ChannelDepositTxJSON channel deposit tx JSON swagger:model ChannelDepositTxJSON

func (*ChannelDepositTxJSON) MarshalBinary

func (m *ChannelDepositTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ChannelDepositTxJSON) MarshalJSON

func (m ChannelDepositTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ChannelDepositTxJSON) SetType

func (m *ChannelDepositTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*ChannelDepositTxJSON) SetVersion

func (m *ChannelDepositTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*ChannelDepositTxJSON) Type

func (m *ChannelDepositTxJSON) Type() string

Type gets the type of this subtype

func (*ChannelDepositTxJSON) UnmarshalBinary

func (m *ChannelDepositTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelDepositTxJSON) UnmarshalJSON

func (m *ChannelDepositTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ChannelDepositTxJSON) Validate

func (m *ChannelDepositTxJSON) Validate(formats strfmt.Registry) error

Validate validates this channel deposit tx JSON

func (*ChannelDepositTxJSON) Version

func (m *ChannelDepositTxJSON) Version() *uint64

Version gets the version of this subtype

type ChannelForceProgressTx

type ChannelForceProgressTx struct {

	// channel id
	// Required: true
	ChannelID EncodedHash `json:"channel_id"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// from id
	// Required: true
	FromID EncodedHash `json:"from_id"`

	// nonce
	// Minimum: 0
	Nonce *uint64 `json:"nonce,omitempty"`

	// The whole set of off-chain state trees
	OffchainTrees EncodedHash `json:"offchain_trees,omitempty"`

	// payload
	// Required: true
	Payload *string `json:"payload"`

	// Channel's next round
	// Required: true
	// Minimum: 0
	Round *uint64 `json:"round"`

	// Channel's next state_hash
	// Required: true
	StateHash EncodedHash `json:"state_hash"`

	// ttl
	// Minimum: 0
	TTL *uint64 `json:"ttl,omitempty"`
	// contains filtered or unexported fields
}

ChannelForceProgressTx channel force progress tx swagger:model ChannelForceProgressTx

func (*ChannelForceProgressTx) MarshalBinary

func (m *ChannelForceProgressTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ChannelForceProgressTx) MarshalJSON

func (m ChannelForceProgressTx) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ChannelForceProgressTx) SetUpdate

func (m *ChannelForceProgressTx) SetUpdate(val OffChainUpdate)

SetUpdate sets the update of this base type

func (*ChannelForceProgressTx) UnmarshalBinary

func (m *ChannelForceProgressTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelForceProgressTx) UnmarshalJSON

func (m *ChannelForceProgressTx) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ChannelForceProgressTx) Update

Update gets the update of this base type

func (*ChannelForceProgressTx) Validate

func (m *ChannelForceProgressTx) Validate(formats strfmt.Registry) error

Validate validates this channel force progress tx

type ChannelForceProgressTxJSON

type ChannelForceProgressTxJSON struct {
	ChannelForceProgressTx
	// contains filtered or unexported fields
}

ChannelForceProgressTxJSON channel force progress tx JSON swagger:model ChannelForceProgressTxJSON

func (*ChannelForceProgressTxJSON) MarshalBinary

func (m *ChannelForceProgressTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ChannelForceProgressTxJSON) MarshalJSON

func (m ChannelForceProgressTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ChannelForceProgressTxJSON) SetType

func (m *ChannelForceProgressTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*ChannelForceProgressTxJSON) SetVersion

func (m *ChannelForceProgressTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*ChannelForceProgressTxJSON) Type

Type gets the type of this subtype

func (*ChannelForceProgressTxJSON) UnmarshalBinary

func (m *ChannelForceProgressTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelForceProgressTxJSON) UnmarshalJSON

func (m *ChannelForceProgressTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ChannelForceProgressTxJSON) Validate

func (m *ChannelForceProgressTxJSON) Validate(formats strfmt.Registry) error

Validate validates this channel force progress tx JSON

func (*ChannelForceProgressTxJSON) Version

func (m *ChannelForceProgressTxJSON) Version() *uint64

Version gets the version of this subtype

type ChannelSLASHTx

type ChannelSLASHTx struct {

	// channel id
	// Required: true
	ChannelID EncodedHash `json:"channel_id"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// from id
	// Required: true
	FromID EncodedHash `json:"from_id"`

	// nonce
	// Minimum: 0
	Nonce *uint64 `json:"nonce,omitempty"`

	// payload
	// Required: true
	Payload *string `json:"payload"`

	// Proof of inclusion containing information for closing the channel
	// Required: true
	Poi *string `json:"poi"`

	// ttl
	// Minimum: 0
	TTL *uint64 `json:"ttl,omitempty"`
}

ChannelSLASHTx channel slash tx swagger:model ChannelSlashTx

func (*ChannelSLASHTx) MarshalBinary

func (m *ChannelSLASHTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChannelSLASHTx) UnmarshalBinary

func (m *ChannelSLASHTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelSLASHTx) Validate

func (m *ChannelSLASHTx) Validate(formats strfmt.Registry) error

Validate validates this channel slash tx

type ChannelSLASHTxJSON

type ChannelSLASHTxJSON struct {
	ChannelSLASHTx
	// contains filtered or unexported fields
}

ChannelSLASHTxJSON channel slash tx JSON swagger:model ChannelSlashTxJSON

func (*ChannelSLASHTxJSON) MarshalBinary

func (m *ChannelSLASHTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ChannelSLASHTxJSON) MarshalJSON

func (m ChannelSLASHTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ChannelSLASHTxJSON) SetType

func (m *ChannelSLASHTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*ChannelSLASHTxJSON) SetVersion

func (m *ChannelSLASHTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*ChannelSLASHTxJSON) Type

func (m *ChannelSLASHTxJSON) Type() string

Type gets the type of this subtype

func (*ChannelSLASHTxJSON) UnmarshalBinary

func (m *ChannelSLASHTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelSLASHTxJSON) UnmarshalJSON

func (m *ChannelSLASHTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ChannelSLASHTxJSON) Validate

func (m *ChannelSLASHTxJSON) Validate(formats strfmt.Registry) error

Validate validates this channel slash tx JSON

func (*ChannelSLASHTxJSON) Version

func (m *ChannelSLASHTxJSON) Version() *uint64

Version gets the version of this subtype

type ChannelSettleTx

type ChannelSettleTx struct {

	// channel id
	// Required: true
	ChannelID EncodedHash `json:"channel_id"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// from id
	// Required: true
	FromID EncodedHash `json:"from_id"`

	// initiator amount final
	// Required: true
	InitiatorAmountFinal utils.BigInt `json:"initiator_amount_final"`

	// nonce
	// Required: true
	// Minimum: 0
	Nonce *uint64 `json:"nonce"`

	// responder amount final
	// Required: true
	ResponderAmountFinal utils.BigInt `json:"responder_amount_final"`

	// ttl
	// Minimum: 0
	TTL *uint64 `json:"ttl,omitempty"`
}

ChannelSettleTx channel settle tx swagger:model ChannelSettleTx

func (*ChannelSettleTx) MarshalBinary

func (m *ChannelSettleTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChannelSettleTx) UnmarshalBinary

func (m *ChannelSettleTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelSettleTx) Validate

func (m *ChannelSettleTx) Validate(formats strfmt.Registry) error

Validate validates this channel settle tx

type ChannelSettleTxJSON

type ChannelSettleTxJSON struct {
	ChannelSettleTx
	// contains filtered or unexported fields
}

ChannelSettleTxJSON channel settle tx JSON swagger:model ChannelSettleTxJSON

func (*ChannelSettleTxJSON) MarshalBinary

func (m *ChannelSettleTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ChannelSettleTxJSON) MarshalJSON

func (m ChannelSettleTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ChannelSettleTxJSON) SetType

func (m *ChannelSettleTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*ChannelSettleTxJSON) SetVersion

func (m *ChannelSettleTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*ChannelSettleTxJSON) Type

func (m *ChannelSettleTxJSON) Type() string

Type gets the type of this subtype

func (*ChannelSettleTxJSON) UnmarshalBinary

func (m *ChannelSettleTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelSettleTxJSON) UnmarshalJSON

func (m *ChannelSettleTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ChannelSettleTxJSON) Validate

func (m *ChannelSettleTxJSON) Validate(formats strfmt.Registry) error

Validate validates this channel settle tx JSON

func (*ChannelSettleTxJSON) Version

func (m *ChannelSettleTxJSON) Version() *uint64

Version gets the version of this subtype

type ChannelSnapshotSoloTx

type ChannelSnapshotSoloTx struct {

	// channel id
	// Required: true
	ChannelID EncodedHash `json:"channel_id"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// from id
	// Required: true
	FromID EncodedHash `json:"from_id"`

	// nonce
	// Minimum: 0
	Nonce *uint64 `json:"nonce,omitempty"`

	// payload
	// Required: true
	Payload *string `json:"payload"`

	// ttl
	// Minimum: 0
	TTL *uint64 `json:"ttl,omitempty"`
}

ChannelSnapshotSoloTx channel snapshot solo tx swagger:model ChannelSnapshotSoloTx

func (*ChannelSnapshotSoloTx) MarshalBinary

func (m *ChannelSnapshotSoloTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChannelSnapshotSoloTx) UnmarshalBinary

func (m *ChannelSnapshotSoloTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelSnapshotSoloTx) Validate

func (m *ChannelSnapshotSoloTx) Validate(formats strfmt.Registry) error

Validate validates this channel snapshot solo tx

type ChannelSnapshotSoloTxJSON

type ChannelSnapshotSoloTxJSON struct {
	ChannelSnapshotSoloTx
	// contains filtered or unexported fields
}

ChannelSnapshotSoloTxJSON channel snapshot solo tx JSON swagger:model ChannelSnapshotSoloTxJSON

func (*ChannelSnapshotSoloTxJSON) MarshalBinary

func (m *ChannelSnapshotSoloTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ChannelSnapshotSoloTxJSON) MarshalJSON

func (m ChannelSnapshotSoloTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ChannelSnapshotSoloTxJSON) SetType

func (m *ChannelSnapshotSoloTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*ChannelSnapshotSoloTxJSON) SetVersion

func (m *ChannelSnapshotSoloTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*ChannelSnapshotSoloTxJSON) Type

Type gets the type of this subtype

func (*ChannelSnapshotSoloTxJSON) UnmarshalBinary

func (m *ChannelSnapshotSoloTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelSnapshotSoloTxJSON) UnmarshalJSON

func (m *ChannelSnapshotSoloTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ChannelSnapshotSoloTxJSON) Validate

func (m *ChannelSnapshotSoloTxJSON) Validate(formats strfmt.Registry) error

Validate validates this channel snapshot solo tx JSON

func (*ChannelSnapshotSoloTxJSON) Version

func (m *ChannelSnapshotSoloTxJSON) Version() *uint64

Version gets the version of this subtype

type ChannelWithdrawTx

type ChannelWithdrawTx struct {

	// amount
	// Required: true
	Amount utils.BigInt `json:"amount"`

	// channel id
	// Required: true
	ChannelID EncodedHash `json:"channel_id"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// nonce
	// Required: true
	// Minimum: 0
	Nonce *uint64 `json:"nonce"`

	// Channel's next round
	// Required: true
	// Minimum: 0
	Round *uint64 `json:"round"`

	// Root hash of the channel's internal state tree after the withdraw had been applied to it
	// Required: true
	StateHash EncodedHash `json:"state_hash"`

	// to id
	// Required: true
	ToID EncodedHash `json:"to_id"`

	// ttl
	// Minimum: 0
	TTL *uint64 `json:"ttl,omitempty"`
}

ChannelWithdrawTx channel withdraw tx swagger:model ChannelWithdrawTx

func (*ChannelWithdrawTx) MarshalBinary

func (m *ChannelWithdrawTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ChannelWithdrawTx) UnmarshalBinary

func (m *ChannelWithdrawTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelWithdrawTx) Validate

func (m *ChannelWithdrawTx) Validate(formats strfmt.Registry) error

Validate validates this channel withdraw tx

type ChannelWithdrawalTxJSON

type ChannelWithdrawalTxJSON struct {
	ChannelWithdrawTx
	// contains filtered or unexported fields
}

ChannelWithdrawalTxJSON channel withdrawal tx JSON swagger:model ChannelWithdrawalTxJSON

func (*ChannelWithdrawalTxJSON) MarshalBinary

func (m *ChannelWithdrawalTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ChannelWithdrawalTxJSON) MarshalJSON

func (m ChannelWithdrawalTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ChannelWithdrawalTxJSON) SetType

func (m *ChannelWithdrawalTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*ChannelWithdrawalTxJSON) SetVersion

func (m *ChannelWithdrawalTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*ChannelWithdrawalTxJSON) Type

func (m *ChannelWithdrawalTxJSON) Type() string

Type gets the type of this subtype

func (*ChannelWithdrawalTxJSON) UnmarshalBinary

func (m *ChannelWithdrawalTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ChannelWithdrawalTxJSON) UnmarshalJSON

func (m *ChannelWithdrawalTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ChannelWithdrawalTxJSON) Validate

func (m *ChannelWithdrawalTxJSON) Validate(formats strfmt.Registry) error

Validate validates this channel withdrawal tx JSON

func (*ChannelWithdrawalTxJSON) Version

func (m *ChannelWithdrawalTxJSON) Version() *uint64

Version gets the version of this subtype

type CommitmentID

type CommitmentID struct {

	// commitment id
	// Required: true
	CommitmentID EncodedHash `json:"commitment_id"`
}

CommitmentID commitment Id swagger:model CommitmentId

func (*CommitmentID) MarshalBinary

func (m *CommitmentID) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommitmentID) UnmarshalBinary

func (m *CommitmentID) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommitmentID) Validate

func (m *CommitmentID) Validate(formats strfmt.Registry) error

Validate validates this commitment Id

type Contract

type Contract struct {

	// code
	// Required: true
	Code *string `json:"code"`

	// options
	// Required: true
	Options *string `json:"options"`
}

Contract contract swagger:model Contract

func (*Contract) MarshalBinary

func (m *Contract) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Contract) UnmarshalBinary

func (m *Contract) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Contract) Validate

func (m *Contract) Validate(formats strfmt.Registry) error

Validate validates this contract

type ContractCallCompute

type ContractCallCompute struct {

	// ABI version
	// Maximum: 65535
	// Minimum: 0
	AbiVersion *int64 `json:"abi_version,omitempty"`

	// Amount
	// Required: true
	Amount utils.BigInt `json:"amount"`

	// Contract call data function arguments (deprecated, use call)
	Arguments string `json:"arguments,omitempty"`

	// Source code for a contract with a function __call() = f(args), if calling a function f
	Call string `json:"call,omitempty"`

	// Contract caller pub_key
	// Required: true
	CallerID EncodedHash `json:"caller_id"`

	// Contract's pub_key
	// Required: true
	ContractID EncodedHash `json:"contract_id"`

	// Transaction fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// Contract call data function (deprecated, use call)
	Function string `json:"function,omitempty"`

	// Contract gas
	// Required: true
	// Minimum: 0
	Gas *int64 `json:"gas"`

	// Gas price
	// Required: true
	// Minimum: 0
	GasPrice *int64 `json:"gas_price"`

	// Caller's nonce
	Nonce int64 `json:"nonce,omitempty"`

	// Transaction TTL
	// Minimum: 0
	TTL *int64 `json:"ttl,omitempty"`

	// VM version
	// Maximum: 65535
	// Minimum: 0
	VMVersion *int64 `json:"vm_version,omitempty"`
}

ContractCallCompute contract call compute swagger:model ContractCallCompute

func (*ContractCallCompute) MarshalBinary

func (m *ContractCallCompute) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContractCallCompute) UnmarshalBinary

func (m *ContractCallCompute) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContractCallCompute) Validate

func (m *ContractCallCompute) Validate(formats strfmt.Registry) error

Validate validates this contract call compute

type ContractCallInput

type ContractCallInput struct {

	// abi
	// Required: true
	Abi *string `json:"abi"`

	// arg
	Arg string `json:"arg,omitempty"`

	// Source code for a contract with a function __call() = f(args), if calling a function f
	Call string `json:"call,omitempty"`

	// code
	// Required: true
	Code *string `json:"code"`

	// function
	Function string `json:"function,omitempty"`
}

ContractCallInput contract call input swagger:model ContractCallInput

func (*ContractCallInput) MarshalBinary

func (m *ContractCallInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContractCallInput) UnmarshalBinary

func (m *ContractCallInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContractCallInput) Validate

func (m *ContractCallInput) Validate(formats strfmt.Registry) error

Validate validates this contract call input

type ContractCallObject

type ContractCallObject struct {

	// caller id
	// Required: true
	CallerID EncodedHash `json:"caller_id"`

	// caller nonce
	// Required: true
	CallerNonce *int64 `json:"caller_nonce"`

	// contract id
	// Required: true
	ContractID EncodedHash `json:"contract_id"`

	// gas price
	// Required: true
	GasPrice *int64 `json:"gas_price"`

	// gas used
	// Required: true
	GasUsed *int64 `json:"gas_used"`

	// height
	// Required: true
	Height *int64 `json:"height"`

	// The status of the call 'ok | error | revert'.
	// Required: true
	ReturnType *string `json:"return_type"`

	// return value
	// Required: true
	ReturnValue EncodedByteArray `json:"return_value"`
}

ContractCallObject contract call object swagger:model ContractCallObject

func (*ContractCallObject) MarshalBinary

func (m *ContractCallObject) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContractCallObject) UnmarshalBinary

func (m *ContractCallObject) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContractCallObject) Validate

func (m *ContractCallObject) Validate(formats strfmt.Registry) error

Validate validates this contract call object

type ContractCallTx

type ContractCallTx struct {

	// ABI version
	// Maximum: 65535
	// Minimum: 0
	AbiVersion *int64 `json:"abi_version,omitempty"`

	// Amount
	// Required: true
	Amount utils.BigInt `json:"amount"`

	// Contract call data
	// Required: true
	CallData EncodedByteArray `json:"call_data"`

	// Contract caller pub_key
	// Required: true
	CallerID EncodedHash `json:"caller_id"`

	// Contract's pub_key
	// Required: true
	ContractID EncodedHash `json:"contract_id"`

	// Transaction fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// Contract gas
	// Required: true
	// Minimum: 0
	Gas *int64 `json:"gas"`

	// Gas price
	// Required: true
	// Minimum: 0
	GasPrice *int64 `json:"gas_price"`

	// Caller's nonce
	Nonce int64 `json:"nonce,omitempty"`

	// Transaction TTL
	// Minimum: 0
	TTL *int64 `json:"ttl,omitempty"`

	// VM version
	// Maximum: 65535
	// Minimum: 0
	VMVersion *int64 `json:"vm_version,omitempty"`
}

ContractCallTx contract call tx swagger:model ContractCallTx

func (*ContractCallTx) MarshalBinary

func (m *ContractCallTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContractCallTx) UnmarshalBinary

func (m *ContractCallTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContractCallTx) Validate

func (m *ContractCallTx) Validate(formats strfmt.Registry) error

Validate validates this contract call tx

type ContractCallTxJSON

type ContractCallTxJSON struct {
	ContractCallTx
	// contains filtered or unexported fields
}

ContractCallTxJSON contract call tx JSON swagger:model ContractCallTxJSON

func (*ContractCallTxJSON) MarshalBinary

func (m *ContractCallTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ContractCallTxJSON) MarshalJSON

func (m ContractCallTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ContractCallTxJSON) SetType

func (m *ContractCallTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*ContractCallTxJSON) SetVersion

func (m *ContractCallTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*ContractCallTxJSON) Type

func (m *ContractCallTxJSON) Type() string

Type gets the type of this subtype

func (*ContractCallTxJSON) UnmarshalBinary

func (m *ContractCallTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContractCallTxJSON) UnmarshalJSON

func (m *ContractCallTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ContractCallTxJSON) Validate

func (m *ContractCallTxJSON) Validate(formats strfmt.Registry) error

Validate validates this contract call tx JSON

func (*ContractCallTxJSON) Version

func (m *ContractCallTxJSON) Version() *uint64

Version gets the version of this subtype

type ContractCreateCompute

type ContractCreateCompute struct {

	// ABI version
	// Maximum: 65535
	// Minimum: 0
	AbiVersion *int64 `json:"abi_version,omitempty"`

	// Amount
	// Required: true
	Amount utils.BigInt `json:"amount"`

	// Contract call data init function arguments (deprecated, use call)
	Arguments string `json:"arguments,omitempty"`

	// Source code for a contract with a function __call() = init(args)
	Call string `json:"call,omitempty"`

	// Contract's code
	// Required: true
	Code *string `json:"code"`

	// Deposit
	// Required: true
	// Minimum: 0
	Deposit *int64 `json:"deposit"`

	// Transaction fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// Contract gas
	// Required: true
	// Minimum: 0
	Gas *int64 `json:"gas"`

	// Gas price
	// Required: true
	// Minimum: 0
	GasPrice *int64 `json:"gas_price"`

	// Owner's nonce
	Nonce int64 `json:"nonce,omitempty"`

	// Contract owner pub_key
	// Required: true
	OwnerID *string `json:"owner_id"`

	// Transaction TTL
	// Minimum: 0
	TTL *int64 `json:"ttl,omitempty"`

	// Virtual machine's version
	// Required: true
	// Maximum: 65535
	// Minimum: 0
	VMVersion *int64 `json:"vm_version"`
}

ContractCreateCompute contract create compute swagger:model ContractCreateCompute

func (*ContractCreateCompute) MarshalBinary

func (m *ContractCreateCompute) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContractCreateCompute) UnmarshalBinary

func (m *ContractCreateCompute) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContractCreateCompute) Validate

func (m *ContractCreateCompute) Validate(formats strfmt.Registry) error

Validate validates this contract create compute

type ContractCreateTx

type ContractCreateTx struct {

	// ABI version
	// Maximum: 65535
	// Minimum: 0
	AbiVersion *int64 `json:"abi_version,omitempty"`

	// Amount
	// Required: true
	Amount utils.BigInt `json:"amount"`

	// Contract call data
	// Required: true
	CallData EncodedByteArray `json:"call_data"`

	// Contract's code
	// Required: true
	Code *string `json:"code"`

	// Deposit
	// Required: true
	// Minimum: 0
	Deposit *int64 `json:"deposit"`

	// Transaction fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// Contract gas
	// Required: true
	// Minimum: 0
	Gas *int64 `json:"gas"`

	// Gas price
	// Required: true
	// Minimum: 0
	GasPrice *int64 `json:"gas_price"`

	// Owner's nonce
	Nonce int64 `json:"nonce,omitempty"`

	// Contract owner pub_key
	// Required: true
	OwnerID EncodedHash `json:"owner_id"`

	// Transaction TTL
	// Minimum: 0
	TTL *int64 `json:"ttl,omitempty"`

	// Virtual machine's version
	// Required: true
	// Maximum: 65535
	// Minimum: 0
	VMVersion *int64 `json:"vm_version"`
}

ContractCreateTx contract create tx swagger:model ContractCreateTx

func (*ContractCreateTx) MarshalBinary

func (m *ContractCreateTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContractCreateTx) UnmarshalBinary

func (m *ContractCreateTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContractCreateTx) Validate

func (m *ContractCreateTx) Validate(formats strfmt.Registry) error

Validate validates this contract create tx

type ContractCreateTxJSON

type ContractCreateTxJSON struct {
	ContractCreateTx
	// contains filtered or unexported fields
}

ContractCreateTxJSON contract create tx JSON swagger:model ContractCreateTxJSON

func (*ContractCreateTxJSON) MarshalBinary

func (m *ContractCreateTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ContractCreateTxJSON) MarshalJSON

func (m ContractCreateTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*ContractCreateTxJSON) SetType

func (m *ContractCreateTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*ContractCreateTxJSON) SetVersion

func (m *ContractCreateTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*ContractCreateTxJSON) Type

func (m *ContractCreateTxJSON) Type() string

Type gets the type of this subtype

func (*ContractCreateTxJSON) UnmarshalBinary

func (m *ContractCreateTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContractCreateTxJSON) UnmarshalJSON

func (m *ContractCreateTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*ContractCreateTxJSON) Validate

func (m *ContractCreateTxJSON) Validate(formats strfmt.Registry) error

Validate validates this contract create tx JSON

func (*ContractCreateTxJSON) Version

func (m *ContractCreateTxJSON) Version() *uint64

Version gets the version of this subtype

type ContractObject

type ContractObject struct {

	// abi version
	// Maximum: 65535
	// Minimum: 0
	AbiVersion *int64 `json:"abi_version,omitempty"`

	// active
	// Required: true
	Active *bool `json:"active"`

	// deposit
	// Required: true
	Deposit *int64 `json:"deposit"`

	// id
	// Required: true
	ID EncodedHash `json:"id"`

	// log
	// Required: true
	Log *string `json:"log"`

	// owner id
	// Required: true
	OwnerID EncodedHash `json:"owner_id"`

	// referrer ids
	// Required: true
	ReferrerIds []EncodedHash `json:"referrer_ids"`

	// vm version
	// Required: true
	// Maximum: 65535
	// Minimum: 0
	VMVersion *int64 `json:"vm_version"`
}

ContractObject contract object swagger:model ContractObject

func (*ContractObject) MarshalBinary

func (m *ContractObject) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContractObject) UnmarshalBinary

func (m *ContractObject) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContractObject) Validate

func (m *ContractObject) Validate(formats strfmt.Registry) error

Validate validates this contract object

type ContractStore

type ContractStore struct {

	// store
	// Required: true
	Store []*ContractStoreStore `json:"store"`
}

ContractStore contract store swagger:model ContractStore

func (*ContractStore) MarshalBinary

func (m *ContractStore) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContractStore) UnmarshalBinary

func (m *ContractStore) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContractStore) Validate

func (m *ContractStore) Validate(formats strfmt.Registry) error

Validate validates this contract store

type ContractStoreStore

type ContractStoreStore struct {

	// key
	Key string `json:"key,omitempty"`

	// value
	Value EncodedByteArray `json:"value,omitempty"`
}

ContractStoreStore contract store store swagger:model ContractStore_store

func (*ContractStoreStore) MarshalBinary

func (m *ContractStoreStore) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContractStoreStore) UnmarshalBinary

func (m *ContractStoreStore) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContractStoreStore) Validate

func (m *ContractStoreStore) Validate(formats strfmt.Registry) error

Validate validates this contract store store

type CreateContractUnsignedTx

type CreateContractUnsignedTx struct {
	UnsignedTx

	// Address of the contract to be created
	// Required: true
	ContractID EncodedHash `json:"contract_id"`
}

CreateContractUnsignedTx create contract unsigned tx swagger:model CreateContractUnsignedTx

func (*CreateContractUnsignedTx) MarshalBinary

func (m *CreateContractUnsignedTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (CreateContractUnsignedTx) MarshalJSON

func (m CreateContractUnsignedTx) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*CreateContractUnsignedTx) UnmarshalBinary

func (m *CreateContractUnsignedTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateContractUnsignedTx) UnmarshalJSON

func (m *CreateContractUnsignedTx) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*CreateContractUnsignedTx) Validate

func (m *CreateContractUnsignedTx) Validate(formats strfmt.Registry) error

Validate validates this create contract unsigned tx

type DryRunAccount

type DryRunAccount struct {

	// amount
	// Required: true
	Amount utils.BigInt `json:"amount"`

	// pub key
	// Required: true
	PubKey EncodedHash `json:"pub_key"`
}

DryRunAccount dry run account swagger:model DryRunAccount

func (*DryRunAccount) MarshalBinary

func (m *DryRunAccount) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DryRunAccount) UnmarshalBinary

func (m *DryRunAccount) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DryRunAccount) Validate

func (m *DryRunAccount) Validate(formats strfmt.Registry) error

Validate validates this dry run account

type DryRunInput

type DryRunInput struct {

	// Accounts
	Accounts []*DryRunAccount `json:"accounts"`

	// top
	Top string `json:"top,omitempty"`

	// Txs
	// Required: true
	Txs []EncodedHash `json:"txs"`
}

DryRunInput dry run input swagger:model DryRunInput

func (*DryRunInput) MarshalBinary

func (m *DryRunInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DryRunInput) UnmarshalBinary

func (m *DryRunInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DryRunInput) Validate

func (m *DryRunInput) Validate(formats strfmt.Registry) error

Validate validates this dry run input

type DryRunResult

type DryRunResult struct {

	// call obj
	CallObj *ContractCallObject `json:"call_obj,omitempty"`

	// reason
	Reason string `json:"reason,omitempty"`

	// result
	// Required: true
	Result *string `json:"result"`

	// type
	// Required: true
	Type *string `json:"type"`
}

DryRunResult dry run result swagger:model DryRunResult

func (*DryRunResult) MarshalBinary

func (m *DryRunResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DryRunResult) UnmarshalBinary

func (m *DryRunResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DryRunResult) Validate

func (m *DryRunResult) Validate(formats strfmt.Registry) error

Validate validates this dry run result

type DryRunResults

type DryRunResults struct {

	// results
	// Required: true
	Results []*DryRunResult `json:"results"`
}

DryRunResults dry run results swagger:model DryRunResults

func (*DryRunResults) MarshalBinary

func (m *DryRunResults) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DryRunResults) UnmarshalBinary

func (m *DryRunResults) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DryRunResults) Validate

func (m *DryRunResults) Validate(formats strfmt.Registry) error

Validate validates this dry run results

type EncodedByteArray

type EncodedByteArray string

EncodedByteArray encoded byte array swagger:model EncodedByteArray

func (EncodedByteArray) Validate

func (m EncodedByteArray) Validate(formats strfmt.Registry) error

Validate validates this encoded byte array

type EncodedHash

type EncodedHash string

EncodedHash encoded hash swagger:model EncodedHash

func (EncodedHash) Validate

func (m EncodedHash) Validate(formats strfmt.Registry) error

Validate validates this encoded hash

type Error

type Error struct {

	// reason
	// Required: true
	Reason *string `json:"reason"`
}

Error error swagger:model Error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Generation

type Generation struct {

	// key block
	// Required: true
	KeyBlock *KeyBlock `json:"key_block"`

	// micro blocks
	// Required: true
	MicroBlocks []EncodedHash `json:"micro_blocks"`
}

Generation generation swagger:model Generation

func (*Generation) MarshalBinary

func (m *Generation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Generation) UnmarshalBinary

func (m *Generation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Generation) Validate

func (m *Generation) Validate(formats strfmt.Registry) error

Validate validates this generation

type GenericSignedTx

type GenericSignedTx struct {

	// Value "none" means no block in the chain includes the transaction
	// Required: true
	BlockHash EncodedHash `json:"block_hash"`

	// block height
	// Required: true
	BlockHeight *uint64 `json:"block_height"`

	// hash
	// Required: true
	Hash EncodedHash `json:"hash"`

	// signatures
	// Required: true
	// Min Items: 1
	Signatures []string `json:"signatures"`
	// contains filtered or unexported fields
}

GenericSignedTx generic signed tx swagger:model GenericSignedTx

func (*GenericSignedTx) MarshalBinary

func (m *GenericSignedTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (GenericSignedTx) MarshalJSON

func (m GenericSignedTx) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*GenericSignedTx) SetTx

func (m *GenericSignedTx) SetTx(val GenericTx)

SetTx sets the tx of this base type

func (*GenericSignedTx) Tx

func (m *GenericSignedTx) Tx() GenericTx

Tx gets the tx of this base type

func (*GenericSignedTx) UnmarshalBinary

func (m *GenericSignedTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GenericSignedTx) UnmarshalJSON

func (m *GenericSignedTx) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*GenericSignedTx) Validate

func (m *GenericSignedTx) Validate(formats strfmt.Registry) error

Validate validates this generic signed tx

type GenericTx

type GenericTx interface {
	runtime.Validatable

	// type
	// Required: true
	Type() string
	SetType(string)

	// version
	// Required: true
	Version() *uint64
	SetVersion(*uint64)
}

GenericTx generic tx swagger:discriminator GenericTx type

func UnmarshalGenericTx

func UnmarshalGenericTx(reader io.Reader, consumer runtime.Consumer) (GenericTx, error)

UnmarshalGenericTx unmarshals polymorphic GenericTx

func UnmarshalGenericTxSlice

func UnmarshalGenericTxSlice(reader io.Reader, consumer runtime.Consumer) ([]GenericTx, error)

UnmarshalGenericTxSlice unmarshals polymorphic slices of GenericTx

type GenericTxs

type GenericTxs struct {

	// transactions
	// Required: true
	Transactions []*GenericSignedTx `json:"transactions"`
}

GenericTxs generic txs swagger:model GenericTxs

func (*GenericTxs) MarshalBinary

func (m *GenericTxs) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GenericTxs) UnmarshalBinary

func (m *GenericTxs) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GenericTxs) Validate

func (m *GenericTxs) Validate(formats strfmt.Registry) error

Validate validates this generic txs

type InlineResponse200

type InlineResponse200 struct {

	// Hash
	Hash string `json:"hash,omitempty"`
}

InlineResponse200 inline response 200 swagger:model inline_response_200

func (*InlineResponse200) MarshalBinary

func (m *InlineResponse200) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InlineResponse200) UnmarshalBinary

func (m *InlineResponse200) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InlineResponse200) Validate

func (m *InlineResponse200) Validate(formats strfmt.Registry) error

Validate validates this inline response 200

type InlineResponse2001

type InlineResponse2001 struct {

	// Height
	Height uint64 `json:"height,omitempty"`
}

InlineResponse2001 inline response 200 1 swagger:model inline_response_200_1

func (*InlineResponse2001) MarshalBinary

func (m *InlineResponse2001) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InlineResponse2001) UnmarshalBinary

func (m *InlineResponse2001) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InlineResponse2001) Validate

func (m *InlineResponse2001) Validate(formats strfmt.Registry) error

Validate validates this inline response 200 1

type InlineResponse2002

type InlineResponse2002 struct {

	// Count
	// Minimum: 1
	Count uint64 `json:"count,omitempty"`
}

InlineResponse2002 inline response 200 2 swagger:model inline_response_200_2

func (*InlineResponse2002) MarshalBinary

func (m *InlineResponse2002) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InlineResponse2002) UnmarshalBinary

func (m *InlineResponse2002) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InlineResponse2002) Validate

func (m *InlineResponse2002) Validate(formats strfmt.Registry) error

Validate validates this inline response 200 2

type InlineResponse2003

type InlineResponse2003 struct {

	// pubkey
	Pubkey string `json:"pubkey,omitempty"`
}

InlineResponse2003 inline response 200 3 swagger:model inline_response_200_3

func (*InlineResponse2003) MarshalBinary

func (m *InlineResponse2003) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InlineResponse2003) UnmarshalBinary

func (m *InlineResponse2003) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InlineResponse2003) Validate

func (m *InlineResponse2003) Validate(formats strfmt.Registry) error

Validate validates this inline response 200 3

type KeyBlock

type KeyBlock struct {

	// beneficiary
	// Required: true
	Beneficiary EncodedHash `json:"beneficiary"`

	// hash
	// Required: true
	Hash EncodedHash `json:"hash"`

	// height
	// Required: true
	Height *uint64 `json:"height"`

	// info
	// Required: true
	Info EncodedByteArray `json:"info"`

	// miner
	// Required: true
	Miner EncodedHash `json:"miner"`

	// nonce
	Nonce uint64 `json:"nonce,omitempty"`

	// pow
	Pow Pow `json:"pow,omitempty"`

	// prev hash
	// Required: true
	PrevHash EncodedHash `json:"prev_hash"`

	// prev key hash
	// Required: true
	PrevKeyHash EncodedHash `json:"prev_key_hash"`

	// state hash
	// Required: true
	StateHash EncodedHash `json:"state_hash"`

	// target
	// Required: true
	Target *uint64 `json:"target"`

	// time
	// Required: true
	Time *int64 `json:"time"`

	// version
	// Required: true
	Version *uint64 `json:"version"`
}

KeyBlock key block swagger:model KeyBlock

func (*KeyBlock) MarshalBinary

func (m *KeyBlock) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*KeyBlock) UnmarshalBinary

func (m *KeyBlock) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*KeyBlock) Validate

func (m *KeyBlock) Validate(formats strfmt.Registry) error

Validate validates this key block

type KeyBlockOrMicroBlockHeader

type KeyBlockOrMicroBlockHeader struct {

	// key block
	KeyBlock *KeyBlock `json:"key_block,omitempty"`

	// micro block
	MicroBlock *MicroBlockHeader `json:"micro_block,omitempty"`
}

KeyBlockOrMicroBlockHeader key block or micro block header swagger:model KeyBlockOrMicroBlockHeader

func (*KeyBlockOrMicroBlockHeader) MarshalBinary

func (m *KeyBlockOrMicroBlockHeader) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*KeyBlockOrMicroBlockHeader) UnmarshalBinary

func (m *KeyBlockOrMicroBlockHeader) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*KeyBlockOrMicroBlockHeader) Validate

func (m *KeyBlockOrMicroBlockHeader) Validate(formats strfmt.Registry) error

Validate validates this key block or micro block header

type MicroBlockHeader

type MicroBlockHeader struct {

	// hash
	// Required: true
	Hash EncodedHash `json:"hash"`

	// height
	// Required: true
	Height *uint64 `json:"height"`

	// "no_fraud" | api encoded Proof of Fraud hash
	// Required: true
	PofHash *string `json:"pof_hash"`

	// prev hash
	// Required: true
	PrevHash EncodedHash `json:"prev_hash"`

	// prev key hash
	// Required: true
	PrevKeyHash EncodedHash `json:"prev_key_hash"`

	// signature
	// Required: true
	Signature EncodedHash `json:"signature"`

	// state hash
	// Required: true
	StateHash EncodedHash `json:"state_hash"`

	// time
	// Required: true
	Time *int64 `json:"time"`

	// txs hash
	// Required: true
	TxsHash EncodedHash `json:"txs_hash"`

	// version
	// Required: true
	Version *uint64 `json:"version"`
}

MicroBlockHeader micro block header swagger:model MicroBlockHeader

func (*MicroBlockHeader) MarshalBinary

func (m *MicroBlockHeader) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MicroBlockHeader) UnmarshalBinary

func (m *MicroBlockHeader) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MicroBlockHeader) Validate

func (m *MicroBlockHeader) Validate(formats strfmt.Registry) error

Validate validates this micro block header

type NameClaimTx

type NameClaimTx struct {

	// account id
	// Required: true
	AccountID EncodedHash `json:"account_id"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// name
	// Required: true
	Name *string `json:"name"`

	// name salt
	// Required: true
	NameSalt *uint64 `json:"name_salt"`

	// nonce
	Nonce uint64 `json:"nonce,omitempty"`

	// ttl
	TTL uint64 `json:"ttl,omitempty"`
}

NameClaimTx name claim tx swagger:model NameClaimTx

func (*NameClaimTx) MarshalBinary

func (m *NameClaimTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NameClaimTx) UnmarshalBinary

func (m *NameClaimTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NameClaimTx) Validate

func (m *NameClaimTx) Validate(formats strfmt.Registry) error

Validate validates this name claim tx

type NameClaimTxJSON

type NameClaimTxJSON struct {
	NameClaimTx
	// contains filtered or unexported fields
}

NameClaimTxJSON name claim tx JSON swagger:model NameClaimTxJSON

func (*NameClaimTxJSON) MarshalBinary

func (m *NameClaimTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (NameClaimTxJSON) MarshalJSON

func (m NameClaimTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*NameClaimTxJSON) SetType

func (m *NameClaimTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*NameClaimTxJSON) SetVersion

func (m *NameClaimTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*NameClaimTxJSON) Type

func (m *NameClaimTxJSON) Type() string

Type gets the type of this subtype

func (*NameClaimTxJSON) UnmarshalBinary

func (m *NameClaimTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NameClaimTxJSON) UnmarshalJSON

func (m *NameClaimTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*NameClaimTxJSON) Validate

func (m *NameClaimTxJSON) Validate(formats strfmt.Registry) error

Validate validates this name claim tx JSON

func (*NameClaimTxJSON) Version

func (m *NameClaimTxJSON) Version() *uint64

Version gets the version of this subtype

type NameEntry

type NameEntry struct {

	// id
	// Required: true
	ID EncodedHash `json:"id"`

	// pointers
	// Required: true
	Pointers []*NamePointer `json:"pointers"`

	// ttl
	// Required: true
	TTL *uint64 `json:"ttl"`
}

NameEntry name entry swagger:model NameEntry

func (*NameEntry) MarshalBinary

func (m *NameEntry) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NameEntry) UnmarshalBinary

func (m *NameEntry) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NameEntry) Validate

func (m *NameEntry) Validate(formats strfmt.Registry) error

Validate validates this name entry

type NameHash

type NameHash struct {

	// name id
	// Required: true
	NameID EncodedHash `json:"name_id"`
}

NameHash name hash swagger:model NameHash

func (*NameHash) MarshalBinary

func (m *NameHash) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NameHash) UnmarshalBinary

func (m *NameHash) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NameHash) Validate

func (m *NameHash) Validate(formats strfmt.Registry) error

Validate validates this name hash

type NamePointer

type NamePointer struct {

	// id
	// Required: true
	ID EncodedHash `json:"id"`

	// key
	// Required: true
	Key *string `json:"key"`
}

NamePointer name pointer swagger:model NamePointer

func (*NamePointer) MarshalBinary

func (m *NamePointer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NamePointer) UnmarshalBinary

func (m *NamePointer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NamePointer) Validate

func (m *NamePointer) Validate(formats strfmt.Registry) error

Validate validates this name pointer

type NamePreclaimTx

type NamePreclaimTx struct {

	// account id
	// Required: true
	AccountID EncodedHash `json:"account_id"`

	// commitment id
	// Required: true
	CommitmentID EncodedHash `json:"commitment_id"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// nonce
	Nonce uint64 `json:"nonce,omitempty"`

	// ttl
	TTL uint64 `json:"ttl,omitempty"`
}

NamePreclaimTx name preclaim tx swagger:model NamePreclaimTx

func (*NamePreclaimTx) MarshalBinary

func (m *NamePreclaimTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NamePreclaimTx) UnmarshalBinary

func (m *NamePreclaimTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NamePreclaimTx) Validate

func (m *NamePreclaimTx) Validate(formats strfmt.Registry) error

Validate validates this name preclaim tx

type NamePreclaimTxJSON

type NamePreclaimTxJSON struct {
	NamePreclaimTx
	// contains filtered or unexported fields
}

NamePreclaimTxJSON name preclaim tx JSON swagger:model NamePreclaimTxJSON

func (*NamePreclaimTxJSON) MarshalBinary

func (m *NamePreclaimTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (NamePreclaimTxJSON) MarshalJSON

func (m NamePreclaimTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*NamePreclaimTxJSON) SetType

func (m *NamePreclaimTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*NamePreclaimTxJSON) SetVersion

func (m *NamePreclaimTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*NamePreclaimTxJSON) Type

func (m *NamePreclaimTxJSON) Type() string

Type gets the type of this subtype

func (*NamePreclaimTxJSON) UnmarshalBinary

func (m *NamePreclaimTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NamePreclaimTxJSON) UnmarshalJSON

func (m *NamePreclaimTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*NamePreclaimTxJSON) Validate

func (m *NamePreclaimTxJSON) Validate(formats strfmt.Registry) error

Validate validates this name preclaim tx JSON

func (*NamePreclaimTxJSON) Version

func (m *NamePreclaimTxJSON) Version() *uint64

Version gets the version of this subtype

type NameRevokeTx

type NameRevokeTx struct {

	// account id
	// Required: true
	AccountID EncodedHash `json:"account_id"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// name id
	// Required: true
	NameID EncodedHash `json:"name_id"`

	// nonce
	Nonce uint64 `json:"nonce,omitempty"`

	// ttl
	TTL uint64 `json:"ttl,omitempty"`
}

NameRevokeTx name revoke tx swagger:model NameRevokeTx

func (*NameRevokeTx) MarshalBinary

func (m *NameRevokeTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NameRevokeTx) UnmarshalBinary

func (m *NameRevokeTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NameRevokeTx) Validate

func (m *NameRevokeTx) Validate(formats strfmt.Registry) error

Validate validates this name revoke tx

type NameRevokeTxJSON

type NameRevokeTxJSON struct {
	NameRevokeTx
	// contains filtered or unexported fields
}

NameRevokeTxJSON name revoke tx JSON swagger:model NameRevokeTxJSON

func (*NameRevokeTxJSON) MarshalBinary

func (m *NameRevokeTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (NameRevokeTxJSON) MarshalJSON

func (m NameRevokeTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*NameRevokeTxJSON) SetType

func (m *NameRevokeTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*NameRevokeTxJSON) SetVersion

func (m *NameRevokeTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*NameRevokeTxJSON) Type

func (m *NameRevokeTxJSON) Type() string

Type gets the type of this subtype

func (*NameRevokeTxJSON) UnmarshalBinary

func (m *NameRevokeTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NameRevokeTxJSON) UnmarshalJSON

func (m *NameRevokeTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*NameRevokeTxJSON) Validate

func (m *NameRevokeTxJSON) Validate(formats strfmt.Registry) error

Validate validates this name revoke tx JSON

func (*NameRevokeTxJSON) Version

func (m *NameRevokeTxJSON) Version() *uint64

Version gets the version of this subtype

type NameTransferTx

type NameTransferTx struct {

	// account id
	// Required: true
	AccountID EncodedHash `json:"account_id"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// name id
	// Required: true
	NameID EncodedHash `json:"name_id"`

	// nonce
	Nonce uint64 `json:"nonce,omitempty"`

	// recipient id
	// Required: true
	RecipientID EncodedHash `json:"recipient_id"`

	// ttl
	TTL uint64 `json:"ttl,omitempty"`
}

NameTransferTx name transfer tx swagger:model NameTransferTx

func (*NameTransferTx) MarshalBinary

func (m *NameTransferTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NameTransferTx) UnmarshalBinary

func (m *NameTransferTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NameTransferTx) Validate

func (m *NameTransferTx) Validate(formats strfmt.Registry) error

Validate validates this name transfer tx

type NameTransferTxJSON

type NameTransferTxJSON struct {
	NameTransferTx
	// contains filtered or unexported fields
}

NameTransferTxJSON name transfer tx JSON swagger:model NameTransferTxJSON

func (*NameTransferTxJSON) MarshalBinary

func (m *NameTransferTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (NameTransferTxJSON) MarshalJSON

func (m NameTransferTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*NameTransferTxJSON) SetType

func (m *NameTransferTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*NameTransferTxJSON) SetVersion

func (m *NameTransferTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*NameTransferTxJSON) Type

func (m *NameTransferTxJSON) Type() string

Type gets the type of this subtype

func (*NameTransferTxJSON) UnmarshalBinary

func (m *NameTransferTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NameTransferTxJSON) UnmarshalJSON

func (m *NameTransferTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*NameTransferTxJSON) Validate

func (m *NameTransferTxJSON) Validate(formats strfmt.Registry) error

Validate validates this name transfer tx JSON

func (*NameTransferTxJSON) Version

func (m *NameTransferTxJSON) Version() *uint64

Version gets the version of this subtype

type NameUpdateTx

type NameUpdateTx struct {

	// account id
	// Required: true
	AccountID EncodedHash `json:"account_id"`

	// client ttl
	// Required: true
	ClientTTL *uint64 `json:"client_ttl"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// name id
	// Required: true
	NameID EncodedHash `json:"name_id"`

	// name ttl
	// Required: true
	NameTTL *uint64 `json:"name_ttl"`

	// nonce
	Nonce uint64 `json:"nonce,omitempty"`

	// pointers
	// Required: true
	Pointers []*NamePointer `json:"pointers"`

	// ttl
	TTL uint64 `json:"ttl,omitempty"`
}

NameUpdateTx name update tx swagger:model NameUpdateTx

func (*NameUpdateTx) MarshalBinary

func (m *NameUpdateTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NameUpdateTx) UnmarshalBinary

func (m *NameUpdateTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NameUpdateTx) Validate

func (m *NameUpdateTx) Validate(formats strfmt.Registry) error

Validate validates this name update tx

type NameUpdateTxJSON

type NameUpdateTxJSON struct {
	NameUpdateTx
	// contains filtered or unexported fields
}

NameUpdateTxJSON name update tx JSON swagger:model NameUpdateTxJSON

func (*NameUpdateTxJSON) MarshalBinary

func (m *NameUpdateTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (NameUpdateTxJSON) MarshalJSON

func (m NameUpdateTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*NameUpdateTxJSON) SetType

func (m *NameUpdateTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*NameUpdateTxJSON) SetVersion

func (m *NameUpdateTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*NameUpdateTxJSON) Type

func (m *NameUpdateTxJSON) Type() string

Type gets the type of this subtype

func (*NameUpdateTxJSON) UnmarshalBinary

func (m *NameUpdateTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NameUpdateTxJSON) UnmarshalJSON

func (m *NameUpdateTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*NameUpdateTxJSON) Validate

func (m *NameUpdateTxJSON) Validate(formats strfmt.Registry) error

Validate validates this name update tx JSON

func (*NameUpdateTxJSON) Version

func (m *NameUpdateTxJSON) Version() *uint64

Version gets the version of this subtype

type OffChainCallContract

type OffChainCallContract struct {

	// ABI version for the call/calldata
	// Maximum: 65535
	// Minimum: 0
	AbiVersion *int64 `json:"abi_version,omitempty"`

	// Amount of tokens to transfer to the contract
	// Required: true
	Amount *uint64 `json:"amount"`

	// Contract call data
	// Required: true
	CallData EncodedByteArray `json:"call_data"`

	// Contract caller
	// Required: true
	Caller EncodedHash `json:"caller"`

	// Contract address
	// Required: true
	Contract EncodedHash `json:"contract"`

	// Gas limit for the contract call
	// Required: true
	Gas *uint64 `json:"gas"`

	// Gas price for the contract call
	// Required: true
	GasPrice *uint64 `json:"gas_price"`

	// ABI version for the call/calldata
	// Maximum: 65535
	// Minimum: 0
	VMVersion *int64 `json:"vm_version,omitempty"`
}

OffChainCallContract off chain call contract swagger:model OffChainCallContract

func (*OffChainCallContract) MarshalBinary

func (m *OffChainCallContract) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (OffChainCallContract) MarshalJSON

func (m OffChainCallContract) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*OffChainCallContract) Op

func (m *OffChainCallContract) Op() string

Op gets the op of this subtype

func (*OffChainCallContract) SetOp

func (m *OffChainCallContract) SetOp(val string)

SetOp sets the op of this subtype

func (*OffChainCallContract) UnmarshalBinary

func (m *OffChainCallContract) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OffChainCallContract) UnmarshalJSON

func (m *OffChainCallContract) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*OffChainCallContract) Validate

func (m *OffChainCallContract) Validate(formats strfmt.Registry) error

Validate validates this off chain call contract

type OffChainDeposit

type OffChainDeposit struct {

	// Amount of tokens to deposit
	// Required: true
	Am *uint64 `json:"am"`

	// Depositor of tokens
	// Required: true
	From EncodedHash `json:"from"`
}

OffChainDeposit off chain deposit swagger:model OffChainDeposit

func (*OffChainDeposit) MarshalBinary

func (m *OffChainDeposit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (OffChainDeposit) MarshalJSON

func (m OffChainDeposit) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*OffChainDeposit) Op

func (m *OffChainDeposit) Op() string

Op gets the op of this subtype

func (*OffChainDeposit) SetOp

func (m *OffChainDeposit) SetOp(val string)

SetOp sets the op of this subtype

func (*OffChainDeposit) UnmarshalBinary

func (m *OffChainDeposit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OffChainDeposit) UnmarshalJSON

func (m *OffChainDeposit) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*OffChainDeposit) Validate

func (m *OffChainDeposit) Validate(formats strfmt.Registry) error

Validate validates this off chain deposit

type OffChainNewContract

type OffChainNewContract struct {

	// ABI version of the contract
	// Maximum: 65535
	// Minimum: 0
	AbiVersion *int64 `json:"abi_version,omitempty"`

	// Contract call data
	// Required: true
	CallData EncodedByteArray `json:"call_data"`

	// code
	// Required: true
	Code *ByteCode `json:"code"`

	// Amount of tokens to deposit to the new contract
	// Required: true
	Deposit *uint64 `json:"deposit"`

	// Contract owner
	// Required: true
	Owner EncodedHash `json:"owner"`

	// VM version of the contract
	// Required: true
	// Maximum: 65535
	// Minimum: 0
	VMVersion *int64 `json:"vm_version"`
}

OffChainNewContract off chain new contract swagger:model OffChainNewContract

func (*OffChainNewContract) MarshalBinary

func (m *OffChainNewContract) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (OffChainNewContract) MarshalJSON

func (m OffChainNewContract) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*OffChainNewContract) Op

func (m *OffChainNewContract) Op() string

Op gets the op of this subtype

func (*OffChainNewContract) SetOp

func (m *OffChainNewContract) SetOp(val string)

SetOp sets the op of this subtype

func (*OffChainNewContract) UnmarshalBinary

func (m *OffChainNewContract) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OffChainNewContract) UnmarshalJSON

func (m *OffChainNewContract) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*OffChainNewContract) Validate

func (m *OffChainNewContract) Validate(formats strfmt.Registry) error

Validate validates this off chain new contract

type OffChainTransfer

type OffChainTransfer struct {

	// Amount of tokens to transfer
	// Required: true
	Am *uint64 `json:"am"`

	// Sender of tokens
	// Required: true
	From EncodedHash `json:"from"`

	// Receiver of tokens
	// Required: true
	To EncodedHash `json:"to"`
}

OffChainTransfer off chain transfer swagger:model OffChainTransfer

func (*OffChainTransfer) MarshalBinary

func (m *OffChainTransfer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (OffChainTransfer) MarshalJSON

func (m OffChainTransfer) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*OffChainTransfer) Op

func (m *OffChainTransfer) Op() string

Op gets the op of this subtype

func (*OffChainTransfer) SetOp

func (m *OffChainTransfer) SetOp(val string)

SetOp sets the op of this subtype

func (*OffChainTransfer) UnmarshalBinary

func (m *OffChainTransfer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OffChainTransfer) UnmarshalJSON

func (m *OffChainTransfer) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*OffChainTransfer) Validate

func (m *OffChainTransfer) Validate(formats strfmt.Registry) error

Validate validates this off chain transfer

type OffChainUpdate

type OffChainUpdate interface {
	runtime.Validatable

	// op
	// Required: true
	Op() string
	SetOp(string)
}

OffChainUpdate off chain update swagger:discriminator OffChainUpdate op

func UnmarshalOffChainUpdate

func UnmarshalOffChainUpdate(reader io.Reader, consumer runtime.Consumer) (OffChainUpdate, error)

UnmarshalOffChainUpdate unmarshals polymorphic OffChainUpdate

func UnmarshalOffChainUpdateSlice

func UnmarshalOffChainUpdateSlice(reader io.Reader, consumer runtime.Consumer) ([]OffChainUpdate, error)

UnmarshalOffChainUpdateSlice unmarshals polymorphic slices of OffChainUpdate

type OffChainWithdrawal

type OffChainWithdrawal struct {

	// Amount of tokens to withdraw
	// Required: true
	Am *uint64 `json:"am"`

	// Withdrawer of tokens
	// Required: true
	To EncodedHash `json:"to"`
}

OffChainWithdrawal off chain withdrawal swagger:model OffChainWithdrawal

func (*OffChainWithdrawal) MarshalBinary

func (m *OffChainWithdrawal) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (OffChainWithdrawal) MarshalJSON

func (m OffChainWithdrawal) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*OffChainWithdrawal) Op

func (m *OffChainWithdrawal) Op() string

Op gets the op of this subtype

func (*OffChainWithdrawal) SetOp

func (m *OffChainWithdrawal) SetOp(val string)

SetOp sets the op of this subtype

func (*OffChainWithdrawal) UnmarshalBinary

func (m *OffChainWithdrawal) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OffChainWithdrawal) UnmarshalJSON

func (m *OffChainWithdrawal) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*OffChainWithdrawal) Validate

func (m *OffChainWithdrawal) Validate(formats strfmt.Registry) error

Validate validates this off chain withdrawal

type OracleExtendTx

type OracleExtendTx struct {

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// nonce
	Nonce uint64 `json:"nonce,omitempty"`

	// oracle id
	// Required: true
	OracleID EncodedHash `json:"oracle_id"`

	// oracle ttl
	// Required: true
	OracleTTL *RelativeTTL `json:"oracle_ttl"`

	// ttl
	TTL uint64 `json:"ttl,omitempty"`
}

OracleExtendTx oracle extend tx swagger:model OracleExtendTx

func (*OracleExtendTx) MarshalBinary

func (m *OracleExtendTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OracleExtendTx) UnmarshalBinary

func (m *OracleExtendTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OracleExtendTx) Validate

func (m *OracleExtendTx) Validate(formats strfmt.Registry) error

Validate validates this oracle extend tx

type OracleExtendTxJSON

type OracleExtendTxJSON struct {
	OracleExtendTx
	// contains filtered or unexported fields
}

OracleExtendTxJSON oracle extend tx JSON swagger:model OracleExtendTxJSON

func (*OracleExtendTxJSON) MarshalBinary

func (m *OracleExtendTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (OracleExtendTxJSON) MarshalJSON

func (m OracleExtendTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*OracleExtendTxJSON) SetType

func (m *OracleExtendTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*OracleExtendTxJSON) SetVersion

func (m *OracleExtendTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*OracleExtendTxJSON) Type

func (m *OracleExtendTxJSON) Type() string

Type gets the type of this subtype

func (*OracleExtendTxJSON) UnmarshalBinary

func (m *OracleExtendTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OracleExtendTxJSON) UnmarshalJSON

func (m *OracleExtendTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*OracleExtendTxJSON) Validate

func (m *OracleExtendTxJSON) Validate(formats strfmt.Registry) error

Validate validates this oracle extend tx JSON

func (*OracleExtendTxJSON) Version

func (m *OracleExtendTxJSON) Version() *uint64

Version gets the version of this subtype

type OracleQueries

type OracleQueries struct {

	// oracle queries
	// Required: true
	OracleQueries []*OracleQuery `json:"oracle_queries"`
}

OracleQueries oracle queries swagger:model OracleQueries

func (*OracleQueries) MarshalBinary

func (m *OracleQueries) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OracleQueries) UnmarshalBinary

func (m *OracleQueries) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OracleQueries) Validate

func (m *OracleQueries) Validate(formats strfmt.Registry) error

Validate validates this oracle queries

type OracleQuery

type OracleQuery struct {

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// id
	// Required: true
	ID EncodedHash `json:"id"`

	// oracle id
	// Required: true
	OracleID EncodedHash `json:"oracle_id"`

	// query
	// Required: true
	Query *string `json:"query"`

	// response
	// Required: true
	Response *string `json:"response"`

	// response ttl
	// Required: true
	ResponseTTL *TTL `json:"response_ttl"`

	// sender id
	// Required: true
	SenderID EncodedHash `json:"sender_id"`

	// sender nonce
	// Required: true
	// Minimum: 0
	SenderNonce *uint64 `json:"sender_nonce"`

	// ttl
	// Required: true
	TTL *uint64 `json:"ttl"`
}

OracleQuery oracle query swagger:model OracleQuery

func (*OracleQuery) MarshalBinary

func (m *OracleQuery) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OracleQuery) UnmarshalBinary

func (m *OracleQuery) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OracleQuery) Validate

func (m *OracleQuery) Validate(formats strfmt.Registry) error

Validate validates this oracle query

type OracleQueryTx

type OracleQueryTx struct {

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// Sender nonce
	Nonce uint64 `json:"nonce,omitempty"`

	// oracle id
	// Required: true
	OracleID EncodedHash `json:"oracle_id"`

	// query
	// Required: true
	Query *string `json:"query"`

	// query fee
	// Required: true
	QueryFee utils.BigInt `json:"query_fee"`

	// query ttl
	// Required: true
	QueryTTL *TTL `json:"query_ttl"`

	// response ttl
	// Required: true
	ResponseTTL *RelativeTTL `json:"response_ttl"`

	// sender id
	// Required: true
	SenderID EncodedHash `json:"sender_id"`

	// ttl
	TTL uint64 `json:"ttl,omitempty"`
}

OracleQueryTx oracle query tx swagger:model OracleQueryTx

func (*OracleQueryTx) MarshalBinary

func (m *OracleQueryTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OracleQueryTx) UnmarshalBinary

func (m *OracleQueryTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OracleQueryTx) Validate

func (m *OracleQueryTx) Validate(formats strfmt.Registry) error

Validate validates this oracle query tx

type OracleQueryTxJSON

type OracleQueryTxJSON struct {
	OracleQueryTx
	// contains filtered or unexported fields
}

OracleQueryTxJSON oracle query tx JSON swagger:model OracleQueryTxJSON

func (*OracleQueryTxJSON) MarshalBinary

func (m *OracleQueryTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (OracleQueryTxJSON) MarshalJSON

func (m OracleQueryTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*OracleQueryTxJSON) SetType

func (m *OracleQueryTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*OracleQueryTxJSON) SetVersion

func (m *OracleQueryTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*OracleQueryTxJSON) Type

func (m *OracleQueryTxJSON) Type() string

Type gets the type of this subtype

func (*OracleQueryTxJSON) UnmarshalBinary

func (m *OracleQueryTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OracleQueryTxJSON) UnmarshalJSON

func (m *OracleQueryTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*OracleQueryTxJSON) Validate

func (m *OracleQueryTxJSON) Validate(formats strfmt.Registry) error

Validate validates this oracle query tx JSON

func (*OracleQueryTxJSON) Version

func (m *OracleQueryTxJSON) Version() *uint64

Version gets the version of this subtype

type OracleRegisterTx

type OracleRegisterTx struct {

	// abi version
	// Maximum: 65535
	// Minimum: 0
	AbiVersion *int64 `json:"abi_version,omitempty"`

	// account id
	// Required: true
	AccountID EncodedHash `json:"account_id"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// nonce
	Nonce uint64 `json:"nonce,omitempty"`

	// oracle ttl
	// Required: true
	OracleTTL *TTL `json:"oracle_ttl"`

	// query fee
	// Required: true
	QueryFee utils.BigInt `json:"query_fee"`

	// query format
	// Required: true
	QueryFormat *string `json:"query_format"`

	// response format
	// Required: true
	ResponseFormat *string `json:"response_format"`

	// ttl
	TTL uint64 `json:"ttl,omitempty"`

	// vm version
	// Maximum: 65535
	// Minimum: 0
	VMVersion *int64 `json:"vm_version,omitempty"`
}

OracleRegisterTx oracle register tx swagger:model OracleRegisterTx

func (*OracleRegisterTx) MarshalBinary

func (m *OracleRegisterTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OracleRegisterTx) UnmarshalBinary

func (m *OracleRegisterTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OracleRegisterTx) Validate

func (m *OracleRegisterTx) Validate(formats strfmt.Registry) error

Validate validates this oracle register tx

type OracleRegisterTxJSON

type OracleRegisterTxJSON struct {
	OracleRegisterTx
	// contains filtered or unexported fields
}

OracleRegisterTxJSON oracle register tx JSON swagger:model OracleRegisterTxJSON

func (*OracleRegisterTxJSON) MarshalBinary

func (m *OracleRegisterTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (OracleRegisterTxJSON) MarshalJSON

func (m OracleRegisterTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*OracleRegisterTxJSON) SetType

func (m *OracleRegisterTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*OracleRegisterTxJSON) SetVersion

func (m *OracleRegisterTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*OracleRegisterTxJSON) Type

func (m *OracleRegisterTxJSON) Type() string

Type gets the type of this subtype

func (*OracleRegisterTxJSON) UnmarshalBinary

func (m *OracleRegisterTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OracleRegisterTxJSON) UnmarshalJSON

func (m *OracleRegisterTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*OracleRegisterTxJSON) Validate

func (m *OracleRegisterTxJSON) Validate(formats strfmt.Registry) error

Validate validates this oracle register tx JSON

func (*OracleRegisterTxJSON) Version

func (m *OracleRegisterTxJSON) Version() *uint64

Version gets the version of this subtype

type OracleRespondTx

type OracleRespondTx struct {

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// Oracle nonce
	Nonce uint64 `json:"nonce,omitempty"`

	// oracle id
	// Required: true
	OracleID EncodedHash `json:"oracle_id"`

	// query id
	// Required: true
	QueryID EncodedHash `json:"query_id"`

	// response
	// Required: true
	Response *string `json:"response"`

	// response ttl
	// Required: true
	ResponseTTL *RelativeTTL `json:"response_ttl"`

	// ttl
	TTL uint64 `json:"ttl,omitempty"`
}

OracleRespondTx oracle respond tx swagger:model OracleRespondTx

func (*OracleRespondTx) MarshalBinary

func (m *OracleRespondTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OracleRespondTx) UnmarshalBinary

func (m *OracleRespondTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OracleRespondTx) Validate

func (m *OracleRespondTx) Validate(formats strfmt.Registry) error

Validate validates this oracle respond tx

type OracleResponseTxJSON

type OracleResponseTxJSON struct {
	OracleRespondTx
	// contains filtered or unexported fields
}

OracleResponseTxJSON oracle response tx JSON swagger:model OracleResponseTxJSON

func (*OracleResponseTxJSON) MarshalBinary

func (m *OracleResponseTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (OracleResponseTxJSON) MarshalJSON

func (m OracleResponseTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*OracleResponseTxJSON) SetType

func (m *OracleResponseTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*OracleResponseTxJSON) SetVersion

func (m *OracleResponseTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*OracleResponseTxJSON) Type

func (m *OracleResponseTxJSON) Type() string

Type gets the type of this subtype

func (*OracleResponseTxJSON) UnmarshalBinary

func (m *OracleResponseTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OracleResponseTxJSON) UnmarshalJSON

func (m *OracleResponseTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*OracleResponseTxJSON) Validate

func (m *OracleResponseTxJSON) Validate(formats strfmt.Registry) error

Validate validates this oracle response tx JSON

func (*OracleResponseTxJSON) Version

func (m *OracleResponseTxJSON) Version() *uint64

Version gets the version of this subtype

type Peer

type Peer string

Peer Aeternity node swagger:model Peer

func (Peer) Validate

func (m Peer) Validate(formats strfmt.Registry) error

Validate validates this peer

type Peers

type Peers struct {

	// All blocked peers
	// Required: true
	Blocked []Peer `json:"blocked"`

	// All discovered peers
	// Required: true
	Peers []Peer `json:"peers"`
}

Peers peers swagger:model Peers

func (*Peers) MarshalBinary

func (m *Peers) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Peers) UnmarshalBinary

func (m *Peers) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Peers) Validate

func (m *Peers) Validate(formats strfmt.Registry) error

Validate validates this peers

type PoI

type PoI struct {

	// Proof of inclusion
	// Required: true
	Poi *string `json:"poi"`
}

PoI po i swagger:model PoI

func (*PoI) MarshalBinary

func (m *PoI) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PoI) UnmarshalBinary

func (m *PoI) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PoI) Validate

func (m *PoI) Validate(formats strfmt.Registry) error

Validate validates this po i

type PostTxResponse

type PostTxResponse struct {

	// Hash of a signed transaction
	// Required: true
	TxHash EncodedHash `json:"tx_hash"`
}

PostTxResponse post tx response swagger:model PostTxResponse

func (*PostTxResponse) MarshalBinary

func (m *PostTxResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostTxResponse) UnmarshalBinary

func (m *PostTxResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostTxResponse) Validate

func (m *PostTxResponse) Validate(formats strfmt.Registry) error

Validate validates this post tx response

type Pow

type Pow []int32

Pow pow swagger:model Pow

func (Pow) Validate

func (m Pow) Validate(formats strfmt.Registry) error

Validate validates this pow

type Protocol

type Protocol struct {

	// effective at height
	// Required: true
	// Minimum: 0
	EffectiveAtHeight *uint64 `json:"effective_at_height"`

	// version
	// Required: true
	// Minimum: 1
	Version *uint64 `json:"version"`
}

Protocol protocol swagger:model Protocol

func (*Protocol) MarshalBinary

func (m *Protocol) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Protocol) UnmarshalBinary

func (m *Protocol) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Protocol) Validate

func (m *Protocol) Validate(formats strfmt.Registry) error

Validate validates this protocol

type PubKey

type PubKey struct {

	// pub key
	// Required: true
	PubKey *string `json:"pub_key"`
}

PubKey pub key swagger:model PubKey

func (*PubKey) MarshalBinary

func (m *PubKey) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PubKey) UnmarshalBinary

func (m *PubKey) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PubKey) Validate

func (m *PubKey) Validate(formats strfmt.Registry) error

Validate validates this pub key

type RegisteredOracle

type RegisteredOracle struct {

	// abi version
	// Maximum: 65535
	// Minimum: 0
	AbiVersion *int64 `json:"abi_version,omitempty"`

	// id
	// Required: true
	ID EncodedHash `json:"id"`

	// query fee
	// Required: true
	QueryFee utils.BigInt `json:"query_fee"`

	// query format
	// Required: true
	QueryFormat *string `json:"query_format"`

	// response format
	// Required: true
	ResponseFormat *string `json:"response_format"`

	// ttl
	// Required: true
	TTL *uint64 `json:"ttl"`

	// vm version
	// Maximum: 65535
	// Minimum: 0
	VMVersion *int64 `json:"vm_version,omitempty"`
}

RegisteredOracle registered oracle swagger:model RegisteredOracle

func (*RegisteredOracle) MarshalBinary

func (m *RegisteredOracle) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RegisteredOracle) UnmarshalBinary

func (m *RegisteredOracle) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RegisteredOracle) Validate

func (m *RegisteredOracle) Validate(formats strfmt.Registry) error

Validate validates this registered oracle

type RelativeTTL

type RelativeTTL struct {

	// type
	// Required: true
	// Enum: [delta]
	Type *string `json:"type"`

	// value
	// Required: true
	// Minimum: 1
	Value *uint64 `json:"value"`
}

RelativeTTL relative TTL swagger:model RelativeTTL

func (*RelativeTTL) MarshalBinary

func (m *RelativeTTL) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RelativeTTL) UnmarshalBinary

func (m *RelativeTTL) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RelativeTTL) Validate

func (m *RelativeTTL) Validate(formats strfmt.Registry) error

Validate validates this relative TTL

type SophiaBinaryData

type SophiaBinaryData struct {

	// data
	// Required: true
	Data *string `json:"data"`

	// sophia type
	// Required: true
	SophiaType *string `json:"sophia-type"`
}

SophiaBinaryData sophia binary data swagger:model SophiaBinaryData

func (*SophiaBinaryData) MarshalBinary

func (m *SophiaBinaryData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SophiaBinaryData) UnmarshalBinary

func (m *SophiaBinaryData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SophiaBinaryData) Validate

func (m *SophiaBinaryData) Validate(formats strfmt.Registry) error

Validate validates this sophia binary data

type SophiaJSONData

type SophiaJSONData struct {

	// data
	// Required: true
	Data interface{} `json:"data"`
}

SophiaJSONData sophia Json data swagger:model SophiaJsonData

func (*SophiaJSONData) MarshalBinary

func (m *SophiaJSONData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SophiaJSONData) UnmarshalBinary

func (m *SophiaJSONData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SophiaJSONData) Validate

func (m *SophiaJSONData) Validate(formats strfmt.Registry) error

Validate validates this sophia Json data

type SpendTx

type SpendTx struct {

	// amount
	// Required: true
	Amount utils.BigInt `json:"amount"`

	// fee
	// Required: true
	Fee utils.BigInt `json:"fee"`

	// nonce
	Nonce uint64 `json:"nonce,omitempty"`

	// payload
	// Required: true
	Payload *string `json:"payload"`

	// recipient id
	// Required: true
	RecipientID EncodedHash `json:"recipient_id"`

	// sender id
	// Required: true
	SenderID EncodedHash `json:"sender_id"`

	// ttl
	TTL uint64 `json:"ttl,omitempty"`
}

SpendTx spend tx swagger:model SpendTx

func (*SpendTx) MarshalBinary

func (m *SpendTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SpendTx) UnmarshalBinary

func (m *SpendTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SpendTx) Validate

func (m *SpendTx) Validate(formats strfmt.Registry) error

Validate validates this spend tx

type SpendTxJSON

type SpendTxJSON struct {
	SpendTx
	// contains filtered or unexported fields
}

SpendTxJSON spend tx JSON swagger:model SpendTxJSON

func (*SpendTxJSON) MarshalBinary

func (m *SpendTxJSON) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (SpendTxJSON) MarshalJSON

func (m SpendTxJSON) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*SpendTxJSON) SetType

func (m *SpendTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*SpendTxJSON) SetVersion

func (m *SpendTxJSON) SetVersion(val *uint64)

SetVersion sets the version of this subtype

func (*SpendTxJSON) Type

func (m *SpendTxJSON) Type() string

Type gets the type of this subtype

func (*SpendTxJSON) UnmarshalBinary

func (m *SpendTxJSON) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SpendTxJSON) UnmarshalJSON

func (m *SpendTxJSON) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*SpendTxJSON) Validate

func (m *SpendTxJSON) Validate(formats strfmt.Registry) error

Validate validates this spend tx JSON

func (*SpendTxJSON) Version

func (m *SpendTxJSON) Version() *uint64

Version gets the version of this subtype

type Status

type Status struct {

	// difficulty
	// Required: true
	Difficulty *uint64 `json:"difficulty"`

	// genesis key block hash
	// Required: true
	GenesisKeyBlockHash EncodedHash `json:"genesis_key_block_hash"`

	// listening
	// Required: true
	Listening *bool `json:"listening"`

	// network id
	// Required: true
	NetworkID *string `json:"network_id"`

	// node revision
	// Required: true
	NodeRevision *string `json:"node_revision"`

	// node version
	// Required: true
	NodeVersion *string `json:"node_version"`

	// peer count
	// Required: true
	// Minimum: 0
	PeerCount *uint64 `json:"peer_count"`

	// pending transactions count
	// Required: true
	// Minimum: 0
	PendingTransactionsCount *uint64 `json:"pending_transactions_count"`

	// protocols
	// Required: true
	Protocols []*Protocol `json:"protocols"`

	// solutions
	// Required: true
	// Minimum: 0
	Solutions *uint64 `json:"solutions"`

	// syncing
	// Required: true
	Syncing *bool `json:"syncing"`
}

Status status swagger:model Status

func (*Status) MarshalBinary

func (m *Status) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Status) UnmarshalBinary

func (m *Status) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Status) Validate

func (m *Status) Validate(formats strfmt.Registry) error

Validate validates this status

type TTL

type TTL struct {

	// type
	// Required: true
	// Enum: [delta block]
	Type *string `json:"type"`

	// value
	// Required: true
	// Minimum: 1
	Value *uint64 `json:"value"`
}

TTL TTL swagger:model TTL

func (*TTL) MarshalBinary

func (m *TTL) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TTL) UnmarshalBinary

func (m *TTL) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TTL) Validate

func (m *TTL) Validate(formats strfmt.Registry) error

Validate validates this TTL

type TokenSupply

type TokenSupply struct {

	// Tokens in account balances
	Accounts int64 `json:"accounts,omitempty"`

	// Tokens in contracts registered as oracles
	ContractOracles int64 `json:"contract_oracles,omitempty"`

	// Tokens in contracts
	Contracts int64 `json:"contracts,omitempty"`

	// Tokens locked (not owned by anyone)
	Locked int64 `json:"locked,omitempty"`

	// Tokens in pending oracle queries
	OracleQueries int64 `json:"oracle_queries,omitempty"`

	// Tokens in accounts registered as oracles
	Oracles int64 `json:"oracles,omitempty"`

	// Tokens from fees and coinbase pending in the beneficiary reward delay
	PendingRewards int64 `json:"pending_rewards,omitempty"`

	// Sum of all tokens from other fields
	Total int64 `json:"total,omitempty"`
}

TokenSupply token supply swagger:model TokenSupply

func (*TokenSupply) MarshalBinary

func (m *TokenSupply) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TokenSupply) UnmarshalBinary

func (m *TokenSupply) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TokenSupply) Validate

func (m *TokenSupply) Validate(formats strfmt.Registry) error

Validate validates this token supply

type Tx

type Tx struct {

	// tx
	// Required: true
	Tx *string `json:"tx"`
}

Tx tx swagger:model Tx

func (*Tx) MarshalBinary

func (m *Tx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Tx) UnmarshalBinary

func (m *Tx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Tx) Validate

func (m *Tx) Validate(formats strfmt.Registry) error

Validate validates this tx

type URI

type URI string

URI Uri swagger:model Uri

func (URI) Validate

func (m URI) Validate(formats strfmt.Registry) error

Validate validates this Uri

type UnsignedTx

type UnsignedTx struct {

	// Unsigned transaction object
	// Required: true
	Tx EncodedHash `json:"tx"`
}

UnsignedTx unsigned tx swagger:model UnsignedTx

func (*UnsignedTx) MarshalBinary

func (m *UnsignedTx) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UnsignedTx) UnmarshalBinary

func (m *UnsignedTx) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UnsignedTx) Validate

func (m *UnsignedTx) Validate(formats strfmt.Registry) error

Validate validates this unsigned tx

Source Files

Jump to

Keyboard shortcuts

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