warp

package
v0.1.271 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 16 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TagSequencer               = "Sequencer"
	TagSequencerOwner          = "Sequencer-Owner"
	TagSequencerMillis         = "Sequencer-Mills"
	TagSequencerSortKey        = "Sequencer-Sort-Key"
	TagSequencerLastSortKey    = "Sequencer-Last-Sort-Key"
	TagSequencerTxId           = "Sequencer-Tx-Id"
	TagSequencerBlockHeight    = "Sequencer-Block-Height"
	TagSequencerBlockId        = "Sequencer-Block-Id"
	TagSequencerBlockTimestamp = "Sequencer-Block-Timestamp"
	TagSequencerNonce          = "Sequencer-Nonce"
	TagInitState               = "Init-State"
	TagInitStateTx             = "Init-State-TX"
	TagInteractWrite           = "Interact-Write"
	TagWasmLang                = "Wasm-Lang"
	TagWasmLangVersion         = "Wasm-Lang-Version"
	TagWasmMeta                = "Wasm-Meta"
	TagRequestVrf              = "Request-Vrf"
	TagSignatureType           = "Signature-Type"
	TagWarpTestnet             = "Warp-Testnet"
	TagManifest                = "Contract-Manifest"
	TagNonce                   = "Nonce"
)

Variables

This section is empty.

Functions

func GetWalletAddress

func GetWalletAddress(tx *arweave.Transaction) (owner string, err error)

func ValidateTag

func ValidateTag(tag *arweave.Tag) (err error)

Types

type InteractionParser

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

func NewInteractionParser

func NewInteractionParser(config *config.Config) (self *InteractionParser, err error)

func (*InteractionParser) Parse

func (self *InteractionParser) Parse(tx *arweave.Transaction, blockHeight int64, blockId arweave.Base64String, blockTimestamp int64) (out *model.Interaction, err error)

type PstInitState

type PstInitState struct {
	Ticker   *string      `json:"ticker"`
	Name     *string      `json:"name"`
	Balances *interface{} `json:"balances"`
}

func ParsePstInitState

func ParsePstInitState(buf []byte) (out *PstInitState, err error)

func (*PstInitState) IsPst

func (self *PstInitState) IsPst() bool

type Validator

type Validator func(arweave.Base64String) error

Jump to

Keyboard shortcuts

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