mayan

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAYAN_EXPLORER_URL = "https://explorer-api.mayan.finance"
	WORMHOLE_DECIMALS  = 8
)

Variables

This section is empty.

Functions

func WormholeToEVMChainID

func WormholeToEVMChainID(whChainID uint16) (uint64, error)

Convert Wormhole chain ID to EVM chain ID

Types

type MayanExplorer

type MayanExplorer struct {
	HTTPClient *http.Client
}

func NewMayanExplorer

func NewMayanExplorer() *MayanExplorer

func (*MayanExplorer) GetSwap

func (c *MayanExplorer) GetSwap(hash string) (*MayanSwap, error)

type MayanSwap

type MayanSwap struct {
	OrderHash          string
	RandomKey          string
	MayanBps           uint8
	AuctionMode        uint8
	RedeemRelayerFee   string
	RedeemRelayerFee64 uint64
	RefundRelayerFee   string
	RefundRelayerFee64 uint64
	Trader             string
	MinAmountOut64     string
	SourceTxHash       string
	CreateTxHash       string
}

Jump to

Keyboard shortcuts

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