models

package
v5.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// AccountKindBasic captures enum value "basic"
	AccountKindBasic string = "basic"

	// AccountKindGeneralized captures enum value "generalized"
	AccountKindGeneralized string = "generalized"
)
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 {

	// Name of authorization function for generalized account
	AuthFun string `json:"auth_fun,omitempty"`

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

	// Id of authorization contract for generalized account
	ContractID string `json:"contract_id,omitempty"`

	// Public key
	// Required: true
	ID *string `json:"id"`

	// kind
	// Enum: [basic generalized]
	Kind string `json:"kind,omitempty"`

	// Nonce
	// Required: true
	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 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 []string `json:"delegate_ids"`

	// id
	// Required: true
	ID *string `json:"id"`

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

	// initiator id
	// Required: true
	InitiatorID *string `json:"initiator_id"`

	// lock period
	// Required: true
	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 *string `json:"responder_id"`

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

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

	// state hash
	// Required: true
	StateHash *string `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 *string `json:"channel_id"`

	// fee
	// Required: true
	Fee *uint64 `json:"fee"`

	// from id
	// Required: true
	FromID *string `json:"from_id"`

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

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

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

	// ttl
	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 *uint32)

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() *uint32

Version gets the version of this subtype

type ChannelCloseSoloTx

type ChannelCloseSoloTx struct {

	// channel id
	// Required: true
	ChannelID *string `json:"channel_id"`

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

	// from id
	// Required: true
	FromID *string `json:"from_id"`

	// nonce
	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
	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 *uint32)

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() *uint32

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 *string `json:"initiator_id"`

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

	// nonce
	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 *string `json:"responder_id"`

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

	// ttl
	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 *uint32)

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() *uint32

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 *string `json:"channel_id"`

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

	// from id
	// Required: true
	FromID *string `json:"from_id"`

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

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

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

	// ttl
	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 *uint32)

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() *uint32

Version gets the version of this subtype

type ChannelForceProgressTx

type ChannelForceProgressTx struct {

	// channel id
	// Required: true
	ChannelID *string `json:"channel_id"`

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

	// from id
	// Required: true
	FromID *string `json:"from_id"`

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

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

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

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

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

	// ttl
	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 *uint32)

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() *uint32

Version gets the version of this subtype

type ChannelSLASHTx

type ChannelSLASHTx struct {

	// channel id
	// Required: true
	ChannelID *string `json:"channel_id"`

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

	// from id
	// Required: true
	FromID *string `json:"from_id"`

	// nonce
	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
	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 *uint32)

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() *uint32

Version gets the version of this subtype

type ChannelSettleTx

type ChannelSettleTx struct {

	// channel id
	// Required: true
	ChannelID *string `json:"channel_id"`

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

	// from id
	// Required: true
	FromID *string `json:"from_id"`

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

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

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

	// ttl
	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 *uint32)

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() *uint32

Version gets the version of this subtype

type ChannelSnapshotSoloTx

type ChannelSnapshotSoloTx struct {

	// channel id
	// Required: true
	ChannelID *string `json:"channel_id"`

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

	// from id
	// Required: true
	FromID *string `json:"from_id"`

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

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

	// ttl
	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 *uint32)

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() *uint32

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 *string `json:"channel_id"`

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

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

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

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

	// to id
	// Required: true
	ToID *string `json:"to_id"`

	// ttl
	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 *uint32)

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() *uint32

Version gets the version of this subtype

type CommitmentID

type CommitmentID struct {

	// commitment id
	// Required: true
	CommitmentID *string `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 ContractCallObject

type ContractCallObject struct {

	// caller id
	// Required: true
	CallerID *string `json:"caller_id"`

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

	// contract id
	// Required: true
	ContractID *string `json:"contract_id"`

	// gas price
	// Required: true
	GasPrice utils.BigInt `json:"gas_price"`

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

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

	// log
	// Required: true
	Log []*Event `json:"log"`

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

	// return value
	// Required: true
	ReturnValue *string `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
	// Required: true
	AbiVersion *uint16 `json:"abi_version"`

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

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

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

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

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

	// gas
	// Required: true
	Gas *uint64 `json:"gas"`

	// gas price
	// Required: true
	GasPrice utils.BigInt `json:"gas_price"`

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

	// ttl
	TTL uint64 `json:"ttl,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 *uint32)

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() *uint32

Version gets the version of this subtype

type ContractCreateTx

type ContractCreateTx struct {

	// ABI version
	// Required: true
	AbiVersion *uint16 `json:"abi_version"`

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

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

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

	// deposit
	// Required: true
	Deposit utils.BigInt `json:"deposit"`

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

	// gas
	// Required: true
	Gas *uint64 `json:"gas"`

	// gas price
	// Required: true
	GasPrice utils.BigInt `json:"gas_price"`

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

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

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

	// Virtual machine's version
	// Required: true
	VMVersion *uint16 `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 *uint32)

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() *uint32

Version gets the version of this subtype

type ContractObject

type ContractObject struct {

	// abi version
	// Required: true
	AbiVersion *uint16 `json:"abi_version"`

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

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

	// id
	// Required: true
	ID *string `json:"id"`

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

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

	// vm version
	// Required: true
	VMVersion *uint16 `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 string `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 *string `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 *string `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 []string `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 Base64Check encoded tagged 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 Base58Check encoded tagged hash swagger:model EncodedHash

func (EncodedHash) Validate

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

Validate validates this encoded hash

type EncodedPubkey

type EncodedPubkey string

EncodedPubkey Base58Check encoded tagged pubkey swagger:model EncodedPubkey

func (EncodedPubkey) Validate

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

Validate validates this encoded pubkey

type EncodedValue

type EncodedValue string

EncodedValue Base58Check encoded tagged value swagger:model EncodedValue

func (EncodedValue) Validate

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

Validate validates this encoded value

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) String

func (m *Error) String() string

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 Event

type Event struct {

	// Contract address
	// Required: true
	Address *string `json:"address"`

	// Log event data (as contract byte array).
	// Required: true
	Data *string `json:"data"`

	// Event topics
	// Required: true
	Topics []utils.BigInt `json:"topics"`
}

Event event swagger:model Event

func (*Event) MarshalBinary

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

MarshalBinary interface implementation

func (*Event) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Event) Validate

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

Validate validates this event

type GAObject

type GAObject struct {

	// caller id
	// Required: true
	CallerID *string `json:"caller_id"`

	// gas price
	// Required: true
	GasPrice utils.BigInt `json:"gas_price"`

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

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

	// inner object
	InnerObject *TxInfoObject `json:"inner_object,omitempty"`

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

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

GAObject g a object swagger:model GAObject

func (*GAObject) MarshalBinary

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

MarshalBinary interface implementation

func (*GAObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GAObject) Validate

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

Validate validates this g a object

type Generation

type Generation struct {

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

	// micro blocks
	// Required: true
	MicroBlocks []string `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 *string `json:"block_hash"`

	// block height
	// Required: true
	BlockHeight utils.BigInt `json:"block_height"`

	// hash
	// Required: true
	Hash *string `json:"hash"`

	// signatures required unless for Generalized Account Meta transactions
	// 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() *uint32
	SetVersion(*uint32)
}

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
	Count uint32 `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 KeyBlock

type KeyBlock struct {

	// beneficiary
	// Required: true
	Beneficiary *string `json:"beneficiary"`

	// hash
	// Required: true
	Hash *string `json:"hash"`

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

	// info
	// Required: true
	Info *string `json:"info"`

	// miner
	// Required: true
	Miner *string `json:"miner"`

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

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

	// prev hash
	// Required: true
	PrevHash *string `json:"prev_hash"`

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

	// state hash
	// Required: true
	StateHash *string `json:"state_hash"`

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

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

	// version
	// Required: true
	Version *uint32 `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 *string `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 *string `json:"prev_hash"`

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

	// signature
	// Required: true
	Signature *string `json:"signature"`

	// state hash
	// Required: true
	StateHash *string `json:"state_hash"`

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

	// txs hash
	// Required: true
	TxsHash *string `json:"txs_hash"`

	// version
	// Required: true
	Version *uint32 `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 *string `json:"account_id"`

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

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

	// name salt
	// Required: true
	NameSalt utils.BigInt `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 *uint32)

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() *uint32

Version gets the version of this subtype

type NameEntry

type NameEntry struct {

	// id
	// Required: true
	ID *string `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 *string `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 *string `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 *string `json:"account_id"`

	// commitment id
	// Required: true
	CommitmentID *string `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 *uint32)

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() *uint32

Version gets the version of this subtype

type NameRevokeTx

type NameRevokeTx struct {

	// account id
	// Required: true
	AccountID *string `json:"account_id"`

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

	// name id
	// Required: true
	NameID *string `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 *uint32)

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() *uint32

Version gets the version of this subtype

type NameTransferTx

type NameTransferTx struct {

	// account id
	// Required: true
	AccountID *string `json:"account_id"`

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

	// name id
	// Required: true
	NameID *string `json:"name_id"`

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

	// recipient id
	// Required: true
	RecipientID *string `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 *uint32)

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() *uint32

Version gets the version of this subtype

type NameUpdateTx

type NameUpdateTx struct {

	// account id
	// Required: true
	AccountID *string `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 *string `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 *uint32)

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() *uint32

Version gets the version of this subtype

type OffChainCallContract

type OffChainCallContract struct {

	// abi version
	// Required: true
	AbiVersion *uint16 `json:"abi_version"`

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

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

	// Contract caller
	// Required: true
	Caller *string `json:"caller"`

	// Contract address
	// Required: true
	Contract *string `json:"contract"`

	// gas
	// Required: true
	Gas *uint64 `json:"gas"`

	// gas price
	// Required: true
	GasPrice utils.BigInt `json:"gas_price"`
}

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
	// Required: true
	Amount utils.BigInt `json:"amount"`

	// Depositor of tokens
	// Required: true
	From *string `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
	// Required: true
	AbiVersion *uint16 `json:"abi_version"`

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

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

	// deposit
	// Required: true
	Deposit utils.BigInt `json:"deposit"`

	// Contract owner
	// Required: true
	Owner *string `json:"owner"`

	// vm version
	// Required: true
	VMVersion *uint16 `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
	// Required: true
	Amount utils.BigInt `json:"amount"`

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

	// Receiver of tokens
	// Required: true
	To *string `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
	// Required: true
	Amount utils.BigInt `json:"amount"`

	// Withdrawer of tokens
	// Required: true
	To *string `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 *string `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 *uint32)

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() *uint32

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 *string `json:"id"`

	// oracle id
	// Required: true
	OracleID *string `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 *string `json:"sender_id"`

	// sender nonce
	// Required: true
	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 *string `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 *string `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 *uint32)

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() *uint32

Version gets the version of this subtype

type OracleRegisterTx

type OracleRegisterTx struct {

	// abi version
	AbiVersion uint16 `json:"abi_version,omitempty"`

	// account id
	// Required: true
	AccountID *string `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"`
}

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 *uint32)

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() *uint32

Version gets the version of this subtype

type OracleRespondTx

type OracleRespondTx struct {

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

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

	// oracle id
	// Required: true
	OracleID *string `json:"oracle_id"`

	// query id
	// Required: true
	QueryID *string `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 OracleRespondTxJSON added in v5.1.0

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

OracleRespondTxJSON oracle response tx JSON swagger:model OracleRespondTxJSON

func (*OracleRespondTxJSON) MarshalBinary added in v5.1.0

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

MarshalBinary interface implementation

func (OracleRespondTxJSON) MarshalJSON added in v5.1.0

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

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

func (*OracleRespondTxJSON) SetType added in v5.1.0

func (m *OracleRespondTxJSON) SetType(val string)

SetType sets the type of this subtype

func (*OracleRespondTxJSON) SetVersion added in v5.1.0

func (m *OracleRespondTxJSON) SetVersion(val *uint32)

SetVersion sets the version of this subtype

func (*OracleRespondTxJSON) Type added in v5.1.0

func (m *OracleRespondTxJSON) Type() string

Type gets the type of this subtype

func (*OracleRespondTxJSON) UnmarshalBinary added in v5.1.0

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

UnmarshalBinary interface implementation

func (*OracleRespondTxJSON) UnmarshalJSON added in v5.1.0

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

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

func (*OracleRespondTxJSON) Validate added in v5.1.0

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

Validate validates this oracle response tx JSON

func (*OracleRespondTxJSON) Version added in v5.1.0

func (m *OracleRespondTxJSON) Version() *uint32

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 PeerPubKey

type PeerPubKey struct {

	// pubkey
	// Required: true
	Pubkey *string `json:"pubkey"`
}

PeerPubKey peer pub key swagger:model PeerPubKey

func (*PeerPubKey) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerPubKey) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerPubKey) Validate

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

Validate validates this peer pub key

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 *string `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 []uint32

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
	EffectiveAtHeight *uint64 `json:"effective_at_height"`

	// version
	// Required: true
	Version *uint32 `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
	// Required: true
	AbiVersion *uint16 `json:"abi_version"`

	// id
	// Required: true
	ID *string `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"`
}

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
	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 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 *string `json:"recipient_id"`

	// sender id
	// Required: true
	SenderID *string `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 *uint32)

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() *uint32

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 *string `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
	PeerCount *uint32 `json:"peer_count"`

	// pending transactions count
	// Required: true
	PendingTransactionsCount *uint32 `json:"pending_transactions_count"`

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

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

	// sync progress
	// Maximum: 100
	// Minimum: 0
	SyncProgress *float32 `json:"sync_progress,omitempty"`

	// 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
	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 utils.BigInt `json:"accounts,omitempty"`

	// Tokens in contracts registered as oracles
	ContractOracles utils.BigInt `json:"contract_oracles,omitempty"`

	// Tokens in contracts
	Contracts utils.BigInt `json:"contracts,omitempty"`

	// Tokens locked (not owned by anyone)
	Locked utils.BigInt `json:"locked,omitempty"`

	// Tokens in pending oracle queries
	OracleQueries utils.BigInt `json:"oracle_queries,omitempty"`

	// Tokens in accounts registered as oracles
	Oracles utils.BigInt `json:"oracles,omitempty"`

	// Tokens from fees and coinbase pending in the beneficiary reward delay
	PendingRewards utils.BigInt `json:"pending_rewards,omitempty"`

	// Sum of all tokens from other fields
	Total utils.BigInt `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 TxInfoObject

type TxInfoObject struct {

	// call info
	CallInfo *ContractCallObject `json:"call_info,omitempty"`

	// ga info
	GaInfo *GAObject `json:"ga_info,omitempty"`

	// tx info
	TxInfo string `json:"tx_info,omitempty"`
}

TxInfoObject tx info object swagger:model TxInfoObject

func (*TxInfoObject) MarshalBinary

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

MarshalBinary interface implementation

func (*TxInfoObject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TxInfoObject) Validate

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

Validate validates this tx info object

type Uint16

type Uint16 uint16

Uint16 uint16 swagger:model UInt16

func (Uint16) Validate

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

Validate validates this uint16

type Uint32

type Uint32 uint32

Uint32 uint32 swagger:model UInt32

func (Uint32) Validate

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

Validate validates this uint32

type Uint64

type Uint64 uint64

Uint64 uint64 swagger:model UInt64

func (Uint64) Validate

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

Validate validates this uint64

type UnsignedTx

type UnsignedTx struct {

	// Unsigned transaction object
	// Required: true
	Tx *string `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