origin

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultOrigin

type DefaultOrigin struct {
	TxHash         string
	OperationId    string
	CurrentNetwork string
}

func (DefaultOrigin) GetOrigin

func (d DefaultOrigin) GetOrigin() (res xcrypto.OriginData)

type DefaultOriginBuilder

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

func NewDefaultOriginBuilder

func NewDefaultOriginBuilder() *DefaultOriginBuilder

func (*DefaultOriginBuilder) Build

func (b *DefaultOriginBuilder) Build() *DefaultOrigin

func (*DefaultOriginBuilder) SetCurrentNetwork

func (b *DefaultOriginBuilder) SetCurrentNetwork(network string) *DefaultOriginBuilder

func (*DefaultOriginBuilder) SetOpId

func (*DefaultOriginBuilder) SetTxHash

type Origin

type Origin interface {
	GetOrigin() xcrypto.OriginData
}

Origin stores information about deposit (lock) transaction

type StringOrigin

type StringOrigin struct {
	Str string
}

func (*StringOrigin) GetOrigin

func (s *StringOrigin) GetOrigin() (res xcrypto.OriginData)

type StringOriginBuilder

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

func NewStringOriginBuilder

func NewStringOriginBuilder() *StringOriginBuilder

func (*StringOriginBuilder) Build

func (b *StringOriginBuilder) Build() *StringOrigin

func (*StringOriginBuilder) SetString

func (b *StringOriginBuilder) SetString(str string) *StringOriginBuilder

Jump to

Keyboard shortcuts

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