func (a *Client) GetGovProposalsProposalIDTally(params *GetGovProposalsProposalIDTallyParams) (*GetGovProposalsProposalIDTallyOK, error) {
	if params == nil {
		params = NewGetGovProposalsProposalIDTallyParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetGovProposalsProposalIDTally",
		Method:             "GET",
		PathPattern:        "/gov/proposals/{proposalId}/tally",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &GetGovProposalsProposalIDTallyReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetGovProposalsProposalIDTallyOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetGovProposalsProposalIDTally: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
/*
GetGovProposalsProposalIDTally gets a proposal s tally result at the current time

Gets a proposal's tally result at the current time. If the proposal is pending deposits (i.e status 'DepositPeriod') it returns an empty tally result.
package governance
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 {
	GetGovParametersDeposit(params *GetGovParametersDepositParams) (*GetGovParametersDepositOK, error)
	GetGovParametersTallying(params *GetGovParametersTallyingParams) (*GetGovParametersTallyingOK, error)
	GetGovParametersVoting(params *GetGovParametersVotingParams) (*GetGovParametersVotingOK, error)
	GetGovProposals(params *GetGovProposalsParams) (*GetGovProposalsOK, error)
	GetGovProposalsProposalID(params *GetGovProposalsProposalIDParams) (*GetGovProposalsProposalIDOK, error)
	GetGovProposalsProposalIDDeposits(params *GetGovProposalsProposalIDDepositsParams) (*GetGovProposalsProposalIDDepositsOK, error)
	GetGovProposalsProposalIDDepositsDepositor(params *GetGovProposalsProposalIDDepositsDepositorParams) (*GetGovProposalsProposalIDDepositsDepositorOK, error)
	GetGovProposalsProposalIDProposer(params *GetGovProposalsProposalIDProposerParams) (*GetGovProposalsProposalIDProposerOK, error)
	GetGovProposalsProposalIDTally(params *GetGovProposalsProposalIDTallyParams) (*GetGovProposalsProposalIDTallyOK, error)
	GetGovProposalsProposalIDVotes(params *GetGovProposalsProposalIDVotesParams) (*GetGovProposalsProposalIDVotesOK, error)
	GetGovProposalsProposalIDVotesVoter(params *GetGovProposalsProposalIDVotesVoterParams) (*GetGovProposalsProposalIDVotesVoterOK, error)
	PostGovProposals(params *PostGovProposalsParams) (*PostGovProposalsOK, error)
	PostGovProposalsCommunityPoolSpend(params *PostGovProposalsCommunityPoolSpendParams) (*PostGovProposalsCommunityPoolSpendOK, error)
	PostGovProposalsParamChange(params *PostGovProposalsParamChangeParams) (*PostGovProposalsParamChangeOK, error)
	PostGovProposalsProposalIDDeposits(params *PostGovProposalsProposalIDDepositsParams) (*PostGovProposalsProposalIDDepositsOK, error)
	PostGovProposalsProposalIDVotes(params *PostGovProposalsProposalIDVotesParams) (*PostGovProposalsProposalIDVotesOK, error)
	PostGovProposalsRewardWeightUpdate(params *PostGovProposalsRewardWeightUpdateParams) (*PostGovProposalsRewardWeightUpdateOK, error)
	PostGovProposalsTaxRateUpdate(params *PostGovProposalsTaxRateUpdateParams) (*PostGovProposalsTaxRateUpdateOK, error)
	SetTransport(transport runtime.ClientTransport)
}
func (a *Client) GetGovParametersDeposit(params *GetGovParametersDepositParams) (*GetGovParametersDepositOK, error) {
	if params == nil {
		params = NewGetGovParametersDepositParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetGovParametersDeposit",
		Method:             "GET",
		PathPattern:        "/gov/parameters/deposit",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &GetGovParametersDepositReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetGovParametersDepositOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetGovParametersDeposit: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetGovParametersTallying(params *GetGovParametersTallyingParams) (*GetGovParametersTallyingOK, error) {
	if params == nil {
		params = NewGetGovParametersTallyingParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetGovParametersTallying",
		Method:             "GET",
		PathPattern:        "/gov/parameters/tallying",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &GetGovParametersTallyingReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetGovParametersTallyingOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetGovParametersTallying: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetGovParametersVoting(params *GetGovParametersVotingParams) (*GetGovParametersVotingOK, error) {
	if params == nil {
		params = NewGetGovParametersVotingParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetGovParametersVoting",
		Method:             "GET",
		PathPattern:        "/gov/parameters/voting",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &GetGovParametersVotingReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetGovParametersVotingOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetGovParametersVoting: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetGovProposals(params *GetGovProposalsParams) (*GetGovProposalsOK, error) {
	if params == nil {
		params = NewGetGovProposalsParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetGovProposals",
		Method:             "GET",
		PathPattern:        "/gov/proposals",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &GetGovProposalsReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetGovProposalsOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetGovProposals: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetGovProposalsProposalID(params *GetGovProposalsProposalIDParams) (*GetGovProposalsProposalIDOK, error) {
	if params == nil {
		params = NewGetGovProposalsProposalIDParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetGovProposalsProposalID",
		Method:             "GET",
		PathPattern:        "/gov/proposals/{proposalId}",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &GetGovProposalsProposalIDReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetGovProposalsProposalIDOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetGovProposalsProposalID: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetGovProposalsProposalIDDeposits(params *GetGovProposalsProposalIDDepositsParams) (*GetGovProposalsProposalIDDepositsOK, error) {
	if params == nil {
		params = NewGetGovProposalsProposalIDDepositsParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetGovProposalsProposalIDDeposits",
		Method:             "GET",
		PathPattern:        "/gov/proposals/{proposalId}/deposits",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &GetGovProposalsProposalIDDepositsReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetGovProposalsProposalIDDepositsOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetGovProposalsProposalIDDeposits: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetGovProposalsProposalIDDepositsDepositor(params *GetGovProposalsProposalIDDepositsDepositorParams) (*GetGovProposalsProposalIDDepositsDepositorOK, error) {
	if params == nil {
		params = NewGetGovProposalsProposalIDDepositsDepositorParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetGovProposalsProposalIDDepositsDepositor",
		Method:             "GET",
		PathPattern:        "/gov/proposals/{proposalId}/deposits/{depositor}",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &GetGovProposalsProposalIDDepositsDepositorReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetGovProposalsProposalIDDepositsDepositorOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetGovProposalsProposalIDDepositsDepositor: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetGovProposalsProposalIDProposer(params *GetGovProposalsProposalIDProposerParams) (*GetGovProposalsProposalIDProposerOK, error) {
	if params == nil {
		params = NewGetGovProposalsProposalIDProposerParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetGovProposalsProposalIDProposer",
		Method:             "GET",
		PathPattern:        "/gov/proposals/{proposalId}/proposer",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{"application/json"},
		Schemes:            []string{"https"},
		Params:             params,
		Reader:             &GetGovProposalsProposalIDProposerReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetGovProposalsProposalIDProposerOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetGovProposalsProposalIDProposer: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}