interop

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EUR = token3.Type("EUR")
	USD = token3.Type("USD")
)

Variables

This section is empty.

Functions

func CheckAuditorDB

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

func CheckBalance

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

func CheckBalanceAndHolding

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

func CheckBalanceReturnError added in v0.4.0

func CheckBalanceReturnError(network *integration.Infrastructure, id *token3.NodeReference, wallet string, typ token2.Type, expected uint64, opts ...token.ServiceOption) (err error)

func CheckBalanceWithLocked

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

func CheckBalanceWithLockedAndHolding

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

func CheckHolding

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

func CheckIfExistsInVault

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

func CheckOwnerDB

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

func CheckPublicParams

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

func HTLCCheckExistenceReceivedExpiredByHash added in v0.3.0

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

func HTLCLock added in v0.3.0

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

func HTLCNoCrossClaimTopology

func HTLCNoCrossClaimTopology(opts common.Opts) []api.Topology

func HTLCNoCrossClaimWithOrionTopology

func HTLCNoCrossClaimWithOrionTopology(opts common.Opts) []api.Topology

func HTLCReclaimAll added in v0.3.0

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

func HTLCReclaimByHash added in v0.3.0

func HTLCReclaimByHash(network *integration.Infrastructure, tmsID token.TMSID, id *token3.NodeReference, wallet string, hash []byte, errorMsgs ...string)

func HTLCSingleFabricNetworkTopology

func HTLCSingleFabricNetworkTopology(opts common.Opts) []api.Topology

func HTLCSingleOrionNetworkTopology

func HTLCSingleOrionNetworkTopology(opts common.Opts) []api.Topology

func HTLCTwoFabricNetworksTopology

func HTLCTwoFabricNetworksTopology(opts common.Opts) []api.Topology

func IssueCash

func IssueCash(network *integration.Infrastructure, wallet string, typ token2.Type, amount uint64, receiver *token3.NodeReference, auditor *token3.NodeReference) string

func IssueCashWithTMS

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

func ListIssuerHistory

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

func ListVaultUnspentTokens

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

func PruneInvalidUnspentTokens

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

func RegisterAuditor

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

func Restart

func Restart(network *integration.Infrastructure, ids ...*token3.NodeReference)

func TestFastExchange

func TestFastExchange(network *integration.Infrastructure, sel *token2.ReplicaSelector)

func TestHTLCNoCrossClaimTwoNetworks

func TestHTLCNoCrossClaimTwoNetworks(network *integration.Infrastructure, sel *token2.ReplicaSelector)

func TestHTLCSingleNetwork

func TestHTLCSingleNetwork(network *integration.Infrastructure, sel *token2.ReplicaSelector)

func TestHTLCTwoNetworks

func TestHTLCTwoNetworks(network *integration.Infrastructure, sel *token2.ReplicaSelector)

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