output

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type     Type           `json:"type"`
	Ethereum EthereumConfig `json:"ethereum"`
	Solana   SolanaConfig   `json:"solana"`
	Textile  TextileConfig  `json:"textile"`
}

type EthereumConfig added in v0.8.0

type EthereumConfig struct {
	ChainEndpoint   string `json:"chainEndpoint"`
	ContractAddress string `json:"contractAddress"`
	ReceiverAddress string `json:"receiverAddress,omitempty"`
	ContractMethod  string `json:"contractMethod"`
	ContractAbiJSON string `json:"contractAbiJSON"`
}

type Output added in v0.5.0

type Output interface {
	Output(task *types.Task, proof []byte) (string, error)
}

func New added in v0.8.0

func New(conf *Config, privateKeyECDSA, privateKeyED25519 string) (Output, error)

type SolanaConfig added in v0.8.0

type SolanaConfig struct {
	ChainEndpoint  string `json:"chainEndpoint"`
	ProgramID      string `json:"programID"`
	StateAccountPK string `json:"stateAccountPK"`
}

type TextileConfig added in v0.8.0

type TextileConfig struct {
	VaultID string `json:"vaultID"`
}

type Type

type Type string
const (
	Stdout           Type = "stdout"
	EthereumContract Type = "ethereumContract"
	SolanaProgram    Type = "solanaProgram"
	Textile          Type = "textile"
)

Jump to

Keyboard shortcuts

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