Documentation
¶
Index ¶
- Constants
- type Account
- type ByteCode
- type CallResult
- type Calldata
- type Channel
- type ChannelCloseMutualTx
- type ChannelCloseMutualTxJSON
- func (m *ChannelCloseMutualTxJSON) MarshalBinary() ([]byte, error)
- func (m ChannelCloseMutualTxJSON) MarshalJSON() ([]byte, error)
- func (m *ChannelCloseMutualTxJSON) SetType(val string)
- func (m *ChannelCloseMutualTxJSON) SetVersion(val *uint64)
- func (m *ChannelCloseMutualTxJSON) Type() string
- func (m *ChannelCloseMutualTxJSON) UnmarshalBinary(b []byte) error
- func (m *ChannelCloseMutualTxJSON) UnmarshalJSON(raw []byte) error
- func (m *ChannelCloseMutualTxJSON) Validate(formats strfmt.Registry) error
- func (m *ChannelCloseMutualTxJSON) Version() *uint64
- type ChannelCloseSoloTx
- type ChannelCloseSoloTxJSON
- func (m *ChannelCloseSoloTxJSON) MarshalBinary() ([]byte, error)
- func (m ChannelCloseSoloTxJSON) MarshalJSON() ([]byte, error)
- func (m *ChannelCloseSoloTxJSON) SetType(val string)
- func (m *ChannelCloseSoloTxJSON) SetVersion(val *uint64)
- func (m *ChannelCloseSoloTxJSON) Type() string
- func (m *ChannelCloseSoloTxJSON) UnmarshalBinary(b []byte) error
- func (m *ChannelCloseSoloTxJSON) UnmarshalJSON(raw []byte) error
- func (m *ChannelCloseSoloTxJSON) Validate(formats strfmt.Registry) error
- func (m *ChannelCloseSoloTxJSON) Version() *uint64
- type ChannelCreateTx
- type ChannelCreateTxJSON
- func (m *ChannelCreateTxJSON) MarshalBinary() ([]byte, error)
- func (m ChannelCreateTxJSON) MarshalJSON() ([]byte, error)
- func (m *ChannelCreateTxJSON) SetType(val string)
- func (m *ChannelCreateTxJSON) SetVersion(val *uint64)
- func (m *ChannelCreateTxJSON) Type() string
- func (m *ChannelCreateTxJSON) UnmarshalBinary(b []byte) error
- func (m *ChannelCreateTxJSON) UnmarshalJSON(raw []byte) error
- func (m *ChannelCreateTxJSON) Validate(formats strfmt.Registry) error
- func (m *ChannelCreateTxJSON) Version() *uint64
- type ChannelDepositTx
- type ChannelDepositTxJSON
- func (m *ChannelDepositTxJSON) MarshalBinary() ([]byte, error)
- func (m ChannelDepositTxJSON) MarshalJSON() ([]byte, error)
- func (m *ChannelDepositTxJSON) SetType(val string)
- func (m *ChannelDepositTxJSON) SetVersion(val *uint64)
- func (m *ChannelDepositTxJSON) Type() string
- func (m *ChannelDepositTxJSON) UnmarshalBinary(b []byte) error
- func (m *ChannelDepositTxJSON) UnmarshalJSON(raw []byte) error
- func (m *ChannelDepositTxJSON) Validate(formats strfmt.Registry) error
- func (m *ChannelDepositTxJSON) Version() *uint64
- type ChannelForceProgressTx
- func (m *ChannelForceProgressTx) MarshalBinary() ([]byte, error)
- func (m ChannelForceProgressTx) MarshalJSON() ([]byte, error)
- func (m *ChannelForceProgressTx) SetUpdate(val OffChainUpdate)
- func (m *ChannelForceProgressTx) UnmarshalBinary(b []byte) error
- func (m *ChannelForceProgressTx) UnmarshalJSON(raw []byte) error
- func (m *ChannelForceProgressTx) Update() OffChainUpdate
- func (m *ChannelForceProgressTx) Validate(formats strfmt.Registry) error
- type ChannelForceProgressTxJSON
- func (m *ChannelForceProgressTxJSON) MarshalBinary() ([]byte, error)
- func (m ChannelForceProgressTxJSON) MarshalJSON() ([]byte, error)
- func (m *ChannelForceProgressTxJSON) SetType(val string)
- func (m *ChannelForceProgressTxJSON) SetVersion(val *uint64)
- func (m *ChannelForceProgressTxJSON) Type() string
- func (m *ChannelForceProgressTxJSON) UnmarshalBinary(b []byte) error
- func (m *ChannelForceProgressTxJSON) UnmarshalJSON(raw []byte) error
- func (m *ChannelForceProgressTxJSON) Validate(formats strfmt.Registry) error
- func (m *ChannelForceProgressTxJSON) Version() *uint64
- type ChannelSLASHTx
- type ChannelSLASHTxJSON
- func (m *ChannelSLASHTxJSON) MarshalBinary() ([]byte, error)
- func (m ChannelSLASHTxJSON) MarshalJSON() ([]byte, error)
- func (m *ChannelSLASHTxJSON) SetType(val string)
- func (m *ChannelSLASHTxJSON) SetVersion(val *uint64)
- func (m *ChannelSLASHTxJSON) Type() string
- func (m *ChannelSLASHTxJSON) UnmarshalBinary(b []byte) error
- func (m *ChannelSLASHTxJSON) UnmarshalJSON(raw []byte) error
- func (m *ChannelSLASHTxJSON) Validate(formats strfmt.Registry) error
- func (m *ChannelSLASHTxJSON) Version() *uint64
- type ChannelSettleTx
- type ChannelSettleTxJSON
- func (m *ChannelSettleTxJSON) MarshalBinary() ([]byte, error)
- func (m ChannelSettleTxJSON) MarshalJSON() ([]byte, error)
- func (m *ChannelSettleTxJSON) SetType(val string)
- func (m *ChannelSettleTxJSON) SetVersion(val *uint64)
- func (m *ChannelSettleTxJSON) Type() string
- func (m *ChannelSettleTxJSON) UnmarshalBinary(b []byte) error
- func (m *ChannelSettleTxJSON) UnmarshalJSON(raw []byte) error
- func (m *ChannelSettleTxJSON) Validate(formats strfmt.Registry) error
- func (m *ChannelSettleTxJSON) Version() *uint64
- type ChannelSnapshotSoloTx
- type ChannelSnapshotSoloTxJSON
- func (m *ChannelSnapshotSoloTxJSON) MarshalBinary() ([]byte, error)
- func (m ChannelSnapshotSoloTxJSON) MarshalJSON() ([]byte, error)
- func (m *ChannelSnapshotSoloTxJSON) SetType(val string)
- func (m *ChannelSnapshotSoloTxJSON) SetVersion(val *uint64)
- func (m *ChannelSnapshotSoloTxJSON) Type() string
- func (m *ChannelSnapshotSoloTxJSON) UnmarshalBinary(b []byte) error
- func (m *ChannelSnapshotSoloTxJSON) UnmarshalJSON(raw []byte) error
- func (m *ChannelSnapshotSoloTxJSON) Validate(formats strfmt.Registry) error
- func (m *ChannelSnapshotSoloTxJSON) Version() *uint64
- type ChannelWithdrawTx
- type ChannelWithdrawalTxJSON
- func (m *ChannelWithdrawalTxJSON) MarshalBinary() ([]byte, error)
- func (m ChannelWithdrawalTxJSON) MarshalJSON() ([]byte, error)
- func (m *ChannelWithdrawalTxJSON) SetType(val string)
- func (m *ChannelWithdrawalTxJSON) SetVersion(val *uint64)
- func (m *ChannelWithdrawalTxJSON) Type() string
- func (m *ChannelWithdrawalTxJSON) UnmarshalBinary(b []byte) error
- func (m *ChannelWithdrawalTxJSON) UnmarshalJSON(raw []byte) error
- func (m *ChannelWithdrawalTxJSON) Validate(formats strfmt.Registry) error
- func (m *ChannelWithdrawalTxJSON) Version() *uint64
- type CommitmentID
- type Contract
- type ContractCallCompute
- type ContractCallInput
- type ContractCallObject
- type ContractCallTx
- type ContractCallTxJSON
- func (m *ContractCallTxJSON) MarshalBinary() ([]byte, error)
- func (m ContractCallTxJSON) MarshalJSON() ([]byte, error)
- func (m *ContractCallTxJSON) SetType(val string)
- func (m *ContractCallTxJSON) SetVersion(val *uint64)
- func (m *ContractCallTxJSON) Type() string
- func (m *ContractCallTxJSON) UnmarshalBinary(b []byte) error
- func (m *ContractCallTxJSON) UnmarshalJSON(raw []byte) error
- func (m *ContractCallTxJSON) Validate(formats strfmt.Registry) error
- func (m *ContractCallTxJSON) Version() *uint64
- type ContractCreateCompute
- type ContractCreateTx
- type ContractCreateTxJSON
- func (m *ContractCreateTxJSON) MarshalBinary() ([]byte, error)
- func (m ContractCreateTxJSON) MarshalJSON() ([]byte, error)
- func (m *ContractCreateTxJSON) SetType(val string)
- func (m *ContractCreateTxJSON) SetVersion(val *uint64)
- func (m *ContractCreateTxJSON) Type() string
- func (m *ContractCreateTxJSON) UnmarshalBinary(b []byte) error
- func (m *ContractCreateTxJSON) UnmarshalJSON(raw []byte) error
- func (m *ContractCreateTxJSON) Validate(formats strfmt.Registry) error
- func (m *ContractCreateTxJSON) Version() *uint64
- type ContractObject
- type ContractStore
- type ContractStoreStore
- type CreateContractUnsignedTx
- func (m *CreateContractUnsignedTx) MarshalBinary() ([]byte, error)
- func (m CreateContractUnsignedTx) MarshalJSON() ([]byte, error)
- func (m *CreateContractUnsignedTx) UnmarshalBinary(b []byte) error
- func (m *CreateContractUnsignedTx) UnmarshalJSON(raw []byte) error
- func (m *CreateContractUnsignedTx) Validate(formats strfmt.Registry) error
- type DryRunAccount
- type DryRunInput
- type DryRunResult
- type DryRunResults
- type EncodedByteArray
- type EncodedHash
- type Error
- type Generation
- type GenericSignedTx
- func (m *GenericSignedTx) MarshalBinary() ([]byte, error)
- func (m GenericSignedTx) MarshalJSON() ([]byte, error)
- func (m *GenericSignedTx) SetTx(val GenericTx)
- func (m *GenericSignedTx) Tx() GenericTx
- func (m *GenericSignedTx) UnmarshalBinary(b []byte) error
- func (m *GenericSignedTx) UnmarshalJSON(raw []byte) error
- func (m *GenericSignedTx) Validate(formats strfmt.Registry) error
- type GenericTx
- type GenericTxs
- type InlineResponse200
- type InlineResponse2001
- type InlineResponse2002
- type InlineResponse2003
- type KeyBlock
- type KeyBlockOrMicroBlockHeader
- type MicroBlockHeader
- type NameClaimTx
- type NameClaimTxJSON
- func (m *NameClaimTxJSON) MarshalBinary() ([]byte, error)
- func (m NameClaimTxJSON) MarshalJSON() ([]byte, error)
- func (m *NameClaimTxJSON) SetType(val string)
- func (m *NameClaimTxJSON) SetVersion(val *uint64)
- func (m *NameClaimTxJSON) Type() string
- func (m *NameClaimTxJSON) UnmarshalBinary(b []byte) error
- func (m *NameClaimTxJSON) UnmarshalJSON(raw []byte) error
- func (m *NameClaimTxJSON) Validate(formats strfmt.Registry) error
- func (m *NameClaimTxJSON) Version() *uint64
- type NameEntry
- type NameHash
- type NamePointer
- type NamePreclaimTx
- type NamePreclaimTxJSON
- func (m *NamePreclaimTxJSON) MarshalBinary() ([]byte, error)
- func (m NamePreclaimTxJSON) MarshalJSON() ([]byte, error)
- func (m *NamePreclaimTxJSON) SetType(val string)
- func (m *NamePreclaimTxJSON) SetVersion(val *uint64)
- func (m *NamePreclaimTxJSON) Type() string
- func (m *NamePreclaimTxJSON) UnmarshalBinary(b []byte) error
- func (m *NamePreclaimTxJSON) UnmarshalJSON(raw []byte) error
- func (m *NamePreclaimTxJSON) Validate(formats strfmt.Registry) error
- func (m *NamePreclaimTxJSON) Version() *uint64
- type NameRevokeTx
- type NameRevokeTxJSON
- func (m *NameRevokeTxJSON) MarshalBinary() ([]byte, error)
- func (m NameRevokeTxJSON) MarshalJSON() ([]byte, error)
- func (m *NameRevokeTxJSON) SetType(val string)
- func (m *NameRevokeTxJSON) SetVersion(val *uint64)
- func (m *NameRevokeTxJSON) Type() string
- func (m *NameRevokeTxJSON) UnmarshalBinary(b []byte) error
- func (m *NameRevokeTxJSON) UnmarshalJSON(raw []byte) error
- func (m *NameRevokeTxJSON) Validate(formats strfmt.Registry) error
- func (m *NameRevokeTxJSON) Version() *uint64
- type NameTransferTx
- type NameTransferTxJSON
- func (m *NameTransferTxJSON) MarshalBinary() ([]byte, error)
- func (m NameTransferTxJSON) MarshalJSON() ([]byte, error)
- func (m *NameTransferTxJSON) SetType(val string)
- func (m *NameTransferTxJSON) SetVersion(val *uint64)
- func (m *NameTransferTxJSON) Type() string
- func (m *NameTransferTxJSON) UnmarshalBinary(b []byte) error
- func (m *NameTransferTxJSON) UnmarshalJSON(raw []byte) error
- func (m *NameTransferTxJSON) Validate(formats strfmt.Registry) error
- func (m *NameTransferTxJSON) Version() *uint64
- type NameUpdateTx
- type NameUpdateTxJSON
- func (m *NameUpdateTxJSON) MarshalBinary() ([]byte, error)
- func (m NameUpdateTxJSON) MarshalJSON() ([]byte, error)
- func (m *NameUpdateTxJSON) SetType(val string)
- func (m *NameUpdateTxJSON) SetVersion(val *uint64)
- func (m *NameUpdateTxJSON) Type() string
- func (m *NameUpdateTxJSON) UnmarshalBinary(b []byte) error
- func (m *NameUpdateTxJSON) UnmarshalJSON(raw []byte) error
- func (m *NameUpdateTxJSON) Validate(formats strfmt.Registry) error
- func (m *NameUpdateTxJSON) Version() *uint64
- type OffChainCallContract
- func (m *OffChainCallContract) MarshalBinary() ([]byte, error)
- func (m OffChainCallContract) MarshalJSON() ([]byte, error)
- func (m *OffChainCallContract) Op() string
- func (m *OffChainCallContract) SetOp(val string)
- func (m *OffChainCallContract) UnmarshalBinary(b []byte) error
- func (m *OffChainCallContract) UnmarshalJSON(raw []byte) error
- func (m *OffChainCallContract) Validate(formats strfmt.Registry) error
- type OffChainDeposit
- func (m *OffChainDeposit) MarshalBinary() ([]byte, error)
- func (m OffChainDeposit) MarshalJSON() ([]byte, error)
- func (m *OffChainDeposit) Op() string
- func (m *OffChainDeposit) SetOp(val string)
- func (m *OffChainDeposit) UnmarshalBinary(b []byte) error
- func (m *OffChainDeposit) UnmarshalJSON(raw []byte) error
- func (m *OffChainDeposit) Validate(formats strfmt.Registry) error
- type OffChainNewContract
- func (m *OffChainNewContract) MarshalBinary() ([]byte, error)
- func (m OffChainNewContract) MarshalJSON() ([]byte, error)
- func (m *OffChainNewContract) Op() string
- func (m *OffChainNewContract) SetOp(val string)
- func (m *OffChainNewContract) UnmarshalBinary(b []byte) error
- func (m *OffChainNewContract) UnmarshalJSON(raw []byte) error
- func (m *OffChainNewContract) Validate(formats strfmt.Registry) error
- type OffChainTransfer
- func (m *OffChainTransfer) MarshalBinary() ([]byte, error)
- func (m OffChainTransfer) MarshalJSON() ([]byte, error)
- func (m *OffChainTransfer) Op() string
- func (m *OffChainTransfer) SetOp(val string)
- func (m *OffChainTransfer) UnmarshalBinary(b []byte) error
- func (m *OffChainTransfer) UnmarshalJSON(raw []byte) error
- func (m *OffChainTransfer) Validate(formats strfmt.Registry) error
- type OffChainUpdate
- type OffChainWithdrawal
- func (m *OffChainWithdrawal) MarshalBinary() ([]byte, error)
- func (m OffChainWithdrawal) MarshalJSON() ([]byte, error)
- func (m *OffChainWithdrawal) Op() string
- func (m *OffChainWithdrawal) SetOp(val string)
- func (m *OffChainWithdrawal) UnmarshalBinary(b []byte) error
- func (m *OffChainWithdrawal) UnmarshalJSON(raw []byte) error
- func (m *OffChainWithdrawal) Validate(formats strfmt.Registry) error
- type OracleExtendTx
- type OracleExtendTxJSON
- func (m *OracleExtendTxJSON) MarshalBinary() ([]byte, error)
- func (m OracleExtendTxJSON) MarshalJSON() ([]byte, error)
- func (m *OracleExtendTxJSON) SetType(val string)
- func (m *OracleExtendTxJSON) SetVersion(val *uint64)
- func (m *OracleExtendTxJSON) Type() string
- func (m *OracleExtendTxJSON) UnmarshalBinary(b []byte) error
- func (m *OracleExtendTxJSON) UnmarshalJSON(raw []byte) error
- func (m *OracleExtendTxJSON) Validate(formats strfmt.Registry) error
- func (m *OracleExtendTxJSON) Version() *uint64
- type OracleQueries
- type OracleQuery
- type OracleQueryTx
- type OracleQueryTxJSON
- func (m *OracleQueryTxJSON) MarshalBinary() ([]byte, error)
- func (m OracleQueryTxJSON) MarshalJSON() ([]byte, error)
- func (m *OracleQueryTxJSON) SetType(val string)
- func (m *OracleQueryTxJSON) SetVersion(val *uint64)
- func (m *OracleQueryTxJSON) Type() string
- func (m *OracleQueryTxJSON) UnmarshalBinary(b []byte) error
- func (m *OracleQueryTxJSON) UnmarshalJSON(raw []byte) error
- func (m *OracleQueryTxJSON) Validate(formats strfmt.Registry) error
- func (m *OracleQueryTxJSON) Version() *uint64
- type OracleRegisterTx
- type OracleRegisterTxJSON
- func (m *OracleRegisterTxJSON) MarshalBinary() ([]byte, error)
- func (m OracleRegisterTxJSON) MarshalJSON() ([]byte, error)
- func (m *OracleRegisterTxJSON) SetType(val string)
- func (m *OracleRegisterTxJSON) SetVersion(val *uint64)
- func (m *OracleRegisterTxJSON) Type() string
- func (m *OracleRegisterTxJSON) UnmarshalBinary(b []byte) error
- func (m *OracleRegisterTxJSON) UnmarshalJSON(raw []byte) error
- func (m *OracleRegisterTxJSON) Validate(formats strfmt.Registry) error
- func (m *OracleRegisterTxJSON) Version() *uint64
- type OracleRespondTx
- type OracleResponseTxJSON
- func (m *OracleResponseTxJSON) MarshalBinary() ([]byte, error)
- func (m OracleResponseTxJSON) MarshalJSON() ([]byte, error)
- func (m *OracleResponseTxJSON) SetType(val string)
- func (m *OracleResponseTxJSON) SetVersion(val *uint64)
- func (m *OracleResponseTxJSON) Type() string
- func (m *OracleResponseTxJSON) UnmarshalBinary(b []byte) error
- func (m *OracleResponseTxJSON) UnmarshalJSON(raw []byte) error
- func (m *OracleResponseTxJSON) Validate(formats strfmt.Registry) error
- func (m *OracleResponseTxJSON) Version() *uint64
- type Peer
- type Peers
- type PoI
- type PostTxResponse
- type Pow
- type Protocol
- type PubKey
- type RegisteredOracle
- type RelativeTTL
- type SophiaBinaryData
- type SophiaJSONData
- type SpendTx
- type SpendTxJSON
- func (m *SpendTxJSON) MarshalBinary() ([]byte, error)
- func (m SpendTxJSON) MarshalJSON() ([]byte, error)
- func (m *SpendTxJSON) SetType(val string)
- func (m *SpendTxJSON) SetVersion(val *uint64)
- func (m *SpendTxJSON) Type() string
- func (m *SpendTxJSON) UnmarshalBinary(b []byte) error
- func (m *SpendTxJSON) UnmarshalJSON(raw []byte) error
- func (m *SpendTxJSON) Validate(formats strfmt.Registry) error
- func (m *SpendTxJSON) Version() *uint64
- type Status
- type TTL
- type TokenSupply
- type Tx
- type URI
- type UnsignedTx
Constants ¶
const ( // TTLTypeDelta captures enum value "delta" TTLTypeDelta string = "delta" // TTLTypeBlock captures enum value "block" TTLTypeBlock string = "block" )
const ( // RelativeTTLTypeDelta captures enum value "delta" RelativeTTLTypeDelta string = "delta" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// Balance
// Required: true
Balance utils.BigInt `json:"balance"`
// Public key
// Required: true
ID EncodedHash `json:"id"`
// Nonce
// Required: true
// Minimum: 0
Nonce *uint64 `json:"nonce"`
}
Account account swagger:model Account
func (*Account) MarshalBinary ¶
MarshalBinary interface implementation
func (*Account) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ByteCode ¶
type ByteCode struct {
// bytecode
// Required: true
Bytecode *string `json:"bytecode"`
}
ByteCode byte code swagger:model ByteCode
func (*ByteCode) MarshalBinary ¶
MarshalBinary interface implementation
func (*ByteCode) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type CallResult ¶
type CallResult struct {
// out
// Required: true
Out *string `json:"out"`
}
CallResult call result swagger:model CallResult
func (*CallResult) MarshalBinary ¶
func (m *CallResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CallResult) UnmarshalBinary ¶
func (m *CallResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Calldata ¶
type Calldata struct {
// calldata
// Required: true
Calldata EncodedByteArray `json:"calldata"`
}
Calldata calldata swagger:model Calldata
func (*Calldata) MarshalBinary ¶
MarshalBinary interface implementation
func (*Calldata) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Channel ¶
type Channel struct {
// channel amount
// Required: true
ChannelAmount utils.BigInt `json:"channel_amount"`
// channel reserve
// Required: true
ChannelReserve utils.BigInt `json:"channel_reserve"`
// delegate ids
// Required: true
DelegateIds []EncodedHash `json:"delegate_ids"`
// id
// Required: true
ID EncodedHash `json:"id"`
// initiator amount
// Required: true
InitiatorAmount utils.BigInt `json:"initiator_amount"`
// initiator id
// Required: true
InitiatorID EncodedHash `json:"initiator_id"`
// lock period
// Required: true
// Minimum: 0
LockPeriod *uint64 `json:"lock_period"`
// locked until
// Required: true
LockedUntil *uint64 `json:"locked_until"`
// responder amount
// Required: true
ResponderAmount utils.BigInt `json:"responder_amount"`
// responder id
// Required: true
ResponderID EncodedHash `json:"responder_id"`
// round
// Required: true
// Minimum: 0
Round *uint64 `json:"round"`
// solo round
// Required: true
// Minimum: 0
SoloRound *uint64 `json:"solo_round"`
// state hash
// Required: true
StateHash EncodedHash `json:"state_hash"`
}
Channel channel swagger:model Channel
func (*Channel) MarshalBinary ¶
MarshalBinary interface implementation
func (*Channel) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ChannelCloseMutualTx ¶
type ChannelCloseMutualTx struct {
// channel id
// Required: true
ChannelID EncodedHash `json:"channel_id"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// from id
// Required: true
FromID EncodedHash `json:"from_id"`
// initiator amount final
// Required: true
InitiatorAmountFinal utils.BigInt `json:"initiator_amount_final"`
// nonce
// Required: true
// Minimum: 0
Nonce *uint64 `json:"nonce"`
// responder amount final
// Required: true
ResponderAmountFinal utils.BigInt `json:"responder_amount_final"`
// ttl
// Minimum: 0
TTL *uint64 `json:"ttl,omitempty"`
}
ChannelCloseMutualTx channel close mutual tx swagger:model ChannelCloseMutualTx
func (*ChannelCloseMutualTx) MarshalBinary ¶
func (m *ChannelCloseMutualTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChannelCloseMutualTx) UnmarshalBinary ¶
func (m *ChannelCloseMutualTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChannelCloseMutualTxJSON ¶
type ChannelCloseMutualTxJSON struct {
ChannelCloseMutualTx
// contains filtered or unexported fields
}
ChannelCloseMutualTxJSON channel close mutual tx JSON swagger:model ChannelCloseMutualTxJSON
func (*ChannelCloseMutualTxJSON) MarshalBinary ¶
func (m *ChannelCloseMutualTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ChannelCloseMutualTxJSON) MarshalJSON ¶
func (m ChannelCloseMutualTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*ChannelCloseMutualTxJSON) SetType ¶
func (m *ChannelCloseMutualTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*ChannelCloseMutualTxJSON) SetVersion ¶
func (m *ChannelCloseMutualTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*ChannelCloseMutualTxJSON) Type ¶
func (m *ChannelCloseMutualTxJSON) Type() string
Type gets the type of this subtype
func (*ChannelCloseMutualTxJSON) UnmarshalBinary ¶
func (m *ChannelCloseMutualTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ChannelCloseMutualTxJSON) UnmarshalJSON ¶
func (m *ChannelCloseMutualTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*ChannelCloseMutualTxJSON) Validate ¶
func (m *ChannelCloseMutualTxJSON) Validate(formats strfmt.Registry) error
Validate validates this channel close mutual tx JSON
func (*ChannelCloseMutualTxJSON) Version ¶
func (m *ChannelCloseMutualTxJSON) Version() *uint64
Version gets the version of this subtype
type ChannelCloseSoloTx ¶
type ChannelCloseSoloTx struct {
// channel id
// Required: true
ChannelID EncodedHash `json:"channel_id"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// from id
// Required: true
FromID EncodedHash `json:"from_id"`
// nonce
// Minimum: 0
Nonce *uint64 `json:"nonce,omitempty"`
// payload
// Required: true
Payload *string `json:"payload"`
// Proof of inclusion containing information for closing the channel
// Required: true
Poi *string `json:"poi"`
// ttl
// Minimum: 0
TTL *uint64 `json:"ttl,omitempty"`
}
ChannelCloseSoloTx channel close solo tx swagger:model ChannelCloseSoloTx
func (*ChannelCloseSoloTx) MarshalBinary ¶
func (m *ChannelCloseSoloTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChannelCloseSoloTx) UnmarshalBinary ¶
func (m *ChannelCloseSoloTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChannelCloseSoloTxJSON ¶
type ChannelCloseSoloTxJSON struct {
ChannelCloseSoloTx
// contains filtered or unexported fields
}
ChannelCloseSoloTxJSON channel close solo tx JSON swagger:model ChannelCloseSoloTxJSON
func (*ChannelCloseSoloTxJSON) MarshalBinary ¶
func (m *ChannelCloseSoloTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ChannelCloseSoloTxJSON) MarshalJSON ¶
func (m ChannelCloseSoloTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*ChannelCloseSoloTxJSON) SetType ¶
func (m *ChannelCloseSoloTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*ChannelCloseSoloTxJSON) SetVersion ¶
func (m *ChannelCloseSoloTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*ChannelCloseSoloTxJSON) Type ¶
func (m *ChannelCloseSoloTxJSON) Type() string
Type gets the type of this subtype
func (*ChannelCloseSoloTxJSON) UnmarshalBinary ¶
func (m *ChannelCloseSoloTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ChannelCloseSoloTxJSON) UnmarshalJSON ¶
func (m *ChannelCloseSoloTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*ChannelCloseSoloTxJSON) Validate ¶
func (m *ChannelCloseSoloTxJSON) Validate(formats strfmt.Registry) error
Validate validates this channel close solo tx JSON
func (*ChannelCloseSoloTxJSON) Version ¶
func (m *ChannelCloseSoloTxJSON) Version() *uint64
Version gets the version of this subtype
type ChannelCreateTx ¶
type ChannelCreateTx struct {
// channel reserve
// Required: true
ChannelReserve utils.BigInt `json:"channel_reserve"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// initiator amount
// Required: true
InitiatorAmount utils.BigInt `json:"initiator_amount"`
// initiator id
// Required: true
InitiatorID EncodedHash `json:"initiator_id"`
// lock period
// Required: true
// Minimum: 0
LockPeriod *uint64 `json:"lock_period"`
// nonce
// Minimum: 0
Nonce *uint64 `json:"nonce,omitempty"`
// push amount
// Required: true
PushAmount utils.BigInt `json:"push_amount"`
// responder amount
// Required: true
ResponderAmount utils.BigInt `json:"responder_amount"`
// responder id
// Required: true
ResponderID EncodedHash `json:"responder_id"`
// Root hash of the channel's internal state tree
// Required: true
StateHash EncodedHash `json:"state_hash"`
// ttl
// Minimum: 0
TTL *uint64 `json:"ttl,omitempty"`
}
ChannelCreateTx channel create tx swagger:model ChannelCreateTx
func (*ChannelCreateTx) MarshalBinary ¶
func (m *ChannelCreateTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChannelCreateTx) UnmarshalBinary ¶
func (m *ChannelCreateTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChannelCreateTxJSON ¶
type ChannelCreateTxJSON struct {
ChannelCreateTx
// contains filtered or unexported fields
}
ChannelCreateTxJSON channel create tx JSON swagger:model ChannelCreateTxJSON
func (*ChannelCreateTxJSON) MarshalBinary ¶
func (m *ChannelCreateTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ChannelCreateTxJSON) MarshalJSON ¶
func (m ChannelCreateTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*ChannelCreateTxJSON) SetType ¶
func (m *ChannelCreateTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*ChannelCreateTxJSON) SetVersion ¶
func (m *ChannelCreateTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*ChannelCreateTxJSON) Type ¶
func (m *ChannelCreateTxJSON) Type() string
Type gets the type of this subtype
func (*ChannelCreateTxJSON) UnmarshalBinary ¶
func (m *ChannelCreateTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ChannelCreateTxJSON) UnmarshalJSON ¶
func (m *ChannelCreateTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*ChannelCreateTxJSON) Validate ¶
func (m *ChannelCreateTxJSON) Validate(formats strfmt.Registry) error
Validate validates this channel create tx JSON
func (*ChannelCreateTxJSON) Version ¶
func (m *ChannelCreateTxJSON) Version() *uint64
Version gets the version of this subtype
type ChannelDepositTx ¶
type ChannelDepositTx struct {
// amount
// Required: true
Amount utils.BigInt `json:"amount"`
// channel id
// Required: true
ChannelID EncodedHash `json:"channel_id"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// from id
// Required: true
FromID EncodedHash `json:"from_id"`
// nonce
// Required: true
// Minimum: 0
Nonce *uint64 `json:"nonce"`
// Channel's next round
// Required: true
// Minimum: 0
Round *uint64 `json:"round"`
// Root hash of the channel's internal state tree after the deposit had been applied to it
// Required: true
StateHash EncodedHash `json:"state_hash"`
// ttl
// Minimum: 0
TTL *uint64 `json:"ttl,omitempty"`
}
ChannelDepositTx channel deposit tx swagger:model ChannelDepositTx
func (*ChannelDepositTx) MarshalBinary ¶
func (m *ChannelDepositTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChannelDepositTx) UnmarshalBinary ¶
func (m *ChannelDepositTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChannelDepositTxJSON ¶
type ChannelDepositTxJSON struct {
ChannelDepositTx
// contains filtered or unexported fields
}
ChannelDepositTxJSON channel deposit tx JSON swagger:model ChannelDepositTxJSON
func (*ChannelDepositTxJSON) MarshalBinary ¶
func (m *ChannelDepositTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ChannelDepositTxJSON) MarshalJSON ¶
func (m ChannelDepositTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*ChannelDepositTxJSON) SetType ¶
func (m *ChannelDepositTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*ChannelDepositTxJSON) SetVersion ¶
func (m *ChannelDepositTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*ChannelDepositTxJSON) Type ¶
func (m *ChannelDepositTxJSON) Type() string
Type gets the type of this subtype
func (*ChannelDepositTxJSON) UnmarshalBinary ¶
func (m *ChannelDepositTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ChannelDepositTxJSON) UnmarshalJSON ¶
func (m *ChannelDepositTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*ChannelDepositTxJSON) Validate ¶
func (m *ChannelDepositTxJSON) Validate(formats strfmt.Registry) error
Validate validates this channel deposit tx JSON
func (*ChannelDepositTxJSON) Version ¶
func (m *ChannelDepositTxJSON) Version() *uint64
Version gets the version of this subtype
type ChannelForceProgressTx ¶
type ChannelForceProgressTx struct {
// channel id
// Required: true
ChannelID EncodedHash `json:"channel_id"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// from id
// Required: true
FromID EncodedHash `json:"from_id"`
// nonce
// Minimum: 0
Nonce *uint64 `json:"nonce,omitempty"`
// The whole set of off-chain state trees
OffchainTrees EncodedHash `json:"offchain_trees,omitempty"`
// payload
// Required: true
Payload *string `json:"payload"`
// Channel's next round
// Required: true
// Minimum: 0
Round *uint64 `json:"round"`
// Channel's next state_hash
// Required: true
StateHash EncodedHash `json:"state_hash"`
// ttl
// Minimum: 0
TTL *uint64 `json:"ttl,omitempty"`
// contains filtered or unexported fields
}
ChannelForceProgressTx channel force progress tx swagger:model ChannelForceProgressTx
func (*ChannelForceProgressTx) MarshalBinary ¶
func (m *ChannelForceProgressTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ChannelForceProgressTx) MarshalJSON ¶
func (m ChannelForceProgressTx) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*ChannelForceProgressTx) SetUpdate ¶
func (m *ChannelForceProgressTx) SetUpdate(val OffChainUpdate)
SetUpdate sets the update of this base type
func (*ChannelForceProgressTx) UnmarshalBinary ¶
func (m *ChannelForceProgressTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ChannelForceProgressTx) UnmarshalJSON ¶
func (m *ChannelForceProgressTx) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*ChannelForceProgressTx) Update ¶
func (m *ChannelForceProgressTx) Update() OffChainUpdate
Update gets the update of this base type
type ChannelForceProgressTxJSON ¶
type ChannelForceProgressTxJSON struct {
ChannelForceProgressTx
// contains filtered or unexported fields
}
ChannelForceProgressTxJSON channel force progress tx JSON swagger:model ChannelForceProgressTxJSON
func (*ChannelForceProgressTxJSON) MarshalBinary ¶
func (m *ChannelForceProgressTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ChannelForceProgressTxJSON) MarshalJSON ¶
func (m ChannelForceProgressTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*ChannelForceProgressTxJSON) SetType ¶
func (m *ChannelForceProgressTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*ChannelForceProgressTxJSON) SetVersion ¶
func (m *ChannelForceProgressTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*ChannelForceProgressTxJSON) Type ¶
func (m *ChannelForceProgressTxJSON) Type() string
Type gets the type of this subtype
func (*ChannelForceProgressTxJSON) UnmarshalBinary ¶
func (m *ChannelForceProgressTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ChannelForceProgressTxJSON) UnmarshalJSON ¶
func (m *ChannelForceProgressTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*ChannelForceProgressTxJSON) Validate ¶
func (m *ChannelForceProgressTxJSON) Validate(formats strfmt.Registry) error
Validate validates this channel force progress tx JSON
func (*ChannelForceProgressTxJSON) Version ¶
func (m *ChannelForceProgressTxJSON) Version() *uint64
Version gets the version of this subtype
type ChannelSLASHTx ¶
type ChannelSLASHTx struct {
// channel id
// Required: true
ChannelID EncodedHash `json:"channel_id"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// from id
// Required: true
FromID EncodedHash `json:"from_id"`
// nonce
// Minimum: 0
Nonce *uint64 `json:"nonce,omitempty"`
// payload
// Required: true
Payload *string `json:"payload"`
// Proof of inclusion containing information for closing the channel
// Required: true
Poi *string `json:"poi"`
// ttl
// Minimum: 0
TTL *uint64 `json:"ttl,omitempty"`
}
ChannelSLASHTx channel slash tx swagger:model ChannelSlashTx
func (*ChannelSLASHTx) MarshalBinary ¶
func (m *ChannelSLASHTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChannelSLASHTx) UnmarshalBinary ¶
func (m *ChannelSLASHTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChannelSLASHTxJSON ¶
type ChannelSLASHTxJSON struct {
ChannelSLASHTx
// contains filtered or unexported fields
}
ChannelSLASHTxJSON channel slash tx JSON swagger:model ChannelSlashTxJSON
func (*ChannelSLASHTxJSON) MarshalBinary ¶
func (m *ChannelSLASHTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ChannelSLASHTxJSON) MarshalJSON ¶
func (m ChannelSLASHTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*ChannelSLASHTxJSON) SetType ¶
func (m *ChannelSLASHTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*ChannelSLASHTxJSON) SetVersion ¶
func (m *ChannelSLASHTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*ChannelSLASHTxJSON) Type ¶
func (m *ChannelSLASHTxJSON) Type() string
Type gets the type of this subtype
func (*ChannelSLASHTxJSON) UnmarshalBinary ¶
func (m *ChannelSLASHTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ChannelSLASHTxJSON) UnmarshalJSON ¶
func (m *ChannelSLASHTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*ChannelSLASHTxJSON) Validate ¶
func (m *ChannelSLASHTxJSON) Validate(formats strfmt.Registry) error
Validate validates this channel slash tx JSON
func (*ChannelSLASHTxJSON) Version ¶
func (m *ChannelSLASHTxJSON) Version() *uint64
Version gets the version of this subtype
type ChannelSettleTx ¶
type ChannelSettleTx struct {
// channel id
// Required: true
ChannelID EncodedHash `json:"channel_id"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// from id
// Required: true
FromID EncodedHash `json:"from_id"`
// initiator amount final
// Required: true
InitiatorAmountFinal utils.BigInt `json:"initiator_amount_final"`
// nonce
// Required: true
// Minimum: 0
Nonce *uint64 `json:"nonce"`
// responder amount final
// Required: true
ResponderAmountFinal utils.BigInt `json:"responder_amount_final"`
// ttl
// Minimum: 0
TTL *uint64 `json:"ttl,omitempty"`
}
ChannelSettleTx channel settle tx swagger:model ChannelSettleTx
func (*ChannelSettleTx) MarshalBinary ¶
func (m *ChannelSettleTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChannelSettleTx) UnmarshalBinary ¶
func (m *ChannelSettleTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChannelSettleTxJSON ¶
type ChannelSettleTxJSON struct {
ChannelSettleTx
// contains filtered or unexported fields
}
ChannelSettleTxJSON channel settle tx JSON swagger:model ChannelSettleTxJSON
func (*ChannelSettleTxJSON) MarshalBinary ¶
func (m *ChannelSettleTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ChannelSettleTxJSON) MarshalJSON ¶
func (m ChannelSettleTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*ChannelSettleTxJSON) SetType ¶
func (m *ChannelSettleTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*ChannelSettleTxJSON) SetVersion ¶
func (m *ChannelSettleTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*ChannelSettleTxJSON) Type ¶
func (m *ChannelSettleTxJSON) Type() string
Type gets the type of this subtype
func (*ChannelSettleTxJSON) UnmarshalBinary ¶
func (m *ChannelSettleTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ChannelSettleTxJSON) UnmarshalJSON ¶
func (m *ChannelSettleTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*ChannelSettleTxJSON) Validate ¶
func (m *ChannelSettleTxJSON) Validate(formats strfmt.Registry) error
Validate validates this channel settle tx JSON
func (*ChannelSettleTxJSON) Version ¶
func (m *ChannelSettleTxJSON) Version() *uint64
Version gets the version of this subtype
type ChannelSnapshotSoloTx ¶
type ChannelSnapshotSoloTx struct {
// channel id
// Required: true
ChannelID EncodedHash `json:"channel_id"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// from id
// Required: true
FromID EncodedHash `json:"from_id"`
// nonce
// Minimum: 0
Nonce *uint64 `json:"nonce,omitempty"`
// payload
// Required: true
Payload *string `json:"payload"`
// ttl
// Minimum: 0
TTL *uint64 `json:"ttl,omitempty"`
}
ChannelSnapshotSoloTx channel snapshot solo tx swagger:model ChannelSnapshotSoloTx
func (*ChannelSnapshotSoloTx) MarshalBinary ¶
func (m *ChannelSnapshotSoloTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChannelSnapshotSoloTx) UnmarshalBinary ¶
func (m *ChannelSnapshotSoloTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChannelSnapshotSoloTxJSON ¶
type ChannelSnapshotSoloTxJSON struct {
ChannelSnapshotSoloTx
// contains filtered or unexported fields
}
ChannelSnapshotSoloTxJSON channel snapshot solo tx JSON swagger:model ChannelSnapshotSoloTxJSON
func (*ChannelSnapshotSoloTxJSON) MarshalBinary ¶
func (m *ChannelSnapshotSoloTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ChannelSnapshotSoloTxJSON) MarshalJSON ¶
func (m ChannelSnapshotSoloTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*ChannelSnapshotSoloTxJSON) SetType ¶
func (m *ChannelSnapshotSoloTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*ChannelSnapshotSoloTxJSON) SetVersion ¶
func (m *ChannelSnapshotSoloTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*ChannelSnapshotSoloTxJSON) Type ¶
func (m *ChannelSnapshotSoloTxJSON) Type() string
Type gets the type of this subtype
func (*ChannelSnapshotSoloTxJSON) UnmarshalBinary ¶
func (m *ChannelSnapshotSoloTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ChannelSnapshotSoloTxJSON) UnmarshalJSON ¶
func (m *ChannelSnapshotSoloTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*ChannelSnapshotSoloTxJSON) Validate ¶
func (m *ChannelSnapshotSoloTxJSON) Validate(formats strfmt.Registry) error
Validate validates this channel snapshot solo tx JSON
func (*ChannelSnapshotSoloTxJSON) Version ¶
func (m *ChannelSnapshotSoloTxJSON) Version() *uint64
Version gets the version of this subtype
type ChannelWithdrawTx ¶
type ChannelWithdrawTx struct {
// amount
// Required: true
Amount utils.BigInt `json:"amount"`
// channel id
// Required: true
ChannelID EncodedHash `json:"channel_id"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// nonce
// Required: true
// Minimum: 0
Nonce *uint64 `json:"nonce"`
// Channel's next round
// Required: true
// Minimum: 0
Round *uint64 `json:"round"`
// Root hash of the channel's internal state tree after the withdraw had been applied to it
// Required: true
StateHash EncodedHash `json:"state_hash"`
// to id
// Required: true
ToID EncodedHash `json:"to_id"`
// ttl
// Minimum: 0
TTL *uint64 `json:"ttl,omitempty"`
}
ChannelWithdrawTx channel withdraw tx swagger:model ChannelWithdrawTx
func (*ChannelWithdrawTx) MarshalBinary ¶
func (m *ChannelWithdrawTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChannelWithdrawTx) UnmarshalBinary ¶
func (m *ChannelWithdrawTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChannelWithdrawalTxJSON ¶
type ChannelWithdrawalTxJSON struct {
ChannelWithdrawTx
// contains filtered or unexported fields
}
ChannelWithdrawalTxJSON channel withdrawal tx JSON swagger:model ChannelWithdrawalTxJSON
func (*ChannelWithdrawalTxJSON) MarshalBinary ¶
func (m *ChannelWithdrawalTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ChannelWithdrawalTxJSON) MarshalJSON ¶
func (m ChannelWithdrawalTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*ChannelWithdrawalTxJSON) SetType ¶
func (m *ChannelWithdrawalTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*ChannelWithdrawalTxJSON) SetVersion ¶
func (m *ChannelWithdrawalTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*ChannelWithdrawalTxJSON) Type ¶
func (m *ChannelWithdrawalTxJSON) Type() string
Type gets the type of this subtype
func (*ChannelWithdrawalTxJSON) UnmarshalBinary ¶
func (m *ChannelWithdrawalTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ChannelWithdrawalTxJSON) UnmarshalJSON ¶
func (m *ChannelWithdrawalTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*ChannelWithdrawalTxJSON) Validate ¶
func (m *ChannelWithdrawalTxJSON) Validate(formats strfmt.Registry) error
Validate validates this channel withdrawal tx JSON
func (*ChannelWithdrawalTxJSON) Version ¶
func (m *ChannelWithdrawalTxJSON) Version() *uint64
Version gets the version of this subtype
type CommitmentID ¶
type CommitmentID struct {
// commitment id
// Required: true
CommitmentID EncodedHash `json:"commitment_id"`
}
CommitmentID commitment Id swagger:model CommitmentId
func (*CommitmentID) MarshalBinary ¶
func (m *CommitmentID) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CommitmentID) UnmarshalBinary ¶
func (m *CommitmentID) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Contract ¶
type Contract struct {
// code
// Required: true
Code *string `json:"code"`
// options
// Required: true
Options *string `json:"options"`
}
Contract contract swagger:model Contract
func (*Contract) MarshalBinary ¶
MarshalBinary interface implementation
func (*Contract) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ContractCallCompute ¶
type ContractCallCompute struct {
// ABI version
// Maximum: 65535
// Minimum: 0
AbiVersion *int64 `json:"abi_version,omitempty"`
// Amount
// Required: true
Amount utils.BigInt `json:"amount"`
// Contract call data function arguments (deprecated, use call)
Arguments string `json:"arguments,omitempty"`
// Source code for a contract with a function __call() = f(args), if calling a function f
Call string `json:"call,omitempty"`
// Contract caller pub_key
// Required: true
CallerID EncodedHash `json:"caller_id"`
// Contract's pub_key
// Required: true
ContractID EncodedHash `json:"contract_id"`
// Transaction fee
// Required: true
Fee utils.BigInt `json:"fee"`
// Contract call data function (deprecated, use call)
Function string `json:"function,omitempty"`
// Contract gas
// Required: true
// Minimum: 0
Gas *int64 `json:"gas"`
// Gas price
// Required: true
// Minimum: 0
GasPrice *int64 `json:"gas_price"`
// Caller's nonce
Nonce int64 `json:"nonce,omitempty"`
// Transaction TTL
// Minimum: 0
TTL *int64 `json:"ttl,omitempty"`
// VM version
// Maximum: 65535
// Minimum: 0
VMVersion *int64 `json:"vm_version,omitempty"`
}
ContractCallCompute contract call compute swagger:model ContractCallCompute
func (*ContractCallCompute) MarshalBinary ¶
func (m *ContractCallCompute) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ContractCallCompute) UnmarshalBinary ¶
func (m *ContractCallCompute) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ContractCallInput ¶
type ContractCallInput struct {
// abi
// Required: true
Abi *string `json:"abi"`
// arg
Arg string `json:"arg,omitempty"`
// Source code for a contract with a function __call() = f(args), if calling a function f
Call string `json:"call,omitempty"`
// code
// Required: true
Code *string `json:"code"`
// function
Function string `json:"function,omitempty"`
}
ContractCallInput contract call input swagger:model ContractCallInput
func (*ContractCallInput) MarshalBinary ¶
func (m *ContractCallInput) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ContractCallInput) UnmarshalBinary ¶
func (m *ContractCallInput) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ContractCallObject ¶
type ContractCallObject struct {
// caller id
// Required: true
CallerID EncodedHash `json:"caller_id"`
// caller nonce
// Required: true
CallerNonce *int64 `json:"caller_nonce"`
// contract id
// Required: true
ContractID EncodedHash `json:"contract_id"`
// gas price
// Required: true
GasPrice *int64 `json:"gas_price"`
// gas used
// Required: true
GasUsed *int64 `json:"gas_used"`
// height
// Required: true
Height *int64 `json:"height"`
// The status of the call 'ok | error | revert'.
// Required: true
ReturnType *string `json:"return_type"`
// return value
// Required: true
ReturnValue EncodedByteArray `json:"return_value"`
}
ContractCallObject contract call object swagger:model ContractCallObject
func (*ContractCallObject) MarshalBinary ¶
func (m *ContractCallObject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ContractCallObject) UnmarshalBinary ¶
func (m *ContractCallObject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ContractCallTx ¶
type ContractCallTx struct {
// ABI version
// Maximum: 65535
// Minimum: 0
AbiVersion *int64 `json:"abi_version,omitempty"`
// Amount
// Required: true
Amount utils.BigInt `json:"amount"`
// Contract call data
// Required: true
CallData EncodedByteArray `json:"call_data"`
// Contract caller pub_key
// Required: true
CallerID EncodedHash `json:"caller_id"`
// Contract's pub_key
// Required: true
ContractID EncodedHash `json:"contract_id"`
// Transaction fee
// Required: true
Fee utils.BigInt `json:"fee"`
// Contract gas
// Required: true
// Minimum: 0
Gas *int64 `json:"gas"`
// Gas price
// Required: true
// Minimum: 0
GasPrice *int64 `json:"gas_price"`
// Caller's nonce
Nonce int64 `json:"nonce,omitempty"`
// Transaction TTL
// Minimum: 0
TTL *int64 `json:"ttl,omitempty"`
// VM version
// Maximum: 65535
// Minimum: 0
VMVersion *int64 `json:"vm_version,omitempty"`
}
ContractCallTx contract call tx swagger:model ContractCallTx
func (*ContractCallTx) MarshalBinary ¶
func (m *ContractCallTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ContractCallTx) UnmarshalBinary ¶
func (m *ContractCallTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ContractCallTxJSON ¶
type ContractCallTxJSON struct {
ContractCallTx
// contains filtered or unexported fields
}
ContractCallTxJSON contract call tx JSON swagger:model ContractCallTxJSON
func (*ContractCallTxJSON) MarshalBinary ¶
func (m *ContractCallTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ContractCallTxJSON) MarshalJSON ¶
func (m ContractCallTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*ContractCallTxJSON) SetType ¶
func (m *ContractCallTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*ContractCallTxJSON) SetVersion ¶
func (m *ContractCallTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*ContractCallTxJSON) Type ¶
func (m *ContractCallTxJSON) Type() string
Type gets the type of this subtype
func (*ContractCallTxJSON) UnmarshalBinary ¶
func (m *ContractCallTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ContractCallTxJSON) UnmarshalJSON ¶
func (m *ContractCallTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*ContractCallTxJSON) Validate ¶
func (m *ContractCallTxJSON) Validate(formats strfmt.Registry) error
Validate validates this contract call tx JSON
func (*ContractCallTxJSON) Version ¶
func (m *ContractCallTxJSON) Version() *uint64
Version gets the version of this subtype
type ContractCreateCompute ¶
type ContractCreateCompute struct {
// ABI version
// Maximum: 65535
// Minimum: 0
AbiVersion *int64 `json:"abi_version,omitempty"`
// Amount
// Required: true
Amount utils.BigInt `json:"amount"`
// Contract call data init function arguments (deprecated, use call)
Arguments string `json:"arguments,omitempty"`
// Source code for a contract with a function __call() = init(args)
Call string `json:"call,omitempty"`
// Contract's code
// Required: true
Code *string `json:"code"`
// Deposit
// Required: true
// Minimum: 0
Deposit *int64 `json:"deposit"`
// Transaction fee
// Required: true
Fee utils.BigInt `json:"fee"`
// Contract gas
// Required: true
// Minimum: 0
Gas *int64 `json:"gas"`
// Gas price
// Required: true
// Minimum: 0
GasPrice *int64 `json:"gas_price"`
// Owner's nonce
Nonce int64 `json:"nonce,omitempty"`
// Contract owner pub_key
// Required: true
OwnerID *string `json:"owner_id"`
// Transaction TTL
// Minimum: 0
TTL *int64 `json:"ttl,omitempty"`
// Virtual machine's version
// Required: true
// Maximum: 65535
// Minimum: 0
VMVersion *int64 `json:"vm_version"`
}
ContractCreateCompute contract create compute swagger:model ContractCreateCompute
func (*ContractCreateCompute) MarshalBinary ¶
func (m *ContractCreateCompute) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ContractCreateCompute) UnmarshalBinary ¶
func (m *ContractCreateCompute) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ContractCreateTx ¶
type ContractCreateTx struct {
// ABI version
// Maximum: 65535
// Minimum: 0
AbiVersion *int64 `json:"abi_version,omitempty"`
// Amount
// Required: true
Amount utils.BigInt `json:"amount"`
// Contract call data
// Required: true
CallData EncodedByteArray `json:"call_data"`
// Contract's code
// Required: true
Code *string `json:"code"`
// Deposit
// Required: true
// Minimum: 0
Deposit *int64 `json:"deposit"`
// Transaction fee
// Required: true
Fee utils.BigInt `json:"fee"`
// Contract gas
// Required: true
// Minimum: 0
Gas *int64 `json:"gas"`
// Gas price
// Required: true
// Minimum: 0
GasPrice *int64 `json:"gas_price"`
// Owner's nonce
Nonce int64 `json:"nonce,omitempty"`
// Contract owner pub_key
// Required: true
OwnerID EncodedHash `json:"owner_id"`
// Transaction TTL
// Minimum: 0
TTL *int64 `json:"ttl,omitempty"`
// Virtual machine's version
// Required: true
// Maximum: 65535
// Minimum: 0
VMVersion *int64 `json:"vm_version"`
}
ContractCreateTx contract create tx swagger:model ContractCreateTx
func (*ContractCreateTx) MarshalBinary ¶
func (m *ContractCreateTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ContractCreateTx) UnmarshalBinary ¶
func (m *ContractCreateTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ContractCreateTxJSON ¶
type ContractCreateTxJSON struct {
ContractCreateTx
// contains filtered or unexported fields
}
ContractCreateTxJSON contract create tx JSON swagger:model ContractCreateTxJSON
func (*ContractCreateTxJSON) MarshalBinary ¶
func (m *ContractCreateTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ContractCreateTxJSON) MarshalJSON ¶
func (m ContractCreateTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*ContractCreateTxJSON) SetType ¶
func (m *ContractCreateTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*ContractCreateTxJSON) SetVersion ¶
func (m *ContractCreateTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*ContractCreateTxJSON) Type ¶
func (m *ContractCreateTxJSON) Type() string
Type gets the type of this subtype
func (*ContractCreateTxJSON) UnmarshalBinary ¶
func (m *ContractCreateTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ContractCreateTxJSON) UnmarshalJSON ¶
func (m *ContractCreateTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*ContractCreateTxJSON) Validate ¶
func (m *ContractCreateTxJSON) Validate(formats strfmt.Registry) error
Validate validates this contract create tx JSON
func (*ContractCreateTxJSON) Version ¶
func (m *ContractCreateTxJSON) Version() *uint64
Version gets the version of this subtype
type ContractObject ¶
type ContractObject struct {
// abi version
// Maximum: 65535
// Minimum: 0
AbiVersion *int64 `json:"abi_version,omitempty"`
// active
// Required: true
Active *bool `json:"active"`
// deposit
// Required: true
Deposit *int64 `json:"deposit"`
// id
// Required: true
ID EncodedHash `json:"id"`
// log
// Required: true
Log *string `json:"log"`
// owner id
// Required: true
OwnerID EncodedHash `json:"owner_id"`
// referrer ids
// Required: true
ReferrerIds []EncodedHash `json:"referrer_ids"`
// vm version
// Required: true
// Maximum: 65535
// Minimum: 0
VMVersion *int64 `json:"vm_version"`
}
ContractObject contract object swagger:model ContractObject
func (*ContractObject) MarshalBinary ¶
func (m *ContractObject) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ContractObject) UnmarshalBinary ¶
func (m *ContractObject) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
type ContractStoreStore ¶
type ContractStoreStore struct {
// key
Key string `json:"key,omitempty"`
// value
Value EncodedByteArray `json:"value,omitempty"`
}
ContractStoreStore contract store store swagger:model ContractStore_store
func (*ContractStoreStore) MarshalBinary ¶
func (m *ContractStoreStore) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ContractStoreStore) UnmarshalBinary ¶
func (m *ContractStoreStore) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateContractUnsignedTx ¶
type CreateContractUnsignedTx struct {
UnsignedTx
// Address of the contract to be created
// Required: true
ContractID EncodedHash `json:"contract_id"`
}
CreateContractUnsignedTx create contract unsigned tx swagger:model CreateContractUnsignedTx
func (*CreateContractUnsignedTx) MarshalBinary ¶
func (m *CreateContractUnsignedTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (CreateContractUnsignedTx) MarshalJSON ¶
func (m CreateContractUnsignedTx) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*CreateContractUnsignedTx) UnmarshalBinary ¶
func (m *CreateContractUnsignedTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*CreateContractUnsignedTx) UnmarshalJSON ¶
func (m *CreateContractUnsignedTx) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type DryRunAccount ¶
type DryRunAccount struct {
// amount
// Required: true
Amount utils.BigInt `json:"amount"`
// pub key
// Required: true
PubKey EncodedHash `json:"pub_key"`
}
DryRunAccount dry run account swagger:model DryRunAccount
func (*DryRunAccount) MarshalBinary ¶
func (m *DryRunAccount) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DryRunAccount) UnmarshalBinary ¶
func (m *DryRunAccount) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DryRunInput ¶
type DryRunInput struct {
// Accounts
Accounts []*DryRunAccount `json:"accounts"`
// top
Top string `json:"top,omitempty"`
// Txs
// Required: true
Txs []EncodedHash `json:"txs"`
}
DryRunInput dry run input swagger:model DryRunInput
func (*DryRunInput) MarshalBinary ¶
func (m *DryRunInput) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DryRunInput) UnmarshalBinary ¶
func (m *DryRunInput) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
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
type EncodedByteArray ¶
type EncodedByteArray string
EncodedByteArray encoded byte array swagger:model EncodedByteArray
type Error ¶
type Error struct {
// reason
// Required: true
Reason *string `json:"reason"`
}
Error error swagger:model Error
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Generation ¶
type Generation struct {
// key block
// Required: true
KeyBlock *KeyBlock `json:"key_block"`
// micro blocks
// Required: true
MicroBlocks []EncodedHash `json:"micro_blocks"`
}
Generation generation swagger:model Generation
func (*Generation) MarshalBinary ¶
func (m *Generation) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Generation) UnmarshalBinary ¶
func (m *Generation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GenericSignedTx ¶
type GenericSignedTx struct {
// Value "none" means no block in the chain includes the transaction
// Required: true
BlockHash EncodedHash `json:"block_hash"`
// block height
// Required: true
BlockHeight *uint64 `json:"block_height"`
// hash
// Required: true
Hash EncodedHash `json:"hash"`
// signatures
// Required: true
// Min Items: 1
Signatures []string `json:"signatures"`
// contains filtered or unexported fields
}
GenericSignedTx generic signed tx swagger:model GenericSignedTx
func (*GenericSignedTx) MarshalBinary ¶
func (m *GenericSignedTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (GenericSignedTx) MarshalJSON ¶
func (m GenericSignedTx) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*GenericSignedTx) SetTx ¶
func (m *GenericSignedTx) SetTx(val GenericTx)
SetTx sets the tx of this base type
func (*GenericSignedTx) Tx ¶
func (m *GenericSignedTx) Tx() GenericTx
Tx gets the tx of this base type
func (*GenericSignedTx) UnmarshalBinary ¶
func (m *GenericSignedTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GenericSignedTx) UnmarshalJSON ¶
func (m *GenericSignedTx) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type GenericTx ¶
type GenericTx interface {
runtime.Validatable
// type
// Required: true
Type() string
SetType(string)
// version
// Required: true
Version() *uint64
SetVersion(*uint64)
}
GenericTx generic tx swagger:discriminator GenericTx type
func UnmarshalGenericTx ¶
UnmarshalGenericTx unmarshals polymorphic 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
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
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
type InlineResponse2002 ¶
type InlineResponse2002 struct {
// Count
// Minimum: 1
Count uint64 `json:"count,omitempty"`
}
InlineResponse2002 inline response 200 2 swagger:model inline_response_200_2
func (*InlineResponse2002) MarshalBinary ¶
func (m *InlineResponse2002) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineResponse2002) UnmarshalBinary ¶
func (m *InlineResponse2002) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InlineResponse2003 ¶
type InlineResponse2003 struct {
// pubkey
Pubkey string `json:"pubkey,omitempty"`
}
InlineResponse2003 inline response 200 3 swagger:model inline_response_200_3
func (*InlineResponse2003) MarshalBinary ¶
func (m *InlineResponse2003) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InlineResponse2003) UnmarshalBinary ¶
func (m *InlineResponse2003) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type KeyBlock ¶
type KeyBlock struct {
// beneficiary
// Required: true
Beneficiary EncodedHash `json:"beneficiary"`
// hash
// Required: true
Hash EncodedHash `json:"hash"`
// height
// Required: true
Height *uint64 `json:"height"`
// info
// Required: true
Info EncodedByteArray `json:"info"`
// miner
// Required: true
Miner EncodedHash `json:"miner"`
// nonce
Nonce uint64 `json:"nonce,omitempty"`
// pow
Pow Pow `json:"pow,omitempty"`
// prev hash
// Required: true
PrevHash EncodedHash `json:"prev_hash"`
// prev key hash
// Required: true
PrevKeyHash EncodedHash `json:"prev_key_hash"`
// state hash
// Required: true
StateHash EncodedHash `json:"state_hash"`
// target
// Required: true
Target *uint64 `json:"target"`
// time
// Required: true
Time *int64 `json:"time"`
// version
// Required: true
Version *uint64 `json:"version"`
}
KeyBlock key block swagger:model KeyBlock
func (*KeyBlock) MarshalBinary ¶
MarshalBinary interface implementation
func (*KeyBlock) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
type MicroBlockHeader ¶
type MicroBlockHeader struct {
// hash
// Required: true
Hash EncodedHash `json:"hash"`
// height
// Required: true
Height *uint64 `json:"height"`
// "no_fraud" | api encoded Proof of Fraud hash
// Required: true
PofHash *string `json:"pof_hash"`
// prev hash
// Required: true
PrevHash EncodedHash `json:"prev_hash"`
// prev key hash
// Required: true
PrevKeyHash EncodedHash `json:"prev_key_hash"`
// signature
// Required: true
Signature EncodedHash `json:"signature"`
// state hash
// Required: true
StateHash EncodedHash `json:"state_hash"`
// time
// Required: true
Time *int64 `json:"time"`
// txs hash
// Required: true
TxsHash EncodedHash `json:"txs_hash"`
// version
// Required: true
Version *uint64 `json:"version"`
}
MicroBlockHeader micro block header swagger:model MicroBlockHeader
func (*MicroBlockHeader) MarshalBinary ¶
func (m *MicroBlockHeader) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MicroBlockHeader) UnmarshalBinary ¶
func (m *MicroBlockHeader) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NameClaimTx ¶
type NameClaimTx struct {
// account id
// Required: true
AccountID EncodedHash `json:"account_id"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// name
// Required: true
Name *string `json:"name"`
// name salt
// Required: true
NameSalt *uint64 `json:"name_salt"`
// nonce
Nonce uint64 `json:"nonce,omitempty"`
// ttl
TTL uint64 `json:"ttl,omitempty"`
}
NameClaimTx name claim tx swagger:model NameClaimTx
func (*NameClaimTx) MarshalBinary ¶
func (m *NameClaimTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NameClaimTx) UnmarshalBinary ¶
func (m *NameClaimTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NameClaimTxJSON ¶
type NameClaimTxJSON struct {
NameClaimTx
// contains filtered or unexported fields
}
NameClaimTxJSON name claim tx JSON swagger:model NameClaimTxJSON
func (*NameClaimTxJSON) MarshalBinary ¶
func (m *NameClaimTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (NameClaimTxJSON) MarshalJSON ¶
func (m NameClaimTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*NameClaimTxJSON) SetType ¶
func (m *NameClaimTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*NameClaimTxJSON) SetVersion ¶
func (m *NameClaimTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*NameClaimTxJSON) Type ¶
func (m *NameClaimTxJSON) Type() string
Type gets the type of this subtype
func (*NameClaimTxJSON) UnmarshalBinary ¶
func (m *NameClaimTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*NameClaimTxJSON) UnmarshalJSON ¶
func (m *NameClaimTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*NameClaimTxJSON) Validate ¶
func (m *NameClaimTxJSON) Validate(formats strfmt.Registry) error
Validate validates this name claim tx JSON
func (*NameClaimTxJSON) Version ¶
func (m *NameClaimTxJSON) Version() *uint64
Version gets the version of this subtype
type NameEntry ¶
type NameEntry struct {
// id
// Required: true
ID EncodedHash `json:"id"`
// pointers
// Required: true
Pointers []*NamePointer `json:"pointers"`
// ttl
// Required: true
TTL *uint64 `json:"ttl"`
}
NameEntry name entry swagger:model NameEntry
func (*NameEntry) MarshalBinary ¶
MarshalBinary interface implementation
func (*NameEntry) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type NameHash ¶
type NameHash struct {
// name id
// Required: true
NameID EncodedHash `json:"name_id"`
}
NameHash name hash swagger:model NameHash
func (*NameHash) MarshalBinary ¶
MarshalBinary interface implementation
func (*NameHash) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type NamePointer ¶
type NamePointer struct {
// id
// Required: true
ID EncodedHash `json:"id"`
// key
// Required: true
Key *string `json:"key"`
}
NamePointer name pointer swagger:model NamePointer
func (*NamePointer) MarshalBinary ¶
func (m *NamePointer) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NamePointer) UnmarshalBinary ¶
func (m *NamePointer) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NamePreclaimTx ¶
type NamePreclaimTx struct {
// account id
// Required: true
AccountID EncodedHash `json:"account_id"`
// commitment id
// Required: true
CommitmentID EncodedHash `json:"commitment_id"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// nonce
Nonce uint64 `json:"nonce,omitempty"`
// ttl
TTL uint64 `json:"ttl,omitempty"`
}
NamePreclaimTx name preclaim tx swagger:model NamePreclaimTx
func (*NamePreclaimTx) MarshalBinary ¶
func (m *NamePreclaimTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NamePreclaimTx) UnmarshalBinary ¶
func (m *NamePreclaimTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NamePreclaimTxJSON ¶
type NamePreclaimTxJSON struct {
NamePreclaimTx
// contains filtered or unexported fields
}
NamePreclaimTxJSON name preclaim tx JSON swagger:model NamePreclaimTxJSON
func (*NamePreclaimTxJSON) MarshalBinary ¶
func (m *NamePreclaimTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (NamePreclaimTxJSON) MarshalJSON ¶
func (m NamePreclaimTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*NamePreclaimTxJSON) SetType ¶
func (m *NamePreclaimTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*NamePreclaimTxJSON) SetVersion ¶
func (m *NamePreclaimTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*NamePreclaimTxJSON) Type ¶
func (m *NamePreclaimTxJSON) Type() string
Type gets the type of this subtype
func (*NamePreclaimTxJSON) UnmarshalBinary ¶
func (m *NamePreclaimTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*NamePreclaimTxJSON) UnmarshalJSON ¶
func (m *NamePreclaimTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*NamePreclaimTxJSON) Validate ¶
func (m *NamePreclaimTxJSON) Validate(formats strfmt.Registry) error
Validate validates this name preclaim tx JSON
func (*NamePreclaimTxJSON) Version ¶
func (m *NamePreclaimTxJSON) Version() *uint64
Version gets the version of this subtype
type NameRevokeTx ¶
type NameRevokeTx struct {
// account id
// Required: true
AccountID EncodedHash `json:"account_id"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// name id
// Required: true
NameID EncodedHash `json:"name_id"`
// nonce
Nonce uint64 `json:"nonce,omitempty"`
// ttl
TTL uint64 `json:"ttl,omitempty"`
}
NameRevokeTx name revoke tx swagger:model NameRevokeTx
func (*NameRevokeTx) MarshalBinary ¶
func (m *NameRevokeTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NameRevokeTx) UnmarshalBinary ¶
func (m *NameRevokeTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NameRevokeTxJSON ¶
type NameRevokeTxJSON struct {
NameRevokeTx
// contains filtered or unexported fields
}
NameRevokeTxJSON name revoke tx JSON swagger:model NameRevokeTxJSON
func (*NameRevokeTxJSON) MarshalBinary ¶
func (m *NameRevokeTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (NameRevokeTxJSON) MarshalJSON ¶
func (m NameRevokeTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*NameRevokeTxJSON) SetType ¶
func (m *NameRevokeTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*NameRevokeTxJSON) SetVersion ¶
func (m *NameRevokeTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*NameRevokeTxJSON) Type ¶
func (m *NameRevokeTxJSON) Type() string
Type gets the type of this subtype
func (*NameRevokeTxJSON) UnmarshalBinary ¶
func (m *NameRevokeTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*NameRevokeTxJSON) UnmarshalJSON ¶
func (m *NameRevokeTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*NameRevokeTxJSON) Validate ¶
func (m *NameRevokeTxJSON) Validate(formats strfmt.Registry) error
Validate validates this name revoke tx JSON
func (*NameRevokeTxJSON) Version ¶
func (m *NameRevokeTxJSON) Version() *uint64
Version gets the version of this subtype
type NameTransferTx ¶
type NameTransferTx struct {
// account id
// Required: true
AccountID EncodedHash `json:"account_id"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// name id
// Required: true
NameID EncodedHash `json:"name_id"`
// nonce
Nonce uint64 `json:"nonce,omitempty"`
// recipient id
// Required: true
RecipientID EncodedHash `json:"recipient_id"`
// ttl
TTL uint64 `json:"ttl,omitempty"`
}
NameTransferTx name transfer tx swagger:model NameTransferTx
func (*NameTransferTx) MarshalBinary ¶
func (m *NameTransferTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NameTransferTx) UnmarshalBinary ¶
func (m *NameTransferTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NameTransferTxJSON ¶
type NameTransferTxJSON struct {
NameTransferTx
// contains filtered or unexported fields
}
NameTransferTxJSON name transfer tx JSON swagger:model NameTransferTxJSON
func (*NameTransferTxJSON) MarshalBinary ¶
func (m *NameTransferTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (NameTransferTxJSON) MarshalJSON ¶
func (m NameTransferTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*NameTransferTxJSON) SetType ¶
func (m *NameTransferTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*NameTransferTxJSON) SetVersion ¶
func (m *NameTransferTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*NameTransferTxJSON) Type ¶
func (m *NameTransferTxJSON) Type() string
Type gets the type of this subtype
func (*NameTransferTxJSON) UnmarshalBinary ¶
func (m *NameTransferTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*NameTransferTxJSON) UnmarshalJSON ¶
func (m *NameTransferTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*NameTransferTxJSON) Validate ¶
func (m *NameTransferTxJSON) Validate(formats strfmt.Registry) error
Validate validates this name transfer tx JSON
func (*NameTransferTxJSON) Version ¶
func (m *NameTransferTxJSON) Version() *uint64
Version gets the version of this subtype
type NameUpdateTx ¶
type NameUpdateTx struct {
// account id
// Required: true
AccountID EncodedHash `json:"account_id"`
// client ttl
// Required: true
ClientTTL *uint64 `json:"client_ttl"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// name id
// Required: true
NameID EncodedHash `json:"name_id"`
// name ttl
// Required: true
NameTTL *uint64 `json:"name_ttl"`
// nonce
Nonce uint64 `json:"nonce,omitempty"`
// pointers
// Required: true
Pointers []*NamePointer `json:"pointers"`
// ttl
TTL uint64 `json:"ttl,omitempty"`
}
NameUpdateTx name update tx swagger:model NameUpdateTx
func (*NameUpdateTx) MarshalBinary ¶
func (m *NameUpdateTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NameUpdateTx) UnmarshalBinary ¶
func (m *NameUpdateTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NameUpdateTxJSON ¶
type NameUpdateTxJSON struct {
NameUpdateTx
// contains filtered or unexported fields
}
NameUpdateTxJSON name update tx JSON swagger:model NameUpdateTxJSON
func (*NameUpdateTxJSON) MarshalBinary ¶
func (m *NameUpdateTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (NameUpdateTxJSON) MarshalJSON ¶
func (m NameUpdateTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*NameUpdateTxJSON) SetType ¶
func (m *NameUpdateTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*NameUpdateTxJSON) SetVersion ¶
func (m *NameUpdateTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*NameUpdateTxJSON) Type ¶
func (m *NameUpdateTxJSON) Type() string
Type gets the type of this subtype
func (*NameUpdateTxJSON) UnmarshalBinary ¶
func (m *NameUpdateTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*NameUpdateTxJSON) UnmarshalJSON ¶
func (m *NameUpdateTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*NameUpdateTxJSON) Validate ¶
func (m *NameUpdateTxJSON) Validate(formats strfmt.Registry) error
Validate validates this name update tx JSON
func (*NameUpdateTxJSON) Version ¶
func (m *NameUpdateTxJSON) Version() *uint64
Version gets the version of this subtype
type OffChainCallContract ¶
type OffChainCallContract struct {
// ABI version for the call/calldata
// Maximum: 65535
// Minimum: 0
AbiVersion *int64 `json:"abi_version,omitempty"`
// Amount of tokens to transfer to the contract
// Required: true
Amount *uint64 `json:"amount"`
// Contract call data
// Required: true
CallData EncodedByteArray `json:"call_data"`
// Contract caller
// Required: true
Caller EncodedHash `json:"caller"`
// Contract address
// Required: true
Contract EncodedHash `json:"contract"`
// Gas limit for the contract call
// Required: true
Gas *uint64 `json:"gas"`
// Gas price for the contract call
// Required: true
GasPrice *uint64 `json:"gas_price"`
// ABI version for the call/calldata
// Maximum: 65535
// Minimum: 0
VMVersion *int64 `json:"vm_version,omitempty"`
}
OffChainCallContract off chain call contract swagger:model OffChainCallContract
func (*OffChainCallContract) MarshalBinary ¶
func (m *OffChainCallContract) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (OffChainCallContract) MarshalJSON ¶
func (m OffChainCallContract) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*OffChainCallContract) Op ¶
func (m *OffChainCallContract) Op() string
Op gets the op of this subtype
func (*OffChainCallContract) SetOp ¶
func (m *OffChainCallContract) SetOp(val string)
SetOp sets the op of this subtype
func (*OffChainCallContract) UnmarshalBinary ¶
func (m *OffChainCallContract) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*OffChainCallContract) UnmarshalJSON ¶
func (m *OffChainCallContract) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type OffChainDeposit ¶
type OffChainDeposit struct {
// Amount of tokens to deposit
// Required: true
Am *uint64 `json:"am"`
// Depositor of tokens
// Required: true
From EncodedHash `json:"from"`
}
OffChainDeposit off chain deposit swagger:model OffChainDeposit
func (*OffChainDeposit) MarshalBinary ¶
func (m *OffChainDeposit) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (OffChainDeposit) MarshalJSON ¶
func (m OffChainDeposit) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*OffChainDeposit) 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
type OffChainNewContract ¶
type OffChainNewContract struct {
// ABI version of the contract
// Maximum: 65535
// Minimum: 0
AbiVersion *int64 `json:"abi_version,omitempty"`
// Contract call data
// Required: true
CallData EncodedByteArray `json:"call_data"`
// code
// Required: true
Code *ByteCode `json:"code"`
// Amount of tokens to deposit to the new contract
// Required: true
Deposit *uint64 `json:"deposit"`
// Contract owner
// Required: true
Owner EncodedHash `json:"owner"`
// VM version of the contract
// Required: true
// Maximum: 65535
// Minimum: 0
VMVersion *int64 `json:"vm_version"`
}
OffChainNewContract off chain new contract swagger:model OffChainNewContract
func (*OffChainNewContract) MarshalBinary ¶
func (m *OffChainNewContract) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (OffChainNewContract) MarshalJSON ¶
func (m OffChainNewContract) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*OffChainNewContract) Op ¶
func (m *OffChainNewContract) Op() string
Op gets the op of this subtype
func (*OffChainNewContract) SetOp ¶
func (m *OffChainNewContract) SetOp(val string)
SetOp sets the op of this subtype
func (*OffChainNewContract) UnmarshalBinary ¶
func (m *OffChainNewContract) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*OffChainNewContract) UnmarshalJSON ¶
func (m *OffChainNewContract) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type OffChainTransfer ¶
type OffChainTransfer struct {
// Amount of tokens to transfer
// Required: true
Am *uint64 `json:"am"`
// Sender of tokens
// Required: true
From EncodedHash `json:"from"`
// Receiver of tokens
// Required: true
To EncodedHash `json:"to"`
}
OffChainTransfer off chain transfer swagger:model OffChainTransfer
func (*OffChainTransfer) MarshalBinary ¶
func (m *OffChainTransfer) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (OffChainTransfer) MarshalJSON ¶
func (m OffChainTransfer) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*OffChainTransfer) 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
type OffChainUpdate ¶
type OffChainUpdate interface {
runtime.Validatable
// op
// Required: true
Op() string
SetOp(string)
}
OffChainUpdate off chain update swagger:discriminator OffChainUpdate op
func UnmarshalOffChainUpdate ¶
UnmarshalOffChainUpdate unmarshals polymorphic OffChainUpdate
func UnmarshalOffChainUpdateSlice ¶
func UnmarshalOffChainUpdateSlice(reader io.Reader, consumer runtime.Consumer) ([]OffChainUpdate, error)
UnmarshalOffChainUpdateSlice unmarshals polymorphic slices of OffChainUpdate
type OffChainWithdrawal ¶
type OffChainWithdrawal struct {
// Amount of tokens to withdraw
// Required: true
Am *uint64 `json:"am"`
// Withdrawer of tokens
// Required: true
To EncodedHash `json:"to"`
}
OffChainWithdrawal off chain withdrawal swagger:model OffChainWithdrawal
func (*OffChainWithdrawal) MarshalBinary ¶
func (m *OffChainWithdrawal) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (OffChainWithdrawal) MarshalJSON ¶
func (m OffChainWithdrawal) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*OffChainWithdrawal) Op ¶
func (m *OffChainWithdrawal) Op() string
Op gets the op of this subtype
func (*OffChainWithdrawal) SetOp ¶
func (m *OffChainWithdrawal) SetOp(val string)
SetOp sets the op of this subtype
func (*OffChainWithdrawal) UnmarshalBinary ¶
func (m *OffChainWithdrawal) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*OffChainWithdrawal) UnmarshalJSON ¶
func (m *OffChainWithdrawal) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type OracleExtendTx ¶
type OracleExtendTx struct {
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// nonce
Nonce uint64 `json:"nonce,omitempty"`
// oracle id
// Required: true
OracleID EncodedHash `json:"oracle_id"`
// oracle ttl
// Required: true
OracleTTL *RelativeTTL `json:"oracle_ttl"`
// ttl
TTL uint64 `json:"ttl,omitempty"`
}
OracleExtendTx oracle extend tx swagger:model OracleExtendTx
func (*OracleExtendTx) MarshalBinary ¶
func (m *OracleExtendTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OracleExtendTx) UnmarshalBinary ¶
func (m *OracleExtendTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OracleExtendTxJSON ¶
type OracleExtendTxJSON struct {
OracleExtendTx
// contains filtered or unexported fields
}
OracleExtendTxJSON oracle extend tx JSON swagger:model OracleExtendTxJSON
func (*OracleExtendTxJSON) MarshalBinary ¶
func (m *OracleExtendTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (OracleExtendTxJSON) MarshalJSON ¶
func (m OracleExtendTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*OracleExtendTxJSON) SetType ¶
func (m *OracleExtendTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*OracleExtendTxJSON) SetVersion ¶
func (m *OracleExtendTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*OracleExtendTxJSON) Type ¶
func (m *OracleExtendTxJSON) Type() string
Type gets the type of this subtype
func (*OracleExtendTxJSON) UnmarshalBinary ¶
func (m *OracleExtendTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*OracleExtendTxJSON) UnmarshalJSON ¶
func (m *OracleExtendTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*OracleExtendTxJSON) Validate ¶
func (m *OracleExtendTxJSON) Validate(formats strfmt.Registry) error
Validate validates this oracle extend tx JSON
func (*OracleExtendTxJSON) Version ¶
func (m *OracleExtendTxJSON) Version() *uint64
Version gets the version of this subtype
type OracleQueries ¶
type OracleQueries struct {
// oracle queries
// Required: true
OracleQueries []*OracleQuery `json:"oracle_queries"`
}
OracleQueries oracle queries swagger:model OracleQueries
func (*OracleQueries) MarshalBinary ¶
func (m *OracleQueries) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OracleQueries) UnmarshalBinary ¶
func (m *OracleQueries) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OracleQuery ¶
type OracleQuery struct {
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// id
// Required: true
ID EncodedHash `json:"id"`
// oracle id
// Required: true
OracleID EncodedHash `json:"oracle_id"`
// query
// Required: true
Query *string `json:"query"`
// response
// Required: true
Response *string `json:"response"`
// response ttl
// Required: true
ResponseTTL *TTL `json:"response_ttl"`
// sender id
// Required: true
SenderID EncodedHash `json:"sender_id"`
// sender nonce
// Required: true
// Minimum: 0
SenderNonce *uint64 `json:"sender_nonce"`
// ttl
// Required: true
TTL *uint64 `json:"ttl"`
}
OracleQuery oracle query swagger:model OracleQuery
func (*OracleQuery) MarshalBinary ¶
func (m *OracleQuery) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OracleQuery) UnmarshalBinary ¶
func (m *OracleQuery) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OracleQueryTx ¶
type OracleQueryTx struct {
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// Sender nonce
Nonce uint64 `json:"nonce,omitempty"`
// oracle id
// Required: true
OracleID EncodedHash `json:"oracle_id"`
// query
// Required: true
Query *string `json:"query"`
// query fee
// Required: true
QueryFee utils.BigInt `json:"query_fee"`
// query ttl
// Required: true
QueryTTL *TTL `json:"query_ttl"`
// response ttl
// Required: true
ResponseTTL *RelativeTTL `json:"response_ttl"`
// sender id
// Required: true
SenderID EncodedHash `json:"sender_id"`
// ttl
TTL uint64 `json:"ttl,omitempty"`
}
OracleQueryTx oracle query tx swagger:model OracleQueryTx
func (*OracleQueryTx) MarshalBinary ¶
func (m *OracleQueryTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OracleQueryTx) UnmarshalBinary ¶
func (m *OracleQueryTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OracleQueryTxJSON ¶
type OracleQueryTxJSON struct {
OracleQueryTx
// contains filtered or unexported fields
}
OracleQueryTxJSON oracle query tx JSON swagger:model OracleQueryTxJSON
func (*OracleQueryTxJSON) MarshalBinary ¶
func (m *OracleQueryTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (OracleQueryTxJSON) MarshalJSON ¶
func (m OracleQueryTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*OracleQueryTxJSON) SetType ¶
func (m *OracleQueryTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*OracleQueryTxJSON) SetVersion ¶
func (m *OracleQueryTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*OracleQueryTxJSON) Type ¶
func (m *OracleQueryTxJSON) Type() string
Type gets the type of this subtype
func (*OracleQueryTxJSON) UnmarshalBinary ¶
func (m *OracleQueryTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*OracleQueryTxJSON) UnmarshalJSON ¶
func (m *OracleQueryTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*OracleQueryTxJSON) Validate ¶
func (m *OracleQueryTxJSON) Validate(formats strfmt.Registry) error
Validate validates this oracle query tx JSON
func (*OracleQueryTxJSON) Version ¶
func (m *OracleQueryTxJSON) Version() *uint64
Version gets the version of this subtype
type OracleRegisterTx ¶
type OracleRegisterTx struct {
// abi version
// Maximum: 65535
// Minimum: 0
AbiVersion *int64 `json:"abi_version,omitempty"`
// account id
// Required: true
AccountID EncodedHash `json:"account_id"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// nonce
Nonce uint64 `json:"nonce,omitempty"`
// oracle ttl
// Required: true
OracleTTL *TTL `json:"oracle_ttl"`
// query fee
// Required: true
QueryFee utils.BigInt `json:"query_fee"`
// query format
// Required: true
QueryFormat *string `json:"query_format"`
// response format
// Required: true
ResponseFormat *string `json:"response_format"`
// ttl
TTL uint64 `json:"ttl,omitempty"`
// vm version
// Maximum: 65535
// Minimum: 0
VMVersion *int64 `json:"vm_version,omitempty"`
}
OracleRegisterTx oracle register tx swagger:model OracleRegisterTx
func (*OracleRegisterTx) MarshalBinary ¶
func (m *OracleRegisterTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OracleRegisterTx) UnmarshalBinary ¶
func (m *OracleRegisterTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OracleRegisterTxJSON ¶
type OracleRegisterTxJSON struct {
OracleRegisterTx
// contains filtered or unexported fields
}
OracleRegisterTxJSON oracle register tx JSON swagger:model OracleRegisterTxJSON
func (*OracleRegisterTxJSON) MarshalBinary ¶
func (m *OracleRegisterTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (OracleRegisterTxJSON) MarshalJSON ¶
func (m OracleRegisterTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*OracleRegisterTxJSON) SetType ¶
func (m *OracleRegisterTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*OracleRegisterTxJSON) SetVersion ¶
func (m *OracleRegisterTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*OracleRegisterTxJSON) Type ¶
func (m *OracleRegisterTxJSON) Type() string
Type gets the type of this subtype
func (*OracleRegisterTxJSON) UnmarshalBinary ¶
func (m *OracleRegisterTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*OracleRegisterTxJSON) UnmarshalJSON ¶
func (m *OracleRegisterTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*OracleRegisterTxJSON) Validate ¶
func (m *OracleRegisterTxJSON) Validate(formats strfmt.Registry) error
Validate validates this oracle register tx JSON
func (*OracleRegisterTxJSON) Version ¶
func (m *OracleRegisterTxJSON) Version() *uint64
Version gets the version of this subtype
type OracleRespondTx ¶
type OracleRespondTx struct {
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// Oracle nonce
Nonce uint64 `json:"nonce,omitempty"`
// oracle id
// Required: true
OracleID EncodedHash `json:"oracle_id"`
// query id
// Required: true
QueryID EncodedHash `json:"query_id"`
// response
// Required: true
Response *string `json:"response"`
// response ttl
// Required: true
ResponseTTL *RelativeTTL `json:"response_ttl"`
// ttl
TTL uint64 `json:"ttl,omitempty"`
}
OracleRespondTx oracle respond tx swagger:model OracleRespondTx
func (*OracleRespondTx) MarshalBinary ¶
func (m *OracleRespondTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OracleRespondTx) UnmarshalBinary ¶
func (m *OracleRespondTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OracleResponseTxJSON ¶
type OracleResponseTxJSON struct {
OracleRespondTx
// contains filtered or unexported fields
}
OracleResponseTxJSON oracle response tx JSON swagger:model OracleResponseTxJSON
func (*OracleResponseTxJSON) MarshalBinary ¶
func (m *OracleResponseTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (OracleResponseTxJSON) MarshalJSON ¶
func (m OracleResponseTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*OracleResponseTxJSON) SetType ¶
func (m *OracleResponseTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*OracleResponseTxJSON) SetVersion ¶
func (m *OracleResponseTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*OracleResponseTxJSON) Type ¶
func (m *OracleResponseTxJSON) Type() string
Type gets the type of this subtype
func (*OracleResponseTxJSON) UnmarshalBinary ¶
func (m *OracleResponseTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*OracleResponseTxJSON) UnmarshalJSON ¶
func (m *OracleResponseTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*OracleResponseTxJSON) Validate ¶
func (m *OracleResponseTxJSON) Validate(formats strfmt.Registry) error
Validate validates this oracle response tx JSON
func (*OracleResponseTxJSON) Version ¶
func (m *OracleResponseTxJSON) Version() *uint64
Version gets the version of this subtype
type 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 ¶
MarshalBinary interface implementation
func (*Peers) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PoI ¶
type PoI struct {
// Proof of inclusion
// Required: true
Poi *string `json:"poi"`
}
PoI po i swagger:model PoI
func (*PoI) MarshalBinary ¶
MarshalBinary interface implementation
func (*PoI) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PostTxResponse ¶
type PostTxResponse struct {
// Hash of a signed transaction
// Required: true
TxHash EncodedHash `json:"tx_hash"`
}
PostTxResponse post tx response swagger:model PostTxResponse
func (*PostTxResponse) MarshalBinary ¶
func (m *PostTxResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostTxResponse) UnmarshalBinary ¶
func (m *PostTxResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Protocol ¶
type Protocol struct {
// effective at height
// Required: true
// Minimum: 0
EffectiveAtHeight *uint64 `json:"effective_at_height"`
// version
// Required: true
// Minimum: 1
Version *uint64 `json:"version"`
}
Protocol protocol swagger:model Protocol
func (*Protocol) MarshalBinary ¶
MarshalBinary interface implementation
func (*Protocol) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PubKey ¶
type PubKey struct {
// pub key
// Required: true
PubKey *string `json:"pub_key"`
}
PubKey pub key swagger:model PubKey
func (*PubKey) MarshalBinary ¶
MarshalBinary interface implementation
func (*PubKey) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type RegisteredOracle ¶
type RegisteredOracle struct {
// abi version
// Maximum: 65535
// Minimum: 0
AbiVersion *int64 `json:"abi_version,omitempty"`
// id
// Required: true
ID EncodedHash `json:"id"`
// query fee
// Required: true
QueryFee utils.BigInt `json:"query_fee"`
// query format
// Required: true
QueryFormat *string `json:"query_format"`
// response format
// Required: true
ResponseFormat *string `json:"response_format"`
// ttl
// Required: true
TTL *uint64 `json:"ttl"`
// vm version
// Maximum: 65535
// Minimum: 0
VMVersion *int64 `json:"vm_version,omitempty"`
}
RegisteredOracle registered oracle swagger:model RegisteredOracle
func (*RegisteredOracle) MarshalBinary ¶
func (m *RegisteredOracle) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RegisteredOracle) UnmarshalBinary ¶
func (m *RegisteredOracle) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RelativeTTL ¶
type RelativeTTL struct {
// type
// Required: true
// Enum: [delta]
Type *string `json:"type"`
// value
// Required: true
// Minimum: 1
Value *uint64 `json:"value"`
}
RelativeTTL relative TTL swagger:model RelativeTTL
func (*RelativeTTL) MarshalBinary ¶
func (m *RelativeTTL) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RelativeTTL) UnmarshalBinary ¶
func (m *RelativeTTL) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SophiaBinaryData ¶
type SophiaBinaryData struct {
// data
// Required: true
Data *string `json:"data"`
// sophia type
// Required: true
SophiaType *string `json:"sophia-type"`
}
SophiaBinaryData sophia binary data swagger:model SophiaBinaryData
func (*SophiaBinaryData) MarshalBinary ¶
func (m *SophiaBinaryData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SophiaBinaryData) UnmarshalBinary ¶
func (m *SophiaBinaryData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SophiaJSONData ¶
type SophiaJSONData struct {
// data
// Required: true
Data interface{} `json:"data"`
}
SophiaJSONData sophia Json data swagger:model SophiaJsonData
func (*SophiaJSONData) MarshalBinary ¶
func (m *SophiaJSONData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SophiaJSONData) UnmarshalBinary ¶
func (m *SophiaJSONData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SpendTx ¶
type SpendTx struct {
// amount
// Required: true
Amount utils.BigInt `json:"amount"`
// fee
// Required: true
Fee utils.BigInt `json:"fee"`
// nonce
Nonce uint64 `json:"nonce,omitempty"`
// payload
// Required: true
Payload *string `json:"payload"`
// recipient id
// Required: true
RecipientID EncodedHash `json:"recipient_id"`
// sender id
// Required: true
SenderID EncodedHash `json:"sender_id"`
// ttl
TTL uint64 `json:"ttl,omitempty"`
}
SpendTx spend tx swagger:model SpendTx
func (*SpendTx) MarshalBinary ¶
MarshalBinary interface implementation
func (*SpendTx) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SpendTxJSON ¶
type SpendTxJSON struct {
SpendTx
// contains filtered or unexported fields
}
SpendTxJSON spend tx JSON swagger:model SpendTxJSON
func (*SpendTxJSON) MarshalBinary ¶
func (m *SpendTxJSON) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (SpendTxJSON) MarshalJSON ¶
func (m SpendTxJSON) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*SpendTxJSON) SetType ¶
func (m *SpendTxJSON) SetType(val string)
SetType sets the type of this subtype
func (*SpendTxJSON) SetVersion ¶
func (m *SpendTxJSON) SetVersion(val *uint64)
SetVersion sets the version of this subtype
func (*SpendTxJSON) UnmarshalBinary ¶
func (m *SpendTxJSON) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*SpendTxJSON) UnmarshalJSON ¶
func (m *SpendTxJSON) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
func (*SpendTxJSON) Validate ¶
func (m *SpendTxJSON) Validate(formats strfmt.Registry) error
Validate validates this spend tx JSON
func (*SpendTxJSON) Version ¶
func (m *SpendTxJSON) Version() *uint64
Version gets the version of this subtype
type Status ¶
type Status struct {
// difficulty
// Required: true
Difficulty *uint64 `json:"difficulty"`
// genesis key block hash
// Required: true
GenesisKeyBlockHash EncodedHash `json:"genesis_key_block_hash"`
// listening
// Required: true
Listening *bool `json:"listening"`
// network id
// Required: true
NetworkID *string `json:"network_id"`
// node revision
// Required: true
NodeRevision *string `json:"node_revision"`
// node version
// Required: true
NodeVersion *string `json:"node_version"`
// peer count
// Required: true
// Minimum: 0
PeerCount *uint64 `json:"peer_count"`
// pending transactions count
// Required: true
// Minimum: 0
PendingTransactionsCount *uint64 `json:"pending_transactions_count"`
// protocols
// Required: true
Protocols []*Protocol `json:"protocols"`
// solutions
// Required: true
// Minimum: 0
Solutions *uint64 `json:"solutions"`
// syncing
// Required: true
Syncing *bool `json:"syncing"`
}
Status status swagger:model Status
func (*Status) MarshalBinary ¶
MarshalBinary interface implementation
func (*Status) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type TTL ¶
type TTL struct {
// type
// Required: true
// Enum: [delta block]
Type *string `json:"type"`
// value
// Required: true
// Minimum: 1
Value *uint64 `json:"value"`
}
TTL TTL swagger:model TTL
func (*TTL) MarshalBinary ¶
MarshalBinary interface implementation
func (*TTL) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type TokenSupply ¶
type TokenSupply struct {
// Tokens in account balances
Accounts int64 `json:"accounts,omitempty"`
// Tokens in contracts registered as oracles
ContractOracles int64 `json:"contract_oracles,omitempty"`
// Tokens in contracts
Contracts int64 `json:"contracts,omitempty"`
// Tokens locked (not owned by anyone)
Locked int64 `json:"locked,omitempty"`
// Tokens in pending oracle queries
OracleQueries int64 `json:"oracle_queries,omitempty"`
// Tokens in accounts registered as oracles
Oracles int64 `json:"oracles,omitempty"`
// Tokens from fees and coinbase pending in the beneficiary reward delay
PendingRewards int64 `json:"pending_rewards,omitempty"`
// Sum of all tokens from other fields
Total int64 `json:"total,omitempty"`
}
TokenSupply token supply swagger:model TokenSupply
func (*TokenSupply) MarshalBinary ¶
func (m *TokenSupply) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TokenSupply) UnmarshalBinary ¶
func (m *TokenSupply) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Tx ¶
type Tx struct {
// tx
// Required: true
Tx *string `json:"tx"`
}
Tx tx swagger:model Tx
func (*Tx) MarshalBinary ¶
MarshalBinary interface implementation
func (*Tx) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UnsignedTx ¶
type UnsignedTx struct {
// Unsigned transaction object
// Required: true
Tx EncodedHash `json:"tx"`
}
UnsignedTx unsigned tx swagger:model UnsignedTx
func (*UnsignedTx) MarshalBinary ¶
func (m *UnsignedTx) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UnsignedTx) UnmarshalBinary ¶
func (m *UnsignedTx) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files
¶
- account.go
- byte_code.go
- call_result.go
- calldata.go
- channel.go
- channel_close_mutual_tx.go
- channel_close_mutual_tx_json.go
- channel_close_solo_tx.go
- channel_close_solo_tx_json.go
- channel_create_tx.go
- channel_create_tx_json.go
- channel_deposit_tx.go
- channel_deposit_tx_json.go
- channel_force_progress_tx.go
- channel_force_progress_tx_json.go
- channel_settle_tx.go
- channel_settle_tx_json.go
- channel_sla_s_h_tx.go
- channel_sla_s_h_tx_json.go
- channel_snapshot_solo_tx.go
- channel_snapshot_solo_tx_json.go
- channel_withdraw_tx.go
- channel_withdrawal_tx_json.go
- commitment_id.go
- contract.go
- contract_call_compute.go
- contract_call_input.go
- contract_call_object.go
- contract_call_tx.go
- contract_call_tx_json.go
- contract_create_compute.go
- contract_create_tx.go
- contract_create_tx_json.go
- contract_object.go
- contract_store.go
- contract_store_store.go
- create_contract_unsigned_tx.go
- dry_run_account.go
- dry_run_input.go
- dry_run_result.go
- dry_run_results.go
- encoded_byte_array.go
- encoded_hash.go
- error.go
- generation.go
- generic_signed_tx.go
- generic_tx.go
- generic_txs.go
- inline_response200.go
- inline_response2001.go
- inline_response2002.go
- inline_response2003.go
- key_block.go
- key_block_or_micro_block_header.go
- micro_block_header.go
- name_claim_tx.go
- name_claim_tx_json.go
- name_entry.go
- name_hash.go
- name_pointer.go
- name_preclaim_tx.go
- name_preclaim_tx_json.go
- name_revoke_tx.go
- name_revoke_tx_json.go
- name_transfer_tx.go
- name_transfer_tx_json.go
- name_update_tx.go
- name_update_tx_json.go
- off_chain_call_contract.go
- off_chain_deposit.go
- off_chain_new_contract.go
- off_chain_transfer.go
- off_chain_update.go
- off_chain_withdrawal.go
- oracle_extend_tx.go
- oracle_extend_tx_json.go
- oracle_queries.go
- oracle_query.go
- oracle_query_tx.go
- oracle_query_tx_json.go
- oracle_register_tx.go
- oracle_register_tx_json.go
- oracle_respond_tx.go
- oracle_response_tx_json.go
- peer.go
- peers.go
- po_i.go
- post_tx_response.go
- pow.go
- protocol.go
- pub_key.go
- registered_oracle.go
- relative_ttl.go
- sophia_binary_data.go
- sophia_json_data.go
- spend_tx.go
- spend_tx_json.go
- status.go
- token_supply.go
- ttl.go
- tx.go
- unsigned_tx.go
- uri.go