Documentation ¶
Index ¶
- Constants
- Variables
- func BroadcastPreparedTransferCash(network *integration.Infrastructure, id *token3.NodeReference, txID string, ...)
- func CheckAcceptedTransactions(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...)
- func CheckAuditedTransactions(network *integration.Infrastructure, auditor *token3.NodeReference, ...)
- func CheckAuditorDB(network *integration.Infrastructure, auditor *token3.NodeReference, ...)
- func CheckBalance(network *integration.Infrastructure, ref *token3.NodeReference, wallet string, ...)
- func CheckBalanceAndHolding(network *integration.Infrastructure, ref *token3.NodeReference, wallet string, ...)
- func CheckBalanceAndHoldingForTMSID(network *integration.Infrastructure, ref *token3.NodeReference, wallet string, ...)
- func CheckBalanceForTMSID(network *integration.Infrastructure, ref *token3.NodeReference, wallet string, ...)
- func CheckHolding(network *integration.Infrastructure, ref *token3.NodeReference, wallet string, ...)
- func CheckHoldingForTMSID(network *integration.Infrastructure, ref *token3.NodeReference, wallet string, ...)
- func CheckIfExistsInVault(network *integration.Infrastructure, id *token3.NodeReference, ...)
- func CheckLocalMetrics(ii *integration.Infrastructure, user string, viewName string)
- func CheckOwnerDB(network *integration.Infrastructure, expectedErrors []string, ...)
- func CheckOwnerWalletIDs(network *integration.Infrastructure, owner *token3.NodeReference, ...)
- func CheckPrometheusMetrics(ii *integration.Infrastructure, viewName string)
- func CheckPublicParams(network *integration.Infrastructure, ids ...*token3.NodeReference)
- func CheckPublicParamsForTMSID(network *integration.Infrastructure, tmsId *token2.TMSID, ...)
- func CheckPublicParamsMatch(network *integration.Infrastructure, tmsId *token2.TMSID, ...) bool
- func CheckSpending(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...)
- func CheckSpendingForTMSID(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...)
- func DisableRestart()
- func DoesWalletExist(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...) bool
- func FinalityWithTimeout(network *integration.Infrastructure, id *token3.NodeReference, tx []byte, ...)
- func GetAuditorIdentity(network *integration.Infrastructure, Id string) []byte
- func GetEndorsers(network *integration.Infrastructure, sel *token3.ReplicaSelector) []*token3.NodeReference
- func GetIssuerIdentity(network *integration.Infrastructure, Id string) []byte
- func GetPublicParams(network *integration.Infrastructure, id *token3.NodeReference) []byte
- func GetRevocationHandle(network *integration.Infrastructure, ref *token3.NodeReference) string
- func GetTMS(network *integration.Infrastructure, networkName string) *topology.TMS
- func GetTXStatus(network *integration.Infrastructure, id *token3.NodeReference, txID string) *views.TxStatusResponse
- func GetTransactionInfo(network *integration.Infrastructure, id *token3.NodeReference, txnId string) *ttx.TransactionInfo
- func GetTransactionInfoForTMSID(network *integration.Infrastructure, id *token3.NodeReference, txnId string, ...) *ttx.TransactionInfo
- func IssueCash(network *integration.Infrastructure, wallet string, typ token.Type, ...) string
- func IssueCashForTMSID(network *integration.Infrastructure, wallet string, typ token.Type, ...) string
- func IssueSuccessfulCash(network *integration.Infrastructure, wallet string, typ token.Type, ...) string
- func JSONUnmarshalFloat64(v interface{}) float64
- func ListIssuerHistory(network *integration.Infrastructure, wallet string, typ token.Type, ...) *token.IssuedTokens
- func ListIssuerHistoryForTMSID(network *integration.Infrastructure, wallet string, typ token.Type, ...) *token.IssuedTokens
- func ListUnspentTokens(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...) *token.UnspentTokens
- func ListUnspentTokensForTMSID(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...) *token.UnspentTokens
- func ListVaultUnspentTokens(network *integration.Infrastructure, id *token3.NodeReference) []*token.ID
- func MaliciousTransferCash(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...) string
- func PrepareTransferCash(network *integration.Infrastructure, sender *token3.NodeReference, ...) (string, []byte)
- func PruneInvalidUnspentTokens(network *integration.Infrastructure, ids ...*token3.NodeReference)
- func RedeemCash(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...)
- func RedeemCashByIDs(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...)
- func RedeemCashForTMSID(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...)
- func RegisterAuditor(network *integration.Infrastructure, auditor *token3.NodeReference)
- func RegisterAuditorForTMSID(network *integration.Infrastructure, auditor *token3.NodeReference, ...)
- func RegisterIssuerIdentity(network *integration.Infrastructure, id *token3.NodeReference, ...)
- func RegisterOwnerIdentity(network *integration.Infrastructure, id *token3.NodeReference, ...)
- func RegisterRecipientData(network *integration.Infrastructure, ref *token3.NodeReference, ...)
- func Restart(network *integration.Infrastructure, deleteVault bool, onRestart OnRestartFunc, ...)
- func RevokeIdentity(network *integration.Infrastructure, auditor *token3.NodeReference, rh string)
- func SetKVSEntry(network *integration.Infrastructure, user *token3.NodeReference, key string, ...)
- func SetSpendableFlag(network *integration.Infrastructure, user *token3.NodeReference, ...)
- func SetTransactionAuditStatus(network *integration.Infrastructure, id *token3.NodeReference, txID string, ...)
- func SetTransactionOwnersStatus(network *integration.Infrastructure, txID string, txStatus ttx.TxStatus, ...)
- func SwapCash(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ...)
- func TestAll(network *integration.Infrastructure, auditorId string, onRestart OnRestartFunc, ...)
- func TestMaliciousTransactions(net *integration.Infrastructure, sel *token3.ReplicaSelector)
- func TestMixed(network *integration.Infrastructure, onRestart OnRestartFunc, ...)
- func TestPublicParamsUpdate(network *integration.Infrastructure, auditorId string, ppBytes []byte, ...)
- func TestRemoteOwnerWallet(network *integration.Infrastructure, auditor string, ...)
- func TestRemoteOwnerWalletWithWMP(network *integration.Infrastructure, wmp *WalletManagerProvider, ...)
- func TestRevokeIdentity(network *integration.Infrastructure, auditorId string, ...)
- func TestSelector(network *integration.Infrastructure, auditorId string, ...)
- func TestStress(network *integration.Infrastructure, auditorId string, ...)
- func TestStressSuite(network *integration.Infrastructure, auditorId string, ...)
- func TokenSelectorUnlock(network *integration.Infrastructure, id *token3.NodeReference, txID string)
- func TransferCash(network *integration.Infrastructure, sender *token3.NodeReference, ...) string
- func TransferCashByIDs(network *integration.Infrastructure, ref *token3.NodeReference, wallet string, ...) string
- func TransferCashForTMSID(network *integration.Infrastructure, sender *token3.NodeReference, ...) string
- func TransferCashFromAndToExternalWallet(network *integration.Infrastructure, wmp *WalletManagerProvider, ...) string
- func TransferCashFromExternalWallet(network *integration.Infrastructure, wmp *WalletManagerProvider, ...) string
- func TransferCashMultiActions(network *integration.Infrastructure, sender *token3.NodeReference, ...) string
- func TransferCashNoFinalityCheck(network *integration.Infrastructure, sender *token3.NodeReference, ...)
- func TransferCashToExternalWallet(network *integration.Infrastructure, wmp *WalletManagerProvider, ...) string
- func TransferCashWithSelector(network *integration.Infrastructure, sender *token3.NodeReference, ...)
- func UpdatePublicParams(network *integration.Infrastructure, publicParams []byte, tms *topology.TMS)
- func WhoDeletedToken(network *integration.Infrastructure, id *token3.NodeReference, ...) *views.WhoDeletedTokenResult
- func Withdraw(network *integration.Infrastructure, wpm *WalletManagerProvider, ...) string
- type OnRestartFunc
- type SignerProvider
- type Stream
- type TMSTopology
- type TransactionRecord
- type WalletManagerLoader
- type WalletManagerProvider
Constants ¶
View Source
const ( DLogNamespace = "dlog-token-chaincode" FabTokenNamespace = "fabtoken-token-chaincode" )
Variables ¶
View Source
var AliceAcceptedTransactions = []TransactionRecord{ { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "alice", TokenType: "USD", Amount: big.NewInt(110), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "alice", TokenType: "USD", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }}, }
View Source
var AliceID1AcceptedTransactions = []TransactionRecord{ { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "alice", TokenType: "EUR", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }}, }
View Source
var AuditedTransactions = []TransactionRecord{ { TransactionRecord: ttxdb.TransactionRecord{ TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "alice", TokenType: "USD", Amount: big.NewInt(110), Status: ttxdb.Confirmed, }, }, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "alice", TokenType: "USD", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "bob", TokenType: "EUR", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "bob", TokenType: "EUR", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "bob", TokenType: "EUR", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Transfer, SenderEID: "alice", RecipientEID: "bob", TokenType: "USD", Amount: big.NewInt(111), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Transfer, SenderEID: "alice", RecipientEID: "alice", TokenType: "USD", Amount: big.NewInt(9), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Transfer, SenderEID: "bob", RecipientEID: "bob", TokenType: "USD", Amount: big.NewInt(100), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Redeem, SenderEID: "bob", RecipientEID: "", TokenType: "USD", Amount: big.NewInt(11), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "bob", TokenType: "USD", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "alice", TokenType: "LIRA", Amount: big.NewInt(3), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "alice", TokenType: "LIRA", Amount: big.NewInt(3), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Transfer, SenderEID: "alice", RecipientEID: "bob", TokenType: "LIRA", Amount: big.NewInt(2), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Transfer, SenderEID: "alice", RecipientEID: "alice", TokenType: "LIRA", Amount: big.NewInt(1), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Transfer, SenderEID: "alice", RecipientEID: "charlie", TokenType: "LIRA", Amount: big.NewInt(3), Status: ttxdb.Confirmed, }}, }
View Source
var BobAcceptedTransactions = []TransactionRecord{ { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "bob", TokenType: "EUR", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "bob", TokenType: "EUR", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "bob", TokenType: "EUR", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Transfer, SenderEID: "alice", RecipientEID: "bob", TokenType: "USD", Amount: big.NewInt(111), Status: ttxdb.Confirmed, }}, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Transfer, SenderEID: "bob", RecipientEID: "bob", TokenType: "USD", Amount: big.NewInt(100), Status: ttxdb.Confirmed, }, CheckNext: true, }, { TransactionRecord: ttxdb.TransactionRecord{TxID: "", ActionType: ttxdb.Redeem, SenderEID: "bob", RecipientEID: "", TokenType: "USD", Amount: big.NewInt(11), Status: ttxdb.Confirmed, }, CheckPrevious: true, }, }
View Source
var (
RestartEnabled = true
)
Functions ¶
func BroadcastPreparedTransferCash ¶
func BroadcastPreparedTransferCash(network *integration.Infrastructure, id *token3.NodeReference, txID string, tx []byte, finality bool, expectedErrorMsgs ...string)
func CheckAcceptedTransactions ¶
func CheckAcceptedTransactions(network *integration.Infrastructure, id *token3.NodeReference, wallet string, expected []TransactionRecord, start *time.Time, end *time.Time, statuses []ttxdb.TxStatus, actionTypes ...ttxdb.ActionType)
func CheckAuditedTransactions ¶
func CheckAuditedTransactions(network *integration.Infrastructure, auditor *token3.NodeReference, expected []TransactionRecord, start *time.Time, end *time.Time)
func CheckAuditorDB ¶
func CheckAuditorDB(network *integration.Infrastructure, auditor *token3.NodeReference, walletID string, errorCheck func([]string) error)
func CheckBalance ¶
func CheckBalance(network *integration.Infrastructure, ref *token3.NodeReference, wallet string, typ token.Type, expected uint64)
func CheckBalanceAndHolding ¶
func CheckBalanceAndHolding(network *integration.Infrastructure, ref *token3.NodeReference, wallet string, typ token.Type, expected uint64, auditor *token3.NodeReference)
func CheckBalanceAndHoldingForTMSID ¶ added in v0.3.0
func CheckBalanceAndHoldingForTMSID(network *integration.Infrastructure, ref *token3.NodeReference, wallet string, typ token.Type, expected uint64, auditor *token3.NodeReference, tmsID *token2.TMSID)
func CheckBalanceForTMSID ¶ added in v0.3.0
func CheckBalanceForTMSID(network *integration.Infrastructure, ref *token3.NodeReference, wallet string, typ token.Type, expected uint64, tmsID *token2.TMSID)
func CheckHolding ¶
func CheckHolding(network *integration.Infrastructure, ref *token3.NodeReference, wallet string, typ token.Type, expected int64, auditor *token3.NodeReference)
func CheckHoldingForTMSID ¶ added in v0.3.0
func CheckHoldingForTMSID(network *integration.Infrastructure, ref *token3.NodeReference, wallet string, typ token.Type, expected int64, auditor *token3.NodeReference, tmsID *token2.TMSID)
func CheckIfExistsInVault ¶
func CheckIfExistsInVault(network *integration.Infrastructure, id *token3.NodeReference, tokenIDs []*token.ID)
func CheckLocalMetrics ¶ added in v0.4.0
func CheckLocalMetrics(ii *integration.Infrastructure, user string, viewName string)
func CheckOwnerDB ¶
func CheckOwnerDB(network *integration.Infrastructure, expectedErrors []string, ids ...*token3.NodeReference)
func CheckOwnerWalletIDs ¶ added in v0.3.0
func CheckOwnerWalletIDs(network *integration.Infrastructure, owner *token3.NodeReference, ids ...string)
func CheckPrometheusMetrics ¶ added in v0.4.0
func CheckPrometheusMetrics(ii *integration.Infrastructure, viewName string)
func CheckPublicParams ¶
func CheckPublicParams(network *integration.Infrastructure, ids ...*token3.NodeReference)
func CheckPublicParamsForTMSID ¶ added in v0.3.0
func CheckPublicParamsForTMSID(network *integration.Infrastructure, tmsId *token2.TMSID, ids ...*token3.NodeReference)
func CheckPublicParamsMatch ¶ added in v0.4.0
func CheckPublicParamsMatch(network *integration.Infrastructure, tmsId *token2.TMSID, ids ...*token3.NodeReference) bool
func CheckSpending ¶
func CheckSpending(network *integration.Infrastructure, id *token3.NodeReference, wallet string, tokenType token.Type, auditor *token3.NodeReference, expected uint64)
func CheckSpendingForTMSID ¶ added in v0.3.0
func CheckSpendingForTMSID(network *integration.Infrastructure, id *token3.NodeReference, wallet string, tokenType token.Type, auditor *token3.NodeReference, expected uint64, tmsId *token2.TMSID)
func DisableRestart ¶ added in v0.4.0
func DisableRestart()
func DoesWalletExist ¶ added in v0.3.0
func DoesWalletExist(network *integration.Infrastructure, id *token3.NodeReference, wallet string, walletType int) bool
func FinalityWithTimeout ¶
func FinalityWithTimeout(network *integration.Infrastructure, id *token3.NodeReference, tx []byte, timeout time.Duration)
func GetAuditorIdentity ¶ added in v0.2.0
func GetAuditorIdentity(network *integration.Infrastructure, Id string) []byte
func GetEndorsers ¶ added in v0.4.0
func GetEndorsers(network *integration.Infrastructure, sel *token3.ReplicaSelector) []*token3.NodeReference
func GetIssuerIdentity ¶ added in v0.2.0
func GetIssuerIdentity(network *integration.Infrastructure, Id string) []byte
func GetPublicParams ¶ added in v0.2.0
func GetPublicParams(network *integration.Infrastructure, id *token3.NodeReference) []byte
func GetRevocationHandle ¶ added in v0.3.0
func GetRevocationHandle(network *integration.Infrastructure, ref *token3.NodeReference) string
func GetTMS ¶ added in v0.2.0
func GetTMS(network *integration.Infrastructure, networkName string) *topology.TMS
func GetTXStatus ¶ added in v0.4.0
func GetTXStatus(network *integration.Infrastructure, id *token3.NodeReference, txID string) *views.TxStatusResponse
func GetTransactionInfo ¶
func GetTransactionInfo(network *integration.Infrastructure, id *token3.NodeReference, txnId string) *ttx.TransactionInfo
func GetTransactionInfoForTMSID ¶ added in v0.3.0
func GetTransactionInfoForTMSID(network *integration.Infrastructure, id *token3.NodeReference, txnId string, tmsId *token2.TMSID) *ttx.TransactionInfo
func IssueCash ¶
func IssueCash(network *integration.Infrastructure, wallet string, typ token.Type, amount uint64, receiver *token3.NodeReference, auditor *token3.NodeReference, anonymous bool, issuer *token3.NodeReference, expectedErrorMsgs ...string) string
func IssueCashForTMSID ¶ added in v0.3.0
func IssueCashForTMSID(network *integration.Infrastructure, wallet string, typ token.Type, amount uint64, receiver *token3.NodeReference, auditor *token3.NodeReference, anonymous bool, issuer *token3.NodeReference, tmsId *token2.TMSID, expectedErrorMsgs ...string) string
func IssueSuccessfulCash ¶ added in v0.4.0
func IssueSuccessfulCash(network *integration.Infrastructure, wallet string, typ token.Type, amount uint64, receiver *token3.NodeReference, auditor *token3.NodeReference, anonymous bool, issuer *token3.NodeReference, finalities ...*token3.NodeReference) string
func JSONUnmarshalFloat64 ¶
func JSONUnmarshalFloat64(v interface{}) float64
func ListIssuerHistory ¶
func ListIssuerHistory(network *integration.Infrastructure, wallet string, typ token.Type, issuer *token3.NodeReference) *token.IssuedTokens
func ListIssuerHistoryForTMSID ¶ added in v0.3.0
func ListIssuerHistoryForTMSID(network *integration.Infrastructure, wallet string, typ token.Type, issuer *token3.NodeReference, tmsId *token2.TMSID) *token.IssuedTokens
func ListUnspentTokens ¶
func ListUnspentTokens(network *integration.Infrastructure, id *token3.NodeReference, wallet string, typ token.Type) *token.UnspentTokens
func ListUnspentTokensForTMSID ¶ added in v0.3.0
func ListUnspentTokensForTMSID(network *integration.Infrastructure, id *token3.NodeReference, wallet string, typ token.Type, tmsId *token2.TMSID) *token.UnspentTokens
func ListVaultUnspentTokens ¶
func ListVaultUnspentTokens(network *integration.Infrastructure, id *token3.NodeReference) []*token.ID
func MaliciousTransferCash ¶ added in v0.4.0
func MaliciousTransferCash(network *integration.Infrastructure, id *token3.NodeReference, wallet string, typ token.Type, amount uint64, receiver *token3.NodeReference, auditor *token3.NodeReference, tmsId *token2.TMSID, expectedErrorMsgs ...string) string
func PrepareTransferCash ¶
func PrepareTransferCash(network *integration.Infrastructure, sender *token3.NodeReference, wallet string, typ token.Type, amount uint64, receiver *token3.NodeReference, auditor *token3.NodeReference, tokenID *token.ID, expectedErrorMsgs ...string) (string, []byte)
func PruneInvalidUnspentTokens ¶
func PruneInvalidUnspentTokens(network *integration.Infrastructure, ids ...*token3.NodeReference)
func RedeemCash ¶
func RedeemCash(network *integration.Infrastructure, id *token3.NodeReference, wallet string, typ token.Type, amount uint64, auditor *token3.NodeReference)
func RedeemCashByIDs ¶
func RedeemCashByIDs(network *integration.Infrastructure, id *token3.NodeReference, wallet string, ids []*token.ID, amount uint64, auditor *token3.NodeReference)
func RedeemCashForTMSID ¶ added in v0.3.0
func RedeemCashForTMSID(network *integration.Infrastructure, id *token3.NodeReference, wallet string, typ token.Type, amount uint64, auditor *token3.NodeReference, tmsID *token2.TMSID)
func RegisterAuditor ¶
func RegisterAuditor(network *integration.Infrastructure, auditor *token3.NodeReference)
func RegisterAuditorForTMSID ¶ added in v0.3.0
func RegisterAuditorForTMSID(network *integration.Infrastructure, auditor *token3.NodeReference, tmsId *token2.TMSID)
func RegisterIssuerIdentity ¶ added in v0.4.0
func RegisterIssuerIdentity(network *integration.Infrastructure, id *token3.NodeReference, walletID, walletPath string)
func RegisterOwnerIdentity ¶ added in v0.4.0
func RegisterOwnerIdentity(network *integration.Infrastructure, id *token3.NodeReference, identityConfiguration token2.IdentityConfiguration)
func RegisterRecipientData ¶ added in v0.4.0
func RegisterRecipientData(network *integration.Infrastructure, ref *token3.NodeReference, walletID string, rd *token2.RecipientData)
func Restart ¶
func Restart(network *integration.Infrastructure, deleteVault bool, onRestart OnRestartFunc, ids ...*token3.NodeReference)
func RevokeIdentity ¶ added in v0.3.0
func RevokeIdentity(network *integration.Infrastructure, auditor *token3.NodeReference, rh string)
func SetKVSEntry ¶ added in v0.3.0
func SetKVSEntry(network *integration.Infrastructure, user *token3.NodeReference, key string, value string)
func SetSpendableFlag ¶ added in v0.4.0
func SetSpendableFlag(network *integration.Infrastructure, user *token3.NodeReference, tokenID token.ID, value bool)
func SetTransactionAuditStatus ¶
func SetTransactionAuditStatus(network *integration.Infrastructure, id *token3.NodeReference, txID string, txStatus ttx.TxStatus)
func SetTransactionOwnersStatus ¶
func SetTransactionOwnersStatus(network *integration.Infrastructure, txID string, txStatus ttx.TxStatus, ids ...string)
func SwapCash ¶
func SwapCash(network *integration.Infrastructure, id *token3.NodeReference, wallet string, typeLeft token.Type, amountLeft uint64, typRight token.Type, amountRight uint64, receiver *token3.NodeReference, auditor *token3.NodeReference)
func TestAll ¶
func TestAll(network *integration.Infrastructure, auditorId string, onRestart OnRestartFunc, aries bool, sel *token3.ReplicaSelector)
func TestMaliciousTransactions ¶ added in v0.4.0
func TestMaliciousTransactions(net *integration.Infrastructure, sel *token3.ReplicaSelector)
func TestMixed ¶ added in v0.3.0
func TestMixed(network *integration.Infrastructure, onRestart OnRestartFunc, sel *token3.ReplicaSelector)
func TestPublicParamsUpdate ¶ added in v0.2.0
func TestPublicParamsUpdate(network *integration.Infrastructure, auditorId string, ppBytes []byte, networkName string, issuerAsAuditor bool, sel *token3.ReplicaSelector)
func TestRemoteOwnerWallet ¶ added in v0.3.0
func TestRemoteOwnerWallet(network *integration.Infrastructure, auditor string, sel *token3.ReplicaSelector, websSocket bool)
func TestRemoteOwnerWalletWithWMP ¶ added in v0.4.0
func TestRemoteOwnerWalletWithWMP(network *integration.Infrastructure, wmp *WalletManagerProvider, auditorId string, sel *token3.ReplicaSelector, websSocket bool)
func TestRevokeIdentity ¶ added in v0.3.0
func TestRevokeIdentity(network *integration.Infrastructure, auditorId string, sel *token3.ReplicaSelector)
func TestSelector ¶ added in v0.4.0
func TestSelector(network *integration.Infrastructure, auditorId string, sel *token3.ReplicaSelector)
func TestStress ¶ added in v0.4.0
func TestStress(network *integration.Infrastructure, auditorId string, selector *token3.ReplicaSelector)
func TestStressSuite ¶ added in v0.4.0
func TestStressSuite(network *integration.Infrastructure, auditorId string, selector *token3.ReplicaSelector)
func TokenSelectorUnlock ¶
func TokenSelectorUnlock(network *integration.Infrastructure, id *token3.NodeReference, txID string)
func TransferCash ¶
func TransferCash(network *integration.Infrastructure, sender *token3.NodeReference, wallet string, typ token.Type, amount uint64, receiver *token3.NodeReference, auditor *token3.NodeReference, expectedErrorMsgs ...string) string
func TransferCashByIDs ¶
func TransferCashByIDs(network *integration.Infrastructure, ref *token3.NodeReference, wallet string, ids []*token.ID, amount uint64, receiver *token3.NodeReference, auditor *token3.NodeReference, failToRelease bool, expectedErrorMsgs ...string) string
func TransferCashForTMSID ¶ added in v0.3.0
func TransferCashForTMSID(network *integration.Infrastructure, sender *token3.NodeReference, wallet string, typ token.Type, amount uint64, receiver *token3.NodeReference, auditor *token3.NodeReference, tmsId *token2.TMSID, expectedErrorMsgs ...string) string
func TransferCashFromAndToExternalWallet ¶ added in v0.4.0
func TransferCashFromAndToExternalWallet(network *integration.Infrastructure, wmp *WalletManagerProvider, websSocket bool, sender *token3.NodeReference, wallet string, typ token.Type, amount uint64, receiver *token3.NodeReference, receiverWallet string, auditor *token3.NodeReference, expectedErrorMsgs ...string) string
func TransferCashFromExternalWallet ¶ added in v0.4.0
func TransferCashFromExternalWallet(network *integration.Infrastructure, wmp *WalletManagerProvider, websSocket bool, sender *token3.NodeReference, wallet string, typ token.Type, amount uint64, receiver *token3.NodeReference, auditor *token3.NodeReference, expectedErrorMsgs ...string) string
func TransferCashMultiActions ¶ added in v0.3.0
func TransferCashMultiActions(network *integration.Infrastructure, sender *token3.NodeReference, wallet string, typ token.Type, amounts []uint64, receivers []*token3.NodeReference, auditor *token3.NodeReference, tokenID *token.ID, expectedErrorMsgs ...string) string
func TransferCashNoFinalityCheck ¶ added in v0.4.0
func TransferCashNoFinalityCheck(network *integration.Infrastructure, sender *token3.NodeReference, wallet string, typ token.Type, amount uint64, receiver *token3.NodeReference, auditor *token3.NodeReference)
func TransferCashToExternalWallet ¶ added in v0.4.0
func TransferCashToExternalWallet(network *integration.Infrastructure, wmp *WalletManagerProvider, sender *token3.NodeReference, wallet string, typ token.Type, amount uint64, receiver *token3.NodeReference, receiverWallet string, auditor *token3.NodeReference, expectedErrorMsgs ...string) string
func TransferCashWithSelector ¶
func TransferCashWithSelector(network *integration.Infrastructure, sender *token3.NodeReference, wallet string, typ token.Type, amount uint64, receiver *token3.NodeReference, auditor *token3.NodeReference, expectedErrorMsgs ...string)
func UpdatePublicParams ¶ added in v0.2.0
func UpdatePublicParams(network *integration.Infrastructure, publicParams []byte, tms *topology.TMS)
func WhoDeletedToken ¶
func WhoDeletedToken(network *integration.Infrastructure, id *token3.NodeReference, tokenIDs []*token.ID, txIDs ...string) *views.WhoDeletedTokenResult
func Withdraw ¶ added in v0.3.0
func Withdraw(network *integration.Infrastructure, wpm *WalletManagerProvider, user *token3.NodeReference, wallet string, typ token.Type, amount uint64, auditor *token3.NodeReference, issuer *token3.NodeReference, expectedErrorMsgs ...string) string
Types ¶
type OnRestartFunc ¶ added in v0.4.0
type OnRestartFunc = func(*integration.Infrastructure, string)
type SignerProvider ¶ added in v0.3.0
type SignerProvider struct { *WalletManagerProvider Id, Wallet string }
SignerProvider provides instances of the token.Signer interface for the passed identity
func NewSignerProvider ¶ added in v0.3.0
func NewSignerProvider(walletManagerProvider *WalletManagerProvider, id string, wallet string) *SignerProvider
type TMSTopology ¶ added in v0.4.0
type TransactionRecord ¶ added in v0.4.0
type TransactionRecord struct { ttxdb.TransactionRecord CheckPrevious bool CheckNext bool }
type WalletManagerLoader ¶ added in v0.4.0
type WalletManagerLoader interface {
Load(user string) *token.WalletManager
}
type WalletManagerProvider ¶ added in v0.3.0
type WalletManagerProvider struct { Loader WalletManagerLoader // contains filtered or unexported fields }
WalletManagerProvider is used to simulate external wallets. It can generate recipient data and signatures for given users and wallets
func NewWalletManagerProvider ¶ added in v0.3.0
func NewWalletManagerProvider(loader WalletManagerLoader) *WalletManagerProvider
func (*WalletManagerProvider) GetSinger ¶ added in v0.3.0
func (p *WalletManagerProvider) GetSinger(user string, wallet string, party view.Identity) (token.Signer, error)
GetSinger returns a signer for the given user, wallet and identity
func (*WalletManagerProvider) RecipientData ¶ added in v0.3.0
func (p *WalletManagerProvider) RecipientData(user string, wallet string) *token.RecipientData
RecipientData returns the RecipientData for the given user and wallet
func (*WalletManagerProvider) SignerProvider ¶ added in v0.3.0
func (p *WalletManagerProvider) SignerProvider(user string, wallet string) *SignerProvider
SignerProvider returns the SignerProvider for the given user and wallet
Click to show internal directories.
Click to hide internal directories.