arweave

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSource

func NewSource(config *config.Module, sourceFilter engine.SourceFilter, checkpoint *engine.Checkpoint) (engine.Source, error)

NewSource creates a new arweave source.

Types

type Filter

type Filter struct {
	OwnerAddresses []string `yaml:"owner_addresses"`
}

type Option

type Option struct {
	BlockHeightStart  *big.Int `yaml:"block_height_start"`
	BlockHeightTarget *big.Int `yaml:"block_height_target"`
	RPCThreadBlocks   uint64   `yaml:"rpc_thread_blocks"`
}

func NewOption

func NewOption(options *config.Options) (*Option, error)

type State

type State struct {
	BlockHeight uint64 `json:"block_height"`
}

type Task

type Task struct {
	Network     filter.Network
	Block       arweave.Block
	Transaction arweave.Transaction
}

func (Task) BuildFeed

func (t Task) BuildFeed(options ...schema.FeedOption) (*schema.Feed, error)

BuildFeed builds a feed from the task.

func (Task) GetNetwork

func (t Task) GetNetwork() filter.Network

func (Task) GetTimestamp

func (t Task) GetTimestamp() uint64

func (Task) ID

func (t Task) ID() string

func (Task) Validate

func (t Task) Validate() error

Jump to

Keyboard shortcuts

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