interop

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuditorDB

func CheckAuditorDB(network *integration.Infrastructure, tmsID token.TMSID, auditorID string, walletID string, errorCheck func([]string) error)

func CheckBalance

func CheckBalance(network *integration.Infrastructure, id string, wallet string, typ string, expected uint64, opts ...token.ServiceOption)

func CheckBalanceAndHolding

func CheckBalanceAndHolding(network *integration.Infrastructure, id string, wallet string, typ string, expected uint64, opts ...token.ServiceOption)

func CheckBalanceWithLocked

func CheckBalanceWithLocked(network *integration.Infrastructure, id string, wallet string, typ string, expected uint64, expectedLocked uint64, expectedExpired uint64, opts ...token.ServiceOption)

func CheckBalanceWithLockedAndHolding

func CheckBalanceWithLockedAndHolding(network *integration.Infrastructure, id string, wallet string, typ string, expectedBalance uint64, expectedLocked uint64, expectedExpired uint64, expectedHolding int64, opts ...token.ServiceOption)

func CheckHolding

func CheckHolding(network *integration.Infrastructure, id string, wallet string, typ string, expected int64, opts ...token.ServiceOption)

func CheckIfExistsInVault

func CheckIfExistsInVault(network *integration.Infrastructure, tmsID token.TMSID, id string, tokenIDs []*token2.ID)

func CheckOwnerDB

func CheckOwnerDB(network *integration.Infrastructure, tmsID token.TMSID, expectedErrors []string, ids ...string)

func CheckPublicParams

func CheckPublicParams(network *integration.Infrastructure, tmsID token.TMSID, ids ...string)

func HTLCCheckExistenceReceivedExpiredByHash added in v0.3.0

func HTLCCheckExistenceReceivedExpiredByHash(network *integration.Infrastructure, id string, wallet string, hash []byte, exists bool, errorMsgs ...string)

func HTLCLock added in v0.3.0

func HTLCLock(network *integration.Infrastructure, tmsID token.TMSID, id string, wallet string, typ string, amount uint64, receiver string, deadline time.Duration, hash []byte, hashFunc crypto.Hash, errorMsgs ...string) (string, []byte, []byte)

func HTLCNoCrossClaimTopology

func HTLCNoCrossClaimTopology(tokenSDKDriver string) []api.Topology

func HTLCNoCrossClaimWithOrionTopology

func HTLCNoCrossClaimWithOrionTopology(tokenSDKDriver string) []api.Topology

func HTLCReclaimAll added in v0.3.0

func HTLCReclaimAll(network *integration.Infrastructure, id string, wallet string, errorMsgs ...string)

func HTLCReclaimByHash added in v0.3.0

func HTLCReclaimByHash(network *integration.Infrastructure, id string, wallet string, hash []byte, errorMsgs ...string)

func HTLCSingleFabricNetworkTopology

func HTLCSingleFabricNetworkTopology(tokenSDKDriver string) []api.Topology

func HTLCSingleOrionNetworkTopology

func HTLCSingleOrionNetworkTopology(tokenSDKDriver string) []api.Topology

func HTLCTwoFabricNetworksTopology

func HTLCTwoFabricNetworksTopology(tokenSDKDriver string) []api.Topology

func IssueCash

func IssueCash(network *integration.Infrastructure, wallet string, typ string, amount uint64, receiver string) string

func IssueCashWithTMS

func IssueCashWithTMS(network *integration.Infrastructure, tmsID token.TMSID, issuer string, wallet string, typ string, amount uint64, receiver string) string

func ListIssuerHistory

func ListIssuerHistory(network *integration.Infrastructure, wallet string, typ string) *token2.IssuedTokens

func ListVaultUnspentTokens

func ListVaultUnspentTokens(network *integration.Infrastructure, tmsID token.TMSID, id string) []*token2.ID

func PruneInvalidUnspentTokens

func PruneInvalidUnspentTokens(network *integration.Infrastructure, tmsID token.TMSID, ids ...string)

func RegisterAuditor

func RegisterAuditor(network *integration.Infrastructure, opts ...token.ServiceOption)

func Restart

func Restart(network *integration.Infrastructure, ids ...string)

func TestFastExchange

func TestFastExchange(network *integration.Infrastructure)

func TestHTLCNoCrossClaimTwoNetworks

func TestHTLCNoCrossClaimTwoNetworks(network *integration.Infrastructure)

func TestHTLCSingleNetwork

func TestHTLCSingleNetwork(network *integration.Infrastructure)

func TestHTLCTwoNetworks

func TestHTLCTwoNetworks(network *integration.Infrastructure)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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