operations

package
v5.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIForbidden

type APIForbidden struct {
	Payload *models.Error
}

APIForbidden handles this case with default header values.

Error

func NewAPIForbidden

func NewAPIForbidden() *APIForbidden

NewAPIForbidden creates a APIForbidden with default headers values

func (*APIForbidden) Error

func (o *APIForbidden) Error() string

type APIOK

type APIOK struct {
	Payload models.API
}

APIOK handles this case with default header values.

API description

func NewAPIOK

func NewAPIOK() *APIOK

NewAPIOK creates a APIOK with default headers values

func (*APIOK) Error

func (o *APIOK) Error() string

type APIParams

type APIParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

APIParams contains all the parameters to send to the API endpoint for the Api operation typically these are written to a http.Request

func NewAPIParams

func NewAPIParams() *APIParams

NewAPIParams creates a new APIParams object with the default values initialized.

func NewAPIParamsWithContext

func NewAPIParamsWithContext(ctx context.Context) *APIParams

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

func NewAPIParamsWithHTTPClient

func NewAPIParamsWithHTTPClient(client *http.Client) *APIParams

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

func NewAPIParamsWithTimeout

func NewAPIParamsWithTimeout(timeout time.Duration) *APIParams

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

func (*APIParams) SetContext

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

SetContext adds the context to the Api params

func (*APIParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the Api params

func (*APIParams) SetTimeout

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

SetTimeout adds the timeout to the Api params

func (*APIParams) WithContext

func (o *APIParams) WithContext(ctx context.Context) *APIParams

WithContext adds the context to the Api params

func (*APIParams) WithHTTPClient

func (o *APIParams) WithHTTPClient(client *http.Client) *APIParams

WithHTTPClient adds the HTTPClient to the Api params

func (*APIParams) WithTimeout

func (o *APIParams) WithTimeout(timeout time.Duration) *APIParams

WithTimeout adds the timeout to the Api params

func (*APIParams) WriteToRequest

func (o *APIParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type APIReader

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

APIReader is a Reader for the API structure.

func (*APIReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type APIVersionInternalServerError

type APIVersionInternalServerError struct {
	Payload *models.Error
}

APIVersionInternalServerError handles this case with default header values.

Error

func NewAPIVersionInternalServerError

func NewAPIVersionInternalServerError() *APIVersionInternalServerError

NewAPIVersionInternalServerError creates a APIVersionInternalServerError with default headers values

func (*APIVersionInternalServerError) Error

type APIVersionOK

type APIVersionOK struct {
	Payload *models.APIVersion
}

APIVersionOK handles this case with default header values.

Sophia compiler version

func NewAPIVersionOK

func NewAPIVersionOK() *APIVersionOK

NewAPIVersionOK creates a APIVersionOK with default headers values

func (*APIVersionOK) Error

func (o *APIVersionOK) Error() string

type APIVersionParams

type APIVersionParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

APIVersionParams contains all the parameters to send to the API endpoint for the API version operation typically these are written to a http.Request

func NewAPIVersionParams

func NewAPIVersionParams() *APIVersionParams

NewAPIVersionParams creates a new APIVersionParams object with the default values initialized.

func NewAPIVersionParamsWithContext

func NewAPIVersionParamsWithContext(ctx context.Context) *APIVersionParams

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

func NewAPIVersionParamsWithHTTPClient

func NewAPIVersionParamsWithHTTPClient(client *http.Client) *APIVersionParams

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

func NewAPIVersionParamsWithTimeout

func NewAPIVersionParamsWithTimeout(timeout time.Duration) *APIVersionParams

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

func (*APIVersionParams) SetContext

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

SetContext adds the context to the API version params

func (*APIVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the API version params

func (*APIVersionParams) SetTimeout

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

SetTimeout adds the timeout to the API version params

func (*APIVersionParams) WithContext

func (o *APIVersionParams) WithContext(ctx context.Context) *APIVersionParams

WithContext adds the context to the API version params

func (*APIVersionParams) WithHTTPClient

func (o *APIVersionParams) WithHTTPClient(client *http.Client) *APIVersionParams

WithHTTPClient adds the HTTPClient to the API version params

func (*APIVersionParams) WithTimeout

func (o *APIVersionParams) WithTimeout(timeout time.Duration) *APIVersionParams

WithTimeout adds the timeout to the API version params

func (*APIVersionParams) WriteToRequest

func (o *APIVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type APIVersionReader

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

APIVersionReader is a Reader for the APIVersion structure.

func (*APIVersionReader) ReadResponse

func (o *APIVersionReader) 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 operations API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new operations API client.

func (*Client) API

func (a *Client) API(params *APIParams) (*APIOK, error)

API Get the Api description

func (*Client) APIVersion

func (a *Client) APIVersion(params *APIVersionParams) (*APIVersionOK, error)

APIVersion Get the version of the API

func (*Client) CompileContract

func (a *Client) CompileContract(params *CompileContractParams) (*CompileContractOK, error)

CompileContract Compile a sophia contract from source and return byte code

func (*Client) DecodeCallResult

func (a *Client) DecodeCallResult(params *DecodeCallResultParams) (*DecodeCallResultOK, error)

DecodeCallResult Decode the result of contract call

func (*Client) DecodeCalldataBytecode

func (a *Client) DecodeCalldataBytecode(params *DecodeCalldataBytecodeParams) (*DecodeCalldataBytecodeOK, error)

DecodeCalldataBytecode Identify function name and arguments in Calldata for a compiled contract

func (*Client) DecodeCalldataSource

func (a *Client) DecodeCalldataSource(params *DecodeCalldataSourceParams) (*DecodeCalldataSourceOK, error)

DecodeCalldataSource Identify function name and arguments in Calldata for a (partial) contract

func (*Client) DecodeData

func (a *Client) DecodeData(params *DecodeDataParams) (*DecodeDataOK, error)

DecodeData Decode data as retuned by a contract call. - Legacy decoding

func (*Client) EncodeCalldata

func (a *Client) EncodeCalldata(params *EncodeCalldataParams) (*EncodeCalldataOK, error)

EncodeCalldata Encode Sophia function call according to sophia ABI.

func (*Client) GenerateACI

func (a *Client) GenerateACI(params *GenerateACIParams) (*GenerateACIOK, error)

GenerateACI Generate an Aeternity Contract Interface (ACI) for contract

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Version

func (a *Client) Version(params *VersionParams) (*VersionOK, error)

Version Get the version of the underlying Sophia compiler version

type CompileContractBadRequest

type CompileContractBadRequest struct {
	Payload *models.Error
}

CompileContractBadRequest handles this case with default header values.

Invalid data

func NewCompileContractBadRequest

func NewCompileContractBadRequest() *CompileContractBadRequest

NewCompileContractBadRequest creates a CompileContractBadRequest with default headers values

func (*CompileContractBadRequest) Error

func (o *CompileContractBadRequest) Error() string

type CompileContractForbidden

type CompileContractForbidden struct {
	Payload models.CompilerErrors
}

CompileContractForbidden handles this case with default header values.

Invalid contract

func NewCompileContractForbidden

func NewCompileContractForbidden() *CompileContractForbidden

NewCompileContractForbidden creates a CompileContractForbidden with default headers values

func (*CompileContractForbidden) Error

func (o *CompileContractForbidden) Error() string

type CompileContractOK

type CompileContractOK struct {
	Payload *models.ByteCode
}

CompileContractOK handles this case with default header values.

Byte code response

func NewCompileContractOK

func NewCompileContractOK() *CompileContractOK

NewCompileContractOK creates a CompileContractOK with default headers values

func (*CompileContractOK) Error

func (o *CompileContractOK) Error() string

type CompileContractParams

type CompileContractParams struct {

	/*Body
	  contract code

	*/
	Body *models.Contract

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

CompileContractParams contains all the parameters to send to the API endpoint for the compile contract operation typically these are written to a http.Request

func NewCompileContractParams

func NewCompileContractParams() *CompileContractParams

NewCompileContractParams creates a new CompileContractParams object with the default values initialized.

func NewCompileContractParamsWithContext

func NewCompileContractParamsWithContext(ctx context.Context) *CompileContractParams

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

func NewCompileContractParamsWithHTTPClient

func NewCompileContractParamsWithHTTPClient(client *http.Client) *CompileContractParams

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

func NewCompileContractParamsWithTimeout

func NewCompileContractParamsWithTimeout(timeout time.Duration) *CompileContractParams

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

func (*CompileContractParams) SetBody

func (o *CompileContractParams) SetBody(body *models.Contract)

SetBody adds the body to the compile contract params

func (*CompileContractParams) SetContext

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

SetContext adds the context to the compile contract params

func (*CompileContractParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the compile contract params

func (*CompileContractParams) SetTimeout

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

SetTimeout adds the timeout to the compile contract params

func (*CompileContractParams) WithBody

WithBody adds the body to the compile contract params

func (*CompileContractParams) WithContext

WithContext adds the context to the compile contract params

func (*CompileContractParams) WithHTTPClient

func (o *CompileContractParams) WithHTTPClient(client *http.Client) *CompileContractParams

WithHTTPClient adds the HTTPClient to the compile contract params

func (*CompileContractParams) WithTimeout

func (o *CompileContractParams) WithTimeout(timeout time.Duration) *CompileContractParams

WithTimeout adds the timeout to the compile contract params

func (*CompileContractParams) WriteToRequest

func (o *CompileContractParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CompileContractReader

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

CompileContractReader is a Reader for the CompileContract structure.

func (*CompileContractReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DecodeCallResultBadRequest

type DecodeCallResultBadRequest struct {
	Payload *models.Error
}

DecodeCallResultBadRequest handles this case with default header values.

Invalid data

func NewDecodeCallResultBadRequest

func NewDecodeCallResultBadRequest() *DecodeCallResultBadRequest

NewDecodeCallResultBadRequest creates a DecodeCallResultBadRequest with default headers values

func (*DecodeCallResultBadRequest) Error

type DecodeCallResultForbidden

type DecodeCallResultForbidden struct {
	Payload models.CompilerErrors
}

DecodeCallResultForbidden handles this case with default header values.

Invalid data

func NewDecodeCallResultForbidden

func NewDecodeCallResultForbidden() *DecodeCallResultForbidden

NewDecodeCallResultForbidden creates a DecodeCallResultForbidden with default headers values

func (*DecodeCallResultForbidden) Error

func (o *DecodeCallResultForbidden) Error() string

type DecodeCallResultOK

type DecodeCallResultOK struct {
	Payload models.SophiaCallResult
}

DecodeCallResultOK handles this case with default header values.

Json encoded data

func NewDecodeCallResultOK

func NewDecodeCallResultOK() *DecodeCallResultOK

NewDecodeCallResultOK creates a DecodeCallResultOK with default headers values

func (*DecodeCallResultOK) Error

func (o *DecodeCallResultOK) Error() string

type DecodeCallResultParams

type DecodeCallResultParams struct {

	/*Body
	  Binary data in Sophia ABI format

	*/
	Body *models.SophiaCallResultInput

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

DecodeCallResultParams contains all the parameters to send to the API endpoint for the decode call result operation typically these are written to a http.Request

func NewDecodeCallResultParams

func NewDecodeCallResultParams() *DecodeCallResultParams

NewDecodeCallResultParams creates a new DecodeCallResultParams object with the default values initialized.

func NewDecodeCallResultParamsWithContext

func NewDecodeCallResultParamsWithContext(ctx context.Context) *DecodeCallResultParams

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

func NewDecodeCallResultParamsWithHTTPClient

func NewDecodeCallResultParamsWithHTTPClient(client *http.Client) *DecodeCallResultParams

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

func NewDecodeCallResultParamsWithTimeout

func NewDecodeCallResultParamsWithTimeout(timeout time.Duration) *DecodeCallResultParams

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

func (*DecodeCallResultParams) SetBody

SetBody adds the body to the decode call result params

func (*DecodeCallResultParams) SetContext

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

SetContext adds the context to the decode call result params

func (*DecodeCallResultParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the decode call result params

func (*DecodeCallResultParams) SetTimeout

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

SetTimeout adds the timeout to the decode call result params

func (*DecodeCallResultParams) WithBody

WithBody adds the body to the decode call result params

func (*DecodeCallResultParams) WithContext

WithContext adds the context to the decode call result params

func (*DecodeCallResultParams) WithHTTPClient

func (o *DecodeCallResultParams) WithHTTPClient(client *http.Client) *DecodeCallResultParams

WithHTTPClient adds the HTTPClient to the decode call result params

func (*DecodeCallResultParams) WithTimeout

WithTimeout adds the timeout to the decode call result params

func (*DecodeCallResultParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DecodeCallResultReader

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

DecodeCallResultReader is a Reader for the DecodeCallResult structure.

func (*DecodeCallResultReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DecodeCalldataBytecodeBadRequest

type DecodeCalldataBytecodeBadRequest struct {
	Payload *models.Error
}

DecodeCalldataBytecodeBadRequest handles this case with default header values.

Invalid data

func NewDecodeCalldataBytecodeBadRequest

func NewDecodeCalldataBytecodeBadRequest() *DecodeCalldataBytecodeBadRequest

NewDecodeCalldataBytecodeBadRequest creates a DecodeCalldataBytecodeBadRequest with default headers values

func (*DecodeCalldataBytecodeBadRequest) Error

type DecodeCalldataBytecodeForbidden

type DecodeCalldataBytecodeForbidden struct {
	Payload *models.Error
}

DecodeCalldataBytecodeForbidden handles this case with default header values.

Invalid contract

func NewDecodeCalldataBytecodeForbidden

func NewDecodeCalldataBytecodeForbidden() *DecodeCalldataBytecodeForbidden

NewDecodeCalldataBytecodeForbidden creates a DecodeCalldataBytecodeForbidden with default headers values

func (*DecodeCalldataBytecodeForbidden) Error

type DecodeCalldataBytecodeOK

type DecodeCalldataBytecodeOK struct {
	Payload *models.DecodedCalldata
}

DecodeCalldataBytecodeOK handles this case with default header values.

Binary encoded calldata

func NewDecodeCalldataBytecodeOK

func NewDecodeCalldataBytecodeOK() *DecodeCalldataBytecodeOK

NewDecodeCalldataBytecodeOK creates a DecodeCalldataBytecodeOK with default headers values

func (*DecodeCalldataBytecodeOK) Error

func (o *DecodeCalldataBytecodeOK) Error() string

type DecodeCalldataBytecodeParams

type DecodeCalldataBytecodeParams struct {

	/*Body
	  Calldata + compiled contract

	*/
	Body *models.DecodeCalldataBytecode

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

DecodeCalldataBytecodeParams contains all the parameters to send to the API endpoint for the decode calldata bytecode operation typically these are written to a http.Request

func NewDecodeCalldataBytecodeParams

func NewDecodeCalldataBytecodeParams() *DecodeCalldataBytecodeParams

NewDecodeCalldataBytecodeParams creates a new DecodeCalldataBytecodeParams object with the default values initialized.

func NewDecodeCalldataBytecodeParamsWithContext

func NewDecodeCalldataBytecodeParamsWithContext(ctx context.Context) *DecodeCalldataBytecodeParams

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

func NewDecodeCalldataBytecodeParamsWithHTTPClient

func NewDecodeCalldataBytecodeParamsWithHTTPClient(client *http.Client) *DecodeCalldataBytecodeParams

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

func NewDecodeCalldataBytecodeParamsWithTimeout

func NewDecodeCalldataBytecodeParamsWithTimeout(timeout time.Duration) *DecodeCalldataBytecodeParams

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

func (*DecodeCalldataBytecodeParams) SetBody

SetBody adds the body to the decode calldata bytecode params

func (*DecodeCalldataBytecodeParams) SetContext

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

SetContext adds the context to the decode calldata bytecode params

func (*DecodeCalldataBytecodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the decode calldata bytecode params

func (*DecodeCalldataBytecodeParams) SetTimeout

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

SetTimeout adds the timeout to the decode calldata bytecode params

func (*DecodeCalldataBytecodeParams) WithBody

WithBody adds the body to the decode calldata bytecode params

func (*DecodeCalldataBytecodeParams) WithContext

WithContext adds the context to the decode calldata bytecode params

func (*DecodeCalldataBytecodeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the decode calldata bytecode params

func (*DecodeCalldataBytecodeParams) WithTimeout

WithTimeout adds the timeout to the decode calldata bytecode params

func (*DecodeCalldataBytecodeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DecodeCalldataBytecodeReader

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

DecodeCalldataBytecodeReader is a Reader for the DecodeCalldataBytecode structure.

func (*DecodeCalldataBytecodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DecodeCalldataSourceBadRequest

type DecodeCalldataSourceBadRequest struct {
	Payload *models.Error
}

DecodeCalldataSourceBadRequest handles this case with default header values.

Invalid data

func NewDecodeCalldataSourceBadRequest

func NewDecodeCalldataSourceBadRequest() *DecodeCalldataSourceBadRequest

NewDecodeCalldataSourceBadRequest creates a DecodeCalldataSourceBadRequest with default headers values

func (*DecodeCalldataSourceBadRequest) Error

type DecodeCalldataSourceForbidden

type DecodeCalldataSourceForbidden struct {
	Payload models.CompilerErrors
}

DecodeCalldataSourceForbidden handles this case with default header values.

Invalid data

func NewDecodeCalldataSourceForbidden

func NewDecodeCalldataSourceForbidden() *DecodeCalldataSourceForbidden

NewDecodeCalldataSourceForbidden creates a DecodeCalldataSourceForbidden with default headers values

func (*DecodeCalldataSourceForbidden) Error

type DecodeCalldataSourceOK

type DecodeCalldataSourceOK struct {
	Payload *models.DecodedCalldata
}

DecodeCalldataSourceOK handles this case with default header values.

Binary encoded calldata

func NewDecodeCalldataSourceOK

func NewDecodeCalldataSourceOK() *DecodeCalldataSourceOK

NewDecodeCalldataSourceOK creates a DecodeCalldataSourceOK with default headers values

func (*DecodeCalldataSourceOK) Error

func (o *DecodeCalldataSourceOK) Error() string

type DecodeCalldataSourceParams

type DecodeCalldataSourceParams struct {

	/*Body
	  Calldata + contract (stub) code

	*/
	Body *models.DecodeCalldataSource

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

DecodeCalldataSourceParams contains all the parameters to send to the API endpoint for the decode calldata source operation typically these are written to a http.Request

func NewDecodeCalldataSourceParams

func NewDecodeCalldataSourceParams() *DecodeCalldataSourceParams

NewDecodeCalldataSourceParams creates a new DecodeCalldataSourceParams object with the default values initialized.

func NewDecodeCalldataSourceParamsWithContext

func NewDecodeCalldataSourceParamsWithContext(ctx context.Context) *DecodeCalldataSourceParams

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

func NewDecodeCalldataSourceParamsWithHTTPClient

func NewDecodeCalldataSourceParamsWithHTTPClient(client *http.Client) *DecodeCalldataSourceParams

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

func NewDecodeCalldataSourceParamsWithTimeout

func NewDecodeCalldataSourceParamsWithTimeout(timeout time.Duration) *DecodeCalldataSourceParams

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

func (*DecodeCalldataSourceParams) SetBody

SetBody adds the body to the decode calldata source params

func (*DecodeCalldataSourceParams) SetContext

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

SetContext adds the context to the decode calldata source params

func (*DecodeCalldataSourceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the decode calldata source params

func (*DecodeCalldataSourceParams) SetTimeout

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

SetTimeout adds the timeout to the decode calldata source params

func (*DecodeCalldataSourceParams) WithBody

WithBody adds the body to the decode calldata source params

func (*DecodeCalldataSourceParams) WithContext

WithContext adds the context to the decode calldata source params

func (*DecodeCalldataSourceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the decode calldata source params

func (*DecodeCalldataSourceParams) WithTimeout

WithTimeout adds the timeout to the decode calldata source params

func (*DecodeCalldataSourceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DecodeCalldataSourceReader

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

DecodeCalldataSourceReader is a Reader for the DecodeCalldataSource structure.

func (*DecodeCalldataSourceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DecodeDataBadRequest

type DecodeDataBadRequest struct {
	Payload *models.Error
}

DecodeDataBadRequest handles this case with default header values.

Invalid data

func NewDecodeDataBadRequest

func NewDecodeDataBadRequest() *DecodeDataBadRequest

NewDecodeDataBadRequest creates a DecodeDataBadRequest with default headers values

func (*DecodeDataBadRequest) Error

func (o *DecodeDataBadRequest) Error() string

type DecodeDataForbidden

type DecodeDataForbidden struct {
	Payload models.CompilerErrors
}

DecodeDataForbidden handles this case with default header values.

Invalid data

func NewDecodeDataForbidden

func NewDecodeDataForbidden() *DecodeDataForbidden

NewDecodeDataForbidden creates a DecodeDataForbidden with default headers values

func (*DecodeDataForbidden) Error

func (o *DecodeDataForbidden) Error() string

type DecodeDataOK

type DecodeDataOK struct {
	Payload *models.SophiaJSONData
}

DecodeDataOK handles this case with default header values.

Json encoded data

func NewDecodeDataOK

func NewDecodeDataOK() *DecodeDataOK

NewDecodeDataOK creates a DecodeDataOK with default headers values

func (*DecodeDataOK) Error

func (o *DecodeDataOK) Error() string

type DecodeDataParams

type DecodeDataParams struct {

	/*Body
	  Binary data in Sophia ABI format

	*/
	Body *models.SophiaBinaryData

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

DecodeDataParams contains all the parameters to send to the API endpoint for the decode data operation typically these are written to a http.Request

func NewDecodeDataParams

func NewDecodeDataParams() *DecodeDataParams

NewDecodeDataParams creates a new DecodeDataParams object with the default values initialized.

func NewDecodeDataParamsWithContext

func NewDecodeDataParamsWithContext(ctx context.Context) *DecodeDataParams

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

func NewDecodeDataParamsWithHTTPClient

func NewDecodeDataParamsWithHTTPClient(client *http.Client) *DecodeDataParams

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

func NewDecodeDataParamsWithTimeout

func NewDecodeDataParamsWithTimeout(timeout time.Duration) *DecodeDataParams

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

func (*DecodeDataParams) SetBody

func (o *DecodeDataParams) SetBody(body *models.SophiaBinaryData)

SetBody adds the body to the decode data params

func (*DecodeDataParams) SetContext

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

SetContext adds the context to the decode data params

func (*DecodeDataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the decode data params

func (*DecodeDataParams) SetTimeout

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

SetTimeout adds the timeout to the decode data params

func (*DecodeDataParams) WithBody

WithBody adds the body to the decode data params

func (*DecodeDataParams) WithContext

func (o *DecodeDataParams) WithContext(ctx context.Context) *DecodeDataParams

WithContext adds the context to the decode data params

func (*DecodeDataParams) WithHTTPClient

func (o *DecodeDataParams) WithHTTPClient(client *http.Client) *DecodeDataParams

WithHTTPClient adds the HTTPClient to the decode data params

func (*DecodeDataParams) WithTimeout

func (o *DecodeDataParams) WithTimeout(timeout time.Duration) *DecodeDataParams

WithTimeout adds the timeout to the decode data params

func (*DecodeDataParams) WriteToRequest

func (o *DecodeDataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DecodeDataReader

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

DecodeDataReader is a Reader for the DecodeData structure.

func (*DecodeDataReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EncodeCalldataBadRequest

type EncodeCalldataBadRequest struct {
	Payload *models.Error
}

EncodeCalldataBadRequest handles this case with default header values.

Invalid data

func NewEncodeCalldataBadRequest

func NewEncodeCalldataBadRequest() *EncodeCalldataBadRequest

NewEncodeCalldataBadRequest creates a EncodeCalldataBadRequest with default headers values

func (*EncodeCalldataBadRequest) Error

func (o *EncodeCalldataBadRequest) Error() string

type EncodeCalldataForbidden

type EncodeCalldataForbidden struct {
	Payload models.CompilerErrors
}

EncodeCalldataForbidden handles this case with default header values.

Invalid contract

func NewEncodeCalldataForbidden

func NewEncodeCalldataForbidden() *EncodeCalldataForbidden

NewEncodeCalldataForbidden creates a EncodeCalldataForbidden with default headers values

func (*EncodeCalldataForbidden) Error

func (o *EncodeCalldataForbidden) Error() string

type EncodeCalldataOK

type EncodeCalldataOK struct {
	Payload *models.Calldata
}

EncodeCalldataOK handles this case with default header values.

Binary encoded calldata

func NewEncodeCalldataOK

func NewEncodeCalldataOK() *EncodeCalldataOK

NewEncodeCalldataOK creates a EncodeCalldataOK with default headers values

func (*EncodeCalldataOK) Error

func (o *EncodeCalldataOK) Error() string

type EncodeCalldataParams

type EncodeCalldataParams struct {

	/*Body
	  Sophia function call - contract code + function name + arguments

	*/
	Body *models.FunctionCallInput

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

EncodeCalldataParams contains all the parameters to send to the API endpoint for the encode calldata operation typically these are written to a http.Request

func NewEncodeCalldataParams

func NewEncodeCalldataParams() *EncodeCalldataParams

NewEncodeCalldataParams creates a new EncodeCalldataParams object with the default values initialized.

func NewEncodeCalldataParamsWithContext

func NewEncodeCalldataParamsWithContext(ctx context.Context) *EncodeCalldataParams

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

func NewEncodeCalldataParamsWithHTTPClient

func NewEncodeCalldataParamsWithHTTPClient(client *http.Client) *EncodeCalldataParams

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

func NewEncodeCalldataParamsWithTimeout

func NewEncodeCalldataParamsWithTimeout(timeout time.Duration) *EncodeCalldataParams

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

func (*EncodeCalldataParams) SetBody

func (o *EncodeCalldataParams) SetBody(body *models.FunctionCallInput)

SetBody adds the body to the encode calldata params

func (*EncodeCalldataParams) SetContext

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

SetContext adds the context to the encode calldata params

func (*EncodeCalldataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the encode calldata params

func (*EncodeCalldataParams) SetTimeout

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

SetTimeout adds the timeout to the encode calldata params

func (*EncodeCalldataParams) WithBody

WithBody adds the body to the encode calldata params

func (*EncodeCalldataParams) WithContext

WithContext adds the context to the encode calldata params

func (*EncodeCalldataParams) WithHTTPClient

func (o *EncodeCalldataParams) WithHTTPClient(client *http.Client) *EncodeCalldataParams

WithHTTPClient adds the HTTPClient to the encode calldata params

func (*EncodeCalldataParams) WithTimeout

func (o *EncodeCalldataParams) WithTimeout(timeout time.Duration) *EncodeCalldataParams

WithTimeout adds the timeout to the encode calldata params

func (*EncodeCalldataParams) WriteToRequest

func (o *EncodeCalldataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type EncodeCalldataReader

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

EncodeCalldataReader is a Reader for the EncodeCalldata structure.

func (*EncodeCalldataReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GenerateACIBadRequest

type GenerateACIBadRequest struct {
	Payload *models.Error
}

GenerateACIBadRequest handles this case with default header values.

Invalid input

func NewGenerateACIBadRequest

func NewGenerateACIBadRequest() *GenerateACIBadRequest

NewGenerateACIBadRequest creates a GenerateACIBadRequest with default headers values

func (*GenerateACIBadRequest) Error

func (o *GenerateACIBadRequest) Error() string

type GenerateACIForbidden

type GenerateACIForbidden struct {
	Payload models.CompilerErrors
}

GenerateACIForbidden handles this case with default header values.

Compiler errors

func NewGenerateACIForbidden

func NewGenerateACIForbidden() *GenerateACIForbidden

NewGenerateACIForbidden creates a GenerateACIForbidden with default headers values

func (*GenerateACIForbidden) Error

func (o *GenerateACIForbidden) Error() string

type GenerateACIOK

type GenerateACIOK struct {
	Payload *models.ACI
}

GenerateACIOK handles this case with default header values.

ACI for contract

func NewGenerateACIOK

func NewGenerateACIOK() *GenerateACIOK

NewGenerateACIOK creates a GenerateACIOK with default headers values

func (*GenerateACIOK) Error

func (o *GenerateACIOK) Error() string

type GenerateACIParams

type GenerateACIParams struct {

	/*Body
	  contract code

	*/
	Body *models.Contract

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

GenerateACIParams contains all the parameters to send to the API endpoint for the generate a c i operation typically these are written to a http.Request

func NewGenerateACIParams

func NewGenerateACIParams() *GenerateACIParams

NewGenerateACIParams creates a new GenerateACIParams object with the default values initialized.

func NewGenerateACIParamsWithContext

func NewGenerateACIParamsWithContext(ctx context.Context) *GenerateACIParams

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

func NewGenerateACIParamsWithHTTPClient

func NewGenerateACIParamsWithHTTPClient(client *http.Client) *GenerateACIParams

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

func NewGenerateACIParamsWithTimeout

func NewGenerateACIParamsWithTimeout(timeout time.Duration) *GenerateACIParams

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

func (*GenerateACIParams) SetBody

func (o *GenerateACIParams) SetBody(body *models.Contract)

SetBody adds the body to the generate a c i params

func (*GenerateACIParams) SetContext

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

SetContext adds the context to the generate a c i params

func (*GenerateACIParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the generate a c i params

func (*GenerateACIParams) SetTimeout

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

SetTimeout adds the timeout to the generate a c i params

func (*GenerateACIParams) WithBody

func (o *GenerateACIParams) WithBody(body *models.Contract) *GenerateACIParams

WithBody adds the body to the generate a c i params

func (*GenerateACIParams) WithContext

func (o *GenerateACIParams) WithContext(ctx context.Context) *GenerateACIParams

WithContext adds the context to the generate a c i params

func (*GenerateACIParams) WithHTTPClient

func (o *GenerateACIParams) WithHTTPClient(client *http.Client) *GenerateACIParams

WithHTTPClient adds the HTTPClient to the generate a c i params

func (*GenerateACIParams) WithTimeout

func (o *GenerateACIParams) WithTimeout(timeout time.Duration) *GenerateACIParams

WithTimeout adds the timeout to the generate a c i params

func (*GenerateACIParams) WriteToRequest

func (o *GenerateACIParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GenerateACIReader

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

GenerateACIReader is a Reader for the GenerateACI structure.

func (*GenerateACIReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type VersionInternalServerError

type VersionInternalServerError struct {
	Payload *models.Error
}

VersionInternalServerError handles this case with default header values.

Error

func NewVersionInternalServerError

func NewVersionInternalServerError() *VersionInternalServerError

NewVersionInternalServerError creates a VersionInternalServerError with default headers values

func (*VersionInternalServerError) Error

type VersionOK

type VersionOK struct {
	Payload *models.CompilerVersion
}

VersionOK handles this case with default header values.

Sophia compiler version

func NewVersionOK

func NewVersionOK() *VersionOK

NewVersionOK creates a VersionOK with default headers values

func (*VersionOK) Error

func (o *VersionOK) Error() string

type VersionParams

type VersionParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

VersionParams contains all the parameters to send to the API endpoint for the version operation typically these are written to a http.Request

func NewVersionParams

func NewVersionParams() *VersionParams

NewVersionParams creates a new VersionParams object with the default values initialized.

func NewVersionParamsWithContext

func NewVersionParamsWithContext(ctx context.Context) *VersionParams

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

func NewVersionParamsWithHTTPClient

func NewVersionParamsWithHTTPClient(client *http.Client) *VersionParams

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

func NewVersionParamsWithTimeout

func NewVersionParamsWithTimeout(timeout time.Duration) *VersionParams

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

func (*VersionParams) SetContext

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

SetContext adds the context to the version params

func (*VersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the version params

func (*VersionParams) SetTimeout

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

SetTimeout adds the timeout to the version params

func (*VersionParams) WithContext

func (o *VersionParams) WithContext(ctx context.Context) *VersionParams

WithContext adds the context to the version params

func (*VersionParams) WithHTTPClient

func (o *VersionParams) WithHTTPClient(client *http.Client) *VersionParams

WithHTTPClient adds the HTTPClient to the version params

func (*VersionParams) WithTimeout

func (o *VersionParams) WithTimeout(timeout time.Duration) *VersionParams

WithTimeout adds the timeout to the version params

func (*VersionParams) WriteToRequest

func (o *VersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type VersionReader

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

VersionReader is a Reader for the Version structure.

func (*VersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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