Documentation
¶
Overview ¶
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- func AssertTokens(sp token.ServiceProvider, tx *ttx.Transaction, outputs *token.OutputStream, ...)
- func GetKVS(sp services.Provider) *kvs.KVS
- func GetTMSPublicParams(tms *token.ManagementService) []byte
- func ServiceOpts(tmsId *token.TMSID, opts ...token.ServiceOption) []token.ServiceOption
- func TxOpts(tmsId *token.TMSID, opts ...ttx.TxOption) []ttx.TxOption
- type AcceptCashView
- type AcceptPreparedCashView
- type AuditView
- type Balance
- type BalanceQuery
- type BalanceView
- type BalanceViewFactory
- type Binding
- type BroadcastPreparedTransfer
- type BroadcastPreparedTransferView
- type BroadcastPreparedTransferViewFactory
- type CheckIfExistsInVault
- type CheckIfExistsInVaultView
- type CheckIfExistsInVaultViewFactory
- type CheckPublicParamsMatch
- type CheckPublicParamsMatchView
- type CheckPublicParamsMatchViewFactory
- type CheckTTXDB
- type CheckTTXDBView
- type CheckTTXDBViewFactory
- type CoOwnedBalanceQuery
- type CoOwnedBalanceView
- type CoOwnedBalanceViewFactory
- type CurrentHolding
- type CurrentHoldingView
- type CurrentHoldingViewFactory
- type CurrentSpending
- type CurrentSpendingView
- type CurrentSpendingViewFactory
- type DoesWalletExist
- type DoesWalletExistView
- type DoesWalletExistViewFactory
- type FinalityWithTimeout
- type FinalityWithTimeoutView
- type FinalityWithTimeoutViewFactory
- type GetEnrollmentID
- type GetEnrollmentIDView
- type GetEnrollmentIDViewFactory
- type GetPublicParams
- type GetPublicParamsView
- type GetPublicParamsViewFactory
- type GetRevocationHandle
- type GetRevocationHandleView
- type GetRevocationHandleViewFactory
- type IssueCash
- type IssueCashView
- type IssueCashViewFactory
- type IssuerRedeemAcceptView
- type KVSEntry
- type ListAcceptedTransactions
- type ListAcceptedTransactionsView
- type ListAcceptedTransactionsViewFactory
- type ListAuditedTransactions
- type ListAuditedTransactionsView
- type ListAuditedTransactionsViewFactory
- type ListIssuedTokens
- type ListIssuedTokensView
- type ListIssuedTokensViewFactory
- type ListOwnerWalletIDsView
- type ListOwnerWalletIDsViewFactory
- type ListUnspentTokens
- type ListUnspentTokensView
- type ListUnspentTokensViewFactory
- type ListVaultUnspentTokens
- type ListVaultUnspentTokensView
- type ListVaultUnspentTokensViewFactory
- type MaliciousTransferView
- type MaliciousTransferViewFactory
- type MultiSigAcceptSpendView
- type MultiSigLock
- type MultiSigLockView
- type MultiSigLockViewFactory
- type MultiSigSpend
- type MultiSigSpendView
- type MultiSigSpendViewFactory
- type PrepareTransferResult
- type PrepareTransferView
- type PrepareTransferViewFactory
- type PruneInvalidUnspentTokens
- type PruneInvalidUnspentTokensView
- type PruneInvalidUnspentTokensViewFactory
- type Redeem
- type RedeemView
- type RedeemViewFactory
- type RegisterAuditor
- type RegisterAuditorView
- type RegisterAuditorViewFactory
- type RegisterCertifier
- type RegisterCertifierView
- type RegisterCertifierViewFactory
- type RegisterIssuerIdentityView
- type RegisterIssuerIdentityViewFactory
- type RegisterIssuerWallet
- type RegisterOwnerIdentity
- type RegisterOwnerIdentityView
- type RegisterOwnerIdentityViewFactory
- type RegisterRecipientData
- type RegisterRecipientDataView
- type RegisterRecipientDataViewFactory
- type RevocationHandle
- type RevokeUser
- type RevokeUserView
- type RevokeUserViewFactory
- type SetBindingView
- type SetBindingViewFactory
- type SetKVSEntryView
- type SetKVSEntryViewFactory
- type SetSpendableFlag
- type SetSpendableFlagView
- type SetSpendableFlagViewFactory
- type SetTransactionAuditStatus
- type SetTransactionAuditStatusView
- type SetTransactionAuditStatusViewFactory
- type SetTransactionOwnerStatus
- type SetTransactionOwnerStatusView
- type SetTransactionOwnerStatusViewFactory
- type Swap
- type SwapInitiatorView
- type SwapInitiatorViewFactory
- type SwapResponderView
- type TokenSelectorUnlock
- type TokenSelectorUnlockView
- type TokenSelectorUnlockViewFactory
- type TokenTransactionDB
- type TokensUpgrade
- type TokensUpgradeInitiatorView
- type TokensUpgradeInitiatorViewFactory
- type TokensUpgradeResponderView
- type TransactionInfo
- type TransactionInfoView
- type TransactionInfoViewFactory
- type Transfer
- type TransferAction
- type TransferView
- type TransferViewFactory
- type TransferWithSelectorView
- type TransferWithSelectorViewFactory
- type TxStatus
- type TxStatusResponse
- type TxStatusView
- type TxStatusViewFactory
- type UpdatePublicParams
- type UpdatePublicParamsView
- type UpdatePublicParamsViewFactory
- type WhoDeletedToken
- type WhoDeletedTokenResult
- type WhoDeletedTokenView
- type WhoDeletedTokenViewFactory
- type Withdrawal
- type WithdrawalInitiatorView
- type WithdrawalInitiatorViewFactory
- type WithdrawalResponderView
Constants ¶
const ( OwnerWallet = iota IssuerWallet AuditorWallet )
Variables ¶
This section is empty.
Functions ¶
func AssertTokens ¶ added in v0.4.0
func AssertTokens(sp token.ServiceProvider, tx *ttx.Transaction, outputs *token.OutputStream, id view.Identity)
AssertTokens checks that the tokens are or are not in the tokendb
func GetTMSPublicParams ¶ added in v0.2.0
func GetTMSPublicParams(tms *token.ManagementService) []byte
func ServiceOpts ¶ added in v0.3.0
func ServiceOpts(tmsId *token.TMSID, opts ...token.ServiceOption) []token.ServiceOption
ServiceOpts creates a new array of token.ServiceOption containing token.WithTMSID and any additional token.ServiceOption passed to this function
Types ¶
type AcceptCashView ¶
type AcceptCashView struct{}
type AcceptPreparedCashView ¶
type AcceptPreparedCashView struct {
WaitFinality bool
}
type BalanceQuery ¶
type BalanceView ¶
type BalanceView struct {
*BalanceQuery
}
type BalanceViewFactory ¶
type BalanceViewFactory struct{}
type BroadcastPreparedTransferView ¶
type BroadcastPreparedTransferView struct {
*BroadcastPreparedTransfer
}
BroadcastPreparedTransferView is a view that broadcasts a prepared transfer transaction
type BroadcastPreparedTransferViewFactory ¶
type BroadcastPreparedTransferViewFactory struct{}
type CheckIfExistsInVaultView ¶
type CheckIfExistsInVaultView struct {
*CheckIfExistsInVault
}
type CheckIfExistsInVaultViewFactory ¶
type CheckIfExistsInVaultViewFactory struct {
}
type CheckPublicParamsMatch ¶
type CheckPublicParamsMatchView ¶
type CheckPublicParamsMatchView struct {
*CheckPublicParamsMatch
}
type CheckPublicParamsMatchViewFactory ¶
type CheckPublicParamsMatchViewFactory struct{}
type CheckTTXDBView ¶
type CheckTTXDBView struct {
*CheckTTXDB
}
CheckTTXDBView is a view that performs consistency checks among the transaction db (either auditor or owner), the vault, and the backed. It reports a list of mismatch that can be used for debug purposes.
type CheckTTXDBViewFactory ¶
type CheckTTXDBViewFactory struct{}
type CoOwnedBalanceQuery ¶ added in v0.5.0
type CoOwnedBalanceView ¶ added in v0.5.0
type CoOwnedBalanceView struct {
*CoOwnedBalanceQuery
}
type CoOwnedBalanceViewFactory ¶ added in v0.5.0
type CoOwnedBalanceViewFactory struct{}
type CurrentHolding ¶
type CurrentHoldingView ¶
type CurrentHoldingView struct {
*CurrentHolding
}
CurrentHoldingView is used to retrieve the current holding of token type of the passed enrollment id
type CurrentHoldingViewFactory ¶
type CurrentHoldingViewFactory struct{}
type CurrentSpending ¶
type CurrentSpendingView ¶
type CurrentSpendingView struct {
*CurrentSpending
}
CurrentSpendingView is used to retrieve the current spending of token type of the passed enrollment id
type CurrentSpendingViewFactory ¶
type CurrentSpendingViewFactory struct{}
type DoesWalletExist ¶ added in v0.3.0
type DoesWalletExistView ¶ added in v0.3.0
type DoesWalletExistView struct {
*DoesWalletExist
}
type DoesWalletExistViewFactory ¶ added in v0.3.0
type DoesWalletExistViewFactory struct{}
type FinalityWithTimeout ¶
type FinalityWithTimeoutView ¶
type FinalityWithTimeoutView struct {
*FinalityWithTimeout
}
FinalityWithTimeoutView is a view that runs the finality view with timeout. The timeout is expected to happen
type FinalityWithTimeoutViewFactory ¶
type FinalityWithTimeoutViewFactory struct{}
type GetEnrollmentID ¶
type GetEnrollmentIDView ¶
type GetEnrollmentIDView struct {
*GetEnrollmentID
}
GetEnrollmentIDView is a view that returns the enrollment ID of a wallet.
type GetEnrollmentIDViewFactory ¶
type GetEnrollmentIDViewFactory struct{}
type GetPublicParams ¶ added in v0.2.0
type GetPublicParamsView ¶ added in v0.2.0
type GetPublicParamsView struct {
*GetPublicParams
}
type GetPublicParamsViewFactory ¶ added in v0.2.0
type GetPublicParamsViewFactory struct{}
type GetRevocationHandle ¶ added in v0.3.0
type GetRevocationHandleView ¶ added in v0.3.0
type GetRevocationHandleView struct {
*GetRevocationHandle
}
type GetRevocationHandleViewFactory ¶ added in v0.3.0
type GetRevocationHandleViewFactory struct{}
type IssueCash ¶
type IssueCash struct {
TMSID *token.TMSID
// Anonymous set to true if the transaction is anonymous, false otherwise
Anonymous bool
// Auditor is the name of the auditor identity
Auditor string
// IssuerWallet is the issuer's wallet to use
IssuerWallet string
// TokenType is the type of token to issue
TokenType token2.Type
// Quantity represent the number of units of a certain token type stored in the token
Quantity uint64
// Recipient is the identity of the recipient's FSC node
Recipient view.Identity
// RecipientWalletID specifies the wallet ID of the recipient
RecipientWalletID string
// RecipientEID is the expected enrolment id of the recipient
RecipientEID string
// SkipAuditorSignatureVerification set to true to skip the verification of the auditor signature during endorsement collection
SkipAuditorSignatureVerification bool
}
IssueCash contains the input information to issue a token
type IssueCashView ¶
type IssueCashView struct {
*IssueCash
}
type IssueCashViewFactory ¶
type IssueCashViewFactory struct{}
type IssuerRedeemAcceptView ¶ added in v0.5.0
type IssuerRedeemAcceptView struct{}
type ListAcceptedTransactions ¶
type ListAcceptedTransactions struct {
SenderWallet string
RecipientWallet string
From *time.Time
To *time.Time
ActionTypes []ttxdb.ActionType
Statuses []ttxdb.TxStatus
TMSID *token.TMSID
}
ListAcceptedTransactions contains the input to query the list of accepted tokens
type ListAcceptedTransactionsView ¶
type ListAcceptedTransactionsView struct {
*ListAcceptedTransactions
}
type ListAcceptedTransactionsViewFactory ¶
type ListAcceptedTransactionsViewFactory struct{}
type ListAuditedTransactions ¶
type ListAuditedTransactionsView ¶
type ListAuditedTransactionsView struct {
*ListAuditedTransactions
}
type ListAuditedTransactionsViewFactory ¶
type ListAuditedTransactionsViewFactory struct{}
type ListIssuedTokens ¶
type ListIssuedTokens struct {
// Wallet whose identities own the token
Wallet string
// TokenType is the token type to select
TokenType token2.Type
// The TMS to pick in case of multiple TMSIDs
TMSID *token.TMSID
}
ListIssuedTokens contains the input to query the list of issued tokens
type ListIssuedTokensView ¶
type ListIssuedTokensView struct {
*ListIssuedTokens
}
type ListIssuedTokensViewFactory ¶
type ListIssuedTokensViewFactory struct{}
type ListOwnerWalletIDsView ¶ added in v0.3.0
type ListOwnerWalletIDsView struct{}
type ListOwnerWalletIDsViewFactory ¶ added in v0.3.0
type ListOwnerWalletIDsViewFactory struct{}
type ListUnspentTokens ¶
type ListUnspentTokens struct {
// Wallet whose identities own the token
Wallet string
// TokenType is the token type to select
TokenType token2.Type
// The TMS to pick in case of multiple TMSIDs
TMSID *token.TMSID
}
ListUnspentTokens contains the input to query the list of unspent tokens
type ListUnspentTokensView ¶
type ListUnspentTokensView struct {
*ListUnspentTokens
}
type ListUnspentTokensViewFactory ¶
type ListUnspentTokensViewFactory struct{}
type ListVaultUnspentTokens ¶
type ListVaultUnspentTokensView ¶
type ListVaultUnspentTokensView struct {
*ListVaultUnspentTokens
}
type ListVaultUnspentTokensViewFactory ¶
type ListVaultUnspentTokensViewFactory struct{}
type MaliciousTransferView ¶ added in v0.4.0
type MaliciousTransferView struct {
*Transfer
}
type MaliciousTransferViewFactory ¶ added in v0.4.0
type MaliciousTransferViewFactory struct{}
type MultiSigAcceptSpendView ¶ added in v0.5.0
type MultiSigAcceptSpendView struct{}
type MultiSigLock ¶ added in v0.5.0
type MultiSigLock struct {
// Auditor is the name of the auditor that must be contacted to approve the operation
Auditor string
// Wallet is the identifier of the wallet that owns the tokens to transfer
Wallet string
// Type of tokens to transfer
Type token.Type
// Amount to transfer
Amount uint64
// MultisigIdentities contains the identities of the FSC nodes of the multisig escrow
MultisigIdentities []view.Identity
// MultisigEIDs contains the expected enrolment ids of the multisig escrow
MultisigEIDs []string
// The TMS to pick in case of multiple TMSIDs
TMSID *token2.TMSID
// NotAnonymous true if the transaction must be anonymous, false otherwise
NotAnonymous bool
}
MultiSigLock contains the input information for a multisig-based escrow
type MultiSigLockView ¶ added in v0.5.0
type MultiSigLockView struct {
*MultiSigLock
}
type MultiSigLockViewFactory ¶ added in v0.5.0
type MultiSigLockViewFactory struct{}
type MultiSigSpend ¶ added in v0.5.0
type MultiSigSpend struct {
// Auditor is the name of the auditor that must be contacted to approve the operation
Auditor string
// Wallet is the identifier of the wallet that owns the tokens to transfer
Wallet string
// MultisigIdentities contains the identities of the FSC nodes of the multisig escrow
Recipient view.Identity
// The TMS to pick in case of multiple TMSIDs
TMSID *token2.TMSID
TokenType token.Type
}
MultiSigSpend contains the input information to spend a token
type MultiSigSpendView ¶ added in v0.5.0
type MultiSigSpendView struct {
*MultiSigSpend
}
type MultiSigSpendViewFactory ¶ added in v0.5.0
type MultiSigSpendViewFactory struct{}
type PrepareTransferResult ¶
type PrepareTransferView ¶
type PrepareTransferView struct {
*Transfer
}
PrepareTransferView is a view that prepares a transfer transaction without broadcasting it
type PrepareTransferViewFactory ¶
type PrepareTransferViewFactory struct{}
type PruneInvalidUnspentTokensView ¶
type PruneInvalidUnspentTokensView struct {
*PruneInvalidUnspentTokens
}
type PruneInvalidUnspentTokensViewFactory ¶
type PruneInvalidUnspentTokensViewFactory struct{}
type Redeem ¶
type Redeem struct {
// Auditor is the name of the auditor that must be contacted to approve the operation
Auditor string
// Issuer is the name of the issuer that must be contacted to approve the operation
Issuer string
// IssuerPublicParamsPublicKey is the public key of the issuer against which the issuer signature in the Redeem action will be checked.
IssuerPublicParamsPublicKey view.Identity
// Wallet is the identifier of the wallet that owns the tokens to redeem
Wallet string
// TokenIDs contains a list of token ids to redeem. If empty, tokens are selected on the spot.
TokenIDs []*token.ID
// Type of tokens to redeem
Type token.Type
// Amount to redeem
Amount uint64
// The TMS to pick in case of multiple TMSIDs
TMSID *token2.TMSID
}
Redeem contains the input information for a redeem
type RedeemView ¶
type RedeemView struct {
*Redeem
}
type RedeemViewFactory ¶
type RedeemViewFactory struct{}
type RegisterAuditor ¶ added in v0.3.0
type RegisterAuditorView ¶
type RegisterAuditorView struct {
*RegisterAuditor
}
type RegisterAuditorViewFactory ¶
type RegisterAuditorViewFactory struct{}
type RegisterCertifier ¶
type RegisterCertifierView ¶
type RegisterCertifierView struct {
*RegisterCertifier
}
type RegisterCertifierViewFactory ¶
type RegisterCertifierViewFactory struct{}
type RegisterIssuerIdentityView ¶ added in v0.4.0
type RegisterIssuerIdentityView struct {
*RegisterIssuerWallet
}
RegisterIssuerIdentityView is a view that register an issuer wallet
type RegisterIssuerIdentityViewFactory ¶ added in v0.4.0
type RegisterIssuerIdentityViewFactory struct{}
type RegisterIssuerWallet ¶
type RegisterOwnerIdentity ¶ added in v0.4.0
type RegisterOwnerIdentity struct {
token.IdentityConfiguration
TMSID token.TMSID
}
type RegisterOwnerIdentityView ¶ added in v0.4.0
type RegisterOwnerIdentityView struct {
*RegisterOwnerIdentity
}
RegisterOwnerIdentityView is a view that registers an owner wallet
type RegisterOwnerIdentityViewFactory ¶ added in v0.4.0
type RegisterOwnerIdentityViewFactory struct{}
type RegisterRecipientData ¶ added in v0.4.0
type RegisterRecipientData struct {
TMSID token.TMSID
WalletID string
RecipientData token.RecipientData
}
type RegisterRecipientDataView ¶ added in v0.4.0
type RegisterRecipientDataView struct {
*RegisterRecipientData
}
RegisterRecipientDataView is a view that registers recipient data
type RegisterRecipientDataViewFactory ¶ added in v0.4.0
type RegisterRecipientDataViewFactory struct{}
type RevocationHandle ¶ added in v0.3.0
type RevocationHandle struct {
RH string
}
type RevokeUser ¶ added in v0.3.0
type RevokeUser struct {
RH string
}
type RevokeUserView ¶ added in v0.3.0
type RevokeUserView struct {
*RevokeUser
}
type RevokeUserViewFactory ¶ added in v0.3.0
type RevokeUserViewFactory struct{}
type SetBindingView ¶ added in v0.5.0
type SetBindingView struct {
*Binding
}
type SetBindingViewFactory ¶ added in v0.5.0
type SetBindingViewFactory struct{}
type SetKVSEntryView ¶ added in v0.3.0
type SetKVSEntryView struct {
*KVSEntry
}
type SetKVSEntryViewFactory ¶ added in v0.3.0
type SetKVSEntryViewFactory struct{}
type SetSpendableFlag ¶ added in v0.4.0
type SetSpendableFlagView ¶ added in v0.4.0
type SetSpendableFlagView struct {
*SetSpendableFlag
}
type SetSpendableFlagViewFactory ¶ added in v0.4.0
type SetSpendableFlagViewFactory struct{}
type SetTransactionAuditStatusView ¶
type SetTransactionAuditStatusView struct {
*SetTransactionAuditStatus
}
SetTransactionAuditStatusView is used to set the status of a given transaction in the audit db
type SetTransactionAuditStatusViewFactory ¶
type SetTransactionAuditStatusViewFactory struct{}
type SetTransactionOwnerStatusView ¶
type SetTransactionOwnerStatusView struct {
*SetTransactionOwnerStatus
}
SetTransactionOwnerStatusView is used to set the status of a given transaction in the audit db
type SetTransactionOwnerStatusViewFactory ¶
type SetTransactionOwnerStatusViewFactory struct{}
type Swap ¶
type Swap struct {
// Auditor is the identity of the auditor that must be contacted to approve the transaction
Auditor string
// AliceWallet is the wallet Alice will use
AliceWallet string
// FromAliceType is the token type Alice will transfer
FromAliceType token.Type
// FromAliceAmount is the amount Alice will transfer
FromAliceAmount uint64
// FromBobType is the token type Bob will transfer
FromBobType token.Type
// FromBobAmount is the amount Bob will transfer
FromBobAmount uint64
// Bob is the identity of the Bob's FSC node
Bob view.Identity
}
Swap contains the input information for a swap
type SwapInitiatorView ¶
type SwapInitiatorView struct {
*Swap
}
type SwapInitiatorViewFactory ¶
type SwapInitiatorViewFactory struct{}
type SwapResponderView ¶
type SwapResponderView struct{}
type TokenSelectorUnlock ¶
type TokenSelectorUnlock struct {
TxID string
}
type TokenSelectorUnlockView ¶
type TokenSelectorUnlockView struct {
*TokenSelectorUnlock
}
TokenSelectorUnlockView is a view that broadcasts a prepared transfer transaction
type TokenSelectorUnlockViewFactory ¶
type TokenSelectorUnlockViewFactory struct{}
type TokenTransactionDB ¶ added in v0.3.0
type TokenTransactionDB interface {
GetTokenRequest(ctx context.Context, txID string) ([]byte, error)
Transactions(ctx context.Context, params driver.QueryTransactionsParams, pagination driver2.Pagination) (*driver2.PageIterator[*driver.TransactionRecord], error)
}
type TokensUpgrade ¶ added in v0.5.0
type TokensUpgrade struct {
// TMSID the token management service identifier
TMSID token.TMSID
// Wallet of the recipient of the cash to be issued
Wallet string
// TokenType is the type of token to issue
TokenType token2.Type
// Issuer identifies the issuer
Issuer string
// Recipient information
RecipientData *token.RecipientData
// NotAnonymous true if the transaction must be anonymous, false otherwise
NotAnonymous bool
}
type TokensUpgradeInitiatorView ¶ added in v0.5.0
type TokensUpgradeInitiatorView struct {
*TokensUpgrade
}
type TokensUpgradeInitiatorViewFactory ¶ added in v0.5.0
type TokensUpgradeInitiatorViewFactory struct{}
type TokensUpgradeResponderView ¶ added in v0.5.0
type TokensUpgradeResponderView struct {
Auditor string
}
type TransactionInfo ¶
TransactionInfo contains the input information to search for transaction info
type TransactionInfoView ¶
type TransactionInfoView struct {
*TransactionInfo
}
type TransactionInfoViewFactory ¶
type TransactionInfoViewFactory struct{}
type Transfer ¶
type Transfer struct {
// Auditor is the name of the auditor that must be contacted to approve the operation
Auditor string
// Wallet is the identifier of the wallet that owns the tokens to transfer
Wallet string
// TokenIDs contains a list of token ids to transfer. If empty, tokens are selected on the spot.
TokenIDs []*token.ID
// Type of tokens to transfer
Type token.Type
// Amount to transfer
Amount uint64
// Recipient is the identity of the recipient's FSC node
Recipient view.Identity
// RecipientEID is the expected enrolment id of the recipient
RecipientEID string
// RecipientWalletID specifies the wallet ID for the recipient
RecipientWalletID string
// Retry tells if a retry must happen in case of a failure
Retry bool
// FailToRelease if true, it fails after transfer to trigger the Release function on the token transaction
FailToRelease bool
// For additional transfer actions
TransferAction []TransferAction
// SenderChangeRecipientData contains the recipient data that needs to be used by sender to receive the change of the transfer operation, if needed.
// If this field is set to nil, then the token sdk generates this information as needed.
SenderChangeRecipientData *token2.RecipientData
// RecipientData contains the recipient data of the recipient of the transfer.
// If nil, the view will ask the remote part to generate it, otherwise the view will notify the recipient
// about the recipient data that will be used to the transfer.
RecipientData *token2.RecipientData
// The TMS to pick in case of multiple TMSIDs
TMSID *token2.TMSID
// NotAnonymous true if the transaction must be anonymous, false otherwise
NotAnonymous bool
// Metadata contains application metadata to append to the transaction
Metadata map[string][]byte
}
Transfer contains the input information for a transfer
type TransferAction ¶ added in v0.3.0
type TransferAction struct {
// Amount to transfer
Amount uint64
// Recipient is the identity of the recipient's FSC node
Recipient view.Identity
// RecipientEID is the expected enrolment id of the recipient
RecipientEID string
}
TransferAction defines a transfer action
type TransferView ¶
type TransferView struct {
*Transfer
}
type TransferViewFactory ¶
type TransferViewFactory struct{}
type TransferWithSelectorView ¶
type TransferWithSelectorView struct {
*Transfer
}
type TransferWithSelectorViewFactory ¶
type TransferWithSelectorViewFactory struct{}
type TxStatusResponse ¶ added in v0.4.0
type TxStatusView ¶ added in v0.4.0
type TxStatusView struct {
*TxStatus
}
type TxStatusViewFactory ¶ added in v0.4.0
type TxStatusViewFactory struct{}
type UpdatePublicParams ¶ added in v0.5.0
type UpdatePublicParamsView ¶ added in v0.5.0
type UpdatePublicParamsView struct {
*UpdatePublicParams
}
type UpdatePublicParamsViewFactory ¶ added in v0.5.0
type UpdatePublicParamsViewFactory struct{}
type WhoDeletedTokenResult ¶
type WhoDeletedTokenView ¶
type WhoDeletedTokenView struct {
*WhoDeletedToken
}
type WhoDeletedTokenViewFactory ¶
type WhoDeletedTokenViewFactory struct{}
type Withdrawal ¶ added in v0.3.0
type Withdrawal struct {
// TMSID the token management service identifier
TMSID token.TMSID
// Wallet of the recipient of the cash to be issued
Wallet string
// Amount represent the number of units of a certain token type stored in the token
Amount uint64
// TokenType is the type of token to issue
TokenType token2.Type
// Issuer identifies the issuer
Issuer string
// Recipient information
RecipientData *token.RecipientData
// NotAnonymous true if the transaction must be anonymous, false otherwise
NotAnonymous bool
}
type WithdrawalInitiatorView ¶ added in v0.3.0
type WithdrawalInitiatorView struct {
*Withdrawal
}
type WithdrawalInitiatorViewFactory ¶ added in v0.3.0
type WithdrawalInitiatorViewFactory struct{}
type WithdrawalResponderView ¶ added in v0.3.0
type WithdrawalResponderView struct {
Auditor string
}