warp

package
v0.2.201 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 19 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

View Source
var (
	MAX_TRANSACTION_DATA_SIZE = 5242880
)

Functions

func AddTagToInteraction added in v0.2.25

func AddTagToInteraction(out *model.Interaction, name, value string) error

func CreateSortKey added in v0.2.19

func CreateSortKey(transactionId []byte, blockHeight int64, blockId []byte) string

func GetWalletAddress

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

func GetWalletAddressFromBundle added in v0.2.25

func GetWalletAddressFromBundle(tx *bundlr.BundleItem) (owner string, err error)

func SetContractSource added in v0.2.124

func SetContractSource(src bytes.Buffer, srcTx *arweave.Transaction, out *model.ContractSource) (err error)

func SetContractSourceMetadata added in v0.2.124

func SetContractSourceMetadata(sourceTx *arweave.Transaction, out *model.ContractSource) (err error)

func ValidateTag

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

func ValidateTags added in v0.2.81

func ValidateTags(tags []arweave.Tag) (err error)

Types

type DataItemParser added in v0.2.25

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

func NewDataItemParser added in v0.2.25

func NewDataItemParser(config *config.Config) (self *DataItemParser)

func (*DataItemParser) Parse added in v0.2.25

func (self *DataItemParser) Parse(tx *bundlr.BundleItem, blockHeight int64, blockId arweave.Base64String, blockTimestamp int64, sortKey, lastSortKey string, random arweave.Base64String, sequencerBlock *smartweave.SequencerBlock) (out *model.Interaction, err error)

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,
	randomValue arweave.Base64String,
	sortKey string,
	prevSortKey string,
	sequencerBlock *smartweave.SequencerBlock) (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