Documentation ¶
Index ¶
- Constants
- Variables
- func AddTagToInteraction(out *model.Interaction, name, value string) error
- func CreateSortKey(transactionId []byte, blockHeight int64, blockId []byte) string
- func GetWalletAddress(tx *arweave.Transaction) (owner string, err error)
- func GetWalletAddressFromBundle(tx *bundlr.BundleItem) (owner string, err error)
- func SetContractSource(src bytes.Buffer, srcTx *arweave.Transaction, out *model.ContractSource) (err error)
- func SetContractSourceMetadata(sourceTx *arweave.Transaction, out *model.ContractSource) (err error)
- func ValidateTag(tag *arweave.Tag) (err error)
- func ValidateTags(tags []arweave.Tag) (err error)
- type DataItemParser
- type InteractionParser
- type PstInitState
- type Validator
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 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 ValidateTags ¶ added in v0.2.81
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
Click to show internal directories.
Click to hide internal directories.