Documentation ¶
Index ¶
- Constants
- func NewChaincodePublicParamsFetcher(viewManager *view.Manager) *chaincodePublicParamsFetcher
- func NewGenericDriver(fnsProvider *fabric.NetworkServiceProvider, vaultProvider *vault2.Provider, ...) driver.Driver
- func NewSpentTokenExecutorProvider(fnsProvider *fabric.NetworkServiceProvider, ...) *spentTokenFetcherProvider
- func NewTokenExecutorProvider(fnsProvider *fabric.NetworkServiceProvider) *tokenFetcherProvider
- type Driver
- type EndorsementService
- type EndorsementServiceProvider
- type GetTMSProviderFunc
- type GetTokensFunc
- type Network
- func (n *Network) AddFinalityListener(namespace string, txID string, listener driver.FinalityListener) error
- func (n *Network) AreTokensSpent(ctx context.Context, namespace string, tokenIDs []*token.ID, meta []string) ([]bool, error)
- func (n *Network) Broadcast(ctx context.Context, blob interface{}) error
- func (n *Network) Channel() string
- func (n *Network) ComputeTxID(id *driver.TxID) string
- func (n *Network) Connect(ns string) ([]token2.ServiceOption, error)
- func (n *Network) FetchPublicParameters(namespace string) ([]byte, error)
- func (n *Network) Ledger() (driver.Ledger, error)
- func (n *Network) LocalMembership() driver.LocalMembership
- func (n *Network) LookupTransferMetadataKey(namespace string, startingTxID string, key string, timeout time.Duration, ...) ([]byte, error)
- func (n *Network) Name() string
- func (n *Network) NewEnvelope() driver.Envelope
- func (n *Network) Normalize(opt *token2.ServiceOptions) (*token2.ServiceOptions, error)
- func (n *Network) ProcessNamespace(namespace string) error
- func (n *Network) QueryTokens(ctx context.Context, namespace string, IDs []*token.ID) ([][]byte, error)
- func (n *Network) RemoveFinalityListener(txID string, listener driver.FinalityListener) error
- func (n *Network) RequestApproval(context view.Context, tms *token2.ManagementService, requestRaw []byte, ...) (driver.Envelope, error)
- func (n *Network) TokenVault(namespace string) (driver.TokenVault, error)
- type NewVaultFunc
- type RWSWrapper
- func (rwset *RWSWrapper) Bytes() ([]byte, error)
- func (rwset *RWSWrapper) DeleteState(namespace string, key string) error
- func (rwset *RWSWrapper) Done()
- func (rwset *RWSWrapper) Equals(r interface{}, namespace string) error
- func (rwset *RWSWrapper) GetState(namespace string, key string) ([]byte, error)
- func (rwset *RWSWrapper) SetState(namespace string, key string, value []byte) error
- type RWSetProcessor
- type ViewManager
- type ViewRegistry
Constants ¶
View Source
const ( QueryPublicParamsFunction = "queryPublicParams" QueryTokensFunctions = "queryTokens" AreTokensSpent = "areTokensSpent" )
Variables ¶
This section is empty.
Functions ¶
func NewChaincodePublicParamsFetcher ¶ added in v0.4.0
func NewGenericDriver ¶ added in v0.4.0
func NewGenericDriver( fnsProvider *fabric.NetworkServiceProvider, vaultProvider *vault2.Provider, tokensManager *tokens.Manager, configProvider *config.Service, viewManager *view.Manager, viewRegistry driver2.Registry, filterProvider *common.AcceptTxInDBFilterProvider, tmsProvider *token.ManagementServiceProvider, tracerProvider trace.TracerProvider, identityProvider driver2.IdentityProvider, configService driver2.ConfigService, ) driver.Driver
func NewSpentTokenExecutorProvider ¶ added in v0.4.0
func NewSpentTokenExecutorProvider(fnsProvider *fabric.NetworkServiceProvider, keyTranslator translator.KeyTranslator) *spentTokenFetcherProvider
func NewTokenExecutorProvider ¶ added in v0.4.0
func NewTokenExecutorProvider(fnsProvider *fabric.NetworkServiceProvider) *tokenFetcherProvider
Types ¶
type Driver ¶
type Driver struct { EndorsementServiceProvider EndorsementServiceProvider // contains filtered or unexported fields }
func NewDriver ¶ added in v0.4.0
func NewDriver( fnsProvider *fabric.NetworkServiceProvider, vaultProvider *vault2.Provider, tokensManager *tokens.Manager, configService *config.Service, viewManager *view.Manager, viewRegistry driver2.Registry, filterProvider *common.AcceptTxInDBFilterProvider, tmsProvider *token.ManagementServiceProvider, tracerProvider trace.TracerProvider, identityProvider driver2.IdentityProvider, defaultPublicParamsFetcher driver3.NetworkPublicParamsFetcher, tokenQueryExecutorProvider driver.TokenQueryExecutorProvider, spentTokenQueryExecutorProvider driver.SpentTokenQueryExecutorProvider, keyTranslator translator.KeyTranslator, flmProvider finality.ListenerManagerProvider, endorsementServiceProvider EndorsementServiceProvider, supportedDrivers ...string, ) *Driver
type EndorsementService ¶ added in v0.4.0
type EndorsementService = endorsement.Service
type EndorsementServiceProvider ¶ added in v0.4.0
type EndorsementServiceProvider = lazy.Provider[token2.TMSID, EndorsementService]
type GetTMSProviderFunc ¶ added in v0.4.0
type GetTMSProviderFunc = func() *token.ManagementServiceProvider
type GetTokensFunc ¶ added in v0.4.0
type Network ¶
type Network struct {
// contains filtered or unexported fields
}
func NewNetwork ¶
func NewNetwork( n *fabric.NetworkService, ch *fabric.Channel, newVault NewVaultFunc, configuration common2.Configuration, filterProvider common2.TransactionFilterProvider[*common2.AcceptTxInDBsFilter], tokensProvider *tokens2.Manager, viewManager ViewManager, tmsProvider *token2.ManagementServiceProvider, endorsementServiceProvider EndorsementServiceProvider, tokenQueryExecutor driver.TokenQueryExecutor, tracerProvider trace.TracerProvider, defaultPublicParamsFetcher driver3.NetworkPublicParamsFetcher, spentTokenQueryExecutor driver.SpentTokenQueryExecutor, keyTranslator translator.KeyTranslator, flm finality.ListenerManager, ) *Network
func (*Network) AddFinalityListener ¶ added in v0.4.0
func (*Network) AreTokensSpent ¶
func (*Network) Connect ¶ added in v0.4.0
func (n *Network) Connect(ns string) ([]token2.ServiceOption, error)
func (*Network) FetchPublicParameters ¶
func (*Network) LocalMembership ¶
func (n *Network) LocalMembership() driver.LocalMembership
func (*Network) LookupTransferMetadataKey ¶
func (*Network) NewEnvelope ¶
func (*Network) Normalize ¶ added in v0.4.0
func (n *Network) Normalize(opt *token2.ServiceOptions) (*token2.ServiceOptions, error)
func (*Network) ProcessNamespace ¶ added in v0.3.0
func (*Network) QueryTokens ¶
func (*Network) RemoveFinalityListener ¶ added in v0.4.0
func (n *Network) RemoveFinalityListener(txID string, listener driver.FinalityListener) error
func (*Network) RequestApproval ¶
func (*Network) TokenVault ¶ added in v0.4.0
func (n *Network) TokenVault(namespace string) (driver.TokenVault, error)
type NewVaultFunc ¶ added in v0.4.0
type NewVaultFunc = func(network, channel, namespace string) (driver.TokenVault, error)
type RWSWrapper ¶
type RWSWrapper struct {
// contains filtered or unexported fields
}
func NewRWSWrapper ¶
func NewRWSWrapper(r *fabric.RWSet) *RWSWrapper
func (*RWSWrapper) Bytes ¶
func (rwset *RWSWrapper) Bytes() ([]byte, error)
func (*RWSWrapper) DeleteState ¶
func (rwset *RWSWrapper) DeleteState(namespace string, key string) error
func (*RWSWrapper) Done ¶
func (rwset *RWSWrapper) Done()
func (*RWSWrapper) Equals ¶
func (rwset *RWSWrapper) Equals(r interface{}, namespace string) error
type RWSetProcessor ¶
type RWSetProcessor struct { GetTokens GetTokensFunc GetTMSProvider GetTMSProviderFunc KeyTranslator translator.KeyTranslator // contains filtered or unexported fields }
func NewTokenRWSetProcessor ¶
func NewTokenRWSetProcessor(network string, ns string, GetTokens GetTokensFunc, GetTMSProvider GetTMSProviderFunc, KeyTranslator translator.KeyTranslator) *RWSetProcessor
type ViewManager ¶ added in v0.4.0
type ViewRegistry ¶ added in v0.4.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.