arc20

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AtomicalEvent = "AtomicalEvent"
)

Variables

View Source
var ErrNotExpectEvent = errors.New("not expect events")

Functions

This section is empty.

Types

type ARC20Response

type ARC20Response struct {
	Success  bool             `json:"success"`
	Response AtomicalResponse `json:"response"`
}

type Arc20WrappedEvent

type Arc20WrappedEvent struct {
	AtomicalEventParam `json:"events" yaml:"events"`
}

type AtomicalEventParam

type AtomicalEventParam struct {
	TxHash               Hash       `json:"tx_hash"`
	AtomicalsId          string     `json:"atomicals_id"`
	AtomicalsType        string     `json:"atomicals_type"`
	Subtype              string     `json:"subtype"`
	AtomicalsFromIndexes []*big.Int `json:"atomicals_from_indexs"`
	AtomicalsFromValues  []*big.Int `json:"atomicals_from_values"`
	ToAddress            string     `json:"to_address"`
	ToValueSats          *big.Int   `json:"to_value_sats"`
	MintAmount           *big.Int   `json:"mint_amount"`
	MintTicker           string     `json:"mint_ticker"`
	RequestTicker        string     `json:"request_ticker"`
}

func UnpackArc20EventContext

func UnpackArc20EventContext(ret []byte, topic common.Hash) (AtomicalEventParam, error)

type AtomicalResponse

type AtomicalResponse struct {
	Result []AtomicalEventParam `json:"result"`
}

type Hash

type Hash common.Hash

func (*Hash) MarshalJSON

func (hash *Hash) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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