Documentation ¶
Index ¶
- Constants
- func CheckAuditorDB(network *integration.Infrastructure, tmsID token.TMSID, ...)
- func CheckBalance(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...)
- func CheckBalanceAndHolding(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...)
- func CheckBalanceReturnError(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...) (err error)
- func CheckBalanceWithLocked(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...)
- func CheckBalanceWithLockedAndHolding(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...)
- func CheckHolding(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...)
- func CheckIfExistsInVault(network *integration.Infrastructure, tmsID token.TMSID, ...)
- func CheckOwnerDB(network *integration.Infrastructure, tmsID token.TMSID, ...)
- func CheckPublicParams(network *integration.Infrastructure, tmsID token.TMSID, ...)
- func HTLCCheckExistenceReceivedExpiredByHash(network *integration.Infrastructure, tmsID token.TMSID, ...)
- func HTLCLock(network *integration.Infrastructure, tmsID token.TMSID, ...) (string, []byte, []byte)
- func HTLCNoCrossClaimTopology(opts common.Opts) []api.Topology
- func HTLCNoCrossClaimWithOrionTopology(opts common.Opts) []api.Topology
- func HTLCReclaimAll(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...)
- func HTLCReclaimByHash(network *integration.Infrastructure, tmsID token.TMSID, ...)
- func HTLCSingleFabricNetworkTopology(opts common.Opts) []api.Topology
- func HTLCSingleOrionNetworkTopology(opts common.Opts) []api.Topology
- func HTLCTwoFabricNetworksTopology(opts common.Opts) []api.Topology
- func IssueCash(network *integration.Infrastructure, wallet string, typ token2.Type, ...) string
- func IssueCashWithTMS(network *integration.Infrastructure, tmsID token.TMSID, ...) string
- func ListIssuerHistory(network *integration.Infrastructure, wallet string, typ token2.Type) *token2.IssuedTokens
- func ListVaultUnspentTokens(network *integration.Infrastructure, tmsID token.TMSID, ...) []*token2.ID
- func PruneInvalidUnspentTokens(network *integration.Infrastructure, tmsID token.TMSID, ...)
- func RegisterAuditor(network *integration.Infrastructure, opts ...token.ServiceOption)
- func Restart(network *integration.Infrastructure, ids ...*token3.NodeReference)
- func TestFastExchange(network *integration.Infrastructure, sel *token2.ReplicaSelector)
- func TestHTLCNoCrossClaimTwoNetworks(network *integration.Infrastructure, sel *token2.ReplicaSelector)
- func TestHTLCSingleNetwork(network *integration.Infrastructure, sel *token2.ReplicaSelector)
- func TestHTLCTwoNetworks(network *integration.Infrastructure, sel *token2.ReplicaSelector)
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 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 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.
Click to show internal directories.
Click to hide internal directories.