shared

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HRP   string
	Asset string
)
View Source
var (
	Ap5ActivationTime uint64
)

Functions

func GetSyncStatus

func GetSyncStatus(indexClient *client.IndexClient, db *store.DB, containerType string, chain string) (*model.SyncStatus, error)

func PrepareInput

func PrepareInput(input *avax.TransferableInput, idx int, txID ids.ID) (model.Output, error)

func PrepareInputs

func PrepareInputs(inputs []*avax.TransferableInput, txID ids.ID) ([]model.Output, error)

func PrepareOutput

func PrepareOutput(output verify.State, asset string, idx int, txID ids.ID) (*model.Output, error)

func PrepareOutputs

func PrepareOutputs(outputs []*avax.TransferableOutput, txID ids.ID) ([]model.Output, error)

func PrepareRewardsOwner

func PrepareRewardsOwner(txID ids.ID, outputsCount int, owner verify.Verifiable) (*model.RewardsOwner, error)

func PrepareTxCredentials

func PrepareTxCredentials(verifiables []verify.Verifiable, unsignedBytes []byte) ([]model.Credential, error)

func ProcessContainerRange

func ProcessContainerRange(
	status *model.SyncStatus,
	indexClient *client.IndexClient,
	db *store.DB,
	containerType string,
	batchSize int,
	handlerFn func(*model.RawMessage) error,
) error

func SetAp5ActivationTime added in v0.9.0

func SetAp5ActivationTime(t time.Time)

func SetAvaxAssetID

func SetAvaxAssetID(id string)

func SetBech32HRP

func SetBech32HRP(network uint32)

Types

This section is empty.

Jump to

Keyboard shortcuts

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