Documentation ¶
Index ¶
- Constants
- type ListenerCheckpoint
- type ListenerStatus
- type Location
- type PayloadSchema
- type PrefixItem
- type Tezos
- func (t *Tezos) AddContractListener(ctx context.Context, listener *core.ContractListener, _ string) (err error)
- func (t *Tezos) AddFireflySubscription(ctx context.Context, namespace *core.Namespace, ...) (string, error)
- func (t *Tezos) Capabilities() *blockchain.Capabilities
- func (t *Tezos) CheckOverlappingLocations(ctx context.Context, left *fftypes.JSONAny, right *fftypes.JSONAny) (bool, error)
- func (t *Tezos) DeleteContractListener(ctx context.Context, subscription *core.ContractListener, okNotFound bool) error
- func (t *Tezos) DeployContract(ctx context.Context, nsOpID, signingKey string, ...) (submissionRejected bool, err error)
- func (t *Tezos) GenerateErrorSignature(ctx context.Context, event *fftypes.FFIErrorDefinition) string
- func (t *Tezos) GenerateEventSignature(ctx context.Context, event *fftypes.FFIEventDefinition) (string, error)
- func (t *Tezos) GenerateEventSignatureWithLocation(ctx context.Context, event *fftypes.FFIEventDefinition, ...) (string, error)
- func (t *Tezos) GenerateFFI(ctx context.Context, generationRequest *fftypes.FFIGenerationRequest) (*fftypes.FFI, error)
- func (t *Tezos) GetAndConvertDeprecatedContractConfig(ctx context.Context) (location *fftypes.JSONAny, fromBlock string, err error)
- func (t *Tezos) GetContractListenerStatus(ctx context.Context, namespace, subID string, okNotFound bool) (found bool, detail interface{}, status core.ContractListenerStatus, err error)
- func (t *Tezos) GetFFIParamValidator(ctx context.Context) (fftypes.FFIParamValidator, error)
- func (t *Tezos) GetNetworkVersion(ctx context.Context, location *fftypes.JSONAny) (version int, err error)
- func (t *Tezos) GetTransactionStatus(ctx context.Context, operation *core.Operation) (interface{}, error)
- func (t *Tezos) Init(ctx context.Context, cancelCtx context.CancelFunc, conf config.Section, ...) (err error)
- func (t *Tezos) InitConfig(config config.Section)
- func (t *Tezos) InvokeContract(ctx context.Context, nsOpID string, signingKey string, ...) (bool, error)
- func (t *Tezos) Name() string
- func (t *Tezos) NormalizeContractLocation(ctx context.Context, ntype blockchain.NormalizeType, location *fftypes.JSONAny) (result *fftypes.JSONAny, err error)
- func (t *Tezos) ParseInterface(ctx context.Context, method *fftypes.FFIMethod, errors []*fftypes.FFIError) (interface{}, error)
- func (t *Tezos) QueryContract(ctx context.Context, signingKey string, location *fftypes.JSONAny, ...) (interface{}, error)
- func (t *Tezos) RemoveFireflySubscription(ctx context.Context, subID string)
- func (t *Tezos) ResolveSigningKey(ctx context.Context, key string, intent blockchain.ResolveKeyIntent) (resolved string, err error)
- func (t *Tezos) SetHandler(namespace string, handler blockchain.Callbacks)
- func (t *Tezos) SetOperationHandler(namespace string, handler core.OperationCallbacks)
- func (t *Tezos) Start() (err error)
- func (t *Tezos) StartNamespace(ctx context.Context, namespace string) (err error)
- func (t *Tezos) StopNamespace(ctx context.Context, namespace string) (err error)
- func (t *Tezos) StringifyContractLocation(ctx context.Context, location *fftypes.JSONAny) (string, error)
- func (t *Tezos) SubmitBatchPin(ctx context.Context, nsOpID, networkNamespace, signingKey string, ...) error
- func (t *Tezos) SubmitNetworkAction(ctx context.Context, nsOpID string, signingKey string, ...) error
- func (t *Tezos) ValidateInvokeRequest(ctx context.Context, parsedMethod interface{}, input map[string]interface{}, ...) error
- func (t *Tezos) VerifierType() core.VerifierType
- type TezosconnectMessageHeaders
Constants ¶
View Source
const ( // TezosconnectConfigKey is a sub-key in the config to contain all the tezosconnect specific config TezosconnectConfigKey = "tezosconnect" // TezosconnectConfigTopic is the websocket listen topic that the node should register on, which is important if there are multiple // nodes using a single tezosconnect TezosconnectConfigTopic = "topic" // TezosconnectConfigBatchSize is the batch size to configure on event streams, when auto-defining them TezosconnectConfigBatchSize = "batchSize" // TezosconnectConfigBatchTimeout is the batch timeout to configure on event streams, when auto-defining them TezosconnectConfigBatchTimeout = "batchTimeout" // TezosconnectPrefixShort is used in the query string in requests to tezosconnect TezosconnectPrefixShort = "prefixShort" // TezosconnectPrefixLong is used in HTTP headers in requests to tezosconnect TezosconnectPrefixLong = "prefixLong" // TezosconnectBackgroundStart is used to not fail the tezos plugin on init and retry to start it in the background TezosconnectBackgroundStart = "backgroundStart.enabled" // TezosconnectBackgroundStartInitialDelay is delay between restarts in the case where we retry to restart in the tezos plugin TezosconnectBackgroundStartInitialDelay = "backgroundStart.initialDelay" // TezosconnectBackgroundStartMaxDelay is the max delay between restarts in the case where we retry to restart in the tezos plugin TezosconnectBackgroundStartMaxDelay = "backgroundStart.maxDelay" // TezosconnectBackgroundStartFactor is to set the factor by which the delay increases when retrying TezosconnectBackgroundStartFactor = "backgroundStart.factor" // AddressResolverConfigKey is a sub-key in the config to contain an address resolver config. AddressResolverConfigKey = "addressResolver" // AddressResolverAlwaysResolve causes the address resolve to be invoked on every API call that resolves an address and disables any caching AddressResolverAlwaysResolve = "alwaysResolve" // AddressResolverRetainOriginal when true the original pre-resolved string is retained after the lookup, and passed down to Tezosconnect as the from address AddressResolverRetainOriginal = "retainOriginal" // AddressResolverMethod the HTTP method to use to call the address resolver (default GET) AddressResolverMethod = "method" // AddressResolverURLTemplate the URL go template string to use when calling the address resolver - a ".intent" string can be used in the go template AddressResolverURLTemplate = "urlTemplate" // AddressResolverBodyTemplate the body go template string to use when calling the address resolver - a ".intent" string can be used in the go template AddressResolverBodyTemplate = "bodyTemplate" // AddressResolverResponseField the name of a JSON field that is provided in the response, that contains the tezos address (default "address") AddressResolverResponseField = "responseField" // FFTMConfigKey is a sub-key in the config that optionally contains FireFly transaction connection information FFTMConfigKey = "fftm" )
View Source
const ( ReceiptTransactionSuccess string = "TransactionSuccess" ReceiptTransactionFailed string = "TransactionFailed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListenerCheckpoint ¶
type ListenerStatus ¶
type ListenerStatus struct { Checkpoint ListenerCheckpoint `json:"checkpoint"` Catchup bool `json:"catchup"` }
type PayloadSchema ¶
type PayloadSchema struct { Type string `json:"type"` PrefixItems []*PrefixItem `json:"prefixItems"` }
type PrefixItem ¶
type Tezos ¶
type Tezos struct {
// contains filtered or unexported fields
}
func (*Tezos) AddContractListener ¶
func (*Tezos) AddFireflySubscription ¶
func (t *Tezos) AddFireflySubscription(ctx context.Context, namespace *core.Namespace, contract *blockchain.MultipartyContract, _ string, ) (string, error)
func (*Tezos) Capabilities ¶
func (t *Tezos) Capabilities() *blockchain.Capabilities
func (*Tezos) CheckOverlappingLocations ¶ added in v1.3.1
func (*Tezos) DeleteContractListener ¶
func (*Tezos) DeployContract ¶
func (*Tezos) GenerateErrorSignature ¶
func (*Tezos) GenerateEventSignature ¶
func (*Tezos) GenerateEventSignatureWithLocation ¶ added in v1.3.1
func (*Tezos) GenerateFFI ¶
func (*Tezos) GetAndConvertDeprecatedContractConfig ¶
func (*Tezos) GetContractListenerStatus ¶
func (t *Tezos) GetContractListenerStatus(ctx context.Context, namespace, subID string, okNotFound bool) (found bool, detail interface{}, status core.ContractListenerStatus, err error)
Note: In state of development. Approach can be changed.
func (*Tezos) GetFFIParamValidator ¶
func (*Tezos) GetNetworkVersion ¶
func (*Tezos) GetTransactionStatus ¶
func (*Tezos) InitConfig ¶
func (*Tezos) InvokeContract ¶
func (*Tezos) NormalizeContractLocation ¶
func (t *Tezos) NormalizeContractLocation(ctx context.Context, ntype blockchain.NormalizeType, location *fftypes.JSONAny) (result *fftypes.JSONAny, err error)
func (*Tezos) ParseInterface ¶
func (*Tezos) QueryContract ¶
func (*Tezos) RemoveFireflySubscription ¶
func (*Tezos) ResolveSigningKey ¶
func (t *Tezos) ResolveSigningKey(ctx context.Context, key string, intent blockchain.ResolveKeyIntent) (resolved string, err error)
func (*Tezos) SetHandler ¶
func (t *Tezos) SetHandler(namespace string, handler blockchain.Callbacks)
func (*Tezos) SetOperationHandler ¶
func (t *Tezos) SetOperationHandler(namespace string, handler core.OperationCallbacks)
func (*Tezos) StartNamespace ¶
func (*Tezos) StopNamespace ¶
func (*Tezos) StringifyContractLocation ¶ added in v1.3.1
func (*Tezos) SubmitBatchPin ¶
func (*Tezos) SubmitNetworkAction ¶
func (*Tezos) ValidateInvokeRequest ¶
func (*Tezos) VerifierType ¶
func (t *Tezos) VerifierType() core.VerifierType
Click to show internal directories.
Click to hide internal directories.