approve_controller_v_1

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressContractUsingGET1Forbidden

type AddressContractUsingGET1Forbidden struct {
}

AddressContractUsingGET1Forbidden handles this case with default header values.

Forbidden

func NewAddressContractUsingGET1Forbidden

func NewAddressContractUsingGET1Forbidden() *AddressContractUsingGET1Forbidden

NewAddressContractUsingGET1Forbidden creates a AddressContractUsingGET1Forbidden with default headers values

func (*AddressContractUsingGET1Forbidden) Error

type AddressContractUsingGET1NotFound

type AddressContractUsingGET1NotFound struct {
}

AddressContractUsingGET1NotFound handles this case with default header values.

Not Found

func NewAddressContractUsingGET1NotFound

func NewAddressContractUsingGET1NotFound() *AddressContractUsingGET1NotFound

NewAddressContractUsingGET1NotFound creates a AddressContractUsingGET1NotFound with default headers values

func (*AddressContractUsingGET1NotFound) Error

type AddressContractUsingGET1OK

type AddressContractUsingGET1OK struct {
	Payload *models.ResponseWrapperAddressContract
}

AddressContractUsingGET1OK handles this case with default header values.

OK

func NewAddressContractUsingGET1OK

func NewAddressContractUsingGET1OK() *AddressContractUsingGET1OK

NewAddressContractUsingGET1OK creates a AddressContractUsingGET1OK with default headers values

func (*AddressContractUsingGET1OK) Error

func (*AddressContractUsingGET1OK) GetPayload

type AddressContractUsingGET1Params

type AddressContractUsingGET1Params struct {

	/*Authorization
	  Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...)

	*/
	Authorization *string
	/*Address
	  address

	*/
	Address string
	/*ChainID
	  The chain_id of the blockchain.
	"1" means Ethereum;
	"10" means Optimism;
	"25" means Cronos;
	"56" means BSC;
	"66" means OKC;
	"100" means Gnosis;
	"128" means HECO;
	"137" means Polygon;
	"250" means Fantom;
	"321" means KCC;
	"324" means zkSync Era;
	"10001" means ETHW;
	"201022" means FON;
	"42161" means Arbitrum;
	"43114" means Avalanche;
	"59140" means Linea;
	"1666600000" means Harmony;
	"tron" means Tron.

	*/
	ChainID *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

AddressContractUsingGET1Params contains all the parameters to send to the API endpoint for the address contract using g e t 1 operation typically these are written to a http.Request

func NewAddressContractUsingGET1Params

func NewAddressContractUsingGET1Params() *AddressContractUsingGET1Params

NewAddressContractUsingGET1Params creates a new AddressContractUsingGET1Params object with the default values initialized.

func NewAddressContractUsingGET1ParamsWithContext

func NewAddressContractUsingGET1ParamsWithContext(ctx context.Context) *AddressContractUsingGET1Params

NewAddressContractUsingGET1ParamsWithContext creates a new AddressContractUsingGET1Params object with the default values initialized, and the ability to set a context for a request

func NewAddressContractUsingGET1ParamsWithHTTPClient

func NewAddressContractUsingGET1ParamsWithHTTPClient(client *http.Client) *AddressContractUsingGET1Params

NewAddressContractUsingGET1ParamsWithHTTPClient creates a new AddressContractUsingGET1Params object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAddressContractUsingGET1ParamsWithTimeout

func NewAddressContractUsingGET1ParamsWithTimeout(timeout time.Duration) *AddressContractUsingGET1Params

NewAddressContractUsingGET1ParamsWithTimeout creates a new AddressContractUsingGET1Params object with the default values initialized, and the ability to set a timeout on a request

func (*AddressContractUsingGET1Params) SetAddress

func (o *AddressContractUsingGET1Params) SetAddress(address string)

SetAddress adds the address to the address contract using g e t 1 params

func (*AddressContractUsingGET1Params) SetAuthorization

func (o *AddressContractUsingGET1Params) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the address contract using g e t 1 params

func (*AddressContractUsingGET1Params) SetChainID

func (o *AddressContractUsingGET1Params) SetChainID(chainID *string)

SetChainID adds the chainId to the address contract using g e t 1 params

func (*AddressContractUsingGET1Params) SetContext

func (o *AddressContractUsingGET1Params) SetContext(ctx context.Context)

SetContext adds the context to the address contract using g e t 1 params

func (*AddressContractUsingGET1Params) SetHTTPClient

func (o *AddressContractUsingGET1Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the address contract using g e t 1 params

func (*AddressContractUsingGET1Params) SetTimeout

func (o *AddressContractUsingGET1Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the address contract using g e t 1 params

func (*AddressContractUsingGET1Params) WithAddress

WithAddress adds the address to the address contract using g e t 1 params

func (*AddressContractUsingGET1Params) WithAuthorization

func (o *AddressContractUsingGET1Params) WithAuthorization(authorization *string) *AddressContractUsingGET1Params

WithAuthorization adds the authorization to the address contract using g e t 1 params

func (*AddressContractUsingGET1Params) WithChainID

WithChainID adds the chainID to the address contract using g e t 1 params

func (*AddressContractUsingGET1Params) WithContext

WithContext adds the context to the address contract using g e t 1 params

func (*AddressContractUsingGET1Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the address contract using g e t 1 params

func (*AddressContractUsingGET1Params) WithTimeout

WithTimeout adds the timeout to the address contract using g e t 1 params

func (*AddressContractUsingGET1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type AddressContractUsingGET1Reader

type AddressContractUsingGET1Reader struct {
	// contains filtered or unexported fields
}

AddressContractUsingGET1Reader is a Reader for the AddressContractUsingGET1 structure.

func (*AddressContractUsingGET1Reader) ReadResponse

func (o *AddressContractUsingGET1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type AddressContractUsingGET1Unauthorized

type AddressContractUsingGET1Unauthorized struct {
}

AddressContractUsingGET1Unauthorized handles this case with default header values.

Unauthorized

func NewAddressContractUsingGET1Unauthorized

func NewAddressContractUsingGET1Unauthorized() *AddressContractUsingGET1Unauthorized

NewAddressContractUsingGET1Unauthorized creates a AddressContractUsingGET1Unauthorized with default headers values

func (*AddressContractUsingGET1Unauthorized) Error

type ApprovalContractUsingGETForbidden

type ApprovalContractUsingGETForbidden struct {
}

ApprovalContractUsingGETForbidden handles this case with default header values.

Forbidden

func NewApprovalContractUsingGETForbidden

func NewApprovalContractUsingGETForbidden() *ApprovalContractUsingGETForbidden

NewApprovalContractUsingGETForbidden creates a ApprovalContractUsingGETForbidden with default headers values

func (*ApprovalContractUsingGETForbidden) Error

type ApprovalContractUsingGETNotFound

type ApprovalContractUsingGETNotFound struct {
}

ApprovalContractUsingGETNotFound handles this case with default header values.

Not Found

func NewApprovalContractUsingGETNotFound

func NewApprovalContractUsingGETNotFound() *ApprovalContractUsingGETNotFound

NewApprovalContractUsingGETNotFound creates a ApprovalContractUsingGETNotFound with default headers values

func (*ApprovalContractUsingGETNotFound) Error

type ApprovalContractUsingGETOK

type ApprovalContractUsingGETOK struct {
	Payload *models.ResponseWrapperContractApproveResponse
}

ApprovalContractUsingGETOK handles this case with default header values.

OK

func NewApprovalContractUsingGETOK

func NewApprovalContractUsingGETOK() *ApprovalContractUsingGETOK

NewApprovalContractUsingGETOK creates a ApprovalContractUsingGETOK with default headers values

func (*ApprovalContractUsingGETOK) Error

func (*ApprovalContractUsingGETOK) GetPayload

type ApprovalContractUsingGETParams

type ApprovalContractUsingGETParams struct {

	/*Authorization
	  Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...)

	*/
	Authorization *string
	/*ChainID
	  Chain id, (ETH: 1,  BSC: 56, OKC: 66, Heco: 128, Polygon: 137, Fantom:250, Arbitrum: 42161, Avalanche: 43114)

	*/
	ChainID string
	/*ContractAddresses
	  Contract needs to be detected

	*/
	ContractAddresses string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ApprovalContractUsingGETParams contains all the parameters to send to the API endpoint for the approval contract using g e t operation typically these are written to a http.Request

func NewApprovalContractUsingGETParams

func NewApprovalContractUsingGETParams() *ApprovalContractUsingGETParams

NewApprovalContractUsingGETParams creates a new ApprovalContractUsingGETParams object with the default values initialized.

func NewApprovalContractUsingGETParamsWithContext

func NewApprovalContractUsingGETParamsWithContext(ctx context.Context) *ApprovalContractUsingGETParams

NewApprovalContractUsingGETParamsWithContext creates a new ApprovalContractUsingGETParams object with the default values initialized, and the ability to set a context for a request

func NewApprovalContractUsingGETParamsWithHTTPClient

func NewApprovalContractUsingGETParamsWithHTTPClient(client *http.Client) *ApprovalContractUsingGETParams

NewApprovalContractUsingGETParamsWithHTTPClient creates a new ApprovalContractUsingGETParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewApprovalContractUsingGETParamsWithTimeout

func NewApprovalContractUsingGETParamsWithTimeout(timeout time.Duration) *ApprovalContractUsingGETParams

NewApprovalContractUsingGETParamsWithTimeout creates a new ApprovalContractUsingGETParams object with the default values initialized, and the ability to set a timeout on a request

func (*ApprovalContractUsingGETParams) SetAuthorization

func (o *ApprovalContractUsingGETParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the approval contract using g e t params

func (*ApprovalContractUsingGETParams) SetChainID

func (o *ApprovalContractUsingGETParams) SetChainID(chainID string)

SetChainID adds the chainId to the approval contract using g e t params

func (*ApprovalContractUsingGETParams) SetContext

func (o *ApprovalContractUsingGETParams) SetContext(ctx context.Context)

SetContext adds the context to the approval contract using g e t params

func (*ApprovalContractUsingGETParams) SetContractAddresses

func (o *ApprovalContractUsingGETParams) SetContractAddresses(contractAddresses string)

SetContractAddresses adds the contractAddresses to the approval contract using g e t params

func (*ApprovalContractUsingGETParams) SetHTTPClient

func (o *ApprovalContractUsingGETParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the approval contract using g e t params

func (*ApprovalContractUsingGETParams) SetTimeout

func (o *ApprovalContractUsingGETParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the approval contract using g e t params

func (*ApprovalContractUsingGETParams) WithAuthorization

func (o *ApprovalContractUsingGETParams) WithAuthorization(authorization *string) *ApprovalContractUsingGETParams

WithAuthorization adds the authorization to the approval contract using g e t params

func (*ApprovalContractUsingGETParams) WithChainID

WithChainID adds the chainID to the approval contract using g e t params

func (*ApprovalContractUsingGETParams) WithContext

WithContext adds the context to the approval contract using g e t params

func (*ApprovalContractUsingGETParams) WithContractAddresses

func (o *ApprovalContractUsingGETParams) WithContractAddresses(contractAddresses string) *ApprovalContractUsingGETParams

WithContractAddresses adds the contractAddresses to the approval contract using g e t params

func (*ApprovalContractUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the approval contract using g e t params

func (*ApprovalContractUsingGETParams) WithTimeout

WithTimeout adds the timeout to the approval contract using g e t params

func (*ApprovalContractUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ApprovalContractUsingGETReader

type ApprovalContractUsingGETReader struct {
	// contains filtered or unexported fields
}

ApprovalContractUsingGETReader is a Reader for the ApprovalContractUsingGET structure.

func (*ApprovalContractUsingGETReader) ReadResponse

func (o *ApprovalContractUsingGETReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ApprovalContractUsingGETUnauthorized

type ApprovalContractUsingGETUnauthorized struct {
}

ApprovalContractUsingGETUnauthorized handles this case with default header values.

Unauthorized

func NewApprovalContractUsingGETUnauthorized

func NewApprovalContractUsingGETUnauthorized() *ApprovalContractUsingGETUnauthorized

NewApprovalContractUsingGETUnauthorized creates a ApprovalContractUsingGETUnauthorized with default headers values

func (*ApprovalContractUsingGETUnauthorized) Error

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for approve controller v 1 API

func (*Client) AddressContractUsingGET1

func (a *Client) AddressContractUsingGET1(params *AddressContractUsingGET1Params) (*AddressContractUsingGET1OK, error)

AddressContractUsingGET1 checks if the address is malicious

func (*Client) ApprovalContractUsingGET

func (a *Client) ApprovalContractUsingGET(params *ApprovalContractUsingGETParams) (*ApprovalContractUsingGETOK, error)

ApprovalContractUsingGET checks if the approval is secure

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	AddressContractUsingGET1(params *AddressContractUsingGET1Params) (*AddressContractUsingGET1OK, error)

	ApprovalContractUsingGET(params *ApprovalContractUsingGETParams) (*ApprovalContractUsingGETOK, 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 approve controller v 1 API client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL