actcapture

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityCaptureContract

type ActivityCaptureContract interface {
	GetContractAddress() string
	GetCommit() (*Commit, error)
	SetCommit(ctx context.Context, hash []byte, gas, from, to uint64) (string, error)
	GetEraSettings() (*EraConfig, error)
}

func CreateActivityCaptureContract

func CreateActivityCaptureContract(client pkg.BlockchainClient, contractAddressSS58 string, secret string) ActivityCaptureContract

type Commit

type Commit struct {
	Hash types.Hash
	Gas  types.U128
	From types.U64 //nanoseconds
	To   types.U64 //nanoseconds
}

type EraConfig

type EraConfig struct {
	Start              types.U64 // milliseconds
	Interval           types.U64 // milliseconds
	CommitDeadline     types.U64 // milliseconds
	ValidationDeadline types.U64 // milliseconds
}

Jump to

Keyboard shortcuts

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