event

package
v0.1.0-test Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const EventTopicLength = 4

ExtOutLogBucket dst-address format is: [prefix..][topic:N bytes]

Example: Tolk provides the ExtOutLogBucket construct, which encodes a topic identifier within the address itself: Structure: '01' (addr_extern) + 256 (len) + 0x00 (prefix) + 248 bits topic = 267 bits total

While the topic space is large (248 bits), we have decided to use a 32-bit (4-byte) CRC32 checksum as the topic. We grab the last 4 bytes as the topic identifier.(crc32) https://github.com/ton-blockchain/intellij-ton/blob/2105f3cd39aafe164c9524079d6c73325e8f85e8/modules/tolk/testResources/org.ton.intellij.tolk/tolk-stdlib/common.tolk#L1093

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtOutLogBucket

type ExtOutLogBucket struct {
	Address *address.Address // source address that contains the encoded event topic.
}

func NewExtOutLogBucket

func NewExtOutLogBucket(addr *address.Address) *ExtOutLogBucket

func (*ExtOutLogBucket) DecodeEventTopic

func (b *ExtOutLogBucket) DecodeEventTopic() (uint32, error)

Jump to

Keyboard shortcuts

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