Documentation
¶
Index ¶
- func ConvertStructToEvent(data interface{}) (api.Event, error)
- type AccountBalance
- type AccountMultisigData
- type AddLimitOrderData
- type AddLiquidityData
- type AddressBalance
- type AddressDelegatedBalance
- func (m *AddressDelegatedBalance) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AddressDelegatedBalance) MarshalBinary() ([]byte, error)
- func (m *AddressDelegatedBalance) UnmarshalBinary(b []byte) error
- func (m *AddressDelegatedBalance) Validate(formats strfmt.Registry) error
- type AddressResponse
- type AddressesResponse
- type AddressesResponseResult
- func (m *AddressesResponseResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AddressesResponseResult) MarshalBinary() ([]byte, error)
- func (m *AddressesResponseResult) UnmarshalBinary(b []byte) error
- func (m *AddressesResponseResult) Validate(formats strfmt.Registry) error
- type AppStateAccount
- type AppStateCandidate
- type AppStateCandidateStake
- func (m *AppStateCandidateStake) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AppStateCandidateStake) MarshalBinary() ([]byte, error)
- func (m *AppStateCandidateStake) UnmarshalBinary(b []byte) error
- func (m *AppStateCandidateStake) Validate(formats strfmt.Registry) error
- type AppStateCommission
- type AppStateCommissionVote
- func (m *AppStateCommissionVote) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AppStateCommissionVote) MarshalBinary() ([]byte, error)
- func (m *AppStateCommissionVote) UnmarshalBinary(b []byte) error
- func (m *AppStateCommissionVote) Validate(formats strfmt.Registry) error
- type AppStateDeletedCandidate
- func (m *AppStateDeletedCandidate) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AppStateDeletedCandidate) MarshalBinary() ([]byte, error)
- func (m *AppStateDeletedCandidate) UnmarshalBinary(b []byte) error
- func (m *AppStateDeletedCandidate) Validate(formats strfmt.Registry) error
- type AppStateFrozenFund
- type AppStateHaltBlock
- type AppStatePool
- type AppStateRewardPrice
- type AppStateUpdateVote
- type AppStateValidators
- type AppStateWaitlist
- type BestTradeRequestType
- type BestTradeResponse
- type BlockField
- type BlockResponse
- type BlockResponseEvidence
- type BlockResponseEvidenceEvidence
- type BlockResponseValidator
- func (m *BlockResponseValidator) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *BlockResponseValidator) MarshalBinary() ([]byte, error)
- func (m *BlockResponseValidator) UnmarshalBinary(b []byte) error
- func (m *BlockResponseValidator) Validate(formats strfmt.Registry) error
- type BlocksResponse
- type BurnTokenData
- type BuyCoinData
- type BuySwapPoolData
- type CandidateResponse
- type CandidateResponseStake
- func (m *CandidateResponseStake) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CandidateResponseStake) MarshalBinary() ([]byte, error)
- func (m *CandidateResponseStake) UnmarshalBinary(b []byte) error
- func (m *CandidateResponseStake) Validate(formats strfmt.Registry) error
- type CandidatesRequestCandidateStatus
- type CandidatesResponse
- type CandidatesResponseDeleted
- func (m *CandidatesResponseDeleted) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CandidatesResponseDeleted) MarshalBinary() ([]byte, error)
- func (m *CandidatesResponseDeleted) UnmarshalBinary(b []byte) error
- func (m *CandidatesResponseDeleted) Validate(formats strfmt.Registry) error
- type Coin
- type CoinInfoResponse
- type CommissionVotesResponse
- func (m *CommissionVotesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CommissionVotesResponse) MarshalBinary() ([]byte, error)
- func (m *CommissionVotesResponse) UnmarshalBinary(b []byte) error
- func (m *CommissionVotesResponse) Validate(formats strfmt.Registry) error
- type CommissionVotesResponseVote
- func (m *CommissionVotesResponseVote) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CommissionVotesResponseVote) MarshalBinary() ([]byte, error)
- func (m *CommissionVotesResponseVote) UnmarshalBinary(b []byte) error
- func (m *CommissionVotesResponseVote) Validate(formats strfmt.Registry) error
- type ConnectionStatusChannel
- func (m *ConnectionStatusChannel) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ConnectionStatusChannel) MarshalBinary() ([]byte, error)
- func (m *ConnectionStatusChannel) UnmarshalBinary(b []byte) error
- func (m *ConnectionStatusChannel) Validate(formats strfmt.Registry) error
- type ConnectionStatusMonitor
- func (m *ConnectionStatusMonitor) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ConnectionStatusMonitor) MarshalBinary() ([]byte, error)
- func (m *ConnectionStatusMonitor) UnmarshalBinary(b []byte) error
- func (m *ConnectionStatusMonitor) Validate(formats strfmt.Registry) error
- type ConsensusParamsBlock
- type CreateCoinData
- type CreateMultisigData
- type CreateSwapPoolData
- type CreateTokenData
- type Data
- type DeclareCandidacyData
- type DelegateData
- type EditCandidateCommission
- type EditCandidateData
- type EditCandidatePublicKeyData
- type EditCoinOwnerData
- type EditMultisigData
- type ErrorBody
- type ErrorBodyError
- type EstimateCoinBuyResponse
- func (m *EstimateCoinBuyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *EstimateCoinBuyResponse) MarshalBinary() ([]byte, error)
- func (m *EstimateCoinBuyResponse) UnmarshalBinary(b []byte) error
- func (m *EstimateCoinBuyResponse) Validate(formats strfmt.Registry) error
- type EstimateCoinSellAllResponse
- func (m *EstimateCoinSellAllResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *EstimateCoinSellAllResponse) MarshalBinary() ([]byte, error)
- func (m *EstimateCoinSellAllResponse) UnmarshalBinary(b []byte) error
- func (m *EstimateCoinSellAllResponse) Validate(formats strfmt.Registry) error
- type EstimateCoinSellResponse
- func (m *EstimateCoinSellResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *EstimateCoinSellResponse) MarshalBinary() ([]byte, error)
- func (m *EstimateCoinSellResponse) UnmarshalBinary(b []byte) error
- func (m *EstimateCoinSellResponse) Validate(formats strfmt.Registry) error
- type EstimateTxCommissionResponse
- func (m *EstimateTxCommissionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *EstimateTxCommissionResponse) MarshalBinary() ([]byte, error)
- func (m *EstimateTxCommissionResponse) UnmarshalBinary(b []byte) error
- func (m *EstimateTxCommissionResponse) Validate(formats strfmt.Registry) error
- type EventItem
- type EventsResponse
- type FrozenResponse
- type FrozenResponseFrozen
- type GatewayruntimeError
- type GenesisResponse
- type GenesisResponseAppState
- func (m *GenesisResponseAppState) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GenesisResponseAppState) MarshalBinary() ([]byte, error)
- func (m *GenesisResponseAppState) UnmarshalBinary(b []byte) error
- func (m *GenesisResponseAppState) Validate(formats strfmt.Registry) error
- type GenesisResponseAppStateCoin
- func (m *GenesisResponseAppStateCoin) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GenesisResponseAppStateCoin) MarshalBinary() ([]byte, error)
- func (m *GenesisResponseAppStateCoin) UnmarshalBinary(b []byte) error
- func (m *GenesisResponseAppStateCoin) Validate(formats strfmt.Registry) error
- type GenesisResponseAppStateVersion
- func (m *GenesisResponseAppStateVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GenesisResponseAppStateVersion) MarshalBinary() ([]byte, error)
- func (m *GenesisResponseAppStateVersion) UnmarshalBinary(b []byte) error
- func (m *GenesisResponseAppStateVersion) Validate(formats strfmt.Registry) error
- type GenesisResponseConsensusParams
- func (m *GenesisResponseConsensusParams) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GenesisResponseConsensusParams) MarshalBinary() ([]byte, error)
- func (m *GenesisResponseConsensusParams) UnmarshalBinary(b []byte) error
- func (m *GenesisResponseConsensusParams) Validate(formats strfmt.Registry) error
- type GenesisResponseConsensusParamsEvidence
- func (m *GenesisResponseConsensusParamsEvidence) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GenesisResponseConsensusParamsEvidence) MarshalBinary() ([]byte, error)
- func (m *GenesisResponseConsensusParamsEvidence) UnmarshalBinary(b []byte) error
- func (m *GenesisResponseConsensusParamsEvidence) Validate(formats strfmt.Registry) error
- type GenesisResponseConsensusParamsValidator
- func (m *GenesisResponseConsensusParamsValidator) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GenesisResponseConsensusParamsValidator) MarshalBinary() ([]byte, error)
- func (m *GenesisResponseConsensusParamsValidator) UnmarshalBinary(b []byte) error
- func (m *GenesisResponseConsensusParamsValidator) Validate(formats strfmt.Registry) error
- type GenesisResponseConsensusParamsVersion
- func (m *GenesisResponseConsensusParamsVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GenesisResponseConsensusParamsVersion) MarshalBinary() ([]byte, error)
- func (m *GenesisResponseConsensusParamsVersion) UnmarshalBinary(b []byte) error
- func (m *GenesisResponseConsensusParamsVersion) Validate(formats strfmt.Registry) error
- type HaltsResponse
- type LimitOrderResponse
- type LimitOrdersOfPoolResponse
- func (m *LimitOrdersOfPoolResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *LimitOrdersOfPoolResponse) MarshalBinary() ([]byte, error)
- func (m *LimitOrdersOfPoolResponse) UnmarshalBinary(b []byte) error
- func (m *LimitOrdersOfPoolResponse) Validate(formats strfmt.Registry) error
- type LimitOrdersResponse
- type LockData
- type LockStakeData
- type MaxGasPriceResponse
- type MinGasPriceResponse
- type MintTokenData
- type MissedBlocksResponse
- type MoveStakeData
- type MultiSendData
- type Multisig
- type NetInfoResponse
- type NetInfoResponsePeer
- type NodeInfo
- type NodeInfoOther
- type NodeInfoProtocolVersion
- func (m *NodeInfoProtocolVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *NodeInfoProtocolVersion) MarshalBinary() ([]byte, error)
- func (m *NodeInfoProtocolVersion) UnmarshalBinary(b []byte) error
- func (m *NodeInfoProtocolVersion) Validate(formats strfmt.Registry) error
- type PeerConnectionStatus
- type PoolOrder
- type PriceCommissionResponse
- func (m *PriceCommissionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PriceCommissionResponse) MarshalBinary() ([]byte, error)
- func (m *PriceCommissionResponse) UnmarshalBinary(b []byte) error
- func (m *PriceCommissionResponse) Validate(formats strfmt.Registry) error
- type PriceVoteData
- type PriceVotesResponse
- type PriceVotesResponseVote
- type ProtobufAny
- func (m *ProtobufAny) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ProtobufAny) MarshalBinary() ([]byte, error)
- func (m *ProtobufAny) UnmarshalBinary(b []byte) error
- func (m *ProtobufAny) UnmarshalNew() (Data, error)
- func (m *ProtobufAny) UnmarshalTo(i Data) error
- func (m *ProtobufAny) Validate(formats strfmt.Registry) error
- type RecreateCoinData
- type RecreateTokenData
- type RedeemCheckData
- type RemoveLimitOrderData
- type RemoveLiquidityData
- type RuntimeStreamError
- type SellAllCoinData
- type SellAllSwapPoolData
- type SellCoinData
- type SellSwapPoolData
- type SendData
- type SendTransactionRequest
- func (m *SendTransactionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SendTransactionRequest) MarshalBinary() ([]byte, error)
- func (m *SendTransactionRequest) UnmarshalBinary(b []byte) error
- func (m *SendTransactionRequest) Validate(formats strfmt.Registry) error
- type SendTransactionResponse
- func (m *SendTransactionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SendTransactionResponse) MarshalBinary() ([]byte, error)
- func (m *SendTransactionResponse) UnmarshalBinary(b []byte) error
- func (m *SendTransactionResponse) Validate(formats strfmt.Registry) error
- type SetCandidateOffData
- type SetCandidateOnData
- type SetHaltBlockData
- type StatusResponse
- type SubscribeResponse
- type SubscribeResponseEvent
- func (m *SubscribeResponseEvent) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SubscribeResponseEvent) MarshalBinary() ([]byte, error)
- func (m *SubscribeResponseEvent) UnmarshalBinary(b []byte) error
- func (m *SubscribeResponseEvent) Validate(formats strfmt.Registry) error
- type SwapFrom
- type SwapPoolLimitOrder
- type SwapPoolResponse
- type SwapPoolsResponse
- type SwapPoolsResponseSwapPool
- func (m *SwapPoolsResponseSwapPool) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SwapPoolsResponseSwapPool) MarshalBinary() ([]byte, error)
- func (m *SwapPoolsResponseSwapPool) UnmarshalBinary(b []byte) error
- func (m *SwapPoolsResponseSwapPool) Validate(formats strfmt.Registry) error
- type TransactionResponse
- type TransactionsResponse
- type UnbondData
- type UnconfirmedTxsResponse
- func (m *UnconfirmedTxsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *UnconfirmedTxsResponse) MarshalBinary() ([]byte, error)
- func (m *UnconfirmedTxsResponse) UnmarshalBinary(b []byte) error
- func (m *UnconfirmedTxsResponse) Validate(formats strfmt.Registry) error
- type UpdateVotesResponse
- type UpdateVotesResponseVote
- func (m *UpdateVotesResponseVote) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *UpdateVotesResponseVote) MarshalBinary() ([]byte, error)
- func (m *UpdateVotesResponseVote) UnmarshalBinary(b []byte) error
- func (m *UpdateVotesResponseVote) Validate(formats strfmt.Registry) error
- type ValidatorsResponse
- type ValidatorsResponseResult
- func (m *ValidatorsResponseResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ValidatorsResponseResult) MarshalBinary() ([]byte, error)
- func (m *ValidatorsResponseResult) UnmarshalBinary(b []byte) error
- func (m *ValidatorsResponseResult) Validate(formats strfmt.Registry) error
- type VersionNetworkResponse
- func (m *VersionNetworkResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *VersionNetworkResponse) MarshalBinary() ([]byte, error)
- func (m *VersionNetworkResponse) UnmarshalBinary(b []byte) error
- func (m *VersionNetworkResponse) Validate(formats strfmt.Registry) error
- type VersionNetworkResponseVersion
- func (m *VersionNetworkResponseVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *VersionNetworkResponseVersion) MarshalBinary() ([]byte, error)
- func (m *VersionNetworkResponseVersion) UnmarshalBinary(b []byte) error
- func (m *VersionNetworkResponseVersion) Validate(formats strfmt.Registry) error
- type VoteCommissionData
- type VoteUpdateData
- type WaitListResponse
- type WaitListResponseWait
- type WaitListsResponse
- type WaitListsResponseAddress
- func (m *WaitListsResponseAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *WaitListsResponseAddress) MarshalBinary() ([]byte, error)
- func (m *WaitListsResponseAddress) UnmarshalBinary(b []byte) error
- func (m *WaitListsResponseAddress) Validate(formats strfmt.Registry) error
- type WaitListsResponseAddressWait
- func (m *WaitListsResponseAddressWait) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *WaitListsResponseAddressWait) MarshalBinary() ([]byte, error)
- func (m *WaitListsResponseAddressWait) UnmarshalBinary(b []byte) error
- func (m *WaitListsResponseAddressWait) Validate(formats strfmt.Registry) error
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertStructToEvent ¶
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))
}
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
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
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
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
type AddLimitOrderData ¶ added in v2.4.0
type AddLiquidityData ¶ added in v2.2.0
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
ContextValidate validates this best trade request type based on context it is used
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
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
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
ContextValidate validates this block field based on context it is used
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
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
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
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
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
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
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
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
type BurnTokenData ¶ added in v2.2.0
type BuyCoinData ¶
type BuySwapPoolData ¶ added in v2.2.0
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
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
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
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
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
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
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
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
ContextValidate validates this coin based on context it is used
func (*Coin) MarshalBinary ¶
MarshalBinary interface implementation
func (*Coin) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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
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
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
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
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
type CreateCoinData ¶
type CreateMultisigData ¶
type CreateSwapPoolData ¶ added in v2.2.0
type CreateTokenData ¶ added in v2.2.0
type DeclareCandidacyData ¶
type DelegateData ¶
type EditCandidateCommission ¶ added in v2.2.0
type EditCandidateData ¶
type EditCoinOwnerData ¶
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
ContextValidate validate this error body based on the context it is used
func (*ErrorBody) MarshalBinary ¶
MarshalBinary interface implementation
func (*ErrorBody) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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
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
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
type EventItem ¶
EventItem is the structure of the EventsResponse view of list items
func NewEventItem ¶
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
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
type FrozenResponse ¶
type FrozenResponse struct {
// frozen
Frozen []*FrozenResponseFrozen `json:"frozen"`
}
FrozenResponse frozen response
swagger:model FrozenResponse
func (*FrozenResponse) ContextValidate ¶ added in v2.4.0
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
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
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
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
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
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
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
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
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
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
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
func (m *GenesisResponseConsensusParamsEvidence) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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
func (m *GenesisResponseConsensusParamsValidator) ContextValidate(ctx context.Context, formats strfmt.Registry) error
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
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
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
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
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
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
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
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
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
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
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
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
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
type MintTokenData ¶ added in v2.2.0
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
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
type MoveStakeData ¶ added in v2.2.0
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
ContextValidate validates this multisig based on context it is used
func (*Multisig) MarshalBinary ¶ added in v2.4.0
MarshalBinary interface implementation
func (*Multisig) UnmarshalBinary ¶ added in v2.4.0
UnmarshalBinary interface implementation
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
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
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
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
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
ContextValidate validate this node info based on the context it is used
func (*NodeInfo) MarshalBinary ¶
MarshalBinary interface implementation
func (*NodeInfo) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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
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
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
ContextValidate validates this pool order based on context it is used
func (*PoolOrder) MarshalBinary ¶ added in v2.4.0
MarshalBinary interface implementation
func (*PoolOrder) UnmarshalBinary ¶ added in v2.4.0
UnmarshalBinary interface implementation
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
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
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
type ProtobufAny ¶
type ProtobufAny map[string]interface{}
swagger:model protobufAny
func (*ProtobufAny) ContextValidate ¶ added in v2.4.0
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
type RecreateCoinData ¶
type RecreateTokenData ¶ added in v2.2.0
type RedeemCheckData ¶
type RemoveLimitOrderData ¶ added in v2.4.0
type RemoveLimitOrderData struct {
Id uint64 `json:"id,string"`
}
type RemoveLiquidityData ¶ added in v2.2.0
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
type SellAllCoinData ¶
type SellAllSwapPoolData ¶ added in v2.2.0
type SellCoinData ¶
type SellSwapPoolData ¶ added in v2.2.0
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
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
type SetCandidateOffData ¶
type SetCandidateOffData struct {
PubKey string `json:"pub_key"`
}
type SetCandidateOnData ¶
type SetCandidateOnData struct {
PubKey string `json:"pub_key"`
}
type SetHaltBlockData ¶
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
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
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
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
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
type SwapFrom ¶ added in v2.2.0
type SwapFrom string
SwapFrom swap from
swagger:model SwapFrom
func NewSwapFrom ¶ added in v2.4.0
func (SwapFrom) ContextValidate ¶ added in v2.4.0
ContextValidate validates this swap from based on context it is used
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
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
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
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
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
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
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
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
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
type TransactionsResponse ¶
type TransactionsResponse struct {
// transactions
Transactions []*TransactionResponse `json:"transactions"`
}
TransactionsResponse transactions response
swagger:model TransactionsResponse
func (*TransactionsResponse) ContextValidate ¶ added in v2.4.0
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
type UnbondData ¶
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
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
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
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
type ValidatorsResponse ¶
type ValidatorsResponse struct {
// validators
Validators []*ValidatorsResponseResult `json:"validators"`
}
ValidatorsResponse validators response
swagger:model ValidatorsResponse
func (*ValidatorsResponse) ContextValidate ¶ added in v2.4.0
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
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
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
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
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 WaitListResponse ¶
type WaitListResponse struct {
// list
List []*WaitListResponseWait `json:"list"`
}
WaitListResponse wait list response
swagger:model WaitListResponse
func (*WaitListResponse) ContextValidate ¶ added in v2.4.0
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
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
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
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
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
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
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
Source Files
¶
- account_balance.go
- account_multisig_data.go
- address_balance.go
- address_delegated_balance.go
- address_response.go
- addresses_response.go
- addresses_response_result.go
- app_state_account.go
- app_state_candidate.go
- app_state_candidate_stake.go
- app_state_commission.go
- app_state_commission_vote.go
- app_state_deleted_candidate.go
- app_state_frozen_fund.go
- app_state_halt_block.go
- app_state_pool.go
- app_state_reward_price.go
- app_state_update_vote.go
- app_state_validators.go
- app_state_waitlist.go
- best_trade_request_type.go
- best_trade_response.go
- block_field.go
- block_response.go
- block_response_evidence.go
- block_response_evidence_evidence.go
- block_response_validator.go
- blocks_response.go
- candidate_response.go
- candidate_response_stake.go
- candidates_request_candidate_status.go
- candidates_response.go
- candidates_response_deleted.go
- coin.go
- coin_info_response.go
- commission_votes_response.go
- commission_votes_response_vote.go
- connection_status_channel.go
- connection_status_monitor.go
- consensus_params_block.go
- error_body.go
- error_body_error.go
- estimate_coin_buy_response.go
- estimate_coin_sell_all_response.go
- estimate_coin_sell_response.go
- estimate_tx_commission_response.go
- events_response.go
- events_response_event_helper.go
- frozen_response.go
- frozen_response_frozen.go
- gatewayruntime_error.go
- genesis_response.go
- genesis_response_app_state.go
- genesis_response_app_state_coin.go
- genesis_response_app_state_version.go
- genesis_response_consensus_params.go
- genesis_response_consensus_params_evidence.go
- genesis_response_consensus_params_validator.go
- genesis_response_consensus_params_version.go
- halts_response.go
- limit_order_response.go
- limit_orders_of_pool_response.go
- limit_orders_response.go
- max_gas_price_response.go
- min_gas_price_response.go
- missed_blocks_response.go
- multisig.go
- net_info_response.go
- net_info_response_peer.go
- node_info.go
- node_info_other.go
- node_info_protocol_version.go
- peer_connection_status.go
- pool_order.go
- price_commission_response.go
- price_votes_response.go
- price_votes_response_vote.go
- protobuf_any_edited.go
- runtime_stream_error.go
- send_transaction_request.go
- send_transaction_response.go
- status_response.go
- subscribe_response.go
- subscribe_response_event.go
- swap_from.go
- swap_pool_limit_order.go
- swap_pool_response.go
- swap_pools_response.go
- swap_pools_response_swap_pool.go
- transaction_response.go
- transaction_response_data.go
- transactions_response.go
- unconfirmed_txs_response.go
- update_votes_response.go
- update_votes_response_vote.go
- validators_response.go
- validators_response_result.go
- version_network_response.go
- version_network_response_version.go
- wait_list_response.go
- wait_list_response_wait.go
- wait_lists_response.go
- wait_lists_response_address.go
- wait_lists_response_address_wait.go