Documentation
¶
Index ¶
- Constants
- type Fabric
- func (f *Fabric) AddContractListener(ctx context.Context, listener *core.ContractListenerInput) error
- func (f *Fabric) Capabilities() *blockchain.Capabilities
- func (f *Fabric) ConfigureContract(ctx context.Context, contracts *core.FireFlyContracts) (err error)
- func (f *Fabric) DeleteContractListener(ctx context.Context, subscription *core.ContractListener) error
- func (f *Fabric) GenerateEventSignature(ctx context.Context, event *core.FFIEventDefinition) string
- func (f *Fabric) GenerateFFI(ctx context.Context, generationRequest *core.FFIGenerationRequest) (*core.FFI, error)
- func (f *Fabric) GetFFIParamValidator(ctx context.Context) (core.FFIParamValidator, error)
- func (f *Fabric) Init(ctx context.Context, config config.Section, callbacks blockchain.Callbacks, ...) (err error)
- func (f *Fabric) InitConfig(config config.Section)
- func (f *Fabric) InvokeContract(ctx context.Context, operationID *fftypes.UUID, signingKey string, ...) error
- func (f *Fabric) Name() string
- func (f *Fabric) NetworkVersion(ctx context.Context) int
- func (f *Fabric) NormalizeContractLocation(ctx context.Context, location *fftypes.JSONAny) (result *fftypes.JSONAny, err error)
- func (f *Fabric) NormalizeSigningKey(ctx context.Context, signingKeyInput string) (string, error)
- func (f *Fabric) QueryContract(ctx context.Context, location *fftypes.JSONAny, method *core.FFIMethod, ...) (interface{}, error)
- func (f *Fabric) Start() (err error)
- func (f *Fabric) SubmitBatchPin(ctx context.Context, operationID *fftypes.UUID, signingKey string, ...) error
- func (f *Fabric) SubmitNetworkAction(ctx context.Context, operationID *fftypes.UUID, signingKey string, ...) error
- func (f *Fabric) TerminateContract(ctx context.Context, contracts *core.FireFlyContracts, ...) (err error)
- func (f *Fabric) VerifierType() core.VerifierType
- type Location
- type PayloadSchema
- type PrefixItem
Constants ¶
View Source
const ( // FabconnectConfigKey is a sub-key in the config to contain all the ethconnect specific config, FabconnectConfigKey = "fabconnect" // FabconnectConfigDefaultChannel is the default Fabric channel to use if no "ledger" is specified in requests FabconnectConfigDefaultChannel = "channel" // FabconnectConfigSigner is the signer identity used to subscribe to FireFly chaincode events FabconnectConfigSigner = "signer" // FabconnectConfigTopic is the websocket listen topic that the node should register on, which is important if there are multiple // nodes using a single fabconnect FabconnectConfigTopic = "topic" // FabconnectConfigBatchSize is the batch size to configure on event streams, when auto-defining them FabconnectConfigBatchSize = "batchSize" // FabconnectConfigBatchTimeout is the batch timeout to configure on event streams, when auto-defining them FabconnectConfigBatchTimeout = "batchTimeout" // FabconnectPrefixShort is used in the query string in requests to ethconnect FabconnectPrefixShort = "prefixShort" // FabconnectPrefixLong is used in HTTP headers in requests to ethconnect FabconnectPrefixLong = "prefixLong" // FabconnectConfigChaincodeDeprecated is the Fabric Firefly chaincode deployed to the Firefly channels FabconnectConfigChaincodeDeprecated = "chaincode" // FireFlyContractConfigKey is a sub-key in the config to contain the info on the deployed FireFly contract FireFlyContractConfigKey = "fireflyContract" // FireFlyContractChaincode is the Fabric Firefly chaincode deployed to the Firefly channels FireFlyContractChaincode = "chaincode" // FireFlyContractFromBlock is the configuration of the first block to listen to when creating the listener FireFlyContractFromBlock = "fromBlock" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fabric ¶
type Fabric struct {
// contains filtered or unexported fields
}
func (*Fabric) AddContractListener ¶ added in v0.14.0
func (*Fabric) Capabilities ¶
func (f *Fabric) Capabilities() *blockchain.Capabilities
func (*Fabric) ConfigureContract ¶
func (*Fabric) DeleteContractListener ¶ added in v0.14.0
func (*Fabric) GenerateEventSignature ¶ added in v1.0.0
func (*Fabric) GenerateFFI ¶ added in v0.13.1
func (*Fabric) GetFFIParamValidator ¶ added in v0.12.0
func (*Fabric) InitConfig ¶ added in v1.1.0
func (*Fabric) InvokeContract ¶ added in v0.12.0
func (*Fabric) NormalizeContractLocation ¶ added in v1.0.0
func (*Fabric) NormalizeSigningKey ¶ added in v0.14.0
func (*Fabric) QueryContract ¶ added in v0.12.0
func (*Fabric) SubmitBatchPin ¶
func (*Fabric) SubmitNetworkAction ¶ added in v1.1.0
func (*Fabric) TerminateContract ¶
func (f *Fabric) TerminateContract(ctx context.Context, contracts *core.FireFlyContracts, termination *blockchain.Event) (err error)
func (*Fabric) VerifierType ¶ added in v0.14.0
func (f *Fabric) VerifierType() core.VerifierType
type PayloadSchema ¶ added in v0.12.0
type PayloadSchema struct { Type string `json:"type"` PrefixItems []*PrefixItem `json:"prefixItems"` }
type PrefixItem ¶ added in v0.12.0
Click to show internal directories.
Click to hide internal directories.