Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- Variables
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewBroadcastMsgExecuteContractRequest(server string, wasmContractAddress WasmContractAddress, ...) (*http.Request, error)
- func NewBroadcastMsgExecuteContractRequestWithBody(server string, wasmContractAddress WasmContractAddress, contentType string, ...) (*http.Request, error)
- func NewGetMsgExecuteContractBroadcastStatusRequest(server string, wasmContractAddress WasmContractAddress, ...) (*http.Request, error)
- func NewGetPayloadRequest(server string, hash Keccak256Hash) (*http.Request, error)
- func NewGetTaskRequest(server string, chain Chain, taskItemID TaskItemID) (*http.Request, error)
- func NewGetTasksRequest(server string, chain Chain, params *GetTasksParams) (*http.Request, error)
- func NewHealthCheckRequest(server string) (*http.Request, error)
- func NewPublishEventsRequest(server string, chain Chain, body PublishEventsJSONRequestBody) (*http.Request, error)
- func NewPublishEventsRequestWithBody(server string, chain Chain, contentType string, body io.Reader) (*http.Request, error)
- func NewQueryContractStateRequest(server string, wasmContractAddress WasmContractAddress, ...) (*http.Request, error)
- func NewQueryContractStateRequestWithBody(server string, wasmContractAddress WasmContractAddress, contentType string, ...) (*http.Request, error)
- func NewStorePayloadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func RegisterHandlers(router gin.IRouter, si ServerInterface)
- func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
- type Address
- type After
- type AppEventMetadata
- type AppInterchainTransferReceivedEvent
- type AppInterchainTransferSentEvent
- type BigInt
- type BroadcastID
- type BroadcastMsgExecuteContractJSONRequestBody
- type BroadcastMsgExecuteContractResponse
- type BroadcastResponse
- type BroadcastStatus
- type BroadcastStatusResponse
- type CallEvent
- type CallEventMetadata
- type CannotExecuteMessageEvent
- type CannotExecuteMessageEventMetadata
- type CannotExecuteMessageEventV2
- type CannotExecuteMessageEventV2Metadata
- type CannotExecuteMessageReason
- type CannotExecuteTaskEvent
- type CannotExecuteTaskReason
- type CannotRouteMessageEvent
- type CannotRouteMessageReason
- type Chain
- type Client
- func (c *Client) BroadcastMsgExecuteContract(ctx context.Context, wasmContractAddress WasmContractAddress, ...) (*http.Response, error)
- func (c *Client) BroadcastMsgExecuteContractWithBody(ctx context.Context, wasmContractAddress WasmContractAddress, ...) (*http.Response, error)
- func (c *Client) GetMsgExecuteContractBroadcastStatus(ctx context.Context, wasmContractAddress WasmContractAddress, ...) (*http.Response, error)
- func (c *Client) GetPayload(ctx context.Context, hash Keccak256Hash, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTask(ctx context.Context, chain Chain, taskItemID TaskItemID, ...) (*http.Response, error)
- func (c *Client) GetTasks(ctx context.Context, chain Chain, params *GetTasksParams, ...) (*http.Response, error)
- func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PublishEvents(ctx context.Context, chain Chain, body PublishEventsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PublishEventsWithBody(ctx context.Context, chain Chain, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) QueryContractState(ctx context.Context, wasmContractAddress WasmContractAddress, ...) (*http.Response, error)
- func (c *Client) QueryContractStateWithBody(ctx context.Context, wasmContractAddress WasmContractAddress, ...) (*http.Response, error)
- func (c *Client) StorePayloadWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) BroadcastMsgExecuteContractWithBodyWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, ...) (*BroadcastMsgExecuteContractResponse, error)
- func (c *ClientWithResponses) BroadcastMsgExecuteContractWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, ...) (*BroadcastMsgExecuteContractResponse, error)
- func (c *ClientWithResponses) GetMsgExecuteContractBroadcastStatusWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, ...) (*GetMsgExecuteContractBroadcastStatusResponse, error)
- func (c *ClientWithResponses) GetPayloadWithResponse(ctx context.Context, hash Keccak256Hash, reqEditors ...RequestEditorFn) (*GetPayloadResponse, error)
- func (c *ClientWithResponses) GetTaskWithResponse(ctx context.Context, chain Chain, taskItemID TaskItemID, ...) (*GetTaskResponse, error)
- func (c *ClientWithResponses) GetTasksWithResponse(ctx context.Context, chain Chain, params *GetTasksParams, ...) (*GetTasksResponse, error)
- func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)
- func (c *ClientWithResponses) PublishEventsWithBodyWithResponse(ctx context.Context, chain Chain, contentType string, body io.Reader, ...) (*PublishEventsResponse, error)
- func (c *ClientWithResponses) PublishEventsWithResponse(ctx context.Context, chain Chain, body PublishEventsJSONRequestBody, ...) (*PublishEventsResponse, error)
- func (c *ClientWithResponses) QueryContractStateWithBodyWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, ...) (*QueryContractStateResponse, error)
- func (c *ClientWithResponses) QueryContractStateWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, ...) (*QueryContractStateResponse, error)
- func (c *ClientWithResponses) StorePayloadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*StorePayloadResponse, error)
- type ClientWithResponsesInterface
- type ConstructProofTask
- type ContractQueryResponse
- type Cost
- func (t Cost) AsFees() (Fees, error)
- func (t Cost) AsUnsignedToken() (UnsignedToken, error)
- func (t *Cost) FromFees(v Fees) error
- func (t *Cost) FromUnsignedToken(v UnsignedToken) error
- func (t Cost) MarshalJSON() ([]byte, error)
- func (t *Cost) MergeFees(v Fees) error
- func (t *Cost) MergeUnsignedToken(v UnsignedToken) error
- func (t *Cost) UnmarshalJSON(b []byte) error
- func (f *Cost) Validate() error
- type CrossChainID
- type DestinationChainTaskMetadata
- type ErrorResponse
- type Event
- func (t Event) AsAppInterchainTransferReceivedEvent() (AppInterchainTransferReceivedEvent, error)
- func (t Event) AsAppInterchainTransferSentEvent() (AppInterchainTransferSentEvent, error)
- func (t Event) AsCallEvent() (CallEvent, error)
- func (t Event) AsCannotExecuteMessageEvent() (CannotExecuteMessageEvent, error)
- func (t Event) AsCannotExecuteMessageEventV2() (CannotExecuteMessageEventV2, error)
- func (t Event) AsCannotExecuteTaskEvent() (CannotExecuteTaskEvent, error)
- func (t Event) AsCannotRouteMessageEvent() (CannotRouteMessageEvent, error)
- func (t Event) AsGasCreditEvent() (GasCreditEvent, error)
- func (t Event) AsGasRefundedEvent() (GasRefundedEvent, error)
- func (t Event) AsITSInterchainTokenDeploymentStartedEvent() (ITSInterchainTokenDeploymentStartedEvent, error)
- func (t Event) AsITSInterchainTransferEvent() (ITSInterchainTransferEvent, error)
- func (t Event) AsITSLinkTokenStartedEvent() (ITSLinkTokenStartedEvent, error)
- func (t Event) AsITSTokenMetadataRegisteredEvent() (ITSTokenMetadataRegisteredEvent, error)
- func (t Event) AsMessageApprovedEvent() (MessageApprovedEvent, error)
- func (t Event) AsMessageExecutedEvent() (MessageExecutedEvent, error)
- func (t Event) AsMessageExecutedEventV2() (MessageExecutedEventV2, error)
- func (t Event) AsSignersRotatedEvent() (SignersRotatedEvent, error)
- func (t Event) Discriminator() (string, error)
- func (e *Event) EventID() string
- func (t *Event) FromAppInterchainTransferReceivedEvent(v AppInterchainTransferReceivedEvent) error
- func (t *Event) FromAppInterchainTransferSentEvent(v AppInterchainTransferSentEvent) error
- func (t *Event) FromCallEvent(v CallEvent) error
- func (t *Event) FromCannotExecuteMessageEvent(v CannotExecuteMessageEvent) error
- func (t *Event) FromCannotExecuteMessageEventV2(v CannotExecuteMessageEventV2) error
- func (t *Event) FromCannotExecuteTaskEvent(v CannotExecuteTaskEvent) error
- func (t *Event) FromCannotRouteMessageEvent(v CannotRouteMessageEvent) error
- func (t *Event) FromGasCreditEvent(v GasCreditEvent) error
- func (t *Event) FromGasRefundedEvent(v GasRefundedEvent) error
- func (t *Event) FromITSInterchainTokenDeploymentStartedEvent(v ITSInterchainTokenDeploymentStartedEvent) error
- func (t *Event) FromITSInterchainTransferEvent(v ITSInterchainTransferEvent) error
- func (t *Event) FromITSLinkTokenStartedEvent(v ITSLinkTokenStartedEvent) error
- func (t *Event) FromITSTokenMetadataRegisteredEvent(v ITSTokenMetadataRegisteredEvent) error
- func (t *Event) FromMessageApprovedEvent(v MessageApprovedEvent) error
- func (t *Event) FromMessageExecutedEvent(v MessageExecutedEvent) error
- func (t *Event) FromMessageExecutedEventV2(v MessageExecutedEventV2) error
- func (t *Event) FromSignersRotatedEvent(v SignersRotatedEvent) error
- func (t Event) MarshalJSON() ([]byte, error)
- func (t *Event) MergeAppInterchainTransferReceivedEvent(v AppInterchainTransferReceivedEvent) error
- func (t *Event) MergeAppInterchainTransferSentEvent(v AppInterchainTransferSentEvent) error
- func (t *Event) MergeCallEvent(v CallEvent) error
- func (t *Event) MergeCannotExecuteMessageEvent(v CannotExecuteMessageEvent) error
- func (t *Event) MergeCannotExecuteMessageEventV2(v CannotExecuteMessageEventV2) error
- func (t *Event) MergeCannotExecuteTaskEvent(v CannotExecuteTaskEvent) error
- func (t *Event) MergeCannotRouteMessageEvent(v CannotRouteMessageEvent) error
- func (t *Event) MergeGasCreditEvent(v GasCreditEvent) error
- func (t *Event) MergeGasRefundedEvent(v GasRefundedEvent) error
- func (t *Event) MergeITSInterchainTokenDeploymentStartedEvent(v ITSInterchainTokenDeploymentStartedEvent) error
- func (t *Event) MergeITSInterchainTransferEvent(v ITSInterchainTransferEvent) error
- func (t *Event) MergeITSLinkTokenStartedEvent(v ITSLinkTokenStartedEvent) error
- func (t *Event) MergeITSTokenMetadataRegisteredEvent(v ITSTokenMetadataRegisteredEvent) error
- func (t *Event) MergeMessageApprovedEvent(v MessageApprovedEvent) error
- func (t *Event) MergeMessageExecutedEvent(v MessageExecutedEvent) error
- func (t *Event) MergeMessageExecutedEventV2(v MessageExecutedEventV2) error
- func (t *Event) MergeSignersRotatedEvent(v SignersRotatedEvent) error
- func (t *Event) UnmarshalJSON(b []byte) error
- func (e *Event) Validate() error
- func (t Event) ValueByDiscriminator() (interface{}, error)
- type EventBase
- type EventMetadata
- type EventType
- type ExecuteTask
- type Fee
- type FeeMetadata
- type Fees
- type GasCreditEvent
- type GasRefundedEvent
- type GatewayTransactionTask
- type GeneralizableToken
- type GeneralizedMessageExecutedEvent
- type GetMsgExecuteContractBroadcastStatusResponse
- type GetPayloadResponse
- type GetTaskResponse
- type GetTaskResult
- type GetTasksParams
- type GetTasksResponse
- type GetTasksResult
- type GinServerOptions
- type HealthCheckResponse
- type HttpRequestDoer
- type ITSInterchainTokenDeploymentStartedEvent
- type ITSInterchainTransferEvent
- type ITSLinkTokenStartedEvent
- type ITSTokenMetadataRegisteredEvent
- type InterchainTokenDefinition
- type InterchainTransferTokenWithAddress
- type InterchainTransferTokenWithID
- type Keccak256Hash
- type Limit
- type Message
- type MessageApprovedEvent
- type MessageApprovedEventMetadata
- type MessageContext
- type MessageExecutedEvent
- func (e *MessageExecutedEvent) GetCrossChainID() CrossChainID
- func (e *MessageExecutedEvent) GetEventID() string
- func (e *MessageExecutedEvent) GetFees() (Fees, error)
- func (e *MessageExecutedEvent) GetMeta() *MessageExecutedEventMetadata
- func (e *MessageExecutedEvent) GetStatus() MessageExecutionStatus
- type MessageExecutedEventMetadata
- type MessageExecutedEventV2
- func (e *MessageExecutedEventV2) GetCrossChainID() CrossChainID
- func (e *MessageExecutedEventV2) GetEventID() string
- func (e *MessageExecutedEventV2) GetFees() (Fees, error)
- func (e *MessageExecutedEventV2) GetMeta() *MessageExecutedEventMetadata
- func (e *MessageExecutedEventV2) GetStatus() MessageExecutionStatus
- type MessageExecutionStatus
- type MiddlewareFunc
- type PublishEventAcceptedResult
- type PublishEventErrorResult
- type PublishEventResultItem
- func (t PublishEventResultItem) AsPublishEventAcceptedResult() (PublishEventAcceptedResult, error)
- func (t PublishEventResultItem) AsPublishEventErrorResult() (PublishEventErrorResult, error)
- func (t PublishEventResultItem) Discriminator() (string, error)
- func (t *PublishEventResultItem) FromPublishEventAcceptedResult(v PublishEventAcceptedResult) error
- func (t *PublishEventResultItem) FromPublishEventErrorResult(v PublishEventErrorResult) error
- func (t PublishEventResultItem) MarshalJSON() ([]byte, error)
- func (t *PublishEventResultItem) MergePublishEventAcceptedResult(v PublishEventAcceptedResult) error
- func (t *PublishEventResultItem) MergePublishEventErrorResult(v PublishEventErrorResult) error
- func (t *PublishEventResultItem) UnmarshalJSON(b []byte) error
- func (t PublishEventResultItem) ValueByDiscriminator() (interface{}, error)
- type PublishEventResultItemBase
- type PublishEventStatus
- type PublishEventsJSONRequestBody
- type PublishEventsRequest
- type PublishEventsResponse
- type PublishEventsResult
- type QueryContractStateJSONRequestBody
- type QueryContractStateResponse
- type QuorumReachedEvent
- type ReactToExpiredSigningSessionTask
- type ReactToRetriablePollTask
- type ReactToWasmEventTask
- type RefundTask
- type RequestEditorFn
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) BroadcastMsgExecuteContract(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetMsgExecuteContractBroadcastStatus(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetPayload(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetTask(c *gin.Context)
- func (siw *ServerInterfaceWrapper) GetTasks(c *gin.Context)
- func (siw *ServerInterfaceWrapper) HealthCheck(c *gin.Context)
- func (siw *ServerInterfaceWrapper) PublishEvents(c *gin.Context)
- func (siw *ServerInterfaceWrapper) QueryContractState(c *gin.Context)
- func (siw *ServerInterfaceWrapper) StorePayload(c *gin.Context)
- type SignersRotatedEvent
- type SignersRotatedEventMetadata
- type SourceChainTaskMetadata
- type StorePayloadResponse
- type StorePayloadResult
- type Task
- func (t Task) AsConstructProofTask() (ConstructProofTask, error)
- func (t Task) AsExecuteTask() (ExecuteTask, error)
- func (t Task) AsGatewayTransactionTask() (GatewayTransactionTask, error)
- func (t Task) AsReactToExpiredSigningSessionTask() (ReactToExpiredSigningSessionTask, error)
- func (t Task) AsReactToRetriablePollTask() (ReactToRetriablePollTask, error)
- func (t Task) AsReactToWasmEventTask() (ReactToWasmEventTask, error)
- func (t Task) AsRefundTask() (RefundTask, error)
- func (t Task) AsVerifyTask() (VerifyTask, error)
- func (t *Task) FromConstructProofTask(v ConstructProofTask) error
- func (t *Task) FromExecuteTask(v ExecuteTask) error
- func (t *Task) FromGatewayTransactionTask(v GatewayTransactionTask) error
- func (t *Task) FromReactToExpiredSigningSessionTask(v ReactToExpiredSigningSessionTask) error
- func (t *Task) FromReactToRetriablePollTask(v ReactToRetriablePollTask) error
- func (t *Task) FromReactToWasmEventTask(v ReactToWasmEventTask) error
- func (t *Task) FromRefundTask(v RefundTask) error
- func (t *Task) FromVerifyTask(v VerifyTask) error
- func (t Task) MarshalJSON() ([]byte, error)
- func (t *Task) MergeConstructProofTask(v ConstructProofTask) error
- func (t *Task) MergeExecuteTask(v ExecuteTask) error
- func (t *Task) MergeGatewayTransactionTask(v GatewayTransactionTask) error
- func (t *Task) MergeReactToExpiredSigningSessionTask(v ReactToExpiredSigningSessionTask) error
- func (t *Task) MergeReactToRetriablePollTask(v ReactToRetriablePollTask) error
- func (t *Task) MergeReactToWasmEventTask(v ReactToWasmEventTask) error
- func (t *Task) MergeRefundTask(v RefundTask) error
- func (t *Task) MergeVerifyTask(v VerifyTask) error
- func (t *Task) UnmarshalJSON(b []byte) error
- type TaskItem
- type TaskItemID
- type TaskMetadata
- type TaskType
- type Token
- type TokenManagerType
- type UnsignedBigInt
- type UnsignedToken
- type UnsignedTokenWithRequiredID
- type VerificationStatus
- type VerifyTask
- type WasmContractAddress
- type WasmEvent
- type WasmEventAttribute
- type WasmRequest
- func (t WasmRequest) AsWasmRequestWithObjectBody() (WasmRequestWithObjectBody, error)
- func (t WasmRequest) AsWasmRequestWithStringBody() (WasmRequestWithStringBody, error)
- func (t *WasmRequest) FromWasmRequestWithObjectBody(v WasmRequestWithObjectBody) error
- func (t *WasmRequest) FromWasmRequestWithStringBody(v WasmRequestWithStringBody) error
- func (t WasmRequest) MarshalJSON() ([]byte, error)
- func (t *WasmRequest) MergeWasmRequestWithObjectBody(v WasmRequestWithObjectBody) error
- func (t *WasmRequest) MergeWasmRequestWithStringBody(v WasmRequestWithStringBody) error
- func (t *WasmRequest) UnmarshalJSON(b []byte) error
- type WasmRequestWithObjectBody
- type WasmRequestWithStringBody
Constants ¶
This section is empty.
Variables ¶
var ErrUnknownTaskType = errors.New("unknown task type")
ErrUnknownTaskType is an error when TaskType has an unrecognised value
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewBroadcastMsgExecuteContractRequest ¶
func NewBroadcastMsgExecuteContractRequest(server string, wasmContractAddress WasmContractAddress, body BroadcastMsgExecuteContractJSONRequestBody) (*http.Request, error)
NewBroadcastMsgExecuteContractRequest calls the generic BroadcastMsgExecuteContract builder with application/json body
func NewBroadcastMsgExecuteContractRequestWithBody ¶
func NewBroadcastMsgExecuteContractRequestWithBody(server string, wasmContractAddress WasmContractAddress, contentType string, body io.Reader) (*http.Request, error)
NewBroadcastMsgExecuteContractRequestWithBody generates requests for BroadcastMsgExecuteContract with any type of body
func NewGetMsgExecuteContractBroadcastStatusRequest ¶
func NewGetMsgExecuteContractBroadcastStatusRequest(server string, wasmContractAddress WasmContractAddress, broadcastID BroadcastID) (*http.Request, error)
NewGetMsgExecuteContractBroadcastStatusRequest generates requests for GetMsgExecuteContractBroadcastStatus
func NewGetPayloadRequest ¶
func NewGetPayloadRequest(server string, hash Keccak256Hash) (*http.Request, error)
NewGetPayloadRequest generates requests for GetPayload
func NewGetTaskRequest ¶
NewGetTaskRequest generates requests for GetTask
func NewGetTasksRequest ¶
NewGetTasksRequest generates requests for GetTasks
func NewHealthCheckRequest ¶
NewHealthCheckRequest generates requests for HealthCheck
func NewPublishEventsRequest ¶
func NewPublishEventsRequest(server string, chain Chain, body PublishEventsJSONRequestBody) (*http.Request, error)
NewPublishEventsRequest calls the generic PublishEvents builder with application/json body
func NewPublishEventsRequestWithBody ¶
func NewPublishEventsRequestWithBody(server string, chain Chain, contentType string, body io.Reader) (*http.Request, error)
NewPublishEventsRequestWithBody generates requests for PublishEvents with any type of body
func NewQueryContractStateRequest ¶
func NewQueryContractStateRequest(server string, wasmContractAddress WasmContractAddress, body QueryContractStateJSONRequestBody) (*http.Request, error)
NewQueryContractStateRequest calls the generic QueryContractState builder with application/json body
func NewQueryContractStateRequestWithBody ¶
func NewQueryContractStateRequestWithBody(server string, wasmContractAddress WasmContractAddress, contentType string, body io.Reader) (*http.Request, error)
NewQueryContractStateRequestWithBody generates requests for QueryContractState with any type of body
func NewStorePayloadRequestWithBody ¶
func NewStorePayloadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewStorePayloadRequestWithBody generates requests for StorePayload with any type of body
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
func RegisterHandlers ¶
func RegisterHandlers(router gin.IRouter, si ServerInterface)
RegisterHandlers creates http.Handler with routing matching OpenAPI spec.
func RegisterHandlersWithOptions ¶
func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)
RegisterHandlersWithOptions creates http.Handler with additional options
Types ¶
type AppEventMetadata ¶
type AppEventMetadata struct {
EmittedByAddress *Address `json:"emittedByAddress,omitempty"`
Finalized *bool `json:"finalized,omitempty"`
FromAddress *Address `json:"fromAddress,omitempty"`
Timestamp *time.Time `json:"timestamp,omitempty"`
TxID *string `json:"txID,omitempty"`
}
AppEventMetadata defines model for AppEventMetadata.
type AppInterchainTransferReceivedEvent ¶
type AppInterchainTransferReceivedEvent struct {
EventID string `json:"eventID"`
MessageID string `json:"messageID"`
Meta *AppEventMetadata `json:"meta,omitempty"`
Recipient Address `json:"recipient"`
Sender []byte `json:"sender"`
SourceAddress Address `json:"sourceAddress"`
SourceChain string `json:"sourceChain"`
TokenReceived InterchainTransferTokenWithAddress `json:"tokenReceived"`
}
AppInterchainTransferReceivedEvent defines model for AppInterchainTransferReceivedEvent.
type AppInterchainTransferSentEvent ¶
type AppInterchainTransferSentEvent struct {
DestinationChain string `json:"destinationChain"`
DestinationContractAddress Address `json:"destinationContractAddress"`
EventID string `json:"eventID"`
MessageID string `json:"messageID"`
Meta *AppEventMetadata `json:"meta,omitempty"`
Recipient []byte `json:"recipient"`
Sender Address `json:"sender"`
TokenSpent InterchainTransferTokenWithAddress `json:"tokenSpent"`
}
AppInterchainTransferSentEvent defines model for AppInterchainTransferSentEvent.
type BroadcastMsgExecuteContractJSONRequestBody ¶
type BroadcastMsgExecuteContractJSONRequestBody = WasmRequest
BroadcastMsgExecuteContractJSONRequestBody defines body for BroadcastMsgExecuteContract for application/json ContentType.
type BroadcastMsgExecuteContractResponse ¶
type BroadcastMsgExecuteContractResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BroadcastResponse
JSON400 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseBroadcastMsgExecuteContractResponse ¶
func ParseBroadcastMsgExecuteContractResponse(rsp *http.Response) (*BroadcastMsgExecuteContractResponse, error)
ParseBroadcastMsgExecuteContractResponse parses an HTTP response from a BroadcastMsgExecuteContractWithResponse call
func (BroadcastMsgExecuteContractResponse) Status ¶
func (r BroadcastMsgExecuteContractResponse) Status() string
Status returns HTTPResponse.Status
func (BroadcastMsgExecuteContractResponse) StatusCode ¶
func (r BroadcastMsgExecuteContractResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BroadcastResponse ¶
type BroadcastResponse struct {
BroadcastID BroadcastID `json:"broadcastID"`
}
BroadcastResponse defines model for BroadcastResponse.
type BroadcastStatus ¶
type BroadcastStatus string
BroadcastStatus defines model for BroadcastStatus.
const ( BroadcastStatusError BroadcastStatus = "ERROR" BroadcastStatusReceived BroadcastStatus = "RECEIVED" BroadcastStatusSuccess BroadcastStatus = "SUCCESS" )
Defines values for BroadcastStatus.
type BroadcastStatusResponse ¶
type BroadcastStatusResponse struct {
CompletedAt *time.Time `json:"completedAt,omitempty"`
Error *string `json:"error,omitempty"`
ReceivedAt time.Time `json:"receivedAt"`
Status BroadcastStatus `json:"status"`
TxEvents *[]WasmEvent `json:"txEvents,omitempty"`
TxHash *string `json:"txHash,omitempty"`
}
BroadcastStatusResponse defines model for BroadcastStatusResponse.
type CallEvent ¶
type CallEvent struct {
DestinationChain string `json:"destinationChain"`
EventID string `json:"eventID"`
Message Message `json:"message"`
Meta *CallEventMetadata `json:"meta,omitempty"`
Payload []byte `json:"payload"`
WithToken *UnsignedTokenWithRequiredID `json:"withToken,omitempty"`
}
CallEvent defines model for CallEvent.
type CallEventMetadata ¶
type CallEventMetadata struct {
Finalized *bool `json:"finalized,omitempty"`
FromAddress *Address `json:"fromAddress,omitempty"`
ParentMessageID *string `json:"parentMessageID,omitempty"`
ParentSourceChain *string `json:"parentSourceChain,omitempty"`
SenderContractAddress *Address `json:"senderContractAddress,omitempty"`
SourceContext *MessageContext `json:"sourceContext,omitempty"`
Timestamp *time.Time `json:"timestamp,omitempty"`
TxID *string `json:"txID,omitempty"`
}
CallEventMetadata defines model for CallEventMetadata.
type CannotExecuteMessageEvent ¶
type CannotExecuteMessageEvent struct {
Details string `json:"details"`
EventID string `json:"eventID"`
Meta *CannotExecuteMessageEventMetadata `json:"meta,omitempty"`
// Deprecated:
Reason CannotExecuteMessageReason `json:"reason"`
TaskItemID TaskItemID `json:"taskItemID"`
}
CannotExecuteMessageEvent defines model for CannotExecuteMessageEvent.
type CannotExecuteMessageEventMetadata ¶
type CannotExecuteMessageEventMetadata struct {
FromAddress *Address `json:"fromAddress,omitempty"`
Timestamp *time.Time `json:"timestamp,omitempty"`
}
CannotExecuteMessageEventMetadata defines model for CannotExecuteMessageEventMetadata.
type CannotExecuteMessageEventV2 ¶
type CannotExecuteMessageEventV2 struct {
Details string `json:"details"`
EventID string `json:"eventID"`
MessageID string `json:"messageID"`
Meta *CannotExecuteMessageEventV2Metadata `json:"meta,omitempty"`
// Deprecated:
Reason CannotExecuteMessageReason `json:"reason"`
SourceChain string `json:"sourceChain"`
}
CannotExecuteMessageEventV2 defines model for CannotExecuteMessageEventV2.
type CannotExecuteMessageEventV2Metadata ¶
type CannotExecuteMessageEventV2Metadata struct {
FromAddress *Address `json:"fromAddress,omitempty"`
TaskItemID *TaskItemID `json:"taskItemID,omitempty"`
Timestamp *time.Time `json:"timestamp,omitempty"`
}
CannotExecuteMessageEventV2Metadata defines model for CannotExecuteMessageEventV2Metadata.
type CannotExecuteMessageReason ¶
type CannotExecuteMessageReason string
CannotExecuteMessageReason defines model for CannotExecuteMessageReason.
const ( CannotExecuteMessageReasonError CannotExecuteMessageReason = "ERROR" CannotExecuteMessageReasonInsufficientGas CannotExecuteMessageReason = "INSUFFICIENT_GAS" )
Defines values for CannotExecuteMessageReason.
type CannotExecuteTaskEvent ¶
type CannotExecuteTaskEvent struct {
Cost *Cost `json:"cost,omitempty"`
Details string `json:"details"`
EventID string `json:"eventID"`
Meta *EventMetadata `json:"meta,omitempty"`
Reason CannotExecuteTaskReason `json:"reason"`
TaskItemID TaskItemID `json:"taskItemID"`
}
CannotExecuteTaskEvent defines model for CannotExecuteTaskEvent.
func (*CannotExecuteTaskEvent) GetFees ¶
func (e *CannotExecuteTaskEvent) GetFees() (Fees, error)
GetFees returns Fees from the event If Cost is Fees, then Fees is returned. If Cost is Token, then Fees containing a single item is returned where ID equals ID of the event, and .Meta.TxID equals .Meta.TxID of the event (if present).
type CannotExecuteTaskReason ¶
type CannotExecuteTaskReason string
CannotExecuteTaskReason defines model for CannotExecuteTaskReason.
const ( CannotExecuteTaskReasonCustom CannotExecuteTaskReason = "CUSTOM" CannotExecuteTaskReasonError CannotExecuteTaskReason = "ERROR" CannotExecuteTaskReasonInsufficientGas CannotExecuteTaskReason = "INSUFFICIENT_GAS" CannotExecuteTaskReasonTxReverted CannotExecuteTaskReason = "TX_REVERTED" )
Defines values for CannotExecuteTaskReason.
type CannotRouteMessageEvent ¶
type CannotRouteMessageEvent struct {
Details string `json:"details"`
EventID string `json:"eventID"`
MessageID string `json:"messageID"`
Meta *EventMetadata `json:"meta,omitempty"`
// Deprecated:
Reason CannotRouteMessageReason `json:"reason"`
}
CannotRouteMessageEvent defines model for CannotRouteMessageEvent.
type CannotRouteMessageReason ¶
type CannotRouteMessageReason string
CannotRouteMessageReason defines model for CannotRouteMessageReason.
const ( CannotRouteMessageReasonCustom CannotRouteMessageReason = "CUSTOM" CannotRouteMessageReasonError CannotRouteMessageReason = "ERROR" )
Defines values for CannotRouteMessageReason.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) BroadcastMsgExecuteContract ¶
func (c *Client) BroadcastMsgExecuteContract(ctx context.Context, wasmContractAddress WasmContractAddress, body BroadcastMsgExecuteContractJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) BroadcastMsgExecuteContractWithBody ¶
func (*Client) GetMsgExecuteContractBroadcastStatus ¶
func (c *Client) GetMsgExecuteContractBroadcastStatus(ctx context.Context, wasmContractAddress WasmContractAddress, broadcastID BroadcastID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetPayload ¶
func (c *Client) GetPayload(ctx context.Context, hash Keccak256Hash, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTask ¶
func (c *Client) GetTask(ctx context.Context, chain Chain, taskItemID TaskItemID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTasks ¶
func (c *Client) GetTasks(ctx context.Context, chain Chain, params *GetTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) HealthCheck ¶
func (*Client) PublishEvents ¶
func (c *Client) PublishEvents(ctx context.Context, chain Chain, body PublishEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PublishEventsWithBody ¶
func (*Client) QueryContractState ¶
func (c *Client) QueryContractState(ctx context.Context, wasmContractAddress WasmContractAddress, body QueryContractStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) QueryContractStateWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// PublishEventsWithBody request with any body
PublishEventsWithBody(ctx context.Context, chain Chain, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PublishEvents(ctx context.Context, chain Chain, body PublishEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTasks request
GetTasks(ctx context.Context, chain Chain, params *GetTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTask request
GetTask(ctx context.Context, chain Chain, taskItemID TaskItemID, reqEditors ...RequestEditorFn) (*http.Response, error)
// BroadcastMsgExecuteContractWithBody request with any body
BroadcastMsgExecuteContractWithBody(ctx context.Context, wasmContractAddress WasmContractAddress, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BroadcastMsgExecuteContract(ctx context.Context, wasmContractAddress WasmContractAddress, body BroadcastMsgExecuteContractJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMsgExecuteContractBroadcastStatus request
GetMsgExecuteContractBroadcastStatus(ctx context.Context, wasmContractAddress WasmContractAddress, broadcastID BroadcastID, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryContractStateWithBody request with any body
QueryContractStateWithBody(ctx context.Context, wasmContractAddress WasmContractAddress, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
QueryContractState(ctx context.Context, wasmContractAddress WasmContractAddress, body QueryContractStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// HealthCheck request
HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// StorePayloadWithBody request with any body
StorePayloadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPayload request
GetPayload(ctx context.Context, hash Keccak256Hash, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) BroadcastMsgExecuteContractWithBodyWithResponse ¶
func (c *ClientWithResponses) BroadcastMsgExecuteContractWithBodyWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BroadcastMsgExecuteContractResponse, error)
BroadcastMsgExecuteContractWithBodyWithResponse request with arbitrary body returning *BroadcastMsgExecuteContractResponse
func (*ClientWithResponses) BroadcastMsgExecuteContractWithResponse ¶
func (c *ClientWithResponses) BroadcastMsgExecuteContractWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, body BroadcastMsgExecuteContractJSONRequestBody, reqEditors ...RequestEditorFn) (*BroadcastMsgExecuteContractResponse, error)
func (*ClientWithResponses) GetMsgExecuteContractBroadcastStatusWithResponse ¶
func (c *ClientWithResponses) GetMsgExecuteContractBroadcastStatusWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, broadcastID BroadcastID, reqEditors ...RequestEditorFn) (*GetMsgExecuteContractBroadcastStatusResponse, error)
GetMsgExecuteContractBroadcastStatusWithResponse request returning *GetMsgExecuteContractBroadcastStatusResponse
func (*ClientWithResponses) GetPayloadWithResponse ¶
func (c *ClientWithResponses) GetPayloadWithResponse(ctx context.Context, hash Keccak256Hash, reqEditors ...RequestEditorFn) (*GetPayloadResponse, error)
GetPayloadWithResponse request returning *GetPayloadResponse
func (*ClientWithResponses) GetTaskWithResponse ¶
func (c *ClientWithResponses) GetTaskWithResponse(ctx context.Context, chain Chain, taskItemID TaskItemID, reqEditors ...RequestEditorFn) (*GetTaskResponse, error)
GetTaskWithResponse request returning *GetTaskResponse
func (*ClientWithResponses) GetTasksWithResponse ¶
func (c *ClientWithResponses) GetTasksWithResponse(ctx context.Context, chain Chain, params *GetTasksParams, reqEditors ...RequestEditorFn) (*GetTasksResponse, error)
GetTasksWithResponse request returning *GetTasksResponse
func (*ClientWithResponses) HealthCheckWithResponse ¶
func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)
HealthCheckWithResponse request returning *HealthCheckResponse
func (*ClientWithResponses) PublishEventsWithBodyWithResponse ¶
func (c *ClientWithResponses) PublishEventsWithBodyWithResponse(ctx context.Context, chain Chain, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PublishEventsResponse, error)
PublishEventsWithBodyWithResponse request with arbitrary body returning *PublishEventsResponse
func (*ClientWithResponses) PublishEventsWithResponse ¶
func (c *ClientWithResponses) PublishEventsWithResponse(ctx context.Context, chain Chain, body PublishEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*PublishEventsResponse, error)
func (*ClientWithResponses) QueryContractStateWithBodyWithResponse ¶
func (c *ClientWithResponses) QueryContractStateWithBodyWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryContractStateResponse, error)
QueryContractStateWithBodyWithResponse request with arbitrary body returning *QueryContractStateResponse
func (*ClientWithResponses) QueryContractStateWithResponse ¶
func (c *ClientWithResponses) QueryContractStateWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, body QueryContractStateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryContractStateResponse, error)
func (*ClientWithResponses) StorePayloadWithBodyWithResponse ¶
func (c *ClientWithResponses) StorePayloadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StorePayloadResponse, error)
StorePayloadWithBodyWithResponse request with arbitrary body returning *StorePayloadResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// PublishEventsWithBodyWithResponse request with any body
PublishEventsWithBodyWithResponse(ctx context.Context, chain Chain, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PublishEventsResponse, error)
PublishEventsWithResponse(ctx context.Context, chain Chain, body PublishEventsJSONRequestBody, reqEditors ...RequestEditorFn) (*PublishEventsResponse, error)
// GetTasksWithResponse request
GetTasksWithResponse(ctx context.Context, chain Chain, params *GetTasksParams, reqEditors ...RequestEditorFn) (*GetTasksResponse, error)
// GetTaskWithResponse request
GetTaskWithResponse(ctx context.Context, chain Chain, taskItemID TaskItemID, reqEditors ...RequestEditorFn) (*GetTaskResponse, error)
// BroadcastMsgExecuteContractWithBodyWithResponse request with any body
BroadcastMsgExecuteContractWithBodyWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BroadcastMsgExecuteContractResponse, error)
BroadcastMsgExecuteContractWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, body BroadcastMsgExecuteContractJSONRequestBody, reqEditors ...RequestEditorFn) (*BroadcastMsgExecuteContractResponse, error)
// GetMsgExecuteContractBroadcastStatusWithResponse request
GetMsgExecuteContractBroadcastStatusWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, broadcastID BroadcastID, reqEditors ...RequestEditorFn) (*GetMsgExecuteContractBroadcastStatusResponse, error)
// QueryContractStateWithBodyWithResponse request with any body
QueryContractStateWithBodyWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryContractStateResponse, error)
QueryContractStateWithResponse(ctx context.Context, wasmContractAddress WasmContractAddress, body QueryContractStateJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryContractStateResponse, error)
// HealthCheckWithResponse request
HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)
// StorePayloadWithBodyWithResponse request with any body
StorePayloadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StorePayloadResponse, error)
// GetPayloadWithResponse request
GetPayloadWithResponse(ctx context.Context, hash Keccak256Hash, reqEditors ...RequestEditorFn) (*GetPayloadResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ConstructProofTask ¶
ConstructProofTask defines model for ConstructProofTask.
type ContractQueryResponse ¶
type ContractQueryResponse map[string]interface{}
ContractQueryResponse defines model for ContractQueryResponse.
type Cost ¶
type Cost struct {
// contains filtered or unexported fields
}
Cost defines model for Cost.
func CostFromToken ¶
func CostFromToken(token UnsignedToken) Cost
CostFromToken creates a Cost from a given Token
func (Cost) AsUnsignedToken ¶
func (t Cost) AsUnsignedToken() (UnsignedToken, error)
AsUnsignedToken returns the union data inside the Cost as a UnsignedToken
func (*Cost) FromUnsignedToken ¶
func (t *Cost) FromUnsignedToken(v UnsignedToken) error
FromUnsignedToken overwrites any union data inside the Cost as the provided UnsignedToken
func (Cost) MarshalJSON ¶
func (*Cost) MergeFees ¶
MergeFees performs a merge with any union data inside the Cost, using the provided Fees
func (*Cost) MergeUnsignedToken ¶
func (t *Cost) MergeUnsignedToken(v UnsignedToken) error
MergeUnsignedToken performs a merge with any union data inside the Cost, using the provided UnsignedToken
func (*Cost) UnmarshalJSON ¶
type CrossChainID ¶
type CrossChainID struct {
MessageID string `json:"messageID"`
SourceChain string `json:"sourceChain"`
}
CrossChainID defines model for CrossChainID.
type DestinationChainTaskMetadata ¶
type DestinationChainTaskMetadata struct {
ScopedMessages *[]CrossChainID `json:"scopedMessages,omitempty"`
SourceChainSenderContractAddress *Address `json:"sourceChainSenderContractAddress,omitempty"`
}
DestinationChainTaskMetadata Metadata attached to GATEWAY_TX and REACT_TO_EXPIRED_SIGNING_SESSION tasks. The property `scopedMessages` can be omitted if the task isn't associated with any message (e.g. when executing `rotateSigners` https://github.com/axelarnetwork/axelar-gmp-sdk-solidity/blob/432449d7b330ec6edf5a8e0746644a253486ca87/contracts/gateway/AxelarAmplifierGateway.sol#L103C14-L103C27).
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
RequestID *string `json:"requestID,omitempty"`
}
ErrorResponse defines model for ErrorResponse.
type Event ¶
type Event struct {
Type EventType `json:"type"`
// contains filtered or unexported fields
}
Event defines model for Event.
func (Event) AsAppInterchainTransferReceivedEvent ¶
func (t Event) AsAppInterchainTransferReceivedEvent() (AppInterchainTransferReceivedEvent, error)
AsAppInterchainTransferReceivedEvent returns the union data inside the Event as a AppInterchainTransferReceivedEvent
func (Event) AsAppInterchainTransferSentEvent ¶
func (t Event) AsAppInterchainTransferSentEvent() (AppInterchainTransferSentEvent, error)
AsAppInterchainTransferSentEvent returns the union data inside the Event as a AppInterchainTransferSentEvent
func (Event) AsCallEvent ¶
AsCallEvent returns the union data inside the Event as a CallEvent
func (Event) AsCannotExecuteMessageEvent ¶
func (t Event) AsCannotExecuteMessageEvent() (CannotExecuteMessageEvent, error)
AsCannotExecuteMessageEvent returns the union data inside the Event as a CannotExecuteMessageEvent
func (Event) AsCannotExecuteMessageEventV2 ¶
func (t Event) AsCannotExecuteMessageEventV2() (CannotExecuteMessageEventV2, error)
AsCannotExecuteMessageEventV2 returns the union data inside the Event as a CannotExecuteMessageEventV2
func (Event) AsCannotExecuteTaskEvent ¶
func (t Event) AsCannotExecuteTaskEvent() (CannotExecuteTaskEvent, error)
AsCannotExecuteTaskEvent returns the union data inside the Event as a CannotExecuteTaskEvent
func (Event) AsCannotRouteMessageEvent ¶
func (t Event) AsCannotRouteMessageEvent() (CannotRouteMessageEvent, error)
AsCannotRouteMessageEvent returns the union data inside the Event as a CannotRouteMessageEvent
func (Event) AsGasCreditEvent ¶
func (t Event) AsGasCreditEvent() (GasCreditEvent, error)
AsGasCreditEvent returns the union data inside the Event as a GasCreditEvent
func (Event) AsGasRefundedEvent ¶
func (t Event) AsGasRefundedEvent() (GasRefundedEvent, error)
AsGasRefundedEvent returns the union data inside the Event as a GasRefundedEvent
func (Event) AsITSInterchainTokenDeploymentStartedEvent ¶
func (t Event) AsITSInterchainTokenDeploymentStartedEvent() (ITSInterchainTokenDeploymentStartedEvent, error)
AsITSInterchainTokenDeploymentStartedEvent returns the union data inside the Event as a ITSInterchainTokenDeploymentStartedEvent
func (Event) AsITSInterchainTransferEvent ¶
func (t Event) AsITSInterchainTransferEvent() (ITSInterchainTransferEvent, error)
AsITSInterchainTransferEvent returns the union data inside the Event as a ITSInterchainTransferEvent
func (Event) AsITSLinkTokenStartedEvent ¶
func (t Event) AsITSLinkTokenStartedEvent() (ITSLinkTokenStartedEvent, error)
AsITSLinkTokenStartedEvent returns the union data inside the Event as a ITSLinkTokenStartedEvent
func (Event) AsITSTokenMetadataRegisteredEvent ¶
func (t Event) AsITSTokenMetadataRegisteredEvent() (ITSTokenMetadataRegisteredEvent, error)
AsITSTokenMetadataRegisteredEvent returns the union data inside the Event as a ITSTokenMetadataRegisteredEvent
func (Event) AsMessageApprovedEvent ¶
func (t Event) AsMessageApprovedEvent() (MessageApprovedEvent, error)
AsMessageApprovedEvent returns the union data inside the Event as a MessageApprovedEvent
func (Event) AsMessageExecutedEvent ¶
func (t Event) AsMessageExecutedEvent() (MessageExecutedEvent, error)
AsMessageExecutedEvent returns the union data inside the Event as a MessageExecutedEvent
func (Event) AsMessageExecutedEventV2 ¶
func (t Event) AsMessageExecutedEventV2() (MessageExecutedEventV2, error)
AsMessageExecutedEventV2 returns the union data inside the Event as a MessageExecutedEventV2
func (Event) AsSignersRotatedEvent ¶
func (t Event) AsSignersRotatedEvent() (SignersRotatedEvent, error)
AsSignersRotatedEvent returns the union data inside the Event as a SignersRotatedEvent
func (Event) Discriminator ¶
func (*Event) EventID ¶
EventID returns id of the underlying event. The codegen library doesn't provide a way to access this field out of the box.
func (*Event) FromAppInterchainTransferReceivedEvent ¶
func (t *Event) FromAppInterchainTransferReceivedEvent(v AppInterchainTransferReceivedEvent) error
FromAppInterchainTransferReceivedEvent overwrites any union data inside the Event as the provided AppInterchainTransferReceivedEvent
func (*Event) FromAppInterchainTransferSentEvent ¶
func (t *Event) FromAppInterchainTransferSentEvent(v AppInterchainTransferSentEvent) error
FromAppInterchainTransferSentEvent overwrites any union data inside the Event as the provided AppInterchainTransferSentEvent
func (*Event) FromCallEvent ¶
FromCallEvent overwrites any union data inside the Event as the provided CallEvent
func (*Event) FromCannotExecuteMessageEvent ¶
func (t *Event) FromCannotExecuteMessageEvent(v CannotExecuteMessageEvent) error
FromCannotExecuteMessageEvent overwrites any union data inside the Event as the provided CannotExecuteMessageEvent
func (*Event) FromCannotExecuteMessageEventV2 ¶
func (t *Event) FromCannotExecuteMessageEventV2(v CannotExecuteMessageEventV2) error
FromCannotExecuteMessageEventV2 overwrites any union data inside the Event as the provided CannotExecuteMessageEventV2
func (*Event) FromCannotExecuteTaskEvent ¶
func (t *Event) FromCannotExecuteTaskEvent(v CannotExecuteTaskEvent) error
FromCannotExecuteTaskEvent overwrites any union data inside the Event as the provided CannotExecuteTaskEvent
func (*Event) FromCannotRouteMessageEvent ¶
func (t *Event) FromCannotRouteMessageEvent(v CannotRouteMessageEvent) error
FromCannotRouteMessageEvent overwrites any union data inside the Event as the provided CannotRouteMessageEvent
func (*Event) FromGasCreditEvent ¶
func (t *Event) FromGasCreditEvent(v GasCreditEvent) error
FromGasCreditEvent overwrites any union data inside the Event as the provided GasCreditEvent
func (*Event) FromGasRefundedEvent ¶
func (t *Event) FromGasRefundedEvent(v GasRefundedEvent) error
FromGasRefundedEvent overwrites any union data inside the Event as the provided GasRefundedEvent
func (*Event) FromITSInterchainTokenDeploymentStartedEvent ¶
func (t *Event) FromITSInterchainTokenDeploymentStartedEvent(v ITSInterchainTokenDeploymentStartedEvent) error
FromITSInterchainTokenDeploymentStartedEvent overwrites any union data inside the Event as the provided ITSInterchainTokenDeploymentStartedEvent
func (*Event) FromITSInterchainTransferEvent ¶
func (t *Event) FromITSInterchainTransferEvent(v ITSInterchainTransferEvent) error
FromITSInterchainTransferEvent overwrites any union data inside the Event as the provided ITSInterchainTransferEvent
func (*Event) FromITSLinkTokenStartedEvent ¶
func (t *Event) FromITSLinkTokenStartedEvent(v ITSLinkTokenStartedEvent) error
FromITSLinkTokenStartedEvent overwrites any union data inside the Event as the provided ITSLinkTokenStartedEvent
func (*Event) FromITSTokenMetadataRegisteredEvent ¶
func (t *Event) FromITSTokenMetadataRegisteredEvent(v ITSTokenMetadataRegisteredEvent) error
FromITSTokenMetadataRegisteredEvent overwrites any union data inside the Event as the provided ITSTokenMetadataRegisteredEvent
func (*Event) FromMessageApprovedEvent ¶
func (t *Event) FromMessageApprovedEvent(v MessageApprovedEvent) error
FromMessageApprovedEvent overwrites any union data inside the Event as the provided MessageApprovedEvent
func (*Event) FromMessageExecutedEvent ¶
func (t *Event) FromMessageExecutedEvent(v MessageExecutedEvent) error
FromMessageExecutedEvent overwrites any union data inside the Event as the provided MessageExecutedEvent
func (*Event) FromMessageExecutedEventV2 ¶
func (t *Event) FromMessageExecutedEventV2(v MessageExecutedEventV2) error
FromMessageExecutedEventV2 overwrites any union data inside the Event as the provided MessageExecutedEventV2
func (*Event) FromSignersRotatedEvent ¶
func (t *Event) FromSignersRotatedEvent(v SignersRotatedEvent) error
FromSignersRotatedEvent overwrites any union data inside the Event as the provided SignersRotatedEvent
func (Event) MarshalJSON ¶
func (*Event) MergeAppInterchainTransferReceivedEvent ¶
func (t *Event) MergeAppInterchainTransferReceivedEvent(v AppInterchainTransferReceivedEvent) error
MergeAppInterchainTransferReceivedEvent performs a merge with any union data inside the Event, using the provided AppInterchainTransferReceivedEvent
func (*Event) MergeAppInterchainTransferSentEvent ¶
func (t *Event) MergeAppInterchainTransferSentEvent(v AppInterchainTransferSentEvent) error
MergeAppInterchainTransferSentEvent performs a merge with any union data inside the Event, using the provided AppInterchainTransferSentEvent
func (*Event) MergeCallEvent ¶
MergeCallEvent performs a merge with any union data inside the Event, using the provided CallEvent
func (*Event) MergeCannotExecuteMessageEvent ¶
func (t *Event) MergeCannotExecuteMessageEvent(v CannotExecuteMessageEvent) error
MergeCannotExecuteMessageEvent performs a merge with any union data inside the Event, using the provided CannotExecuteMessageEvent
func (*Event) MergeCannotExecuteMessageEventV2 ¶
func (t *Event) MergeCannotExecuteMessageEventV2(v CannotExecuteMessageEventV2) error
MergeCannotExecuteMessageEventV2 performs a merge with any union data inside the Event, using the provided CannotExecuteMessageEventV2
func (*Event) MergeCannotExecuteTaskEvent ¶
func (t *Event) MergeCannotExecuteTaskEvent(v CannotExecuteTaskEvent) error
MergeCannotExecuteTaskEvent performs a merge with any union data inside the Event, using the provided CannotExecuteTaskEvent
func (*Event) MergeCannotRouteMessageEvent ¶
func (t *Event) MergeCannotRouteMessageEvent(v CannotRouteMessageEvent) error
MergeCannotRouteMessageEvent performs a merge with any union data inside the Event, using the provided CannotRouteMessageEvent
func (*Event) MergeGasCreditEvent ¶
func (t *Event) MergeGasCreditEvent(v GasCreditEvent) error
MergeGasCreditEvent performs a merge with any union data inside the Event, using the provided GasCreditEvent
func (*Event) MergeGasRefundedEvent ¶
func (t *Event) MergeGasRefundedEvent(v GasRefundedEvent) error
MergeGasRefundedEvent performs a merge with any union data inside the Event, using the provided GasRefundedEvent
func (*Event) MergeITSInterchainTokenDeploymentStartedEvent ¶
func (t *Event) MergeITSInterchainTokenDeploymentStartedEvent(v ITSInterchainTokenDeploymentStartedEvent) error
MergeITSInterchainTokenDeploymentStartedEvent performs a merge with any union data inside the Event, using the provided ITSInterchainTokenDeploymentStartedEvent
func (*Event) MergeITSInterchainTransferEvent ¶
func (t *Event) MergeITSInterchainTransferEvent(v ITSInterchainTransferEvent) error
MergeITSInterchainTransferEvent performs a merge with any union data inside the Event, using the provided ITSInterchainTransferEvent
func (*Event) MergeITSLinkTokenStartedEvent ¶
func (t *Event) MergeITSLinkTokenStartedEvent(v ITSLinkTokenStartedEvent) error
MergeITSLinkTokenStartedEvent performs a merge with any union data inside the Event, using the provided ITSLinkTokenStartedEvent
func (*Event) MergeITSTokenMetadataRegisteredEvent ¶
func (t *Event) MergeITSTokenMetadataRegisteredEvent(v ITSTokenMetadataRegisteredEvent) error
MergeITSTokenMetadataRegisteredEvent performs a merge with any union data inside the Event, using the provided ITSTokenMetadataRegisteredEvent
func (*Event) MergeMessageApprovedEvent ¶
func (t *Event) MergeMessageApprovedEvent(v MessageApprovedEvent) error
MergeMessageApprovedEvent performs a merge with any union data inside the Event, using the provided MessageApprovedEvent
func (*Event) MergeMessageExecutedEvent ¶
func (t *Event) MergeMessageExecutedEvent(v MessageExecutedEvent) error
MergeMessageExecutedEvent performs a merge with any union data inside the Event, using the provided MessageExecutedEvent
func (*Event) MergeMessageExecutedEventV2 ¶
func (t *Event) MergeMessageExecutedEventV2(v MessageExecutedEventV2) error
MergeMessageExecutedEventV2 performs a merge with any union data inside the Event, using the provided MessageExecutedEventV2
func (*Event) MergeSignersRotatedEvent ¶
func (t *Event) MergeSignersRotatedEvent(v SignersRotatedEvent) error
MergeSignersRotatedEvent performs a merge with any union data inside the Event, using the provided SignersRotatedEvent
func (*Event) UnmarshalJSON ¶
func (Event) ValueByDiscriminator ¶
type EventBase ¶
type EventBase struct {
EventID string `json:"eventID"`
Meta *EventMetadata `json:"meta,omitempty"`
}
EventBase defines model for EventBase.
type EventMetadata ¶
type EventMetadata struct {
Finalized *bool `json:"finalized,omitempty"`
FromAddress *Address `json:"fromAddress,omitempty"`
Timestamp *time.Time `json:"timestamp,omitempty"`
TxID *string `json:"txID,omitempty"`
}
EventMetadata defines model for EventMetadata.
type EventType ¶
type EventType string
EventType defines model for EventType.
const ( EventTypeAppInterchainTransferReceived EventType = "APP/INTERCHAIN_TRANSFER_RECEIVED" EventTypeAppInterchainTransferSent EventType = "APP/INTERCHAIN_TRANSFER_SENT" EventTypeCall EventType = "CALL" EventTypeCannotExecuteMessage EventType = "CANNOT_EXECUTE_MESSAGE" EventTypeCannotExecuteMessageV2 EventType = "CANNOT_EXECUTE_MESSAGE/V2" EventTypeCannotExecuteTask EventType = "CANNOT_EXECUTE_TASK" EventTypeCannotRouteMessage EventType = "CANNOT_ROUTE_MESSAGE" EventTypeGasCredit EventType = "GAS_CREDIT" EventTypeGasRefunded EventType = "GAS_REFUNDED" EventTypeITSInterchainTokenDeploymentStarted EventType = "ITS/INTERCHAIN_TOKEN_DEPLOYMENT_STARTED" EventTypeITSInterchainTransfer EventType = "ITS/INTERCHAIN_TRANSFER" EventTypeITSLinkTokenStarted EventType = "ITS/LINK_TOKEN_STARTED" EventTypeITSTokenMetadataRegistered EventType = "ITS/TOKEN_METADATA_REGISTERED" EventTypeMessageApproved EventType = "MESSAGE_APPROVED" EventTypeMessageExecuted EventType = "MESSAGE_EXECUTED" EventTypeMessageExecutedV2 EventType = "MESSAGE_EXECUTED/V2" EventTypeSignersRotated EventType = "SIGNERS_ROTATED" )
Defines values for EventType.
type ExecuteTask ¶
type ExecuteTask struct {
AvailableGasBalance Token `json:"availableGasBalance"`
Message Message `json:"message"`
Payload []byte `json:"payload"`
}
ExecuteTask defines model for ExecuteTask.
type Fee ¶
type Fee struct {
Description *string `json:"description,omitempty"`
ID string `json:"id"`
Meta *FeeMetadata `json:"meta,omitempty"`
Token UnsignedToken `json:"token"`
}
Fee defines model for Fee.
type FeeMetadata ¶
type FeeMetadata struct {
TxID *string `json:"txID,omitempty"`
}
FeeMetadata defines model for FeeMetadata.
type GasCreditEvent ¶
type GasCreditEvent struct {
EventID string `json:"eventID"`
MessageID string `json:"messageID"`
Meta *EventMetadata `json:"meta,omitempty"`
Payment UnsignedToken `json:"payment"`
RefundAddress Address `json:"refundAddress"`
}
GasCreditEvent defines model for GasCreditEvent.
type GasRefundedEvent ¶
type GasRefundedEvent struct {
Cost Cost `json:"cost"`
EventID string `json:"eventID"`
MessageID string `json:"messageID"`
Meta *EventMetadata `json:"meta,omitempty"`
RecipientAddress Address `json:"recipientAddress"`
RefundedAmount UnsignedToken `json:"refundedAmount"`
}
GasRefundedEvent defines model for GasRefundedEvent.
func (*GasRefundedEvent) GetFees ¶
func (e *GasRefundedEvent) GetFees() (Fees, error)
GetFees returns Fees from the event If Cost is Fees, then Fees is returned. If Cost is Token, then Fees containing a single item is returned where ID equals ID of the event, and .Meta.TxID equals .Meta.TxID of the event (if present).
type GatewayTransactionTask ¶
type GatewayTransactionTask struct {
ExecuteData []byte `json:"executeData"`
}
GatewayTransactionTask defines model for GatewayTransactionTask.
type GeneralizableToken ¶
GeneralizableToken is a compatibility interface that generalizes Token and UnsignedToken.
type GeneralizedMessageExecutedEvent ¶
type GeneralizedMessageExecutedEvent interface {
GetEventID() string
GetCrossChainID() CrossChainID
GetStatus() MessageExecutionStatus
GetFees() (Fees, error)
GetMeta() *MessageExecutedEventMetadata
}
GeneralizedMessageExecutedEvent is a compatibility interface that generalizes MessageExecutedEvent and MessageExecutedEventV2.
type GetMsgExecuteContractBroadcastStatusResponse ¶
type GetMsgExecuteContractBroadcastStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BroadcastStatusResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetMsgExecuteContractBroadcastStatusResponse ¶
func ParseGetMsgExecuteContractBroadcastStatusResponse(rsp *http.Response) (*GetMsgExecuteContractBroadcastStatusResponse, error)
ParseGetMsgExecuteContractBroadcastStatusResponse parses an HTTP response from a GetMsgExecuteContractBroadcastStatusWithResponse call
func (GetMsgExecuteContractBroadcastStatusResponse) Status ¶
func (r GetMsgExecuteContractBroadcastStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetMsgExecuteContractBroadcastStatusResponse) StatusCode ¶
func (r GetMsgExecuteContractBroadcastStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPayloadResponse ¶
type GetPayloadResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetPayloadResponse ¶
func ParseGetPayloadResponse(rsp *http.Response) (*GetPayloadResponse, error)
ParseGetPayloadResponse parses an HTTP response from a GetPayloadWithResponse call
func (GetPayloadResponse) Status ¶
func (r GetPayloadResponse) Status() string
Status returns HTTPResponse.Status
func (GetPayloadResponse) StatusCode ¶
func (r GetPayloadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTaskResponse ¶
type GetTaskResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetTaskResult
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetTaskResponse ¶
func ParseGetTaskResponse(rsp *http.Response) (*GetTaskResponse, error)
ParseGetTaskResponse parses an HTTP response from a GetTaskWithResponse call
func (GetTaskResponse) Status ¶
func (r GetTaskResponse) Status() string
Status returns HTTPResponse.Status
func (GetTaskResponse) StatusCode ¶
func (r GetTaskResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTaskResult ¶
type GetTaskResult struct {
Task TaskItem `json:"task"`
}
GetTaskResult defines model for GetTaskResult.
type GetTasksParams ¶
type GetTasksParams struct {
After *After `form:"after,omitempty" json:"after,omitempty"`
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}
GetTasksParams defines parameters for GetTasks.
type GetTasksResponse ¶
type GetTasksResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetTasksResult
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseGetTasksResponse ¶
func ParseGetTasksResponse(rsp *http.Response) (*GetTasksResponse, error)
ParseGetTasksResponse parses an HTTP response from a GetTasksWithResponse call
func (GetTasksResponse) Status ¶
func (r GetTasksResponse) Status() string
Status returns HTTPResponse.Status
func (GetTasksResponse) StatusCode ¶
func (r GetTasksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTasksResult ¶
type GetTasksResult struct {
Tasks []TaskItem `json:"tasks"`
}
GetTasksResult defines model for GetTasksResult.
type GinServerOptions ¶
type GinServerOptions struct {
BaseURL string
Middlewares []MiddlewareFunc
ErrorHandler func(*gin.Context, error, int)
}
GinServerOptions provides options for the Gin server.
type HealthCheckResponse ¶
func ParseHealthCheckResponse ¶
func ParseHealthCheckResponse(rsp *http.Response) (*HealthCheckResponse, error)
ParseHealthCheckResponse parses an HTTP response from a HealthCheckWithResponse call
func (HealthCheckResponse) Status ¶
func (r HealthCheckResponse) Status() string
Status returns HTTPResponse.Status
func (HealthCheckResponse) StatusCode ¶
func (r HealthCheckResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ITSInterchainTokenDeploymentStartedEvent ¶
type ITSInterchainTokenDeploymentStartedEvent struct {
DestinationChain string `json:"destinationChain"`
EventID string `json:"eventID"`
MessageID string `json:"messageID"`
Meta *EventMetadata `json:"meta,omitempty"`
Token InterchainTokenDefinition `json:"token"`
}
ITSInterchainTokenDeploymentStartedEvent defines model for ITSInterchainTokenDeploymentStartedEvent.
type ITSInterchainTransferEvent ¶
type ITSInterchainTransferEvent struct {
DataHash []byte `json:"dataHash"`
DestinationAddress []byte `json:"destinationAddress"`
DestinationChain string `json:"destinationChain"`
EventID string `json:"eventID"`
MessageID string `json:"messageID"`
Meta *EventMetadata `json:"meta,omitempty"`
SourceAddress Address `json:"sourceAddress"`
TokenSpent InterchainTransferTokenWithID `json:"tokenSpent"`
}
ITSInterchainTransferEvent defines model for ITSInterchainTransferEvent.
type ITSLinkTokenStartedEvent ¶
type ITSLinkTokenStartedEvent struct {
DestinationChain string `json:"destinationChain"`
DestinationTokenAddress []byte `json:"destinationTokenAddress"`
EventID string `json:"eventID"`
MessageID string `json:"messageID"`
Meta *EventMetadata `json:"meta,omitempty"`
SourceTokenAddress []byte `json:"sourceTokenAddress"`
TokenID string `json:"tokenID"`
TokenManagerType TokenManagerType `json:"tokenManagerType"`
}
ITSLinkTokenStartedEvent defines model for ITSLinkTokenStartedEvent.
type ITSTokenMetadataRegisteredEvent ¶
type ITSTokenMetadataRegisteredEvent struct {
Address Address `json:"address"`
Decimals uint8 `json:"decimals"`
EventID string `json:"eventID"`
MessageID string `json:"messageID"`
Meta *EventMetadata `json:"meta,omitempty"`
}
ITSTokenMetadataRegisteredEvent defines model for ITSTokenMetadataRegisteredEvent.
type InterchainTokenDefinition ¶
type InterchainTokenDefinition struct {
Decimals uint8 `json:"decimals"`
ID string `json:"id"`
Name string `json:"name"`
Symbol string `json:"symbol"`
}
InterchainTokenDefinition defines model for InterchainTokenDefinition.
type InterchainTransferTokenWithAddress ¶
type InterchainTransferTokenWithAddress struct {
Amount UnsignedBigInt `json:"amount"`
TokenAddress Address `json:"tokenAddress"`
}
InterchainTransferTokenWithAddress defines model for InterchainTransferTokenWithAddress.
type InterchainTransferTokenWithID ¶
type InterchainTransferTokenWithID struct {
Amount UnsignedBigInt `json:"amount"`
TokenID string `json:"tokenID"`
}
InterchainTransferTokenWithID defines model for InterchainTransferTokenWithID.
type Message ¶
type Message struct {
DestinationAddress Address `json:"destinationAddress"`
MessageID string `json:"messageID"`
PayloadHash []byte `json:"payloadHash"`
SourceAddress Address `json:"sourceAddress"`
SourceChain string `json:"sourceChain"`
}
Message defines model for Message.
type MessageApprovedEvent ¶
type MessageApprovedEvent struct {
Cost Cost `json:"cost"`
EventID string `json:"eventID"`
Message Message `json:"message"`
Meta *MessageApprovedEventMetadata `json:"meta,omitempty"`
}
MessageApprovedEvent defines model for MessageApprovedEvent.
func (*MessageApprovedEvent) GetFees ¶
func (e *MessageApprovedEvent) GetFees() (Fees, error)
GetFees returns Fees from the event If Cost is Fees, then Fees is returned. If Cost is Token, then Fees containing a single item is returned where ID equals ID of the event, and .Meta.TxID equals .Meta.TxID of the event (if present).
type MessageApprovedEventMetadata ¶
type MessageApprovedEventMetadata struct {
CommandID *string `json:"commandID,omitempty"`
Finalized *bool `json:"finalized,omitempty"`
FromAddress *Address `json:"fromAddress,omitempty"`
Timestamp *time.Time `json:"timestamp,omitempty"`
TxID *string `json:"txID,omitempty"`
}
MessageApprovedEventMetadata defines model for MessageApprovedEventMetadata.
type MessageContext ¶
MessageContext defines model for MessageContext.
type MessageExecutedEvent ¶
type MessageExecutedEvent struct {
Cost Cost `json:"cost"`
EventID string `json:"eventID"`
MessageID string `json:"messageID"`
Meta *MessageExecutedEventMetadata `json:"meta,omitempty"`
SourceChain string `json:"sourceChain"`
// Deprecated:
Status MessageExecutionStatus `json:"status"`
}
MessageExecutedEvent defines model for MessageExecutedEvent.
func (*MessageExecutedEvent) GetCrossChainID ¶
func (e *MessageExecutedEvent) GetCrossChainID() CrossChainID
GetCrossChainID returns CrossChainID constructed with MessageExecutedEvent.SourceChain and MessageExecutedEvent.MessageID of the event
func (*MessageExecutedEvent) GetEventID ¶
func (e *MessageExecutedEvent) GetEventID() string
GetEventID returns the MessageExecutedEvent.EventID of the event
func (*MessageExecutedEvent) GetFees ¶
func (e *MessageExecutedEvent) GetFees() (Fees, error)
GetFees returns Fees from the event If Cost is Fees, then Fees is returned. If Cost is Token, then Fees containing a single item is returned where ID equals ID of the event, and .Meta.TxID equals .Meta.TxID of the event (if present).
func (*MessageExecutedEvent) GetMeta ¶
func (e *MessageExecutedEvent) GetMeta() *MessageExecutedEventMetadata
GetMeta returns the MessageExecutedEvent.Meta of the event
func (*MessageExecutedEvent) GetStatus ¶
func (e *MessageExecutedEvent) GetStatus() MessageExecutionStatus
GetStatus returns the MessageExecutedEvent.Status of the event
type MessageExecutedEventMetadata ¶
type MessageExecutedEventMetadata struct {
ChildMessageIDs *[]string `json:"childMessageIDs,omitempty"`
CommandID *string `json:"commandID,omitempty"`
Finalized *bool `json:"finalized,omitempty"`
FromAddress *Address `json:"fromAddress,omitempty"`
RevertReason *string `json:"revertReason,omitempty"`
Timestamp *time.Time `json:"timestamp,omitempty"`
TxID *string `json:"txID,omitempty"`
}
MessageExecutedEventMetadata defines model for MessageExecutedEventMetadata.
type MessageExecutedEventV2 ¶
type MessageExecutedEventV2 struct {
Cost Cost `json:"cost"`
CrossChainID CrossChainID `json:"crossChainID"`
EventID string `json:"eventID"`
Meta *MessageExecutedEventMetadata `json:"meta,omitempty"`
}
MessageExecutedEventV2 defines model for MessageExecutedEventV2.
func (*MessageExecutedEventV2) GetCrossChainID ¶
func (e *MessageExecutedEventV2) GetCrossChainID() CrossChainID
GetCrossChainID returns the MessageExecutedEventV2.CrossChainID of the event
func (*MessageExecutedEventV2) GetEventID ¶
func (e *MessageExecutedEventV2) GetEventID() string
GetEventID returns the MessageExecutedEventV2.EventID of the event
func (*MessageExecutedEventV2) GetFees ¶
func (e *MessageExecutedEventV2) GetFees() (Fees, error)
GetFees returns Fees from the event If Cost is Fees, then Fees is returned. If Cost is Token, then Fees containing a single item is returned where ID equals ID of the event, and .Meta.TxID equals .Meta.TxID of the event (if present).
func (*MessageExecutedEventV2) GetMeta ¶
func (e *MessageExecutedEventV2) GetMeta() *MessageExecutedEventMetadata
GetMeta returns the MessageExecutedEventV2.Meta of the event
func (*MessageExecutedEventV2) GetStatus ¶
func (e *MessageExecutedEventV2) GetStatus() MessageExecutionStatus
GetStatus returns MessageExecutionStatusSuccessful
type MessageExecutionStatus ¶
type MessageExecutionStatus string
MessageExecutionStatus defines model for MessageExecutionStatus.
const ( MessageExecutionStatusReverted MessageExecutionStatus = "REVERTED" MessageExecutionStatusSuccessful MessageExecutionStatus = "SUCCESSFUL" )
Defines values for MessageExecutionStatus.
type MiddlewareFunc ¶
type PublishEventAcceptedResult ¶
type PublishEventAcceptedResult struct {
Index int `json:"index"`
Status PublishEventStatus `json:"status"`
}
PublishEventAcceptedResult defines model for PublishEventAcceptedResult.
type PublishEventErrorResult ¶
type PublishEventErrorResult struct {
Error string `json:"error"`
Index int `json:"index"`
Retriable bool `json:"retriable"`
Status PublishEventStatus `json:"status"`
}
PublishEventErrorResult defines model for PublishEventErrorResult.
type PublishEventResultItem ¶
type PublishEventResultItem struct {
// contains filtered or unexported fields
}
PublishEventResultItem defines model for PublishEventResultItem.
func (PublishEventResultItem) AsPublishEventAcceptedResult ¶
func (t PublishEventResultItem) AsPublishEventAcceptedResult() (PublishEventAcceptedResult, error)
AsPublishEventAcceptedResult returns the union data inside the PublishEventResultItem as a PublishEventAcceptedResult
func (PublishEventResultItem) AsPublishEventErrorResult ¶
func (t PublishEventResultItem) AsPublishEventErrorResult() (PublishEventErrorResult, error)
AsPublishEventErrorResult returns the union data inside the PublishEventResultItem as a PublishEventErrorResult
func (PublishEventResultItem) Discriminator ¶
func (t PublishEventResultItem) Discriminator() (string, error)
func (*PublishEventResultItem) FromPublishEventAcceptedResult ¶
func (t *PublishEventResultItem) FromPublishEventAcceptedResult(v PublishEventAcceptedResult) error
FromPublishEventAcceptedResult overwrites any union data inside the PublishEventResultItem as the provided PublishEventAcceptedResult
func (*PublishEventResultItem) FromPublishEventErrorResult ¶
func (t *PublishEventResultItem) FromPublishEventErrorResult(v PublishEventErrorResult) error
FromPublishEventErrorResult overwrites any union data inside the PublishEventResultItem as the provided PublishEventErrorResult
func (PublishEventResultItem) MarshalJSON ¶
func (t PublishEventResultItem) MarshalJSON() ([]byte, error)
func (*PublishEventResultItem) MergePublishEventAcceptedResult ¶
func (t *PublishEventResultItem) MergePublishEventAcceptedResult(v PublishEventAcceptedResult) error
MergePublishEventAcceptedResult performs a merge with any union data inside the PublishEventResultItem, using the provided PublishEventAcceptedResult
func (*PublishEventResultItem) MergePublishEventErrorResult ¶
func (t *PublishEventResultItem) MergePublishEventErrorResult(v PublishEventErrorResult) error
MergePublishEventErrorResult performs a merge with any union data inside the PublishEventResultItem, using the provided PublishEventErrorResult
func (*PublishEventResultItem) UnmarshalJSON ¶
func (t *PublishEventResultItem) UnmarshalJSON(b []byte) error
func (PublishEventResultItem) ValueByDiscriminator ¶
func (t PublishEventResultItem) ValueByDiscriminator() (interface{}, error)
type PublishEventResultItemBase ¶
type PublishEventResultItemBase struct {
Index int `json:"index"`
Status PublishEventStatus `json:"status"`
}
PublishEventResultItemBase defines model for PublishEventResultItemBase.
type PublishEventStatus ¶
type PublishEventStatus string
PublishEventStatus defines model for PublishEventStatus.
const ( PublishEventStatusAccepted PublishEventStatus = "ACCEPTED" PublishEventStatusError PublishEventStatus = "ERROR" )
Defines values for PublishEventStatus.
type PublishEventsJSONRequestBody ¶
type PublishEventsJSONRequestBody = PublishEventsRequest
PublishEventsJSONRequestBody defines body for PublishEvents for application/json ContentType.
type PublishEventsRequest ¶
type PublishEventsRequest struct {
Events []Event `json:"events"`
}
PublishEventsRequest defines model for PublishEventsRequest.
type PublishEventsResponse ¶
type PublishEventsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PublishEventsResult
JSON400 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParsePublishEventsResponse ¶
func ParsePublishEventsResponse(rsp *http.Response) (*PublishEventsResponse, error)
ParsePublishEventsResponse parses an HTTP response from a PublishEventsWithResponse call
func (PublishEventsResponse) Status ¶
func (r PublishEventsResponse) Status() string
Status returns HTTPResponse.Status
func (PublishEventsResponse) StatusCode ¶
func (r PublishEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PublishEventsResult ¶
type PublishEventsResult struct {
Results []PublishEventResultItem `json:"results"`
}
PublishEventsResult defines model for PublishEventsResult.
type QueryContractStateJSONRequestBody ¶
type QueryContractStateJSONRequestBody = WasmRequest
QueryContractStateJSONRequestBody defines body for QueryContractState for application/json ContentType.
type QueryContractStateResponse ¶
type QueryContractStateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ContractQueryResponse
JSON400 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseQueryContractStateResponse ¶
func ParseQueryContractStateResponse(rsp *http.Response) (*QueryContractStateResponse, error)
ParseQueryContractStateResponse parses an HTTP response from a QueryContractStateWithResponse call
func (QueryContractStateResponse) Status ¶
func (r QueryContractStateResponse) Status() string
Status returns HTTPResponse.Status
func (QueryContractStateResponse) StatusCode ¶
func (r QueryContractStateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QuorumReachedEvent ¶
type QuorumReachedEvent struct {
Content json.RawMessage `json:"content"`
Status VerificationStatus `json:"status"`
}
QuorumReachedEvent defines model for QuorumReachedEvent.
type ReactToExpiredSigningSessionTask ¶
type ReactToExpiredSigningSessionTask struct {
BroadcastID BroadcastID `json:"broadcastID"`
InvokedContractAddress Address `json:"invokedContractAddress"`
RequestPayload WasmRequest `json:"requestPayload"`
SessionID uint64 `json:"sessionID"`
}
ReactToExpiredSigningSessionTask defines model for ReactToExpiredSigningSessionTask.
type ReactToRetriablePollTask ¶
type ReactToRetriablePollTask struct {
BroadcastID BroadcastID `json:"broadcastID"`
InvokedContractAddress Address `json:"invokedContractAddress"`
PollID uint64 `json:"pollID"`
QuorumReachedEvents []QuorumReachedEvent `json:"quorumReachedEvents"`
RequestPayload WasmRequest `json:"requestPayload"`
}
ReactToRetriablePollTask defines model for ReactToRetriablePollTask.
type ReactToWasmEventTask ¶
ReactToWasmEventTask defines model for ReactToWasmEventTask.
type RefundTask ¶
type RefundTask struct {
Message Message `json:"message"`
RefundRecipientAddress Address `json:"refundRecipientAddress"`
RemainingGasBalance UnsignedToken `json:"remainingGasBalance"`
}
RefundTask defines model for RefundTask.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ServerInterface ¶
type ServerInterface interface {
// Publish on-chain events
// (POST /chains/{chain}/events)
PublishEvents(c *gin.Context, chain Chain)
// Poll transaction to be executed on chain
// (GET /chains/{chain}/tasks)
GetTasks(c *gin.Context, chain Chain, params GetTasksParams)
// Retrieve a transaction to be executed on-chain by id
// (GET /chains/{chain}/tasks/{taskItemID})
GetTask(c *gin.Context, chain Chain, taskItemID TaskItemID)
// Broadcast arbitrary MsgExecuteContract transaction
// (POST /contracts/{wasmContractAddress}/broadcasts)
BroadcastMsgExecuteContract(c *gin.Context, wasmContractAddress WasmContractAddress)
// Get broadcast status
// (GET /contracts/{wasmContractAddress}/broadcasts/{broadcastID})
GetMsgExecuteContractBroadcastStatus(c *gin.Context, wasmContractAddress WasmContractAddress, broadcastID BroadcastID)
// Query arbitrary contract state
// (POST /contracts/{wasmContractAddress}/queries)
QueryContractState(c *gin.Context, wasmContractAddress WasmContractAddress)
// Health check
// (GET /health)
HealthCheck(c *gin.Context)
// Temporarily store a large payload against its hash to bypass size restrictions on some chains.
// (POST /payloads)
StorePayload(c *gin.Context)
// Retrieve a stored payload by its hash
// (GET /payloads/{hash})
GetPayload(c *gin.Context, hash Keccak256Hash)
}
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandler func(*gin.Context, error, int)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) BroadcastMsgExecuteContract ¶
func (siw *ServerInterfaceWrapper) BroadcastMsgExecuteContract(c *gin.Context)
BroadcastMsgExecuteContract operation middleware
func (*ServerInterfaceWrapper) GetMsgExecuteContractBroadcastStatus ¶
func (siw *ServerInterfaceWrapper) GetMsgExecuteContractBroadcastStatus(c *gin.Context)
GetMsgExecuteContractBroadcastStatus operation middleware
func (*ServerInterfaceWrapper) GetPayload ¶
func (siw *ServerInterfaceWrapper) GetPayload(c *gin.Context)
GetPayload operation middleware
func (*ServerInterfaceWrapper) GetTask ¶
func (siw *ServerInterfaceWrapper) GetTask(c *gin.Context)
GetTask operation middleware
func (*ServerInterfaceWrapper) GetTasks ¶
func (siw *ServerInterfaceWrapper) GetTasks(c *gin.Context)
GetTasks operation middleware
func (*ServerInterfaceWrapper) HealthCheck ¶
func (siw *ServerInterfaceWrapper) HealthCheck(c *gin.Context)
HealthCheck operation middleware
func (*ServerInterfaceWrapper) PublishEvents ¶
func (siw *ServerInterfaceWrapper) PublishEvents(c *gin.Context)
PublishEvents operation middleware
func (*ServerInterfaceWrapper) QueryContractState ¶
func (siw *ServerInterfaceWrapper) QueryContractState(c *gin.Context)
QueryContractState operation middleware
func (*ServerInterfaceWrapper) StorePayload ¶
func (siw *ServerInterfaceWrapper) StorePayload(c *gin.Context)
StorePayload operation middleware
type SignersRotatedEvent ¶
type SignersRotatedEvent struct {
EventID string `json:"eventID"`
MessageID string `json:"messageID"`
Meta *SignersRotatedEventMetadata `json:"meta,omitempty"`
}
SignersRotatedEvent defines model for SignersRotatedEvent.
type SignersRotatedEventMetadata ¶
type SignersRotatedEventMetadata struct {
Epoch *int64 `json:"epoch,omitempty"`
Finalized *bool `json:"finalized,omitempty"`
FromAddress *Address `json:"fromAddress,omitempty"`
SignersHash *[]byte `json:"signersHash,omitempty"`
Timestamp *time.Time `json:"timestamp,omitempty"`
TxID *string `json:"txID,omitempty"`
}
SignersRotatedEventMetadata defines model for SignersRotatedEventMetadata.
type SourceChainTaskMetadata ¶
type SourceChainTaskMetadata struct {
SourceContext *MessageContext `json:"sourceContext,omitempty"`
}
SourceChainTaskMetadata Metadata attached to REFUND and VERIFY tasks. It carries values passed in the associated CALL event (if any) back to the source chain.
type StorePayloadResponse ¶
type StorePayloadResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *StorePayloadResult
JSON400 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseStorePayloadResponse ¶
func ParseStorePayloadResponse(rsp *http.Response) (*StorePayloadResponse, error)
ParseStorePayloadResponse parses an HTTP response from a StorePayloadWithResponse call
func (StorePayloadResponse) Status ¶
func (r StorePayloadResponse) Status() string
Status returns HTTPResponse.Status
func (StorePayloadResponse) StatusCode ¶
func (r StorePayloadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StorePayloadResult ¶
type StorePayloadResult struct {
Keccak256 Keccak256Hash `json:"keccak256"`
}
StorePayloadResult defines model for StorePayloadResult.
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
Task defines model for Task.
func (Task) AsConstructProofTask ¶
func (t Task) AsConstructProofTask() (ConstructProofTask, error)
AsConstructProofTask returns the union data inside the Task as a ConstructProofTask
func (Task) AsExecuteTask ¶
func (t Task) AsExecuteTask() (ExecuteTask, error)
AsExecuteTask returns the union data inside the Task as a ExecuteTask
func (Task) AsGatewayTransactionTask ¶
func (t Task) AsGatewayTransactionTask() (GatewayTransactionTask, error)
AsGatewayTransactionTask returns the union data inside the Task as a GatewayTransactionTask
func (Task) AsReactToExpiredSigningSessionTask ¶
func (t Task) AsReactToExpiredSigningSessionTask() (ReactToExpiredSigningSessionTask, error)
AsReactToExpiredSigningSessionTask returns the union data inside the Task as a ReactToExpiredSigningSessionTask
func (Task) AsReactToRetriablePollTask ¶
func (t Task) AsReactToRetriablePollTask() (ReactToRetriablePollTask, error)
AsReactToRetriablePollTask returns the union data inside the Task as a ReactToRetriablePollTask
func (Task) AsReactToWasmEventTask ¶
func (t Task) AsReactToWasmEventTask() (ReactToWasmEventTask, error)
AsReactToWasmEventTask returns the union data inside the Task as a ReactToWasmEventTask
func (Task) AsRefundTask ¶
func (t Task) AsRefundTask() (RefundTask, error)
AsRefundTask returns the union data inside the Task as a RefundTask
func (Task) AsVerifyTask ¶
func (t Task) AsVerifyTask() (VerifyTask, error)
AsVerifyTask returns the union data inside the Task as a VerifyTask
func (*Task) FromConstructProofTask ¶
func (t *Task) FromConstructProofTask(v ConstructProofTask) error
FromConstructProofTask overwrites any union data inside the Task as the provided ConstructProofTask
func (*Task) FromExecuteTask ¶
func (t *Task) FromExecuteTask(v ExecuteTask) error
FromExecuteTask overwrites any union data inside the Task as the provided ExecuteTask
func (*Task) FromGatewayTransactionTask ¶
func (t *Task) FromGatewayTransactionTask(v GatewayTransactionTask) error
FromGatewayTransactionTask overwrites any union data inside the Task as the provided GatewayTransactionTask
func (*Task) FromReactToExpiredSigningSessionTask ¶
func (t *Task) FromReactToExpiredSigningSessionTask(v ReactToExpiredSigningSessionTask) error
FromReactToExpiredSigningSessionTask overwrites any union data inside the Task as the provided ReactToExpiredSigningSessionTask
func (*Task) FromReactToRetriablePollTask ¶
func (t *Task) FromReactToRetriablePollTask(v ReactToRetriablePollTask) error
FromReactToRetriablePollTask overwrites any union data inside the Task as the provided ReactToRetriablePollTask
func (*Task) FromReactToWasmEventTask ¶
func (t *Task) FromReactToWasmEventTask(v ReactToWasmEventTask) error
FromReactToWasmEventTask overwrites any union data inside the Task as the provided ReactToWasmEventTask
func (*Task) FromRefundTask ¶
func (t *Task) FromRefundTask(v RefundTask) error
FromRefundTask overwrites any union data inside the Task as the provided RefundTask
func (*Task) FromVerifyTask ¶
func (t *Task) FromVerifyTask(v VerifyTask) error
FromVerifyTask overwrites any union data inside the Task as the provided VerifyTask
func (Task) MarshalJSON ¶
func (*Task) MergeConstructProofTask ¶
func (t *Task) MergeConstructProofTask(v ConstructProofTask) error
MergeConstructProofTask performs a merge with any union data inside the Task, using the provided ConstructProofTask
func (*Task) MergeExecuteTask ¶
func (t *Task) MergeExecuteTask(v ExecuteTask) error
MergeExecuteTask performs a merge with any union data inside the Task, using the provided ExecuteTask
func (*Task) MergeGatewayTransactionTask ¶
func (t *Task) MergeGatewayTransactionTask(v GatewayTransactionTask) error
MergeGatewayTransactionTask performs a merge with any union data inside the Task, using the provided GatewayTransactionTask
func (*Task) MergeReactToExpiredSigningSessionTask ¶
func (t *Task) MergeReactToExpiredSigningSessionTask(v ReactToExpiredSigningSessionTask) error
MergeReactToExpiredSigningSessionTask performs a merge with any union data inside the Task, using the provided ReactToExpiredSigningSessionTask
func (*Task) MergeReactToRetriablePollTask ¶
func (t *Task) MergeReactToRetriablePollTask(v ReactToRetriablePollTask) error
MergeReactToRetriablePollTask performs a merge with any union data inside the Task, using the provided ReactToRetriablePollTask
func (*Task) MergeReactToWasmEventTask ¶
func (t *Task) MergeReactToWasmEventTask(v ReactToWasmEventTask) error
MergeReactToWasmEventTask performs a merge with any union data inside the Task, using the provided ReactToWasmEventTask
func (*Task) MergeRefundTask ¶
func (t *Task) MergeRefundTask(v RefundTask) error
MergeRefundTask performs a merge with any union data inside the Task, using the provided RefundTask
func (*Task) MergeVerifyTask ¶
func (t *Task) MergeVerifyTask(v VerifyTask) error
MergeVerifyTask performs a merge with any union data inside the Task, using the provided VerifyTask
func (*Task) UnmarshalJSON ¶
type TaskItem ¶
type TaskItem struct {
Chain string `json:"chain"`
ID TaskItemID `json:"id"`
Meta *TaskMetadata `json:"meta,omitempty"`
Task Task `json:"task"`
Timestamp time.Time `json:"timestamp"`
Type TaskType `json:"type"`
}
TaskItem defines model for TaskItem.
type TaskMetadata ¶
type TaskMetadata struct {
ScopedMessages *[]CrossChainID `json:"scopedMessages,omitempty"`
SourceChainSenderContractAddress *Address `json:"sourceChainSenderContractAddress,omitempty"`
SourceContext *MessageContext `json:"sourceContext,omitempty"`
}
TaskMetadata defines model for TaskMetadata.
type TaskType ¶
type TaskType string
TaskType defines model for TaskType.
const ( TaskTypeConstructProof TaskType = "CONSTRUCT_PROOF" TaskTypeExecute TaskType = "EXECUTE" TaskTypeGatewayTransaction TaskType = "GATEWAY_TX" TaskTypeReactToExpiredSigningSession TaskType = "REACT_TO_EXPIRED_SIGNING_SESSION" TaskTypeReactToRetriablePoll TaskType = "REACT_TO_RETRIABLE_POLL" TaskTypeReactToWasmEvent TaskType = "REACT_TO_WASM_EVENT" TaskTypeRefund TaskType = "REFUND" TaskTypeVerify TaskType = "VERIFY" )
Defines values for TaskType.
type Token ¶
Token defines model for Token.
func (Token) GetTokenID ¶
GetTokenID returns the TokenID of the token.
type TokenManagerType ¶
type TokenManagerType string
TokenManagerType defines model for TokenManagerType.
const ( TokenManagerLockUnlock TokenManagerType = "LOCK_UNLOCK" TokenManagerLockUnlockFee TokenManagerType = "LOCK_UNLOCK_FEE" TokenManagerMintBurn TokenManagerType = "MINT_BURN" TokenManagerMintBurnFrom TokenManagerType = "MINT_BURN_FROM" TokenManagerNativeInterchainToken TokenManagerType = "NATIVE_INTERCHAIN_TOKEN" )
Defines values for TokenManagerType.
func TokenManagerTypeFromSolidityEnum ¶
func TokenManagerTypeFromSolidityEnum(solidityTokenManagerType uint8) (TokenManagerType, error)
TokenManagerTypeFromSolidityEnum converts solidity TokenManagerType to API TokenManagerType
type UnsignedToken ¶
type UnsignedToken struct {
Amount UnsignedBigInt `json:"amount"`
TokenID *string `json:"tokenID,omitempty"`
}
UnsignedToken defines model for UnsignedToken.
func (UnsignedToken) GetAmount ¶
func (t UnsignedToken) GetAmount() string
GetAmount returns the Amount of the token.
func (UnsignedToken) GetTokenID ¶
func (t UnsignedToken) GetTokenID() *string
GetTokenID returns the TokenID of the token.
type UnsignedTokenWithRequiredID ¶
type UnsignedTokenWithRequiredID struct {
Amount UnsignedBigInt `json:"amount"`
TokenID string `json:"tokenID"`
}
UnsignedTokenWithRequiredID defines model for UnsignedTokenWithRequiredID.
type VerificationStatus ¶
type VerificationStatus string
VerificationStatus defines model for VerificationStatus.
const ( VerificationStatusFailedOnSourceChain VerificationStatus = "FAILED_ON_SOURCE_CHAIN" VerificationStatusFailedToVerify VerificationStatus = "FAILED_TO_VERIFY" VerificationStatusInProgress VerificationStatus = "IN_PROGRESS" VerificationStatusNotFoundOnSourceChain VerificationStatus = "NOT_FOUND_ON_SOURCE_CHAIN" VerificationStatusSucceededOnSourceChain VerificationStatus = "SUCCEEDED_ON_SOURCE_CHAIN" VerificationStatusUnknown VerificationStatus = "UNKNOWN" )
Defines values for VerificationStatus.
type VerifyTask ¶
type VerifyTask struct {
DestinationChain string `json:"destinationChain"`
Message Message `json:"message"`
Payload []byte `json:"payload"`
}
VerifyTask defines model for VerifyTask.
type WasmContractAddress ¶
type WasmContractAddress = string
WasmContractAddress defines model for wasmContractAddress.
type WasmEvent ¶
type WasmEvent struct {
Attributes []WasmEventAttribute `json:"attributes"`
Type string `json:"type"`
}
WasmEvent defines model for WasmEvent.
type WasmEventAttribute ¶
WasmEventAttribute defines model for WasmEventAttribute.
type WasmRequest ¶
type WasmRequest struct {
// contains filtered or unexported fields
}
WasmRequest defines model for WasmRequest.
func (WasmRequest) AsWasmRequestWithObjectBody ¶
func (t WasmRequest) AsWasmRequestWithObjectBody() (WasmRequestWithObjectBody, error)
AsWasmRequestWithObjectBody returns the union data inside the WasmRequest as a WasmRequestWithObjectBody
func (WasmRequest) AsWasmRequestWithStringBody ¶
func (t WasmRequest) AsWasmRequestWithStringBody() (WasmRequestWithStringBody, error)
AsWasmRequestWithStringBody returns the union data inside the WasmRequest as a WasmRequestWithStringBody
func (*WasmRequest) FromWasmRequestWithObjectBody ¶
func (t *WasmRequest) FromWasmRequestWithObjectBody(v WasmRequestWithObjectBody) error
FromWasmRequestWithObjectBody overwrites any union data inside the WasmRequest as the provided WasmRequestWithObjectBody
func (*WasmRequest) FromWasmRequestWithStringBody ¶
func (t *WasmRequest) FromWasmRequestWithStringBody(v WasmRequestWithStringBody) error
FromWasmRequestWithStringBody overwrites any union data inside the WasmRequest as the provided WasmRequestWithStringBody
func (WasmRequest) MarshalJSON ¶
func (t WasmRequest) MarshalJSON() ([]byte, error)
func (*WasmRequest) MergeWasmRequestWithObjectBody ¶
func (t *WasmRequest) MergeWasmRequestWithObjectBody(v WasmRequestWithObjectBody) error
MergeWasmRequestWithObjectBody performs a merge with any union data inside the WasmRequest, using the provided WasmRequestWithObjectBody
func (*WasmRequest) MergeWasmRequestWithStringBody ¶
func (t *WasmRequest) MergeWasmRequestWithStringBody(v WasmRequestWithStringBody) error
MergeWasmRequestWithStringBody performs a merge with any union data inside the WasmRequest, using the provided WasmRequestWithStringBody
func (*WasmRequest) UnmarshalJSON ¶
func (t *WasmRequest) UnmarshalJSON(b []byte) error
type WasmRequestWithObjectBody ¶
type WasmRequestWithObjectBody map[string]interface{}
WasmRequestWithObjectBody defines model for WasmRequestWithObjectBody.
type WasmRequestWithStringBody ¶
type WasmRequestWithStringBody = string
WasmRequestWithStringBody defines model for WasmRequestWithStringBody.
Source Files
¶
- client.gen.go
- models.ext.cannot_execute_task_event.go
- models.ext.cost.go
- models.ext.event.go
- models.ext.gas_refunded_event.go
- models.ext.go
- models.ext.message_approved_event.go
- models.ext.message_executed_event.go
- models.ext.message_executed_event_v2.go
- models.ext.task_item.go
- models.ext.token.go
- models.ext.token_manager_type.go
- models.gen.go
- server.gen.go
- spec.gen.go