procedure

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckComposePermissions added in v1.2.2

func CheckComposePermissions(ctx context.Context, input CheckComposePermissionsInput) (bool, error)

CheckComposePermissions checks if a stream is allowed to compose from another stream

func CheckReadPermissions added in v1.2.2

func CheckReadPermissions(ctx context.Context, input CheckReadPermissionsInput) (bool, error)

CheckReadPermissions checks if a wallet is allowed to read from a contract

func CheckWritePermissions added in v1.2.2

func CheckWritePermissions(ctx context.Context, input CheckWritePermissionsInput) (bool, error)

CheckWritePermissions checks if a wallet is allowed to write to a contract

func DisableMetadata added in v1.2.2

func DisableMetadata(ctx context.Context, input DisableMetadataInput) error

DisableMetadata disables metadata in a contract

func GetMetadata added in v1.2.2

func GetMetadata(ctx context.Context, input GetMetadataInput) ([]any, error)

GetMetadata retrieves metadata from a contract

func InsertMetadata added in v1.2.2

func InsertMetadata(ctx context.Context, input InsertMetadataInput) error

InsertMetadata inserts metadata into a contract

func SetMetadata added in v1.2.2

func SetMetadata(ctx context.Context, input SetMetadataInput) error

func SetTaxonomy added in v1.2.2

func SetTaxonomy(ctx context.Context, input SetTaxonomyInput) error

SetTaxonomy sets the taxonomy for a composed stream with optional start date

func TransferStreamOwnership added in v1.2.2

func TransferStreamOwnership(ctx context.Context, input TransferStreamOwnershipInput) error

TransferStreamOwnership transfers ownership of a stream to a new owner

func WithSigner

func WithSigner(platform *kwilTesting.Platform, signer []byte) *kwilTesting.Platform

WithSigner returns a new platform with the given signer, but doesn't mutate the original platform

Types

type CheckComposePermissionsInput added in v1.2.2

type CheckComposePermissionsInput struct {
	Platform      *kwilTesting.Platform
	DBID          string
	ForeignCaller string
}

type CheckReadPermissionsInput added in v1.2.2

type CheckReadPermissionsInput struct {
	Platform *kwilTesting.Platform
	Deployer util.EthereumAddress
	DBID     string
	Wallet   string
}

type CheckWritePermissionsInput added in v1.2.2

type CheckWritePermissionsInput struct {
	Platform *kwilTesting.Platform
	Deployer util.EthereumAddress
	DBID     string
	Wallet   string
}

type DescribeTaxonomiesInput

type DescribeTaxonomiesInput struct {
	Platform      *kwilTesting.Platform
	DBID          string
	LatestVersion bool
}

type DisableMetadataInput added in v1.2.2

type DisableMetadataInput struct {
	Platform *kwilTesting.Platform
	Deployer util.EthereumAddress
	DBID     string
	RowID    *types.UUID
}

type GetFirstRecordInput

type GetFirstRecordInput struct {
	Platform  *kwilTesting.Platform
	DBID      string
	AfterDate *string
	FrozenAt  int64
	Height    int64
}

type GetIndexChangeInput

type GetIndexChangeInput struct {
	Platform *kwilTesting.Platform
	DBID     string
	DateFrom string
	DateTo   string
	FrozenAt int64
	Height   int64
	BaseDate string
	Interval int
}

type GetIndexInput

type GetIndexInput struct {
	Platform *kwilTesting.Platform
	DBID     string
	DateFrom string
	DateTo   string
	FrozenAt int64
	Height   int64
	BaseDate string
}

type GetMetadataInput added in v1.2.2

type GetMetadataInput struct {
	Platform *kwilTesting.Platform
	Deployer util.EthereumAddress
	DBID     string
	Key      string
}

type GetRecordInput

type GetRecordInput struct {
	Platform *kwilTesting.Platform
	DBID     string
	DateFrom string
	DateTo   string
	FrozenAt int64
	Height   int64
}

type InsertMetadataInput added in v1.2.2

type InsertMetadataInput struct {
	Platform *kwilTesting.Platform
	Deployer util.EthereumAddress
	DBID     string
	Key      string
	Value    string
	ValType  string
}

type ResultRow

type ResultRow []string

func DescribeTaxonomies

func DescribeTaxonomies(ctx context.Context, input DescribeTaxonomiesInput) ([]ResultRow, error)

DescribeTaxonomies is a helper function to describe taxonomies of a composed stream

func GetFirstRecord

func GetFirstRecord(ctx context.Context, input GetFirstRecordInput) ([]ResultRow, error)

func GetIndex

func GetIndex(ctx context.Context, input GetIndexInput) ([]ResultRow, error)

func GetIndexChange

func GetIndexChange(ctx context.Context, input GetIndexChangeInput) ([]ResultRow, error)

func GetRecord

func GetRecord(ctx context.Context, input GetRecordInput) ([]ResultRow, error)

type SetMetadataInput added in v1.2.2

type SetMetadataInput struct {
	Platform *kwilTesting.Platform
	DBID     string
	Key      string
	Value    string
	ValType  string
	Height   int64
}

type SetTaxonomyInput added in v1.2.2

type SetTaxonomyInput struct {
	Platform      *kwilTesting.Platform
	DBID          string
	DataProviders []string
	StreamIds     []string
	Weights       []string
	StartDate     string // Optional start date for taxonomy validity
}

type TransferStreamOwnershipInput added in v1.2.2

type TransferStreamOwnershipInput struct {
	Platform *kwilTesting.Platform
	Deployer util.EthereumAddress
	DBID     string
	NewOwner string
}

Jump to

Keyboard shortcuts

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