models

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStructToEvent

func ConvertStructToEvent(data interface{}) (api.Event, error)

ConvertStructToEvent returns api.Event

Example
package main

import (
	"github.com/MinterTeam/minter-go-sdk/v2/api"
	"github.com/MinterTeam/minter-go-sdk/v2/api/http_client/models"
)

func mark(address, publicKey string)  {}
func doSomething(*api.StakeKickEvent) {}

func main() {
	data := map[string]interface{}{
		"type": api.TypeStakeKickEvent,
		"value": map[string]interface{}{
			"address":           "Mx",
			"amount":            "1000000000000",
			"coin":              "1",
			"validator_pub_key": "Mp",
		},
	}
	event, _ := models.ConvertStructToEvent(data)
	stakeEvent := event.(api.StakeEvent)
	mark(stakeEvent.GetAddress(), stakeEvent.GetPublicKey())
	doSomething(event.(*api.StakeKickEvent))
}
Output:

Types

type AccountBalance

type AccountBalance struct {

	// coin
	Coin uint64 `json:"coin,omitempty,string"`

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

AccountBalance account balance

swagger:model AccountBalance

func (*AccountBalance) ContextValidate added in v2.4.0

func (m *AccountBalance) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this account balance based on context it is used

func (*AccountBalance) MarshalBinary

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

MarshalBinary interface implementation

func (*AccountBalance) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AccountBalance) Validate

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

Validate validates this account balance

type AccountMultisigData

type AccountMultisigData struct {

	// addresses
	Addresses []string `json:"addresses"`

	// threshold
	Threshold uint64 `json:"threshold,omitempty,string"`

	// weights
	Weights []uint64 `json:"weights"`
}

AccountMultisigData account multisig data

swagger:model AccountMultisigData

func (*AccountMultisigData) ContextValidate added in v2.4.0

func (m *AccountMultisigData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this account multisig data based on context it is used

func (*AccountMultisigData) MarshalBinary

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

MarshalBinary interface implementation

func (*AccountMultisigData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AccountMultisigData) Validate

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

Validate validates this account multisig data

type AddLimitOrderData added in v2.4.0

type AddLimitOrderData struct {
	CoinToSell  *Coin  `json:"coin_to_sell"`
	ValueToSell string `json:"value_to_sell"`
	CoinToBuy   *Coin  `json:"coin_to_buy"`
	ValueToBuy  string `json:"value_to_buy"`
}

type AddLiquidityData added in v2.2.0

type AddLiquidityData struct {
	Coin0          *Coin  `json:"coin0"`
	Coin1          *Coin  `json:"coin1"`
	Volume0        string `json:"volume0"`
	MaximumVolume1 string `json:"maximum_volume1"`
}

type AddressBalance

type AddressBalance struct {

	// bip value
	BipValue string `json:"bip_value,omitempty"`

	// coin
	Coin *Coin `json:"coin,omitempty"`

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

AddressBalance address balance

swagger:model AddressBalance

func (*AddressBalance) ContextValidate added in v2.4.0

func (m *AddressBalance) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this address balance based on the context it is used

func (*AddressBalance) MarshalBinary

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

MarshalBinary interface implementation

func (*AddressBalance) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddressBalance) Validate

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

Validate validates this address balance

type AddressDelegatedBalance

type AddressDelegatedBalance struct {

	// bip value
	BipValue string `json:"bip_value,omitempty"`

	// coin
	Coin *Coin `json:"coin,omitempty"`

	// delegate bip value
	DelegateBipValue string `json:"delegate_bip_value,omitempty"`

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

AddressDelegatedBalance address delegated balance

swagger:model AddressDelegatedBalance

func (*AddressDelegatedBalance) ContextValidate added in v2.4.0

func (m *AddressDelegatedBalance) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this address delegated balance based on the context it is used

func (*AddressDelegatedBalance) MarshalBinary

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

MarshalBinary interface implementation

func (*AddressDelegatedBalance) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddressDelegatedBalance) Validate

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

Validate validates this address delegated balance

type AddressResponse

type AddressResponse struct {

	// balance
	Balance []*AddressBalance `json:"balance"`

	// bip value
	BipValue string `json:"bip_value,omitempty"`

	// delegated
	Delegated []*AddressDelegatedBalance `json:"delegated"`

	// locked stake until block
	LockedStakeUntilBlock uint64 `json:"locked_stake_until_block,omitempty,string"`

	// multisig
	Multisig *Multisig `json:"multisig,omitempty"`

	// total
	Total []*AddressBalance `json:"total"`

	// transaction count
	TransactionCount uint64 `json:"transaction_count,omitempty,string"`
}

AddressResponse address response

swagger:model AddressResponse

func (*AddressResponse) ContextValidate added in v2.4.0

func (m *AddressResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this address response based on the context it is used

func (*AddressResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*AddressResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddressResponse) Validate

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

Validate validates this address response

type AddressesResponse

type AddressesResponse struct {

	// addresses
	Addresses map[string]AddressesResponseResult `json:"addresses,omitempty"`
}

AddressesResponse addresses response

swagger:model AddressesResponse

func (*AddressesResponse) ContextValidate added in v2.4.0

func (m *AddressesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this addresses response based on the context it is used

func (*AddressesResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*AddressesResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddressesResponse) Validate

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

Validate validates this addresses response

type AddressesResponseResult

type AddressesResponseResult struct {

	// balance
	Balance []*AddressBalance `json:"balance"`

	// bip value
	BipValue string `json:"bip_value,omitempty"`

	// Filled in when request delegated
	Delegated []*AddressDelegatedBalance `json:"delegated"`

	// locked stake until block
	LockedStakeUntilBlock uint64 `json:"locked_stake_until_block,omitempty,string"`

	// multisig
	Multisig *Multisig `json:"multisig,omitempty"`

	// Sum of balance and delegated by coins. Filled in when request delegated
	Total []*AddressBalance `json:"total"`

	// transaction count
	TransactionCount uint64 `json:"transaction_count,omitempty,string"`
}

AddressesResponseResult addresses response result

swagger:model AddressesResponseResult

func (*AddressesResponseResult) ContextValidate added in v2.4.0

func (m *AddressesResponseResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this addresses response result based on the context it is used

func (*AddressesResponseResult) MarshalBinary

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

MarshalBinary interface implementation

func (*AddressesResponseResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AddressesResponseResult) Validate

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

Validate validates this addresses response result

type AppStateAccount

type AppStateAccount struct {

	// address
	Address string `json:"address,omitempty"`

	// balance
	Balance []*AccountBalance `json:"balance"`

	// lock stake until block
	LockStakeUntilBlock uint64 `json:"lock_stake_until_block,omitempty,string"`

	// multisig data
	MultisigData *AccountMultisigData `json:"multisig_data,omitempty"`

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

AppStateAccount app state account

swagger:model AppStateAccount

func (*AppStateAccount) ContextValidate added in v2.4.0

func (m *AppStateAccount) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app state account based on the context it is used

func (*AppStateAccount) MarshalBinary

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

MarshalBinary interface implementation

func (*AppStateAccount) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AppStateAccount) Validate

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

Validate validates this app state account

type AppStateCandidate

type AppStateCandidate struct {

	// commission
	Commission uint64 `json:"commission,omitempty,string"`

	// control address
	ControlAddress string `json:"control_address,omitempty"`

	// id
	ID uint64 `json:"id,omitempty,string"`

	// jailed until
	JailedUntil int64 `json:"jailed_until,omitempty,string"`

	// last edit commission height
	LastEditCommissionHeight int64 `json:"last_edit_commission_height,omitempty,string"`

	// owner address
	OwnerAddress string `json:"owner_address,omitempty"`

	// public key
	PublicKey string `json:"public_key,omitempty"`

	// reward address
	RewardAddress string `json:"reward_address,omitempty"`

	// stakes
	Stakes []*AppStateCandidateStake `json:"stakes"`

	// status
	Status int64 `json:"status,omitempty,string"`

	// total bip stake
	TotalBipStake string `json:"total_bip_stake,omitempty"`

	// updates
	Updates []*AppStateCandidateStake `json:"updates"`
}

AppStateCandidate app state candidate

swagger:model AppStateCandidate

func (*AppStateCandidate) ContextValidate added in v2.4.0

func (m *AppStateCandidate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app state candidate based on the context it is used

func (*AppStateCandidate) MarshalBinary

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

MarshalBinary interface implementation

func (*AppStateCandidate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AppStateCandidate) Validate

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

Validate validates this app state candidate

type AppStateCandidateStake

type AppStateCandidateStake struct {

	// bip value
	BipValue string `json:"bip_value,omitempty"`

	// coin
	Coin uint64 `json:"coin,omitempty,string"`

	// owner
	Owner string `json:"owner,omitempty"`

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

AppStateCandidateStake app state candidate stake

swagger:model AppStateCandidateStake

func (*AppStateCandidateStake) ContextValidate added in v2.4.0

func (m *AppStateCandidateStake) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this app state candidate stake based on context it is used

func (*AppStateCandidateStake) MarshalBinary

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

MarshalBinary interface implementation

func (*AppStateCandidateStake) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AppStateCandidateStake) Validate

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

Validate validates this app state candidate stake

type AppStateCommission added in v2.2.0

type AppStateCommission struct {

	// add limit order
	AddLimitOrder string `json:"add_limit_order,omitempty"`

	// add liquidity
	AddLiquidity string `json:"add_liquidity,omitempty"`

	// burn token
	BurnToken string `json:"burn_token,omitempty"`

	// buy bancor
	BuyBancor string `json:"buy_bancor,omitempty"`

	// buy pool base
	BuyPoolBase string `json:"buy_pool_base,omitempty"`

	// buy pool delta
	BuyPoolDelta string `json:"buy_pool_delta,omitempty"`

	// coin
	Coin uint64 `json:"coin,omitempty,string"`

	// create coin
	CreateCoin string `json:"create_coin,omitempty"`

	// create multisig
	CreateMultisig string `json:"create_multisig,omitempty"`

	// create swap pool
	CreateSwapPool string `json:"create_swap_pool,omitempty"`

	// create ticker3
	CreateTicker3 string `json:"create_ticker3,omitempty"`

	// create ticker4
	CreateTicker4 string `json:"create_ticker4,omitempty"`

	// create ticker5
	CreateTicker5 string `json:"create_ticker5,omitempty"`

	// create ticker6
	CreateTicker6 string `json:"create_ticker6,omitempty"`

	// create ticker7 10
	CreateTicker710 string `json:"create_ticker7_10,omitempty"`

	// create token
	CreateToken string `json:"create_token,omitempty"`

	// declare candidacy
	DeclareCandidacy string `json:"declare_candidacy,omitempty"`

	// delegate
	Delegate string `json:"delegate,omitempty"`

	// edit candidate
	EditCandidate string `json:"edit_candidate,omitempty"`

	// edit candidate commission
	EditCandidateCommission string `json:"edit_candidate_commission,omitempty"`

	// edit candidate public key
	EditCandidatePublicKey string `json:"edit_candidate_public_key,omitempty"`

	// edit multisig
	EditMultisig string `json:"edit_multisig,omitempty"`

	// edit ticker owner
	EditTickerOwner string `json:"edit_ticker_owner,omitempty"`

	// failed tx
	FailedTx string `json:"failed_tx,omitempty"`

	// lock
	Lock string `json:"lock,omitempty"`

	// lock stake
	LockStake string `json:"lock_stake,omitempty"`

	// mint token
	MintToken string `json:"mint_token,omitempty"`

	// move stake
	MoveStake string `json:"move_stake,omitempty"`

	// multisend base
	MultisendBase string `json:"multisend_base,omitempty"`

	// multisend delta
	MultisendDelta string `json:"multisend_delta,omitempty"`

	// payload byte
	PayloadByte string `json:"payload_byte,omitempty"`

	// recreate coin
	RecreateCoin string `json:"recreate_coin,omitempty"`

	// recreate token
	RecreateToken string `json:"recreate_token,omitempty"`

	// redeem check
	RedeemCheck string `json:"redeem_check,omitempty"`

	// remove limit order
	RemoveLimitOrder string `json:"remove_limit_order,omitempty"`

	// remove liquidity
	RemoveLiquidity string `json:"remove_liquidity,omitempty"`

	// sell all bancor
	SellAllBancor string `json:"sell_all_bancor,omitempty"`

	// sell all pool base
	SellAllPoolBase string `json:"sell_all_pool_base,omitempty"`

	// sell all pool delta
	SellAllPoolDelta string `json:"sell_all_pool_delta,omitempty"`

	// sell bancor
	SellBancor string `json:"sell_bancor,omitempty"`

	// sell pool base
	SellPoolBase string `json:"sell_pool_base,omitempty"`

	// sell pool delta
	SellPoolDelta string `json:"sell_pool_delta,omitempty"`

	// send
	Send string `json:"send,omitempty"`

	// set candidate off
	SetCandidateOff string `json:"set_candidate_off,omitempty"`

	// set candidate on
	SetCandidateOn string `json:"set_candidate_on,omitempty"`

	// set halt block
	SetHaltBlock string `json:"set_halt_block,omitempty"`

	// unbond
	Unbond string `json:"unbond,omitempty"`

	// vote commission
	VoteCommission string `json:"vote_commission,omitempty"`

	// vote update
	VoteUpdate string `json:"vote_update,omitempty"`
}

AppStateCommission app state commission

swagger:model AppStateCommission

func (*AppStateCommission) ContextValidate added in v2.4.0

func (m *AppStateCommission) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this app state commission based on context it is used

func (*AppStateCommission) MarshalBinary added in v2.2.0

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

MarshalBinary interface implementation

func (*AppStateCommission) UnmarshalBinary added in v2.2.0

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

UnmarshalBinary interface implementation

func (*AppStateCommission) Validate added in v2.2.0

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

Validate validates this app state commission

type AppStateCommissionVote added in v2.2.0

type AppStateCommissionVote struct {

	// commission
	Commission *AppStateCommission `json:"commission,omitempty"`

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

	// votes
	Votes []string `json:"votes"`
}

AppStateCommissionVote app state commission vote

swagger:model AppStateCommissionVote

func (*AppStateCommissionVote) ContextValidate added in v2.4.0

func (m *AppStateCommissionVote) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app state commission vote based on the context it is used

func (*AppStateCommissionVote) MarshalBinary added in v2.2.0

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

MarshalBinary interface implementation

func (*AppStateCommissionVote) UnmarshalBinary added in v2.2.0

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

UnmarshalBinary interface implementation

func (*AppStateCommissionVote) Validate added in v2.2.0

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

Validate validates this app state commission vote

type AppStateDeletedCandidate added in v2.4.0

type AppStateDeletedCandidate struct {

	// id
	ID uint64 `json:"id,omitempty,string"`

	// public key
	PublicKey string `json:"public_key,omitempty"`
}

AppStateDeletedCandidate app state deleted candidate

swagger:model AppStateDeletedCandidate

func (*AppStateDeletedCandidate) ContextValidate added in v2.4.0

func (m *AppStateDeletedCandidate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this app state deleted candidate based on context it is used

func (*AppStateDeletedCandidate) MarshalBinary added in v2.4.0

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

MarshalBinary interface implementation

func (*AppStateDeletedCandidate) UnmarshalBinary added in v2.4.0

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

UnmarshalBinary interface implementation

func (*AppStateDeletedCandidate) Validate added in v2.4.0

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

Validate validates this app state deleted candidate

type AppStateFrozenFund

type AppStateFrozenFund struct {

	// address
	Address string `json:"address,omitempty"`

	// candidate id
	CandidateID uint64 `json:"candidate_id,omitempty,string"`

	// candidate key
	CandidateKey string `json:"candidate_key,omitempty"`

	// coin
	Coin uint64 `json:"coin,omitempty,string"`

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

	// to candidate key
	ToCandidateKey string `json:"to_candidate_key,omitempty"`

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

AppStateFrozenFund app state frozen fund

swagger:model AppStateFrozenFund

func (*AppStateFrozenFund) ContextValidate added in v2.4.0

func (m *AppStateFrozenFund) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this app state frozen fund based on context it is used

func (*AppStateFrozenFund) MarshalBinary

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

MarshalBinary interface implementation

func (*AppStateFrozenFund) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AppStateFrozenFund) Validate

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

Validate validates this app state frozen fund

type AppStateHaltBlock

type AppStateHaltBlock struct {

	// candidate key
	CandidateKey string `json:"candidate_key,omitempty"`

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

AppStateHaltBlock app state halt block

swagger:model AppStateHaltBlock

func (*AppStateHaltBlock) ContextValidate added in v2.4.0

func (m *AppStateHaltBlock) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this app state halt block based on context it is used

func (*AppStateHaltBlock) MarshalBinary

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

MarshalBinary interface implementation

func (*AppStateHaltBlock) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AppStateHaltBlock) Validate

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

Validate validates this app state halt block

type AppStatePool added in v2.2.0

type AppStatePool struct {

	// coin0
	Coin0 uint64 `json:"coin0,omitempty,string"`

	// coin1
	Coin1 uint64 `json:"coin1,omitempty,string"`

	// id
	ID uint64 `json:"id,omitempty,string"`

	// orders
	Orders []*PoolOrder `json:"orders"`

	// reserve0
	Reserve0 string `json:"reserve0,omitempty"`

	// reserve1
	Reserve1 string `json:"reserve1,omitempty"`
}

AppStatePool app state pool

swagger:model AppStatePool

func (*AppStatePool) ContextValidate added in v2.4.0

func (m *AppStatePool) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app state pool based on the context it is used

func (*AppStatePool) MarshalBinary added in v2.2.0

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

MarshalBinary interface implementation

func (*AppStatePool) UnmarshalBinary added in v2.2.0

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

UnmarshalBinary interface implementation

func (*AppStatePool) Validate added in v2.2.0

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

Validate validates this app state pool

type AppStateRewardPrice added in v2.5.0

type AppStateRewardPrice struct {

	// amount bip
	AmountBip string `json:"amount_bip,omitempty"`

	// amount usdt
	AmountUsdt string `json:"amount_usdt,omitempty"`

	// off
	Off bool `json:"off,omitempty"`

	// reward
	Reward string `json:"reward,omitempty"`

	// time
	Time uint64 `json:"time,omitempty,string"`
}

AppStateRewardPrice app state reward price

swagger:model AppStateRewardPrice

func (*AppStateRewardPrice) ContextValidate added in v2.5.0

func (m *AppStateRewardPrice) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this app state reward price based on context it is used

func (*AppStateRewardPrice) MarshalBinary added in v2.5.0

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

MarshalBinary interface implementation

func (*AppStateRewardPrice) UnmarshalBinary added in v2.5.0

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

UnmarshalBinary interface implementation

func (*AppStateRewardPrice) Validate added in v2.5.0

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

Validate validates this app state reward price

type AppStateUpdateVote added in v2.5.0

type AppStateUpdateVote struct {

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

	// version
	Version string `json:"version,omitempty"`

	// votes
	Votes []string `json:"votes"`
}

AppStateUpdateVote app state update vote

swagger:model AppStateUpdateVote

func (*AppStateUpdateVote) ContextValidate added in v2.5.0

func (m *AppStateUpdateVote) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this app state update vote based on context it is used

func (*AppStateUpdateVote) MarshalBinary added in v2.5.0

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

MarshalBinary interface implementation

func (*AppStateUpdateVote) UnmarshalBinary added in v2.5.0

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

UnmarshalBinary interface implementation

func (*AppStateUpdateVote) Validate added in v2.5.0

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

Validate validates this app state update vote

type AppStateValidators

type AppStateValidators struct {

	// absent times
	AbsentTimes string `json:"absent_times,omitempty"`

	// accum reward
	AccumReward string `json:"accum_reward,omitempty"`

	// public key
	PublicKey string `json:"public_key,omitempty"`

	// total bip stake
	TotalBipStake string `json:"total_bip_stake,omitempty"`
}

AppStateValidators app state validators

swagger:model AppStateValidators

func (*AppStateValidators) ContextValidate added in v2.4.0

func (m *AppStateValidators) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this app state validators based on context it is used

func (*AppStateValidators) MarshalBinary

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

MarshalBinary interface implementation

func (*AppStateValidators) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AppStateValidators) Validate

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

Validate validates this app state validators

type AppStateWaitlist

type AppStateWaitlist struct {

	// candidate id
	CandidateID uint64 `json:"candidate_id,omitempty,string"`

	// coin
	Coin uint64 `json:"coin,omitempty,string"`

	// owner
	Owner string `json:"owner,omitempty"`

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

AppStateWaitlist app state waitlist

swagger:model AppStateWaitlist

func (*AppStateWaitlist) ContextValidate added in v2.4.0

func (m *AppStateWaitlist) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this app state waitlist based on context it is used

func (*AppStateWaitlist) MarshalBinary

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

MarshalBinary interface implementation

func (*AppStateWaitlist) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AppStateWaitlist) Validate

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

Validate validates this app state waitlist

type BestTradeRequestType added in v2.5.0

type BestTradeRequestType string

BestTradeRequestType best trade request type

swagger:model BestTradeRequestType

const (

	// BestTradeRequestTypeInput captures enum value "input"
	BestTradeRequestTypeInput BestTradeRequestType = "input"

	// BestTradeRequestTypeOutput captures enum value "output"
	BestTradeRequestTypeOutput BestTradeRequestType = "output"
)

func NewBestTradeRequestType added in v2.5.0

func NewBestTradeRequestType(value BestTradeRequestType) *BestTradeRequestType

func (BestTradeRequestType) ContextValidate added in v2.5.0

func (m BestTradeRequestType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this best trade request type based on context it is used

func (BestTradeRequestType) Validate added in v2.5.0

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

Validate validates this best trade request type

type BestTradeResponse added in v2.5.0

type BestTradeResponse struct {

	// path
	Path []uint64 `json:"path"`

	// result
	Result string `json:"result,omitempty"`
}

BestTradeResponse best trade response

swagger:model BestTradeResponse

func (*BestTradeResponse) ContextValidate added in v2.5.0

func (m *BestTradeResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this best trade response based on context it is used

func (*BestTradeResponse) MarshalBinary added in v2.5.0

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

MarshalBinary interface implementation

func (*BestTradeResponse) UnmarshalBinary added in v2.5.0

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

UnmarshalBinary interface implementation

func (*BestTradeResponse) Validate added in v2.5.0

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

Validate validates this best trade response

type BlockField added in v2.2.0

type BlockField string

BlockField block field

swagger:model BlockField

const (

	// BlockFieldTransactions captures enum value "transactions"
	BlockFieldTransactions BlockField = "transactions"

	// BlockFieldMissed captures enum value "missed"
	BlockFieldMissed BlockField = "missed"

	// BlockFieldBlockReward captures enum value "block_reward"
	BlockFieldBlockReward BlockField = "block_reward"

	// BlockFieldSize captures enum value "size"
	BlockFieldSize BlockField = "size"

	// BlockFieldProposer captures enum value "proposer"
	BlockFieldProposer BlockField = "proposer"

	// BlockFieldValidators captures enum value "validators"
	BlockFieldValidators BlockField = "validators"

	// BlockFieldEvidence captures enum value "evidence"
	BlockFieldEvidence BlockField = "evidence"
)

func NewBlockField added in v2.4.0

func NewBlockField(value BlockField) *BlockField

func (BlockField) ContextValidate added in v2.4.0

func (m BlockField) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this block field based on context it is used

func (BlockField) Validate added in v2.2.0

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

Validate validates this block field

type BlockResponse

type BlockResponse struct {

	// block reward
	BlockReward string `json:"block_reward,omitempty"`

	// events
	Events []*ProtobufAny `json:"events"`

	// evidence
	Evidence *BlockResponseEvidence `json:"evidence,omitempty"`

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

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

	// locked stake rewards
	LockedStakeRewards string `json:"locked_stake_rewards,omitempty"`

	// missed
	Missed []string `json:"missed"`

	// proposer
	Proposer string `json:"proposer,omitempty"`

	// size
	Size uint64 `json:"size,omitempty,string"`

	// time
	Time string `json:"time,omitempty"`

	// transaction count
	TransactionCount uint64 `json:"transaction_count,omitempty,string"`

	// transactions
	Transactions []*TransactionResponse `json:"transactions"`

	// validators
	Validators []*BlockResponseValidator `json:"validators"`
}

BlockResponse block response

swagger:model BlockResponse

func (*BlockResponse) ContextValidate added in v2.4.0

func (m *BlockResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this block response based on the context it is used

func (*BlockResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*BlockResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BlockResponse) Validate

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

Validate validates this block response

type BlockResponseEvidence

type BlockResponseEvidence struct {

	// evidence
	Evidence []interface{} `json:"evidence"`
}

BlockResponseEvidence block response evidence

swagger:model BlockResponseEvidence

func (*BlockResponseEvidence) ContextValidate added in v2.4.0

func (m *BlockResponseEvidence) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this block response evidence based on context it is used

func (*BlockResponseEvidence) MarshalBinary

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

MarshalBinary interface implementation

func (*BlockResponseEvidence) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BlockResponseEvidence) Validate

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

Validate validates this block response evidence

type BlockResponseEvidenceEvidence

type BlockResponseEvidenceEvidence struct {

	// address
	Address string `json:"address,omitempty"`

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

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

	// time
	Time string `json:"time,omitempty"`
}

BlockResponseEvidenceEvidence block response evidence evidence

swagger:model BlockResponseEvidenceEvidence

func (*BlockResponseEvidenceEvidence) MarshalBinary

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

MarshalBinary interface implementation

func (*BlockResponseEvidenceEvidence) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BlockResponseEvidenceEvidence) Validate

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

Validate validates this block response evidence evidence

type BlockResponseValidator

type BlockResponseValidator struct {

	// public key
	PublicKey string `json:"public_key,omitempty"`

	// signed
	Signed bool `json:"signed,omitempty"`
}

BlockResponseValidator block response validator

swagger:model BlockResponseValidator

func (*BlockResponseValidator) ContextValidate added in v2.4.0

func (m *BlockResponseValidator) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this block response validator based on context it is used

func (*BlockResponseValidator) MarshalBinary

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

MarshalBinary interface implementation

func (*BlockResponseValidator) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BlockResponseValidator) Validate

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

Validate validates this block response validator

type BlocksResponse added in v2.2.0

type BlocksResponse struct {

	// blocks
	Blocks []*BlockResponse `json:"blocks"`
}

BlocksResponse blocks response

swagger:model BlocksResponse

func (*BlocksResponse) ContextValidate added in v2.4.0

func (m *BlocksResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this blocks response based on the context it is used

func (*BlocksResponse) MarshalBinary added in v2.2.0

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

MarshalBinary interface implementation

func (*BlocksResponse) UnmarshalBinary added in v2.2.0

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

UnmarshalBinary interface implementation

func (*BlocksResponse) Validate added in v2.2.0

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

Validate validates this blocks response

type BurnTokenData added in v2.2.0

type BurnTokenData struct {
	Coin  *Coin  `json:"coin"`
	Value string `json:"value"`
}

type BuyCoinData

type BuyCoinData struct {
	CoinToBuy          *Coin  `json:"coin_to_buy"`
	ValueToBuy         string `json:"value_to_buy"`
	CoinToSell         *Coin  `json:"coin_to_sell"`
	MaximumValueToSell string `json:"maximum_value_to_sell"`
}

type BuySwapPoolData added in v2.2.0

type BuySwapPoolData struct {
	Coins              []*Coin `json:"coins"`
	ValueToBuy         string  `json:"value_to_buy"`
	MaximumValueToSell string  `json:"maximum_value_to_sell"`
}

type CandidateResponse

type CandidateResponse struct {

	// Commission (from 0 to 100) from rewards which delegators will pay to validator
	Commission uint64 `json:"commission,omitempty,string"`

	// Address that allows one to start the candidate by sending the SetCandidateOnline transaction or stop it by sending the SetCandidateOffline transaction.
	ControlAddress string `json:"control_address,omitempty"`

	// id
	ID uint64 `json:"id,omitempty,string"`

	// jailed until
	JailedUntil uint64 `json:"jailed_until,omitempty,string"`

	// Smallest steak size. Note: filled in when request includes_stakes
	MinStake string `json:"min_stake,omitempty"`

	// Address that allows one to start the candidate by sending the SetCandidateOnline transaction or stop it by sending the SetCandidateOffline transaction. It also enables the owner to edit the node by sending EditCandidate.
	OwnerAddress string `json:"owner_address,omitempty"`

	// Public key of a candidate
	PublicKey string `json:"public_key,omitempty"`

	// Address where validator’s rewards go to.
	RewardAddress string `json:"reward_address,omitempty"`

	// List of stakes. Note: filled in when request includes_stakes
	Stakes []*CandidateResponseStake `json:"stakes"`

	// Candidate status. Available values: offline = 1, online = 2
	Status uint64 `json:"status,omitempty,string"`

	// Total stake of a candidate
	TotalStake string `json:"total_stake,omitempty"`

	// Number of unique wallets in steaks. Note: filled in when request includes_stakes
	UniqUsers uint64 `json:"uniq_users,omitempty,string"`

	// Number of occupied steak slots. Note: filled in when request includes_stakes
	UsedSlots uint64 `json:"used_slots,omitempty,string"`

	// Is a validator at the current height
	Validator bool `json:"validator,omitempty"`
}

CandidateResponse candidate response

swagger:model CandidateResponse

func (*CandidateResponse) ContextValidate added in v2.4.0

func (m *CandidateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this candidate response based on the context it is used

func (*CandidateResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*CandidateResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CandidateResponse) Validate

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

Validate validates this candidate response

type CandidateResponseStake

type CandidateResponseStake struct {

	// bip value
	BipValue string `json:"bip_value,omitempty"`

	// coin
	Coin *Coin `json:"coin,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`

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

CandidateResponseStake candidate response stake

swagger:model CandidateResponseStake

func (*CandidateResponseStake) ContextValidate added in v2.4.0

func (m *CandidateResponseStake) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this candidate response stake based on the context it is used

func (*CandidateResponseStake) MarshalBinary

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

MarshalBinary interface implementation

func (*CandidateResponseStake) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CandidateResponseStake) Validate

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

Validate validates this candidate response stake

type CandidatesRequestCandidateStatus

type CandidatesRequestCandidateStatus string

CandidatesRequestCandidateStatus candidates request candidate status

swagger:model CandidatesRequestCandidateStatus

const (

	// CandidatesRequestCandidateStatusAll captures enum value "all"
	CandidatesRequestCandidateStatusAll CandidatesRequestCandidateStatus = "all"

	// CandidatesRequestCandidateStatusOff captures enum value "off"
	CandidatesRequestCandidateStatusOff CandidatesRequestCandidateStatus = "off"

	// CandidatesRequestCandidateStatusOn captures enum value "on"
	CandidatesRequestCandidateStatusOn CandidatesRequestCandidateStatus = "on"

	// CandidatesRequestCandidateStatusValidator captures enum value "validator"
	CandidatesRequestCandidateStatusValidator CandidatesRequestCandidateStatus = "validator"

	// CandidatesRequestCandidateStatusDeleted captures enum value "deleted"
	CandidatesRequestCandidateStatusDeleted CandidatesRequestCandidateStatus = "deleted"
)

func NewCandidatesRequestCandidateStatus added in v2.4.0

func NewCandidatesRequestCandidateStatus(value CandidatesRequestCandidateStatus) *CandidatesRequestCandidateStatus

func (CandidatesRequestCandidateStatus) ContextValidate added in v2.4.0

func (m CandidatesRequestCandidateStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this candidates request candidate status based on context it is used

func (CandidatesRequestCandidateStatus) Validate

Validate validates this candidates request candidate status

type CandidatesResponse

type CandidatesResponse struct {

	// candidates
	Candidates []*CandidateResponse `json:"candidates"`

	// deleted
	Deleted []*CandidatesResponseDeleted `json:"deleted"`
}

CandidatesResponse candidates response

swagger:model CandidatesResponse

func (*CandidatesResponse) ContextValidate added in v2.4.0

func (m *CandidatesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this candidates response based on the context it is used

func (*CandidatesResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*CandidatesResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CandidatesResponse) Validate

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

Validate validates this candidates response

type CandidatesResponseDeleted added in v2.6.1

type CandidatesResponseDeleted struct {

	// id
	ID uint64 `json:"id,omitempty,string"`

	// public key
	PublicKey string `json:"public_key,omitempty"`
}

CandidatesResponseDeleted candidates response deleted

swagger:model CandidatesResponseDeleted

func (*CandidatesResponseDeleted) ContextValidate added in v2.6.1

func (m *CandidatesResponseDeleted) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this candidates response deleted based on context it is used

func (*CandidatesResponseDeleted) MarshalBinary added in v2.6.1

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

MarshalBinary interface implementation

func (*CandidatesResponseDeleted) UnmarshalBinary added in v2.6.1

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

UnmarshalBinary interface implementation

func (*CandidatesResponseDeleted) Validate added in v2.6.1

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

Validate validates this candidates response deleted

type Coin

type Coin struct {

	// id
	ID uint64 `json:"id,omitempty,string"`

	// symbol
	Symbol string `json:"symbol,omitempty"`
}

Coin coin Example: {"id":"0","symbol":"BIP"}

swagger:model Coin

func (*Coin) ContextValidate added in v2.4.0

func (m *Coin) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this coin based on context it is used

func (*Coin) MarshalBinary

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

MarshalBinary interface implementation

func (*Coin) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Coin) Validate

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

Validate validates this coin

type CoinInfoResponse

type CoinInfoResponse struct {

	// burnable
	Burnable bool `json:"burnable,omitempty"`

	// crr
	Crr uint64 `json:"crr,omitempty,string"`

	// id
	ID uint64 `json:"id,omitempty,string"`

	// max supply
	MaxSupply string `json:"max_supply,omitempty"`

	// mintable
	Mintable bool `json:"mintable,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// owner address
	OwnerAddress string `json:"owner_address,omitempty"`

	// reserve balance
	ReserveBalance string `json:"reserve_balance,omitempty"`

	// symbol
	Symbol string `json:"symbol,omitempty"`

	// volume
	Volume string `json:"volume,omitempty"`
}

CoinInfoResponse coin info response Example: {"crr":"0","id":"0","max_supply":"10000000000000000000000000000","name":"","owner_address":null,"reserve_balance":"0","symbol":"BIP","volume":"0"}

swagger:model CoinInfoResponse

func (*CoinInfoResponse) ContextValidate added in v2.4.0

func (m *CoinInfoResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this coin info response based on context it is used

func (*CoinInfoResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*CoinInfoResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CoinInfoResponse) Validate

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

Validate validates this coin info response

type CommissionVotesResponse added in v2.2.0

type CommissionVotesResponse struct {

	// votes
	Votes []*CommissionVotesResponseVote `json:"votes"`
}

CommissionVotesResponse commission votes response

swagger:model CommissionVotesResponse

func (*CommissionVotesResponse) ContextValidate added in v2.4.0

func (m *CommissionVotesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this commission votes response based on the context it is used

func (*CommissionVotesResponse) MarshalBinary added in v2.2.0

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

MarshalBinary interface implementation

func (*CommissionVotesResponse) UnmarshalBinary added in v2.2.0

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

UnmarshalBinary interface implementation

func (*CommissionVotesResponse) Validate added in v2.2.0

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

Validate validates this commission votes response

type CommissionVotesResponseVote added in v2.2.0

type CommissionVotesResponseVote struct {

	// price
	Price *PriceCommissionResponse `json:"price,omitempty"`

	// public keys
	PublicKeys []string `json:"public_keys"`
}

CommissionVotesResponseVote commission votes response vote

swagger:model CommissionVotesResponseVote

func (*CommissionVotesResponseVote) ContextValidate added in v2.4.0

func (m *CommissionVotesResponseVote) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this commission votes response vote based on the context it is used

func (*CommissionVotesResponseVote) MarshalBinary added in v2.2.0

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

MarshalBinary interface implementation

func (*CommissionVotesResponseVote) UnmarshalBinary added in v2.2.0

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

UnmarshalBinary interface implementation

func (*CommissionVotesResponseVote) Validate added in v2.2.0

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

Validate validates this commission votes response vote

type ConnectionStatusChannel

type ConnectionStatusChannel struct {

	// id
	ID int64 `json:"id,omitempty,string"`

	// priority
	Priority int64 `json:"priority,omitempty,string"`

	// recently sent
	RecentlySent int64 `json:"recently_sent,omitempty,string"`

	// send queue capacity
	SendQueueCapacity int64 `json:"send_queue_capacity,omitempty,string"`

	// send queue size
	SendQueueSize int64 `json:"send_queue_size,omitempty,string"`
}

ConnectionStatusChannel connection status channel

swagger:model ConnectionStatusChannel

func (*ConnectionStatusChannel) ContextValidate added in v2.4.0

func (m *ConnectionStatusChannel) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this connection status channel based on context it is used

func (*ConnectionStatusChannel) MarshalBinary

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

MarshalBinary interface implementation

func (*ConnectionStatusChannel) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConnectionStatusChannel) Validate

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

Validate validates this connection status channel

type ConnectionStatusMonitor

type ConnectionStatusMonitor struct {

	// active
	Active bool `json:"active,omitempty"`

	// avg rate
	AvgRate int64 `json:"avg_rate,omitempty,string"`

	// bytes
	Bytes int64 `json:"bytes,omitempty,string"`

	// bytes rem
	BytesRem int64 `json:"bytes_rem,omitempty,string"`

	// cur rate
	CurRate int64 `json:"cur_rate,omitempty,string"`

	// duration
	Duration int64 `json:"duration,omitempty,string"`

	// idle
	Idle int64 `json:"idle,omitempty,string"`

	// inst rate
	InstRate int64 `json:"inst_rate,omitempty,string"`

	// peak rate
	PeakRate int64 `json:"peak_rate,omitempty,string"`

	// progress
	Progress uint64 `json:"progress,omitempty,string"`

	// samples
	Samples int64 `json:"samples,omitempty,string"`

	// start
	Start string `json:"start,omitempty"`

	// time rem
	TimeRem int64 `json:"time_rem,omitempty,string"`
}

ConnectionStatusMonitor connection status monitor

swagger:model ConnectionStatusMonitor

func (*ConnectionStatusMonitor) ContextValidate added in v2.4.0

func (m *ConnectionStatusMonitor) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this connection status monitor based on context it is used

func (*ConnectionStatusMonitor) MarshalBinary

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

MarshalBinary interface implementation

func (*ConnectionStatusMonitor) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConnectionStatusMonitor) Validate

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

Validate validates this connection status monitor

type ConsensusParamsBlock

type ConsensusParamsBlock struct {

	// max bytes
	MaxBytes int64 `json:"max_bytes,omitempty,string"`

	// max gas
	MaxGas int64 `json:"max_gas,omitempty,string"`

	// time iota ms
	TimeIotaMs int64 `json:"time_iota_ms,omitempty,string"`
}

ConsensusParamsBlock consensus params block

swagger:model ConsensusParamsBlock

func (*ConsensusParamsBlock) ContextValidate added in v2.4.0

func (m *ConsensusParamsBlock) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this consensus params block based on context it is used

func (*ConsensusParamsBlock) MarshalBinary

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

MarshalBinary interface implementation

func (*ConsensusParamsBlock) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ConsensusParamsBlock) Validate

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

Validate validates this consensus params block

type CreateCoinData

type CreateCoinData struct {
	Name                 string `json:"name"`
	Symbol               string `json:"symbol"`
	InitialAmount        string `json:"initial_amount"`
	InitialReserve       string `json:"initial_reserve"`
	ConstantReserveRatio uint64 `json:"constant_reserve_ratio,string"`
	MaxSupply            string `json:"max_supply"`
}

type CreateMultisigData

type CreateMultisigData struct {
	Threshold uint64        `json:"threshold,string"`
	Weights   intsAsStrings `json:"weights"`
	Addresses []string      `json:"addresses"`
}

type CreateSwapPoolData added in v2.2.0

type CreateSwapPoolData struct {
	Coin0   *Coin  `json:"coin0"`
	Coin1   *Coin  `json:"coin1"`
	Volume0 string `json:"volume0"`
	Volume1 string `json:"volume1"`
}

type CreateTokenData added in v2.2.0

type CreateTokenData struct {
	Name          string `json:"name"`
	Symbol        string `json:"symbol"`
	InitialAmount string `json:"initial_amount"`
	MaxSupply     string `json:"max_supply"`
	Mintable      bool   `json:"mintable"`
	Burnable      bool   `json:"burnable"`
}

type Data

type Data interface {
}

type DeclareCandidacyData

type DeclareCandidacyData struct {
	Address    string `json:"address"`
	PubKey     string `json:"pub_key"`
	Commission uint64 `json:"commission,string"`
	Coin       *Coin  `json:"coin"`
	Stake      string `json:"stake"`
}

type DelegateData

type DelegateData struct {
	PubKey string `json:"pub_key"`
	Coin   *Coin  `json:"coin"`
	Value  string `json:"value"`
}

type EditCandidateCommission added in v2.2.0

type EditCandidateCommission struct {
	PubKey     string `json:"pub_key"`
	Commission uint64 `json:"commission"`
}

type EditCandidateData

type EditCandidateData struct {
	PubKey         string `json:"pub_key"`
	RewardAddress  string `json:"reward_address"`
	OwnerAddress   string `json:"owner_address"`
	ControlAddress string `json:"control_address"`
}

type EditCandidatePublicKeyData

type EditCandidatePublicKeyData struct {
	PubKey    string `json:"pub_key"`
	NewPubKey string `json:"new_pub_key"`
}

type EditCoinOwnerData

type EditCoinOwnerData struct {
	Symbol   string `json:"symbol"`
	NewOwner string `json:"new_owner"`
}

type EditMultisigData

type EditMultisigData CreateMultisigData

type ErrorBody

type ErrorBody struct {

	// error
	Error *ErrorBodyError `json:"error,omitempty"`
}

ErrorBody error body

swagger:model ErrorBody

func (*ErrorBody) ContextValidate added in v2.4.0

func (m *ErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error body based on the context it is used

func (*ErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorBody) Validate

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

Validate validates this error body

type ErrorBodyError

type ErrorBodyError struct {

	// code
	Code string `json:"code,omitempty"`

	// data
	Data map[string]string `json:"data,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

ErrorBodyError error body error

swagger:model ErrorBodyError

func (*ErrorBodyError) ContextValidate added in v2.4.0

func (m *ErrorBodyError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error body error based on context it is used

func (*ErrorBodyError) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorBodyError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorBodyError) Validate

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

Validate validates this error body error

type EstimateCoinBuyResponse

type EstimateCoinBuyResponse struct {

	// commission
	Commission string `json:"commission,omitempty"`

	// swap from
	SwapFrom *SwapFrom `json:"swap_from,omitempty"`

	// will pay
	WillPay string `json:"will_pay,omitempty"`
}

EstimateCoinBuyResponse estimate coin buy response

swagger:model EstimateCoinBuyResponse

func (*EstimateCoinBuyResponse) ContextValidate added in v2.4.0

func (m *EstimateCoinBuyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this estimate coin buy response based on the context it is used

func (*EstimateCoinBuyResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*EstimateCoinBuyResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EstimateCoinBuyResponse) Validate

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

Validate validates this estimate coin buy response

type EstimateCoinSellAllResponse

type EstimateCoinSellAllResponse struct {

	// swap from
	SwapFrom *SwapFrom `json:"swap_from,omitempty"`

	// will get
	WillGet string `json:"will_get,omitempty"`
}

EstimateCoinSellAllResponse estimate coin sell all response

swagger:model EstimateCoinSellAllResponse

func (*EstimateCoinSellAllResponse) ContextValidate added in v2.4.0

func (m *EstimateCoinSellAllResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this estimate coin sell all response based on the context it is used

func (*EstimateCoinSellAllResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*EstimateCoinSellAllResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EstimateCoinSellAllResponse) Validate

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

Validate validates this estimate coin sell all response

type EstimateCoinSellResponse

type EstimateCoinSellResponse struct {

	// commission
	Commission string `json:"commission,omitempty"`

	// swap from
	SwapFrom *SwapFrom `json:"swap_from,omitempty"`

	// will get
	WillGet string `json:"will_get,omitempty"`
}

EstimateCoinSellResponse estimate coin sell response

swagger:model EstimateCoinSellResponse

func (*EstimateCoinSellResponse) ContextValidate added in v2.4.0

func (m *EstimateCoinSellResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this estimate coin sell response based on the context it is used

func (*EstimateCoinSellResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*EstimateCoinSellResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EstimateCoinSellResponse) Validate

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

Validate validates this estimate coin sell response

type EstimateTxCommissionResponse

type EstimateTxCommissionResponse struct {

	// commission
	Commission string `json:"commission,omitempty"`
}

EstimateTxCommissionResponse estimate tx commission response

swagger:model EstimateTxCommissionResponse

func (*EstimateTxCommissionResponse) ContextValidate added in v2.4.0

func (m *EstimateTxCommissionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this estimate tx commission response based on context it is used

func (*EstimateTxCommissionResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*EstimateTxCommissionResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EstimateTxCommissionResponse) Validate

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

Validate validates this estimate tx commission response

type EventItem

type EventItem struct {
	Type  string
	Value map[string]string
}

EventItem is the structure of the EventsResponse view of list items

func NewEventItem

func NewEventItem(i interface{}) (*EventItem, error)

NewEventItem returns an EventItem from the EventsResponse list item

type EventsResponse

type EventsResponse struct {

	// events
	Events []interface{} `json:"events"`
}

EventsResponse events response

swagger:model EventsResponse

func (*EventsResponse) ContextValidate added in v2.4.0

func (m *EventsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this events response based on context it is used

func (*EventsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*EventsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventsResponse) Validate

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

Validate validates this events response

type FrozenResponse

type FrozenResponse struct {

	// frozen
	Frozen []*FrozenResponseFrozen `json:"frozen"`
}

FrozenResponse frozen response

swagger:model FrozenResponse

func (*FrozenResponse) ContextValidate added in v2.4.0

func (m *FrozenResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this frozen response based on the context it is used

func (*FrozenResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*FrozenResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*FrozenResponse) Validate

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

Validate validates this frozen response

type FrozenResponseFrozen

type FrozenResponseFrozen struct {

	// address
	Address string `json:"address,omitempty"`

	// candidate key
	CandidateKey string `json:"candidate_key,omitempty"`

	// coin
	Coin *Coin `json:"coin,omitempty"`

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

	// move to candidate key
	MoveToCandidateKey string `json:"move_to_candidate_key,omitempty"`

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

FrozenResponseFrozen frozen response frozen

swagger:model FrozenResponseFrozen

func (*FrozenResponseFrozen) ContextValidate added in v2.4.0

func (m *FrozenResponseFrozen) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this frozen response frozen based on the context it is used

func (*FrozenResponseFrozen) MarshalBinary

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

MarshalBinary interface implementation

func (*FrozenResponseFrozen) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*FrozenResponseFrozen) Validate

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

Validate validates this frozen response frozen

type GatewayruntimeError

type GatewayruntimeError struct {

	// code
	Code int32 `json:"code,omitempty"`

	// details
	Details []*ProtobufAny `json:"details"`

	// error
	Error string `json:"error,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

GatewayruntimeError gatewayruntime error

swagger:model gatewayruntimeError

func (*GatewayruntimeError) MarshalBinary

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

MarshalBinary interface implementation

func (*GatewayruntimeError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GatewayruntimeError) Validate

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

Validate validates this gatewayruntime error

type GenesisResponse

type GenesisResponse struct {

	// app hash
	AppHash string `json:"app_hash,omitempty"`

	// app state
	AppState *GenesisResponseAppState `json:"app_state,omitempty"`

	// chain id
	ChainID string `json:"chain_id,omitempty"`

	// consensus params
	ConsensusParams *GenesisResponseConsensusParams `json:"consensus_params,omitempty"`

	// genesis time
	GenesisTime string `json:"genesis_time,omitempty"`

	// initial height
	InitialHeight uint64 `json:"initial_height,omitempty,string"`
}

GenesisResponse genesis response

swagger:model GenesisResponse

func (*GenesisResponse) ContextValidate added in v2.4.0

func (m *GenesisResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this genesis response based on the context it is used

func (*GenesisResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GenesisResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GenesisResponse) Validate

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

Validate validates this genesis response

type GenesisResponseAppState

type GenesisResponseAppState struct {

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

	// block list candidates
	BlockListCandidates []string `json:"block_list_candidates"`

	// candidates
	Candidates []*AppStateCandidate `json:"candidates"`

	// coins
	Coins []*GenesisResponseAppStateCoin `json:"coins"`

	// commission
	Commission *AppStateCommission `json:"commission,omitempty"`

	// commission votes
	CommissionVotes []*AppStateCommissionVote `json:"commission_votes"`

	// deleted candidates
	DeletedCandidates []*AppStateDeletedCandidate `json:"deleted_candidates"`

	// emission
	Emission string `json:"emission,omitempty"`

	// frozen funds
	FrozenFunds []*AppStateFrozenFund `json:"frozen_funds"`

	// halt blocks
	HaltBlocks []*AppStateHaltBlock `json:"halt_blocks"`

	// max gas
	MaxGas uint64 `json:"max_gas,omitempty,string"`

	// next order id
	NextOrderID uint64 `json:"next_order_id,omitempty,string"`

	// note
	Note string `json:"note,omitempty"`

	// pools
	Pools []*AppStatePool `json:"pools"`

	// prev reward
	PrevReward *AppStateRewardPrice `json:"prev_reward,omitempty"`

	// total slashed
	TotalSlashed string `json:"total_slashed,omitempty"`

	// update votes
	UpdateVotes []*AppStateUpdateVote `json:"update_votes"`

	// used checks
	UsedChecks []string `json:"used_checks"`

	// validators
	Validators []*AppStateValidators `json:"validators"`

	// version
	Version string `json:"version,omitempty"`

	// versions
	Versions []*GenesisResponseAppStateVersion `json:"versions"`

	// waitlist
	Waitlist []*AppStateWaitlist `json:"waitlist"`
}

GenesisResponseAppState genesis response app state

swagger:model GenesisResponseAppState

func (*GenesisResponseAppState) ContextValidate added in v2.4.0

func (m *GenesisResponseAppState) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this genesis response app state based on the context it is used

func (*GenesisResponseAppState) MarshalBinary

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

MarshalBinary interface implementation

func (*GenesisResponseAppState) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GenesisResponseAppState) Validate

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

Validate validates this genesis response app state

type GenesisResponseAppStateCoin

type GenesisResponseAppStateCoin struct {

	// burnable
	Burnable bool `json:"burnable,omitempty"`

	// crr
	Crr uint64 `json:"crr,omitempty,string"`

	// id
	ID uint64 `json:"id,omitempty,string"`

	// max supply
	MaxSupply string `json:"max_supply,omitempty"`

	// mintable
	Mintable bool `json:"mintable,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// owner address
	OwnerAddress string `json:"owner_address,omitempty"`

	// reserve
	Reserve string `json:"reserve,omitempty"`

	// symbol
	Symbol string `json:"symbol,omitempty"`

	// version
	Version uint64 `json:"version,omitempty,string"`

	// volume
	Volume string `json:"volume,omitempty"`
}

GenesisResponseAppStateCoin genesis response app state coin

swagger:model GenesisResponseAppStateCoin

func (*GenesisResponseAppStateCoin) ContextValidate added in v2.4.0

func (m *GenesisResponseAppStateCoin) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this genesis response app state coin based on context it is used

func (*GenesisResponseAppStateCoin) MarshalBinary

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

MarshalBinary interface implementation

func (*GenesisResponseAppStateCoin) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GenesisResponseAppStateCoin) Validate

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

Validate validates this genesis response app state coin

type GenesisResponseAppStateVersion added in v2.5.0

type GenesisResponseAppStateVersion struct {

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

	// name
	Name string `json:"name,omitempty"`
}

GenesisResponseAppStateVersion genesis response app state version

swagger:model GenesisResponseAppStateVersion

func (*GenesisResponseAppStateVersion) ContextValidate added in v2.5.0

func (m *GenesisResponseAppStateVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this genesis response app state version based on context it is used

func (*GenesisResponseAppStateVersion) MarshalBinary added in v2.5.0

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

MarshalBinary interface implementation

func (*GenesisResponseAppStateVersion) UnmarshalBinary added in v2.5.0

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

UnmarshalBinary interface implementation

func (*GenesisResponseAppStateVersion) Validate added in v2.5.0

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

Validate validates this genesis response app state version

type GenesisResponseConsensusParams

type GenesisResponseConsensusParams struct {

	// block
	Block *ConsensusParamsBlock `json:"block,omitempty"`

	// evidence
	Evidence *GenesisResponseConsensusParamsEvidence `json:"evidence,omitempty"`

	// validator
	Validator *GenesisResponseConsensusParamsValidator `json:"validator,omitempty"`

	// version
	Version *GenesisResponseConsensusParamsVersion `json:"version,omitempty"`
}

GenesisResponseConsensusParams genesis response consensus params

swagger:model GenesisResponseConsensusParams

func (*GenesisResponseConsensusParams) ContextValidate added in v2.4.0

func (m *GenesisResponseConsensusParams) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this genesis response consensus params based on the context it is used

func (*GenesisResponseConsensusParams) MarshalBinary

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

MarshalBinary interface implementation

func (*GenesisResponseConsensusParams) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GenesisResponseConsensusParams) Validate

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

Validate validates this genesis response consensus params

type GenesisResponseConsensusParamsEvidence

type GenesisResponseConsensusParamsEvidence struct {

	// max age duration
	MaxAgeDuration int64 `json:"max_age_duration,omitempty,string"`

	// max age num blocks
	MaxAgeNumBlocks int64 `json:"max_age_num_blocks,omitempty,string"`
}

GenesisResponseConsensusParamsEvidence genesis response consensus params evidence

swagger:model GenesisResponseConsensusParamsEvidence

func (*GenesisResponseConsensusParamsEvidence) ContextValidate added in v2.4.0

ContextValidate validates this genesis response consensus params evidence based on context it is used

func (*GenesisResponseConsensusParamsEvidence) MarshalBinary

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

MarshalBinary interface implementation

func (*GenesisResponseConsensusParamsEvidence) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GenesisResponseConsensusParamsEvidence) Validate

Validate validates this genesis response consensus params evidence

type GenesisResponseConsensusParamsValidator

type GenesisResponseConsensusParamsValidator struct {

	// pub key types
	PubKeyTypes []string `json:"pub_key_types"`
}

GenesisResponseConsensusParamsValidator genesis response consensus params validator

swagger:model GenesisResponseConsensusParamsValidator

func (*GenesisResponseConsensusParamsValidator) ContextValidate added in v2.4.0

ContextValidate validates this genesis response consensus params validator based on context it is used

func (*GenesisResponseConsensusParamsValidator) MarshalBinary

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

MarshalBinary interface implementation

func (*GenesisResponseConsensusParamsValidator) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GenesisResponseConsensusParamsValidator) Validate

Validate validates this genesis response consensus params validator

type GenesisResponseConsensusParamsVersion added in v2.6.0

type GenesisResponseConsensusParamsVersion struct {

	// app version
	AppVersion uint64 `json:"app_version,omitempty,string"`
}

GenesisResponseConsensusParamsVersion genesis response consensus params version

swagger:model GenesisResponseConsensusParamsVersion

func (*GenesisResponseConsensusParamsVersion) ContextValidate added in v2.6.0

func (m *GenesisResponseConsensusParamsVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this genesis response consensus params version based on context it is used

func (*GenesisResponseConsensusParamsVersion) MarshalBinary added in v2.6.0

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

MarshalBinary interface implementation

func (*GenesisResponseConsensusParamsVersion) UnmarshalBinary added in v2.6.0

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

UnmarshalBinary interface implementation

func (*GenesisResponseConsensusParamsVersion) Validate added in v2.6.0

Validate validates this genesis response consensus params version

type HaltsResponse

type HaltsResponse struct {

	// public keys
	PublicKeys []string `json:"public_keys"`
}

HaltsResponse halts response

swagger:model HaltsResponse

func (*HaltsResponse) ContextValidate added in v2.4.0

func (m *HaltsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this halts response based on context it is used

func (*HaltsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*HaltsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HaltsResponse) Validate

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

Validate validates this halts response

type LimitOrderResponse added in v2.4.0

type LimitOrderResponse struct {

	// coin buy
	CoinBuy *Coin `json:"coin_buy,omitempty"`

	// coin sell
	CoinSell *Coin `json:"coin_sell,omitempty"`

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

	// id
	ID uint64 `json:"id,omitempty,string"`

	// owner
	Owner string `json:"owner,omitempty"`

	// price
	Price string `json:"price,omitempty"`

	// want buy
	WantBuy string `json:"want_buy,omitempty"`

	// want sell
	WantSell string `json:"want_sell,omitempty"`
}

LimitOrderResponse limit order response

swagger:model LimitOrderResponse

func (*LimitOrderResponse) ContextValidate added in v2.4.0

func (m *LimitOrderResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this limit order response based on the context it is used

func (*LimitOrderResponse) MarshalBinary added in v2.4.0

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

MarshalBinary interface implementation

func (*LimitOrderResponse) UnmarshalBinary added in v2.4.0

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

UnmarshalBinary interface implementation

func (*LimitOrderResponse) Validate added in v2.4.0

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

Validate validates this limit order response

type LimitOrdersOfPoolResponse added in v2.4.0

type LimitOrdersOfPoolResponse struct {

	// orders
	Orders []*LimitOrderResponse `json:"orders"`

	// pool price
	PoolPrice string `json:"pool_price,omitempty"`
}

LimitOrdersOfPoolResponse limit orders of pool response

swagger:model LimitOrdersOfPoolResponse

func (*LimitOrdersOfPoolResponse) ContextValidate added in v2.4.0

func (m *LimitOrdersOfPoolResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this limit orders of pool response based on the context it is used

func (*LimitOrdersOfPoolResponse) MarshalBinary added in v2.4.0

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

MarshalBinary interface implementation

func (*LimitOrdersOfPoolResponse) UnmarshalBinary added in v2.4.0

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

UnmarshalBinary interface implementation

func (*LimitOrdersOfPoolResponse) Validate added in v2.4.0

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

Validate validates this limit orders of pool response

type LimitOrdersResponse added in v2.4.0

type LimitOrdersResponse struct {

	// orders
	Orders []*LimitOrderResponse `json:"orders"`
}

LimitOrdersResponse limit orders response

swagger:model LimitOrdersResponse

func (*LimitOrdersResponse) ContextValidate added in v2.4.0

func (m *LimitOrdersResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this limit orders response based on the context it is used

func (*LimitOrdersResponse) MarshalBinary added in v2.4.0

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

MarshalBinary interface implementation

func (*LimitOrdersResponse) UnmarshalBinary added in v2.4.0

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

UnmarshalBinary interface implementation

func (*LimitOrdersResponse) Validate added in v2.4.0

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

Validate validates this limit orders response

type LockData added in v2.5.0

type LockData struct {
	DueBlock uint64 `json:"due_block,string"`
	Coin     *Coin  `json:"coin"`
	Value    string `json:"value"`
}

type LockStakeData added in v2.5.0

type LockStakeData struct {
}

type MaxGasPriceResponse

type MaxGasPriceResponse struct {

	// max gas price
	MaxGasPrice uint64 `json:"max_gas_price,omitempty,string"`
}

MaxGasPriceResponse max gas price response

swagger:model MaxGasPriceResponse

func (*MaxGasPriceResponse) ContextValidate added in v2.4.0

func (m *MaxGasPriceResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this max gas price response based on context it is used

func (*MaxGasPriceResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*MaxGasPriceResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MaxGasPriceResponse) Validate

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

Validate validates this max gas price response

type MinGasPriceResponse

type MinGasPriceResponse struct {

	// min gas price
	MinGasPrice uint64 `json:"min_gas_price,omitempty,string"`
}

MinGasPriceResponse min gas price response

swagger:model MinGasPriceResponse

func (*MinGasPriceResponse) ContextValidate added in v2.4.0

func (m *MinGasPriceResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this min gas price response based on context it is used

func (*MinGasPriceResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*MinGasPriceResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MinGasPriceResponse) Validate

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

Validate validates this min gas price response

type MintTokenData added in v2.2.0

type MintTokenData struct {
	Coin  *Coin  `json:"coin"`
	Value string `json:"value"`
}

type MissedBlocksResponse

type MissedBlocksResponse struct {

	// missed blocks
	MissedBlocks string `json:"missed_blocks,omitempty"`

	// missed blocks count
	MissedBlocksCount int64 `json:"missed_blocks_count,omitempty,string"`
}

MissedBlocksResponse missed blocks response

swagger:model MissedBlocksResponse

func (*MissedBlocksResponse) ContextValidate added in v2.4.0

func (m *MissedBlocksResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this missed blocks response based on context it is used

func (*MissedBlocksResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*MissedBlocksResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MissedBlocksResponse) Validate

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

Validate validates this missed blocks response

type MoveStakeData added in v2.2.0

type MoveStakeData struct {
	FromPubKey string `json:"from_pub_key"`
	ToPubKey   string `json:"to_pub_key"`
	Coin       *Coin  `json:"coin"`
	Value      string `json:"value"`
}

type MultiSendData

type MultiSendData struct {
	List []*SendData `json:"list"`
}

type Multisig added in v2.4.0

type Multisig struct {

	// addresses
	Addresses []string `json:"addresses"`

	// threshold
	Threshold uint64 `json:"threshold,omitempty,string"`

	// weights
	Weights intsAsStrings `json:"weights"`
}

Multisig multisig

swagger:model Multisig

func (*Multisig) ContextValidate added in v2.4.0

func (m *Multisig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this multisig based on context it is used

func (*Multisig) MarshalBinary added in v2.4.0

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

MarshalBinary interface implementation

func (*Multisig) UnmarshalBinary added in v2.4.0

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

UnmarshalBinary interface implementation

func (*Multisig) Validate added in v2.4.0

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

Validate validates this multisig

type NetInfoResponse

type NetInfoResponse struct {

	// count peers
	CountPeers int64 `json:"count_peers,omitempty,string"`

	// listeners
	Listeners []string `json:"listeners"`

	// listening
	Listening bool `json:"listening,omitempty"`

	// peers
	Peers []*NetInfoResponsePeer `json:"peers"`
}

NetInfoResponse net info response

swagger:model NetInfoResponse

func (*NetInfoResponse) ContextValidate added in v2.4.0

func (m *NetInfoResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this net info response based on the context it is used

func (*NetInfoResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*NetInfoResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetInfoResponse) Validate

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

Validate validates this net info response

type NetInfoResponsePeer

type NetInfoResponsePeer struct {

	// connection status
	ConnectionStatus *PeerConnectionStatus `json:"connection_status,omitempty"`

	// is outbound
	IsOutbound bool `json:"is_outbound,omitempty"`

	// Unknown while client is in fast_syncing mode
	LatestBlockHeight uint64 `json:"latest_block_height,omitempty"`

	// node info
	NodeInfo *NodeInfo `json:"node_info,omitempty"`

	// remote ip
	RemoteIP string `json:"remote_ip,omitempty"`
}

NetInfoResponsePeer net info response peer

swagger:model NetInfoResponsePeer

func (*NetInfoResponsePeer) ContextValidate added in v2.4.0

func (m *NetInfoResponsePeer) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this net info response peer based on the context it is used

func (*NetInfoResponsePeer) MarshalBinary

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

MarshalBinary interface implementation

func (*NetInfoResponsePeer) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NetInfoResponsePeer) Validate

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

Validate validates this net info response peer

type NodeInfo

type NodeInfo struct {

	// channels
	Channels string `json:"channels,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// listen addr
	ListenAddr string `json:"listen_addr,omitempty"`

	// moniker
	Moniker string `json:"moniker,omitempty"`

	// network
	Network string `json:"network,omitempty"`

	// other
	Other *NodeInfoOther `json:"other,omitempty"`

	// protocol version
	ProtocolVersion *NodeInfoProtocolVersion `json:"protocol_version,omitempty"`

	// version
	Version string `json:"version,omitempty"`
}

NodeInfo node info

swagger:model NodeInfo

func (*NodeInfo) ContextValidate added in v2.4.0

func (m *NodeInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this node info based on the context it is used

func (*NodeInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*NodeInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NodeInfo) Validate

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

Validate validates this node info

type NodeInfoOther

type NodeInfoOther struct {

	// rpc address
	RPCAddress string `json:"rpc_address,omitempty"`

	// tx index
	TxIndex string `json:"tx_index,omitempty"`
}

NodeInfoOther node info other

swagger:model NodeInfoOther

func (*NodeInfoOther) ContextValidate added in v2.4.0

func (m *NodeInfoOther) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this node info other based on context it is used

func (*NodeInfoOther) MarshalBinary

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

MarshalBinary interface implementation

func (*NodeInfoOther) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NodeInfoOther) Validate

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

Validate validates this node info other

type NodeInfoProtocolVersion

type NodeInfoProtocolVersion struct {

	// app
	App uint64 `json:"app,omitempty,string"`

	// block
	Block uint64 `json:"block,omitempty,string"`

	// p2p
	P2p uint64 `json:"p2p,omitempty,string"`
}

NodeInfoProtocolVersion node info protocol version

swagger:model NodeInfoProtocolVersion

func (*NodeInfoProtocolVersion) ContextValidate added in v2.4.0

func (m *NodeInfoProtocolVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this node info protocol version based on context it is used

func (*NodeInfoProtocolVersion) MarshalBinary

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

MarshalBinary interface implementation

func (*NodeInfoProtocolVersion) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*NodeInfoProtocolVersion) Validate

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

Validate validates this node info protocol version

type PeerConnectionStatus

type PeerConnectionStatus struct {

	// recv monitor
	RecvMonitor *ConnectionStatusMonitor `json:"RecvMonitor,omitempty"`

	// send monitor
	SendMonitor *ConnectionStatusMonitor `json:"SendMonitor,omitempty"`

	// channels
	Channels []*ConnectionStatusChannel `json:"channels"`

	// duration
	Duration uint64 `json:"duration,omitempty,string"`
}

PeerConnectionStatus peer connection status

swagger:model PeerConnectionStatus

func (*PeerConnectionStatus) ContextValidate added in v2.4.0

func (m *PeerConnectionStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this peer connection status based on the context it is used

func (*PeerConnectionStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*PeerConnectionStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PeerConnectionStatus) Validate

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

Validate validates this peer connection status

type PoolOrder added in v2.4.0

type PoolOrder struct {

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

	// id
	ID uint64 `json:"id,omitempty,string"`

	// is sale
	IsSale bool `json:"is_sale,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`

	// volume0
	Volume0 string `json:"volume0,omitempty"`

	// volume1
	Volume1 string `json:"volume1,omitempty"`
}

PoolOrder pool order

swagger:model PoolOrder

func (*PoolOrder) ContextValidate added in v2.4.0

func (m *PoolOrder) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this pool order based on context it is used

func (*PoolOrder) MarshalBinary added in v2.4.0

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

MarshalBinary interface implementation

func (*PoolOrder) UnmarshalBinary added in v2.4.0

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

UnmarshalBinary interface implementation

func (*PoolOrder) Validate added in v2.4.0

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

Validate validates this pool order

type PriceCommissionResponse added in v2.2.0

type PriceCommissionResponse struct {

	// add limit order
	AddLimitOrder string `json:"add_limit_order,omitempty"`

	// add liquidity
	AddLiquidity string `json:"add_liquidity,omitempty"`

	// burn token
	BurnToken string `json:"burn_token,omitempty"`

	// buy bancor
	BuyBancor string `json:"buy_bancor,omitempty"`

	// buy pool base
	BuyPoolBase string `json:"buy_pool_base,omitempty"`

	// buy pool delta
	BuyPoolDelta string `json:"buy_pool_delta,omitempty"`

	// coin
	Coin *Coin `json:"coin,omitempty"`

	// create coin
	CreateCoin string `json:"create_coin,omitempty"`

	// create multisig
	CreateMultisig string `json:"create_multisig,omitempty"`

	// create swap pool
	CreateSwapPool string `json:"create_swap_pool,omitempty"`

	// create ticker3
	CreateTicker3 string `json:"create_ticker3,omitempty"`

	// create ticker4
	CreateTicker4 string `json:"create_ticker4,omitempty"`

	// create ticker5
	CreateTicker5 string `json:"create_ticker5,omitempty"`

	// create ticker6
	CreateTicker6 string `json:"create_ticker6,omitempty"`

	// create ticker7 10
	CreateTicker710 string `json:"create_ticker7_10,omitempty"`

	// create token
	CreateToken string `json:"create_token,omitempty"`

	// declare candidacy
	DeclareCandidacy string `json:"declare_candidacy,omitempty"`

	// delegate
	Delegate string `json:"delegate,omitempty"`

	// edit candidate
	EditCandidate string `json:"edit_candidate,omitempty"`

	// edit candidate commission
	EditCandidateCommission string `json:"edit_candidate_commission,omitempty"`

	// edit candidate public key
	EditCandidatePublicKey string `json:"edit_candidate_public_key,omitempty"`

	// edit multisig
	EditMultisig string `json:"edit_multisig,omitempty"`

	// edit ticker owner
	EditTickerOwner string `json:"edit_ticker_owner,omitempty"`

	// failed tx
	FailedTx string `json:"failed_tx,omitempty"`

	// lock
	Lock string `json:"lock,omitempty"`

	// lock stake
	LockStake string `json:"lock_stake,omitempty"`

	// mint token
	MintToken string `json:"mint_token,omitempty"`

	// move stake
	MoveStake string `json:"move_stake,omitempty"`

	// multisend base
	MultisendBase string `json:"multisend_base,omitempty"`

	// multisend delta
	MultisendDelta string `json:"multisend_delta,omitempty"`

	// payload byte
	PayloadByte string `json:"payload_byte,omitempty"`

	// recreate coin
	RecreateCoin string `json:"recreate_coin,omitempty"`

	// recreate token
	RecreateToken string `json:"recreate_token,omitempty"`

	// redeem check
	RedeemCheck string `json:"redeem_check,omitempty"`

	// remove limit order
	RemoveLimitOrder string `json:"remove_limit_order,omitempty"`

	// remove liquidity
	RemoveLiquidity string `json:"remove_liquidity,omitempty"`

	// sell all bancor
	SellAllBancor string `json:"sell_all_bancor,omitempty"`

	// sell all pool base
	SellAllPoolBase string `json:"sell_all_pool_base,omitempty"`

	// sell all pool delta
	SellAllPoolDelta string `json:"sell_all_pool_delta,omitempty"`

	// sell bancor
	SellBancor string `json:"sell_bancor,omitempty"`

	// sell pool base
	SellPoolBase string `json:"sell_pool_base,omitempty"`

	// sell pool delta
	SellPoolDelta string `json:"sell_pool_delta,omitempty"`

	// send
	Send string `json:"send,omitempty"`

	// set candidate off
	SetCandidateOff string `json:"set_candidate_off,omitempty"`

	// set candidate on
	SetCandidateOn string `json:"set_candidate_on,omitempty"`

	// set halt block
	SetHaltBlock string `json:"set_halt_block,omitempty"`

	// unbond
	Unbond string `json:"unbond,omitempty"`

	// vote commission
	VoteCommission string `json:"vote_commission,omitempty"`

	// vote update
	VoteUpdate string `json:"vote_update,omitempty"`
}

PriceCommissionResponse price commission response

swagger:model PriceCommissionResponse

func (*PriceCommissionResponse) ContextValidate added in v2.4.0

func (m *PriceCommissionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this price commission response based on the context it is used

func (*PriceCommissionResponse) MarshalBinary added in v2.2.0

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

MarshalBinary interface implementation

func (*PriceCommissionResponse) UnmarshalBinary added in v2.2.0

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

UnmarshalBinary interface implementation

func (*PriceCommissionResponse) Validate added in v2.2.0

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

Validate validates this price commission response

type PriceVoteData

type PriceVoteData struct {
	Price string `json:"price"`
}

type PriceVotesResponse added in v2.2.0

type PriceVotesResponse struct {

	// price votes
	PriceVotes []*PriceVotesResponseVote `json:"price_votes"`
}

PriceVotesResponse price votes response

swagger:model PriceVotesResponse

func (*PriceVotesResponse) MarshalBinary added in v2.2.0

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

MarshalBinary interface implementation

func (*PriceVotesResponse) UnmarshalBinary added in v2.2.0

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

UnmarshalBinary interface implementation

func (*PriceVotesResponse) Validate added in v2.2.0

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

Validate validates this price votes response

type PriceVotesResponseVote added in v2.2.0

type PriceVotesResponseVote struct {

	// price
	Price *PriceCommissionResponse `json:"price,omitempty"`

	// public keys
	PublicKeys []string `json:"public_keys"`
}

PriceVotesResponseVote price votes response vote

swagger:model PriceVotesResponseVote

func (*PriceVotesResponseVote) MarshalBinary added in v2.2.0

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

MarshalBinary interface implementation

func (*PriceVotesResponseVote) UnmarshalBinary added in v2.2.0

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

UnmarshalBinary interface implementation

func (*PriceVotesResponseVote) Validate added in v2.2.0

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

Validate validates this price votes response vote

type ProtobufAny

type ProtobufAny map[string]interface{}

swagger:model protobufAny

func (*ProtobufAny) ContextValidate added in v2.4.0

func (m *ProtobufAny) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this protobuf any based on context it is used

func (*ProtobufAny) MarshalBinary

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

MarshalBinary interface implementation

func (*ProtobufAny) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProtobufAny) UnmarshalNew added in v2.1.0

func (m *ProtobufAny) UnmarshalNew() (Data, error)
Example
package main

import (
	"encoding/json"
	"fmt"

	"github.com/MinterTeam/minter-go-sdk/v2/api/http_client/models"
)

func main() {
	transactionResponse := models.TransactionResponse{
		TypeHex: "0x12",
		Type:    18,
		Data: &models.ProtobufAny{
			"@type":     "type.googleapis.com/api_pb.EditMultisigData",
			"threshold": "5",
			"weights":   []string{"1", "2", "3"},
			"addresses": []string{"Mx0", "Mx1", "Mx2"},
		},
	}
	data, _ := transactionResponse.Data.UnmarshalNew()
	editMultisigData := data.(*models.EditMultisigData)

	fmt.Printf("%T %[1]v\n", editMultisigData.Threshold)
	fmt.Printf("%T %[1]v\n", []uint64(editMultisigData.Weights))
	fmt.Printf("%T %[1]v\n", editMultisigData.Addresses)

	marshal, _ := json.Marshal(editMultisigData)
	fmt.Printf("%s", marshal)

}
Output:

uint64 5
[]uint64 [1 2 3]
[]string [Mx0 Mx1 Mx2]
{"threshold":"5","weights":["1","2","3"],"addresses":["Mx0","Mx1","Mx2"]}

func (*ProtobufAny) UnmarshalTo

func (m *ProtobufAny) UnmarshalTo(i Data) error

func (*ProtobufAny) Validate

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

Validate validates this protobuf any

type RecreateCoinData

type RecreateCoinData struct {
	Name                 string `json:"name"`
	Symbol               string `json:"symbol"`
	InitialAmount        string `json:"initial_amount"`
	InitialReserve       string `json:"initial_reserve"`
	ConstantReserveRatio uint64 `json:"constant_reserve_ratio,string"`
	MaxSupply            string `json:"max_supply"`
}

type RecreateTokenData added in v2.2.0

type RecreateTokenData struct {
	Name          string `json:"name"`
	Symbol        string `json:"symbol"`
	InitialAmount string `json:"initial_amount"`
	MaxSupply     string `json:"max_supply"`
	Mintable      bool   `json:"mintable"`
	Burnable      bool   `json:"burnable"`
}

type RedeemCheckData

type RedeemCheckData struct {
	RawCheck string `json:"raw_check"`
	Proof    string `json:"proof"`
}

type RemoveLimitOrderData added in v2.4.0

type RemoveLimitOrderData struct {
	Id uint64 `json:"id,string"`
}

type RemoveLiquidityData added in v2.2.0

type RemoveLiquidityData struct {
	Coin0          *Coin  `json:"coin0"`
	Coin1          *Coin  `json:"coin1"`
	Liquidity      string `json:"liquidity"`
	MinimumVolume0 string `json:"minimum_volume0"`
	MinimumVolume1 string `json:"minimum_volume1"`
}

type RuntimeStreamError

type RuntimeStreamError struct {

	// code
	Code int32 `json:"code,omitempty"`

	// details
	Details []*ProtobufAny `json:"details"`

	// error
	Error string `json:"error,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

RuntimeStreamError runtime stream error

swagger:model runtimeStreamError

func (*RuntimeStreamError) MarshalBinary

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

MarshalBinary interface implementation

func (*RuntimeStreamError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RuntimeStreamError) Validate

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

Validate validates this runtime stream error

type SellAllCoinData

type SellAllCoinData struct {
	CoinToSell        *Coin  `json:"coin_to_sell"`
	CoinToBuy         *Coin  `json:"coin_to_buy"`
	MinimumValueToBuy string `json:"minimum_value_to_buy"`
}

type SellAllSwapPoolData added in v2.2.0

type SellAllSwapPoolData struct {
	Coins             []*Coin `json:"coins"`
	MinimumValueToBuy string  `json:"minimum_value_to_buy"`
}

type SellCoinData

type SellCoinData struct {
	CoinToSell        *Coin  `json:"coin_to_sell"`
	ValueToSell       string `json:"value_to_sell"`
	CoinToBuy         *Coin  `json:"coin_to_buy"`
	MinimumValueToBuy string `json:"minimum_value_to_buy"`
}

type SellSwapPoolData added in v2.2.0

type SellSwapPoolData struct {
	Coins             []*Coin `json:"coins"`
	ValueToSell       string  `json:"value_to_sell"`
	MinimumValueToBuy string  `json:"minimum_value_to_buy"`
}

type SendData

type SendData struct {
	Coin  *Coin  `json:"coin"`
	To    string `json:"to"`
	Value string `json:"value"`
}

type SendTransactionRequest

type SendTransactionRequest struct {

	// tx
	Tx string `json:"tx,omitempty"`
}

SendTransactionRequest send transaction request

swagger:model SendTransactionRequest

func (*SendTransactionRequest) ContextValidate added in v2.4.0

func (m *SendTransactionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this send transaction request based on context it is used

func (*SendTransactionRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*SendTransactionRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SendTransactionRequest) Validate

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

Validate validates this send transaction request

type SendTransactionResponse

type SendTransactionResponse struct {

	// code
	Code uint64 `json:"code,omitempty,string"`

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

	// log
	Log string `json:"log,omitempty"`
}

SendTransactionResponse send transaction response Example: {"code":"0","hash":"Mt6019f740983dc43b53ea9c37891af0c9ce7251399ebaafc4ea56d68d665adfcb","log":""}

swagger:model SendTransactionResponse

func (*SendTransactionResponse) ContextValidate added in v2.4.0

func (m *SendTransactionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this send transaction response based on context it is used

func (*SendTransactionResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*SendTransactionResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SendTransactionResponse) Validate

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

Validate validates this send transaction response

type SetCandidateOffData

type SetCandidateOffData struct {
	PubKey string `json:"pub_key"`
}

type SetCandidateOnData

type SetCandidateOnData struct {
	PubKey string `json:"pub_key"`
}

type SetHaltBlockData

type SetHaltBlockData struct {
	PubKey string `json:"pub_key"`
	Height uint64 `json:"height,string"`
}

type StatusResponse

type StatusResponse struct {

	// catching up
	CatchingUp bool `json:"catching_up,omitempty"`

	// current emission
	CurrentEmission string `json:"current_emission,omitempty"`

	// initial height
	InitialHeight uint64 `json:"initial_height,omitempty,string"`

	// keep last states
	KeepLastStates uint64 `json:"keep_last_states,omitempty,string"`

	// latest app hash
	LatestAppHash string `json:"latest_app_hash,omitempty"`

	// latest block hash
	LatestBlockHash string `json:"latest_block_hash,omitempty"`

	// latest block height
	LatestBlockHeight uint64 `json:"latest_block_height,omitempty,string"`

	// latest block time
	LatestBlockTime string `json:"latest_block_time,omitempty"`

	// moniker
	Moniker string `json:"moniker,omitempty"`

	// network
	Network string `json:"network,omitempty"`

	// node id
	NodeID string `json:"node_id,omitempty"`

	// public key
	PublicKey string `json:"public_key,omitempty"`

	// total slashed
	TotalSlashed string `json:"total_slashed,omitempty"`

	// version
	Version string `json:"version,omitempty"`
}

StatusResponse status response

swagger:model StatusResponse

func (*StatusResponse) ContextValidate added in v2.4.0

func (m *StatusResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this status response based on context it is used

func (*StatusResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*StatusResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StatusResponse) Validate

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

Validate validates this status response

type SubscribeResponse

type SubscribeResponse struct {

	// data
	Data interface{} `json:"data,omitempty"`

	// events
	Events []*SubscribeResponseEvent `json:"events"`

	// query
	Query string `json:"query,omitempty"`
}

SubscribeResponse subscribe response

swagger:model SubscribeResponse

func (*SubscribeResponse) ContextValidate added in v2.4.0

func (m *SubscribeResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this subscribe response based on the context it is used

func (*SubscribeResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*SubscribeResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SubscribeResponse) Validate

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

Validate validates this subscribe response

type SubscribeResponseEvent

type SubscribeResponseEvent struct {

	// events
	Events []string `json:"events"`

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

SubscribeResponseEvent subscribe response event

swagger:model SubscribeResponseEvent

func (*SubscribeResponseEvent) ContextValidate added in v2.4.0

func (m *SubscribeResponseEvent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this subscribe response event based on context it is used

func (*SubscribeResponseEvent) MarshalBinary

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

MarshalBinary interface implementation

func (*SubscribeResponseEvent) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SubscribeResponseEvent) Validate

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

Validate validates this subscribe response event

type SwapFrom added in v2.2.0

type SwapFrom string

SwapFrom swap from

swagger:model SwapFrom

const (

	// SwapFromOptimal captures enum value "optimal"
	SwapFromOptimal SwapFrom = "optimal"

	// SwapFromBancor captures enum value "bancor"
	SwapFromBancor SwapFrom = "bancor"

	// SwapFromPool captures enum value "pool"
	SwapFromPool SwapFrom = "pool"
)

func NewSwapFrom added in v2.4.0

func NewSwapFrom(value SwapFrom) *SwapFrom

func (SwapFrom) ContextValidate added in v2.4.0

func (m SwapFrom) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this swap from based on context it is used

func (SwapFrom) Validate added in v2.2.0

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

Validate validates this swap from

type SwapPoolLimitOrder added in v2.5.0

type SwapPoolLimitOrder struct {

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

	// id
	ID uint64 `json:"id,omitempty,string"`

	// owner
	Owner string `json:"owner,omitempty"`

	// price
	Price string `json:"price,omitempty"`

	// want buy
	WantBuy string `json:"want_buy,omitempty"`

	// want sell
	WantSell string `json:"want_sell,omitempty"`
}

SwapPoolLimitOrder swap pool limit order

swagger:model SwapPoolLimitOrder

func (*SwapPoolLimitOrder) ContextValidate added in v2.5.0

func (m *SwapPoolLimitOrder) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this swap pool limit order based on context it is used

func (*SwapPoolLimitOrder) MarshalBinary added in v2.5.0

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

MarshalBinary interface implementation

func (*SwapPoolLimitOrder) UnmarshalBinary added in v2.5.0

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

UnmarshalBinary interface implementation

func (*SwapPoolLimitOrder) Validate added in v2.5.0

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

Validate validates this swap pool limit order

type SwapPoolResponse added in v2.2.0

type SwapPoolResponse struct {

	// amount0
	Amount0 string `json:"amount0,omitempty"`

	// amount1
	Amount1 string `json:"amount1,omitempty"`

	// id
	ID uint64 `json:"id,omitempty,string"`

	// liquidity
	Liquidity string `json:"liquidity,omitempty"`

	// price
	Price string `json:"price,omitempty"`
}

SwapPoolResponse swap pool response

swagger:model SwapPoolResponse

func (*SwapPoolResponse) ContextValidate added in v2.4.0

func (m *SwapPoolResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this swap pool response based on context it is used

func (*SwapPoolResponse) MarshalBinary added in v2.2.0

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

MarshalBinary interface implementation

func (*SwapPoolResponse) UnmarshalBinary added in v2.2.0

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

UnmarshalBinary interface implementation

func (*SwapPoolResponse) Validate added in v2.2.0

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

Validate validates this swap pool response

type SwapPoolsResponse added in v2.5.0

type SwapPoolsResponse struct {

	// pools
	Pools []*SwapPoolsResponseSwapPool `json:"pools"`
}

SwapPoolsResponse swap pools response

swagger:model SwapPoolsResponse

func (*SwapPoolsResponse) ContextValidate added in v2.5.0

func (m *SwapPoolsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this swap pools response based on the context it is used

func (*SwapPoolsResponse) MarshalBinary added in v2.5.0

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

MarshalBinary interface implementation

func (*SwapPoolsResponse) UnmarshalBinary added in v2.5.0

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

UnmarshalBinary interface implementation

func (*SwapPoolsResponse) Validate added in v2.5.0

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

Validate validates this swap pools response

type SwapPoolsResponseSwapPool added in v2.5.0

type SwapPoolsResponseSwapPool struct {

	// amount0
	Amount0 string `json:"amount0,omitempty"`

	// amount1
	Amount1 string `json:"amount1,omitempty"`

	// coin0
	Coin0 uint64 `json:"coin0,omitempty,string"`

	// coin1
	Coin1 uint64 `json:"coin1,omitempty,string"`

	// id
	ID uint64 `json:"id,omitempty,string"`

	// liquidity
	Liquidity string `json:"liquidity,omitempty"`

	// orders buy
	OrdersBuy []*SwapPoolLimitOrder `json:"orders_buy"`

	// orders sell
	OrdersSell []*SwapPoolLimitOrder `json:"orders_sell"`

	// price
	Price string `json:"price,omitempty"`
}

SwapPoolsResponseSwapPool swap pools response swap pool

swagger:model SwapPoolsResponseSwapPool

func (*SwapPoolsResponseSwapPool) ContextValidate added in v2.5.0

func (m *SwapPoolsResponseSwapPool) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this swap pools response swap pool based on the context it is used

func (*SwapPoolsResponseSwapPool) MarshalBinary added in v2.5.0

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

MarshalBinary interface implementation

func (*SwapPoolsResponseSwapPool) UnmarshalBinary added in v2.5.0

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

UnmarshalBinary interface implementation

func (*SwapPoolsResponseSwapPool) Validate added in v2.5.0

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

Validate validates this swap pools response swap pool

type TransactionResponse

type TransactionResponse struct {

	// code
	Code uint64 `json:"code,omitempty,string"`

	// data
	Data *ProtobufAny `json:"data,omitempty"`

	// from
	From string `json:"from,omitempty"`

	// gas
	Gas uint64 `json:"gas,omitempty,string"`

	// gas coin
	GasCoin *Coin `json:"gas_coin,omitempty"`

	// gas price
	GasPrice uint64 `json:"gas_price,omitempty,string"`

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

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

	// index
	Index uint64 `json:"index,omitempty,string"`

	// log
	Log string `json:"log,omitempty"`

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

	// payload
	// Format: byte
	Payload strfmt.Base64 `json:"payload,omitempty"`

	// raw tx
	RawTx string `json:"raw_tx,omitempty"`

	// service data
	// Format: byte
	ServiceData strfmt.Base64 `json:"service_data,omitempty"`

	// tags
	Tags map[string]string `json:"tags,omitempty"`

	// string type_name = 18;
	Type uint64 `json:"type,omitempty,string"`

	// type hex
	TypeHex string `json:"type_hex,omitempty"`
}

TransactionResponse transaction response

swagger:model TransactionResponse

func (*TransactionResponse) ContextValidate added in v2.4.0

func (m *TransactionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this transaction response based on the context it is used

func (*TransactionResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*TransactionResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TransactionResponse) Validate

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

Validate validates this transaction response

type TransactionsResponse

type TransactionsResponse struct {

	// transactions
	Transactions []*TransactionResponse `json:"transactions"`
}

TransactionsResponse transactions response

swagger:model TransactionsResponse

func (*TransactionsResponse) ContextValidate added in v2.4.0

func (m *TransactionsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this transactions response based on the context it is used

func (*TransactionsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*TransactionsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TransactionsResponse) Validate

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

Validate validates this transactions response

type UnbondData

type UnbondData struct {
	PubKey string `json:"pub_key"`
	Coin   *Coin  `json:"coin"`
	Value  string `json:"value"`
}

type UnconfirmedTxsResponse

type UnconfirmedTxsResponse struct {

	// total bytes
	TotalBytes uint64 `json:"total_bytes,omitempty,string"`

	// total transactions
	TotalTransactions uint64 `json:"total_transactions,omitempty,string"`

	// transaction count
	TransactionCount uint64 `json:"transaction_count,omitempty,string"`

	// transactions
	Transactions []string `json:"transactions"`
}

UnconfirmedTxsResponse unconfirmed txs response

swagger:model UnconfirmedTxsResponse

func (*UnconfirmedTxsResponse) ContextValidate added in v2.4.0

func (m *UnconfirmedTxsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this unconfirmed txs response based on context it is used

func (*UnconfirmedTxsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*UnconfirmedTxsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UnconfirmedTxsResponse) Validate

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

Validate validates this unconfirmed txs response

type UpdateVotesResponse added in v2.2.0

type UpdateVotesResponse struct {

	// votes
	Votes []*UpdateVotesResponseVote `json:"votes"`
}

UpdateVotesResponse update votes response

swagger:model UpdateVotesResponse

func (*UpdateVotesResponse) ContextValidate added in v2.4.0

func (m *UpdateVotesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update votes response based on the context it is used

func (*UpdateVotesResponse) MarshalBinary added in v2.2.0

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

MarshalBinary interface implementation

func (*UpdateVotesResponse) UnmarshalBinary added in v2.2.0

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

UnmarshalBinary interface implementation

func (*UpdateVotesResponse) Validate added in v2.2.0

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

Validate validates this update votes response

type UpdateVotesResponseVote added in v2.2.0

type UpdateVotesResponseVote struct {

	// public keys
	PublicKeys []string `json:"public_keys"`

	// version
	Version string `json:"version,omitempty"`
}

UpdateVotesResponseVote update votes response vote

swagger:model UpdateVotesResponseVote

func (*UpdateVotesResponseVote) ContextValidate added in v2.4.0

func (m *UpdateVotesResponseVote) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this update votes response vote based on context it is used

func (*UpdateVotesResponseVote) MarshalBinary added in v2.2.0

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

MarshalBinary interface implementation

func (*UpdateVotesResponseVote) UnmarshalBinary added in v2.2.0

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

UnmarshalBinary interface implementation

func (*UpdateVotesResponseVote) Validate added in v2.2.0

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

Validate validates this update votes response vote

type ValidatorsResponse

type ValidatorsResponse struct {

	// validators
	Validators []*ValidatorsResponseResult `json:"validators"`
}

ValidatorsResponse validators response

swagger:model ValidatorsResponse

func (*ValidatorsResponse) ContextValidate added in v2.4.0

func (m *ValidatorsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this validators response based on the context it is used

func (*ValidatorsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ValidatorsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ValidatorsResponse) Validate

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

Validate validates this validators response

type ValidatorsResponseResult

type ValidatorsResponseResult struct {

	// public key
	PublicKey string `json:"public_key,omitempty"`

	// voting power
	VotingPower uint64 `json:"voting_power,omitempty,string"`
}

ValidatorsResponseResult validators response result

swagger:model ValidatorsResponseResult

func (*ValidatorsResponseResult) ContextValidate added in v2.4.0

func (m *ValidatorsResponseResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this validators response result based on context it is used

func (*ValidatorsResponseResult) MarshalBinary

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

MarshalBinary interface implementation

func (*ValidatorsResponseResult) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ValidatorsResponseResult) Validate

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

Validate validates this validators response result

type VersionNetworkResponse added in v2.2.0

type VersionNetworkResponse struct {

	// current
	Current string `json:"current,omitempty"`

	// versions
	Versions []*VersionNetworkResponseVersion `json:"versions"`
}

VersionNetworkResponse version network response

swagger:model VersionNetworkResponse

func (*VersionNetworkResponse) ContextValidate added in v2.4.0

func (m *VersionNetworkResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this version network response based on the context it is used

func (*VersionNetworkResponse) MarshalBinary added in v2.2.0

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

MarshalBinary interface implementation

func (*VersionNetworkResponse) UnmarshalBinary added in v2.2.0

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

UnmarshalBinary interface implementation

func (*VersionNetworkResponse) Validate added in v2.2.0

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

Validate validates this version network response

type VersionNetworkResponseVersion added in v2.2.0

type VersionNetworkResponseVersion struct {

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

	// name
	Name string `json:"name,omitempty"`
}

VersionNetworkResponseVersion version network response version

swagger:model VersionNetworkResponseVersion

func (*VersionNetworkResponseVersion) ContextValidate added in v2.4.0

func (m *VersionNetworkResponseVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this version network response version based on context it is used

func (*VersionNetworkResponseVersion) MarshalBinary added in v2.2.0

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

MarshalBinary interface implementation

func (*VersionNetworkResponseVersion) UnmarshalBinary added in v2.2.0

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

UnmarshalBinary interface implementation

func (*VersionNetworkResponseVersion) Validate added in v2.2.0

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

Validate validates this version network response version

type VoteCommissionData added in v2.2.0

type VoteCommissionData struct {
	PubKey                  string `json:"pub_key"`
	Height                  uint64 `json:"height,string"`
	Coin                    *Coin  `json:"coin"`
	PayloadByte             string `json:"payload_byte"`
	Send                    string `json:"send"`
	BuyBancor               string `json:"buy_bancor"`
	SellBancor              string `json:"sell_bancor"`
	SellAllBancor           string `json:"sell_all_bancor"`
	BuyPoolBase             string `json:"buy_pool_base"`
	BuyPoolDelta            string `json:"buy_pool_delta"`
	SellPoolBase            string `json:"sell_pool_base"`
	SellPoolDelta           string `json:"sell_pool_delta"`
	SellAllPoolBase         string `json:"sell_all_pool_base"`
	SellAllPoolDelta        string `json:"sell_all_pool_delta"`
	CreateTicker3           string `json:"create_ticker3"`
	CreateTicker4           string `json:"create_ticker4"`
	CreateTicker5           string `json:"create_ticker5"`
	CreateTicker6           string `json:"create_ticker6"`
	CreateTicker7_10        string `json:"create_ticker7_10"`
	CreateCoin              string `json:"create_coin"`
	CreateToken             string `json:"create_token"`
	RecreateCoin            string `json:"recreate_coin"`
	RecreateToken           string `json:"recreate_token"`
	DeclareCandidacy        string `json:"declare_candidacy"`
	Delegate                string `json:"delegate"`
	Unbond                  string `json:"unbond"`
	RedeemCheck             string `json:"redeem_check"`
	SetCandidateOn          string `json:"set_candidate_on"`
	SetCandidateOff         string `json:"set_candidate_off"`
	CreateMultisig          string `json:"create_multisig"`
	MultisendBase           string `json:"multisend_base"`
	MultisendDelta          string `json:"multisend_delta"`
	EditCandidate           string `json:"edit_candidate"`
	SetHaltBlock            string `json:"set_halt_block"`
	EditTickerOwner         string `json:"edit_ticker_owner"`
	EditMultisig            string `json:"edit_multisig"`
	PriceVote               string `json:"price_vote"`
	EditCandidatePublicKey  string `json:"edit_candidate_public_key"`
	CreateSwapPool          string `json:"create_swap_pool"`
	AddLiquidity            string `json:"add_liquidity"`
	RemoveLiquidity         string `json:"remove_liquidity"`
	EditCandidateCommission string `json:"edit_candidate_commission"`
	MoveStake               string `json:"move_stake"`
	MintToken               string `json:"mint_token"`
	BurnToken               string `json:"burn_token"`
	VoteCommission          string `json:"vote_commission"`
	VoteUpdate              string `json:"vote_update"`
	FailedTx                string `json:"failed_tx"`
	AddLimitOrder           string `json:"add_limit_order"`
	RemoveLimitOrder        string `json:"remove_limit_order"`
}

type VoteUpdateData added in v2.2.0

type VoteUpdateData struct {
	PubKey  string `json:"pub_key"`
	Height  uint64 `json:"height,string"`
	Version string `json:"version"`
}

type WaitListResponse

type WaitListResponse struct {

	// list
	List []*WaitListResponseWait `json:"list"`
}

WaitListResponse wait list response

swagger:model WaitListResponse

func (*WaitListResponse) ContextValidate added in v2.4.0

func (m *WaitListResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this wait list response based on the context it is used

func (*WaitListResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*WaitListResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WaitListResponse) Validate

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

Validate validates this wait list response

type WaitListResponseWait

type WaitListResponseWait struct {

	// coin
	Coin *Coin `json:"coin,omitempty"`

	// public key
	PublicKey string `json:"public_key,omitempty"`

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

WaitListResponseWait wait list response wait

swagger:model WaitListResponseWait

func (*WaitListResponseWait) ContextValidate added in v2.4.0

func (m *WaitListResponseWait) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this wait list response wait based on the context it is used

func (*WaitListResponseWait) MarshalBinary

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

MarshalBinary interface implementation

func (*WaitListResponseWait) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*WaitListResponseWait) Validate

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

Validate validates this wait list response wait

type WaitListsResponse added in v2.6.1

type WaitListsResponse struct {

	// addresses
	Addresses []*WaitListsResponseAddress `json:"addresses"`
}

WaitListsResponse wait lists response

swagger:model WaitListsResponse

func (*WaitListsResponse) ContextValidate added in v2.6.1

func (m *WaitListsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this wait lists response based on the context it is used

func (*WaitListsResponse) MarshalBinary added in v2.6.1

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

MarshalBinary interface implementation

func (*WaitListsResponse) UnmarshalBinary added in v2.6.1

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

UnmarshalBinary interface implementation

func (*WaitListsResponse) Validate added in v2.6.1

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

Validate validates this wait lists response

type WaitListsResponseAddress added in v2.6.1

type WaitListsResponseAddress struct {

	// address
	Address string `json:"address,omitempty"`

	// list
	List []*WaitListsResponseAddressWait `json:"list"`
}

WaitListsResponseAddress wait lists response address

swagger:model WaitListsResponseAddress

func (*WaitListsResponseAddress) ContextValidate added in v2.6.1

func (m *WaitListsResponseAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this wait lists response address based on the context it is used

func (*WaitListsResponseAddress) MarshalBinary added in v2.6.1

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

MarshalBinary interface implementation

func (*WaitListsResponseAddress) UnmarshalBinary added in v2.6.1

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

UnmarshalBinary interface implementation

func (*WaitListsResponseAddress) Validate added in v2.6.1

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

Validate validates this wait lists response address

type WaitListsResponseAddressWait added in v2.6.1

type WaitListsResponseAddressWait struct {

	// coin
	Coin *Coin `json:"coin,omitempty"`

	// public key
	PublicKey string `json:"public_key,omitempty"`

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

WaitListsResponseAddressWait wait lists response address wait

swagger:model WaitListsResponseAddressWait

func (*WaitListsResponseAddressWait) ContextValidate added in v2.6.1

func (m *WaitListsResponseAddressWait) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this wait lists response address wait based on the context it is used

func (*WaitListsResponseAddressWait) MarshalBinary added in v2.6.1

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

MarshalBinary interface implementation

func (*WaitListsResponseAddressWait) UnmarshalBinary added in v2.6.1

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

UnmarshalBinary interface implementation

func (*WaitListsResponseAddressWait) Validate added in v2.6.1

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

Validate validates this wait lists response address wait

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL