factom

package
v1.0.0-rc1.1-beta2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOCAL_URL = "http://127.0.1.1:26660"
)

Variables

This section is empty.

Functions

func AccountFromPrivateKey

func AccountFromPrivateKey(privateKey []byte) (*url.URL, error)

func ConvertFactomDataEntryToLiteDataEntry

func ConvertFactomDataEntryToLiteDataEntry(entry f2.Entry) *protocol.FactomDataEntry

func EntriesFromFactom

func EntriesFromFactom() []*f2.Entry

func ExecuteQueueToWriteData

func ExecuteQueueToWriteData(env string, chainUrl *url.URL, queue *Queue)

func FaucetWithCredits

func FaucetWithCredits(env string) error

FaucetWithCredits is only used for testing. Initial account will be prefunded.

func GetAccountFromPrivateString

func GetAccountFromPrivateString(hexString string) *url.URL

func GetDataAndPopulateQueue

func GetDataAndPopulateQueue(entries []*f2.Entry)

func WriteDataFromQueueToAccumulate

func WriteDataFromQueueToAccumulate(env string)

func WriteDataToAccumulate

func WriteDataToAccumulate(env string, data protocol.DataEntry, dataAccount *url.URL) error

Types

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue() *Queue

func (*Queue) Pop

func (q *Queue) Pop() interface{}

func (*Queue) Push

func (q *Queue) Push(x interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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