cardano

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CardanoconnectConfigKey is a sub-key in the config to contain all the cardanoconnect specific config
	CardanoconnectConfigKey = "cardanoconnect"
	// CardanoconnectConfigTopic is the websocket listen topic that the node should register on, which is important if there are multiple
	// nodes using a single cardanoconnect
	CardanoconnectConfigTopic = "topic"
	// CardanoconnectConfigBatchSize is the batch size to configure on event streams, when auto-defining them
	CardanoconnectConfigBatchSize = "batchSize"
	// CardanoconnectConfigBatchTimeout is the batch timeout to configure on event streams, when auto-defining them
	CardanoconnectConfigBatchTimeout = "batchTimeout"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cardano

type Cardano struct {
	// contains filtered or unexported fields
}

func (*Cardano) AddContractListener

func (c *Cardano) AddContractListener(ctx context.Context, listener *core.ContractListener, lastProtocolID string) (err error)

func (*Cardano) AddFireflySubscription

func (c *Cardano) AddFireflySubscription(ctx context.Context, namespace *core.Namespace, contract *blockchain.MultipartyContract, lastProtocolID string) (string, error)

func (*Cardano) Capabilities

func (c *Cardano) Capabilities() *blockchain.Capabilities

func (*Cardano) CheckOverlappingLocations

func (c *Cardano) CheckOverlappingLocations(ctx context.Context, left *fftypes.JSONAny, right *fftypes.JSONAny) (bool, error)

func (*Cardano) DeleteContractListener

func (c *Cardano) DeleteContractListener(ctx context.Context, subscription *core.ContractListener, okNotFound bool) error

func (*Cardano) DeployContract

func (c *Cardano) DeployContract(ctx context.Context, nsOpID, signingKey string, definition, contract *fftypes.JSONAny, input []interface{}, options map[string]interface{}) (submissionRejected bool, err error)

func (*Cardano) GenerateErrorSignature

func (c *Cardano) GenerateErrorSignature(ctx context.Context, event *fftypes.FFIErrorDefinition) string

func (*Cardano) GenerateEventSignature

func (c *Cardano) GenerateEventSignature(ctx context.Context, event *fftypes.FFIEventDefinition) (string, error)

func (*Cardano) GenerateEventSignatureWithLocation

func (c *Cardano) GenerateEventSignatureWithLocation(ctx context.Context, event *fftypes.FFIEventDefinition, location *fftypes.JSONAny) (string, error)

func (*Cardano) GenerateFFI

func (c *Cardano) GenerateFFI(ctx context.Context, generationRequest *fftypes.FFIGenerationRequest) (*fftypes.FFI, error)

func (*Cardano) GetAndConvertDeprecatedContractConfig

func (c *Cardano) GetAndConvertDeprecatedContractConfig(ctx context.Context) (location *fftypes.JSONAny, fromBlock string, err error)

func (*Cardano) GetContractListenerStatus

func (c *Cardano) GetContractListenerStatus(ctx context.Context, namespace, subID string, okNotFound bool) (found bool, detail interface{}, status core.ContractListenerStatus, err error)

func (*Cardano) GetFFIParamValidator

func (c *Cardano) GetFFIParamValidator(ctx context.Context) (fftypes.FFIParamValidator, error)

func (*Cardano) GetNetworkVersion

func (c *Cardano) GetNetworkVersion(ctx context.Context, location *fftypes.JSONAny) (version int, err error)

func (*Cardano) GetTransactionStatus

func (c *Cardano) GetTransactionStatus(ctx context.Context, operation *core.Operation) (interface{}, error)

func (*Cardano) Init

func (c *Cardano) Init(ctx context.Context, cancelCtx context.CancelFunc, conf config.Section, metrics metrics.Manager, cacheManager cache.Manager) (err error)

func (*Cardano) InitConfig

func (c *Cardano) InitConfig(config config.Section)

func (*Cardano) InvokeContract

func (c *Cardano) InvokeContract(ctx context.Context, nsOpID string, signingKey string, location *fftypes.JSONAny, parsedMethod interface{}, input map[string]interface{}, options map[string]interface{}, batch *blockchain.BatchPin) (bool, error)

func (*Cardano) Name

func (c *Cardano) Name() string

func (*Cardano) NormalizeContractLocation

func (c *Cardano) NormalizeContractLocation(ctx context.Context, ntype blockchain.NormalizeType, location *fftypes.JSONAny) (result *fftypes.JSONAny, err error)

func (*Cardano) ParseInterface

func (c *Cardano) ParseInterface(ctx context.Context, method *fftypes.FFIMethod, errors []*fftypes.FFIError) (interface{}, error)

func (*Cardano) QueryContract

func (c *Cardano) QueryContract(ctx context.Context, signingKey string, location *fftypes.JSONAny, parsedMethod interface{}, input map[string]interface{}, options map[string]interface{}) (interface{}, error)

func (*Cardano) RemoveFireflySubscription

func (c *Cardano) RemoveFireflySubscription(ctx context.Context, subID string)

func (*Cardano) ResolveSigningKey

func (c *Cardano) ResolveSigningKey(ctx context.Context, key string, intent blockchain.ResolveKeyIntent) (resolved string, err error)

func (*Cardano) SetHandler

func (c *Cardano) SetHandler(namespace string, handler blockchain.Callbacks)

func (*Cardano) SetOperationHandler

func (c *Cardano) SetOperationHandler(namespace string, handler core.OperationCallbacks)

func (*Cardano) StartNamespace

func (c *Cardano) StartNamespace(ctx context.Context, namespace string) (err error)

func (*Cardano) StopNamespace

func (c *Cardano) StopNamespace(ctx context.Context, namespace string) (err error)

func (*Cardano) SubmitBatchPin

func (c *Cardano) SubmitBatchPin(ctx context.Context, nsOpID, networkNamespace, signingKey string, batch *blockchain.BatchPin, location *fftypes.JSONAny) error

func (*Cardano) SubmitNetworkAction

func (c *Cardano) SubmitNetworkAction(ctx context.Context, nsOpID string, signingKey string, action core.NetworkActionType, location *fftypes.JSONAny) error

func (*Cardano) ValidateInvokeRequest

func (c *Cardano) ValidateInvokeRequest(ctx context.Context, parsedMethod interface{}, input map[string]interface{}, hasMessage bool) error

func (*Cardano) VerifierType

func (c *Cardano) VerifierType() core.VerifierType

type Location

type Location struct {
	Address string `json:"address"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL