apiextensions

package
v0.5.1-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIJsonDictToDict

func APIJsonDictToDict(apiJSONDict apiclient.JSONDict) (dict.Dict, error)

func APIJsonDictToJSONDict

func APIJsonDictToJSONDict(apiJSONDict apiclient.JSONDict) dict.JSONDict

func APIWaitUntilAllRequestsProcessed

func APIWaitUntilAllRequestsProcessed(client *apiclient.APIClient, chainID isc.ChainID, tx *iotago.Transaction, timeout time.Duration) ([]*apiclient.ReceiptResponse, error)

func CallView

func CallView(context context.Context, client *apiclient.APIClient, request apiclient.ContractCallViewRequest) (dict.Dict, error)

func DictToAPIJsonDict

func DictToAPIJsonDict(dict dict.Dict) apiclient.JSONDict

func JSONDictToAPIJSONDict

func JSONDictToAPIJSONDict(jsonDict dict.JSONDict) apiclient.JSONDict

func NewAssetsFromAPIResponse

func NewAssetsFromAPIResponse(assetsResponse *apiclient.AssetsResponse) (*isc.Assets, error)

func WaspAPIClientByHostName

func WaspAPIClientByHostName(hostname string) (*apiclient.APIClient, error)

Types

type APIDetailError

type APIDetailError struct {
	Message string
	Error   string
}

type APIError

type APIError struct {
	Error       string
	DetailError *APIDetailError
}

func AsAPIError

func AsAPIError(err error) (*APIError, bool)

Jump to

Keyboard shortcuts

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