func (a *Client) GetStakingDelegatorsDelegatorAddrDelegationsValidatorAddr(params *GetStakingDelegatorsDelegatorAddrDelegationsValidatorAddrParams) (*GetStakingDelegatorsDelegatorAddrDelegationsValidatorAddrOK, error) {
	if params == nil {
		params = NewGetStakingDelegatorsDelegatorAddrDelegationsValidatorAddrParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetStakingDelegatorsDelegatorAddrDelegationsValidatorAddr",
		Method:             "GET",
		PathPattern:        "/staking/delegators/{delegatorAddr}/delegations/{validatorAddr}",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &GetStakingDelegatorsDelegatorAddrDelegationsValidatorAddrReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetStakingDelegatorsDelegatorAddrDelegationsValidatorAddrOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetStakingDelegatorsDelegatorAddrDelegationsValidatorAddr: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
/*
GetStakingDelegatorsDelegatorAddrDelegationsValidatorAddr queries the current delegation between a delegator and a validator
package staking
import (
	"fmt"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
)
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
	return &Client{transport: transport, formats: formats}
}
type Client struct {
	transport runtime.ClientTransport
	formats   strfmt.Registry
}
type ClientService interface {
	GetStakingDelegatorsDelegatorAddrDelegations(params *GetStakingDelegatorsDelegatorAddrDelegationsParams) (*GetStakingDelegatorsDelegatorAddrDelegationsOK, error)
	GetStakingDelegatorsDelegatorAddrDelegationsValidatorAddr(params *GetStakingDelegatorsDelegatorAddrDelegationsValidatorAddrParams) (*GetStakingDelegatorsDelegatorAddrDelegationsValidatorAddrOK, error)
	GetStakingDelegatorsDelegatorAddrTxs(params *GetStakingDelegatorsDelegatorAddrTxsParams) (*GetStakingDelegatorsDelegatorAddrTxsOK, *GetStakingDelegatorsDelegatorAddrTxsNoContent, error)
	GetStakingDelegatorsDelegatorAddrUnbondingDelegations(params *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsParams) (*GetStakingDelegatorsDelegatorAddrUnbondingDelegationsOK, error)
	GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddr(params *GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrParams) (*GetStakingDelegatorsDelegatorAddrUnbondingDelegationsValidatorAddrOK, error)
	GetStakingDelegatorsDelegatorAddrValidators(params *GetStakingDelegatorsDelegatorAddrValidatorsParams) (*GetStakingDelegatorsDelegatorAddrValidatorsOK, error)
	GetStakingDelegatorsDelegatorAddrValidatorsValidatorAddr(params *GetStakingDelegatorsDelegatorAddrValidatorsValidatorAddrParams) (*GetStakingDelegatorsDelegatorAddrValidatorsValidatorAddrOK, error)
	GetStakingParameters(params *GetStakingParametersParams) (*GetStakingParametersOK, error)
	GetStakingPool(params *GetStakingPoolParams) (*GetStakingPoolOK, error)
	GetStakingRedelegations(params *GetStakingRedelegationsParams) (*GetStakingRedelegationsOK, error)
	GetStakingValidators(params *GetStakingValidatorsParams) (*GetStakingValidatorsOK, error)
	GetStakingValidatorsValidatorAddr(params *GetStakingValidatorsValidatorAddrParams) (*GetStakingValidatorsValidatorAddrOK, error)
	GetStakingValidatorsValidatorAddrDelegations(params *GetStakingValidatorsValidatorAddrDelegationsParams) (*GetStakingValidatorsValidatorAddrDelegationsOK, error)
	GetStakingValidatorsValidatorAddrUnbondingDelegations(params *GetStakingValidatorsValidatorAddrUnbondingDelegationsParams) (*GetStakingValidatorsValidatorAddrUnbondingDelegationsOK, error)
	PostStakingDelegatorsDelegatorAddrDelegations(params *PostStakingDelegatorsDelegatorAddrDelegationsParams) (*PostStakingDelegatorsDelegatorAddrDelegationsOK, error)
	PostStakingDelegatorsDelegatorAddrUnbondingDelegations(params *PostStakingDelegatorsDelegatorAddrUnbondingDelegationsParams) (*PostStakingDelegatorsDelegatorAddrUnbondingDelegationsOK, error)
	SetTransport(transport runtime.ClientTransport)
}
func (a *Client) GetStakingDelegatorsDelegatorAddrDelegations(params *GetStakingDelegatorsDelegatorAddrDelegationsParams) (*GetStakingDelegatorsDelegatorAddrDelegationsOK, error) {
	if params == nil {
		params = NewGetStakingDelegatorsDelegatorAddrDelegationsParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetStakingDelegatorsDelegatorAddrDelegations",
		Method:             "GET",
		PathPattern:        "/staking/delegators/{delegatorAddr}/delegations",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &GetStakingDelegatorsDelegatorAddrDelegationsReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetStakingDelegatorsDelegatorAddrDelegationsOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetStakingDelegatorsDelegatorAddrDelegations: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}