apiextensions

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 9 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, waitForL1Confirmation bool, timeout time.Duration) ([]*apiclient.ReceiptResponse, error)

func AssetsFromAPIResponse

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

func CallView

func CallView(context context.Context, client *apiclient.APIClient, chainID string, 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 ValidateAbsoluteURL

func ValidateAbsoluteURL(targetURL string) (*url.URL, 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