Documentation
¶
Index ¶
- Variables
- func BroadcastPreparedTransferCash(network *integration.Infrastructure, id string, tx []byte, finality bool, ...)
- func CheckAcceptedTransactions(network *integration.Infrastructure, id string, wallet string, ...)
- func CheckAuditedTransactions(network *integration.Infrastructure, expected []*ttxdb.TransactionRecord, ...)
- func CheckAuditorDB(network *integration.Infrastructure, auditorID string, walletID string)
- func CheckBalance(network *integration.Infrastructure, id string, wallet string, typ string, ...)
- func CheckBalanceAndHolding(network *integration.Infrastructure, id string, wallet string, typ string, ...)
- func CheckHolding(network *integration.Infrastructure, id string, wallet string, typ string, ...)
- func CheckIfExistsInVault(network *integration.Infrastructure, id string, tokenIDs []*token2.ID)
- func CheckOwnerDB(network *integration.Infrastructure, expectedErrors []string, ids ...string)
- func CheckPublicParams(network *integration.Infrastructure, ids ...string)
- func CheckSpending(network *integration.Infrastructure, id string, wallet string, ...)
- func FinalityWithTimeout(network *integration.Infrastructure, id string, tx []byte, ...)
- func GetTransactionInfo(network *integration.Infrastructure, id string, txnId string) *ttx.TransactionInfo
- func IssueCash(network *integration.Infrastructure, wallet string, typ string, amount uint64, ...) string
- func JSONUnmarshalFloat64(v interface{}) float64
- func ListIssuerHistory(network *integration.Infrastructure, wallet string, typ string) *token2.IssuedTokens
- func ListUnspentTokens(network *integration.Infrastructure, id string, wallet string, typ string) *token2.UnspentTokens
- func ListVaultUnspentTokens(network *integration.Infrastructure, id string) []*token2.ID
- func PrepareTransferCash(network *integration.Infrastructure, id string, wallet string, typ string, ...) (string, []byte)
- func PruneInvalidUnspentTokens(network *integration.Infrastructure, ids ...string)
- func RedeemCash(network *integration.Infrastructure, id string, wallet string, typ string, ...)
- func RedeemCashByIDs(network *integration.Infrastructure, id string, wallet string, ...)
- func RegisterAuditor(network *integration.Infrastructure, id string)
- func RegisterCertifier(network *integration.Infrastructure)
- func RegisterIssuerWallet(network *integration.Infrastructure, id string, walletID, walletPath string)
- func Restart(network *integration.Infrastructure, deleteVault bool, ids ...string)
- func SetTransactionAuditStatus(network *integration.Infrastructure, id string, txID string, ...)
- func SetTransactionOwnersStatus(network *integration.Infrastructure, txID string, txStatus ttx.TxStatus, ...)
- func SwapCash(network *integration.Infrastructure, id string, wallet string, typeLeft string, ...)
- func TestAll(network *integration.Infrastructure, auditor string)
- func TokenSelectorUnlock(network *integration.Infrastructure, id string, txID string)
- func Topology(backend string, tokenSDKDriver string, auditorAsIssuer bool) []api.Topology
- func TransferCash(network *integration.Infrastructure, id string, wallet string, typ string, ...) string
- func TransferCashByIDs(network *integration.Infrastructure, id string, wallet string, ...) string
- func TransferCashWithSelector(network *integration.Infrastructure, id string, wallet string, typ string, ...)
- func WhoDeletedToken(network *integration.Infrastructure, id string, tokenIDs []*token2.ID, ...) *views.WhoDeletedTokenResult
Constants ¶
This section is empty.
Variables ¶
View Source
var AliceAcceptedTransactions = []*ttxdb.TransactionRecord{ { TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "alice", TokenType: "USD", Amount: big.NewInt(110), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "alice", TokenType: "USD", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }, }
View Source
var AliceID1AcceptedTransactions = []*ttxdb.TransactionRecord{ { TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "alice", TokenType: "EUR", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }, }
View Source
var AuditedTransactions = []*ttxdb.TransactionRecord{ { TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "alice", TokenType: "USD", Amount: big.NewInt(110), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "alice", TokenType: "USD", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "bob", TokenType: "EUR", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "bob", TokenType: "EUR", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "bob", TokenType: "EUR", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Transfer, SenderEID: "alice", RecipientEID: "bob", TokenType: "USD", Amount: big.NewInt(111), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Transfer, SenderEID: "alice", RecipientEID: "alice", TokenType: "USD", Amount: big.NewInt(9), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Transfer, SenderEID: "bob", RecipientEID: "bob", TokenType: "USD", Amount: big.NewInt(100), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Redeem, SenderEID: "bob", RecipientEID: "", TokenType: "USD", Amount: big.NewInt(11), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "bob", TokenType: "USD", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }, }
View Source
var BobAcceptedTransactions = []*ttxdb.TransactionRecord{ { TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "bob", TokenType: "EUR", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "bob", TokenType: "EUR", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Issue, SenderEID: "", RecipientEID: "bob", TokenType: "EUR", Amount: big.NewInt(10), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Transfer, SenderEID: "alice", RecipientEID: "bob", TokenType: "USD", Amount: big.NewInt(111), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Transfer, SenderEID: "bob", RecipientEID: "bob", TokenType: "USD", Amount: big.NewInt(100), Status: ttxdb.Confirmed, }, { TxID: "", ActionType: ttxdb.Redeem, SenderEID: "bob", RecipientEID: "", TokenType: "USD", Amount: big.NewInt(11), Status: ttxdb.Confirmed, }, }
Functions ¶
func BroadcastPreparedTransferCash ¶
func BroadcastPreparedTransferCash(network *integration.Infrastructure, id string, tx []byte, finality bool, expectedErrorMsgs ...string)
func CheckAcceptedTransactions ¶
func CheckAcceptedTransactions(network *integration.Infrastructure, id string, wallet string, expected []*ttxdb.TransactionRecord, start *time.Time, end *time.Time, statuses []driver.TxStatus, actionTypes ...ttxdb.ActionType)
func CheckAuditedTransactions ¶
func CheckAuditedTransactions(network *integration.Infrastructure, expected []*ttxdb.TransactionRecord, start *time.Time, end *time.Time)
func CheckAuditorDB ¶
func CheckAuditorDB(network *integration.Infrastructure, auditorID string, walletID string)
func CheckBalance ¶
func CheckBalance(network *integration.Infrastructure, id string, wallet string, typ string, expected uint64)
func CheckBalanceAndHolding ¶
func CheckBalanceAndHolding(network *integration.Infrastructure, id string, wallet string, typ string, expected uint64)
func CheckHolding ¶
func CheckHolding(network *integration.Infrastructure, id string, wallet string, typ string, expected int64)
func CheckIfExistsInVault ¶
func CheckIfExistsInVault(network *integration.Infrastructure, id string, tokenIDs []*token2.ID)
func CheckOwnerDB ¶
func CheckOwnerDB(network *integration.Infrastructure, expectedErrors []string, ids ...string)
func CheckPublicParams ¶
func CheckPublicParams(network *integration.Infrastructure, ids ...string)
func CheckSpending ¶
func CheckSpending(network *integration.Infrastructure, id string, wallet string, tokenType string, expected uint64)
func FinalityWithTimeout ¶
func FinalityWithTimeout(network *integration.Infrastructure, id string, tx []byte, timeout time.Duration)
func GetTransactionInfo ¶
func GetTransactionInfo(network *integration.Infrastructure, id string, txnId string) *ttx.TransactionInfo
func IssueCash ¶
func IssueCash(network *integration.Infrastructure, wallet string, typ string, amount uint64, receiver string, auditor string, anonymous bool, expectedErrorMsgs ...string) string
func JSONUnmarshalFloat64 ¶
func JSONUnmarshalFloat64(v interface{}) float64
func ListIssuerHistory ¶
func ListIssuerHistory(network *integration.Infrastructure, wallet string, typ string) *token2.IssuedTokens
func ListUnspentTokens ¶
func ListUnspentTokens(network *integration.Infrastructure, id string, wallet string, typ string) *token2.UnspentTokens
func ListVaultUnspentTokens ¶
func ListVaultUnspentTokens(network *integration.Infrastructure, id string) []*token2.ID
func PrepareTransferCash ¶
func PruneInvalidUnspentTokens ¶
func PruneInvalidUnspentTokens(network *integration.Infrastructure, ids ...string)
func RedeemCash ¶
func RedeemCash(network *integration.Infrastructure, id string, wallet string, typ string, amount uint64, auditor string)
func RedeemCashByIDs ¶
func RedeemCashByIDs(network *integration.Infrastructure, id string, wallet string, ids []*token2.ID, amount uint64, auditor string)
func RegisterAuditor ¶
func RegisterAuditor(network *integration.Infrastructure, id string)
func RegisterCertifier ¶
func RegisterCertifier(network *integration.Infrastructure)
func RegisterIssuerWallet ¶
func RegisterIssuerWallet(network *integration.Infrastructure, id string, walletID, walletPath string)
func Restart ¶
func Restart(network *integration.Infrastructure, deleteVault bool, ids ...string)
func SetTransactionAuditStatus ¶
func SetTransactionAuditStatus(network *integration.Infrastructure, id string, 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 string, wallet string, typeLeft string, amountLeft uint64, typRight string, amountRight uint64, receiver string, auditor string)
func TestAll ¶
func TestAll(network *integration.Infrastructure, auditor string)
func TokenSelectorUnlock ¶
func TokenSelectorUnlock(network *integration.Infrastructure, id string, txID string)
func TransferCash ¶
func TransferCash(network *integration.Infrastructure, id string, wallet string, typ string, amount uint64, receiver string, auditor string, expectedErrorMsgs ...string) string
func TransferCashByIDs ¶
func TransferCashWithSelector ¶
func TransferCashWithSelector(network *integration.Infrastructure, id string, wallet string, typ string, amount uint64, receiver string, auditor string, expectedErrorMsgs ...string)
func WhoDeletedToken ¶
func WhoDeletedToken(network *integration.Infrastructure, id string, tokenIDs []*token2.ID, txIDs ...string) *views.WhoDeletedTokenResult
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.