assetmanager

package
v2.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClaimAssetInHTLC

func ClaimAssetInHTLC(contract GatewayContract, assetType string, assetId string, lockerECertBase64 string, hashPreimageBase64 string) (string, error)

func ClaimAssetInHTLCusingContractId

func ClaimAssetInHTLCusingContractId(contract GatewayContract, contractId string, hashPreimageBase64 string) (string, error)

func ClaimFungibleAssetInHTLC

func ClaimFungibleAssetInHTLC(contract GatewayContract, contractId string, hashPreimageBase64 string) (string, error)

func CreateFungibleHTLC

func CreateFungibleHTLC(contract GatewayContract, assetType string, numUnits uint64, recipientECertBase64 string,
	hashBase64 string, expiryTimeSecs uint64) (string, error)

func CreateHTLC

func CreateHTLC(contract GatewayContract, assetType string, assetId string, recipientECertBase64 string,
	hashBase64 string, expiryTimeSecs uint64) (string, error)

func GenerateSHA256HashInBase64Form

func GenerateSHA256HashInBase64Form(hashPreimage string) string

function to generate a "SHA256" hash in base64 format for a given preimage

func IsAssetLockedInHTLC

func IsAssetLockedInHTLC(contract GatewayContract, assetType string, assetId string, recipientECertBase64 string, lockerECertBase64 string) (string, error)

func IsAssetLockedInHTLCqueryUsingContractId

func IsAssetLockedInHTLCqueryUsingContractId(contract GatewayContract, contractId string) (string, error)

func IsFungibleAssetLockedInHTLC

func IsFungibleAssetLockedInHTLC(contract GatewayContract, contractId string) (string, error)

func ReclaimAssetInHTLC

func ReclaimAssetInHTLC(contract GatewayContract, assetType string, assetId string, recipientECertBase64 string) (string, error)

func ReclaimAssetInHTLCusingContractId

func ReclaimAssetInHTLCusingContractId(contract GatewayContract, contractId string) (string, error)

func ReclaimFungibleAssetInHTLC

func ReclaimFungibleAssetInHTLC(contract GatewayContract, contractId string) (string, error)

Types

type GatewayContract

type GatewayContract interface {
	SubmitTransaction(string, ...string) ([]byte, error)
	EvaluateTransaction(string, ...string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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