Documentation ¶
Index ¶
- type AddressContractUsingGET1Forbidden
- type AddressContractUsingGET1NotFound
- type AddressContractUsingGET1OK
- type AddressContractUsingGET1Params
- func NewAddressContractUsingGET1Params() *AddressContractUsingGET1Params
- func NewAddressContractUsingGET1ParamsWithContext(ctx context.Context) *AddressContractUsingGET1Params
- func NewAddressContractUsingGET1ParamsWithHTTPClient(client *http.Client) *AddressContractUsingGET1Params
- func NewAddressContractUsingGET1ParamsWithTimeout(timeout time.Duration) *AddressContractUsingGET1Params
- func (o *AddressContractUsingGET1Params) SetAddress(address string)
- func (o *AddressContractUsingGET1Params) SetAuthorization(authorization *string)
- func (o *AddressContractUsingGET1Params) SetChainID(chainID *string)
- func (o *AddressContractUsingGET1Params) SetContext(ctx context.Context)
- func (o *AddressContractUsingGET1Params) SetHTTPClient(client *http.Client)
- func (o *AddressContractUsingGET1Params) SetTimeout(timeout time.Duration)
- func (o *AddressContractUsingGET1Params) WithAddress(address string) *AddressContractUsingGET1Params
- func (o *AddressContractUsingGET1Params) WithAuthorization(authorization *string) *AddressContractUsingGET1Params
- func (o *AddressContractUsingGET1Params) WithChainID(chainID *string) *AddressContractUsingGET1Params
- func (o *AddressContractUsingGET1Params) WithContext(ctx context.Context) *AddressContractUsingGET1Params
- func (o *AddressContractUsingGET1Params) WithHTTPClient(client *http.Client) *AddressContractUsingGET1Params
- func (o *AddressContractUsingGET1Params) WithTimeout(timeout time.Duration) *AddressContractUsingGET1Params
- func (o *AddressContractUsingGET1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddressContractUsingGET1Reader
- type AddressContractUsingGET1Unauthorized
- type ApprovalContractUsingGETForbidden
- type ApprovalContractUsingGETNotFound
- type ApprovalContractUsingGETOK
- type ApprovalContractUsingGETParams
- func NewApprovalContractUsingGETParams() *ApprovalContractUsingGETParams
- func NewApprovalContractUsingGETParamsWithContext(ctx context.Context) *ApprovalContractUsingGETParams
- func NewApprovalContractUsingGETParamsWithHTTPClient(client *http.Client) *ApprovalContractUsingGETParams
- func NewApprovalContractUsingGETParamsWithTimeout(timeout time.Duration) *ApprovalContractUsingGETParams
- func (o *ApprovalContractUsingGETParams) SetAuthorization(authorization *string)
- func (o *ApprovalContractUsingGETParams) SetChainID(chainID string)
- func (o *ApprovalContractUsingGETParams) SetContext(ctx context.Context)
- func (o *ApprovalContractUsingGETParams) SetContractAddresses(contractAddresses string)
- func (o *ApprovalContractUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *ApprovalContractUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *ApprovalContractUsingGETParams) WithAuthorization(authorization *string) *ApprovalContractUsingGETParams
- func (o *ApprovalContractUsingGETParams) WithChainID(chainID string) *ApprovalContractUsingGETParams
- func (o *ApprovalContractUsingGETParams) WithContext(ctx context.Context) *ApprovalContractUsingGETParams
- func (o *ApprovalContractUsingGETParams) WithContractAddresses(contractAddresses string) *ApprovalContractUsingGETParams
- func (o *ApprovalContractUsingGETParams) WithHTTPClient(client *http.Client) *ApprovalContractUsingGETParams
- func (o *ApprovalContractUsingGETParams) WithTimeout(timeout time.Duration) *ApprovalContractUsingGETParams
- func (o *ApprovalContractUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ApprovalContractUsingGETReader
- type ApprovalContractUsingGETUnauthorized
- type Client
- func (a *Client) AddressContractUsingGET1(params *AddressContractUsingGET1Params) (*AddressContractUsingGET1OK, error)
- func (a *Client) ApprovalContractUsingGET(params *ApprovalContractUsingGETParams) (*ApprovalContractUsingGETOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
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 ¶
func (o *AddressContractUsingGET1Forbidden) Error() string
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 ¶
func (o *AddressContractUsingGET1NotFound) Error() string
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 (o *AddressContractUsingGET1OK) Error() string
func (*AddressContractUsingGET1OK) GetPayload ¶
func (o *AddressContractUsingGET1OK) GetPayload() *models.ResponseWrapperAddressContract
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 ¶
func (o *AddressContractUsingGET1Params) WithAddress(address string) *AddressContractUsingGET1Params
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 ¶
func (o *AddressContractUsingGET1Params) WithChainID(chainID *string) *AddressContractUsingGET1Params
WithChainID adds the chainID to the address contract using g e t 1 params
func (*AddressContractUsingGET1Params) WithContext ¶
func (o *AddressContractUsingGET1Params) WithContext(ctx context.Context) *AddressContractUsingGET1Params
WithContext adds the context to the address contract using g e t 1 params
func (*AddressContractUsingGET1Params) WithHTTPClient ¶
func (o *AddressContractUsingGET1Params) WithHTTPClient(client *http.Client) *AddressContractUsingGET1Params
WithHTTPClient adds the HTTPClient to the address contract using g e t 1 params
func (*AddressContractUsingGET1Params) WithTimeout ¶
func (o *AddressContractUsingGET1Params) WithTimeout(timeout time.Duration) *AddressContractUsingGET1Params
WithTimeout adds the timeout to the address contract using g e t 1 params
func (*AddressContractUsingGET1Params) WriteToRequest ¶
func (o *AddressContractUsingGET1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *AddressContractUsingGET1Unauthorized) Error() string
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 ¶
func (o *ApprovalContractUsingGETForbidden) Error() string
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 ¶
func (o *ApprovalContractUsingGETNotFound) Error() string
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 (o *ApprovalContractUsingGETOK) Error() string
func (*ApprovalContractUsingGETOK) GetPayload ¶
func (o *ApprovalContractUsingGETOK) GetPayload() *models.ResponseWrapperContractApproveResponse
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 ¶
func (o *ApprovalContractUsingGETParams) WithChainID(chainID string) *ApprovalContractUsingGETParams
WithChainID adds the chainID to the approval contract using g e t params
func (*ApprovalContractUsingGETParams) WithContext ¶
func (o *ApprovalContractUsingGETParams) WithContext(ctx context.Context) *ApprovalContractUsingGETParams
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 ¶
func (o *ApprovalContractUsingGETParams) WithHTTPClient(client *http.Client) *ApprovalContractUsingGETParams
WithHTTPClient adds the HTTPClient to the approval contract using g e t params
func (*ApprovalContractUsingGETParams) WithTimeout ¶
func (o *ApprovalContractUsingGETParams) WithTimeout(timeout time.Duration) *ApprovalContractUsingGETParams
WithTimeout adds the timeout to the approval contract using g e t params
func (*ApprovalContractUsingGETParams) WriteToRequest ¶
func (o *ApprovalContractUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ApprovalContractUsingGETUnauthorized) Error() string
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.