data

package
v1.1.4-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data interface {
	GetContent() operation.ContentData
}

Data defines the certain operation that should be signed and produced by our bridge

type FeeTokenData

type FeeTokenData struct {
	OpType rarimotypes.FeeTokenManagementType
	// Fee token address
	Address []byte
	// Memory representation of amount integer as a byte array in big-endian (with leading zeros if needed)
	// Use binary.BigEndian.PutUint64(amount, c.Amount)
	Amount []byte
}

FeeTokenData defines the fee token management operation

func (FeeTokenData) GetContent

func (f FeeTokenData) GetContent() operation.ContentData

type FeeTokenDataBuilder

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

func NewFeeTokenDataBuilder

func NewFeeTokenDataBuilder() *FeeTokenDataBuilder

func (*FeeTokenDataBuilder) Build

func (b *FeeTokenDataBuilder) Build() *FeeTokenData

func (*FeeTokenDataBuilder) SetAddress

func (b *FeeTokenDataBuilder) SetAddress(addr string) *FeeTokenDataBuilder

func (*FeeTokenDataBuilder) SetAmount

func (b *FeeTokenDataBuilder) SetAmount(amount string) *FeeTokenDataBuilder

func (*FeeTokenDataBuilder) SetNetworkType

func (*FeeTokenDataBuilder) SetOpType

type TransferData

type TransferData struct {

	// Collection address on target chain
	TargetAddress []byte
	// TokenId on target chain
	TargetId []byte
	// Memory representation of amount integer as a byte array in big-endian (with leading zeros if needed)
	// Use binary.BigEndian.PutUint64(amount, c.Amount)
	Amount []byte
	// Target metadata information !!OPTIONAL!!
	TargetName     string
	TargetSymbol   string
	TargetURI      string
	ImageURI       string
	ImageHash      []byte
	TargetDecimals []byte
	// contains filtered or unexported fields
}

TransferData defines the token transfer operation - from one network to another with full token metadata

func (TransferData) GetContent

func (t TransferData) GetContent() operation.ContentData

type TransferDataBuilder

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

func NewTransferDataBuilder

func NewTransferDataBuilder() *TransferDataBuilder

func (*TransferDataBuilder) Build

func (b *TransferDataBuilder) Build() *TransferData

func (*TransferDataBuilder) SetAddress

func (b *TransferDataBuilder) SetAddress(addr string) *TransferDataBuilder

func (*TransferDataBuilder) SetAmount

func (b *TransferDataBuilder) SetAmount(amount string) *TransferDataBuilder

func (*TransferDataBuilder) SetDecimals

func (b *TransferDataBuilder) SetDecimals(d uint8) *TransferDataBuilder

func (*TransferDataBuilder) SetId

func (*TransferDataBuilder) SetImageHash

func (b *TransferDataBuilder) SetImageHash(hash string) *TransferDataBuilder

func (*TransferDataBuilder) SetImageURI

func (b *TransferDataBuilder) SetImageURI(uri string) *TransferDataBuilder

func (*TransferDataBuilder) SetName

func (*TransferDataBuilder) SetNetworkType

func (b *TransferDataBuilder) SetNetworkType(networkType tokentypes.NetworkType) *TransferDataBuilder

func (*TransferDataBuilder) SetSymbol

func (b *TransferDataBuilder) SetSymbol(symbol string) *TransferDataBuilder

func (*TransferDataBuilder) SetURI

Jump to

Keyboard shortcuts

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