Documentation ¶
Index ¶
- type AddressDefault
- type AddressOK
- type AddressParams
- func (o *AddressParams) SetAddress(address string)
- func (o *AddressParams) SetContext(ctx context.Context)
- func (o *AddressParams) SetDefaults()
- func (o *AddressParams) SetDelegated(delegated *bool)
- func (o *AddressParams) SetHTTPClient(client *http.Client)
- func (o *AddressParams) SetHeight(height *uint64)
- func (o *AddressParams) SetTimeout(timeout time.Duration)
- func (o *AddressParams) WithAddress(address string) *AddressParams
- func (o *AddressParams) WithContext(ctx context.Context) *AddressParams
- func (o *AddressParams) WithDefaults() *AddressParams
- func (o *AddressParams) WithDelegated(delegated *bool) *AddressParams
- func (o *AddressParams) WithHTTPClient(client *http.Client) *AddressParams
- func (o *AddressParams) WithHeight(height *uint64) *AddressParams
- func (o *AddressParams) WithTimeout(timeout time.Duration) *AddressParams
- func (o *AddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddressReader
- type AddressesDefault
- type AddressesOK
- type AddressesParams
- func (o *AddressesParams) SetAddresses(addresses []string)
- func (o *AddressesParams) SetContext(ctx context.Context)
- func (o *AddressesParams) SetDefaults()
- func (o *AddressesParams) SetDelegated(delegated *bool)
- func (o *AddressesParams) SetHTTPClient(client *http.Client)
- func (o *AddressesParams) SetHeight(height *uint64)
- func (o *AddressesParams) SetTimeout(timeout time.Duration)
- func (o *AddressesParams) WithAddresses(addresses []string) *AddressesParams
- func (o *AddressesParams) WithContext(ctx context.Context) *AddressesParams
- func (o *AddressesParams) WithDefaults() *AddressesParams
- func (o *AddressesParams) WithDelegated(delegated *bool) *AddressesParams
- func (o *AddressesParams) WithHTTPClient(client *http.Client) *AddressesParams
- func (o *AddressesParams) WithHeight(height *uint64) *AddressesParams
- func (o *AddressesParams) WithTimeout(timeout time.Duration) *AddressesParams
- func (o *AddressesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddressesReader
- type BestTradeDefault
- type BestTradeOK
- type BestTradeParams
- func (o *BestTradeParams) SetAmount(amount string)
- func (o *BestTradeParams) SetBuyCoin(buyCoin string)
- func (o *BestTradeParams) SetContext(ctx context.Context)
- func (o *BestTradeParams) SetDefaults()
- func (o *BestTradeParams) SetHTTPClient(client *http.Client)
- func (o *BestTradeParams) SetHeight(height *uint64)
- func (o *BestTradeParams) SetMaxDepth(maxDepth *int32)
- func (o *BestTradeParams) SetSellCoin(sellCoin string)
- func (o *BestTradeParams) SetTimeout(timeout time.Duration)
- func (o *BestTradeParams) SetType(typeVar string)
- func (o *BestTradeParams) WithAmount(amount string) *BestTradeParams
- func (o *BestTradeParams) WithBuyCoin(buyCoin string) *BestTradeParams
- func (o *BestTradeParams) WithContext(ctx context.Context) *BestTradeParams
- func (o *BestTradeParams) WithDefaults() *BestTradeParams
- func (o *BestTradeParams) WithHTTPClient(client *http.Client) *BestTradeParams
- func (o *BestTradeParams) WithHeight(height *uint64) *BestTradeParams
- func (o *BestTradeParams) WithMaxDepth(maxDepth *int32) *BestTradeParams
- func (o *BestTradeParams) WithSellCoin(sellCoin string) *BestTradeParams
- func (o *BestTradeParams) WithTimeout(timeout time.Duration) *BestTradeParams
- func (o *BestTradeParams) WithType(typeVar string) *BestTradeParams
- func (o *BestTradeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BestTradeReader
- type BlockDefault
- type BlockOK
- type BlockParams
- func (o *BlockParams) SetContext(ctx context.Context)
- func (o *BlockParams) SetDefaults()
- func (o *BlockParams) SetEvents(events *bool)
- func (o *BlockParams) SetFailedTxs(failedTxs *bool)
- func (o *BlockParams) SetFields(fields []string)
- func (o *BlockParams) SetHTTPClient(client *http.Client)
- func (o *BlockParams) SetHeight(height string)
- func (o *BlockParams) SetTimeout(timeout time.Duration)
- func (o *BlockParams) WithContext(ctx context.Context) *BlockParams
- func (o *BlockParams) WithDefaults() *BlockParams
- func (o *BlockParams) WithEvents(events *bool) *BlockParams
- func (o *BlockParams) WithFailedTxs(failedTxs *bool) *BlockParams
- func (o *BlockParams) WithFields(fields []string) *BlockParams
- func (o *BlockParams) WithHTTPClient(client *http.Client) *BlockParams
- func (o *BlockParams) WithHeight(height string) *BlockParams
- func (o *BlockParams) WithTimeout(timeout time.Duration) *BlockParams
- func (o *BlockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BlockReader
- type BlocksDefault
- type BlocksOK
- type BlocksParams
- func (o *BlocksParams) SetContext(ctx context.Context)
- func (o *BlocksParams) SetDefaults()
- func (o *BlocksParams) SetEvents(events *bool)
- func (o *BlocksParams) SetFailedTxs(failedTxs *bool)
- func (o *BlocksParams) SetFields(fields []string)
- func (o *BlocksParams) SetFromHeight(fromHeight uint64)
- func (o *BlocksParams) SetHTTPClient(client *http.Client)
- func (o *BlocksParams) SetTimeout(timeout time.Duration)
- func (o *BlocksParams) SetToHeight(toHeight uint64)
- func (o *BlocksParams) WithContext(ctx context.Context) *BlocksParams
- func (o *BlocksParams) WithDefaults() *BlocksParams
- func (o *BlocksParams) WithEvents(events *bool) *BlocksParams
- func (o *BlocksParams) WithFailedTxs(failedTxs *bool) *BlocksParams
- func (o *BlocksParams) WithFields(fields []string) *BlocksParams
- func (o *BlocksParams) WithFromHeight(fromHeight uint64) *BlocksParams
- func (o *BlocksParams) WithHTTPClient(client *http.Client) *BlocksParams
- func (o *BlocksParams) WithTimeout(timeout time.Duration) *BlocksParams
- func (o *BlocksParams) WithToHeight(toHeight uint64) *BlocksParams
- func (o *BlocksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BlocksReader
- type CandidateDefault
- type CandidateOK
- type CandidateParams
- func (o *CandidateParams) SetContext(ctx context.Context)
- func (o *CandidateParams) SetDefaults()
- func (o *CandidateParams) SetHTTPClient(client *http.Client)
- func (o *CandidateParams) SetHeight(height *uint64)
- func (o *CandidateParams) SetNotShowStakes(notShowStakes *bool)
- func (o *CandidateParams) SetPublicKey(publicKey string)
- func (o *CandidateParams) SetTimeout(timeout time.Duration)
- func (o *CandidateParams) WithContext(ctx context.Context) *CandidateParams
- func (o *CandidateParams) WithDefaults() *CandidateParams
- func (o *CandidateParams) WithHTTPClient(client *http.Client) *CandidateParams
- func (o *CandidateParams) WithHeight(height *uint64) *CandidateParams
- func (o *CandidateParams) WithNotShowStakes(notShowStakes *bool) *CandidateParams
- func (o *CandidateParams) WithPublicKey(publicKey string) *CandidateParams
- func (o *CandidateParams) WithTimeout(timeout time.Duration) *CandidateParams
- func (o *CandidateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CandidateReader
- type CandidatesDefault
- type CandidatesOK
- type CandidatesParams
- func (o *CandidatesParams) SetContext(ctx context.Context)
- func (o *CandidatesParams) SetDefaults()
- func (o *CandidatesParams) SetHTTPClient(client *http.Client)
- func (o *CandidatesParams) SetHeight(height *uint64)
- func (o *CandidatesParams) SetIncludeStakes(includeStakes *bool)
- func (o *CandidatesParams) SetNotShowStakes(notShowStakes *bool)
- func (o *CandidatesParams) SetStatus(status *string)
- func (o *CandidatesParams) SetTimeout(timeout time.Duration)
- func (o *CandidatesParams) WithContext(ctx context.Context) *CandidatesParams
- func (o *CandidatesParams) WithDefaults() *CandidatesParams
- func (o *CandidatesParams) WithHTTPClient(client *http.Client) *CandidatesParams
- func (o *CandidatesParams) WithHeight(height *uint64) *CandidatesParams
- func (o *CandidatesParams) WithIncludeStakes(includeStakes *bool) *CandidatesParams
- func (o *CandidatesParams) WithNotShowStakes(notShowStakes *bool) *CandidatesParams
- func (o *CandidatesParams) WithStatus(status *string) *CandidatesParams
- func (o *CandidatesParams) WithTimeout(timeout time.Duration) *CandidatesParams
- func (o *CandidatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CandidatesReader
- type Client
- func (a *Client) Address(params *AddressParams, opts ...ClientOption) (*AddressOK, error)
- func (a *Client) Addresses(params *AddressesParams, opts ...ClientOption) (*AddressesOK, error)
- func (a *Client) BestTrade(params *BestTradeParams, opts ...ClientOption) (*BestTradeOK, error)
- func (a *Client) Block(params *BlockParams, opts ...ClientOption) (*BlockOK, error)
- func (a *Client) Blocks(params *BlocksParams, opts ...ClientOption) (*BlocksOK, error)
- func (a *Client) Candidate(params *CandidateParams, opts ...ClientOption) (*CandidateOK, error)
- func (a *Client) Candidates(params *CandidatesParams, opts ...ClientOption) (*CandidatesOK, error)
- func (a *Client) CoinInfo(params *CoinInfoParams, opts ...ClientOption) (*CoinInfoOK, error)
- func (a *Client) CoinInfoByID(params *CoinInfoByIDParams, opts ...ClientOption) (*CoinInfoByIDOK, error)
- func (a *Client) CommissionVotes(params *CommissionVotesParams, opts ...ClientOption) (*CommissionVotesOK, error)
- func (a *Client) EstimateCoinBuy(params *EstimateCoinBuyParams, opts ...ClientOption) (*EstimateCoinBuyOK, error)
- func (a *Client) EstimateCoinSell(params *EstimateCoinSellParams, opts ...ClientOption) (*EstimateCoinSellOK, error)
- func (a *Client) EstimateCoinSellAll(params *EstimateCoinSellAllParams, opts ...ClientOption) (*EstimateCoinSellAllOK, error)
- func (a *Client) EstimateTxCommission(params *EstimateTxCommissionParams, opts ...ClientOption) (*EstimateTxCommissionOK, error)
- func (a *Client) Events(params *EventsParams, opts ...ClientOption) (*EventsOK, error)
- func (a *Client) Frozen(params *FrozenParams, opts ...ClientOption) (*FrozenOK, error)
- func (a *Client) FrozenAll(params *FrozenAllParams, opts ...ClientOption) (*FrozenAllOK, error)
- func (a *Client) Genesis(params *GenesisParams, opts ...ClientOption) (*GenesisOK, error)
- func (a *Client) Halts(params *HaltsParams, opts ...ClientOption) (*HaltsOK, error)
- func (a *Client) LimitOrder(params *LimitOrderParams, opts ...ClientOption) (*LimitOrderOK, error)
- func (a *Client) LimitOrders(params *LimitOrdersParams, opts ...ClientOption) (*LimitOrdersOK, error)
- func (a *Client) LimitOrdersOfPool(params *LimitOrdersOfPoolParams, opts ...ClientOption) (*LimitOrdersOfPoolOK, error)
- func (a *Client) MaxGasPrice(params *MaxGasPriceParams, opts ...ClientOption) (*MaxGasPriceOK, error)
- func (a *Client) MinGasPrice(params *MinGasPriceParams, opts ...ClientOption) (*MinGasPriceOK, error)
- func (a *Client) MissedBlocks(params *MissedBlocksParams, opts ...ClientOption) (*MissedBlocksOK, error)
- func (a *Client) NetInfo(params *NetInfoParams, opts ...ClientOption) (*NetInfoOK, error)
- func (a *Client) PriceCommission(params *PriceCommissionParams, opts ...ClientOption) (*PriceCommissionOK, error)
- func (a *Client) SendTransaction(params *SendTransactionParams, opts ...ClientOption) (*SendTransactionOK, error)
- func (a *Client) SendTransaction2(params *SendTransaction2Params, opts ...ClientOption) (*SendTransaction2OK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) Status(params *StatusParams, opts ...ClientOption) (*StatusOK, error)
- func (a *Client) Subscribe(params *SubscribeParams, opts ...ClientOption) (*SubscribeOK, error)
- func (a *Client) SwapPool(params *SwapPoolParams, opts ...ClientOption) (*SwapPoolOK, error)
- func (a *Client) SwapPoolProvider(params *SwapPoolProviderParams, opts ...ClientOption) (*SwapPoolProviderOK, error)
- func (a *Client) SwapPools(params *SwapPoolsParams, opts ...ClientOption) (*SwapPoolsOK, error)
- func (a *Client) TestBlock(params *TestBlockParams, opts ...ClientOption) (*TestBlockOK, error)
- func (a *Client) Transaction(params *TransactionParams, opts ...ClientOption) (*TransactionOK, error)
- func (a *Client) Transactions(params *TransactionsParams, opts ...ClientOption) (*TransactionsOK, error)
- func (a *Client) UnconfirmedTxs(params *UnconfirmedTxsParams, opts ...ClientOption) (*UnconfirmedTxsOK, error)
- func (a *Client) UpdateVotes(params *UpdateVotesParams, opts ...ClientOption) (*UpdateVotesOK, error)
- func (a *Client) Validators(params *ValidatorsParams, opts ...ClientOption) (*ValidatorsOK, error)
- func (a *Client) VersionNetwork(params *VersionNetworkParams, opts ...ClientOption) (*VersionNetworkOK, error)
- func (a *Client) WaitList(params *WaitListParams, opts ...ClientOption) (*WaitListOK, error)
- type ClientOption
- type ClientService
- type CoinInfoByIDDefault
- type CoinInfoByIDOK
- type CoinInfoByIDParams
- func (o *CoinInfoByIDParams) SetContext(ctx context.Context)
- func (o *CoinInfoByIDParams) SetDefaults()
- func (o *CoinInfoByIDParams) SetHTTPClient(client *http.Client)
- func (o *CoinInfoByIDParams) SetHeight(height *uint64)
- func (o *CoinInfoByIDParams) SetID(id string)
- func (o *CoinInfoByIDParams) SetTimeout(timeout time.Duration)
- func (o *CoinInfoByIDParams) WithContext(ctx context.Context) *CoinInfoByIDParams
- func (o *CoinInfoByIDParams) WithDefaults() *CoinInfoByIDParams
- func (o *CoinInfoByIDParams) WithHTTPClient(client *http.Client) *CoinInfoByIDParams
- func (o *CoinInfoByIDParams) WithHeight(height *uint64) *CoinInfoByIDParams
- func (o *CoinInfoByIDParams) WithID(id string) *CoinInfoByIDParams
- func (o *CoinInfoByIDParams) WithTimeout(timeout time.Duration) *CoinInfoByIDParams
- func (o *CoinInfoByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CoinInfoByIDReader
- type CoinInfoDefault
- type CoinInfoOK
- type CoinInfoParams
- func (o *CoinInfoParams) SetContext(ctx context.Context)
- func (o *CoinInfoParams) SetDefaults()
- func (o *CoinInfoParams) SetHTTPClient(client *http.Client)
- func (o *CoinInfoParams) SetHeight(height *uint64)
- func (o *CoinInfoParams) SetSymbol(symbol string)
- func (o *CoinInfoParams) SetTimeout(timeout time.Duration)
- func (o *CoinInfoParams) WithContext(ctx context.Context) *CoinInfoParams
- func (o *CoinInfoParams) WithDefaults() *CoinInfoParams
- func (o *CoinInfoParams) WithHTTPClient(client *http.Client) *CoinInfoParams
- func (o *CoinInfoParams) WithHeight(height *uint64) *CoinInfoParams
- func (o *CoinInfoParams) WithSymbol(symbol string) *CoinInfoParams
- func (o *CoinInfoParams) WithTimeout(timeout time.Duration) *CoinInfoParams
- func (o *CoinInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CoinInfoReader
- type CommissionVotesDefault
- type CommissionVotesOK
- type CommissionVotesParams
- func NewCommissionVotesParams() *CommissionVotesParams
- func NewCommissionVotesParamsWithContext(ctx context.Context) *CommissionVotesParams
- func NewCommissionVotesParamsWithHTTPClient(client *http.Client) *CommissionVotesParams
- func NewCommissionVotesParamsWithTimeout(timeout time.Duration) *CommissionVotesParams
- func (o *CommissionVotesParams) SetContext(ctx context.Context)
- func (o *CommissionVotesParams) SetDefaults()
- func (o *CommissionVotesParams) SetHTTPClient(client *http.Client)
- func (o *CommissionVotesParams) SetHeight(height *uint64)
- func (o *CommissionVotesParams) SetTargetVersion(targetVersion string)
- func (o *CommissionVotesParams) SetTimeout(timeout time.Duration)
- func (o *CommissionVotesParams) WithContext(ctx context.Context) *CommissionVotesParams
- func (o *CommissionVotesParams) WithDefaults() *CommissionVotesParams
- func (o *CommissionVotesParams) WithHTTPClient(client *http.Client) *CommissionVotesParams
- func (o *CommissionVotesParams) WithHeight(height *uint64) *CommissionVotesParams
- func (o *CommissionVotesParams) WithTargetVersion(targetVersion string) *CommissionVotesParams
- func (o *CommissionVotesParams) WithTimeout(timeout time.Duration) *CommissionVotesParams
- func (o *CommissionVotesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CommissionVotesReader
- type EstimateCoinBuyDefault
- type EstimateCoinBuyOK
- type EstimateCoinBuyParams
- func NewEstimateCoinBuyParams() *EstimateCoinBuyParams
- func NewEstimateCoinBuyParamsWithContext(ctx context.Context) *EstimateCoinBuyParams
- func NewEstimateCoinBuyParamsWithHTTPClient(client *http.Client) *EstimateCoinBuyParams
- func NewEstimateCoinBuyParamsWithTimeout(timeout time.Duration) *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) SetCoinCommission(coinCommission *string)
- func (o *EstimateCoinBuyParams) SetCoinIDCommission(coinIDCommission *uint64)
- func (o *EstimateCoinBuyParams) SetCoinIDToBuy(coinIDToBuy *uint64)
- func (o *EstimateCoinBuyParams) SetCoinIDToSell(coinIDToSell *uint64)
- func (o *EstimateCoinBuyParams) SetCoinToBuy(coinToBuy *string)
- func (o *EstimateCoinBuyParams) SetCoinToSell(coinToSell *string)
- func (o *EstimateCoinBuyParams) SetContext(ctx context.Context)
- func (o *EstimateCoinBuyParams) SetDefaults()
- func (o *EstimateCoinBuyParams) SetHTTPClient(client *http.Client)
- func (o *EstimateCoinBuyParams) SetHeight(height *uint64)
- func (o *EstimateCoinBuyParams) SetRoute(route []string)
- func (o *EstimateCoinBuyParams) SetSwapFrom(swapFrom *string)
- func (o *EstimateCoinBuyParams) SetTimeout(timeout time.Duration)
- func (o *EstimateCoinBuyParams) SetValueToBuy(valueToBuy string)
- func (o *EstimateCoinBuyParams) WithCoinCommission(coinCommission *string) *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) WithCoinIDCommission(coinIDCommission *uint64) *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) WithCoinIDToBuy(coinIDToBuy *uint64) *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) WithCoinIDToSell(coinIDToSell *uint64) *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) WithCoinToBuy(coinToBuy *string) *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) WithCoinToSell(coinToSell *string) *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) WithContext(ctx context.Context) *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) WithDefaults() *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) WithHTTPClient(client *http.Client) *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) WithHeight(height *uint64) *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) WithRoute(route []string) *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) WithSwapFrom(swapFrom *string) *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) WithTimeout(timeout time.Duration) *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) WithValueToBuy(valueToBuy string) *EstimateCoinBuyParams
- func (o *EstimateCoinBuyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EstimateCoinBuyReader
- type EstimateCoinSellAllDefault
- type EstimateCoinSellAllOK
- type EstimateCoinSellAllParams
- func NewEstimateCoinSellAllParams() *EstimateCoinSellAllParams
- func NewEstimateCoinSellAllParamsWithContext(ctx context.Context) *EstimateCoinSellAllParams
- func NewEstimateCoinSellAllParamsWithHTTPClient(client *http.Client) *EstimateCoinSellAllParams
- func NewEstimateCoinSellAllParamsWithTimeout(timeout time.Duration) *EstimateCoinSellAllParams
- func (o *EstimateCoinSellAllParams) SetCoinIDToBuy(coinIDToBuy *uint64)
- func (o *EstimateCoinSellAllParams) SetCoinIDToSell(coinIDToSell *uint64)
- func (o *EstimateCoinSellAllParams) SetCoinToBuy(coinToBuy *string)
- func (o *EstimateCoinSellAllParams) SetCoinToSell(coinToSell *string)
- func (o *EstimateCoinSellAllParams) SetContext(ctx context.Context)
- func (o *EstimateCoinSellAllParams) SetDefaults()
- func (o *EstimateCoinSellAllParams) SetGasPrice(gasPrice *uint64)
- func (o *EstimateCoinSellAllParams) SetHTTPClient(client *http.Client)
- func (o *EstimateCoinSellAllParams) SetHeight(height *uint64)
- func (o *EstimateCoinSellAllParams) SetRoute(route []string)
- func (o *EstimateCoinSellAllParams) SetSwapFrom(swapFrom *string)
- func (o *EstimateCoinSellAllParams) SetTimeout(timeout time.Duration)
- func (o *EstimateCoinSellAllParams) SetValueToSell(valueToSell string)
- func (o *EstimateCoinSellAllParams) WithCoinIDToBuy(coinIDToBuy *uint64) *EstimateCoinSellAllParams
- func (o *EstimateCoinSellAllParams) WithCoinIDToSell(coinIDToSell *uint64) *EstimateCoinSellAllParams
- func (o *EstimateCoinSellAllParams) WithCoinToBuy(coinToBuy *string) *EstimateCoinSellAllParams
- func (o *EstimateCoinSellAllParams) WithCoinToSell(coinToSell *string) *EstimateCoinSellAllParams
- func (o *EstimateCoinSellAllParams) WithContext(ctx context.Context) *EstimateCoinSellAllParams
- func (o *EstimateCoinSellAllParams) WithDefaults() *EstimateCoinSellAllParams
- func (o *EstimateCoinSellAllParams) WithGasPrice(gasPrice *uint64) *EstimateCoinSellAllParams
- func (o *EstimateCoinSellAllParams) WithHTTPClient(client *http.Client) *EstimateCoinSellAllParams
- func (o *EstimateCoinSellAllParams) WithHeight(height *uint64) *EstimateCoinSellAllParams
- func (o *EstimateCoinSellAllParams) WithRoute(route []string) *EstimateCoinSellAllParams
- func (o *EstimateCoinSellAllParams) WithSwapFrom(swapFrom *string) *EstimateCoinSellAllParams
- func (o *EstimateCoinSellAllParams) WithTimeout(timeout time.Duration) *EstimateCoinSellAllParams
- func (o *EstimateCoinSellAllParams) WithValueToSell(valueToSell string) *EstimateCoinSellAllParams
- func (o *EstimateCoinSellAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EstimateCoinSellAllReader
- type EstimateCoinSellDefault
- type EstimateCoinSellOK
- type EstimateCoinSellParams
- func NewEstimateCoinSellParams() *EstimateCoinSellParams
- func NewEstimateCoinSellParamsWithContext(ctx context.Context) *EstimateCoinSellParams
- func NewEstimateCoinSellParamsWithHTTPClient(client *http.Client) *EstimateCoinSellParams
- func NewEstimateCoinSellParamsWithTimeout(timeout time.Duration) *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) SetCoinCommission(coinCommission *string)
- func (o *EstimateCoinSellParams) SetCoinIDCommission(coinIDCommission *uint64)
- func (o *EstimateCoinSellParams) SetCoinIDToBuy(coinIDToBuy *uint64)
- func (o *EstimateCoinSellParams) SetCoinIDToSell(coinIDToSell *uint64)
- func (o *EstimateCoinSellParams) SetCoinToBuy(coinToBuy *string)
- func (o *EstimateCoinSellParams) SetCoinToSell(coinToSell *string)
- func (o *EstimateCoinSellParams) SetContext(ctx context.Context)
- func (o *EstimateCoinSellParams) SetDefaults()
- func (o *EstimateCoinSellParams) SetHTTPClient(client *http.Client)
- func (o *EstimateCoinSellParams) SetHeight(height *uint64)
- func (o *EstimateCoinSellParams) SetRoute(route []string)
- func (o *EstimateCoinSellParams) SetSwapFrom(swapFrom *string)
- func (o *EstimateCoinSellParams) SetTimeout(timeout time.Duration)
- func (o *EstimateCoinSellParams) SetValueToSell(valueToSell string)
- func (o *EstimateCoinSellParams) WithCoinCommission(coinCommission *string) *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) WithCoinIDCommission(coinIDCommission *uint64) *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) WithCoinIDToBuy(coinIDToBuy *uint64) *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) WithCoinIDToSell(coinIDToSell *uint64) *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) WithCoinToBuy(coinToBuy *string) *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) WithCoinToSell(coinToSell *string) *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) WithContext(ctx context.Context) *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) WithDefaults() *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) WithHTTPClient(client *http.Client) *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) WithHeight(height *uint64) *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) WithRoute(route []string) *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) WithSwapFrom(swapFrom *string) *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) WithTimeout(timeout time.Duration) *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) WithValueToSell(valueToSell string) *EstimateCoinSellParams
- func (o *EstimateCoinSellParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EstimateCoinSellReader
- type EstimateTxCommissionDefault
- type EstimateTxCommissionOK
- type EstimateTxCommissionParams
- func NewEstimateTxCommissionParams() *EstimateTxCommissionParams
- func NewEstimateTxCommissionParamsWithContext(ctx context.Context) *EstimateTxCommissionParams
- func NewEstimateTxCommissionParamsWithHTTPClient(client *http.Client) *EstimateTxCommissionParams
- func NewEstimateTxCommissionParamsWithTimeout(timeout time.Duration) *EstimateTxCommissionParams
- func (o *EstimateTxCommissionParams) SetContext(ctx context.Context)
- func (o *EstimateTxCommissionParams) SetDefaults()
- func (o *EstimateTxCommissionParams) SetHTTPClient(client *http.Client)
- func (o *EstimateTxCommissionParams) SetHeight(height *uint64)
- func (o *EstimateTxCommissionParams) SetTimeout(timeout time.Duration)
- func (o *EstimateTxCommissionParams) SetTx(tx string)
- func (o *EstimateTxCommissionParams) WithContext(ctx context.Context) *EstimateTxCommissionParams
- func (o *EstimateTxCommissionParams) WithDefaults() *EstimateTxCommissionParams
- func (o *EstimateTxCommissionParams) WithHTTPClient(client *http.Client) *EstimateTxCommissionParams
- func (o *EstimateTxCommissionParams) WithHeight(height *uint64) *EstimateTxCommissionParams
- func (o *EstimateTxCommissionParams) WithTimeout(timeout time.Duration) *EstimateTxCommissionParams
- func (o *EstimateTxCommissionParams) WithTx(tx string) *EstimateTxCommissionParams
- func (o *EstimateTxCommissionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EstimateTxCommissionReader
- type EventsDefault
- type EventsOK
- type EventsParams
- func (o *EventsParams) SetContext(ctx context.Context)
- func (o *EventsParams) SetDefaults()
- func (o *EventsParams) SetHTTPClient(client *http.Client)
- func (o *EventsParams) SetHeight(height string)
- func (o *EventsParams) SetSearch(search []string)
- func (o *EventsParams) SetTimeout(timeout time.Duration)
- func (o *EventsParams) WithContext(ctx context.Context) *EventsParams
- func (o *EventsParams) WithDefaults() *EventsParams
- func (o *EventsParams) WithHTTPClient(client *http.Client) *EventsParams
- func (o *EventsParams) WithHeight(height string) *EventsParams
- func (o *EventsParams) WithSearch(search []string) *EventsParams
- func (o *EventsParams) WithTimeout(timeout time.Duration) *EventsParams
- func (o *EventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EventsReader
- type FrozenAllDefault
- type FrozenAllOK
- type FrozenAllParams
- func (o *FrozenAllParams) SetAddresses(addresses []string)
- func (o *FrozenAllParams) SetCoinIds(coinIds []string)
- func (o *FrozenAllParams) SetContext(ctx context.Context)
- func (o *FrozenAllParams) SetDefaults()
- func (o *FrozenAllParams) SetEndHeight(endHeight *uint64)
- func (o *FrozenAllParams) SetHTTPClient(client *http.Client)
- func (o *FrozenAllParams) SetHeight(height *uint64)
- func (o *FrozenAllParams) SetStartHeight(startHeight *uint64)
- func (o *FrozenAllParams) SetTimeout(timeout time.Duration)
- func (o *FrozenAllParams) WithAddresses(addresses []string) *FrozenAllParams
- func (o *FrozenAllParams) WithCoinIds(coinIds []string) *FrozenAllParams
- func (o *FrozenAllParams) WithContext(ctx context.Context) *FrozenAllParams
- func (o *FrozenAllParams) WithDefaults() *FrozenAllParams
- func (o *FrozenAllParams) WithEndHeight(endHeight *uint64) *FrozenAllParams
- func (o *FrozenAllParams) WithHTTPClient(client *http.Client) *FrozenAllParams
- func (o *FrozenAllParams) WithHeight(height *uint64) *FrozenAllParams
- func (o *FrozenAllParams) WithStartHeight(startHeight *uint64) *FrozenAllParams
- func (o *FrozenAllParams) WithTimeout(timeout time.Duration) *FrozenAllParams
- func (o *FrozenAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FrozenAllReader
- type FrozenDefault
- type FrozenOK
- type FrozenParams
- func (o *FrozenParams) SetAddress(address string)
- func (o *FrozenParams) SetCoinID(coinID *uint64)
- func (o *FrozenParams) SetContext(ctx context.Context)
- func (o *FrozenParams) SetDefaults()
- func (o *FrozenParams) SetHTTPClient(client *http.Client)
- func (o *FrozenParams) SetHeight(height *uint64)
- func (o *FrozenParams) SetTimeout(timeout time.Duration)
- func (o *FrozenParams) WithAddress(address string) *FrozenParams
- func (o *FrozenParams) WithCoinID(coinID *uint64) *FrozenParams
- func (o *FrozenParams) WithContext(ctx context.Context) *FrozenParams
- func (o *FrozenParams) WithDefaults() *FrozenParams
- func (o *FrozenParams) WithHTTPClient(client *http.Client) *FrozenParams
- func (o *FrozenParams) WithHeight(height *uint64) *FrozenParams
- func (o *FrozenParams) WithTimeout(timeout time.Duration) *FrozenParams
- func (o *FrozenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FrozenReader
- type GenesisDefault
- type GenesisOK
- type GenesisParams
- func (o *GenesisParams) SetContext(ctx context.Context)
- func (o *GenesisParams) SetDefaults()
- func (o *GenesisParams) SetHTTPClient(client *http.Client)
- func (o *GenesisParams) SetTimeout(timeout time.Duration)
- func (o *GenesisParams) WithContext(ctx context.Context) *GenesisParams
- func (o *GenesisParams) WithDefaults() *GenesisParams
- func (o *GenesisParams) WithHTTPClient(client *http.Client) *GenesisParams
- func (o *GenesisParams) WithTimeout(timeout time.Duration) *GenesisParams
- func (o *GenesisParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GenesisReader
- type HaltsDefault
- type HaltsOK
- type HaltsParams
- func (o *HaltsParams) SetContext(ctx context.Context)
- func (o *HaltsParams) SetDefaults()
- func (o *HaltsParams) SetHTTPClient(client *http.Client)
- func (o *HaltsParams) SetHeight(height string)
- func (o *HaltsParams) SetTimeout(timeout time.Duration)
- func (o *HaltsParams) WithContext(ctx context.Context) *HaltsParams
- func (o *HaltsParams) WithDefaults() *HaltsParams
- func (o *HaltsParams) WithHTTPClient(client *http.Client) *HaltsParams
- func (o *HaltsParams) WithHeight(height string) *HaltsParams
- func (o *HaltsParams) WithTimeout(timeout time.Duration) *HaltsParams
- func (o *HaltsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type HaltsReader
- type LimitOrderDefault
- type LimitOrderOK
- type LimitOrderParams
- func (o *LimitOrderParams) SetContext(ctx context.Context)
- func (o *LimitOrderParams) SetDefaults()
- func (o *LimitOrderParams) SetHTTPClient(client *http.Client)
- func (o *LimitOrderParams) SetHeight(height *uint64)
- func (o *LimitOrderParams) SetOrderID(orderID string)
- func (o *LimitOrderParams) SetTimeout(timeout time.Duration)
- func (o *LimitOrderParams) WithContext(ctx context.Context) *LimitOrderParams
- func (o *LimitOrderParams) WithDefaults() *LimitOrderParams
- func (o *LimitOrderParams) WithHTTPClient(client *http.Client) *LimitOrderParams
- func (o *LimitOrderParams) WithHeight(height *uint64) *LimitOrderParams
- func (o *LimitOrderParams) WithOrderID(orderID string) *LimitOrderParams
- func (o *LimitOrderParams) WithTimeout(timeout time.Duration) *LimitOrderParams
- func (o *LimitOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LimitOrderReader
- type LimitOrdersDefault
- type LimitOrdersOK
- type LimitOrdersOfPoolDefault
- type LimitOrdersOfPoolOK
- type LimitOrdersOfPoolParams
- func NewLimitOrdersOfPoolParams() *LimitOrdersOfPoolParams
- func NewLimitOrdersOfPoolParamsWithContext(ctx context.Context) *LimitOrdersOfPoolParams
- func NewLimitOrdersOfPoolParamsWithHTTPClient(client *http.Client) *LimitOrdersOfPoolParams
- func NewLimitOrdersOfPoolParamsWithTimeout(timeout time.Duration) *LimitOrdersOfPoolParams
- func (o *LimitOrdersOfPoolParams) SetBuyCoin(buyCoin string)
- func (o *LimitOrdersOfPoolParams) SetContext(ctx context.Context)
- func (o *LimitOrdersOfPoolParams) SetDefaults()
- func (o *LimitOrdersOfPoolParams) SetHTTPClient(client *http.Client)
- func (o *LimitOrdersOfPoolParams) SetHeight(height *uint64)
- func (o *LimitOrdersOfPoolParams) SetLimit(limit *int32)
- func (o *LimitOrdersOfPoolParams) SetSellCoin(sellCoin string)
- func (o *LimitOrdersOfPoolParams) SetTimeout(timeout time.Duration)
- func (o *LimitOrdersOfPoolParams) WithBuyCoin(buyCoin string) *LimitOrdersOfPoolParams
- func (o *LimitOrdersOfPoolParams) WithContext(ctx context.Context) *LimitOrdersOfPoolParams
- func (o *LimitOrdersOfPoolParams) WithDefaults() *LimitOrdersOfPoolParams
- func (o *LimitOrdersOfPoolParams) WithHTTPClient(client *http.Client) *LimitOrdersOfPoolParams
- func (o *LimitOrdersOfPoolParams) WithHeight(height *uint64) *LimitOrdersOfPoolParams
- func (o *LimitOrdersOfPoolParams) WithLimit(limit *int32) *LimitOrdersOfPoolParams
- func (o *LimitOrdersOfPoolParams) WithSellCoin(sellCoin string) *LimitOrdersOfPoolParams
- func (o *LimitOrdersOfPoolParams) WithTimeout(timeout time.Duration) *LimitOrdersOfPoolParams
- func (o *LimitOrdersOfPoolParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LimitOrdersOfPoolReader
- type LimitOrdersParams
- func (o *LimitOrdersParams) SetContext(ctx context.Context)
- func (o *LimitOrdersParams) SetDefaults()
- func (o *LimitOrdersParams) SetHTTPClient(client *http.Client)
- func (o *LimitOrdersParams) SetHeight(height *uint64)
- func (o *LimitOrdersParams) SetIds(ids []string)
- func (o *LimitOrdersParams) SetTimeout(timeout time.Duration)
- func (o *LimitOrdersParams) WithContext(ctx context.Context) *LimitOrdersParams
- func (o *LimitOrdersParams) WithDefaults() *LimitOrdersParams
- func (o *LimitOrdersParams) WithHTTPClient(client *http.Client) *LimitOrdersParams
- func (o *LimitOrdersParams) WithHeight(height *uint64) *LimitOrdersParams
- func (o *LimitOrdersParams) WithIds(ids []string) *LimitOrdersParams
- func (o *LimitOrdersParams) WithTimeout(timeout time.Duration) *LimitOrdersParams
- func (o *LimitOrdersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LimitOrdersReader
- type MaxGasPriceDefault
- type MaxGasPriceOK
- type MaxGasPriceParams
- func (o *MaxGasPriceParams) SetContext(ctx context.Context)
- func (o *MaxGasPriceParams) SetDefaults()
- func (o *MaxGasPriceParams) SetHTTPClient(client *http.Client)
- func (o *MaxGasPriceParams) SetHeight(height *uint64)
- func (o *MaxGasPriceParams) SetTimeout(timeout time.Duration)
- func (o *MaxGasPriceParams) WithContext(ctx context.Context) *MaxGasPriceParams
- func (o *MaxGasPriceParams) WithDefaults() *MaxGasPriceParams
- func (o *MaxGasPriceParams) WithHTTPClient(client *http.Client) *MaxGasPriceParams
- func (o *MaxGasPriceParams) WithHeight(height *uint64) *MaxGasPriceParams
- func (o *MaxGasPriceParams) WithTimeout(timeout time.Duration) *MaxGasPriceParams
- func (o *MaxGasPriceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MaxGasPriceReader
- type MinGasPriceDefault
- type MinGasPriceOK
- type MinGasPriceParams
- func (o *MinGasPriceParams) SetContext(ctx context.Context)
- func (o *MinGasPriceParams) SetDefaults()
- func (o *MinGasPriceParams) SetHTTPClient(client *http.Client)
- func (o *MinGasPriceParams) SetTimeout(timeout time.Duration)
- func (o *MinGasPriceParams) WithContext(ctx context.Context) *MinGasPriceParams
- func (o *MinGasPriceParams) WithDefaults() *MinGasPriceParams
- func (o *MinGasPriceParams) WithHTTPClient(client *http.Client) *MinGasPriceParams
- func (o *MinGasPriceParams) WithTimeout(timeout time.Duration) *MinGasPriceParams
- func (o *MinGasPriceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MinGasPriceReader
- type MissedBlocksDefault
- type MissedBlocksOK
- type MissedBlocksParams
- func (o *MissedBlocksParams) SetContext(ctx context.Context)
- func (o *MissedBlocksParams) SetDefaults()
- func (o *MissedBlocksParams) SetHTTPClient(client *http.Client)
- func (o *MissedBlocksParams) SetHeight(height *uint64)
- func (o *MissedBlocksParams) SetPublicKey(publicKey string)
- func (o *MissedBlocksParams) SetTimeout(timeout time.Duration)
- func (o *MissedBlocksParams) WithContext(ctx context.Context) *MissedBlocksParams
- func (o *MissedBlocksParams) WithDefaults() *MissedBlocksParams
- func (o *MissedBlocksParams) WithHTTPClient(client *http.Client) *MissedBlocksParams
- func (o *MissedBlocksParams) WithHeight(height *uint64) *MissedBlocksParams
- func (o *MissedBlocksParams) WithPublicKey(publicKey string) *MissedBlocksParams
- func (o *MissedBlocksParams) WithTimeout(timeout time.Duration) *MissedBlocksParams
- func (o *MissedBlocksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type MissedBlocksReader
- type NetInfoDefault
- type NetInfoOK
- type NetInfoParams
- func (o *NetInfoParams) SetContext(ctx context.Context)
- func (o *NetInfoParams) SetDefaults()
- func (o *NetInfoParams) SetHTTPClient(client *http.Client)
- func (o *NetInfoParams) SetTimeout(timeout time.Duration)
- func (o *NetInfoParams) WithContext(ctx context.Context) *NetInfoParams
- func (o *NetInfoParams) WithDefaults() *NetInfoParams
- func (o *NetInfoParams) WithHTTPClient(client *http.Client) *NetInfoParams
- func (o *NetInfoParams) WithTimeout(timeout time.Duration) *NetInfoParams
- func (o *NetInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NetInfoReader
- type PriceCommissionDefault
- type PriceCommissionOK
- type PriceCommissionParams
- func NewPriceCommissionParams() *PriceCommissionParams
- func NewPriceCommissionParamsWithContext(ctx context.Context) *PriceCommissionParams
- func NewPriceCommissionParamsWithHTTPClient(client *http.Client) *PriceCommissionParams
- func NewPriceCommissionParamsWithTimeout(timeout time.Duration) *PriceCommissionParams
- func (o *PriceCommissionParams) SetContext(ctx context.Context)
- func (o *PriceCommissionParams) SetDefaults()
- func (o *PriceCommissionParams) SetHTTPClient(client *http.Client)
- func (o *PriceCommissionParams) SetHeight(height *uint64)
- func (o *PriceCommissionParams) SetTimeout(timeout time.Duration)
- func (o *PriceCommissionParams) WithContext(ctx context.Context) *PriceCommissionParams
- func (o *PriceCommissionParams) WithDefaults() *PriceCommissionParams
- func (o *PriceCommissionParams) WithHTTPClient(client *http.Client) *PriceCommissionParams
- func (o *PriceCommissionParams) WithHeight(height *uint64) *PriceCommissionParams
- func (o *PriceCommissionParams) WithTimeout(timeout time.Duration) *PriceCommissionParams
- func (o *PriceCommissionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PriceCommissionReader
- type SendTransaction2Default
- type SendTransaction2OK
- type SendTransaction2Params
- func NewSendTransaction2Params() *SendTransaction2Params
- func NewSendTransaction2ParamsWithContext(ctx context.Context) *SendTransaction2Params
- func NewSendTransaction2ParamsWithHTTPClient(client *http.Client) *SendTransaction2Params
- func NewSendTransaction2ParamsWithTimeout(timeout time.Duration) *SendTransaction2Params
- func (o *SendTransaction2Params) SetBody(body *models.SendTransactionRequest)
- func (o *SendTransaction2Params) SetContext(ctx context.Context)
- func (o *SendTransaction2Params) SetDefaults()
- func (o *SendTransaction2Params) SetHTTPClient(client *http.Client)
- func (o *SendTransaction2Params) SetTimeout(timeout time.Duration)
- func (o *SendTransaction2Params) WithBody(body *models.SendTransactionRequest) *SendTransaction2Params
- func (o *SendTransaction2Params) WithContext(ctx context.Context) *SendTransaction2Params
- func (o *SendTransaction2Params) WithDefaults() *SendTransaction2Params
- func (o *SendTransaction2Params) WithHTTPClient(client *http.Client) *SendTransaction2Params
- func (o *SendTransaction2Params) WithTimeout(timeout time.Duration) *SendTransaction2Params
- func (o *SendTransaction2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendTransaction2Reader
- type SendTransactionDefault
- type SendTransactionOK
- type SendTransactionParams
- func NewSendTransactionParams() *SendTransactionParams
- func NewSendTransactionParamsWithContext(ctx context.Context) *SendTransactionParams
- func NewSendTransactionParamsWithHTTPClient(client *http.Client) *SendTransactionParams
- func NewSendTransactionParamsWithTimeout(timeout time.Duration) *SendTransactionParams
- func (o *SendTransactionParams) SetContext(ctx context.Context)
- func (o *SendTransactionParams) SetDefaults()
- func (o *SendTransactionParams) SetHTTPClient(client *http.Client)
- func (o *SendTransactionParams) SetTimeout(timeout time.Duration)
- func (o *SendTransactionParams) SetTx(tx string)
- func (o *SendTransactionParams) WithContext(ctx context.Context) *SendTransactionParams
- func (o *SendTransactionParams) WithDefaults() *SendTransactionParams
- func (o *SendTransactionParams) WithHTTPClient(client *http.Client) *SendTransactionParams
- func (o *SendTransactionParams) WithTimeout(timeout time.Duration) *SendTransactionParams
- func (o *SendTransactionParams) WithTx(tx string) *SendTransactionParams
- func (o *SendTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendTransactionReader
- type StatusDefault
- type StatusOK
- type StatusParams
- func (o *StatusParams) SetContext(ctx context.Context)
- func (o *StatusParams) SetDefaults()
- func (o *StatusParams) SetHTTPClient(client *http.Client)
- func (o *StatusParams) SetTimeout(timeout time.Duration)
- func (o *StatusParams) WithContext(ctx context.Context) *StatusParams
- func (o *StatusParams) WithDefaults() *StatusParams
- func (o *StatusParams) WithHTTPClient(client *http.Client) *StatusParams
- func (o *StatusParams) WithTimeout(timeout time.Duration) *StatusParams
- func (o *StatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StatusReader
- type SubscribeDefault
- type SubscribeOK
- type SubscribeOKBody
- type SubscribeParams
- func (o *SubscribeParams) SetContext(ctx context.Context)
- func (o *SubscribeParams) SetDefaults()
- func (o *SubscribeParams) SetHTTPClient(client *http.Client)
- func (o *SubscribeParams) SetQuery(query string)
- func (o *SubscribeParams) SetTimeout(timeout time.Duration)
- func (o *SubscribeParams) WithContext(ctx context.Context) *SubscribeParams
- func (o *SubscribeParams) WithDefaults() *SubscribeParams
- func (o *SubscribeParams) WithHTTPClient(client *http.Client) *SubscribeParams
- func (o *SubscribeParams) WithQuery(query string) *SubscribeParams
- func (o *SubscribeParams) WithTimeout(timeout time.Duration) *SubscribeParams
- func (o *SubscribeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SubscribeReader
- type SwapPoolDefault
- type SwapPoolOK
- type SwapPoolParams
- func (o *SwapPoolParams) SetCoin0(coin0 string)
- func (o *SwapPoolParams) SetCoin1(coin1 string)
- func (o *SwapPoolParams) SetContext(ctx context.Context)
- func (o *SwapPoolParams) SetDefaults()
- func (o *SwapPoolParams) SetHTTPClient(client *http.Client)
- func (o *SwapPoolParams) SetHeight(height *uint64)
- func (o *SwapPoolParams) SetTimeout(timeout time.Duration)
- func (o *SwapPoolParams) WithCoin0(coin0 string) *SwapPoolParams
- func (o *SwapPoolParams) WithCoin1(coin1 string) *SwapPoolParams
- func (o *SwapPoolParams) WithContext(ctx context.Context) *SwapPoolParams
- func (o *SwapPoolParams) WithDefaults() *SwapPoolParams
- func (o *SwapPoolParams) WithHTTPClient(client *http.Client) *SwapPoolParams
- func (o *SwapPoolParams) WithHeight(height *uint64) *SwapPoolParams
- func (o *SwapPoolParams) WithTimeout(timeout time.Duration) *SwapPoolParams
- func (o *SwapPoolParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SwapPoolProviderDefault
- type SwapPoolProviderOK
- type SwapPoolProviderParams
- func NewSwapPoolProviderParams() *SwapPoolProviderParams
- func NewSwapPoolProviderParamsWithContext(ctx context.Context) *SwapPoolProviderParams
- func NewSwapPoolProviderParamsWithHTTPClient(client *http.Client) *SwapPoolProviderParams
- func NewSwapPoolProviderParamsWithTimeout(timeout time.Duration) *SwapPoolProviderParams
- func (o *SwapPoolProviderParams) SetCoin0(coin0 string)
- func (o *SwapPoolProviderParams) SetCoin1(coin1 string)
- func (o *SwapPoolProviderParams) SetContext(ctx context.Context)
- func (o *SwapPoolProviderParams) SetDefaults()
- func (o *SwapPoolProviderParams) SetHTTPClient(client *http.Client)
- func (o *SwapPoolProviderParams) SetHeight(height *uint64)
- func (o *SwapPoolProviderParams) SetProvider(provider string)
- func (o *SwapPoolProviderParams) SetTimeout(timeout time.Duration)
- func (o *SwapPoolProviderParams) WithCoin0(coin0 string) *SwapPoolProviderParams
- func (o *SwapPoolProviderParams) WithCoin1(coin1 string) *SwapPoolProviderParams
- func (o *SwapPoolProviderParams) WithContext(ctx context.Context) *SwapPoolProviderParams
- func (o *SwapPoolProviderParams) WithDefaults() *SwapPoolProviderParams
- func (o *SwapPoolProviderParams) WithHTTPClient(client *http.Client) *SwapPoolProviderParams
- func (o *SwapPoolProviderParams) WithHeight(height *uint64) *SwapPoolProviderParams
- func (o *SwapPoolProviderParams) WithProvider(provider string) *SwapPoolProviderParams
- func (o *SwapPoolProviderParams) WithTimeout(timeout time.Duration) *SwapPoolProviderParams
- func (o *SwapPoolProviderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SwapPoolProviderReader
- type SwapPoolReader
- type SwapPoolsDefault
- type SwapPoolsOK
- type SwapPoolsParams
- func (o *SwapPoolsParams) SetContext(ctx context.Context)
- func (o *SwapPoolsParams) SetDefaults()
- func (o *SwapPoolsParams) SetHTTPClient(client *http.Client)
- func (o *SwapPoolsParams) SetHeight(height *uint64)
- func (o *SwapPoolsParams) SetOrders(orders *bool)
- func (o *SwapPoolsParams) SetTimeout(timeout time.Duration)
- func (o *SwapPoolsParams) WithContext(ctx context.Context) *SwapPoolsParams
- func (o *SwapPoolsParams) WithDefaults() *SwapPoolsParams
- func (o *SwapPoolsParams) WithHTTPClient(client *http.Client) *SwapPoolsParams
- func (o *SwapPoolsParams) WithHeight(height *uint64) *SwapPoolsParams
- func (o *SwapPoolsParams) WithOrders(orders *bool) *SwapPoolsParams
- func (o *SwapPoolsParams) WithTimeout(timeout time.Duration) *SwapPoolsParams
- func (o *SwapPoolsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SwapPoolsReader
- type TestBlockDefault
- type TestBlockOK
- type TestBlockParams
- func (o *TestBlockParams) SetContext(ctx context.Context)
- func (o *TestBlockParams) SetDefaults()
- func (o *TestBlockParams) SetHTTPClient(client *http.Client)
- func (o *TestBlockParams) SetTimeout(timeout time.Duration)
- func (o *TestBlockParams) WithContext(ctx context.Context) *TestBlockParams
- func (o *TestBlockParams) WithDefaults() *TestBlockParams
- func (o *TestBlockParams) WithHTTPClient(client *http.Client) *TestBlockParams
- func (o *TestBlockParams) WithTimeout(timeout time.Duration) *TestBlockParams
- func (o *TestBlockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TestBlockReader
- type TransactionDefault
- type TransactionOK
- type TransactionParams
- func (o *TransactionParams) SetContext(ctx context.Context)
- func (o *TransactionParams) SetDefaults()
- func (o *TransactionParams) SetHTTPClient(client *http.Client)
- func (o *TransactionParams) SetHash(hash string)
- func (o *TransactionParams) SetTimeout(timeout time.Duration)
- func (o *TransactionParams) WithContext(ctx context.Context) *TransactionParams
- func (o *TransactionParams) WithDefaults() *TransactionParams
- func (o *TransactionParams) WithHTTPClient(client *http.Client) *TransactionParams
- func (o *TransactionParams) WithHash(hash string) *TransactionParams
- func (o *TransactionParams) WithTimeout(timeout time.Duration) *TransactionParams
- func (o *TransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TransactionReader
- type TransactionsDefault
- type TransactionsOK
- type TransactionsParams
- func (o *TransactionsParams) SetContext(ctx context.Context)
- func (o *TransactionsParams) SetDefaults()
- func (o *TransactionsParams) SetHTTPClient(client *http.Client)
- func (o *TransactionsParams) SetPage(page *int32)
- func (o *TransactionsParams) SetPerPage(perPage *int32)
- func (o *TransactionsParams) SetQuery(query string)
- func (o *TransactionsParams) SetTimeout(timeout time.Duration)
- func (o *TransactionsParams) WithContext(ctx context.Context) *TransactionsParams
- func (o *TransactionsParams) WithDefaults() *TransactionsParams
- func (o *TransactionsParams) WithHTTPClient(client *http.Client) *TransactionsParams
- func (o *TransactionsParams) WithPage(page *int32) *TransactionsParams
- func (o *TransactionsParams) WithPerPage(perPage *int32) *TransactionsParams
- func (o *TransactionsParams) WithQuery(query string) *TransactionsParams
- func (o *TransactionsParams) WithTimeout(timeout time.Duration) *TransactionsParams
- func (o *TransactionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TransactionsReader
- type UnconfirmedTxsDefault
- type UnconfirmedTxsOK
- type UnconfirmedTxsParams
- func NewUnconfirmedTxsParams() *UnconfirmedTxsParams
- func NewUnconfirmedTxsParamsWithContext(ctx context.Context) *UnconfirmedTxsParams
- func NewUnconfirmedTxsParamsWithHTTPClient(client *http.Client) *UnconfirmedTxsParams
- func NewUnconfirmedTxsParamsWithTimeout(timeout time.Duration) *UnconfirmedTxsParams
- func (o *UnconfirmedTxsParams) SetContext(ctx context.Context)
- func (o *UnconfirmedTxsParams) SetDefaults()
- func (o *UnconfirmedTxsParams) SetHTTPClient(client *http.Client)
- func (o *UnconfirmedTxsParams) SetLimit(limit *int32)
- func (o *UnconfirmedTxsParams) SetTimeout(timeout time.Duration)
- func (o *UnconfirmedTxsParams) WithContext(ctx context.Context) *UnconfirmedTxsParams
- func (o *UnconfirmedTxsParams) WithDefaults() *UnconfirmedTxsParams
- func (o *UnconfirmedTxsParams) WithHTTPClient(client *http.Client) *UnconfirmedTxsParams
- func (o *UnconfirmedTxsParams) WithLimit(limit *int32) *UnconfirmedTxsParams
- func (o *UnconfirmedTxsParams) WithTimeout(timeout time.Duration) *UnconfirmedTxsParams
- func (o *UnconfirmedTxsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UnconfirmedTxsReader
- type UpdateVotesDefault
- type UpdateVotesOK
- type UpdateVotesParams
- func (o *UpdateVotesParams) SetContext(ctx context.Context)
- func (o *UpdateVotesParams) SetDefaults()
- func (o *UpdateVotesParams) SetHTTPClient(client *http.Client)
- func (o *UpdateVotesParams) SetHeight(height *uint64)
- func (o *UpdateVotesParams) SetTargetVersion(targetVersion string)
- func (o *UpdateVotesParams) SetTimeout(timeout time.Duration)
- func (o *UpdateVotesParams) WithContext(ctx context.Context) *UpdateVotesParams
- func (o *UpdateVotesParams) WithDefaults() *UpdateVotesParams
- func (o *UpdateVotesParams) WithHTTPClient(client *http.Client) *UpdateVotesParams
- func (o *UpdateVotesParams) WithHeight(height *uint64) *UpdateVotesParams
- func (o *UpdateVotesParams) WithTargetVersion(targetVersion string) *UpdateVotesParams
- func (o *UpdateVotesParams) WithTimeout(timeout time.Duration) *UpdateVotesParams
- func (o *UpdateVotesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateVotesReader
- type ValidatorsDefault
- type ValidatorsOK
- type ValidatorsParams
- func (o *ValidatorsParams) SetContext(ctx context.Context)
- func (o *ValidatorsParams) SetDefaults()
- func (o *ValidatorsParams) SetHTTPClient(client *http.Client)
- func (o *ValidatorsParams) SetHeight(height *uint64)
- func (o *ValidatorsParams) SetTimeout(timeout time.Duration)
- func (o *ValidatorsParams) WithContext(ctx context.Context) *ValidatorsParams
- func (o *ValidatorsParams) WithDefaults() *ValidatorsParams
- func (o *ValidatorsParams) WithHTTPClient(client *http.Client) *ValidatorsParams
- func (o *ValidatorsParams) WithHeight(height *uint64) *ValidatorsParams
- func (o *ValidatorsParams) WithTimeout(timeout time.Duration) *ValidatorsParams
- func (o *ValidatorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ValidatorsReader
- type VersionNetworkDefault
- type VersionNetworkOK
- type VersionNetworkParams
- func NewVersionNetworkParams() *VersionNetworkParams
- func NewVersionNetworkParamsWithContext(ctx context.Context) *VersionNetworkParams
- func NewVersionNetworkParamsWithHTTPClient(client *http.Client) *VersionNetworkParams
- func NewVersionNetworkParamsWithTimeout(timeout time.Duration) *VersionNetworkParams
- func (o *VersionNetworkParams) SetContext(ctx context.Context)
- func (o *VersionNetworkParams) SetDefaults()
- func (o *VersionNetworkParams) SetHTTPClient(client *http.Client)
- func (o *VersionNetworkParams) SetTimeout(timeout time.Duration)
- func (o *VersionNetworkParams) WithContext(ctx context.Context) *VersionNetworkParams
- func (o *VersionNetworkParams) WithDefaults() *VersionNetworkParams
- func (o *VersionNetworkParams) WithHTTPClient(client *http.Client) *VersionNetworkParams
- func (o *VersionNetworkParams) WithTimeout(timeout time.Duration) *VersionNetworkParams
- func (o *VersionNetworkParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type VersionNetworkReader
- type WaitListDefault
- type WaitListOK
- type WaitListParams
- func (o *WaitListParams) SetAddress(address string)
- func (o *WaitListParams) SetContext(ctx context.Context)
- func (o *WaitListParams) SetDefaults()
- func (o *WaitListParams) SetHTTPClient(client *http.Client)
- func (o *WaitListParams) SetHeight(height *uint64)
- func (o *WaitListParams) SetPublicKey(publicKey *string)
- func (o *WaitListParams) SetTimeout(timeout time.Duration)
- func (o *WaitListParams) WithAddress(address string) *WaitListParams
- func (o *WaitListParams) WithContext(ctx context.Context) *WaitListParams
- func (o *WaitListParams) WithDefaults() *WaitListParams
- func (o *WaitListParams) WithHTTPClient(client *http.Client) *WaitListParams
- func (o *WaitListParams) WithHeight(height *uint64) *WaitListParams
- func (o *WaitListParams) WithPublicKey(publicKey *string) *WaitListParams
- func (o *WaitListParams) WithTimeout(timeout time.Duration) *WaitListParams
- func (o *WaitListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type WaitListReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressDefault ¶
AddressDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewAddressDefault ¶
func NewAddressDefault(code int) *AddressDefault
NewAddressDefault creates a AddressDefault with default headers values
func (*AddressDefault) Code ¶
func (o *AddressDefault) Code() int
Code gets the status code for the address default response
func (*AddressDefault) Error ¶
func (o *AddressDefault) Error() string
func (*AddressDefault) GetPayload ¶
func (o *AddressDefault) GetPayload() *models.ErrorBody
type AddressOK ¶
type AddressOK struct {
Payload *models.AddressResponse
}
AddressOK describes a response with status code 200, with default header values.
A successful response.
func NewAddressOK ¶
func NewAddressOK() *AddressOK
NewAddressOK creates a AddressOK with default headers values
func (*AddressOK) GetPayload ¶
func (o *AddressOK) GetPayload() *models.AddressResponse
type AddressParams ¶
type AddressParams struct { // Address. Address string // Delegated. Delegated *bool // Height. // // Format: uint64 Height *uint64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddressParams contains all the parameters to send to the API endpoint
for the address operation. Typically these are written to a http.Request.
func NewAddressParams ¶
func NewAddressParams() *AddressParams
NewAddressParams creates a new AddressParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewAddressParamsWithContext ¶
func NewAddressParamsWithContext(ctx context.Context) *AddressParams
NewAddressParamsWithContext creates a new AddressParams object with the ability to set a context for a request.
func NewAddressParamsWithHTTPClient ¶
func NewAddressParamsWithHTTPClient(client *http.Client) *AddressParams
NewAddressParamsWithHTTPClient creates a new AddressParams object with the ability to set a custom HTTPClient for a request.
func NewAddressParamsWithTimeout ¶
func NewAddressParamsWithTimeout(timeout time.Duration) *AddressParams
NewAddressParamsWithTimeout creates a new AddressParams object with the ability to set a timeout on a request.
func (*AddressParams) SetAddress ¶
func (o *AddressParams) SetAddress(address string)
SetAddress adds the address to the address params
func (*AddressParams) SetContext ¶
func (o *AddressParams) SetContext(ctx context.Context)
SetContext adds the context to the address params
func (*AddressParams) SetDefaults ¶ added in v2.4.0
func (o *AddressParams) SetDefaults()
SetDefaults hydrates default values in the address params (not the query body).
All values with no default are reset to their zero value.
func (*AddressParams) SetDelegated ¶
func (o *AddressParams) SetDelegated(delegated *bool)
SetDelegated adds the delegated to the address params
func (*AddressParams) SetHTTPClient ¶
func (o *AddressParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the address params
func (*AddressParams) SetHeight ¶
func (o *AddressParams) SetHeight(height *uint64)
SetHeight adds the height to the address params
func (*AddressParams) SetTimeout ¶
func (o *AddressParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the address params
func (*AddressParams) WithAddress ¶
func (o *AddressParams) WithAddress(address string) *AddressParams
WithAddress adds the address to the address params
func (*AddressParams) WithContext ¶
func (o *AddressParams) WithContext(ctx context.Context) *AddressParams
WithContext adds the context to the address params
func (*AddressParams) WithDefaults ¶ added in v2.4.0
func (o *AddressParams) WithDefaults() *AddressParams
WithDefaults hydrates default values in the address params (not the query body).
All values with no default are reset to their zero value.
func (*AddressParams) WithDelegated ¶
func (o *AddressParams) WithDelegated(delegated *bool) *AddressParams
WithDelegated adds the delegated to the address params
func (*AddressParams) WithHTTPClient ¶
func (o *AddressParams) WithHTTPClient(client *http.Client) *AddressParams
WithHTTPClient adds the HTTPClient to the address params
func (*AddressParams) WithHeight ¶
func (o *AddressParams) WithHeight(height *uint64) *AddressParams
WithHeight adds the height to the address params
func (*AddressParams) WithTimeout ¶
func (o *AddressParams) WithTimeout(timeout time.Duration) *AddressParams
WithTimeout adds the timeout to the address params
func (*AddressParams) WriteToRequest ¶
func (o *AddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddressReader ¶
type AddressReader struct {
// contains filtered or unexported fields
}
AddressReader is a Reader for the Address structure.
func (*AddressReader) ReadResponse ¶
func (o *AddressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AddressesDefault ¶
type AddressesDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
AddressesDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewAddressesDefault ¶
func NewAddressesDefault(code int) *AddressesDefault
NewAddressesDefault creates a AddressesDefault with default headers values
func (*AddressesDefault) Code ¶
func (o *AddressesDefault) Code() int
Code gets the status code for the addresses default response
func (*AddressesDefault) Error ¶
func (o *AddressesDefault) Error() string
func (*AddressesDefault) GetPayload ¶
func (o *AddressesDefault) GetPayload() *models.ErrorBody
type AddressesOK ¶
type AddressesOK struct {
Payload *models.AddressesResponse
}
AddressesOK describes a response with status code 200, with default header values.
A successful response.
func NewAddressesOK ¶
func NewAddressesOK() *AddressesOK
NewAddressesOK creates a AddressesOK with default headers values
func (*AddressesOK) Error ¶
func (o *AddressesOK) Error() string
func (*AddressesOK) GetPayload ¶
func (o *AddressesOK) GetPayload() *models.AddressesResponse
type AddressesParams ¶
type AddressesParams struct { // Addresses. Addresses []string // Delegated. Delegated *bool // Height. // // Format: uint64 Height *uint64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddressesParams contains all the parameters to send to the API endpoint
for the addresses operation. Typically these are written to a http.Request.
func NewAddressesParams ¶
func NewAddressesParams() *AddressesParams
NewAddressesParams creates a new AddressesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewAddressesParamsWithContext ¶
func NewAddressesParamsWithContext(ctx context.Context) *AddressesParams
NewAddressesParamsWithContext creates a new AddressesParams object with the ability to set a context for a request.
func NewAddressesParamsWithHTTPClient ¶
func NewAddressesParamsWithHTTPClient(client *http.Client) *AddressesParams
NewAddressesParamsWithHTTPClient creates a new AddressesParams object with the ability to set a custom HTTPClient for a request.
func NewAddressesParamsWithTimeout ¶
func NewAddressesParamsWithTimeout(timeout time.Duration) *AddressesParams
NewAddressesParamsWithTimeout creates a new AddressesParams object with the ability to set a timeout on a request.
func (*AddressesParams) SetAddresses ¶
func (o *AddressesParams) SetAddresses(addresses []string)
SetAddresses adds the addresses to the addresses params
func (*AddressesParams) SetContext ¶
func (o *AddressesParams) SetContext(ctx context.Context)
SetContext adds the context to the addresses params
func (*AddressesParams) SetDefaults ¶ added in v2.4.0
func (o *AddressesParams) SetDefaults()
SetDefaults hydrates default values in the addresses params (not the query body).
All values with no default are reset to their zero value.
func (*AddressesParams) SetDelegated ¶
func (o *AddressesParams) SetDelegated(delegated *bool)
SetDelegated adds the delegated to the addresses params
func (*AddressesParams) SetHTTPClient ¶
func (o *AddressesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the addresses params
func (*AddressesParams) SetHeight ¶
func (o *AddressesParams) SetHeight(height *uint64)
SetHeight adds the height to the addresses params
func (*AddressesParams) SetTimeout ¶
func (o *AddressesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the addresses params
func (*AddressesParams) WithAddresses ¶
func (o *AddressesParams) WithAddresses(addresses []string) *AddressesParams
WithAddresses adds the addresses to the addresses params
func (*AddressesParams) WithContext ¶
func (o *AddressesParams) WithContext(ctx context.Context) *AddressesParams
WithContext adds the context to the addresses params
func (*AddressesParams) WithDefaults ¶ added in v2.4.0
func (o *AddressesParams) WithDefaults() *AddressesParams
WithDefaults hydrates default values in the addresses params (not the query body).
All values with no default are reset to their zero value.
func (*AddressesParams) WithDelegated ¶
func (o *AddressesParams) WithDelegated(delegated *bool) *AddressesParams
WithDelegated adds the delegated to the addresses params
func (*AddressesParams) WithHTTPClient ¶
func (o *AddressesParams) WithHTTPClient(client *http.Client) *AddressesParams
WithHTTPClient adds the HTTPClient to the addresses params
func (*AddressesParams) WithHeight ¶
func (o *AddressesParams) WithHeight(height *uint64) *AddressesParams
WithHeight adds the height to the addresses params
func (*AddressesParams) WithTimeout ¶
func (o *AddressesParams) WithTimeout(timeout time.Duration) *AddressesParams
WithTimeout adds the timeout to the addresses params
func (*AddressesParams) WriteToRequest ¶
func (o *AddressesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddressesReader ¶
type AddressesReader struct {
// contains filtered or unexported fields
}
AddressesReader is a Reader for the Addresses structure.
func (*AddressesReader) ReadResponse ¶
func (o *AddressesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type BestTradeDefault ¶ added in v2.5.0
type BestTradeDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
BestTradeDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewBestTradeDefault ¶ added in v2.5.0
func NewBestTradeDefault(code int) *BestTradeDefault
NewBestTradeDefault creates a BestTradeDefault with default headers values
func (*BestTradeDefault) Code ¶ added in v2.5.0
func (o *BestTradeDefault) Code() int
Code gets the status code for the best trade default response
func (*BestTradeDefault) Error ¶ added in v2.5.0
func (o *BestTradeDefault) Error() string
func (*BestTradeDefault) GetPayload ¶ added in v2.5.0
func (o *BestTradeDefault) GetPayload() *models.ErrorBody
type BestTradeOK ¶ added in v2.5.0
type BestTradeOK struct {
Payload *models.BestTradeResponse
}
BestTradeOK describes a response with status code 200, with default header values.
A successful response.
func NewBestTradeOK ¶ added in v2.5.0
func NewBestTradeOK() *BestTradeOK
NewBestTradeOK creates a BestTradeOK with default headers values
func (*BestTradeOK) Error ¶ added in v2.5.0
func (o *BestTradeOK) Error() string
func (*BestTradeOK) GetPayload ¶ added in v2.5.0
func (o *BestTradeOK) GetPayload() *models.BestTradeResponse
type BestTradeParams ¶ added in v2.5.0
type BestTradeParams struct { // Amount. Amount string // BuyCoin. // // Format: uint64 BuyCoin string // Height. // // Format: uint64 Height *uint64 // MaxDepth. // // Format: int32 // Default: 4 MaxDepth *int32 // SellCoin. // // Format: uint64 SellCoin string // Type. Type string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BestTradeParams contains all the parameters to send to the API endpoint
for the best trade operation. Typically these are written to a http.Request.
func NewBestTradeParams ¶ added in v2.5.0
func NewBestTradeParams() *BestTradeParams
NewBestTradeParams creates a new BestTradeParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewBestTradeParamsWithContext ¶ added in v2.5.0
func NewBestTradeParamsWithContext(ctx context.Context) *BestTradeParams
NewBestTradeParamsWithContext creates a new BestTradeParams object with the ability to set a context for a request.
func NewBestTradeParamsWithHTTPClient ¶ added in v2.5.0
func NewBestTradeParamsWithHTTPClient(client *http.Client) *BestTradeParams
NewBestTradeParamsWithHTTPClient creates a new BestTradeParams object with the ability to set a custom HTTPClient for a request.
func NewBestTradeParamsWithTimeout ¶ added in v2.5.0
func NewBestTradeParamsWithTimeout(timeout time.Duration) *BestTradeParams
NewBestTradeParamsWithTimeout creates a new BestTradeParams object with the ability to set a timeout on a request.
func (*BestTradeParams) SetAmount ¶ added in v2.5.0
func (o *BestTradeParams) SetAmount(amount string)
SetAmount adds the amount to the best trade params
func (*BestTradeParams) SetBuyCoin ¶ added in v2.5.0
func (o *BestTradeParams) SetBuyCoin(buyCoin string)
SetBuyCoin adds the buyCoin to the best trade params
func (*BestTradeParams) SetContext ¶ added in v2.5.0
func (o *BestTradeParams) SetContext(ctx context.Context)
SetContext adds the context to the best trade params
func (*BestTradeParams) SetDefaults ¶ added in v2.5.0
func (o *BestTradeParams) SetDefaults()
SetDefaults hydrates default values in the best trade params (not the query body).
All values with no default are reset to their zero value.
func (*BestTradeParams) SetHTTPClient ¶ added in v2.5.0
func (o *BestTradeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the best trade params
func (*BestTradeParams) SetHeight ¶ added in v2.5.0
func (o *BestTradeParams) SetHeight(height *uint64)
SetHeight adds the height to the best trade params
func (*BestTradeParams) SetMaxDepth ¶ added in v2.5.0
func (o *BestTradeParams) SetMaxDepth(maxDepth *int32)
SetMaxDepth adds the maxDepth to the best trade params
func (*BestTradeParams) SetSellCoin ¶ added in v2.5.0
func (o *BestTradeParams) SetSellCoin(sellCoin string)
SetSellCoin adds the sellCoin to the best trade params
func (*BestTradeParams) SetTimeout ¶ added in v2.5.0
func (o *BestTradeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the best trade params
func (*BestTradeParams) SetType ¶ added in v2.5.0
func (o *BestTradeParams) SetType(typeVar string)
SetType adds the type to the best trade params
func (*BestTradeParams) WithAmount ¶ added in v2.5.0
func (o *BestTradeParams) WithAmount(amount string) *BestTradeParams
WithAmount adds the amount to the best trade params
func (*BestTradeParams) WithBuyCoin ¶ added in v2.5.0
func (o *BestTradeParams) WithBuyCoin(buyCoin string) *BestTradeParams
WithBuyCoin adds the buyCoin to the best trade params
func (*BestTradeParams) WithContext ¶ added in v2.5.0
func (o *BestTradeParams) WithContext(ctx context.Context) *BestTradeParams
WithContext adds the context to the best trade params
func (*BestTradeParams) WithDefaults ¶ added in v2.5.0
func (o *BestTradeParams) WithDefaults() *BestTradeParams
WithDefaults hydrates default values in the best trade params (not the query body).
All values with no default are reset to their zero value.
func (*BestTradeParams) WithHTTPClient ¶ added in v2.5.0
func (o *BestTradeParams) WithHTTPClient(client *http.Client) *BestTradeParams
WithHTTPClient adds the HTTPClient to the best trade params
func (*BestTradeParams) WithHeight ¶ added in v2.5.0
func (o *BestTradeParams) WithHeight(height *uint64) *BestTradeParams
WithHeight adds the height to the best trade params
func (*BestTradeParams) WithMaxDepth ¶ added in v2.5.0
func (o *BestTradeParams) WithMaxDepth(maxDepth *int32) *BestTradeParams
WithMaxDepth adds the maxDepth to the best trade params
func (*BestTradeParams) WithSellCoin ¶ added in v2.5.0
func (o *BestTradeParams) WithSellCoin(sellCoin string) *BestTradeParams
WithSellCoin adds the sellCoin to the best trade params
func (*BestTradeParams) WithTimeout ¶ added in v2.5.0
func (o *BestTradeParams) WithTimeout(timeout time.Duration) *BestTradeParams
WithTimeout adds the timeout to the best trade params
func (*BestTradeParams) WithType ¶ added in v2.5.0
func (o *BestTradeParams) WithType(typeVar string) *BestTradeParams
WithType adds the typeVar to the best trade params
func (*BestTradeParams) WriteToRequest ¶ added in v2.5.0
func (o *BestTradeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BestTradeReader ¶ added in v2.5.0
type BestTradeReader struct {
// contains filtered or unexported fields
}
BestTradeReader is a Reader for the BestTrade structure.
func (*BestTradeReader) ReadResponse ¶ added in v2.5.0
func (o *BestTradeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type BlockDefault ¶
BlockDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewBlockDefault ¶
func NewBlockDefault(code int) *BlockDefault
NewBlockDefault creates a BlockDefault with default headers values
func (*BlockDefault) Code ¶
func (o *BlockDefault) Code() int
Code gets the status code for the block default response
func (*BlockDefault) Error ¶
func (o *BlockDefault) Error() string
func (*BlockDefault) GetPayload ¶
func (o *BlockDefault) GetPayload() *models.ErrorBody
type BlockOK ¶
type BlockOK struct {
Payload *models.BlockResponse
}
BlockOK describes a response with status code 200, with default header values.
A successful response.
func NewBlockOK ¶
func NewBlockOK() *BlockOK
NewBlockOK creates a BlockOK with default headers values
func (*BlockOK) GetPayload ¶
func (o *BlockOK) GetPayload() *models.BlockResponse
type BlockParams ¶
type BlockParams struct { // Events. Events *bool // FailedTxs. FailedTxs *bool // Fields. Fields []string // Height. // // Format: uint64 Height string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BlockParams contains all the parameters to send to the API endpoint
for the block operation. Typically these are written to a http.Request.
func NewBlockParams ¶
func NewBlockParams() *BlockParams
NewBlockParams creates a new BlockParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewBlockParamsWithContext ¶
func NewBlockParamsWithContext(ctx context.Context) *BlockParams
NewBlockParamsWithContext creates a new BlockParams object with the ability to set a context for a request.
func NewBlockParamsWithHTTPClient ¶
func NewBlockParamsWithHTTPClient(client *http.Client) *BlockParams
NewBlockParamsWithHTTPClient creates a new BlockParams object with the ability to set a custom HTTPClient for a request.
func NewBlockParamsWithTimeout ¶
func NewBlockParamsWithTimeout(timeout time.Duration) *BlockParams
NewBlockParamsWithTimeout creates a new BlockParams object with the ability to set a timeout on a request.
func (*BlockParams) SetContext ¶
func (o *BlockParams) SetContext(ctx context.Context)
SetContext adds the context to the block params
func (*BlockParams) SetDefaults ¶ added in v2.4.0
func (o *BlockParams) SetDefaults()
SetDefaults hydrates default values in the block params (not the query body).
All values with no default are reset to their zero value.
func (*BlockParams) SetEvents ¶ added in v2.4.0
func (o *BlockParams) SetEvents(events *bool)
SetEvents adds the events to the block params
func (*BlockParams) SetFailedTxs ¶ added in v2.2.0
func (o *BlockParams) SetFailedTxs(failedTxs *bool)
SetFailedTxs adds the failedTxs to the block params
func (*BlockParams) SetFields ¶
func (o *BlockParams) SetFields(fields []string)
SetFields adds the fields to the block params
func (*BlockParams) SetHTTPClient ¶
func (o *BlockParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the block params
func (*BlockParams) SetHeight ¶
func (o *BlockParams) SetHeight(height string)
SetHeight adds the height to the block params
func (*BlockParams) SetTimeout ¶
func (o *BlockParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the block params
func (*BlockParams) WithContext ¶
func (o *BlockParams) WithContext(ctx context.Context) *BlockParams
WithContext adds the context to the block params
func (*BlockParams) WithDefaults ¶ added in v2.4.0
func (o *BlockParams) WithDefaults() *BlockParams
WithDefaults hydrates default values in the block params (not the query body).
All values with no default are reset to their zero value.
func (*BlockParams) WithEvents ¶ added in v2.4.0
func (o *BlockParams) WithEvents(events *bool) *BlockParams
WithEvents adds the events to the block params
func (*BlockParams) WithFailedTxs ¶ added in v2.2.0
func (o *BlockParams) WithFailedTxs(failedTxs *bool) *BlockParams
WithFailedTxs adds the failedTxs to the block params
func (*BlockParams) WithFields ¶
func (o *BlockParams) WithFields(fields []string) *BlockParams
WithFields adds the fields to the block params
func (*BlockParams) WithHTTPClient ¶
func (o *BlockParams) WithHTTPClient(client *http.Client) *BlockParams
WithHTTPClient adds the HTTPClient to the block params
func (*BlockParams) WithHeight ¶
func (o *BlockParams) WithHeight(height string) *BlockParams
WithHeight adds the height to the block params
func (*BlockParams) WithTimeout ¶
func (o *BlockParams) WithTimeout(timeout time.Duration) *BlockParams
WithTimeout adds the timeout to the block params
func (*BlockParams) WriteToRequest ¶
func (o *BlockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BlockReader ¶
type BlockReader struct {
// contains filtered or unexported fields
}
BlockReader is a Reader for the Block structure.
func (*BlockReader) ReadResponse ¶
func (o *BlockReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type BlocksDefault ¶ added in v2.2.0
BlocksDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewBlocksDefault ¶ added in v2.2.0
func NewBlocksDefault(code int) *BlocksDefault
NewBlocksDefault creates a BlocksDefault with default headers values
func (*BlocksDefault) Code ¶ added in v2.2.0
func (o *BlocksDefault) Code() int
Code gets the status code for the blocks default response
func (*BlocksDefault) Error ¶ added in v2.2.0
func (o *BlocksDefault) Error() string
func (*BlocksDefault) GetPayload ¶ added in v2.2.0
func (o *BlocksDefault) GetPayload() *models.ErrorBody
type BlocksOK ¶ added in v2.2.0
type BlocksOK struct {
Payload *models.BlocksResponse
}
BlocksOK describes a response with status code 200, with default header values.
A successful response.
func NewBlocksOK ¶ added in v2.2.0
func NewBlocksOK() *BlocksOK
NewBlocksOK creates a BlocksOK with default headers values
func (*BlocksOK) GetPayload ¶ added in v2.2.0
func (o *BlocksOK) GetPayload() *models.BlocksResponse
type BlocksParams ¶ added in v2.2.0
type BlocksParams struct { // Events. Events *bool // FailedTxs. FailedTxs *bool // Fields. Fields []string // FromHeight. // // Format: uint64 FromHeight uint64 // ToHeight. // // Format: uint64 ToHeight uint64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BlocksParams contains all the parameters to send to the API endpoint
for the blocks operation. Typically these are written to a http.Request.
func NewBlocksParams ¶ added in v2.2.0
func NewBlocksParams() *BlocksParams
NewBlocksParams creates a new BlocksParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewBlocksParamsWithContext ¶ added in v2.2.0
func NewBlocksParamsWithContext(ctx context.Context) *BlocksParams
NewBlocksParamsWithContext creates a new BlocksParams object with the ability to set a context for a request.
func NewBlocksParamsWithHTTPClient ¶ added in v2.2.0
func NewBlocksParamsWithHTTPClient(client *http.Client) *BlocksParams
NewBlocksParamsWithHTTPClient creates a new BlocksParams object with the ability to set a custom HTTPClient for a request.
func NewBlocksParamsWithTimeout ¶ added in v2.2.0
func NewBlocksParamsWithTimeout(timeout time.Duration) *BlocksParams
NewBlocksParamsWithTimeout creates a new BlocksParams object with the ability to set a timeout on a request.
func (*BlocksParams) SetContext ¶ added in v2.2.0
func (o *BlocksParams) SetContext(ctx context.Context)
SetContext adds the context to the blocks params
func (*BlocksParams) SetDefaults ¶ added in v2.4.0
func (o *BlocksParams) SetDefaults()
SetDefaults hydrates default values in the blocks params (not the query body).
All values with no default are reset to their zero value.
func (*BlocksParams) SetEvents ¶ added in v2.4.0
func (o *BlocksParams) SetEvents(events *bool)
SetEvents adds the events to the blocks params
func (*BlocksParams) SetFailedTxs ¶ added in v2.2.0
func (o *BlocksParams) SetFailedTxs(failedTxs *bool)
SetFailedTxs adds the failedTxs to the blocks params
func (*BlocksParams) SetFields ¶ added in v2.2.0
func (o *BlocksParams) SetFields(fields []string)
SetFields adds the fields to the blocks params
func (*BlocksParams) SetFromHeight ¶ added in v2.2.0
func (o *BlocksParams) SetFromHeight(fromHeight uint64)
SetFromHeight adds the fromHeight to the blocks params
func (*BlocksParams) SetHTTPClient ¶ added in v2.2.0
func (o *BlocksParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the blocks params
func (*BlocksParams) SetTimeout ¶ added in v2.2.0
func (o *BlocksParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the blocks params
func (*BlocksParams) SetToHeight ¶ added in v2.2.0
func (o *BlocksParams) SetToHeight(toHeight uint64)
SetToHeight adds the toHeight to the blocks params
func (*BlocksParams) WithContext ¶ added in v2.2.0
func (o *BlocksParams) WithContext(ctx context.Context) *BlocksParams
WithContext adds the context to the blocks params
func (*BlocksParams) WithDefaults ¶ added in v2.4.0
func (o *BlocksParams) WithDefaults() *BlocksParams
WithDefaults hydrates default values in the blocks params (not the query body).
All values with no default are reset to their zero value.
func (*BlocksParams) WithEvents ¶ added in v2.4.0
func (o *BlocksParams) WithEvents(events *bool) *BlocksParams
WithEvents adds the events to the blocks params
func (*BlocksParams) WithFailedTxs ¶ added in v2.2.0
func (o *BlocksParams) WithFailedTxs(failedTxs *bool) *BlocksParams
WithFailedTxs adds the failedTxs to the blocks params
func (*BlocksParams) WithFields ¶ added in v2.2.0
func (o *BlocksParams) WithFields(fields []string) *BlocksParams
WithFields adds the fields to the blocks params
func (*BlocksParams) WithFromHeight ¶ added in v2.2.0
func (o *BlocksParams) WithFromHeight(fromHeight uint64) *BlocksParams
WithFromHeight adds the fromHeight to the blocks params
func (*BlocksParams) WithHTTPClient ¶ added in v2.2.0
func (o *BlocksParams) WithHTTPClient(client *http.Client) *BlocksParams
WithHTTPClient adds the HTTPClient to the blocks params
func (*BlocksParams) WithTimeout ¶ added in v2.2.0
func (o *BlocksParams) WithTimeout(timeout time.Duration) *BlocksParams
WithTimeout adds the timeout to the blocks params
func (*BlocksParams) WithToHeight ¶ added in v2.2.0
func (o *BlocksParams) WithToHeight(toHeight uint64) *BlocksParams
WithToHeight adds the toHeight to the blocks params
func (*BlocksParams) WriteToRequest ¶ added in v2.2.0
func (o *BlocksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BlocksReader ¶ added in v2.2.0
type BlocksReader struct {
// contains filtered or unexported fields
}
BlocksReader is a Reader for the Blocks structure.
func (*BlocksReader) ReadResponse ¶ added in v2.2.0
func (o *BlocksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CandidateDefault ¶
type CandidateDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
CandidateDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewCandidateDefault ¶
func NewCandidateDefault(code int) *CandidateDefault
NewCandidateDefault creates a CandidateDefault with default headers values
func (*CandidateDefault) Code ¶
func (o *CandidateDefault) Code() int
Code gets the status code for the candidate default response
func (*CandidateDefault) Error ¶
func (o *CandidateDefault) Error() string
func (*CandidateDefault) GetPayload ¶
func (o *CandidateDefault) GetPayload() *models.ErrorBody
type CandidateOK ¶
type CandidateOK struct {
Payload *models.CandidateResponse
}
CandidateOK describes a response with status code 200, with default header values.
A successful response.
func NewCandidateOK ¶
func NewCandidateOK() *CandidateOK
NewCandidateOK creates a CandidateOK with default headers values
func (*CandidateOK) Error ¶
func (o *CandidateOK) Error() string
func (*CandidateOK) GetPayload ¶
func (o *CandidateOK) GetPayload() *models.CandidateResponse
type CandidateParams ¶
type CandidateParams struct { /* Height. Blockchain state height for the current request. Optional, the last default state of the node is used Format: uint64 */ Height *uint64 /* NotShowStakes. Do not display a list of steaks. Note: used_slots, uniq_users, min_stake will be filled */ NotShowStakes *bool /* PublicKey. Public key of a candidate */ PublicKey string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CandidateParams contains all the parameters to send to the API endpoint
for the candidate operation. Typically these are written to a http.Request.
func NewCandidateParams ¶
func NewCandidateParams() *CandidateParams
NewCandidateParams creates a new CandidateParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCandidateParamsWithContext ¶
func NewCandidateParamsWithContext(ctx context.Context) *CandidateParams
NewCandidateParamsWithContext creates a new CandidateParams object with the ability to set a context for a request.
func NewCandidateParamsWithHTTPClient ¶
func NewCandidateParamsWithHTTPClient(client *http.Client) *CandidateParams
NewCandidateParamsWithHTTPClient creates a new CandidateParams object with the ability to set a custom HTTPClient for a request.
func NewCandidateParamsWithTimeout ¶
func NewCandidateParamsWithTimeout(timeout time.Duration) *CandidateParams
NewCandidateParamsWithTimeout creates a new CandidateParams object with the ability to set a timeout on a request.
func (*CandidateParams) SetContext ¶
func (o *CandidateParams) SetContext(ctx context.Context)
SetContext adds the context to the candidate params
func (*CandidateParams) SetDefaults ¶ added in v2.4.0
func (o *CandidateParams) SetDefaults()
SetDefaults hydrates default values in the candidate params (not the query body).
All values with no default are reset to their zero value.
func (*CandidateParams) SetHTTPClient ¶
func (o *CandidateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the candidate params
func (*CandidateParams) SetHeight ¶
func (o *CandidateParams) SetHeight(height *uint64)
SetHeight adds the height to the candidate params
func (*CandidateParams) SetNotShowStakes ¶ added in v2.1.0
func (o *CandidateParams) SetNotShowStakes(notShowStakes *bool)
SetNotShowStakes adds the notShowStakes to the candidate params
func (*CandidateParams) SetPublicKey ¶
func (o *CandidateParams) SetPublicKey(publicKey string)
SetPublicKey adds the publicKey to the candidate params
func (*CandidateParams) SetTimeout ¶
func (o *CandidateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the candidate params
func (*CandidateParams) WithContext ¶
func (o *CandidateParams) WithContext(ctx context.Context) *CandidateParams
WithContext adds the context to the candidate params
func (*CandidateParams) WithDefaults ¶ added in v2.4.0
func (o *CandidateParams) WithDefaults() *CandidateParams
WithDefaults hydrates default values in the candidate params (not the query body).
All values with no default are reset to their zero value.
func (*CandidateParams) WithHTTPClient ¶
func (o *CandidateParams) WithHTTPClient(client *http.Client) *CandidateParams
WithHTTPClient adds the HTTPClient to the candidate params
func (*CandidateParams) WithHeight ¶
func (o *CandidateParams) WithHeight(height *uint64) *CandidateParams
WithHeight adds the height to the candidate params
func (*CandidateParams) WithNotShowStakes ¶ added in v2.1.0
func (o *CandidateParams) WithNotShowStakes(notShowStakes *bool) *CandidateParams
WithNotShowStakes adds the notShowStakes to the candidate params
func (*CandidateParams) WithPublicKey ¶
func (o *CandidateParams) WithPublicKey(publicKey string) *CandidateParams
WithPublicKey adds the publicKey to the candidate params
func (*CandidateParams) WithTimeout ¶
func (o *CandidateParams) WithTimeout(timeout time.Duration) *CandidateParams
WithTimeout adds the timeout to the candidate params
func (*CandidateParams) WriteToRequest ¶
func (o *CandidateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CandidateReader ¶
type CandidateReader struct {
// contains filtered or unexported fields
}
CandidateReader is a Reader for the Candidate structure.
func (*CandidateReader) ReadResponse ¶
func (o *CandidateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CandidatesDefault ¶
type CandidatesDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
CandidatesDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewCandidatesDefault ¶
func NewCandidatesDefault(code int) *CandidatesDefault
NewCandidatesDefault creates a CandidatesDefault with default headers values
func (*CandidatesDefault) Code ¶
func (o *CandidatesDefault) Code() int
Code gets the status code for the candidates default response
func (*CandidatesDefault) Error ¶
func (o *CandidatesDefault) Error() string
func (*CandidatesDefault) GetPayload ¶
func (o *CandidatesDefault) GetPayload() *models.ErrorBody
type CandidatesOK ¶
type CandidatesOK struct {
Payload *models.CandidatesResponse
}
CandidatesOK describes a response with status code 200, with default header values.
A successful response.
func NewCandidatesOK ¶
func NewCandidatesOK() *CandidatesOK
NewCandidatesOK creates a CandidatesOK with default headers values
func (*CandidatesOK) Error ¶
func (o *CandidatesOK) Error() string
func (*CandidatesOK) GetPayload ¶
func (o *CandidatesOK) GetPayload() *models.CandidatesResponse
type CandidatesParams ¶
type CandidatesParams struct { /* Height. Blockchain state height for the current request. Optional, the last default state of the node is used Format: uint64 */ Height *uint64 /* IncludeStakes. Calculate field values used_slots, uniq_users, min_stake */ IncludeStakes *bool /* NotShowStakes. Do not display the list of stakes, the include_stakes flag is also required to display. Note: used_slots, uniq_users, min_stake will still be filled if include_stakes flag is used */ NotShowStakes *bool // Status. // // Default: "all" Status *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CandidatesParams contains all the parameters to send to the API endpoint
for the candidates operation. Typically these are written to a http.Request.
func NewCandidatesParams ¶
func NewCandidatesParams() *CandidatesParams
NewCandidatesParams creates a new CandidatesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCandidatesParamsWithContext ¶
func NewCandidatesParamsWithContext(ctx context.Context) *CandidatesParams
NewCandidatesParamsWithContext creates a new CandidatesParams object with the ability to set a context for a request.
func NewCandidatesParamsWithHTTPClient ¶
func NewCandidatesParamsWithHTTPClient(client *http.Client) *CandidatesParams
NewCandidatesParamsWithHTTPClient creates a new CandidatesParams object with the ability to set a custom HTTPClient for a request.
func NewCandidatesParamsWithTimeout ¶
func NewCandidatesParamsWithTimeout(timeout time.Duration) *CandidatesParams
NewCandidatesParamsWithTimeout creates a new CandidatesParams object with the ability to set a timeout on a request.
func (*CandidatesParams) SetContext ¶
func (o *CandidatesParams) SetContext(ctx context.Context)
SetContext adds the context to the candidates params
func (*CandidatesParams) SetDefaults ¶ added in v2.4.0
func (o *CandidatesParams) SetDefaults()
SetDefaults hydrates default values in the candidates params (not the query body).
All values with no default are reset to their zero value.
func (*CandidatesParams) SetHTTPClient ¶
func (o *CandidatesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the candidates params
func (*CandidatesParams) SetHeight ¶
func (o *CandidatesParams) SetHeight(height *uint64)
SetHeight adds the height to the candidates params
func (*CandidatesParams) SetIncludeStakes ¶
func (o *CandidatesParams) SetIncludeStakes(includeStakes *bool)
SetIncludeStakes adds the includeStakes to the candidates params
func (*CandidatesParams) SetNotShowStakes ¶ added in v2.1.0
func (o *CandidatesParams) SetNotShowStakes(notShowStakes *bool)
SetNotShowStakes adds the notShowStakes to the candidates params
func (*CandidatesParams) SetStatus ¶
func (o *CandidatesParams) SetStatus(status *string)
SetStatus adds the status to the candidates params
func (*CandidatesParams) SetTimeout ¶
func (o *CandidatesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the candidates params
func (*CandidatesParams) WithContext ¶
func (o *CandidatesParams) WithContext(ctx context.Context) *CandidatesParams
WithContext adds the context to the candidates params
func (*CandidatesParams) WithDefaults ¶ added in v2.4.0
func (o *CandidatesParams) WithDefaults() *CandidatesParams
WithDefaults hydrates default values in the candidates params (not the query body).
All values with no default are reset to their zero value.
func (*CandidatesParams) WithHTTPClient ¶
func (o *CandidatesParams) WithHTTPClient(client *http.Client) *CandidatesParams
WithHTTPClient adds the HTTPClient to the candidates params
func (*CandidatesParams) WithHeight ¶
func (o *CandidatesParams) WithHeight(height *uint64) *CandidatesParams
WithHeight adds the height to the candidates params
func (*CandidatesParams) WithIncludeStakes ¶
func (o *CandidatesParams) WithIncludeStakes(includeStakes *bool) *CandidatesParams
WithIncludeStakes adds the includeStakes to the candidates params
func (*CandidatesParams) WithNotShowStakes ¶ added in v2.1.0
func (o *CandidatesParams) WithNotShowStakes(notShowStakes *bool) *CandidatesParams
WithNotShowStakes adds the notShowStakes to the candidates params
func (*CandidatesParams) WithStatus ¶
func (o *CandidatesParams) WithStatus(status *string) *CandidatesParams
WithStatus adds the status to the candidates params
func (*CandidatesParams) WithTimeout ¶
func (o *CandidatesParams) WithTimeout(timeout time.Duration) *CandidatesParams
WithTimeout adds the timeout to the candidates params
func (*CandidatesParams) WriteToRequest ¶
func (o *CandidatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CandidatesReader ¶
type CandidatesReader struct {
// contains filtered or unexported fields
}
CandidatesReader is a Reader for the Candidates structure.
func (*CandidatesReader) ReadResponse ¶
func (o *CandidatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for api service API
func (*Client) Address ¶
func (a *Client) Address(params *AddressParams, opts ...ClientOption) (*AddressOK, error)
Address addresses
Address returns coins list, balance and transaction count of an address.
func (*Client) Addresses ¶
func (a *Client) Addresses(params *AddressesParams, opts ...ClientOption) (*AddressesOK, error)
Addresses addresses
Addresses returns list of addresses.
func (*Client) BestTrade ¶ added in v2.5.0
func (a *Client) BestTrade(params *BestTradeParams, opts ...ClientOption) (*BestTradeOK, error)
BestTrade bests trade
BestTrade returns optimal exchange route.
func (*Client) Block ¶
func (a *Client) Block(params *BlockParams, opts ...ClientOption) (*BlockOK, error)
Block blocks
Block returns block data at given height.
func (*Client) Blocks ¶ added in v2.2.0
func (a *Client) Blocks(params *BlocksParams, opts ...ClientOption) (*BlocksOK, error)
Blocks blocks
Blocks returns blocks at given interval.
func (*Client) Candidate ¶
func (a *Client) Candidate(params *CandidateParams, opts ...ClientOption) (*CandidateOK, error)
Candidate candidates Candidate returns candidate’s info by provided public key.
## Fields of response | Name | Description | | --------- | ---------------------------- | | id | | | reward_address | Address where validator’s rewards go to. | | owner_address | 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. | | control_address | Address that allows one to start the candidate by sending the SetCandidateOnline transaction or stop it by sending the SetCandidateOffline transaction. | | total_stake | Total stake of a candidate | | public_key | Public key of a candidate | | commission | Commission (from 0 to 100) from rewards which delegators will pay to validator | | used_slots | Number of occupied steak slots. Note: filled in when request includes_stakes | | uniq_users | Number of unique wallets in steaks. Note: filled in when request includes_stakes | | min_stake | Smallest steak size. Note: filled in when request includes_stakes | | stakes | List of stakes. Note: filled in when request includes_stakes | | status | Candidate status. Available values: offline = 1, online = 2 | | validator | Is a validator at the current height | | jailed_until | |
func (*Client) Candidates ¶
func (a *Client) Candidates(params *CandidatesParams, opts ...ClientOption) (*CandidatesOK, error)
Candidates candidates
Candidates returns list of candidates.
func (*Client) CoinInfo ¶
func (a *Client) CoinInfo(params *CoinInfoParams, opts ...ClientOption) (*CoinInfoOK, error)
CoinInfo coins info
CoinInfo returns information about coin symbol.
func (*Client) CoinInfoByID ¶
func (a *Client) CoinInfoByID(params *CoinInfoByIDParams, opts ...ClientOption) (*CoinInfoByIDOK, error)
CoinInfoByID coins info by Id
CoinInfoById returns information about coin ID.
func (*Client) CommissionVotes ¶ added in v2.2.0
func (a *Client) CommissionVotes(params *CommissionVotesParams, opts ...ClientOption) (*CommissionVotesOK, error)
CommissionVotes commissions votes
CommissionVotes returns votes for update commissions.
func (*Client) EstimateCoinBuy ¶
func (a *Client) EstimateCoinBuy(params *EstimateCoinBuyParams, opts ...ClientOption) (*EstimateCoinBuyOK, error)
EstimateCoinBuy estimates coin buy
EstimateCoinBuy returns estimate of buy coin transaction.
func (*Client) EstimateCoinSell ¶
func (a *Client) EstimateCoinSell(params *EstimateCoinSellParams, opts ...ClientOption) (*EstimateCoinSellOK, error)
EstimateCoinSell estimates coin sell
EstimateCoinSell returns estimate of sell coin transaction.
func (*Client) EstimateCoinSellAll ¶
func (a *Client) EstimateCoinSellAll(params *EstimateCoinSellAllParams, opts ...ClientOption) (*EstimateCoinSellAllOK, error)
EstimateCoinSellAll estimates coin sell all
EstimateCoinSellAll returns estimate of sell all coin transaction.
func (*Client) EstimateTxCommission ¶
func (a *Client) EstimateTxCommission(params *EstimateTxCommissionParams, opts ...ClientOption) (*EstimateTxCommissionOK, error)
EstimateTxCommission estimates tx commission
EstimateTxCommission returns estimate of transaction.
func (*Client) Events ¶
func (a *Client) Events(params *EventsParams, opts ...ClientOption) (*EventsOK, error)
Events events
Events returns events at given height.
func (*Client) Frozen ¶
func (a *Client) Frozen(params *FrozenParams, opts ...ClientOption) (*FrozenOK, error)
Frozen frozens Frozen returns frozen balance.
Deprecated: Use FrozenAll instead.
func (*Client) FrozenAll ¶ added in v2.5.0
func (a *Client) FrozenAll(params *FrozenAllParams, opts ...ClientOption) (*FrozenAllOK, error)
FrozenAll frozens all
FrozenAll returns frozen balance.
func (*Client) Genesis ¶
func (a *Client) Genesis(params *GenesisParams, opts ...ClientOption) (*GenesisOK, error)
Genesis geneses
Genesis returns genesis file.
func (*Client) Halts ¶
func (a *Client) Halts(params *HaltsParams, opts ...ClientOption) (*HaltsOK, error)
Halts halts
Halts returns the candidate votes for stopping the network at block.
func (*Client) LimitOrder ¶ added in v2.4.0
func (a *Client) LimitOrder(params *LimitOrderParams, opts ...ClientOption) (*LimitOrderOK, error)
LimitOrder limits order
LimitOrder returns order by ID.
func (*Client) LimitOrders ¶ added in v2.4.0
func (a *Client) LimitOrders(params *LimitOrdersParams, opts ...ClientOption) (*LimitOrdersOK, error)
LimitOrders limits orders
LimitOrders returns orders by IDs.
func (*Client) LimitOrdersOfPool ¶ added in v2.4.0
func (a *Client) LimitOrdersOfPool(params *LimitOrdersOfPoolParams, opts ...ClientOption) (*LimitOrdersOfPoolOK, error)
LimitOrdersOfPool limits orders of pool
LimitOrdersOfPool returns sell orders for a pair of coins.
func (*Client) MaxGasPrice ¶
func (a *Client) MaxGasPrice(params *MaxGasPriceParams, opts ...ClientOption) (*MaxGasPriceOK, error)
MaxGasPrice maxes gas price
MaxGasPrice returns current max gas.
func (*Client) MinGasPrice ¶
func (a *Client) MinGasPrice(params *MinGasPriceParams, opts ...ClientOption) (*MinGasPriceOK, error)
MinGasPrice mins gas price
MinGasPrice returns current min gas price.
func (*Client) MissedBlocks ¶
func (a *Client) MissedBlocks(params *MissedBlocksParams, opts ...ClientOption) (*MissedBlocksOK, error)
MissedBlocks misseds blocks
MissedBlocks returns missed blocks by validator public key.
func (*Client) NetInfo ¶
func (a *Client) NetInfo(params *NetInfoParams, opts ...ClientOption) (*NetInfoOK, error)
NetInfo nets info
NetInfo returns network info
func (*Client) PriceCommission ¶ added in v2.2.0
func (a *Client) PriceCommission(params *PriceCommissionParams, opts ...ClientOption) (*PriceCommissionOK, error)
PriceCommission prices commission
PriceCommission returns commissions.
func (*Client) SendTransaction ¶
func (a *Client) SendTransaction(params *SendTransactionParams, opts ...ClientOption) (*SendTransactionOK, error)
SendTransaction sends transaction
SendTransaction returns the result of sending signed tx. To ensure that transaction was successfully committed to the blockchain, you need to find the transaction by the hash and ensure that the status code equals to 0.
func (*Client) SendTransaction2 ¶
func (a *Client) SendTransaction2(params *SendTransaction2Params, opts ...ClientOption) (*SendTransaction2OK, error)
SendTransaction2 sends transaction
SendTransaction returns the result of sending signed tx. To ensure that transaction was successfully committed to the blockchain, you need to find the transaction by the hash and ensure that the status code equals to 0.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) Status ¶
func (a *Client) Status(params *StatusParams, opts ...ClientOption) (*StatusOK, error)
Status statuses
Status returns node status including pubkey, latest block.
func (*Client) Subscribe ¶
func (a *Client) Subscribe(params *SubscribeParams, opts ...ClientOption) (*SubscribeOK, error)
Subscribe subscribes
Subscribe returns a subscription for events by query. Only supported in WS and gRPC methods.
func (*Client) SwapPool ¶ added in v2.2.0
func (a *Client) SwapPool(params *SwapPoolParams, opts ...ClientOption) (*SwapPoolOK, error)
SwapPool swaps pool
SwapPool returns total supply and reserves.
func (*Client) SwapPoolProvider ¶ added in v2.2.0
func (a *Client) SwapPoolProvider(params *SwapPoolProviderParams, opts ...ClientOption) (*SwapPoolProviderOK, error)
SwapPoolProvider swaps pool provider
SwapPoolProvider returns reserves and liquidity balance of provider.
func (*Client) SwapPools ¶ added in v2.5.0
func (a *Client) SwapPools(params *SwapPoolsParams, opts ...ClientOption) (*SwapPoolsOK, error)
SwapPools swaps pools
SwapPools returns list of all pools.
func (*Client) TestBlock ¶ added in v2.1.0
func (a *Client) TestBlock(params *TestBlockParams, opts ...ClientOption) (*TestBlockOK, error)
TestBlock tests block
TestBlock returns the list of example transactions in block. Available only testnet mode.
func (*Client) Transaction ¶
func (a *Client) Transaction(params *TransactionParams, opts ...ClientOption) (*TransactionOK, error)
Transaction transactions
Transaction returns transaction info.
func (*Client) Transactions ¶
func (a *Client) Transactions(params *TransactionsParams, opts ...ClientOption) (*TransactionsOK, error)
Transactions transactions
Transactions returns transactions by query.
func (*Client) UnconfirmedTxs ¶
func (a *Client) UnconfirmedTxs(params *UnconfirmedTxsParams, opts ...ClientOption) (*UnconfirmedTxsOK, error)
UnconfirmedTxs unconfirmeds txs
UnconfirmedTxs returns unconfirmed transactions.
func (*Client) UpdateVotes ¶ added in v2.2.0
func (a *Client) UpdateVotes(params *UpdateVotesParams, opts ...ClientOption) (*UpdateVotesOK, error)
UpdateVotes updates votes
UpdateVotes returns votes for update network.
func (*Client) Validators ¶
func (a *Client) Validators(params *ValidatorsParams, opts ...ClientOption) (*ValidatorsOK, error)
Validators validators
Validators returns list of active validators.
func (*Client) VersionNetwork ¶ added in v2.2.0
func (a *Client) VersionNetwork(params *VersionNetworkParams, opts ...ClientOption) (*VersionNetworkOK, error)
VersionNetwork versions network
VersionNetwork returns versions network.
func (*Client) WaitList ¶
func (a *Client) WaitList(params *WaitListParams, opts ...ClientOption) (*WaitListOK, error)
WaitList waits list
WaitList returns the list of address stakes in waitlist.
type ClientOption ¶ added in v2.4.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { Address(params *AddressParams, opts ...ClientOption) (*AddressOK, error) Addresses(params *AddressesParams, opts ...ClientOption) (*AddressesOK, error) BestTrade(params *BestTradeParams, opts ...ClientOption) (*BestTradeOK, error) Block(params *BlockParams, opts ...ClientOption) (*BlockOK, error) Blocks(params *BlocksParams, opts ...ClientOption) (*BlocksOK, error) Candidate(params *CandidateParams, opts ...ClientOption) (*CandidateOK, error) Candidates(params *CandidatesParams, opts ...ClientOption) (*CandidatesOK, error) CoinInfo(params *CoinInfoParams, opts ...ClientOption) (*CoinInfoOK, error) CoinInfoByID(params *CoinInfoByIDParams, opts ...ClientOption) (*CoinInfoByIDOK, error) CommissionVotes(params *CommissionVotesParams, opts ...ClientOption) (*CommissionVotesOK, error) EstimateCoinBuy(params *EstimateCoinBuyParams, opts ...ClientOption) (*EstimateCoinBuyOK, error) EstimateCoinSell(params *EstimateCoinSellParams, opts ...ClientOption) (*EstimateCoinSellOK, error) EstimateCoinSellAll(params *EstimateCoinSellAllParams, opts ...ClientOption) (*EstimateCoinSellAllOK, error) EstimateTxCommission(params *EstimateTxCommissionParams, opts ...ClientOption) (*EstimateTxCommissionOK, error) Events(params *EventsParams, opts ...ClientOption) (*EventsOK, error) Frozen(params *FrozenParams, opts ...ClientOption) (*FrozenOK, error) FrozenAll(params *FrozenAllParams, opts ...ClientOption) (*FrozenAllOK, error) Genesis(params *GenesisParams, opts ...ClientOption) (*GenesisOK, error) Halts(params *HaltsParams, opts ...ClientOption) (*HaltsOK, error) LimitOrder(params *LimitOrderParams, opts ...ClientOption) (*LimitOrderOK, error) LimitOrders(params *LimitOrdersParams, opts ...ClientOption) (*LimitOrdersOK, error) LimitOrdersOfPool(params *LimitOrdersOfPoolParams, opts ...ClientOption) (*LimitOrdersOfPoolOK, error) MaxGasPrice(params *MaxGasPriceParams, opts ...ClientOption) (*MaxGasPriceOK, error) MinGasPrice(params *MinGasPriceParams, opts ...ClientOption) (*MinGasPriceOK, error) MissedBlocks(params *MissedBlocksParams, opts ...ClientOption) (*MissedBlocksOK, error) NetInfo(params *NetInfoParams, opts ...ClientOption) (*NetInfoOK, error) PriceCommission(params *PriceCommissionParams, opts ...ClientOption) (*PriceCommissionOK, error) SendTransaction(params *SendTransactionParams, opts ...ClientOption) (*SendTransactionOK, error) SendTransaction2(params *SendTransaction2Params, opts ...ClientOption) (*SendTransaction2OK, error) Status(params *StatusParams, opts ...ClientOption) (*StatusOK, error) Subscribe(params *SubscribeParams, opts ...ClientOption) (*SubscribeOK, error) SwapPool(params *SwapPoolParams, opts ...ClientOption) (*SwapPoolOK, error) SwapPoolProvider(params *SwapPoolProviderParams, opts ...ClientOption) (*SwapPoolProviderOK, error) SwapPools(params *SwapPoolsParams, opts ...ClientOption) (*SwapPoolsOK, error) TestBlock(params *TestBlockParams, opts ...ClientOption) (*TestBlockOK, error) Transaction(params *TransactionParams, opts ...ClientOption) (*TransactionOK, error) Transactions(params *TransactionsParams, opts ...ClientOption) (*TransactionsOK, error) UnconfirmedTxs(params *UnconfirmedTxsParams, opts ...ClientOption) (*UnconfirmedTxsOK, error) UpdateVotes(params *UpdateVotesParams, opts ...ClientOption) (*UpdateVotesOK, error) Validators(params *ValidatorsParams, opts ...ClientOption) (*ValidatorsOK, error) VersionNetwork(params *VersionNetworkParams, opts ...ClientOption) (*VersionNetworkOK, error) WaitList(params *WaitListParams, opts ...ClientOption) (*WaitListOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new api service API client.
type CoinInfoByIDDefault ¶
type CoinInfoByIDDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
CoinInfoByIDDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewCoinInfoByIDDefault ¶
func NewCoinInfoByIDDefault(code int) *CoinInfoByIDDefault
NewCoinInfoByIDDefault creates a CoinInfoByIDDefault with default headers values
func (*CoinInfoByIDDefault) Code ¶
func (o *CoinInfoByIDDefault) Code() int
Code gets the status code for the coin info by Id default response
func (*CoinInfoByIDDefault) Error ¶
func (o *CoinInfoByIDDefault) Error() string
func (*CoinInfoByIDDefault) GetPayload ¶
func (o *CoinInfoByIDDefault) GetPayload() *models.ErrorBody
type CoinInfoByIDOK ¶
type CoinInfoByIDOK struct {
Payload *models.CoinInfoResponse
}
CoinInfoByIDOK describes a response with status code 200, with default header values.
A successful response.
func NewCoinInfoByIDOK ¶
func NewCoinInfoByIDOK() *CoinInfoByIDOK
NewCoinInfoByIDOK creates a CoinInfoByIDOK with default headers values
func (*CoinInfoByIDOK) Error ¶
func (o *CoinInfoByIDOK) Error() string
func (*CoinInfoByIDOK) GetPayload ¶
func (o *CoinInfoByIDOK) GetPayload() *models.CoinInfoResponse
type CoinInfoByIDParams ¶
type CoinInfoByIDParams struct { // Height. // // Format: uint64 Height *uint64 // ID. // // Format: uint64 ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CoinInfoByIDParams contains all the parameters to send to the API endpoint
for the coin info by Id operation. Typically these are written to a http.Request.
func NewCoinInfoByIDParams ¶
func NewCoinInfoByIDParams() *CoinInfoByIDParams
NewCoinInfoByIDParams creates a new CoinInfoByIDParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCoinInfoByIDParamsWithContext ¶
func NewCoinInfoByIDParamsWithContext(ctx context.Context) *CoinInfoByIDParams
NewCoinInfoByIDParamsWithContext creates a new CoinInfoByIDParams object with the ability to set a context for a request.
func NewCoinInfoByIDParamsWithHTTPClient ¶
func NewCoinInfoByIDParamsWithHTTPClient(client *http.Client) *CoinInfoByIDParams
NewCoinInfoByIDParamsWithHTTPClient creates a new CoinInfoByIDParams object with the ability to set a custom HTTPClient for a request.
func NewCoinInfoByIDParamsWithTimeout ¶
func NewCoinInfoByIDParamsWithTimeout(timeout time.Duration) *CoinInfoByIDParams
NewCoinInfoByIDParamsWithTimeout creates a new CoinInfoByIDParams object with the ability to set a timeout on a request.
func (*CoinInfoByIDParams) SetContext ¶
func (o *CoinInfoByIDParams) SetContext(ctx context.Context)
SetContext adds the context to the coin info by Id params
func (*CoinInfoByIDParams) SetDefaults ¶ added in v2.4.0
func (o *CoinInfoByIDParams) SetDefaults()
SetDefaults hydrates default values in the coin info by Id params (not the query body).
All values with no default are reset to their zero value.
func (*CoinInfoByIDParams) SetHTTPClient ¶
func (o *CoinInfoByIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the coin info by Id params
func (*CoinInfoByIDParams) SetHeight ¶
func (o *CoinInfoByIDParams) SetHeight(height *uint64)
SetHeight adds the height to the coin info by Id params
func (*CoinInfoByIDParams) SetID ¶
func (o *CoinInfoByIDParams) SetID(id string)
SetID adds the id to the coin info by Id params
func (*CoinInfoByIDParams) SetTimeout ¶
func (o *CoinInfoByIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the coin info by Id params
func (*CoinInfoByIDParams) WithContext ¶
func (o *CoinInfoByIDParams) WithContext(ctx context.Context) *CoinInfoByIDParams
WithContext adds the context to the coin info by Id params
func (*CoinInfoByIDParams) WithDefaults ¶ added in v2.4.0
func (o *CoinInfoByIDParams) WithDefaults() *CoinInfoByIDParams
WithDefaults hydrates default values in the coin info by Id params (not the query body).
All values with no default are reset to their zero value.
func (*CoinInfoByIDParams) WithHTTPClient ¶
func (o *CoinInfoByIDParams) WithHTTPClient(client *http.Client) *CoinInfoByIDParams
WithHTTPClient adds the HTTPClient to the coin info by Id params
func (*CoinInfoByIDParams) WithHeight ¶
func (o *CoinInfoByIDParams) WithHeight(height *uint64) *CoinInfoByIDParams
WithHeight adds the height to the coin info by Id params
func (*CoinInfoByIDParams) WithID ¶
func (o *CoinInfoByIDParams) WithID(id string) *CoinInfoByIDParams
WithID adds the id to the coin info by Id params
func (*CoinInfoByIDParams) WithTimeout ¶
func (o *CoinInfoByIDParams) WithTimeout(timeout time.Duration) *CoinInfoByIDParams
WithTimeout adds the timeout to the coin info by Id params
func (*CoinInfoByIDParams) WriteToRequest ¶
func (o *CoinInfoByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CoinInfoByIDReader ¶
type CoinInfoByIDReader struct {
// contains filtered or unexported fields
}
CoinInfoByIDReader is a Reader for the CoinInfoByID structure.
func (*CoinInfoByIDReader) ReadResponse ¶
func (o *CoinInfoByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CoinInfoDefault ¶
CoinInfoDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewCoinInfoDefault ¶
func NewCoinInfoDefault(code int) *CoinInfoDefault
NewCoinInfoDefault creates a CoinInfoDefault with default headers values
func (*CoinInfoDefault) Code ¶
func (o *CoinInfoDefault) Code() int
Code gets the status code for the coin info default response
func (*CoinInfoDefault) Error ¶
func (o *CoinInfoDefault) Error() string
func (*CoinInfoDefault) GetPayload ¶
func (o *CoinInfoDefault) GetPayload() *models.ErrorBody
type CoinInfoOK ¶
type CoinInfoOK struct {
Payload *models.CoinInfoResponse
}
CoinInfoOK describes a response with status code 200, with default header values.
A successful response.
func NewCoinInfoOK ¶
func NewCoinInfoOK() *CoinInfoOK
NewCoinInfoOK creates a CoinInfoOK with default headers values
func (*CoinInfoOK) Error ¶
func (o *CoinInfoOK) Error() string
func (*CoinInfoOK) GetPayload ¶
func (o *CoinInfoOK) GetPayload() *models.CoinInfoResponse
type CoinInfoParams ¶
type CoinInfoParams struct { // Height. // // Format: uint64 Height *uint64 // Symbol. Symbol string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CoinInfoParams contains all the parameters to send to the API endpoint
for the coin info operation. Typically these are written to a http.Request.
func NewCoinInfoParams ¶
func NewCoinInfoParams() *CoinInfoParams
NewCoinInfoParams creates a new CoinInfoParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCoinInfoParamsWithContext ¶
func NewCoinInfoParamsWithContext(ctx context.Context) *CoinInfoParams
NewCoinInfoParamsWithContext creates a new CoinInfoParams object with the ability to set a context for a request.
func NewCoinInfoParamsWithHTTPClient ¶
func NewCoinInfoParamsWithHTTPClient(client *http.Client) *CoinInfoParams
NewCoinInfoParamsWithHTTPClient creates a new CoinInfoParams object with the ability to set a custom HTTPClient for a request.
func NewCoinInfoParamsWithTimeout ¶
func NewCoinInfoParamsWithTimeout(timeout time.Duration) *CoinInfoParams
NewCoinInfoParamsWithTimeout creates a new CoinInfoParams object with the ability to set a timeout on a request.
func (*CoinInfoParams) SetContext ¶
func (o *CoinInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the coin info params
func (*CoinInfoParams) SetDefaults ¶ added in v2.4.0
func (o *CoinInfoParams) SetDefaults()
SetDefaults hydrates default values in the coin info params (not the query body).
All values with no default are reset to their zero value.
func (*CoinInfoParams) SetHTTPClient ¶
func (o *CoinInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the coin info params
func (*CoinInfoParams) SetHeight ¶
func (o *CoinInfoParams) SetHeight(height *uint64)
SetHeight adds the height to the coin info params
func (*CoinInfoParams) SetSymbol ¶
func (o *CoinInfoParams) SetSymbol(symbol string)
SetSymbol adds the symbol to the coin info params
func (*CoinInfoParams) SetTimeout ¶
func (o *CoinInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the coin info params
func (*CoinInfoParams) WithContext ¶
func (o *CoinInfoParams) WithContext(ctx context.Context) *CoinInfoParams
WithContext adds the context to the coin info params
func (*CoinInfoParams) WithDefaults ¶ added in v2.4.0
func (o *CoinInfoParams) WithDefaults() *CoinInfoParams
WithDefaults hydrates default values in the coin info params (not the query body).
All values with no default are reset to their zero value.
func (*CoinInfoParams) WithHTTPClient ¶
func (o *CoinInfoParams) WithHTTPClient(client *http.Client) *CoinInfoParams
WithHTTPClient adds the HTTPClient to the coin info params
func (*CoinInfoParams) WithHeight ¶
func (o *CoinInfoParams) WithHeight(height *uint64) *CoinInfoParams
WithHeight adds the height to the coin info params
func (*CoinInfoParams) WithSymbol ¶
func (o *CoinInfoParams) WithSymbol(symbol string) *CoinInfoParams
WithSymbol adds the symbol to the coin info params
func (*CoinInfoParams) WithTimeout ¶
func (o *CoinInfoParams) WithTimeout(timeout time.Duration) *CoinInfoParams
WithTimeout adds the timeout to the coin info params
func (*CoinInfoParams) WriteToRequest ¶
func (o *CoinInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CoinInfoReader ¶
type CoinInfoReader struct {
// contains filtered or unexported fields
}
CoinInfoReader is a Reader for the CoinInfo structure.
func (*CoinInfoReader) ReadResponse ¶
func (o *CoinInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CommissionVotesDefault ¶ added in v2.2.0
type CommissionVotesDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
CommissionVotesDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewCommissionVotesDefault ¶ added in v2.2.0
func NewCommissionVotesDefault(code int) *CommissionVotesDefault
NewCommissionVotesDefault creates a CommissionVotesDefault with default headers values
func (*CommissionVotesDefault) Code ¶ added in v2.2.0
func (o *CommissionVotesDefault) Code() int
Code gets the status code for the commission votes default response
func (*CommissionVotesDefault) Error ¶ added in v2.2.0
func (o *CommissionVotesDefault) Error() string
func (*CommissionVotesDefault) GetPayload ¶ added in v2.2.0
func (o *CommissionVotesDefault) GetPayload() *models.ErrorBody
type CommissionVotesOK ¶ added in v2.2.0
type CommissionVotesOK struct {
Payload *models.CommissionVotesResponse
}
CommissionVotesOK describes a response with status code 200, with default header values.
A successful response.
func NewCommissionVotesOK ¶ added in v2.2.0
func NewCommissionVotesOK() *CommissionVotesOK
NewCommissionVotesOK creates a CommissionVotesOK with default headers values
func (*CommissionVotesOK) Error ¶ added in v2.2.0
func (o *CommissionVotesOK) Error() string
func (*CommissionVotesOK) GetPayload ¶ added in v2.2.0
func (o *CommissionVotesOK) GetPayload() *models.CommissionVotesResponse
type CommissionVotesParams ¶ added in v2.2.0
type CommissionVotesParams struct { // Height. // // Format: uint64 Height *uint64 // TargetVersion. // // Format: uint64 TargetVersion string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CommissionVotesParams contains all the parameters to send to the API endpoint
for the commission votes operation. Typically these are written to a http.Request.
func NewCommissionVotesParams ¶ added in v2.2.0
func NewCommissionVotesParams() *CommissionVotesParams
NewCommissionVotesParams creates a new CommissionVotesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCommissionVotesParamsWithContext ¶ added in v2.2.0
func NewCommissionVotesParamsWithContext(ctx context.Context) *CommissionVotesParams
NewCommissionVotesParamsWithContext creates a new CommissionVotesParams object with the ability to set a context for a request.
func NewCommissionVotesParamsWithHTTPClient ¶ added in v2.2.0
func NewCommissionVotesParamsWithHTTPClient(client *http.Client) *CommissionVotesParams
NewCommissionVotesParamsWithHTTPClient creates a new CommissionVotesParams object with the ability to set a custom HTTPClient for a request.
func NewCommissionVotesParamsWithTimeout ¶ added in v2.2.0
func NewCommissionVotesParamsWithTimeout(timeout time.Duration) *CommissionVotesParams
NewCommissionVotesParamsWithTimeout creates a new CommissionVotesParams object with the ability to set a timeout on a request.
func (*CommissionVotesParams) SetContext ¶ added in v2.2.0
func (o *CommissionVotesParams) SetContext(ctx context.Context)
SetContext adds the context to the commission votes params
func (*CommissionVotesParams) SetDefaults ¶ added in v2.4.0
func (o *CommissionVotesParams) SetDefaults()
SetDefaults hydrates default values in the commission votes params (not the query body).
All values with no default are reset to their zero value.
func (*CommissionVotesParams) SetHTTPClient ¶ added in v2.2.0
func (o *CommissionVotesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the commission votes params
func (*CommissionVotesParams) SetHeight ¶ added in v2.2.0
func (o *CommissionVotesParams) SetHeight(height *uint64)
SetHeight adds the height to the commission votes params
func (*CommissionVotesParams) SetTargetVersion ¶ added in v2.2.0
func (o *CommissionVotesParams) SetTargetVersion(targetVersion string)
SetTargetVersion adds the targetVersion to the commission votes params
func (*CommissionVotesParams) SetTimeout ¶ added in v2.2.0
func (o *CommissionVotesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the commission votes params
func (*CommissionVotesParams) WithContext ¶ added in v2.2.0
func (o *CommissionVotesParams) WithContext(ctx context.Context) *CommissionVotesParams
WithContext adds the context to the commission votes params
func (*CommissionVotesParams) WithDefaults ¶ added in v2.4.0
func (o *CommissionVotesParams) WithDefaults() *CommissionVotesParams
WithDefaults hydrates default values in the commission votes params (not the query body).
All values with no default are reset to their zero value.
func (*CommissionVotesParams) WithHTTPClient ¶ added in v2.2.0
func (o *CommissionVotesParams) WithHTTPClient(client *http.Client) *CommissionVotesParams
WithHTTPClient adds the HTTPClient to the commission votes params
func (*CommissionVotesParams) WithHeight ¶ added in v2.2.0
func (o *CommissionVotesParams) WithHeight(height *uint64) *CommissionVotesParams
WithHeight adds the height to the commission votes params
func (*CommissionVotesParams) WithTargetVersion ¶ added in v2.2.0
func (o *CommissionVotesParams) WithTargetVersion(targetVersion string) *CommissionVotesParams
WithTargetVersion adds the targetVersion to the commission votes params
func (*CommissionVotesParams) WithTimeout ¶ added in v2.2.0
func (o *CommissionVotesParams) WithTimeout(timeout time.Duration) *CommissionVotesParams
WithTimeout adds the timeout to the commission votes params
func (*CommissionVotesParams) WriteToRequest ¶ added in v2.2.0
func (o *CommissionVotesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CommissionVotesReader ¶ added in v2.2.0
type CommissionVotesReader struct {
// contains filtered or unexported fields
}
CommissionVotesReader is a Reader for the CommissionVotes structure.
func (*CommissionVotesReader) ReadResponse ¶ added in v2.2.0
func (o *CommissionVotesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type EstimateCoinBuyDefault ¶
type EstimateCoinBuyDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
EstimateCoinBuyDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewEstimateCoinBuyDefault ¶
func NewEstimateCoinBuyDefault(code int) *EstimateCoinBuyDefault
NewEstimateCoinBuyDefault creates a EstimateCoinBuyDefault with default headers values
func (*EstimateCoinBuyDefault) Code ¶
func (o *EstimateCoinBuyDefault) Code() int
Code gets the status code for the estimate coin buy default response
func (*EstimateCoinBuyDefault) Error ¶
func (o *EstimateCoinBuyDefault) Error() string
func (*EstimateCoinBuyDefault) GetPayload ¶
func (o *EstimateCoinBuyDefault) GetPayload() *models.ErrorBody
type EstimateCoinBuyOK ¶
type EstimateCoinBuyOK struct {
Payload *models.EstimateCoinBuyResponse
}
EstimateCoinBuyOK describes a response with status code 200, with default header values.
A successful response.
func NewEstimateCoinBuyOK ¶
func NewEstimateCoinBuyOK() *EstimateCoinBuyOK
NewEstimateCoinBuyOK creates a EstimateCoinBuyOK with default headers values
func (*EstimateCoinBuyOK) Error ¶
func (o *EstimateCoinBuyOK) Error() string
func (*EstimateCoinBuyOK) GetPayload ¶
func (o *EstimateCoinBuyOK) GetPayload() *models.EstimateCoinBuyResponse
type EstimateCoinBuyParams ¶
type EstimateCoinBuyParams struct { // CoinCommission. CoinCommission *string // CoinIDCommission. // // Format: uint64 CoinIDCommission *uint64 // CoinIDToBuy. // // Format: uint64 CoinIDToBuy *uint64 // CoinIDToSell. // // Format: uint64 CoinIDToSell *uint64 // CoinToBuy. CoinToBuy *string // CoinToSell. CoinToSell *string // Height. // // Format: uint64 Height *uint64 // Route. Route []string // SwapFrom. // // Default: "optimal" SwapFrom *string // ValueToBuy. ValueToBuy string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
EstimateCoinBuyParams contains all the parameters to send to the API endpoint
for the estimate coin buy operation. Typically these are written to a http.Request.
func NewEstimateCoinBuyParams ¶
func NewEstimateCoinBuyParams() *EstimateCoinBuyParams
NewEstimateCoinBuyParams creates a new EstimateCoinBuyParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewEstimateCoinBuyParamsWithContext ¶
func NewEstimateCoinBuyParamsWithContext(ctx context.Context) *EstimateCoinBuyParams
NewEstimateCoinBuyParamsWithContext creates a new EstimateCoinBuyParams object with the ability to set a context for a request.
func NewEstimateCoinBuyParamsWithHTTPClient ¶
func NewEstimateCoinBuyParamsWithHTTPClient(client *http.Client) *EstimateCoinBuyParams
NewEstimateCoinBuyParamsWithHTTPClient creates a new EstimateCoinBuyParams object with the ability to set a custom HTTPClient for a request.
func NewEstimateCoinBuyParamsWithTimeout ¶
func NewEstimateCoinBuyParamsWithTimeout(timeout time.Duration) *EstimateCoinBuyParams
NewEstimateCoinBuyParamsWithTimeout creates a new EstimateCoinBuyParams object with the ability to set a timeout on a request.
func (*EstimateCoinBuyParams) SetCoinCommission ¶ added in v2.2.0
func (o *EstimateCoinBuyParams) SetCoinCommission(coinCommission *string)
SetCoinCommission adds the coinCommission to the estimate coin buy params
func (*EstimateCoinBuyParams) SetCoinIDCommission ¶ added in v2.2.0
func (o *EstimateCoinBuyParams) SetCoinIDCommission(coinIDCommission *uint64)
SetCoinIDCommission adds the coinIdCommission to the estimate coin buy params
func (*EstimateCoinBuyParams) SetCoinIDToBuy ¶
func (o *EstimateCoinBuyParams) SetCoinIDToBuy(coinIDToBuy *uint64)
SetCoinIDToBuy adds the coinIdToBuy to the estimate coin buy params
func (*EstimateCoinBuyParams) SetCoinIDToSell ¶
func (o *EstimateCoinBuyParams) SetCoinIDToSell(coinIDToSell *uint64)
SetCoinIDToSell adds the coinIdToSell to the estimate coin buy params
func (*EstimateCoinBuyParams) SetCoinToBuy ¶
func (o *EstimateCoinBuyParams) SetCoinToBuy(coinToBuy *string)
SetCoinToBuy adds the coinToBuy to the estimate coin buy params
func (*EstimateCoinBuyParams) SetCoinToSell ¶
func (o *EstimateCoinBuyParams) SetCoinToSell(coinToSell *string)
SetCoinToSell adds the coinToSell to the estimate coin buy params
func (*EstimateCoinBuyParams) SetContext ¶
func (o *EstimateCoinBuyParams) SetContext(ctx context.Context)
SetContext adds the context to the estimate coin buy params
func (*EstimateCoinBuyParams) SetDefaults ¶ added in v2.4.0
func (o *EstimateCoinBuyParams) SetDefaults()
SetDefaults hydrates default values in the estimate coin buy params (not the query body).
All values with no default are reset to their zero value.
func (*EstimateCoinBuyParams) SetHTTPClient ¶
func (o *EstimateCoinBuyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the estimate coin buy params
func (*EstimateCoinBuyParams) SetHeight ¶
func (o *EstimateCoinBuyParams) SetHeight(height *uint64)
SetHeight adds the height to the estimate coin buy params
func (*EstimateCoinBuyParams) SetRoute ¶ added in v2.2.0
func (o *EstimateCoinBuyParams) SetRoute(route []string)
SetRoute adds the route to the estimate coin buy params
func (*EstimateCoinBuyParams) SetSwapFrom ¶ added in v2.2.0
func (o *EstimateCoinBuyParams) SetSwapFrom(swapFrom *string)
SetSwapFrom adds the swapFrom to the estimate coin buy params
func (*EstimateCoinBuyParams) SetTimeout ¶
func (o *EstimateCoinBuyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the estimate coin buy params
func (*EstimateCoinBuyParams) SetValueToBuy ¶
func (o *EstimateCoinBuyParams) SetValueToBuy(valueToBuy string)
SetValueToBuy adds the valueToBuy to the estimate coin buy params
func (*EstimateCoinBuyParams) WithCoinCommission ¶ added in v2.2.0
func (o *EstimateCoinBuyParams) WithCoinCommission(coinCommission *string) *EstimateCoinBuyParams
WithCoinCommission adds the coinCommission to the estimate coin buy params
func (*EstimateCoinBuyParams) WithCoinIDCommission ¶ added in v2.2.0
func (o *EstimateCoinBuyParams) WithCoinIDCommission(coinIDCommission *uint64) *EstimateCoinBuyParams
WithCoinIDCommission adds the coinIDCommission to the estimate coin buy params
func (*EstimateCoinBuyParams) WithCoinIDToBuy ¶
func (o *EstimateCoinBuyParams) WithCoinIDToBuy(coinIDToBuy *uint64) *EstimateCoinBuyParams
WithCoinIDToBuy adds the coinIDToBuy to the estimate coin buy params
func (*EstimateCoinBuyParams) WithCoinIDToSell ¶
func (o *EstimateCoinBuyParams) WithCoinIDToSell(coinIDToSell *uint64) *EstimateCoinBuyParams
WithCoinIDToSell adds the coinIDToSell to the estimate coin buy params
func (*EstimateCoinBuyParams) WithCoinToBuy ¶
func (o *EstimateCoinBuyParams) WithCoinToBuy(coinToBuy *string) *EstimateCoinBuyParams
WithCoinToBuy adds the coinToBuy to the estimate coin buy params
func (*EstimateCoinBuyParams) WithCoinToSell ¶
func (o *EstimateCoinBuyParams) WithCoinToSell(coinToSell *string) *EstimateCoinBuyParams
WithCoinToSell adds the coinToSell to the estimate coin buy params
func (*EstimateCoinBuyParams) WithContext ¶
func (o *EstimateCoinBuyParams) WithContext(ctx context.Context) *EstimateCoinBuyParams
WithContext adds the context to the estimate coin buy params
func (*EstimateCoinBuyParams) WithDefaults ¶ added in v2.4.0
func (o *EstimateCoinBuyParams) WithDefaults() *EstimateCoinBuyParams
WithDefaults hydrates default values in the estimate coin buy params (not the query body).
All values with no default are reset to their zero value.
func (*EstimateCoinBuyParams) WithHTTPClient ¶
func (o *EstimateCoinBuyParams) WithHTTPClient(client *http.Client) *EstimateCoinBuyParams
WithHTTPClient adds the HTTPClient to the estimate coin buy params
func (*EstimateCoinBuyParams) WithHeight ¶
func (o *EstimateCoinBuyParams) WithHeight(height *uint64) *EstimateCoinBuyParams
WithHeight adds the height to the estimate coin buy params
func (*EstimateCoinBuyParams) WithRoute ¶ added in v2.2.0
func (o *EstimateCoinBuyParams) WithRoute(route []string) *EstimateCoinBuyParams
WithRoute adds the route to the estimate coin buy params
func (*EstimateCoinBuyParams) WithSwapFrom ¶ added in v2.2.0
func (o *EstimateCoinBuyParams) WithSwapFrom(swapFrom *string) *EstimateCoinBuyParams
WithSwapFrom adds the swapFrom to the estimate coin buy params
func (*EstimateCoinBuyParams) WithTimeout ¶
func (o *EstimateCoinBuyParams) WithTimeout(timeout time.Duration) *EstimateCoinBuyParams
WithTimeout adds the timeout to the estimate coin buy params
func (*EstimateCoinBuyParams) WithValueToBuy ¶
func (o *EstimateCoinBuyParams) WithValueToBuy(valueToBuy string) *EstimateCoinBuyParams
WithValueToBuy adds the valueToBuy to the estimate coin buy params
func (*EstimateCoinBuyParams) WriteToRequest ¶
func (o *EstimateCoinBuyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type EstimateCoinBuyReader ¶
type EstimateCoinBuyReader struct {
// contains filtered or unexported fields
}
EstimateCoinBuyReader is a Reader for the EstimateCoinBuy structure.
func (*EstimateCoinBuyReader) ReadResponse ¶
func (o *EstimateCoinBuyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type EstimateCoinSellAllDefault ¶
type EstimateCoinSellAllDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
EstimateCoinSellAllDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewEstimateCoinSellAllDefault ¶
func NewEstimateCoinSellAllDefault(code int) *EstimateCoinSellAllDefault
NewEstimateCoinSellAllDefault creates a EstimateCoinSellAllDefault with default headers values
func (*EstimateCoinSellAllDefault) Code ¶
func (o *EstimateCoinSellAllDefault) Code() int
Code gets the status code for the estimate coin sell all default response
func (*EstimateCoinSellAllDefault) Error ¶
func (o *EstimateCoinSellAllDefault) Error() string
func (*EstimateCoinSellAllDefault) GetPayload ¶
func (o *EstimateCoinSellAllDefault) GetPayload() *models.ErrorBody
type EstimateCoinSellAllOK ¶
type EstimateCoinSellAllOK struct {
Payload *models.EstimateCoinSellAllResponse
}
EstimateCoinSellAllOK describes a response with status code 200, with default header values.
A successful response.
func NewEstimateCoinSellAllOK ¶
func NewEstimateCoinSellAllOK() *EstimateCoinSellAllOK
NewEstimateCoinSellAllOK creates a EstimateCoinSellAllOK with default headers values
func (*EstimateCoinSellAllOK) Error ¶
func (o *EstimateCoinSellAllOK) Error() string
func (*EstimateCoinSellAllOK) GetPayload ¶
func (o *EstimateCoinSellAllOK) GetPayload() *models.EstimateCoinSellAllResponse
type EstimateCoinSellAllParams ¶
type EstimateCoinSellAllParams struct { // CoinIDToBuy. // // Format: uint64 CoinIDToBuy *uint64 // CoinIDToSell. // // Format: uint64 CoinIDToSell *uint64 // CoinToBuy. CoinToBuy *string // CoinToSell. CoinToSell *string // GasPrice. // // Format: uint64 // Default: 1 GasPrice *uint64 // Height. // // Format: uint64 Height *uint64 // Route. Route []string // SwapFrom. // // Default: "optimal" SwapFrom *string // ValueToSell. ValueToSell string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
EstimateCoinSellAllParams contains all the parameters to send to the API endpoint
for the estimate coin sell all operation. Typically these are written to a http.Request.
func NewEstimateCoinSellAllParams ¶
func NewEstimateCoinSellAllParams() *EstimateCoinSellAllParams
NewEstimateCoinSellAllParams creates a new EstimateCoinSellAllParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewEstimateCoinSellAllParamsWithContext ¶
func NewEstimateCoinSellAllParamsWithContext(ctx context.Context) *EstimateCoinSellAllParams
NewEstimateCoinSellAllParamsWithContext creates a new EstimateCoinSellAllParams object with the ability to set a context for a request.
func NewEstimateCoinSellAllParamsWithHTTPClient ¶
func NewEstimateCoinSellAllParamsWithHTTPClient(client *http.Client) *EstimateCoinSellAllParams
NewEstimateCoinSellAllParamsWithHTTPClient creates a new EstimateCoinSellAllParams object with the ability to set a custom HTTPClient for a request.
func NewEstimateCoinSellAllParamsWithTimeout ¶
func NewEstimateCoinSellAllParamsWithTimeout(timeout time.Duration) *EstimateCoinSellAllParams
NewEstimateCoinSellAllParamsWithTimeout creates a new EstimateCoinSellAllParams object with the ability to set a timeout on a request.
func (*EstimateCoinSellAllParams) SetCoinIDToBuy ¶
func (o *EstimateCoinSellAllParams) SetCoinIDToBuy(coinIDToBuy *uint64)
SetCoinIDToBuy adds the coinIdToBuy to the estimate coin sell all params
func (*EstimateCoinSellAllParams) SetCoinIDToSell ¶
func (o *EstimateCoinSellAllParams) SetCoinIDToSell(coinIDToSell *uint64)
SetCoinIDToSell adds the coinIdToSell to the estimate coin sell all params
func (*EstimateCoinSellAllParams) SetCoinToBuy ¶
func (o *EstimateCoinSellAllParams) SetCoinToBuy(coinToBuy *string)
SetCoinToBuy adds the coinToBuy to the estimate coin sell all params
func (*EstimateCoinSellAllParams) SetCoinToSell ¶
func (o *EstimateCoinSellAllParams) SetCoinToSell(coinToSell *string)
SetCoinToSell adds the coinToSell to the estimate coin sell all params
func (*EstimateCoinSellAllParams) SetContext ¶
func (o *EstimateCoinSellAllParams) SetContext(ctx context.Context)
SetContext adds the context to the estimate coin sell all params
func (*EstimateCoinSellAllParams) SetDefaults ¶ added in v2.4.0
func (o *EstimateCoinSellAllParams) SetDefaults()
SetDefaults hydrates default values in the estimate coin sell all params (not the query body).
All values with no default are reset to their zero value.
func (*EstimateCoinSellAllParams) SetGasPrice ¶
func (o *EstimateCoinSellAllParams) SetGasPrice(gasPrice *uint64)
SetGasPrice adds the gasPrice to the estimate coin sell all params
func (*EstimateCoinSellAllParams) SetHTTPClient ¶
func (o *EstimateCoinSellAllParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the estimate coin sell all params
func (*EstimateCoinSellAllParams) SetHeight ¶
func (o *EstimateCoinSellAllParams) SetHeight(height *uint64)
SetHeight adds the height to the estimate coin sell all params
func (*EstimateCoinSellAllParams) SetRoute ¶ added in v2.2.0
func (o *EstimateCoinSellAllParams) SetRoute(route []string)
SetRoute adds the route to the estimate coin sell all params
func (*EstimateCoinSellAllParams) SetSwapFrom ¶ added in v2.2.0
func (o *EstimateCoinSellAllParams) SetSwapFrom(swapFrom *string)
SetSwapFrom adds the swapFrom to the estimate coin sell all params
func (*EstimateCoinSellAllParams) SetTimeout ¶
func (o *EstimateCoinSellAllParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the estimate coin sell all params
func (*EstimateCoinSellAllParams) SetValueToSell ¶
func (o *EstimateCoinSellAllParams) SetValueToSell(valueToSell string)
SetValueToSell adds the valueToSell to the estimate coin sell all params
func (*EstimateCoinSellAllParams) WithCoinIDToBuy ¶
func (o *EstimateCoinSellAllParams) WithCoinIDToBuy(coinIDToBuy *uint64) *EstimateCoinSellAllParams
WithCoinIDToBuy adds the coinIDToBuy to the estimate coin sell all params
func (*EstimateCoinSellAllParams) WithCoinIDToSell ¶
func (o *EstimateCoinSellAllParams) WithCoinIDToSell(coinIDToSell *uint64) *EstimateCoinSellAllParams
WithCoinIDToSell adds the coinIDToSell to the estimate coin sell all params
func (*EstimateCoinSellAllParams) WithCoinToBuy ¶
func (o *EstimateCoinSellAllParams) WithCoinToBuy(coinToBuy *string) *EstimateCoinSellAllParams
WithCoinToBuy adds the coinToBuy to the estimate coin sell all params
func (*EstimateCoinSellAllParams) WithCoinToSell ¶
func (o *EstimateCoinSellAllParams) WithCoinToSell(coinToSell *string) *EstimateCoinSellAllParams
WithCoinToSell adds the coinToSell to the estimate coin sell all params
func (*EstimateCoinSellAllParams) WithContext ¶
func (o *EstimateCoinSellAllParams) WithContext(ctx context.Context) *EstimateCoinSellAllParams
WithContext adds the context to the estimate coin sell all params
func (*EstimateCoinSellAllParams) WithDefaults ¶ added in v2.4.0
func (o *EstimateCoinSellAllParams) WithDefaults() *EstimateCoinSellAllParams
WithDefaults hydrates default values in the estimate coin sell all params (not the query body).
All values with no default are reset to their zero value.
func (*EstimateCoinSellAllParams) WithGasPrice ¶
func (o *EstimateCoinSellAllParams) WithGasPrice(gasPrice *uint64) *EstimateCoinSellAllParams
WithGasPrice adds the gasPrice to the estimate coin sell all params
func (*EstimateCoinSellAllParams) WithHTTPClient ¶
func (o *EstimateCoinSellAllParams) WithHTTPClient(client *http.Client) *EstimateCoinSellAllParams
WithHTTPClient adds the HTTPClient to the estimate coin sell all params
func (*EstimateCoinSellAllParams) WithHeight ¶
func (o *EstimateCoinSellAllParams) WithHeight(height *uint64) *EstimateCoinSellAllParams
WithHeight adds the height to the estimate coin sell all params
func (*EstimateCoinSellAllParams) WithRoute ¶ added in v2.2.0
func (o *EstimateCoinSellAllParams) WithRoute(route []string) *EstimateCoinSellAllParams
WithRoute adds the route to the estimate coin sell all params
func (*EstimateCoinSellAllParams) WithSwapFrom ¶ added in v2.2.0
func (o *EstimateCoinSellAllParams) WithSwapFrom(swapFrom *string) *EstimateCoinSellAllParams
WithSwapFrom adds the swapFrom to the estimate coin sell all params
func (*EstimateCoinSellAllParams) WithTimeout ¶
func (o *EstimateCoinSellAllParams) WithTimeout(timeout time.Duration) *EstimateCoinSellAllParams
WithTimeout adds the timeout to the estimate coin sell all params
func (*EstimateCoinSellAllParams) WithValueToSell ¶
func (o *EstimateCoinSellAllParams) WithValueToSell(valueToSell string) *EstimateCoinSellAllParams
WithValueToSell adds the valueToSell to the estimate coin sell all params
func (*EstimateCoinSellAllParams) WriteToRequest ¶
func (o *EstimateCoinSellAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type EstimateCoinSellAllReader ¶
type EstimateCoinSellAllReader struct {
// contains filtered or unexported fields
}
EstimateCoinSellAllReader is a Reader for the EstimateCoinSellAll structure.
func (*EstimateCoinSellAllReader) ReadResponse ¶
func (o *EstimateCoinSellAllReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type EstimateCoinSellDefault ¶
type EstimateCoinSellDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
EstimateCoinSellDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewEstimateCoinSellDefault ¶
func NewEstimateCoinSellDefault(code int) *EstimateCoinSellDefault
NewEstimateCoinSellDefault creates a EstimateCoinSellDefault with default headers values
func (*EstimateCoinSellDefault) Code ¶
func (o *EstimateCoinSellDefault) Code() int
Code gets the status code for the estimate coin sell default response
func (*EstimateCoinSellDefault) Error ¶
func (o *EstimateCoinSellDefault) Error() string
func (*EstimateCoinSellDefault) GetPayload ¶
func (o *EstimateCoinSellDefault) GetPayload() *models.ErrorBody
type EstimateCoinSellOK ¶
type EstimateCoinSellOK struct {
Payload *models.EstimateCoinSellResponse
}
EstimateCoinSellOK describes a response with status code 200, with default header values.
A successful response.
func NewEstimateCoinSellOK ¶
func NewEstimateCoinSellOK() *EstimateCoinSellOK
NewEstimateCoinSellOK creates a EstimateCoinSellOK with default headers values
func (*EstimateCoinSellOK) Error ¶
func (o *EstimateCoinSellOK) Error() string
func (*EstimateCoinSellOK) GetPayload ¶
func (o *EstimateCoinSellOK) GetPayload() *models.EstimateCoinSellResponse
type EstimateCoinSellParams ¶
type EstimateCoinSellParams struct { // CoinCommission. CoinCommission *string // CoinIDCommission. // // Format: uint64 CoinIDCommission *uint64 // CoinIDToBuy. // // Format: uint64 CoinIDToBuy *uint64 // CoinIDToSell. // // Format: uint64 CoinIDToSell *uint64 // CoinToBuy. CoinToBuy *string // CoinToSell. CoinToSell *string // Height. // // Format: uint64 Height *uint64 // Route. Route []string // SwapFrom. // // Default: "optimal" SwapFrom *string // ValueToSell. ValueToSell string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
EstimateCoinSellParams contains all the parameters to send to the API endpoint
for the estimate coin sell operation. Typically these are written to a http.Request.
func NewEstimateCoinSellParams ¶
func NewEstimateCoinSellParams() *EstimateCoinSellParams
NewEstimateCoinSellParams creates a new EstimateCoinSellParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewEstimateCoinSellParamsWithContext ¶
func NewEstimateCoinSellParamsWithContext(ctx context.Context) *EstimateCoinSellParams
NewEstimateCoinSellParamsWithContext creates a new EstimateCoinSellParams object with the ability to set a context for a request.
func NewEstimateCoinSellParamsWithHTTPClient ¶
func NewEstimateCoinSellParamsWithHTTPClient(client *http.Client) *EstimateCoinSellParams
NewEstimateCoinSellParamsWithHTTPClient creates a new EstimateCoinSellParams object with the ability to set a custom HTTPClient for a request.
func NewEstimateCoinSellParamsWithTimeout ¶
func NewEstimateCoinSellParamsWithTimeout(timeout time.Duration) *EstimateCoinSellParams
NewEstimateCoinSellParamsWithTimeout creates a new EstimateCoinSellParams object with the ability to set a timeout on a request.
func (*EstimateCoinSellParams) SetCoinCommission ¶ added in v2.2.0
func (o *EstimateCoinSellParams) SetCoinCommission(coinCommission *string)
SetCoinCommission adds the coinCommission to the estimate coin sell params
func (*EstimateCoinSellParams) SetCoinIDCommission ¶ added in v2.2.0
func (o *EstimateCoinSellParams) SetCoinIDCommission(coinIDCommission *uint64)
SetCoinIDCommission adds the coinIdCommission to the estimate coin sell params
func (*EstimateCoinSellParams) SetCoinIDToBuy ¶
func (o *EstimateCoinSellParams) SetCoinIDToBuy(coinIDToBuy *uint64)
SetCoinIDToBuy adds the coinIdToBuy to the estimate coin sell params
func (*EstimateCoinSellParams) SetCoinIDToSell ¶
func (o *EstimateCoinSellParams) SetCoinIDToSell(coinIDToSell *uint64)
SetCoinIDToSell adds the coinIdToSell to the estimate coin sell params
func (*EstimateCoinSellParams) SetCoinToBuy ¶
func (o *EstimateCoinSellParams) SetCoinToBuy(coinToBuy *string)
SetCoinToBuy adds the coinToBuy to the estimate coin sell params
func (*EstimateCoinSellParams) SetCoinToSell ¶
func (o *EstimateCoinSellParams) SetCoinToSell(coinToSell *string)
SetCoinToSell adds the coinToSell to the estimate coin sell params
func (*EstimateCoinSellParams) SetContext ¶
func (o *EstimateCoinSellParams) SetContext(ctx context.Context)
SetContext adds the context to the estimate coin sell params
func (*EstimateCoinSellParams) SetDefaults ¶ added in v2.4.0
func (o *EstimateCoinSellParams) SetDefaults()
SetDefaults hydrates default values in the estimate coin sell params (not the query body).
All values with no default are reset to their zero value.
func (*EstimateCoinSellParams) SetHTTPClient ¶
func (o *EstimateCoinSellParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the estimate coin sell params
func (*EstimateCoinSellParams) SetHeight ¶
func (o *EstimateCoinSellParams) SetHeight(height *uint64)
SetHeight adds the height to the estimate coin sell params
func (*EstimateCoinSellParams) SetRoute ¶ added in v2.2.0
func (o *EstimateCoinSellParams) SetRoute(route []string)
SetRoute adds the route to the estimate coin sell params
func (*EstimateCoinSellParams) SetSwapFrom ¶ added in v2.2.0
func (o *EstimateCoinSellParams) SetSwapFrom(swapFrom *string)
SetSwapFrom adds the swapFrom to the estimate coin sell params
func (*EstimateCoinSellParams) SetTimeout ¶
func (o *EstimateCoinSellParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the estimate coin sell params
func (*EstimateCoinSellParams) SetValueToSell ¶
func (o *EstimateCoinSellParams) SetValueToSell(valueToSell string)
SetValueToSell adds the valueToSell to the estimate coin sell params
func (*EstimateCoinSellParams) WithCoinCommission ¶ added in v2.2.0
func (o *EstimateCoinSellParams) WithCoinCommission(coinCommission *string) *EstimateCoinSellParams
WithCoinCommission adds the coinCommission to the estimate coin sell params
func (*EstimateCoinSellParams) WithCoinIDCommission ¶ added in v2.2.0
func (o *EstimateCoinSellParams) WithCoinIDCommission(coinIDCommission *uint64) *EstimateCoinSellParams
WithCoinIDCommission adds the coinIDCommission to the estimate coin sell params
func (*EstimateCoinSellParams) WithCoinIDToBuy ¶
func (o *EstimateCoinSellParams) WithCoinIDToBuy(coinIDToBuy *uint64) *EstimateCoinSellParams
WithCoinIDToBuy adds the coinIDToBuy to the estimate coin sell params
func (*EstimateCoinSellParams) WithCoinIDToSell ¶
func (o *EstimateCoinSellParams) WithCoinIDToSell(coinIDToSell *uint64) *EstimateCoinSellParams
WithCoinIDToSell adds the coinIDToSell to the estimate coin sell params
func (*EstimateCoinSellParams) WithCoinToBuy ¶
func (o *EstimateCoinSellParams) WithCoinToBuy(coinToBuy *string) *EstimateCoinSellParams
WithCoinToBuy adds the coinToBuy to the estimate coin sell params
func (*EstimateCoinSellParams) WithCoinToSell ¶
func (o *EstimateCoinSellParams) WithCoinToSell(coinToSell *string) *EstimateCoinSellParams
WithCoinToSell adds the coinToSell to the estimate coin sell params
func (*EstimateCoinSellParams) WithContext ¶
func (o *EstimateCoinSellParams) WithContext(ctx context.Context) *EstimateCoinSellParams
WithContext adds the context to the estimate coin sell params
func (*EstimateCoinSellParams) WithDefaults ¶ added in v2.4.0
func (o *EstimateCoinSellParams) WithDefaults() *EstimateCoinSellParams
WithDefaults hydrates default values in the estimate coin sell params (not the query body).
All values with no default are reset to their zero value.
func (*EstimateCoinSellParams) WithHTTPClient ¶
func (o *EstimateCoinSellParams) WithHTTPClient(client *http.Client) *EstimateCoinSellParams
WithHTTPClient adds the HTTPClient to the estimate coin sell params
func (*EstimateCoinSellParams) WithHeight ¶
func (o *EstimateCoinSellParams) WithHeight(height *uint64) *EstimateCoinSellParams
WithHeight adds the height to the estimate coin sell params
func (*EstimateCoinSellParams) WithRoute ¶ added in v2.2.0
func (o *EstimateCoinSellParams) WithRoute(route []string) *EstimateCoinSellParams
WithRoute adds the route to the estimate coin sell params
func (*EstimateCoinSellParams) WithSwapFrom ¶ added in v2.2.0
func (o *EstimateCoinSellParams) WithSwapFrom(swapFrom *string) *EstimateCoinSellParams
WithSwapFrom adds the swapFrom to the estimate coin sell params
func (*EstimateCoinSellParams) WithTimeout ¶
func (o *EstimateCoinSellParams) WithTimeout(timeout time.Duration) *EstimateCoinSellParams
WithTimeout adds the timeout to the estimate coin sell params
func (*EstimateCoinSellParams) WithValueToSell ¶
func (o *EstimateCoinSellParams) WithValueToSell(valueToSell string) *EstimateCoinSellParams
WithValueToSell adds the valueToSell to the estimate coin sell params
func (*EstimateCoinSellParams) WriteToRequest ¶
func (o *EstimateCoinSellParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type EstimateCoinSellReader ¶
type EstimateCoinSellReader struct {
// contains filtered or unexported fields
}
EstimateCoinSellReader is a Reader for the EstimateCoinSell structure.
func (*EstimateCoinSellReader) ReadResponse ¶
func (o *EstimateCoinSellReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type EstimateTxCommissionDefault ¶
type EstimateTxCommissionDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
EstimateTxCommissionDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewEstimateTxCommissionDefault ¶
func NewEstimateTxCommissionDefault(code int) *EstimateTxCommissionDefault
NewEstimateTxCommissionDefault creates a EstimateTxCommissionDefault with default headers values
func (*EstimateTxCommissionDefault) Code ¶
func (o *EstimateTxCommissionDefault) Code() int
Code gets the status code for the estimate tx commission default response
func (*EstimateTxCommissionDefault) Error ¶
func (o *EstimateTxCommissionDefault) Error() string
func (*EstimateTxCommissionDefault) GetPayload ¶
func (o *EstimateTxCommissionDefault) GetPayload() *models.ErrorBody
type EstimateTxCommissionOK ¶
type EstimateTxCommissionOK struct {
Payload *models.EstimateTxCommissionResponse
}
EstimateTxCommissionOK describes a response with status code 200, with default header values.
A successful response.
func NewEstimateTxCommissionOK ¶
func NewEstimateTxCommissionOK() *EstimateTxCommissionOK
NewEstimateTxCommissionOK creates a EstimateTxCommissionOK with default headers values
func (*EstimateTxCommissionOK) Error ¶
func (o *EstimateTxCommissionOK) Error() string
func (*EstimateTxCommissionOK) GetPayload ¶
func (o *EstimateTxCommissionOK) GetPayload() *models.EstimateTxCommissionResponse
type EstimateTxCommissionParams ¶
type EstimateTxCommissionParams struct { // Height. // // Format: uint64 Height *uint64 // Tx. Tx string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
EstimateTxCommissionParams contains all the parameters to send to the API endpoint
for the estimate tx commission operation. Typically these are written to a http.Request.
func NewEstimateTxCommissionParams ¶
func NewEstimateTxCommissionParams() *EstimateTxCommissionParams
NewEstimateTxCommissionParams creates a new EstimateTxCommissionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewEstimateTxCommissionParamsWithContext ¶
func NewEstimateTxCommissionParamsWithContext(ctx context.Context) *EstimateTxCommissionParams
NewEstimateTxCommissionParamsWithContext creates a new EstimateTxCommissionParams object with the ability to set a context for a request.
func NewEstimateTxCommissionParamsWithHTTPClient ¶
func NewEstimateTxCommissionParamsWithHTTPClient(client *http.Client) *EstimateTxCommissionParams
NewEstimateTxCommissionParamsWithHTTPClient creates a new EstimateTxCommissionParams object with the ability to set a custom HTTPClient for a request.
func NewEstimateTxCommissionParamsWithTimeout ¶
func NewEstimateTxCommissionParamsWithTimeout(timeout time.Duration) *EstimateTxCommissionParams
NewEstimateTxCommissionParamsWithTimeout creates a new EstimateTxCommissionParams object with the ability to set a timeout on a request.
func (*EstimateTxCommissionParams) SetContext ¶
func (o *EstimateTxCommissionParams) SetContext(ctx context.Context)
SetContext adds the context to the estimate tx commission params
func (*EstimateTxCommissionParams) SetDefaults ¶ added in v2.4.0
func (o *EstimateTxCommissionParams) SetDefaults()
SetDefaults hydrates default values in the estimate tx commission params (not the query body).
All values with no default are reset to their zero value.
func (*EstimateTxCommissionParams) SetHTTPClient ¶
func (o *EstimateTxCommissionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the estimate tx commission params
func (*EstimateTxCommissionParams) SetHeight ¶
func (o *EstimateTxCommissionParams) SetHeight(height *uint64)
SetHeight adds the height to the estimate tx commission params
func (*EstimateTxCommissionParams) SetTimeout ¶
func (o *EstimateTxCommissionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the estimate tx commission params
func (*EstimateTxCommissionParams) SetTx ¶
func (o *EstimateTxCommissionParams) SetTx(tx string)
SetTx adds the tx to the estimate tx commission params
func (*EstimateTxCommissionParams) WithContext ¶
func (o *EstimateTxCommissionParams) WithContext(ctx context.Context) *EstimateTxCommissionParams
WithContext adds the context to the estimate tx commission params
func (*EstimateTxCommissionParams) WithDefaults ¶ added in v2.4.0
func (o *EstimateTxCommissionParams) WithDefaults() *EstimateTxCommissionParams
WithDefaults hydrates default values in the estimate tx commission params (not the query body).
All values with no default are reset to their zero value.
func (*EstimateTxCommissionParams) WithHTTPClient ¶
func (o *EstimateTxCommissionParams) WithHTTPClient(client *http.Client) *EstimateTxCommissionParams
WithHTTPClient adds the HTTPClient to the estimate tx commission params
func (*EstimateTxCommissionParams) WithHeight ¶
func (o *EstimateTxCommissionParams) WithHeight(height *uint64) *EstimateTxCommissionParams
WithHeight adds the height to the estimate tx commission params
func (*EstimateTxCommissionParams) WithTimeout ¶
func (o *EstimateTxCommissionParams) WithTimeout(timeout time.Duration) *EstimateTxCommissionParams
WithTimeout adds the timeout to the estimate tx commission params
func (*EstimateTxCommissionParams) WithTx ¶
func (o *EstimateTxCommissionParams) WithTx(tx string) *EstimateTxCommissionParams
WithTx adds the tx to the estimate tx commission params
func (*EstimateTxCommissionParams) WriteToRequest ¶
func (o *EstimateTxCommissionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type EstimateTxCommissionReader ¶
type EstimateTxCommissionReader struct {
// contains filtered or unexported fields
}
EstimateTxCommissionReader is a Reader for the EstimateTxCommission structure.
func (*EstimateTxCommissionReader) ReadResponse ¶
func (o *EstimateTxCommissionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type EventsDefault ¶
EventsDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewEventsDefault ¶
func NewEventsDefault(code int) *EventsDefault
NewEventsDefault creates a EventsDefault with default headers values
func (*EventsDefault) Code ¶
func (o *EventsDefault) Code() int
Code gets the status code for the events default response
func (*EventsDefault) Error ¶
func (o *EventsDefault) Error() string
func (*EventsDefault) GetPayload ¶
func (o *EventsDefault) GetPayload() *models.ErrorBody
type EventsOK ¶
type EventsOK struct {
Payload *models.EventsResponse
}
EventsOK describes a response with status code 200, with default header values.
A successful response.
func NewEventsOK ¶
func NewEventsOK() *EventsOK
NewEventsOK creates a EventsOK with default headers values
func (*EventsOK) GetPayload ¶
func (o *EventsOK) GetPayload() *models.EventsResponse
type EventsParams ¶
type EventsParams struct { // Height. // // Format: uint64 Height string /* Search. Array of public keys of validators and wallet addresses of delegators for filtering */ Search []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
EventsParams contains all the parameters to send to the API endpoint
for the events operation. Typically these are written to a http.Request.
func NewEventsParams ¶
func NewEventsParams() *EventsParams
NewEventsParams creates a new EventsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewEventsParamsWithContext ¶
func NewEventsParamsWithContext(ctx context.Context) *EventsParams
NewEventsParamsWithContext creates a new EventsParams object with the ability to set a context for a request.
func NewEventsParamsWithHTTPClient ¶
func NewEventsParamsWithHTTPClient(client *http.Client) *EventsParams
NewEventsParamsWithHTTPClient creates a new EventsParams object with the ability to set a custom HTTPClient for a request.
func NewEventsParamsWithTimeout ¶
func NewEventsParamsWithTimeout(timeout time.Duration) *EventsParams
NewEventsParamsWithTimeout creates a new EventsParams object with the ability to set a timeout on a request.
func (*EventsParams) SetContext ¶
func (o *EventsParams) SetContext(ctx context.Context)
SetContext adds the context to the events params
func (*EventsParams) SetDefaults ¶ added in v2.4.0
func (o *EventsParams) SetDefaults()
SetDefaults hydrates default values in the events params (not the query body).
All values with no default are reset to their zero value.
func (*EventsParams) SetHTTPClient ¶
func (o *EventsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the events params
func (*EventsParams) SetHeight ¶
func (o *EventsParams) SetHeight(height string)
SetHeight adds the height to the events params
func (*EventsParams) SetSearch ¶
func (o *EventsParams) SetSearch(search []string)
SetSearch adds the search to the events params
func (*EventsParams) SetTimeout ¶
func (o *EventsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the events params
func (*EventsParams) WithContext ¶
func (o *EventsParams) WithContext(ctx context.Context) *EventsParams
WithContext adds the context to the events params
func (*EventsParams) WithDefaults ¶ added in v2.4.0
func (o *EventsParams) WithDefaults() *EventsParams
WithDefaults hydrates default values in the events params (not the query body).
All values with no default are reset to their zero value.
func (*EventsParams) WithHTTPClient ¶
func (o *EventsParams) WithHTTPClient(client *http.Client) *EventsParams
WithHTTPClient adds the HTTPClient to the events params
func (*EventsParams) WithHeight ¶
func (o *EventsParams) WithHeight(height string) *EventsParams
WithHeight adds the height to the events params
func (*EventsParams) WithSearch ¶
func (o *EventsParams) WithSearch(search []string) *EventsParams
WithSearch adds the search to the events params
func (*EventsParams) WithTimeout ¶
func (o *EventsParams) WithTimeout(timeout time.Duration) *EventsParams
WithTimeout adds the timeout to the events params
func (*EventsParams) WriteToRequest ¶
func (o *EventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type EventsReader ¶
type EventsReader struct {
// contains filtered or unexported fields
}
EventsReader is a Reader for the Events structure.
func (*EventsReader) ReadResponse ¶
func (o *EventsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FrozenAllDefault ¶ added in v2.5.0
type FrozenAllDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
FrozenAllDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewFrozenAllDefault ¶ added in v2.5.0
func NewFrozenAllDefault(code int) *FrozenAllDefault
NewFrozenAllDefault creates a FrozenAllDefault with default headers values
func (*FrozenAllDefault) Code ¶ added in v2.5.0
func (o *FrozenAllDefault) Code() int
Code gets the status code for the frozen all default response
func (*FrozenAllDefault) Error ¶ added in v2.5.0
func (o *FrozenAllDefault) Error() string
func (*FrozenAllDefault) GetPayload ¶ added in v2.5.0
func (o *FrozenAllDefault) GetPayload() *models.ErrorBody
type FrozenAllOK ¶ added in v2.5.0
type FrozenAllOK struct {
Payload *models.FrozenResponse
}
FrozenAllOK describes a response with status code 200, with default header values.
A successful response.
func NewFrozenAllOK ¶ added in v2.5.0
func NewFrozenAllOK() *FrozenAllOK
NewFrozenAllOK creates a FrozenAllOK with default headers values
func (*FrozenAllOK) Error ¶ added in v2.5.0
func (o *FrozenAllOK) Error() string
func (*FrozenAllOK) GetPayload ¶ added in v2.5.0
func (o *FrozenAllOK) GetPayload() *models.FrozenResponse
type FrozenAllParams ¶ added in v2.5.0
type FrozenAllParams struct { // Addresses. Addresses []string // CoinIds. CoinIds []string // EndHeight. // // Format: uint64 EndHeight *uint64 // Height. // // Format: uint64 Height *uint64 // StartHeight. // // Format: uint64 StartHeight *uint64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FrozenAllParams contains all the parameters to send to the API endpoint
for the frozen all operation. Typically these are written to a http.Request.
func NewFrozenAllParams ¶ added in v2.5.0
func NewFrozenAllParams() *FrozenAllParams
NewFrozenAllParams creates a new FrozenAllParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewFrozenAllParamsWithContext ¶ added in v2.5.0
func NewFrozenAllParamsWithContext(ctx context.Context) *FrozenAllParams
NewFrozenAllParamsWithContext creates a new FrozenAllParams object with the ability to set a context for a request.
func NewFrozenAllParamsWithHTTPClient ¶ added in v2.5.0
func NewFrozenAllParamsWithHTTPClient(client *http.Client) *FrozenAllParams
NewFrozenAllParamsWithHTTPClient creates a new FrozenAllParams object with the ability to set a custom HTTPClient for a request.
func NewFrozenAllParamsWithTimeout ¶ added in v2.5.0
func NewFrozenAllParamsWithTimeout(timeout time.Duration) *FrozenAllParams
NewFrozenAllParamsWithTimeout creates a new FrozenAllParams object with the ability to set a timeout on a request.
func (*FrozenAllParams) SetAddresses ¶ added in v2.5.0
func (o *FrozenAllParams) SetAddresses(addresses []string)
SetAddresses adds the addresses to the frozen all params
func (*FrozenAllParams) SetCoinIds ¶ added in v2.5.0
func (o *FrozenAllParams) SetCoinIds(coinIds []string)
SetCoinIds adds the coinIds to the frozen all params
func (*FrozenAllParams) SetContext ¶ added in v2.5.0
func (o *FrozenAllParams) SetContext(ctx context.Context)
SetContext adds the context to the frozen all params
func (*FrozenAllParams) SetDefaults ¶ added in v2.5.0
func (o *FrozenAllParams) SetDefaults()
SetDefaults hydrates default values in the frozen all params (not the query body).
All values with no default are reset to their zero value.
func (*FrozenAllParams) SetEndHeight ¶ added in v2.5.0
func (o *FrozenAllParams) SetEndHeight(endHeight *uint64)
SetEndHeight adds the endHeight to the frozen all params
func (*FrozenAllParams) SetHTTPClient ¶ added in v2.5.0
func (o *FrozenAllParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the frozen all params
func (*FrozenAllParams) SetHeight ¶ added in v2.5.0
func (o *FrozenAllParams) SetHeight(height *uint64)
SetHeight adds the height to the frozen all params
func (*FrozenAllParams) SetStartHeight ¶ added in v2.5.0
func (o *FrozenAllParams) SetStartHeight(startHeight *uint64)
SetStartHeight adds the startHeight to the frozen all params
func (*FrozenAllParams) SetTimeout ¶ added in v2.5.0
func (o *FrozenAllParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the frozen all params
func (*FrozenAllParams) WithAddresses ¶ added in v2.5.0
func (o *FrozenAllParams) WithAddresses(addresses []string) *FrozenAllParams
WithAddresses adds the addresses to the frozen all params
func (*FrozenAllParams) WithCoinIds ¶ added in v2.5.0
func (o *FrozenAllParams) WithCoinIds(coinIds []string) *FrozenAllParams
WithCoinIds adds the coinIds to the frozen all params
func (*FrozenAllParams) WithContext ¶ added in v2.5.0
func (o *FrozenAllParams) WithContext(ctx context.Context) *FrozenAllParams
WithContext adds the context to the frozen all params
func (*FrozenAllParams) WithDefaults ¶ added in v2.5.0
func (o *FrozenAllParams) WithDefaults() *FrozenAllParams
WithDefaults hydrates default values in the frozen all params (not the query body).
All values with no default are reset to their zero value.
func (*FrozenAllParams) WithEndHeight ¶ added in v2.5.0
func (o *FrozenAllParams) WithEndHeight(endHeight *uint64) *FrozenAllParams
WithEndHeight adds the endHeight to the frozen all params
func (*FrozenAllParams) WithHTTPClient ¶ added in v2.5.0
func (o *FrozenAllParams) WithHTTPClient(client *http.Client) *FrozenAllParams
WithHTTPClient adds the HTTPClient to the frozen all params
func (*FrozenAllParams) WithHeight ¶ added in v2.5.0
func (o *FrozenAllParams) WithHeight(height *uint64) *FrozenAllParams
WithHeight adds the height to the frozen all params
func (*FrozenAllParams) WithStartHeight ¶ added in v2.5.0
func (o *FrozenAllParams) WithStartHeight(startHeight *uint64) *FrozenAllParams
WithStartHeight adds the startHeight to the frozen all params
func (*FrozenAllParams) WithTimeout ¶ added in v2.5.0
func (o *FrozenAllParams) WithTimeout(timeout time.Duration) *FrozenAllParams
WithTimeout adds the timeout to the frozen all params
func (*FrozenAllParams) WriteToRequest ¶ added in v2.5.0
func (o *FrozenAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FrozenAllReader ¶ added in v2.5.0
type FrozenAllReader struct {
// contains filtered or unexported fields
}
FrozenAllReader is a Reader for the FrozenAll structure.
func (*FrozenAllReader) ReadResponse ¶ added in v2.5.0
func (o *FrozenAllReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FrozenDefault ¶
FrozenDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewFrozenDefault ¶
func NewFrozenDefault(code int) *FrozenDefault
NewFrozenDefault creates a FrozenDefault with default headers values
func (*FrozenDefault) Code ¶
func (o *FrozenDefault) Code() int
Code gets the status code for the frozen default response
func (*FrozenDefault) Error ¶
func (o *FrozenDefault) Error() string
func (*FrozenDefault) GetPayload ¶
func (o *FrozenDefault) GetPayload() *models.ErrorBody
type FrozenOK ¶
type FrozenOK struct {
Payload *models.FrozenResponse
}
FrozenOK describes a response with status code 200, with default header values.
A successful response.
func NewFrozenOK ¶
func NewFrozenOK() *FrozenOK
NewFrozenOK creates a FrozenOK with default headers values
func (*FrozenOK) GetPayload ¶
func (o *FrozenOK) GetPayload() *models.FrozenResponse
type FrozenParams ¶
type FrozenParams struct { // Address. Address string // CoinID. // // Format: uint64 CoinID *uint64 // Height. // // Format: uint64 Height *uint64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FrozenParams contains all the parameters to send to the API endpoint
for the frozen operation. Typically these are written to a http.Request.
func NewFrozenParams ¶
func NewFrozenParams() *FrozenParams
NewFrozenParams creates a new FrozenParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewFrozenParamsWithContext ¶
func NewFrozenParamsWithContext(ctx context.Context) *FrozenParams
NewFrozenParamsWithContext creates a new FrozenParams object with the ability to set a context for a request.
func NewFrozenParamsWithHTTPClient ¶
func NewFrozenParamsWithHTTPClient(client *http.Client) *FrozenParams
NewFrozenParamsWithHTTPClient creates a new FrozenParams object with the ability to set a custom HTTPClient for a request.
func NewFrozenParamsWithTimeout ¶
func NewFrozenParamsWithTimeout(timeout time.Duration) *FrozenParams
NewFrozenParamsWithTimeout creates a new FrozenParams object with the ability to set a timeout on a request.
func (*FrozenParams) SetAddress ¶
func (o *FrozenParams) SetAddress(address string)
SetAddress adds the address to the frozen params
func (*FrozenParams) SetCoinID ¶
func (o *FrozenParams) SetCoinID(coinID *uint64)
SetCoinID adds the coinId to the frozen params
func (*FrozenParams) SetContext ¶
func (o *FrozenParams) SetContext(ctx context.Context)
SetContext adds the context to the frozen params
func (*FrozenParams) SetDefaults ¶ added in v2.4.0
func (o *FrozenParams) SetDefaults()
SetDefaults hydrates default values in the frozen params (not the query body).
All values with no default are reset to their zero value.
func (*FrozenParams) SetHTTPClient ¶
func (o *FrozenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the frozen params
func (*FrozenParams) SetHeight ¶ added in v2.2.0
func (o *FrozenParams) SetHeight(height *uint64)
SetHeight adds the height to the frozen params
func (*FrozenParams) SetTimeout ¶
func (o *FrozenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the frozen params
func (*FrozenParams) WithAddress ¶
func (o *FrozenParams) WithAddress(address string) *FrozenParams
WithAddress adds the address to the frozen params
func (*FrozenParams) WithCoinID ¶
func (o *FrozenParams) WithCoinID(coinID *uint64) *FrozenParams
WithCoinID adds the coinID to the frozen params
func (*FrozenParams) WithContext ¶
func (o *FrozenParams) WithContext(ctx context.Context) *FrozenParams
WithContext adds the context to the frozen params
func (*FrozenParams) WithDefaults ¶ added in v2.4.0
func (o *FrozenParams) WithDefaults() *FrozenParams
WithDefaults hydrates default values in the frozen params (not the query body).
All values with no default are reset to their zero value.
func (*FrozenParams) WithHTTPClient ¶
func (o *FrozenParams) WithHTTPClient(client *http.Client) *FrozenParams
WithHTTPClient adds the HTTPClient to the frozen params
func (*FrozenParams) WithHeight ¶ added in v2.2.0
func (o *FrozenParams) WithHeight(height *uint64) *FrozenParams
WithHeight adds the height to the frozen params
func (*FrozenParams) WithTimeout ¶
func (o *FrozenParams) WithTimeout(timeout time.Duration) *FrozenParams
WithTimeout adds the timeout to the frozen params
func (*FrozenParams) WriteToRequest ¶
func (o *FrozenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FrozenReader ¶
type FrozenReader struct {
// contains filtered or unexported fields
}
FrozenReader is a Reader for the Frozen structure.
func (*FrozenReader) ReadResponse ¶
func (o *FrozenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GenesisDefault ¶
GenesisDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewGenesisDefault ¶
func NewGenesisDefault(code int) *GenesisDefault
NewGenesisDefault creates a GenesisDefault with default headers values
func (*GenesisDefault) Code ¶
func (o *GenesisDefault) Code() int
Code gets the status code for the genesis default response
func (*GenesisDefault) Error ¶
func (o *GenesisDefault) Error() string
func (*GenesisDefault) GetPayload ¶
func (o *GenesisDefault) GetPayload() *models.ErrorBody
type GenesisOK ¶
type GenesisOK struct {
Payload *models.GenesisResponse
}
GenesisOK describes a response with status code 200, with default header values.
A successful response.
func NewGenesisOK ¶
func NewGenesisOK() *GenesisOK
NewGenesisOK creates a GenesisOK with default headers values
func (*GenesisOK) GetPayload ¶
func (o *GenesisOK) GetPayload() *models.GenesisResponse
type GenesisParams ¶
type GenesisParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GenesisParams contains all the parameters to send to the API endpoint
for the genesis operation. Typically these are written to a http.Request.
func NewGenesisParams ¶
func NewGenesisParams() *GenesisParams
NewGenesisParams creates a new GenesisParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGenesisParamsWithContext ¶
func NewGenesisParamsWithContext(ctx context.Context) *GenesisParams
NewGenesisParamsWithContext creates a new GenesisParams object with the ability to set a context for a request.
func NewGenesisParamsWithHTTPClient ¶
func NewGenesisParamsWithHTTPClient(client *http.Client) *GenesisParams
NewGenesisParamsWithHTTPClient creates a new GenesisParams object with the ability to set a custom HTTPClient for a request.
func NewGenesisParamsWithTimeout ¶
func NewGenesisParamsWithTimeout(timeout time.Duration) *GenesisParams
NewGenesisParamsWithTimeout creates a new GenesisParams object with the ability to set a timeout on a request.
func (*GenesisParams) SetContext ¶
func (o *GenesisParams) SetContext(ctx context.Context)
SetContext adds the context to the genesis params
func (*GenesisParams) SetDefaults ¶ added in v2.4.0
func (o *GenesisParams) SetDefaults()
SetDefaults hydrates default values in the genesis params (not the query body).
All values with no default are reset to their zero value.
func (*GenesisParams) SetHTTPClient ¶
func (o *GenesisParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the genesis params
func (*GenesisParams) SetTimeout ¶
func (o *GenesisParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the genesis params
func (*GenesisParams) WithContext ¶
func (o *GenesisParams) WithContext(ctx context.Context) *GenesisParams
WithContext adds the context to the genesis params
func (*GenesisParams) WithDefaults ¶ added in v2.4.0
func (o *GenesisParams) WithDefaults() *GenesisParams
WithDefaults hydrates default values in the genesis params (not the query body).
All values with no default are reset to their zero value.
func (*GenesisParams) WithHTTPClient ¶
func (o *GenesisParams) WithHTTPClient(client *http.Client) *GenesisParams
WithHTTPClient adds the HTTPClient to the genesis params
func (*GenesisParams) WithTimeout ¶
func (o *GenesisParams) WithTimeout(timeout time.Duration) *GenesisParams
WithTimeout adds the timeout to the genesis params
func (*GenesisParams) WriteToRequest ¶
func (o *GenesisParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GenesisReader ¶
type GenesisReader struct {
// contains filtered or unexported fields
}
GenesisReader is a Reader for the Genesis structure.
func (*GenesisReader) ReadResponse ¶
func (o *GenesisReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type HaltsDefault ¶
HaltsDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewHaltsDefault ¶
func NewHaltsDefault(code int) *HaltsDefault
NewHaltsDefault creates a HaltsDefault with default headers values
func (*HaltsDefault) Code ¶
func (o *HaltsDefault) Code() int
Code gets the status code for the halts default response
func (*HaltsDefault) Error ¶
func (o *HaltsDefault) Error() string
func (*HaltsDefault) GetPayload ¶
func (o *HaltsDefault) GetPayload() *models.ErrorBody
type HaltsOK ¶
type HaltsOK struct {
Payload *models.HaltsResponse
}
HaltsOK describes a response with status code 200, with default header values.
A successful response.
func NewHaltsOK ¶
func NewHaltsOK() *HaltsOK
NewHaltsOK creates a HaltsOK with default headers values
func (*HaltsOK) GetPayload ¶
func (o *HaltsOK) GetPayload() *models.HaltsResponse
type HaltsParams ¶
type HaltsParams struct { // Height. // // Format: uint64 Height string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
HaltsParams contains all the parameters to send to the API endpoint
for the halts operation. Typically these are written to a http.Request.
func NewHaltsParams ¶
func NewHaltsParams() *HaltsParams
NewHaltsParams creates a new HaltsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewHaltsParamsWithContext ¶
func NewHaltsParamsWithContext(ctx context.Context) *HaltsParams
NewHaltsParamsWithContext creates a new HaltsParams object with the ability to set a context for a request.
func NewHaltsParamsWithHTTPClient ¶
func NewHaltsParamsWithHTTPClient(client *http.Client) *HaltsParams
NewHaltsParamsWithHTTPClient creates a new HaltsParams object with the ability to set a custom HTTPClient for a request.
func NewHaltsParamsWithTimeout ¶
func NewHaltsParamsWithTimeout(timeout time.Duration) *HaltsParams
NewHaltsParamsWithTimeout creates a new HaltsParams object with the ability to set a timeout on a request.
func (*HaltsParams) SetContext ¶
func (o *HaltsParams) SetContext(ctx context.Context)
SetContext adds the context to the halts params
func (*HaltsParams) SetDefaults ¶ added in v2.4.0
func (o *HaltsParams) SetDefaults()
SetDefaults hydrates default values in the halts params (not the query body).
All values with no default are reset to their zero value.
func (*HaltsParams) SetHTTPClient ¶
func (o *HaltsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the halts params
func (*HaltsParams) SetHeight ¶
func (o *HaltsParams) SetHeight(height string)
SetHeight adds the height to the halts params
func (*HaltsParams) SetTimeout ¶
func (o *HaltsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the halts params
func (*HaltsParams) WithContext ¶
func (o *HaltsParams) WithContext(ctx context.Context) *HaltsParams
WithContext adds the context to the halts params
func (*HaltsParams) WithDefaults ¶ added in v2.4.0
func (o *HaltsParams) WithDefaults() *HaltsParams
WithDefaults hydrates default values in the halts params (not the query body).
All values with no default are reset to their zero value.
func (*HaltsParams) WithHTTPClient ¶
func (o *HaltsParams) WithHTTPClient(client *http.Client) *HaltsParams
WithHTTPClient adds the HTTPClient to the halts params
func (*HaltsParams) WithHeight ¶
func (o *HaltsParams) WithHeight(height string) *HaltsParams
WithHeight adds the height to the halts params
func (*HaltsParams) WithTimeout ¶
func (o *HaltsParams) WithTimeout(timeout time.Duration) *HaltsParams
WithTimeout adds the timeout to the halts params
func (*HaltsParams) WriteToRequest ¶
func (o *HaltsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type HaltsReader ¶
type HaltsReader struct {
// contains filtered or unexported fields
}
HaltsReader is a Reader for the Halts structure.
func (*HaltsReader) ReadResponse ¶
func (o *HaltsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type LimitOrderDefault ¶ added in v2.4.0
type LimitOrderDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
LimitOrderDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewLimitOrderDefault ¶ added in v2.4.0
func NewLimitOrderDefault(code int) *LimitOrderDefault
NewLimitOrderDefault creates a LimitOrderDefault with default headers values
func (*LimitOrderDefault) Code ¶ added in v2.4.0
func (o *LimitOrderDefault) Code() int
Code gets the status code for the limit order default response
func (*LimitOrderDefault) Error ¶ added in v2.4.0
func (o *LimitOrderDefault) Error() string
func (*LimitOrderDefault) GetPayload ¶ added in v2.4.0
func (o *LimitOrderDefault) GetPayload() *models.ErrorBody
type LimitOrderOK ¶ added in v2.4.0
type LimitOrderOK struct {
Payload *models.LimitOrderResponse
}
LimitOrderOK describes a response with status code 200, with default header values.
A successful response.
func NewLimitOrderOK ¶ added in v2.4.0
func NewLimitOrderOK() *LimitOrderOK
NewLimitOrderOK creates a LimitOrderOK with default headers values
func (*LimitOrderOK) Error ¶ added in v2.4.0
func (o *LimitOrderOK) Error() string
func (*LimitOrderOK) GetPayload ¶ added in v2.4.0
func (o *LimitOrderOK) GetPayload() *models.LimitOrderResponse
type LimitOrderParams ¶ added in v2.4.0
type LimitOrderParams struct { // Height. // // Format: uint64 Height *uint64 // OrderID. // // Format: uint64 OrderID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LimitOrderParams contains all the parameters to send to the API endpoint
for the limit order operation. Typically these are written to a http.Request.
func NewLimitOrderParams ¶ added in v2.4.0
func NewLimitOrderParams() *LimitOrderParams
NewLimitOrderParams creates a new LimitOrderParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewLimitOrderParamsWithContext ¶ added in v2.4.0
func NewLimitOrderParamsWithContext(ctx context.Context) *LimitOrderParams
NewLimitOrderParamsWithContext creates a new LimitOrderParams object with the ability to set a context for a request.
func NewLimitOrderParamsWithHTTPClient ¶ added in v2.4.0
func NewLimitOrderParamsWithHTTPClient(client *http.Client) *LimitOrderParams
NewLimitOrderParamsWithHTTPClient creates a new LimitOrderParams object with the ability to set a custom HTTPClient for a request.
func NewLimitOrderParamsWithTimeout ¶ added in v2.4.0
func NewLimitOrderParamsWithTimeout(timeout time.Duration) *LimitOrderParams
NewLimitOrderParamsWithTimeout creates a new LimitOrderParams object with the ability to set a timeout on a request.
func (*LimitOrderParams) SetContext ¶ added in v2.4.0
func (o *LimitOrderParams) SetContext(ctx context.Context)
SetContext adds the context to the limit order params
func (*LimitOrderParams) SetDefaults ¶ added in v2.4.0
func (o *LimitOrderParams) SetDefaults()
SetDefaults hydrates default values in the limit order params (not the query body).
All values with no default are reset to their zero value.
func (*LimitOrderParams) SetHTTPClient ¶ added in v2.4.0
func (o *LimitOrderParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the limit order params
func (*LimitOrderParams) SetHeight ¶ added in v2.4.0
func (o *LimitOrderParams) SetHeight(height *uint64)
SetHeight adds the height to the limit order params
func (*LimitOrderParams) SetOrderID ¶ added in v2.4.0
func (o *LimitOrderParams) SetOrderID(orderID string)
SetOrderID adds the orderId to the limit order params
func (*LimitOrderParams) SetTimeout ¶ added in v2.4.0
func (o *LimitOrderParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the limit order params
func (*LimitOrderParams) WithContext ¶ added in v2.4.0
func (o *LimitOrderParams) WithContext(ctx context.Context) *LimitOrderParams
WithContext adds the context to the limit order params
func (*LimitOrderParams) WithDefaults ¶ added in v2.4.0
func (o *LimitOrderParams) WithDefaults() *LimitOrderParams
WithDefaults hydrates default values in the limit order params (not the query body).
All values with no default are reset to their zero value.
func (*LimitOrderParams) WithHTTPClient ¶ added in v2.4.0
func (o *LimitOrderParams) WithHTTPClient(client *http.Client) *LimitOrderParams
WithHTTPClient adds the HTTPClient to the limit order params
func (*LimitOrderParams) WithHeight ¶ added in v2.4.0
func (o *LimitOrderParams) WithHeight(height *uint64) *LimitOrderParams
WithHeight adds the height to the limit order params
func (*LimitOrderParams) WithOrderID ¶ added in v2.4.0
func (o *LimitOrderParams) WithOrderID(orderID string) *LimitOrderParams
WithOrderID adds the orderID to the limit order params
func (*LimitOrderParams) WithTimeout ¶ added in v2.4.0
func (o *LimitOrderParams) WithTimeout(timeout time.Duration) *LimitOrderParams
WithTimeout adds the timeout to the limit order params
func (*LimitOrderParams) WriteToRequest ¶ added in v2.4.0
func (o *LimitOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LimitOrderReader ¶ added in v2.4.0
type LimitOrderReader struct {
// contains filtered or unexported fields
}
LimitOrderReader is a Reader for the LimitOrder structure.
func (*LimitOrderReader) ReadResponse ¶ added in v2.4.0
func (o *LimitOrderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type LimitOrdersDefault ¶ added in v2.4.0
type LimitOrdersDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
LimitOrdersDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewLimitOrdersDefault ¶ added in v2.4.0
func NewLimitOrdersDefault(code int) *LimitOrdersDefault
NewLimitOrdersDefault creates a LimitOrdersDefault with default headers values
func (*LimitOrdersDefault) Code ¶ added in v2.4.0
func (o *LimitOrdersDefault) Code() int
Code gets the status code for the limit orders default response
func (*LimitOrdersDefault) Error ¶ added in v2.4.0
func (o *LimitOrdersDefault) Error() string
func (*LimitOrdersDefault) GetPayload ¶ added in v2.4.0
func (o *LimitOrdersDefault) GetPayload() *models.ErrorBody
type LimitOrdersOK ¶ added in v2.4.0
type LimitOrdersOK struct {
Payload *models.LimitOrdersResponse
}
LimitOrdersOK describes a response with status code 200, with default header values.
A successful response.
func NewLimitOrdersOK ¶ added in v2.4.0
func NewLimitOrdersOK() *LimitOrdersOK
NewLimitOrdersOK creates a LimitOrdersOK with default headers values
func (*LimitOrdersOK) Error ¶ added in v2.4.0
func (o *LimitOrdersOK) Error() string
func (*LimitOrdersOK) GetPayload ¶ added in v2.4.0
func (o *LimitOrdersOK) GetPayload() *models.LimitOrdersResponse
type LimitOrdersOfPoolDefault ¶ added in v2.4.0
type LimitOrdersOfPoolDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
LimitOrdersOfPoolDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewLimitOrdersOfPoolDefault ¶ added in v2.4.0
func NewLimitOrdersOfPoolDefault(code int) *LimitOrdersOfPoolDefault
NewLimitOrdersOfPoolDefault creates a LimitOrdersOfPoolDefault with default headers values
func (*LimitOrdersOfPoolDefault) Code ¶ added in v2.4.0
func (o *LimitOrdersOfPoolDefault) Code() int
Code gets the status code for the limit orders of pool default response
func (*LimitOrdersOfPoolDefault) Error ¶ added in v2.4.0
func (o *LimitOrdersOfPoolDefault) Error() string
func (*LimitOrdersOfPoolDefault) GetPayload ¶ added in v2.4.0
func (o *LimitOrdersOfPoolDefault) GetPayload() *models.ErrorBody
type LimitOrdersOfPoolOK ¶ added in v2.4.0
type LimitOrdersOfPoolOK struct {
Payload *models.LimitOrdersOfPoolResponse
}
LimitOrdersOfPoolOK describes a response with status code 200, with default header values.
A successful response.
func NewLimitOrdersOfPoolOK ¶ added in v2.4.0
func NewLimitOrdersOfPoolOK() *LimitOrdersOfPoolOK
NewLimitOrdersOfPoolOK creates a LimitOrdersOfPoolOK with default headers values
func (*LimitOrdersOfPoolOK) Error ¶ added in v2.4.0
func (o *LimitOrdersOfPoolOK) Error() string
func (*LimitOrdersOfPoolOK) GetPayload ¶ added in v2.4.0
func (o *LimitOrdersOfPoolOK) GetPayload() *models.LimitOrdersOfPoolResponse
type LimitOrdersOfPoolParams ¶ added in v2.4.0
type LimitOrdersOfPoolParams struct { // BuyCoin. // // Format: uint64 BuyCoin string // Height. // // Format: uint64 Height *uint64 // Limit. // // Format: int32 // Default: 3 Limit *int32 // SellCoin. // // Format: uint64 SellCoin string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LimitOrdersOfPoolParams contains all the parameters to send to the API endpoint
for the limit orders of pool operation. Typically these are written to a http.Request.
func NewLimitOrdersOfPoolParams ¶ added in v2.4.0
func NewLimitOrdersOfPoolParams() *LimitOrdersOfPoolParams
NewLimitOrdersOfPoolParams creates a new LimitOrdersOfPoolParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewLimitOrdersOfPoolParamsWithContext ¶ added in v2.4.0
func NewLimitOrdersOfPoolParamsWithContext(ctx context.Context) *LimitOrdersOfPoolParams
NewLimitOrdersOfPoolParamsWithContext creates a new LimitOrdersOfPoolParams object with the ability to set a context for a request.
func NewLimitOrdersOfPoolParamsWithHTTPClient ¶ added in v2.4.0
func NewLimitOrdersOfPoolParamsWithHTTPClient(client *http.Client) *LimitOrdersOfPoolParams
NewLimitOrdersOfPoolParamsWithHTTPClient creates a new LimitOrdersOfPoolParams object with the ability to set a custom HTTPClient for a request.
func NewLimitOrdersOfPoolParamsWithTimeout ¶ added in v2.4.0
func NewLimitOrdersOfPoolParamsWithTimeout(timeout time.Duration) *LimitOrdersOfPoolParams
NewLimitOrdersOfPoolParamsWithTimeout creates a new LimitOrdersOfPoolParams object with the ability to set a timeout on a request.
func (*LimitOrdersOfPoolParams) SetBuyCoin ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) SetBuyCoin(buyCoin string)
SetBuyCoin adds the buyCoin to the limit orders of pool params
func (*LimitOrdersOfPoolParams) SetContext ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) SetContext(ctx context.Context)
SetContext adds the context to the limit orders of pool params
func (*LimitOrdersOfPoolParams) SetDefaults ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) SetDefaults()
SetDefaults hydrates default values in the limit orders of pool params (not the query body).
All values with no default are reset to their zero value.
func (*LimitOrdersOfPoolParams) SetHTTPClient ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the limit orders of pool params
func (*LimitOrdersOfPoolParams) SetHeight ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) SetHeight(height *uint64)
SetHeight adds the height to the limit orders of pool params
func (*LimitOrdersOfPoolParams) SetLimit ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) SetLimit(limit *int32)
SetLimit adds the limit to the limit orders of pool params
func (*LimitOrdersOfPoolParams) SetSellCoin ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) SetSellCoin(sellCoin string)
SetSellCoin adds the sellCoin to the limit orders of pool params
func (*LimitOrdersOfPoolParams) SetTimeout ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the limit orders of pool params
func (*LimitOrdersOfPoolParams) WithBuyCoin ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) WithBuyCoin(buyCoin string) *LimitOrdersOfPoolParams
WithBuyCoin adds the buyCoin to the limit orders of pool params
func (*LimitOrdersOfPoolParams) WithContext ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) WithContext(ctx context.Context) *LimitOrdersOfPoolParams
WithContext adds the context to the limit orders of pool params
func (*LimitOrdersOfPoolParams) WithDefaults ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) WithDefaults() *LimitOrdersOfPoolParams
WithDefaults hydrates default values in the limit orders of pool params (not the query body).
All values with no default are reset to their zero value.
func (*LimitOrdersOfPoolParams) WithHTTPClient ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) WithHTTPClient(client *http.Client) *LimitOrdersOfPoolParams
WithHTTPClient adds the HTTPClient to the limit orders of pool params
func (*LimitOrdersOfPoolParams) WithHeight ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) WithHeight(height *uint64) *LimitOrdersOfPoolParams
WithHeight adds the height to the limit orders of pool params
func (*LimitOrdersOfPoolParams) WithLimit ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) WithLimit(limit *int32) *LimitOrdersOfPoolParams
WithLimit adds the limit to the limit orders of pool params
func (*LimitOrdersOfPoolParams) WithSellCoin ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) WithSellCoin(sellCoin string) *LimitOrdersOfPoolParams
WithSellCoin adds the sellCoin to the limit orders of pool params
func (*LimitOrdersOfPoolParams) WithTimeout ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) WithTimeout(timeout time.Duration) *LimitOrdersOfPoolParams
WithTimeout adds the timeout to the limit orders of pool params
func (*LimitOrdersOfPoolParams) WriteToRequest ¶ added in v2.4.0
func (o *LimitOrdersOfPoolParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LimitOrdersOfPoolReader ¶ added in v2.4.0
type LimitOrdersOfPoolReader struct {
// contains filtered or unexported fields
}
LimitOrdersOfPoolReader is a Reader for the LimitOrdersOfPool structure.
func (*LimitOrdersOfPoolReader) ReadResponse ¶ added in v2.4.0
func (o *LimitOrdersOfPoolReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type LimitOrdersParams ¶ added in v2.4.0
type LimitOrdersParams struct { // Height. // // Format: uint64 Height *uint64 // Ids. Ids []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LimitOrdersParams contains all the parameters to send to the API endpoint
for the limit orders operation. Typically these are written to a http.Request.
func NewLimitOrdersParams ¶ added in v2.4.0
func NewLimitOrdersParams() *LimitOrdersParams
NewLimitOrdersParams creates a new LimitOrdersParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewLimitOrdersParamsWithContext ¶ added in v2.4.0
func NewLimitOrdersParamsWithContext(ctx context.Context) *LimitOrdersParams
NewLimitOrdersParamsWithContext creates a new LimitOrdersParams object with the ability to set a context for a request.
func NewLimitOrdersParamsWithHTTPClient ¶ added in v2.4.0
func NewLimitOrdersParamsWithHTTPClient(client *http.Client) *LimitOrdersParams
NewLimitOrdersParamsWithHTTPClient creates a new LimitOrdersParams object with the ability to set a custom HTTPClient for a request.
func NewLimitOrdersParamsWithTimeout ¶ added in v2.4.0
func NewLimitOrdersParamsWithTimeout(timeout time.Duration) *LimitOrdersParams
NewLimitOrdersParamsWithTimeout creates a new LimitOrdersParams object with the ability to set a timeout on a request.
func (*LimitOrdersParams) SetContext ¶ added in v2.4.0
func (o *LimitOrdersParams) SetContext(ctx context.Context)
SetContext adds the context to the limit orders params
func (*LimitOrdersParams) SetDefaults ¶ added in v2.4.0
func (o *LimitOrdersParams) SetDefaults()
SetDefaults hydrates default values in the limit orders params (not the query body).
All values with no default are reset to their zero value.
func (*LimitOrdersParams) SetHTTPClient ¶ added in v2.4.0
func (o *LimitOrdersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the limit orders params
func (*LimitOrdersParams) SetHeight ¶ added in v2.4.0
func (o *LimitOrdersParams) SetHeight(height *uint64)
SetHeight adds the height to the limit orders params
func (*LimitOrdersParams) SetIds ¶ added in v2.4.0
func (o *LimitOrdersParams) SetIds(ids []string)
SetIds adds the ids to the limit orders params
func (*LimitOrdersParams) SetTimeout ¶ added in v2.4.0
func (o *LimitOrdersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the limit orders params
func (*LimitOrdersParams) WithContext ¶ added in v2.4.0
func (o *LimitOrdersParams) WithContext(ctx context.Context) *LimitOrdersParams
WithContext adds the context to the limit orders params
func (*LimitOrdersParams) WithDefaults ¶ added in v2.4.0
func (o *LimitOrdersParams) WithDefaults() *LimitOrdersParams
WithDefaults hydrates default values in the limit orders params (not the query body).
All values with no default are reset to their zero value.
func (*LimitOrdersParams) WithHTTPClient ¶ added in v2.4.0
func (o *LimitOrdersParams) WithHTTPClient(client *http.Client) *LimitOrdersParams
WithHTTPClient adds the HTTPClient to the limit orders params
func (*LimitOrdersParams) WithHeight ¶ added in v2.4.0
func (o *LimitOrdersParams) WithHeight(height *uint64) *LimitOrdersParams
WithHeight adds the height to the limit orders params
func (*LimitOrdersParams) WithIds ¶ added in v2.4.0
func (o *LimitOrdersParams) WithIds(ids []string) *LimitOrdersParams
WithIds adds the ids to the limit orders params
func (*LimitOrdersParams) WithTimeout ¶ added in v2.4.0
func (o *LimitOrdersParams) WithTimeout(timeout time.Duration) *LimitOrdersParams
WithTimeout adds the timeout to the limit orders params
func (*LimitOrdersParams) WriteToRequest ¶ added in v2.4.0
func (o *LimitOrdersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LimitOrdersReader ¶ added in v2.4.0
type LimitOrdersReader struct {
// contains filtered or unexported fields
}
LimitOrdersReader is a Reader for the LimitOrders structure.
func (*LimitOrdersReader) ReadResponse ¶ added in v2.4.0
func (o *LimitOrdersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MaxGasPriceDefault ¶
type MaxGasPriceDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
MaxGasPriceDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewMaxGasPriceDefault ¶
func NewMaxGasPriceDefault(code int) *MaxGasPriceDefault
NewMaxGasPriceDefault creates a MaxGasPriceDefault with default headers values
func (*MaxGasPriceDefault) Code ¶
func (o *MaxGasPriceDefault) Code() int
Code gets the status code for the max gas price default response
func (*MaxGasPriceDefault) Error ¶
func (o *MaxGasPriceDefault) Error() string
func (*MaxGasPriceDefault) GetPayload ¶
func (o *MaxGasPriceDefault) GetPayload() *models.ErrorBody
type MaxGasPriceOK ¶
type MaxGasPriceOK struct {
Payload *models.MaxGasPriceResponse
}
MaxGasPriceOK describes a response with status code 200, with default header values.
A successful response.
func NewMaxGasPriceOK ¶
func NewMaxGasPriceOK() *MaxGasPriceOK
NewMaxGasPriceOK creates a MaxGasPriceOK with default headers values
func (*MaxGasPriceOK) Error ¶
func (o *MaxGasPriceOK) Error() string
func (*MaxGasPriceOK) GetPayload ¶
func (o *MaxGasPriceOK) GetPayload() *models.MaxGasPriceResponse
type MaxGasPriceParams ¶
type MaxGasPriceParams struct { // Height. // // Format: uint64 Height *uint64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MaxGasPriceParams contains all the parameters to send to the API endpoint
for the max gas price operation. Typically these are written to a http.Request.
func NewMaxGasPriceParams ¶
func NewMaxGasPriceParams() *MaxGasPriceParams
NewMaxGasPriceParams creates a new MaxGasPriceParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewMaxGasPriceParamsWithContext ¶
func NewMaxGasPriceParamsWithContext(ctx context.Context) *MaxGasPriceParams
NewMaxGasPriceParamsWithContext creates a new MaxGasPriceParams object with the ability to set a context for a request.
func NewMaxGasPriceParamsWithHTTPClient ¶
func NewMaxGasPriceParamsWithHTTPClient(client *http.Client) *MaxGasPriceParams
NewMaxGasPriceParamsWithHTTPClient creates a new MaxGasPriceParams object with the ability to set a custom HTTPClient for a request.
func NewMaxGasPriceParamsWithTimeout ¶
func NewMaxGasPriceParamsWithTimeout(timeout time.Duration) *MaxGasPriceParams
NewMaxGasPriceParamsWithTimeout creates a new MaxGasPriceParams object with the ability to set a timeout on a request.
func (*MaxGasPriceParams) SetContext ¶
func (o *MaxGasPriceParams) SetContext(ctx context.Context)
SetContext adds the context to the max gas price params
func (*MaxGasPriceParams) SetDefaults ¶ added in v2.4.0
func (o *MaxGasPriceParams) SetDefaults()
SetDefaults hydrates default values in the max gas price params (not the query body).
All values with no default are reset to their zero value.
func (*MaxGasPriceParams) SetHTTPClient ¶
func (o *MaxGasPriceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the max gas price params
func (*MaxGasPriceParams) SetHeight ¶
func (o *MaxGasPriceParams) SetHeight(height *uint64)
SetHeight adds the height to the max gas price params
func (*MaxGasPriceParams) SetTimeout ¶
func (o *MaxGasPriceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the max gas price params
func (*MaxGasPriceParams) WithContext ¶
func (o *MaxGasPriceParams) WithContext(ctx context.Context) *MaxGasPriceParams
WithContext adds the context to the max gas price params
func (*MaxGasPriceParams) WithDefaults ¶ added in v2.4.0
func (o *MaxGasPriceParams) WithDefaults() *MaxGasPriceParams
WithDefaults hydrates default values in the max gas price params (not the query body).
All values with no default are reset to their zero value.
func (*MaxGasPriceParams) WithHTTPClient ¶
func (o *MaxGasPriceParams) WithHTTPClient(client *http.Client) *MaxGasPriceParams
WithHTTPClient adds the HTTPClient to the max gas price params
func (*MaxGasPriceParams) WithHeight ¶
func (o *MaxGasPriceParams) WithHeight(height *uint64) *MaxGasPriceParams
WithHeight adds the height to the max gas price params
func (*MaxGasPriceParams) WithTimeout ¶
func (o *MaxGasPriceParams) WithTimeout(timeout time.Duration) *MaxGasPriceParams
WithTimeout adds the timeout to the max gas price params
func (*MaxGasPriceParams) WriteToRequest ¶
func (o *MaxGasPriceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MaxGasPriceReader ¶
type MaxGasPriceReader struct {
// contains filtered or unexported fields
}
MaxGasPriceReader is a Reader for the MaxGasPrice structure.
func (*MaxGasPriceReader) ReadResponse ¶
func (o *MaxGasPriceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MinGasPriceDefault ¶
type MinGasPriceDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
MinGasPriceDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewMinGasPriceDefault ¶
func NewMinGasPriceDefault(code int) *MinGasPriceDefault
NewMinGasPriceDefault creates a MinGasPriceDefault with default headers values
func (*MinGasPriceDefault) Code ¶
func (o *MinGasPriceDefault) Code() int
Code gets the status code for the min gas price default response
func (*MinGasPriceDefault) Error ¶
func (o *MinGasPriceDefault) Error() string
func (*MinGasPriceDefault) GetPayload ¶
func (o *MinGasPriceDefault) GetPayload() *models.ErrorBody
type MinGasPriceOK ¶
type MinGasPriceOK struct {
Payload *models.MinGasPriceResponse
}
MinGasPriceOK describes a response with status code 200, with default header values.
A successful response.
func NewMinGasPriceOK ¶
func NewMinGasPriceOK() *MinGasPriceOK
NewMinGasPriceOK creates a MinGasPriceOK with default headers values
func (*MinGasPriceOK) Error ¶
func (o *MinGasPriceOK) Error() string
func (*MinGasPriceOK) GetPayload ¶
func (o *MinGasPriceOK) GetPayload() *models.MinGasPriceResponse
type MinGasPriceParams ¶
type MinGasPriceParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MinGasPriceParams contains all the parameters to send to the API endpoint
for the min gas price operation. Typically these are written to a http.Request.
func NewMinGasPriceParams ¶
func NewMinGasPriceParams() *MinGasPriceParams
NewMinGasPriceParams creates a new MinGasPriceParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewMinGasPriceParamsWithContext ¶
func NewMinGasPriceParamsWithContext(ctx context.Context) *MinGasPriceParams
NewMinGasPriceParamsWithContext creates a new MinGasPriceParams object with the ability to set a context for a request.
func NewMinGasPriceParamsWithHTTPClient ¶
func NewMinGasPriceParamsWithHTTPClient(client *http.Client) *MinGasPriceParams
NewMinGasPriceParamsWithHTTPClient creates a new MinGasPriceParams object with the ability to set a custom HTTPClient for a request.
func NewMinGasPriceParamsWithTimeout ¶
func NewMinGasPriceParamsWithTimeout(timeout time.Duration) *MinGasPriceParams
NewMinGasPriceParamsWithTimeout creates a new MinGasPriceParams object with the ability to set a timeout on a request.
func (*MinGasPriceParams) SetContext ¶
func (o *MinGasPriceParams) SetContext(ctx context.Context)
SetContext adds the context to the min gas price params
func (*MinGasPriceParams) SetDefaults ¶ added in v2.4.0
func (o *MinGasPriceParams) SetDefaults()
SetDefaults hydrates default values in the min gas price params (not the query body).
All values with no default are reset to their zero value.
func (*MinGasPriceParams) SetHTTPClient ¶
func (o *MinGasPriceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the min gas price params
func (*MinGasPriceParams) SetTimeout ¶
func (o *MinGasPriceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the min gas price params
func (*MinGasPriceParams) WithContext ¶
func (o *MinGasPriceParams) WithContext(ctx context.Context) *MinGasPriceParams
WithContext adds the context to the min gas price params
func (*MinGasPriceParams) WithDefaults ¶ added in v2.4.0
func (o *MinGasPriceParams) WithDefaults() *MinGasPriceParams
WithDefaults hydrates default values in the min gas price params (not the query body).
All values with no default are reset to their zero value.
func (*MinGasPriceParams) WithHTTPClient ¶
func (o *MinGasPriceParams) WithHTTPClient(client *http.Client) *MinGasPriceParams
WithHTTPClient adds the HTTPClient to the min gas price params
func (*MinGasPriceParams) WithTimeout ¶
func (o *MinGasPriceParams) WithTimeout(timeout time.Duration) *MinGasPriceParams
WithTimeout adds the timeout to the min gas price params
func (*MinGasPriceParams) WriteToRequest ¶
func (o *MinGasPriceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MinGasPriceReader ¶
type MinGasPriceReader struct {
// contains filtered or unexported fields
}
MinGasPriceReader is a Reader for the MinGasPrice structure.
func (*MinGasPriceReader) ReadResponse ¶
func (o *MinGasPriceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type MissedBlocksDefault ¶
type MissedBlocksDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
MissedBlocksDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewMissedBlocksDefault ¶
func NewMissedBlocksDefault(code int) *MissedBlocksDefault
NewMissedBlocksDefault creates a MissedBlocksDefault with default headers values
func (*MissedBlocksDefault) Code ¶
func (o *MissedBlocksDefault) Code() int
Code gets the status code for the missed blocks default response
func (*MissedBlocksDefault) Error ¶
func (o *MissedBlocksDefault) Error() string
func (*MissedBlocksDefault) GetPayload ¶
func (o *MissedBlocksDefault) GetPayload() *models.ErrorBody
type MissedBlocksOK ¶
type MissedBlocksOK struct {
Payload *models.MissedBlocksResponse
}
MissedBlocksOK describes a response with status code 200, with default header values.
A successful response.
func NewMissedBlocksOK ¶
func NewMissedBlocksOK() *MissedBlocksOK
NewMissedBlocksOK creates a MissedBlocksOK with default headers values
func (*MissedBlocksOK) Error ¶
func (o *MissedBlocksOK) Error() string
func (*MissedBlocksOK) GetPayload ¶
func (o *MissedBlocksOK) GetPayload() *models.MissedBlocksResponse
type MissedBlocksParams ¶
type MissedBlocksParams struct { // Height. // // Format: uint64 Height *uint64 // PublicKey. PublicKey string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
MissedBlocksParams contains all the parameters to send to the API endpoint
for the missed blocks operation. Typically these are written to a http.Request.
func NewMissedBlocksParams ¶
func NewMissedBlocksParams() *MissedBlocksParams
NewMissedBlocksParams creates a new MissedBlocksParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewMissedBlocksParamsWithContext ¶
func NewMissedBlocksParamsWithContext(ctx context.Context) *MissedBlocksParams
NewMissedBlocksParamsWithContext creates a new MissedBlocksParams object with the ability to set a context for a request.
func NewMissedBlocksParamsWithHTTPClient ¶
func NewMissedBlocksParamsWithHTTPClient(client *http.Client) *MissedBlocksParams
NewMissedBlocksParamsWithHTTPClient creates a new MissedBlocksParams object with the ability to set a custom HTTPClient for a request.
func NewMissedBlocksParamsWithTimeout ¶
func NewMissedBlocksParamsWithTimeout(timeout time.Duration) *MissedBlocksParams
NewMissedBlocksParamsWithTimeout creates a new MissedBlocksParams object with the ability to set a timeout on a request.
func (*MissedBlocksParams) SetContext ¶
func (o *MissedBlocksParams) SetContext(ctx context.Context)
SetContext adds the context to the missed blocks params
func (*MissedBlocksParams) SetDefaults ¶ added in v2.4.0
func (o *MissedBlocksParams) SetDefaults()
SetDefaults hydrates default values in the missed blocks params (not the query body).
All values with no default are reset to their zero value.
func (*MissedBlocksParams) SetHTTPClient ¶
func (o *MissedBlocksParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the missed blocks params
func (*MissedBlocksParams) SetHeight ¶
func (o *MissedBlocksParams) SetHeight(height *uint64)
SetHeight adds the height to the missed blocks params
func (*MissedBlocksParams) SetPublicKey ¶
func (o *MissedBlocksParams) SetPublicKey(publicKey string)
SetPublicKey adds the publicKey to the missed blocks params
func (*MissedBlocksParams) SetTimeout ¶
func (o *MissedBlocksParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the missed blocks params
func (*MissedBlocksParams) WithContext ¶
func (o *MissedBlocksParams) WithContext(ctx context.Context) *MissedBlocksParams
WithContext adds the context to the missed blocks params
func (*MissedBlocksParams) WithDefaults ¶ added in v2.4.0
func (o *MissedBlocksParams) WithDefaults() *MissedBlocksParams
WithDefaults hydrates default values in the missed blocks params (not the query body).
All values with no default are reset to their zero value.
func (*MissedBlocksParams) WithHTTPClient ¶
func (o *MissedBlocksParams) WithHTTPClient(client *http.Client) *MissedBlocksParams
WithHTTPClient adds the HTTPClient to the missed blocks params
func (*MissedBlocksParams) WithHeight ¶
func (o *MissedBlocksParams) WithHeight(height *uint64) *MissedBlocksParams
WithHeight adds the height to the missed blocks params
func (*MissedBlocksParams) WithPublicKey ¶
func (o *MissedBlocksParams) WithPublicKey(publicKey string) *MissedBlocksParams
WithPublicKey adds the publicKey to the missed blocks params
func (*MissedBlocksParams) WithTimeout ¶
func (o *MissedBlocksParams) WithTimeout(timeout time.Duration) *MissedBlocksParams
WithTimeout adds the timeout to the missed blocks params
func (*MissedBlocksParams) WriteToRequest ¶
func (o *MissedBlocksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type MissedBlocksReader ¶
type MissedBlocksReader struct {
// contains filtered or unexported fields
}
MissedBlocksReader is a Reader for the MissedBlocks structure.
func (*MissedBlocksReader) ReadResponse ¶
func (o *MissedBlocksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type NetInfoDefault ¶
NetInfoDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewNetInfoDefault ¶
func NewNetInfoDefault(code int) *NetInfoDefault
NewNetInfoDefault creates a NetInfoDefault with default headers values
func (*NetInfoDefault) Code ¶
func (o *NetInfoDefault) Code() int
Code gets the status code for the net info default response
func (*NetInfoDefault) Error ¶
func (o *NetInfoDefault) Error() string
func (*NetInfoDefault) GetPayload ¶
func (o *NetInfoDefault) GetPayload() *models.ErrorBody
type NetInfoOK ¶
type NetInfoOK struct {
Payload *models.NetInfoResponse
}
NetInfoOK describes a response with status code 200, with default header values.
A successful response.
func NewNetInfoOK ¶
func NewNetInfoOK() *NetInfoOK
NewNetInfoOK creates a NetInfoOK with default headers values
func (*NetInfoOK) GetPayload ¶
func (o *NetInfoOK) GetPayload() *models.NetInfoResponse
type NetInfoParams ¶
type NetInfoParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
NetInfoParams contains all the parameters to send to the API endpoint
for the net info operation. Typically these are written to a http.Request.
func NewNetInfoParams ¶
func NewNetInfoParams() *NetInfoParams
NewNetInfoParams creates a new NetInfoParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewNetInfoParamsWithContext ¶
func NewNetInfoParamsWithContext(ctx context.Context) *NetInfoParams
NewNetInfoParamsWithContext creates a new NetInfoParams object with the ability to set a context for a request.
func NewNetInfoParamsWithHTTPClient ¶
func NewNetInfoParamsWithHTTPClient(client *http.Client) *NetInfoParams
NewNetInfoParamsWithHTTPClient creates a new NetInfoParams object with the ability to set a custom HTTPClient for a request.
func NewNetInfoParamsWithTimeout ¶
func NewNetInfoParamsWithTimeout(timeout time.Duration) *NetInfoParams
NewNetInfoParamsWithTimeout creates a new NetInfoParams object with the ability to set a timeout on a request.
func (*NetInfoParams) SetContext ¶
func (o *NetInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the net info params
func (*NetInfoParams) SetDefaults ¶ added in v2.4.0
func (o *NetInfoParams) SetDefaults()
SetDefaults hydrates default values in the net info params (not the query body).
All values with no default are reset to their zero value.
func (*NetInfoParams) SetHTTPClient ¶
func (o *NetInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the net info params
func (*NetInfoParams) SetTimeout ¶
func (o *NetInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the net info params
func (*NetInfoParams) WithContext ¶
func (o *NetInfoParams) WithContext(ctx context.Context) *NetInfoParams
WithContext adds the context to the net info params
func (*NetInfoParams) WithDefaults ¶ added in v2.4.0
func (o *NetInfoParams) WithDefaults() *NetInfoParams
WithDefaults hydrates default values in the net info params (not the query body).
All values with no default are reset to their zero value.
func (*NetInfoParams) WithHTTPClient ¶
func (o *NetInfoParams) WithHTTPClient(client *http.Client) *NetInfoParams
WithHTTPClient adds the HTTPClient to the net info params
func (*NetInfoParams) WithTimeout ¶
func (o *NetInfoParams) WithTimeout(timeout time.Duration) *NetInfoParams
WithTimeout adds the timeout to the net info params
func (*NetInfoParams) WriteToRequest ¶
func (o *NetInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NetInfoReader ¶
type NetInfoReader struct {
// contains filtered or unexported fields
}
NetInfoReader is a Reader for the NetInfo structure.
func (*NetInfoReader) ReadResponse ¶
func (o *NetInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PriceCommissionDefault ¶ added in v2.2.0
type PriceCommissionDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
PriceCommissionDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewPriceCommissionDefault ¶ added in v2.2.0
func NewPriceCommissionDefault(code int) *PriceCommissionDefault
NewPriceCommissionDefault creates a PriceCommissionDefault with default headers values
func (*PriceCommissionDefault) Code ¶ added in v2.2.0
func (o *PriceCommissionDefault) Code() int
Code gets the status code for the price commission default response
func (*PriceCommissionDefault) Error ¶ added in v2.2.0
func (o *PriceCommissionDefault) Error() string
func (*PriceCommissionDefault) GetPayload ¶ added in v2.2.0
func (o *PriceCommissionDefault) GetPayload() *models.ErrorBody
type PriceCommissionOK ¶ added in v2.2.0
type PriceCommissionOK struct {
Payload *models.PriceCommissionResponse
}
PriceCommissionOK describes a response with status code 200, with default header values.
A successful response.
func NewPriceCommissionOK ¶ added in v2.2.0
func NewPriceCommissionOK() *PriceCommissionOK
NewPriceCommissionOK creates a PriceCommissionOK with default headers values
func (*PriceCommissionOK) Error ¶ added in v2.2.0
func (o *PriceCommissionOK) Error() string
func (*PriceCommissionOK) GetPayload ¶ added in v2.2.0
func (o *PriceCommissionOK) GetPayload() *models.PriceCommissionResponse
type PriceCommissionParams ¶ added in v2.2.0
type PriceCommissionParams struct { // Height. // // Format: uint64 Height *uint64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PriceCommissionParams contains all the parameters to send to the API endpoint
for the price commission operation. Typically these are written to a http.Request.
func NewPriceCommissionParams ¶ added in v2.2.0
func NewPriceCommissionParams() *PriceCommissionParams
NewPriceCommissionParams creates a new PriceCommissionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPriceCommissionParamsWithContext ¶ added in v2.2.0
func NewPriceCommissionParamsWithContext(ctx context.Context) *PriceCommissionParams
NewPriceCommissionParamsWithContext creates a new PriceCommissionParams object with the ability to set a context for a request.
func NewPriceCommissionParamsWithHTTPClient ¶ added in v2.2.0
func NewPriceCommissionParamsWithHTTPClient(client *http.Client) *PriceCommissionParams
NewPriceCommissionParamsWithHTTPClient creates a new PriceCommissionParams object with the ability to set a custom HTTPClient for a request.
func NewPriceCommissionParamsWithTimeout ¶ added in v2.2.0
func NewPriceCommissionParamsWithTimeout(timeout time.Duration) *PriceCommissionParams
NewPriceCommissionParamsWithTimeout creates a new PriceCommissionParams object with the ability to set a timeout on a request.
func (*PriceCommissionParams) SetContext ¶ added in v2.2.0
func (o *PriceCommissionParams) SetContext(ctx context.Context)
SetContext adds the context to the price commission params
func (*PriceCommissionParams) SetDefaults ¶ added in v2.4.0
func (o *PriceCommissionParams) SetDefaults()
SetDefaults hydrates default values in the price commission params (not the query body).
All values with no default are reset to their zero value.
func (*PriceCommissionParams) SetHTTPClient ¶ added in v2.2.0
func (o *PriceCommissionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the price commission params
func (*PriceCommissionParams) SetHeight ¶ added in v2.2.0
func (o *PriceCommissionParams) SetHeight(height *uint64)
SetHeight adds the height to the price commission params
func (*PriceCommissionParams) SetTimeout ¶ added in v2.2.0
func (o *PriceCommissionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the price commission params
func (*PriceCommissionParams) WithContext ¶ added in v2.2.0
func (o *PriceCommissionParams) WithContext(ctx context.Context) *PriceCommissionParams
WithContext adds the context to the price commission params
func (*PriceCommissionParams) WithDefaults ¶ added in v2.4.0
func (o *PriceCommissionParams) WithDefaults() *PriceCommissionParams
WithDefaults hydrates default values in the price commission params (not the query body).
All values with no default are reset to their zero value.
func (*PriceCommissionParams) WithHTTPClient ¶ added in v2.2.0
func (o *PriceCommissionParams) WithHTTPClient(client *http.Client) *PriceCommissionParams
WithHTTPClient adds the HTTPClient to the price commission params
func (*PriceCommissionParams) WithHeight ¶ added in v2.2.0
func (o *PriceCommissionParams) WithHeight(height *uint64) *PriceCommissionParams
WithHeight adds the height to the price commission params
func (*PriceCommissionParams) WithTimeout ¶ added in v2.2.0
func (o *PriceCommissionParams) WithTimeout(timeout time.Duration) *PriceCommissionParams
WithTimeout adds the timeout to the price commission params
func (*PriceCommissionParams) WriteToRequest ¶ added in v2.2.0
func (o *PriceCommissionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PriceCommissionReader ¶ added in v2.2.0
type PriceCommissionReader struct {
// contains filtered or unexported fields
}
PriceCommissionReader is a Reader for the PriceCommission structure.
func (*PriceCommissionReader) ReadResponse ¶ added in v2.2.0
func (o *PriceCommissionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SendTransaction2Default ¶
type SendTransaction2Default struct { Payload *models.ErrorBody // contains filtered or unexported fields }
SendTransaction2Default describes a response with status code -1, with default header values.
An unexpected error response.
func NewSendTransaction2Default ¶
func NewSendTransaction2Default(code int) *SendTransaction2Default
NewSendTransaction2Default creates a SendTransaction2Default with default headers values
func (*SendTransaction2Default) Code ¶
func (o *SendTransaction2Default) Code() int
Code gets the status code for the send transaction2 default response
func (*SendTransaction2Default) Error ¶
func (o *SendTransaction2Default) Error() string
func (*SendTransaction2Default) GetPayload ¶
func (o *SendTransaction2Default) GetPayload() *models.ErrorBody
type SendTransaction2OK ¶
type SendTransaction2OK struct {
Payload *models.SendTransactionResponse
}
SendTransaction2OK describes a response with status code 200, with default header values.
A successful response.
func NewSendTransaction2OK ¶
func NewSendTransaction2OK() *SendTransaction2OK
NewSendTransaction2OK creates a SendTransaction2OK with default headers values
func (*SendTransaction2OK) Error ¶
func (o *SendTransaction2OK) Error() string
func (*SendTransaction2OK) GetPayload ¶
func (o *SendTransaction2OK) GetPayload() *models.SendTransactionResponse
type SendTransaction2Params ¶
type SendTransaction2Params struct { // Body. Body *models.SendTransactionRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SendTransaction2Params contains all the parameters to send to the API endpoint
for the send transaction2 operation. Typically these are written to a http.Request.
func NewSendTransaction2Params ¶
func NewSendTransaction2Params() *SendTransaction2Params
NewSendTransaction2Params creates a new SendTransaction2Params object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSendTransaction2ParamsWithContext ¶
func NewSendTransaction2ParamsWithContext(ctx context.Context) *SendTransaction2Params
NewSendTransaction2ParamsWithContext creates a new SendTransaction2Params object with the ability to set a context for a request.
func NewSendTransaction2ParamsWithHTTPClient ¶
func NewSendTransaction2ParamsWithHTTPClient(client *http.Client) *SendTransaction2Params
NewSendTransaction2ParamsWithHTTPClient creates a new SendTransaction2Params object with the ability to set a custom HTTPClient for a request.
func NewSendTransaction2ParamsWithTimeout ¶
func NewSendTransaction2ParamsWithTimeout(timeout time.Duration) *SendTransaction2Params
NewSendTransaction2ParamsWithTimeout creates a new SendTransaction2Params object with the ability to set a timeout on a request.
func (*SendTransaction2Params) SetBody ¶
func (o *SendTransaction2Params) SetBody(body *models.SendTransactionRequest)
SetBody adds the body to the send transaction2 params
func (*SendTransaction2Params) SetContext ¶
func (o *SendTransaction2Params) SetContext(ctx context.Context)
SetContext adds the context to the send transaction2 params
func (*SendTransaction2Params) SetDefaults ¶ added in v2.4.0
func (o *SendTransaction2Params) SetDefaults()
SetDefaults hydrates default values in the send transaction2 params (not the query body).
All values with no default are reset to their zero value.
func (*SendTransaction2Params) SetHTTPClient ¶
func (o *SendTransaction2Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the send transaction2 params
func (*SendTransaction2Params) SetTimeout ¶
func (o *SendTransaction2Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the send transaction2 params
func (*SendTransaction2Params) WithBody ¶
func (o *SendTransaction2Params) WithBody(body *models.SendTransactionRequest) *SendTransaction2Params
WithBody adds the body to the send transaction2 params
func (*SendTransaction2Params) WithContext ¶
func (o *SendTransaction2Params) WithContext(ctx context.Context) *SendTransaction2Params
WithContext adds the context to the send transaction2 params
func (*SendTransaction2Params) WithDefaults ¶ added in v2.4.0
func (o *SendTransaction2Params) WithDefaults() *SendTransaction2Params
WithDefaults hydrates default values in the send transaction2 params (not the query body).
All values with no default are reset to their zero value.
func (*SendTransaction2Params) WithHTTPClient ¶
func (o *SendTransaction2Params) WithHTTPClient(client *http.Client) *SendTransaction2Params
WithHTTPClient adds the HTTPClient to the send transaction2 params
func (*SendTransaction2Params) WithTimeout ¶
func (o *SendTransaction2Params) WithTimeout(timeout time.Duration) *SendTransaction2Params
WithTimeout adds the timeout to the send transaction2 params
func (*SendTransaction2Params) WriteToRequest ¶
func (o *SendTransaction2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SendTransaction2Reader ¶
type SendTransaction2Reader struct {
// contains filtered or unexported fields
}
SendTransaction2Reader is a Reader for the SendTransaction2 structure.
func (*SendTransaction2Reader) ReadResponse ¶
func (o *SendTransaction2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SendTransactionDefault ¶
type SendTransactionDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
SendTransactionDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewSendTransactionDefault ¶
func NewSendTransactionDefault(code int) *SendTransactionDefault
NewSendTransactionDefault creates a SendTransactionDefault with default headers values
func (*SendTransactionDefault) Code ¶
func (o *SendTransactionDefault) Code() int
Code gets the status code for the send transaction default response
func (*SendTransactionDefault) Error ¶
func (o *SendTransactionDefault) Error() string
func (*SendTransactionDefault) GetPayload ¶
func (o *SendTransactionDefault) GetPayload() *models.ErrorBody
type SendTransactionOK ¶
type SendTransactionOK struct {
Payload *models.SendTransactionResponse
}
SendTransactionOK describes a response with status code 200, with default header values.
A successful response.
func NewSendTransactionOK ¶
func NewSendTransactionOK() *SendTransactionOK
NewSendTransactionOK creates a SendTransactionOK with default headers values
func (*SendTransactionOK) Error ¶
func (o *SendTransactionOK) Error() string
func (*SendTransactionOK) GetPayload ¶
func (o *SendTransactionOK) GetPayload() *models.SendTransactionResponse
type SendTransactionParams ¶
type SendTransactionParams struct { // Tx. Tx string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SendTransactionParams contains all the parameters to send to the API endpoint
for the send transaction operation. Typically these are written to a http.Request.
func NewSendTransactionParams ¶
func NewSendTransactionParams() *SendTransactionParams
NewSendTransactionParams creates a new SendTransactionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSendTransactionParamsWithContext ¶
func NewSendTransactionParamsWithContext(ctx context.Context) *SendTransactionParams
NewSendTransactionParamsWithContext creates a new SendTransactionParams object with the ability to set a context for a request.
func NewSendTransactionParamsWithHTTPClient ¶
func NewSendTransactionParamsWithHTTPClient(client *http.Client) *SendTransactionParams
NewSendTransactionParamsWithHTTPClient creates a new SendTransactionParams object with the ability to set a custom HTTPClient for a request.
func NewSendTransactionParamsWithTimeout ¶
func NewSendTransactionParamsWithTimeout(timeout time.Duration) *SendTransactionParams
NewSendTransactionParamsWithTimeout creates a new SendTransactionParams object with the ability to set a timeout on a request.
func (*SendTransactionParams) SetContext ¶
func (o *SendTransactionParams) SetContext(ctx context.Context)
SetContext adds the context to the send transaction params
func (*SendTransactionParams) SetDefaults ¶ added in v2.4.0
func (o *SendTransactionParams) SetDefaults()
SetDefaults hydrates default values in the send transaction params (not the query body).
All values with no default are reset to their zero value.
func (*SendTransactionParams) SetHTTPClient ¶
func (o *SendTransactionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the send transaction params
func (*SendTransactionParams) SetTimeout ¶
func (o *SendTransactionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the send transaction params
func (*SendTransactionParams) SetTx ¶
func (o *SendTransactionParams) SetTx(tx string)
SetTx adds the tx to the send transaction params
func (*SendTransactionParams) WithContext ¶
func (o *SendTransactionParams) WithContext(ctx context.Context) *SendTransactionParams
WithContext adds the context to the send transaction params
func (*SendTransactionParams) WithDefaults ¶ added in v2.4.0
func (o *SendTransactionParams) WithDefaults() *SendTransactionParams
WithDefaults hydrates default values in the send transaction params (not the query body).
All values with no default are reset to their zero value.
func (*SendTransactionParams) WithHTTPClient ¶
func (o *SendTransactionParams) WithHTTPClient(client *http.Client) *SendTransactionParams
WithHTTPClient adds the HTTPClient to the send transaction params
func (*SendTransactionParams) WithTimeout ¶
func (o *SendTransactionParams) WithTimeout(timeout time.Duration) *SendTransactionParams
WithTimeout adds the timeout to the send transaction params
func (*SendTransactionParams) WithTx ¶
func (o *SendTransactionParams) WithTx(tx string) *SendTransactionParams
WithTx adds the tx to the send transaction params
func (*SendTransactionParams) WriteToRequest ¶
func (o *SendTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SendTransactionReader ¶
type SendTransactionReader struct {
// contains filtered or unexported fields
}
SendTransactionReader is a Reader for the SendTransaction structure.
func (*SendTransactionReader) ReadResponse ¶
func (o *SendTransactionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type StatusDefault ¶
StatusDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewStatusDefault ¶
func NewStatusDefault(code int) *StatusDefault
NewStatusDefault creates a StatusDefault with default headers values
func (*StatusDefault) Code ¶
func (o *StatusDefault) Code() int
Code gets the status code for the status default response
func (*StatusDefault) Error ¶
func (o *StatusDefault) Error() string
func (*StatusDefault) GetPayload ¶
func (o *StatusDefault) GetPayload() *models.ErrorBody
type StatusOK ¶
type StatusOK struct {
Payload *models.StatusResponse
}
StatusOK describes a response with status code 200, with default header values.
A successful response.
func NewStatusOK ¶
func NewStatusOK() *StatusOK
NewStatusOK creates a StatusOK with default headers values
func (*StatusOK) GetPayload ¶
func (o *StatusOK) GetPayload() *models.StatusResponse
type StatusParams ¶
type StatusParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
StatusParams contains all the parameters to send to the API endpoint
for the status operation. Typically these are written to a http.Request.
func NewStatusParams ¶
func NewStatusParams() *StatusParams
NewStatusParams creates a new StatusParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewStatusParamsWithContext ¶
func NewStatusParamsWithContext(ctx context.Context) *StatusParams
NewStatusParamsWithContext creates a new StatusParams object with the ability to set a context for a request.
func NewStatusParamsWithHTTPClient ¶
func NewStatusParamsWithHTTPClient(client *http.Client) *StatusParams
NewStatusParamsWithHTTPClient creates a new StatusParams object with the ability to set a custom HTTPClient for a request.
func NewStatusParamsWithTimeout ¶
func NewStatusParamsWithTimeout(timeout time.Duration) *StatusParams
NewStatusParamsWithTimeout creates a new StatusParams object with the ability to set a timeout on a request.
func (*StatusParams) SetContext ¶
func (o *StatusParams) SetContext(ctx context.Context)
SetContext adds the context to the status params
func (*StatusParams) SetDefaults ¶ added in v2.4.0
func (o *StatusParams) SetDefaults()
SetDefaults hydrates default values in the status params (not the query body).
All values with no default are reset to their zero value.
func (*StatusParams) SetHTTPClient ¶
func (o *StatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the status params
func (*StatusParams) SetTimeout ¶
func (o *StatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the status params
func (*StatusParams) WithContext ¶
func (o *StatusParams) WithContext(ctx context.Context) *StatusParams
WithContext adds the context to the status params
func (*StatusParams) WithDefaults ¶ added in v2.4.0
func (o *StatusParams) WithDefaults() *StatusParams
WithDefaults hydrates default values in the status params (not the query body).
All values with no default are reset to their zero value.
func (*StatusParams) WithHTTPClient ¶
func (o *StatusParams) WithHTTPClient(client *http.Client) *StatusParams
WithHTTPClient adds the HTTPClient to the status params
func (*StatusParams) WithTimeout ¶
func (o *StatusParams) WithTimeout(timeout time.Duration) *StatusParams
WithTimeout adds the timeout to the status params
func (*StatusParams) WriteToRequest ¶
func (o *StatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type StatusReader ¶
type StatusReader struct {
// contains filtered or unexported fields
}
StatusReader is a Reader for the Status structure.
func (*StatusReader) ReadResponse ¶
func (o *StatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SubscribeDefault ¶
type SubscribeDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
SubscribeDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewSubscribeDefault ¶
func NewSubscribeDefault(code int) *SubscribeDefault
NewSubscribeDefault creates a SubscribeDefault with default headers values
func (*SubscribeDefault) Code ¶
func (o *SubscribeDefault) Code() int
Code gets the status code for the subscribe default response
func (*SubscribeDefault) Error ¶
func (o *SubscribeDefault) Error() string
func (*SubscribeDefault) GetPayload ¶
func (o *SubscribeDefault) GetPayload() *models.ErrorBody
type SubscribeOK ¶
type SubscribeOK struct {
Payload *SubscribeOKBody
}
SubscribeOK describes a response with status code 200, with default header values.
A successful response.(streaming responses)
func NewSubscribeOK ¶
func NewSubscribeOK() *SubscribeOK
NewSubscribeOK creates a SubscribeOK with default headers values
func (*SubscribeOK) Error ¶
func (o *SubscribeOK) Error() string
func (*SubscribeOK) GetPayload ¶
func (o *SubscribeOK) GetPayload() *SubscribeOKBody
type SubscribeOKBody ¶
type SubscribeOKBody struct { // error Error interface{} `json:"error,omitempty"` // result Result *models.SubscribeResponse `json:"result,omitempty"` }
SubscribeOKBody Stream result of SubscribeResponse swagger:model SubscribeOKBody
func (*SubscribeOKBody) ContextValidate ¶ added in v2.4.0
ContextValidate validate this subscribe o k body based on the context it is used
func (*SubscribeOKBody) MarshalBinary ¶
func (o *SubscribeOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SubscribeOKBody) UnmarshalBinary ¶
func (o *SubscribeOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SubscribeParams ¶
type SubscribeParams struct { /* Query. tm.event = 'NewBlock' or tm.event = 'Tx' */ Query string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SubscribeParams contains all the parameters to send to the API endpoint
for the subscribe operation. Typically these are written to a http.Request.
func NewSubscribeParams ¶
func NewSubscribeParams() *SubscribeParams
NewSubscribeParams creates a new SubscribeParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSubscribeParamsWithContext ¶
func NewSubscribeParamsWithContext(ctx context.Context) *SubscribeParams
NewSubscribeParamsWithContext creates a new SubscribeParams object with the ability to set a context for a request.
func NewSubscribeParamsWithHTTPClient ¶
func NewSubscribeParamsWithHTTPClient(client *http.Client) *SubscribeParams
NewSubscribeParamsWithHTTPClient creates a new SubscribeParams object with the ability to set a custom HTTPClient for a request.
func NewSubscribeParamsWithTimeout ¶
func NewSubscribeParamsWithTimeout(timeout time.Duration) *SubscribeParams
NewSubscribeParamsWithTimeout creates a new SubscribeParams object with the ability to set a timeout on a request.
func (*SubscribeParams) SetContext ¶
func (o *SubscribeParams) SetContext(ctx context.Context)
SetContext adds the context to the subscribe params
func (*SubscribeParams) SetDefaults ¶ added in v2.4.0
func (o *SubscribeParams) SetDefaults()
SetDefaults hydrates default values in the subscribe params (not the query body).
All values with no default are reset to their zero value.
func (*SubscribeParams) SetHTTPClient ¶
func (o *SubscribeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the subscribe params
func (*SubscribeParams) SetQuery ¶
func (o *SubscribeParams) SetQuery(query string)
SetQuery adds the query to the subscribe params
func (*SubscribeParams) SetTimeout ¶
func (o *SubscribeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the subscribe params
func (*SubscribeParams) WithContext ¶
func (o *SubscribeParams) WithContext(ctx context.Context) *SubscribeParams
WithContext adds the context to the subscribe params
func (*SubscribeParams) WithDefaults ¶ added in v2.4.0
func (o *SubscribeParams) WithDefaults() *SubscribeParams
WithDefaults hydrates default values in the subscribe params (not the query body).
All values with no default are reset to their zero value.
func (*SubscribeParams) WithHTTPClient ¶
func (o *SubscribeParams) WithHTTPClient(client *http.Client) *SubscribeParams
WithHTTPClient adds the HTTPClient to the subscribe params
func (*SubscribeParams) WithQuery ¶
func (o *SubscribeParams) WithQuery(query string) *SubscribeParams
WithQuery adds the query to the subscribe params
func (*SubscribeParams) WithTimeout ¶
func (o *SubscribeParams) WithTimeout(timeout time.Duration) *SubscribeParams
WithTimeout adds the timeout to the subscribe params
func (*SubscribeParams) WriteToRequest ¶
func (o *SubscribeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SubscribeReader ¶
type SubscribeReader struct {
// contains filtered or unexported fields
}
SubscribeReader is a Reader for the Subscribe structure.
func (*SubscribeReader) ReadResponse ¶
func (o *SubscribeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SwapPoolDefault ¶ added in v2.2.0
SwapPoolDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewSwapPoolDefault ¶ added in v2.2.0
func NewSwapPoolDefault(code int) *SwapPoolDefault
NewSwapPoolDefault creates a SwapPoolDefault with default headers values
func (*SwapPoolDefault) Code ¶ added in v2.2.0
func (o *SwapPoolDefault) Code() int
Code gets the status code for the swap pool default response
func (*SwapPoolDefault) Error ¶ added in v2.2.0
func (o *SwapPoolDefault) Error() string
func (*SwapPoolDefault) GetPayload ¶ added in v2.2.0
func (o *SwapPoolDefault) GetPayload() *models.ErrorBody
type SwapPoolOK ¶ added in v2.2.0
type SwapPoolOK struct {
Payload *models.SwapPoolResponse
}
SwapPoolOK describes a response with status code 200, with default header values.
A successful response.
func NewSwapPoolOK ¶ added in v2.2.0
func NewSwapPoolOK() *SwapPoolOK
NewSwapPoolOK creates a SwapPoolOK with default headers values
func (*SwapPoolOK) Error ¶ added in v2.2.0
func (o *SwapPoolOK) Error() string
func (*SwapPoolOK) GetPayload ¶ added in v2.2.0
func (o *SwapPoolOK) GetPayload() *models.SwapPoolResponse
type SwapPoolParams ¶ added in v2.2.0
type SwapPoolParams struct { // Coin0. // // Format: uint64 Coin0 string // Coin1. // // Format: uint64 Coin1 string // Height. // // Format: uint64 Height *uint64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SwapPoolParams contains all the parameters to send to the API endpoint
for the swap pool operation. Typically these are written to a http.Request.
func NewSwapPoolParams ¶ added in v2.2.0
func NewSwapPoolParams() *SwapPoolParams
NewSwapPoolParams creates a new SwapPoolParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSwapPoolParamsWithContext ¶ added in v2.2.0
func NewSwapPoolParamsWithContext(ctx context.Context) *SwapPoolParams
NewSwapPoolParamsWithContext creates a new SwapPoolParams object with the ability to set a context for a request.
func NewSwapPoolParamsWithHTTPClient ¶ added in v2.2.0
func NewSwapPoolParamsWithHTTPClient(client *http.Client) *SwapPoolParams
NewSwapPoolParamsWithHTTPClient creates a new SwapPoolParams object with the ability to set a custom HTTPClient for a request.
func NewSwapPoolParamsWithTimeout ¶ added in v2.2.0
func NewSwapPoolParamsWithTimeout(timeout time.Duration) *SwapPoolParams
NewSwapPoolParamsWithTimeout creates a new SwapPoolParams object with the ability to set a timeout on a request.
func (*SwapPoolParams) SetCoin0 ¶ added in v2.2.0
func (o *SwapPoolParams) SetCoin0(coin0 string)
SetCoin0 adds the coin0 to the swap pool params
func (*SwapPoolParams) SetCoin1 ¶ added in v2.2.0
func (o *SwapPoolParams) SetCoin1(coin1 string)
SetCoin1 adds the coin1 to the swap pool params
func (*SwapPoolParams) SetContext ¶ added in v2.2.0
func (o *SwapPoolParams) SetContext(ctx context.Context)
SetContext adds the context to the swap pool params
func (*SwapPoolParams) SetDefaults ¶ added in v2.4.0
func (o *SwapPoolParams) SetDefaults()
SetDefaults hydrates default values in the swap pool params (not the query body).
All values with no default are reset to their zero value.
func (*SwapPoolParams) SetHTTPClient ¶ added in v2.2.0
func (o *SwapPoolParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the swap pool params
func (*SwapPoolParams) SetHeight ¶ added in v2.2.0
func (o *SwapPoolParams) SetHeight(height *uint64)
SetHeight adds the height to the swap pool params
func (*SwapPoolParams) SetTimeout ¶ added in v2.2.0
func (o *SwapPoolParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the swap pool params
func (*SwapPoolParams) WithCoin0 ¶ added in v2.2.0
func (o *SwapPoolParams) WithCoin0(coin0 string) *SwapPoolParams
WithCoin0 adds the coin0 to the swap pool params
func (*SwapPoolParams) WithCoin1 ¶ added in v2.2.0
func (o *SwapPoolParams) WithCoin1(coin1 string) *SwapPoolParams
WithCoin1 adds the coin1 to the swap pool params
func (*SwapPoolParams) WithContext ¶ added in v2.2.0
func (o *SwapPoolParams) WithContext(ctx context.Context) *SwapPoolParams
WithContext adds the context to the swap pool params
func (*SwapPoolParams) WithDefaults ¶ added in v2.4.0
func (o *SwapPoolParams) WithDefaults() *SwapPoolParams
WithDefaults hydrates default values in the swap pool params (not the query body).
All values with no default are reset to their zero value.
func (*SwapPoolParams) WithHTTPClient ¶ added in v2.2.0
func (o *SwapPoolParams) WithHTTPClient(client *http.Client) *SwapPoolParams
WithHTTPClient adds the HTTPClient to the swap pool params
func (*SwapPoolParams) WithHeight ¶ added in v2.2.0
func (o *SwapPoolParams) WithHeight(height *uint64) *SwapPoolParams
WithHeight adds the height to the swap pool params
func (*SwapPoolParams) WithTimeout ¶ added in v2.2.0
func (o *SwapPoolParams) WithTimeout(timeout time.Duration) *SwapPoolParams
WithTimeout adds the timeout to the swap pool params
func (*SwapPoolParams) WriteToRequest ¶ added in v2.2.0
func (o *SwapPoolParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SwapPoolProviderDefault ¶ added in v2.2.0
type SwapPoolProviderDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
SwapPoolProviderDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewSwapPoolProviderDefault ¶ added in v2.2.0
func NewSwapPoolProviderDefault(code int) *SwapPoolProviderDefault
NewSwapPoolProviderDefault creates a SwapPoolProviderDefault with default headers values
func (*SwapPoolProviderDefault) Code ¶ added in v2.2.0
func (o *SwapPoolProviderDefault) Code() int
Code gets the status code for the swap pool provider default response
func (*SwapPoolProviderDefault) Error ¶ added in v2.2.0
func (o *SwapPoolProviderDefault) Error() string
func (*SwapPoolProviderDefault) GetPayload ¶ added in v2.2.0
func (o *SwapPoolProviderDefault) GetPayload() *models.ErrorBody
type SwapPoolProviderOK ¶ added in v2.2.0
type SwapPoolProviderOK struct {
Payload *models.SwapPoolResponse
}
SwapPoolProviderOK describes a response with status code 200, with default header values.
A successful response.
func NewSwapPoolProviderOK ¶ added in v2.2.0
func NewSwapPoolProviderOK() *SwapPoolProviderOK
NewSwapPoolProviderOK creates a SwapPoolProviderOK with default headers values
func (*SwapPoolProviderOK) Error ¶ added in v2.2.0
func (o *SwapPoolProviderOK) Error() string
func (*SwapPoolProviderOK) GetPayload ¶ added in v2.2.0
func (o *SwapPoolProviderOK) GetPayload() *models.SwapPoolResponse
type SwapPoolProviderParams ¶ added in v2.2.0
type SwapPoolProviderParams struct { // Coin0. // // Format: uint64 Coin0 string // Coin1. // // Format: uint64 Coin1 string // Height. // // Format: uint64 Height *uint64 // Provider. Provider string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SwapPoolProviderParams contains all the parameters to send to the API endpoint
for the swap pool provider operation. Typically these are written to a http.Request.
func NewSwapPoolProviderParams ¶ added in v2.2.0
func NewSwapPoolProviderParams() *SwapPoolProviderParams
NewSwapPoolProviderParams creates a new SwapPoolProviderParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSwapPoolProviderParamsWithContext ¶ added in v2.2.0
func NewSwapPoolProviderParamsWithContext(ctx context.Context) *SwapPoolProviderParams
NewSwapPoolProviderParamsWithContext creates a new SwapPoolProviderParams object with the ability to set a context for a request.
func NewSwapPoolProviderParamsWithHTTPClient ¶ added in v2.2.0
func NewSwapPoolProviderParamsWithHTTPClient(client *http.Client) *SwapPoolProviderParams
NewSwapPoolProviderParamsWithHTTPClient creates a new SwapPoolProviderParams object with the ability to set a custom HTTPClient for a request.
func NewSwapPoolProviderParamsWithTimeout ¶ added in v2.2.0
func NewSwapPoolProviderParamsWithTimeout(timeout time.Duration) *SwapPoolProviderParams
NewSwapPoolProviderParamsWithTimeout creates a new SwapPoolProviderParams object with the ability to set a timeout on a request.
func (*SwapPoolProviderParams) SetCoin0 ¶ added in v2.2.0
func (o *SwapPoolProviderParams) SetCoin0(coin0 string)
SetCoin0 adds the coin0 to the swap pool provider params
func (*SwapPoolProviderParams) SetCoin1 ¶ added in v2.2.0
func (o *SwapPoolProviderParams) SetCoin1(coin1 string)
SetCoin1 adds the coin1 to the swap pool provider params
func (*SwapPoolProviderParams) SetContext ¶ added in v2.2.0
func (o *SwapPoolProviderParams) SetContext(ctx context.Context)
SetContext adds the context to the swap pool provider params
func (*SwapPoolProviderParams) SetDefaults ¶ added in v2.4.0
func (o *SwapPoolProviderParams) SetDefaults()
SetDefaults hydrates default values in the swap pool provider params (not the query body).
All values with no default are reset to their zero value.
func (*SwapPoolProviderParams) SetHTTPClient ¶ added in v2.2.0
func (o *SwapPoolProviderParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the swap pool provider params
func (*SwapPoolProviderParams) SetHeight ¶ added in v2.2.0
func (o *SwapPoolProviderParams) SetHeight(height *uint64)
SetHeight adds the height to the swap pool provider params
func (*SwapPoolProviderParams) SetProvider ¶ added in v2.2.0
func (o *SwapPoolProviderParams) SetProvider(provider string)
SetProvider adds the provider to the swap pool provider params
func (*SwapPoolProviderParams) SetTimeout ¶ added in v2.2.0
func (o *SwapPoolProviderParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the swap pool provider params
func (*SwapPoolProviderParams) WithCoin0 ¶ added in v2.2.0
func (o *SwapPoolProviderParams) WithCoin0(coin0 string) *SwapPoolProviderParams
WithCoin0 adds the coin0 to the swap pool provider params
func (*SwapPoolProviderParams) WithCoin1 ¶ added in v2.2.0
func (o *SwapPoolProviderParams) WithCoin1(coin1 string) *SwapPoolProviderParams
WithCoin1 adds the coin1 to the swap pool provider params
func (*SwapPoolProviderParams) WithContext ¶ added in v2.2.0
func (o *SwapPoolProviderParams) WithContext(ctx context.Context) *SwapPoolProviderParams
WithContext adds the context to the swap pool provider params
func (*SwapPoolProviderParams) WithDefaults ¶ added in v2.4.0
func (o *SwapPoolProviderParams) WithDefaults() *SwapPoolProviderParams
WithDefaults hydrates default values in the swap pool provider params (not the query body).
All values with no default are reset to their zero value.
func (*SwapPoolProviderParams) WithHTTPClient ¶ added in v2.2.0
func (o *SwapPoolProviderParams) WithHTTPClient(client *http.Client) *SwapPoolProviderParams
WithHTTPClient adds the HTTPClient to the swap pool provider params
func (*SwapPoolProviderParams) WithHeight ¶ added in v2.2.0
func (o *SwapPoolProviderParams) WithHeight(height *uint64) *SwapPoolProviderParams
WithHeight adds the height to the swap pool provider params
func (*SwapPoolProviderParams) WithProvider ¶ added in v2.2.0
func (o *SwapPoolProviderParams) WithProvider(provider string) *SwapPoolProviderParams
WithProvider adds the provider to the swap pool provider params
func (*SwapPoolProviderParams) WithTimeout ¶ added in v2.2.0
func (o *SwapPoolProviderParams) WithTimeout(timeout time.Duration) *SwapPoolProviderParams
WithTimeout adds the timeout to the swap pool provider params
func (*SwapPoolProviderParams) WriteToRequest ¶ added in v2.2.0
func (o *SwapPoolProviderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SwapPoolProviderReader ¶ added in v2.2.0
type SwapPoolProviderReader struct {
// contains filtered or unexported fields
}
SwapPoolProviderReader is a Reader for the SwapPoolProvider structure.
func (*SwapPoolProviderReader) ReadResponse ¶ added in v2.2.0
func (o *SwapPoolProviderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SwapPoolReader ¶ added in v2.2.0
type SwapPoolReader struct {
// contains filtered or unexported fields
}
SwapPoolReader is a Reader for the SwapPool structure.
func (*SwapPoolReader) ReadResponse ¶ added in v2.2.0
func (o *SwapPoolReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SwapPoolsDefault ¶ added in v2.5.0
type SwapPoolsDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
SwapPoolsDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewSwapPoolsDefault ¶ added in v2.5.0
func NewSwapPoolsDefault(code int) *SwapPoolsDefault
NewSwapPoolsDefault creates a SwapPoolsDefault with default headers values
func (*SwapPoolsDefault) Code ¶ added in v2.5.0
func (o *SwapPoolsDefault) Code() int
Code gets the status code for the swap pools default response
func (*SwapPoolsDefault) Error ¶ added in v2.5.0
func (o *SwapPoolsDefault) Error() string
func (*SwapPoolsDefault) GetPayload ¶ added in v2.5.0
func (o *SwapPoolsDefault) GetPayload() *models.ErrorBody
type SwapPoolsOK ¶ added in v2.5.0
type SwapPoolsOK struct {
Payload *models.SwapPoolsResponse
}
SwapPoolsOK describes a response with status code 200, with default header values.
A successful response.
func NewSwapPoolsOK ¶ added in v2.5.0
func NewSwapPoolsOK() *SwapPoolsOK
NewSwapPoolsOK creates a SwapPoolsOK with default headers values
func (*SwapPoolsOK) Error ¶ added in v2.5.0
func (o *SwapPoolsOK) Error() string
func (*SwapPoolsOK) GetPayload ¶ added in v2.5.0
func (o *SwapPoolsOK) GetPayload() *models.SwapPoolsResponse
type SwapPoolsParams ¶ added in v2.5.0
type SwapPoolsParams struct { // Height. // // Format: uint64 Height *uint64 // Orders. Orders *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SwapPoolsParams contains all the parameters to send to the API endpoint
for the swap pools operation. Typically these are written to a http.Request.
func NewSwapPoolsParams ¶ added in v2.5.0
func NewSwapPoolsParams() *SwapPoolsParams
NewSwapPoolsParams creates a new SwapPoolsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSwapPoolsParamsWithContext ¶ added in v2.5.0
func NewSwapPoolsParamsWithContext(ctx context.Context) *SwapPoolsParams
NewSwapPoolsParamsWithContext creates a new SwapPoolsParams object with the ability to set a context for a request.
func NewSwapPoolsParamsWithHTTPClient ¶ added in v2.5.0
func NewSwapPoolsParamsWithHTTPClient(client *http.Client) *SwapPoolsParams
NewSwapPoolsParamsWithHTTPClient creates a new SwapPoolsParams object with the ability to set a custom HTTPClient for a request.
func NewSwapPoolsParamsWithTimeout ¶ added in v2.5.0
func NewSwapPoolsParamsWithTimeout(timeout time.Duration) *SwapPoolsParams
NewSwapPoolsParamsWithTimeout creates a new SwapPoolsParams object with the ability to set a timeout on a request.
func (*SwapPoolsParams) SetContext ¶ added in v2.5.0
func (o *SwapPoolsParams) SetContext(ctx context.Context)
SetContext adds the context to the swap pools params
func (*SwapPoolsParams) SetDefaults ¶ added in v2.5.0
func (o *SwapPoolsParams) SetDefaults()
SetDefaults hydrates default values in the swap pools params (not the query body).
All values with no default are reset to their zero value.
func (*SwapPoolsParams) SetHTTPClient ¶ added in v2.5.0
func (o *SwapPoolsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the swap pools params
func (*SwapPoolsParams) SetHeight ¶ added in v2.5.0
func (o *SwapPoolsParams) SetHeight(height *uint64)
SetHeight adds the height to the swap pools params
func (*SwapPoolsParams) SetOrders ¶ added in v2.5.0
func (o *SwapPoolsParams) SetOrders(orders *bool)
SetOrders adds the orders to the swap pools params
func (*SwapPoolsParams) SetTimeout ¶ added in v2.5.0
func (o *SwapPoolsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the swap pools params
func (*SwapPoolsParams) WithContext ¶ added in v2.5.0
func (o *SwapPoolsParams) WithContext(ctx context.Context) *SwapPoolsParams
WithContext adds the context to the swap pools params
func (*SwapPoolsParams) WithDefaults ¶ added in v2.5.0
func (o *SwapPoolsParams) WithDefaults() *SwapPoolsParams
WithDefaults hydrates default values in the swap pools params (not the query body).
All values with no default are reset to their zero value.
func (*SwapPoolsParams) WithHTTPClient ¶ added in v2.5.0
func (o *SwapPoolsParams) WithHTTPClient(client *http.Client) *SwapPoolsParams
WithHTTPClient adds the HTTPClient to the swap pools params
func (*SwapPoolsParams) WithHeight ¶ added in v2.5.0
func (o *SwapPoolsParams) WithHeight(height *uint64) *SwapPoolsParams
WithHeight adds the height to the swap pools params
func (*SwapPoolsParams) WithOrders ¶ added in v2.5.0
func (o *SwapPoolsParams) WithOrders(orders *bool) *SwapPoolsParams
WithOrders adds the orders to the swap pools params
func (*SwapPoolsParams) WithTimeout ¶ added in v2.5.0
func (o *SwapPoolsParams) WithTimeout(timeout time.Duration) *SwapPoolsParams
WithTimeout adds the timeout to the swap pools params
func (*SwapPoolsParams) WriteToRequest ¶ added in v2.5.0
func (o *SwapPoolsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SwapPoolsReader ¶ added in v2.5.0
type SwapPoolsReader struct {
// contains filtered or unexported fields
}
SwapPoolsReader is a Reader for the SwapPools structure.
func (*SwapPoolsReader) ReadResponse ¶ added in v2.5.0
func (o *SwapPoolsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TestBlockDefault ¶ added in v2.1.0
type TestBlockDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
TestBlockDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewTestBlockDefault ¶ added in v2.1.0
func NewTestBlockDefault(code int) *TestBlockDefault
NewTestBlockDefault creates a TestBlockDefault with default headers values
func (*TestBlockDefault) Code ¶ added in v2.1.0
func (o *TestBlockDefault) Code() int
Code gets the status code for the test block default response
func (*TestBlockDefault) Error ¶ added in v2.1.0
func (o *TestBlockDefault) Error() string
func (*TestBlockDefault) GetPayload ¶ added in v2.1.0
func (o *TestBlockDefault) GetPayload() *models.ErrorBody
type TestBlockOK ¶ added in v2.1.0
type TestBlockOK struct {
Payload *models.BlockResponse
}
TestBlockOK describes a response with status code 200, with default header values.
A successful response.
func NewTestBlockOK ¶ added in v2.1.0
func NewTestBlockOK() *TestBlockOK
NewTestBlockOK creates a TestBlockOK with default headers values
func (*TestBlockOK) Error ¶ added in v2.1.0
func (o *TestBlockOK) Error() string
func (*TestBlockOK) GetPayload ¶ added in v2.1.0
func (o *TestBlockOK) GetPayload() *models.BlockResponse
type TestBlockParams ¶ added in v2.1.0
type TestBlockParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TestBlockParams contains all the parameters to send to the API endpoint
for the test block operation. Typically these are written to a http.Request.
func NewTestBlockParams ¶ added in v2.1.0
func NewTestBlockParams() *TestBlockParams
NewTestBlockParams creates a new TestBlockParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTestBlockParamsWithContext ¶ added in v2.1.0
func NewTestBlockParamsWithContext(ctx context.Context) *TestBlockParams
NewTestBlockParamsWithContext creates a new TestBlockParams object with the ability to set a context for a request.
func NewTestBlockParamsWithHTTPClient ¶ added in v2.1.0
func NewTestBlockParamsWithHTTPClient(client *http.Client) *TestBlockParams
NewTestBlockParamsWithHTTPClient creates a new TestBlockParams object with the ability to set a custom HTTPClient for a request.
func NewTestBlockParamsWithTimeout ¶ added in v2.1.0
func NewTestBlockParamsWithTimeout(timeout time.Duration) *TestBlockParams
NewTestBlockParamsWithTimeout creates a new TestBlockParams object with the ability to set a timeout on a request.
func (*TestBlockParams) SetContext ¶ added in v2.1.0
func (o *TestBlockParams) SetContext(ctx context.Context)
SetContext adds the context to the test block params
func (*TestBlockParams) SetDefaults ¶ added in v2.4.0
func (o *TestBlockParams) SetDefaults()
SetDefaults hydrates default values in the test block params (not the query body).
All values with no default are reset to their zero value.
func (*TestBlockParams) SetHTTPClient ¶ added in v2.1.0
func (o *TestBlockParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the test block params
func (*TestBlockParams) SetTimeout ¶ added in v2.1.0
func (o *TestBlockParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the test block params
func (*TestBlockParams) WithContext ¶ added in v2.1.0
func (o *TestBlockParams) WithContext(ctx context.Context) *TestBlockParams
WithContext adds the context to the test block params
func (*TestBlockParams) WithDefaults ¶ added in v2.4.0
func (o *TestBlockParams) WithDefaults() *TestBlockParams
WithDefaults hydrates default values in the test block params (not the query body).
All values with no default are reset to their zero value.
func (*TestBlockParams) WithHTTPClient ¶ added in v2.1.0
func (o *TestBlockParams) WithHTTPClient(client *http.Client) *TestBlockParams
WithHTTPClient adds the HTTPClient to the test block params
func (*TestBlockParams) WithTimeout ¶ added in v2.1.0
func (o *TestBlockParams) WithTimeout(timeout time.Duration) *TestBlockParams
WithTimeout adds the timeout to the test block params
func (*TestBlockParams) WriteToRequest ¶ added in v2.1.0
func (o *TestBlockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TestBlockReader ¶ added in v2.1.0
type TestBlockReader struct {
// contains filtered or unexported fields
}
TestBlockReader is a Reader for the TestBlock structure.
func (*TestBlockReader) ReadResponse ¶ added in v2.1.0
func (o *TestBlockReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TransactionDefault ¶
type TransactionDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
TransactionDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewTransactionDefault ¶
func NewTransactionDefault(code int) *TransactionDefault
NewTransactionDefault creates a TransactionDefault with default headers values
func (*TransactionDefault) Code ¶
func (o *TransactionDefault) Code() int
Code gets the status code for the transaction default response
func (*TransactionDefault) Error ¶
func (o *TransactionDefault) Error() string
func (*TransactionDefault) GetPayload ¶
func (o *TransactionDefault) GetPayload() *models.ErrorBody
type TransactionOK ¶
type TransactionOK struct {
Payload *models.TransactionResponse
}
TransactionOK describes a response with status code 200, with default header values.
A successful response.
func NewTransactionOK ¶
func NewTransactionOK() *TransactionOK
NewTransactionOK creates a TransactionOK with default headers values
func (*TransactionOK) Error ¶
func (o *TransactionOK) Error() string
func (*TransactionOK) GetPayload ¶
func (o *TransactionOK) GetPayload() *models.TransactionResponse
type TransactionParams ¶
type TransactionParams struct { // Hash. Hash string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TransactionParams contains all the parameters to send to the API endpoint
for the transaction operation. Typically these are written to a http.Request.
func NewTransactionParams ¶
func NewTransactionParams() *TransactionParams
NewTransactionParams creates a new TransactionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTransactionParamsWithContext ¶
func NewTransactionParamsWithContext(ctx context.Context) *TransactionParams
NewTransactionParamsWithContext creates a new TransactionParams object with the ability to set a context for a request.
func NewTransactionParamsWithHTTPClient ¶
func NewTransactionParamsWithHTTPClient(client *http.Client) *TransactionParams
NewTransactionParamsWithHTTPClient creates a new TransactionParams object with the ability to set a custom HTTPClient for a request.
func NewTransactionParamsWithTimeout ¶
func NewTransactionParamsWithTimeout(timeout time.Duration) *TransactionParams
NewTransactionParamsWithTimeout creates a new TransactionParams object with the ability to set a timeout on a request.
func (*TransactionParams) SetContext ¶
func (o *TransactionParams) SetContext(ctx context.Context)
SetContext adds the context to the transaction params
func (*TransactionParams) SetDefaults ¶ added in v2.4.0
func (o *TransactionParams) SetDefaults()
SetDefaults hydrates default values in the transaction params (not the query body).
All values with no default are reset to their zero value.
func (*TransactionParams) SetHTTPClient ¶
func (o *TransactionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the transaction params
func (*TransactionParams) SetHash ¶
func (o *TransactionParams) SetHash(hash string)
SetHash adds the hash to the transaction params
func (*TransactionParams) SetTimeout ¶
func (o *TransactionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the transaction params
func (*TransactionParams) WithContext ¶
func (o *TransactionParams) WithContext(ctx context.Context) *TransactionParams
WithContext adds the context to the transaction params
func (*TransactionParams) WithDefaults ¶ added in v2.4.0
func (o *TransactionParams) WithDefaults() *TransactionParams
WithDefaults hydrates default values in the transaction params (not the query body).
All values with no default are reset to their zero value.
func (*TransactionParams) WithHTTPClient ¶
func (o *TransactionParams) WithHTTPClient(client *http.Client) *TransactionParams
WithHTTPClient adds the HTTPClient to the transaction params
func (*TransactionParams) WithHash ¶
func (o *TransactionParams) WithHash(hash string) *TransactionParams
WithHash adds the hash to the transaction params
func (*TransactionParams) WithTimeout ¶
func (o *TransactionParams) WithTimeout(timeout time.Duration) *TransactionParams
WithTimeout adds the timeout to the transaction params
func (*TransactionParams) WriteToRequest ¶
func (o *TransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TransactionReader ¶
type TransactionReader struct {
// contains filtered or unexported fields
}
TransactionReader is a Reader for the Transaction structure.
func (*TransactionReader) ReadResponse ¶
func (o *TransactionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TransactionsDefault ¶
type TransactionsDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
TransactionsDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewTransactionsDefault ¶
func NewTransactionsDefault(code int) *TransactionsDefault
NewTransactionsDefault creates a TransactionsDefault with default headers values
func (*TransactionsDefault) Code ¶
func (o *TransactionsDefault) Code() int
Code gets the status code for the transactions default response
func (*TransactionsDefault) Error ¶
func (o *TransactionsDefault) Error() string
func (*TransactionsDefault) GetPayload ¶
func (o *TransactionsDefault) GetPayload() *models.ErrorBody
type TransactionsOK ¶
type TransactionsOK struct {
Payload *models.TransactionsResponse
}
TransactionsOK describes a response with status code 200, with default header values.
A successful response.
func NewTransactionsOK ¶
func NewTransactionsOK() *TransactionsOK
NewTransactionsOK creates a TransactionsOK with default headers values
func (*TransactionsOK) Error ¶
func (o *TransactionsOK) Error() string
func (*TransactionsOK) GetPayload ¶
func (o *TransactionsOK) GetPayload() *models.TransactionsResponse
type TransactionsParams ¶
type TransactionsParams struct { // Page. // // Format: int32 // Default: 1 Page *int32 // PerPage. // // Format: int32 // Default: 30 PerPage *int32 // Query. Query string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TransactionsParams contains all the parameters to send to the API endpoint
for the transactions operation. Typically these are written to a http.Request.
func NewTransactionsParams ¶
func NewTransactionsParams() *TransactionsParams
NewTransactionsParams creates a new TransactionsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTransactionsParamsWithContext ¶
func NewTransactionsParamsWithContext(ctx context.Context) *TransactionsParams
NewTransactionsParamsWithContext creates a new TransactionsParams object with the ability to set a context for a request.
func NewTransactionsParamsWithHTTPClient ¶
func NewTransactionsParamsWithHTTPClient(client *http.Client) *TransactionsParams
NewTransactionsParamsWithHTTPClient creates a new TransactionsParams object with the ability to set a custom HTTPClient for a request.
func NewTransactionsParamsWithTimeout ¶
func NewTransactionsParamsWithTimeout(timeout time.Duration) *TransactionsParams
NewTransactionsParamsWithTimeout creates a new TransactionsParams object with the ability to set a timeout on a request.
func (*TransactionsParams) SetContext ¶
func (o *TransactionsParams) SetContext(ctx context.Context)
SetContext adds the context to the transactions params
func (*TransactionsParams) SetDefaults ¶ added in v2.4.0
func (o *TransactionsParams) SetDefaults()
SetDefaults hydrates default values in the transactions params (not the query body).
All values with no default are reset to their zero value.
func (*TransactionsParams) SetHTTPClient ¶
func (o *TransactionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the transactions params
func (*TransactionsParams) SetPage ¶
func (o *TransactionsParams) SetPage(page *int32)
SetPage adds the page to the transactions params
func (*TransactionsParams) SetPerPage ¶
func (o *TransactionsParams) SetPerPage(perPage *int32)
SetPerPage adds the perPage to the transactions params
func (*TransactionsParams) SetQuery ¶
func (o *TransactionsParams) SetQuery(query string)
SetQuery adds the query to the transactions params
func (*TransactionsParams) SetTimeout ¶
func (o *TransactionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the transactions params
func (*TransactionsParams) WithContext ¶
func (o *TransactionsParams) WithContext(ctx context.Context) *TransactionsParams
WithContext adds the context to the transactions params
func (*TransactionsParams) WithDefaults ¶ added in v2.4.0
func (o *TransactionsParams) WithDefaults() *TransactionsParams
WithDefaults hydrates default values in the transactions params (not the query body).
All values with no default are reset to their zero value.
func (*TransactionsParams) WithHTTPClient ¶
func (o *TransactionsParams) WithHTTPClient(client *http.Client) *TransactionsParams
WithHTTPClient adds the HTTPClient to the transactions params
func (*TransactionsParams) WithPage ¶
func (o *TransactionsParams) WithPage(page *int32) *TransactionsParams
WithPage adds the page to the transactions params
func (*TransactionsParams) WithPerPage ¶
func (o *TransactionsParams) WithPerPage(perPage *int32) *TransactionsParams
WithPerPage adds the perPage to the transactions params
func (*TransactionsParams) WithQuery ¶
func (o *TransactionsParams) WithQuery(query string) *TransactionsParams
WithQuery adds the query to the transactions params
func (*TransactionsParams) WithTimeout ¶
func (o *TransactionsParams) WithTimeout(timeout time.Duration) *TransactionsParams
WithTimeout adds the timeout to the transactions params
func (*TransactionsParams) WriteToRequest ¶
func (o *TransactionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TransactionsReader ¶
type TransactionsReader struct {
// contains filtered or unexported fields
}
TransactionsReader is a Reader for the Transactions structure.
func (*TransactionsReader) ReadResponse ¶
func (o *TransactionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UnconfirmedTxsDefault ¶
type UnconfirmedTxsDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
UnconfirmedTxsDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewUnconfirmedTxsDefault ¶
func NewUnconfirmedTxsDefault(code int) *UnconfirmedTxsDefault
NewUnconfirmedTxsDefault creates a UnconfirmedTxsDefault with default headers values
func (*UnconfirmedTxsDefault) Code ¶
func (o *UnconfirmedTxsDefault) Code() int
Code gets the status code for the unconfirmed txs default response
func (*UnconfirmedTxsDefault) Error ¶
func (o *UnconfirmedTxsDefault) Error() string
func (*UnconfirmedTxsDefault) GetPayload ¶
func (o *UnconfirmedTxsDefault) GetPayload() *models.ErrorBody
type UnconfirmedTxsOK ¶
type UnconfirmedTxsOK struct {
Payload *models.UnconfirmedTxsResponse
}
UnconfirmedTxsOK describes a response with status code 200, with default header values.
A successful response.
func NewUnconfirmedTxsOK ¶
func NewUnconfirmedTxsOK() *UnconfirmedTxsOK
NewUnconfirmedTxsOK creates a UnconfirmedTxsOK with default headers values
func (*UnconfirmedTxsOK) Error ¶
func (o *UnconfirmedTxsOK) Error() string
func (*UnconfirmedTxsOK) GetPayload ¶
func (o *UnconfirmedTxsOK) GetPayload() *models.UnconfirmedTxsResponse
type UnconfirmedTxsParams ¶
type UnconfirmedTxsParams struct { // Limit. // // Format: int32 // Default: 30 Limit *int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UnconfirmedTxsParams contains all the parameters to send to the API endpoint
for the unconfirmed txs operation. Typically these are written to a http.Request.
func NewUnconfirmedTxsParams ¶
func NewUnconfirmedTxsParams() *UnconfirmedTxsParams
NewUnconfirmedTxsParams creates a new UnconfirmedTxsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUnconfirmedTxsParamsWithContext ¶
func NewUnconfirmedTxsParamsWithContext(ctx context.Context) *UnconfirmedTxsParams
NewUnconfirmedTxsParamsWithContext creates a new UnconfirmedTxsParams object with the ability to set a context for a request.
func NewUnconfirmedTxsParamsWithHTTPClient ¶
func NewUnconfirmedTxsParamsWithHTTPClient(client *http.Client) *UnconfirmedTxsParams
NewUnconfirmedTxsParamsWithHTTPClient creates a new UnconfirmedTxsParams object with the ability to set a custom HTTPClient for a request.
func NewUnconfirmedTxsParamsWithTimeout ¶
func NewUnconfirmedTxsParamsWithTimeout(timeout time.Duration) *UnconfirmedTxsParams
NewUnconfirmedTxsParamsWithTimeout creates a new UnconfirmedTxsParams object with the ability to set a timeout on a request.
func (*UnconfirmedTxsParams) SetContext ¶
func (o *UnconfirmedTxsParams) SetContext(ctx context.Context)
SetContext adds the context to the unconfirmed txs params
func (*UnconfirmedTxsParams) SetDefaults ¶ added in v2.4.0
func (o *UnconfirmedTxsParams) SetDefaults()
SetDefaults hydrates default values in the unconfirmed txs params (not the query body).
All values with no default are reset to their zero value.
func (*UnconfirmedTxsParams) SetHTTPClient ¶
func (o *UnconfirmedTxsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the unconfirmed txs params
func (*UnconfirmedTxsParams) SetLimit ¶
func (o *UnconfirmedTxsParams) SetLimit(limit *int32)
SetLimit adds the limit to the unconfirmed txs params
func (*UnconfirmedTxsParams) SetTimeout ¶
func (o *UnconfirmedTxsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the unconfirmed txs params
func (*UnconfirmedTxsParams) WithContext ¶
func (o *UnconfirmedTxsParams) WithContext(ctx context.Context) *UnconfirmedTxsParams
WithContext adds the context to the unconfirmed txs params
func (*UnconfirmedTxsParams) WithDefaults ¶ added in v2.4.0
func (o *UnconfirmedTxsParams) WithDefaults() *UnconfirmedTxsParams
WithDefaults hydrates default values in the unconfirmed txs params (not the query body).
All values with no default are reset to their zero value.
func (*UnconfirmedTxsParams) WithHTTPClient ¶
func (o *UnconfirmedTxsParams) WithHTTPClient(client *http.Client) *UnconfirmedTxsParams
WithHTTPClient adds the HTTPClient to the unconfirmed txs params
func (*UnconfirmedTxsParams) WithLimit ¶
func (o *UnconfirmedTxsParams) WithLimit(limit *int32) *UnconfirmedTxsParams
WithLimit adds the limit to the unconfirmed txs params
func (*UnconfirmedTxsParams) WithTimeout ¶
func (o *UnconfirmedTxsParams) WithTimeout(timeout time.Duration) *UnconfirmedTxsParams
WithTimeout adds the timeout to the unconfirmed txs params
func (*UnconfirmedTxsParams) WriteToRequest ¶
func (o *UnconfirmedTxsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UnconfirmedTxsReader ¶
type UnconfirmedTxsReader struct {
// contains filtered or unexported fields
}
UnconfirmedTxsReader is a Reader for the UnconfirmedTxs structure.
func (*UnconfirmedTxsReader) ReadResponse ¶
func (o *UnconfirmedTxsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateVotesDefault ¶ added in v2.2.0
type UpdateVotesDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
UpdateVotesDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewUpdateVotesDefault ¶ added in v2.2.0
func NewUpdateVotesDefault(code int) *UpdateVotesDefault
NewUpdateVotesDefault creates a UpdateVotesDefault with default headers values
func (*UpdateVotesDefault) Code ¶ added in v2.2.0
func (o *UpdateVotesDefault) Code() int
Code gets the status code for the update votes default response
func (*UpdateVotesDefault) Error ¶ added in v2.2.0
func (o *UpdateVotesDefault) Error() string
func (*UpdateVotesDefault) GetPayload ¶ added in v2.2.0
func (o *UpdateVotesDefault) GetPayload() *models.ErrorBody
type UpdateVotesOK ¶ added in v2.2.0
type UpdateVotesOK struct {
Payload *models.UpdateVotesResponse
}
UpdateVotesOK describes a response with status code 200, with default header values.
A successful response.
func NewUpdateVotesOK ¶ added in v2.2.0
func NewUpdateVotesOK() *UpdateVotesOK
NewUpdateVotesOK creates a UpdateVotesOK with default headers values
func (*UpdateVotesOK) Error ¶ added in v2.2.0
func (o *UpdateVotesOK) Error() string
func (*UpdateVotesOK) GetPayload ¶ added in v2.2.0
func (o *UpdateVotesOK) GetPayload() *models.UpdateVotesResponse
type UpdateVotesParams ¶ added in v2.2.0
type UpdateVotesParams struct { // Height. // // Format: uint64 Height *uint64 // TargetVersion. // // Format: uint64 TargetVersion string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateVotesParams contains all the parameters to send to the API endpoint
for the update votes operation. Typically these are written to a http.Request.
func NewUpdateVotesParams ¶ added in v2.2.0
func NewUpdateVotesParams() *UpdateVotesParams
NewUpdateVotesParams creates a new UpdateVotesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUpdateVotesParamsWithContext ¶ added in v2.2.0
func NewUpdateVotesParamsWithContext(ctx context.Context) *UpdateVotesParams
NewUpdateVotesParamsWithContext creates a new UpdateVotesParams object with the ability to set a context for a request.
func NewUpdateVotesParamsWithHTTPClient ¶ added in v2.2.0
func NewUpdateVotesParamsWithHTTPClient(client *http.Client) *UpdateVotesParams
NewUpdateVotesParamsWithHTTPClient creates a new UpdateVotesParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateVotesParamsWithTimeout ¶ added in v2.2.0
func NewUpdateVotesParamsWithTimeout(timeout time.Duration) *UpdateVotesParams
NewUpdateVotesParamsWithTimeout creates a new UpdateVotesParams object with the ability to set a timeout on a request.
func (*UpdateVotesParams) SetContext ¶ added in v2.2.0
func (o *UpdateVotesParams) SetContext(ctx context.Context)
SetContext adds the context to the update votes params
func (*UpdateVotesParams) SetDefaults ¶ added in v2.4.0
func (o *UpdateVotesParams) SetDefaults()
SetDefaults hydrates default values in the update votes params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateVotesParams) SetHTTPClient ¶ added in v2.2.0
func (o *UpdateVotesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update votes params
func (*UpdateVotesParams) SetHeight ¶ added in v2.2.0
func (o *UpdateVotesParams) SetHeight(height *uint64)
SetHeight adds the height to the update votes params
func (*UpdateVotesParams) SetTargetVersion ¶ added in v2.2.0
func (o *UpdateVotesParams) SetTargetVersion(targetVersion string)
SetTargetVersion adds the targetVersion to the update votes params
func (*UpdateVotesParams) SetTimeout ¶ added in v2.2.0
func (o *UpdateVotesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update votes params
func (*UpdateVotesParams) WithContext ¶ added in v2.2.0
func (o *UpdateVotesParams) WithContext(ctx context.Context) *UpdateVotesParams
WithContext adds the context to the update votes params
func (*UpdateVotesParams) WithDefaults ¶ added in v2.4.0
func (o *UpdateVotesParams) WithDefaults() *UpdateVotesParams
WithDefaults hydrates default values in the update votes params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateVotesParams) WithHTTPClient ¶ added in v2.2.0
func (o *UpdateVotesParams) WithHTTPClient(client *http.Client) *UpdateVotesParams
WithHTTPClient adds the HTTPClient to the update votes params
func (*UpdateVotesParams) WithHeight ¶ added in v2.2.0
func (o *UpdateVotesParams) WithHeight(height *uint64) *UpdateVotesParams
WithHeight adds the height to the update votes params
func (*UpdateVotesParams) WithTargetVersion ¶ added in v2.2.0
func (o *UpdateVotesParams) WithTargetVersion(targetVersion string) *UpdateVotesParams
WithTargetVersion adds the targetVersion to the update votes params
func (*UpdateVotesParams) WithTimeout ¶ added in v2.2.0
func (o *UpdateVotesParams) WithTimeout(timeout time.Duration) *UpdateVotesParams
WithTimeout adds the timeout to the update votes params
func (*UpdateVotesParams) WriteToRequest ¶ added in v2.2.0
func (o *UpdateVotesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateVotesReader ¶ added in v2.2.0
type UpdateVotesReader struct {
// contains filtered or unexported fields
}
UpdateVotesReader is a Reader for the UpdateVotes structure.
func (*UpdateVotesReader) ReadResponse ¶ added in v2.2.0
func (o *UpdateVotesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ValidatorsDefault ¶
type ValidatorsDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
ValidatorsDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewValidatorsDefault ¶
func NewValidatorsDefault(code int) *ValidatorsDefault
NewValidatorsDefault creates a ValidatorsDefault with default headers values
func (*ValidatorsDefault) Code ¶
func (o *ValidatorsDefault) Code() int
Code gets the status code for the validators default response
func (*ValidatorsDefault) Error ¶
func (o *ValidatorsDefault) Error() string
func (*ValidatorsDefault) GetPayload ¶
func (o *ValidatorsDefault) GetPayload() *models.ErrorBody
type ValidatorsOK ¶
type ValidatorsOK struct {
Payload *models.ValidatorsResponse
}
ValidatorsOK describes a response with status code 200, with default header values.
A successful response.
func NewValidatorsOK ¶
func NewValidatorsOK() *ValidatorsOK
NewValidatorsOK creates a ValidatorsOK with default headers values
func (*ValidatorsOK) Error ¶
func (o *ValidatorsOK) Error() string
func (*ValidatorsOK) GetPayload ¶
func (o *ValidatorsOK) GetPayload() *models.ValidatorsResponse
type ValidatorsParams ¶
type ValidatorsParams struct { // Height. // // Format: uint64 Height *uint64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ValidatorsParams contains all the parameters to send to the API endpoint
for the validators operation. Typically these are written to a http.Request.
func NewValidatorsParams ¶
func NewValidatorsParams() *ValidatorsParams
NewValidatorsParams creates a new ValidatorsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewValidatorsParamsWithContext ¶
func NewValidatorsParamsWithContext(ctx context.Context) *ValidatorsParams
NewValidatorsParamsWithContext creates a new ValidatorsParams object with the ability to set a context for a request.
func NewValidatorsParamsWithHTTPClient ¶
func NewValidatorsParamsWithHTTPClient(client *http.Client) *ValidatorsParams
NewValidatorsParamsWithHTTPClient creates a new ValidatorsParams object with the ability to set a custom HTTPClient for a request.
func NewValidatorsParamsWithTimeout ¶
func NewValidatorsParamsWithTimeout(timeout time.Duration) *ValidatorsParams
NewValidatorsParamsWithTimeout creates a new ValidatorsParams object with the ability to set a timeout on a request.
func (*ValidatorsParams) SetContext ¶
func (o *ValidatorsParams) SetContext(ctx context.Context)
SetContext adds the context to the validators params
func (*ValidatorsParams) SetDefaults ¶ added in v2.4.0
func (o *ValidatorsParams) SetDefaults()
SetDefaults hydrates default values in the validators params (not the query body).
All values with no default are reset to their zero value.
func (*ValidatorsParams) SetHTTPClient ¶
func (o *ValidatorsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the validators params
func (*ValidatorsParams) SetHeight ¶
func (o *ValidatorsParams) SetHeight(height *uint64)
SetHeight adds the height to the validators params
func (*ValidatorsParams) SetTimeout ¶
func (o *ValidatorsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the validators params
func (*ValidatorsParams) WithContext ¶
func (o *ValidatorsParams) WithContext(ctx context.Context) *ValidatorsParams
WithContext adds the context to the validators params
func (*ValidatorsParams) WithDefaults ¶ added in v2.4.0
func (o *ValidatorsParams) WithDefaults() *ValidatorsParams
WithDefaults hydrates default values in the validators params (not the query body).
All values with no default are reset to their zero value.
func (*ValidatorsParams) WithHTTPClient ¶
func (o *ValidatorsParams) WithHTTPClient(client *http.Client) *ValidatorsParams
WithHTTPClient adds the HTTPClient to the validators params
func (*ValidatorsParams) WithHeight ¶
func (o *ValidatorsParams) WithHeight(height *uint64) *ValidatorsParams
WithHeight adds the height to the validators params
func (*ValidatorsParams) WithTimeout ¶
func (o *ValidatorsParams) WithTimeout(timeout time.Duration) *ValidatorsParams
WithTimeout adds the timeout to the validators params
func (*ValidatorsParams) WriteToRequest ¶
func (o *ValidatorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ValidatorsReader ¶
type ValidatorsReader struct {
// contains filtered or unexported fields
}
ValidatorsReader is a Reader for the Validators structure.
func (*ValidatorsReader) ReadResponse ¶
func (o *ValidatorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type VersionNetworkDefault ¶ added in v2.2.0
type VersionNetworkDefault struct { Payload *models.ErrorBody // contains filtered or unexported fields }
VersionNetworkDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewVersionNetworkDefault ¶ added in v2.2.0
func NewVersionNetworkDefault(code int) *VersionNetworkDefault
NewVersionNetworkDefault creates a VersionNetworkDefault with default headers values
func (*VersionNetworkDefault) Code ¶ added in v2.2.0
func (o *VersionNetworkDefault) Code() int
Code gets the status code for the version network default response
func (*VersionNetworkDefault) Error ¶ added in v2.2.0
func (o *VersionNetworkDefault) Error() string
func (*VersionNetworkDefault) GetPayload ¶ added in v2.2.0
func (o *VersionNetworkDefault) GetPayload() *models.ErrorBody
type VersionNetworkOK ¶ added in v2.2.0
type VersionNetworkOK struct {
Payload *models.VersionNetworkResponse
}
VersionNetworkOK describes a response with status code 200, with default header values.
A successful response.
func NewVersionNetworkOK ¶ added in v2.2.0
func NewVersionNetworkOK() *VersionNetworkOK
NewVersionNetworkOK creates a VersionNetworkOK with default headers values
func (*VersionNetworkOK) Error ¶ added in v2.2.0
func (o *VersionNetworkOK) Error() string
func (*VersionNetworkOK) GetPayload ¶ added in v2.2.0
func (o *VersionNetworkOK) GetPayload() *models.VersionNetworkResponse
type VersionNetworkParams ¶ added in v2.2.0
type VersionNetworkParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
VersionNetworkParams contains all the parameters to send to the API endpoint
for the version network operation. Typically these are written to a http.Request.
func NewVersionNetworkParams ¶ added in v2.2.0
func NewVersionNetworkParams() *VersionNetworkParams
NewVersionNetworkParams creates a new VersionNetworkParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewVersionNetworkParamsWithContext ¶ added in v2.2.0
func NewVersionNetworkParamsWithContext(ctx context.Context) *VersionNetworkParams
NewVersionNetworkParamsWithContext creates a new VersionNetworkParams object with the ability to set a context for a request.
func NewVersionNetworkParamsWithHTTPClient ¶ added in v2.2.0
func NewVersionNetworkParamsWithHTTPClient(client *http.Client) *VersionNetworkParams
NewVersionNetworkParamsWithHTTPClient creates a new VersionNetworkParams object with the ability to set a custom HTTPClient for a request.
func NewVersionNetworkParamsWithTimeout ¶ added in v2.2.0
func NewVersionNetworkParamsWithTimeout(timeout time.Duration) *VersionNetworkParams
NewVersionNetworkParamsWithTimeout creates a new VersionNetworkParams object with the ability to set a timeout on a request.
func (*VersionNetworkParams) SetContext ¶ added in v2.2.0
func (o *VersionNetworkParams) SetContext(ctx context.Context)
SetContext adds the context to the version network params
func (*VersionNetworkParams) SetDefaults ¶ added in v2.4.0
func (o *VersionNetworkParams) SetDefaults()
SetDefaults hydrates default values in the version network params (not the query body).
All values with no default are reset to their zero value.
func (*VersionNetworkParams) SetHTTPClient ¶ added in v2.2.0
func (o *VersionNetworkParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the version network params
func (*VersionNetworkParams) SetTimeout ¶ added in v2.2.0
func (o *VersionNetworkParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the version network params
func (*VersionNetworkParams) WithContext ¶ added in v2.2.0
func (o *VersionNetworkParams) WithContext(ctx context.Context) *VersionNetworkParams
WithContext adds the context to the version network params
func (*VersionNetworkParams) WithDefaults ¶ added in v2.4.0
func (o *VersionNetworkParams) WithDefaults() *VersionNetworkParams
WithDefaults hydrates default values in the version network params (not the query body).
All values with no default are reset to their zero value.
func (*VersionNetworkParams) WithHTTPClient ¶ added in v2.2.0
func (o *VersionNetworkParams) WithHTTPClient(client *http.Client) *VersionNetworkParams
WithHTTPClient adds the HTTPClient to the version network params
func (*VersionNetworkParams) WithTimeout ¶ added in v2.2.0
func (o *VersionNetworkParams) WithTimeout(timeout time.Duration) *VersionNetworkParams
WithTimeout adds the timeout to the version network params
func (*VersionNetworkParams) WriteToRequest ¶ added in v2.2.0
func (o *VersionNetworkParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type VersionNetworkReader ¶ added in v2.2.0
type VersionNetworkReader struct {
// contains filtered or unexported fields
}
VersionNetworkReader is a Reader for the VersionNetwork structure.
func (*VersionNetworkReader) ReadResponse ¶ added in v2.2.0
func (o *VersionNetworkReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type WaitListDefault ¶
WaitListDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewWaitListDefault ¶
func NewWaitListDefault(code int) *WaitListDefault
NewWaitListDefault creates a WaitListDefault with default headers values
func (*WaitListDefault) Code ¶
func (o *WaitListDefault) Code() int
Code gets the status code for the wait list default response
func (*WaitListDefault) Error ¶
func (o *WaitListDefault) Error() string
func (*WaitListDefault) GetPayload ¶
func (o *WaitListDefault) GetPayload() *models.ErrorBody
type WaitListOK ¶
type WaitListOK struct {
Payload *models.WaitListResponse
}
WaitListOK describes a response with status code 200, with default header values.
A successful response.
func NewWaitListOK ¶
func NewWaitListOK() *WaitListOK
NewWaitListOK creates a WaitListOK with default headers values
func (*WaitListOK) Error ¶
func (o *WaitListOK) Error() string
func (*WaitListOK) GetPayload ¶
func (o *WaitListOK) GetPayload() *models.WaitListResponse
type WaitListParams ¶
type WaitListParams struct { // Address. Address string // Height. // // Format: uint64 Height *uint64 // PublicKey. PublicKey *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
WaitListParams contains all the parameters to send to the API endpoint
for the wait list operation. Typically these are written to a http.Request.
func NewWaitListParams ¶
func NewWaitListParams() *WaitListParams
NewWaitListParams creates a new WaitListParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewWaitListParamsWithContext ¶
func NewWaitListParamsWithContext(ctx context.Context) *WaitListParams
NewWaitListParamsWithContext creates a new WaitListParams object with the ability to set a context for a request.
func NewWaitListParamsWithHTTPClient ¶
func NewWaitListParamsWithHTTPClient(client *http.Client) *WaitListParams
NewWaitListParamsWithHTTPClient creates a new WaitListParams object with the ability to set a custom HTTPClient for a request.
func NewWaitListParamsWithTimeout ¶
func NewWaitListParamsWithTimeout(timeout time.Duration) *WaitListParams
NewWaitListParamsWithTimeout creates a new WaitListParams object with the ability to set a timeout on a request.
func (*WaitListParams) SetAddress ¶
func (o *WaitListParams) SetAddress(address string)
SetAddress adds the address to the wait list params
func (*WaitListParams) SetContext ¶
func (o *WaitListParams) SetContext(ctx context.Context)
SetContext adds the context to the wait list params
func (*WaitListParams) SetDefaults ¶ added in v2.4.0
func (o *WaitListParams) SetDefaults()
SetDefaults hydrates default values in the wait list params (not the query body).
All values with no default are reset to their zero value.
func (*WaitListParams) SetHTTPClient ¶
func (o *WaitListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the wait list params
func (*WaitListParams) SetHeight ¶
func (o *WaitListParams) SetHeight(height *uint64)
SetHeight adds the height to the wait list params
func (*WaitListParams) SetPublicKey ¶
func (o *WaitListParams) SetPublicKey(publicKey *string)
SetPublicKey adds the publicKey to the wait list params
func (*WaitListParams) SetTimeout ¶
func (o *WaitListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the wait list params
func (*WaitListParams) WithAddress ¶
func (o *WaitListParams) WithAddress(address string) *WaitListParams
WithAddress adds the address to the wait list params
func (*WaitListParams) WithContext ¶
func (o *WaitListParams) WithContext(ctx context.Context) *WaitListParams
WithContext adds the context to the wait list params
func (*WaitListParams) WithDefaults ¶ added in v2.4.0
func (o *WaitListParams) WithDefaults() *WaitListParams
WithDefaults hydrates default values in the wait list params (not the query body).
All values with no default are reset to their zero value.
func (*WaitListParams) WithHTTPClient ¶
func (o *WaitListParams) WithHTTPClient(client *http.Client) *WaitListParams
WithHTTPClient adds the HTTPClient to the wait list params
func (*WaitListParams) WithHeight ¶
func (o *WaitListParams) WithHeight(height *uint64) *WaitListParams
WithHeight adds the height to the wait list params
func (*WaitListParams) WithPublicKey ¶
func (o *WaitListParams) WithPublicKey(publicKey *string) *WaitListParams
WithPublicKey adds the publicKey to the wait list params
func (*WaitListParams) WithTimeout ¶
func (o *WaitListParams) WithTimeout(timeout time.Duration) *WaitListParams
WithTimeout adds the timeout to the wait list params
func (*WaitListParams) WriteToRequest ¶
func (o *WaitListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type WaitListReader ¶
type WaitListReader struct {
// contains filtered or unexported fields
}
WaitListReader is a Reader for the WaitList structure.
func (*WaitListReader) ReadResponse ¶
func (o *WaitListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- address_parameters.go
- address_responses.go
- addresses_parameters.go
- addresses_responses.go
- api_service_client.go
- best_trade_parameters.go
- best_trade_responses.go
- block_parameters.go
- block_responses.go
- blocks_parameters.go
- blocks_responses.go
- candidate_parameters.go
- candidate_responses.go
- candidates_parameters.go
- candidates_responses.go
- coin_info_by_id_parameters.go
- coin_info_by_id_responses.go
- coin_info_parameters.go
- coin_info_responses.go
- commission_votes_parameters.go
- commission_votes_responses.go
- estimate_coin_buy_parameters.go
- estimate_coin_buy_responses.go
- estimate_coin_sell_all_parameters.go
- estimate_coin_sell_all_responses.go
- estimate_coin_sell_parameters.go
- estimate_coin_sell_responses.go
- estimate_tx_commission_parameters.go
- estimate_tx_commission_responses.go
- events_parameters.go
- events_responses.go
- frozen_all_parameters.go
- frozen_all_responses.go
- frozen_parameters.go
- frozen_responses.go
- genesis_parameters.go
- genesis_responses.go
- halts_parameters.go
- halts_responses.go
- limit_order_parameters.go
- limit_order_responses.go
- limit_orders_of_pool_parameters.go
- limit_orders_of_pool_responses.go
- limit_orders_parameters.go
- limit_orders_responses.go
- max_gas_price_parameters.go
- max_gas_price_responses.go
- min_gas_price_parameters.go
- min_gas_price_responses.go
- missed_blocks_parameters.go
- missed_blocks_responses.go
- net_info_parameters.go
- net_info_responses.go
- price_commission_parameters.go
- price_commission_responses.go
- send_transaction2_parameters.go
- send_transaction2_responses.go
- send_transaction_parameters.go
- send_transaction_responses.go
- status_parameters.go
- status_responses.go
- subscribe_parameters.go
- subscribe_responses.go
- swap_pool_parameters.go
- swap_pool_provider_parameters.go
- swap_pool_provider_responses.go
- swap_pool_responses.go
- swap_pools_parameters.go
- swap_pools_responses.go
- test_block_parameters.go
- test_block_responses.go
- transaction_parameters.go
- transaction_responses.go
- transactions_parameters.go
- transactions_responses.go
- unconfirmed_txs_parameters.go
- unconfirmed_txs_responses.go
- update_votes_parameters.go
- update_votes_responses.go
- validators_parameters.go
- validators_responses.go
- version_network_parameters.go
- version_network_responses.go
- wait_list_parameters.go
- wait_list_responses.go