slp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTopics

func GetTopics() []db.Object

Types

type Baton

type Baton struct {
	TxHash    [32]byte
	Index     uint32
	TokenHash [32]byte
}

func GetBatons

func GetBatons(ctx context.Context, outs []memo.Out) ([]*Baton, error)

func (*Baton) Deserialize

func (o *Baton) Deserialize(data []byte)

func (*Baton) GetShardSource

func (o *Baton) GetShardSource() uint

func (*Baton) GetTopic

func (o *Baton) GetTopic() string

func (*Baton) GetUid

func (o *Baton) GetUid() []byte

func (*Baton) Serialize

func (o *Baton) Serialize() []byte

func (*Baton) SetUid

func (o *Baton) SetUid(uid []byte)

type Genesis

type Genesis struct {
	TxHash     [32]byte
	TokenType  uint8
	Decimals   uint8
	BatonIndex uint32
	Ticker     string
	Name       string
	DocUrl     string
	DocHash    [32]byte
}

func GetGeneses

func GetGeneses(ctx context.Context, txHashes [][32]byte) ([]*Genesis, error)

func (*Genesis) Deserialize

func (g *Genesis) Deserialize(data []byte)

func (*Genesis) GetShardSource

func (g *Genesis) GetShardSource() uint

func (*Genesis) GetTopic

func (g *Genesis) GetTopic() string

func (*Genesis) GetUid

func (g *Genesis) GetUid() []byte

func (*Genesis) Serialize

func (g *Genesis) Serialize() []byte

func (*Genesis) SetUid

func (g *Genesis) SetUid(uid []byte)

type Mint

type Mint struct {
	TxHash     [32]byte
	TokenHash  [32]byte
	BatonIndex uint32
	Quantity   uint64
}

func (*Mint) Deserialize

func (m *Mint) Deserialize(data []byte)

func (*Mint) GetShardSource

func (m *Mint) GetShardSource() uint

func (*Mint) GetTopic

func (m *Mint) GetTopic() string

func (*Mint) GetUid

func (m *Mint) GetUid() []byte

func (*Mint) Serialize

func (m *Mint) Serialize() []byte

func (*Mint) SetUid

func (m *Mint) SetUid(uid []byte)

type Output

type Output struct {
	TxHash    [32]byte
	Index     uint32
	TokenHash [32]byte
	Quantity  uint64
}

func GetOutputs

func GetOutputs(ctx context.Context, outs []memo.Out) ([]*Output, error)

func (*Output) Deserialize

func (o *Output) Deserialize(data []byte)

func (*Output) GetShardSource

func (o *Output) GetShardSource() uint

func (*Output) GetTopic

func (o *Output) GetTopic() string

func (*Output) GetUid

func (o *Output) GetUid() []byte

func (*Output) Serialize

func (o *Output) Serialize() []byte

func (*Output) SetUid

func (o *Output) SetUid(uid []byte)

type Send

type Send struct {
	TxHash    [32]byte
	TokenHash [32]byte
}

func (*Send) Deserialize

func (s *Send) Deserialize(data []byte)

func (*Send) GetShardSource

func (s *Send) GetShardSource() uint

func (*Send) GetTopic

func (s *Send) GetTopic() string

func (*Send) GetUid

func (s *Send) GetUid() []byte

func (*Send) Serialize

func (s *Send) Serialize() []byte

func (*Send) SetUid

func (s *Send) SetUid(uid []byte)

Jump to

Keyboard shortcuts

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