Documentation
¶
Index ¶
- func GetDBID(contractInfo ContractInfo) string
- func InsertMarkdownPrimitiveData(ctx context.Context, input InsertMarkdownDataInput) error
- func SetupAndInitializeContract(ctx context.Context, platform *kwilTesting.Platform, contractInfo ContractInfo) error
- func SetupComposedFromMarkdown(ctx context.Context, input MarkdownComposedSetupInput) error
- func SetupComposedStream(ctx context.Context, input SetupComposedStreamInput) error
- func SetupPrimitiveFromMarkdown(ctx context.Context, input MarkdownPrimitiveSetupInput) error
- type ComposedStreamDefinition
- type ContractInfo
- type ContractType
- type InitializeContractInput
- type InsertMarkdownDataInput
- type InsertPrimitiveDataInput
- type InsertRecordInput
- type MarkdownComposedSetupInput
- type MarkdownPrimitiveSetupInput
- type PrimitiveStreamDefinition
- type PrimitiveStreamWithData
- type SetTaxonomyInput
- type SetupComposedAndPrimitivesInput
- type SetupComposedStreamInput
- type SetupPrimitiveInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDBID ¶ added in v1.2.2
func GetDBID(contractInfo ContractInfo) string
GetDBID generates a DBID from contract info
func InsertMarkdownPrimitiveData ¶
func InsertMarkdownPrimitiveData(ctx context.Context, input InsertMarkdownDataInput) error
InsertMarkdownPrimitiveData inserts data from a markdown table into a primitive stream
func SetupAndInitializeContract ¶ added in v1.2.2
func SetupAndInitializeContract(ctx context.Context, platform *kwilTesting.Platform, contractInfo ContractInfo) error
SetupAndInitializeContract sets up and initializes a contract for testing.
func SetupComposedFromMarkdown ¶
func SetupComposedFromMarkdown(ctx context.Context, input MarkdownComposedSetupInput) error
func SetupComposedStream ¶ added in v1.2.2
func SetupComposedStream(ctx context.Context, input SetupComposedStreamInput) error
SetupComposedStream sets up a composed stream
func SetupPrimitiveFromMarkdown ¶
func SetupPrimitiveFromMarkdown(ctx context.Context, input MarkdownPrimitiveSetupInput) error
Types ¶
type ComposedStreamDefinition ¶
type ComposedStreamDefinition struct {
StreamLocator types.StreamLocator
TaxonomyDefinitions types.Taxonomy
}
type ContractInfo ¶ added in v1.2.2
type ContractInfo struct {
Name string
StreamID util.StreamId
Deployer util.EthereumAddress
Content []byte
Type ContractType
}
type ContractType ¶ added in v1.2.2
type ContractType string
const ( ContractTypePrimitive ContractType = "primitive" ContractTypeComposed ContractType = "composed" )
type InitializeContractInput ¶
type InitializeContractInput struct {
Platform *kwilTesting.Platform
Deployer util.EthereumAddress
Dbid string
Height int64
}
type InsertMarkdownDataInput ¶
type InsertMarkdownDataInput struct {
Platform *kwilTesting.Platform
Height int64
// we use locator instead because it could be a third party data provider
StreamLocator types.StreamLocator
MarkdownData string
}
type InsertPrimitiveDataInput ¶
type InsertPrimitiveDataInput struct {
Platform *kwilTesting.Platform
// contains filtered or unexported fields
}
type InsertRecordInput ¶
type PrimitiveStreamDefinition ¶
type PrimitiveStreamDefinition struct {
StreamLocator types.StreamLocator
}
type PrimitiveStreamWithData ¶
type PrimitiveStreamWithData struct {
PrimitiveStreamDefinition
Data []InsertRecordInput
}
type SetTaxonomyInput ¶
type SetTaxonomyInput struct {
Platform *kwilTesting.Platform
// contains filtered or unexported fields
}
type SetupComposedAndPrimitivesInput ¶
type SetupComposedAndPrimitivesInput struct {
ComposedStreamDefinition ComposedStreamDefinition
PrimitiveStreamsWithData []PrimitiveStreamWithData
Platform *kwilTesting.Platform
Height int64
}
type SetupComposedStreamInput ¶ added in v1.2.2
type SetupComposedStreamInput struct {
Platform *kwilTesting.Platform
StreamId util.StreamId
Height int64
}
type SetupPrimitiveInput ¶
type SetupPrimitiveInput struct {
Platform *kwilTesting.Platform
Height int64
PrimitiveStreamWithData PrimitiveStreamWithData
}
Click to show internal directories.
Click to hide internal directories.