Documentation
¶
Index ¶
- func ConvertFloatToUint(amount string, decimals uint8) uint64
- func DenormalizeAmount(amount *big.Int, decimals uint8) *big.Int
- type HubPoolContract
- type MayanFulfillMsg
- type MayanFulfillParams
- type MayanKey
- type MayanOrder
- type MayanSwiftContract
- func (c *MayanSwiftContract) DecodeFulfillCall(calldata []byte) (*MayanFulfillParams, *MayanFulfillMsg, error)
- func (c *MayanSwiftContract) GetOrder(msg *MayanFulfillMsg, swap *mayan.MayanSwap, srcTokenDecimals uint8) (*MayanOrder, error)
- func (c *MayanSwiftContract) ParseFulfillPayload(calldata []byte) (*MayanFulfillMsg, error)
- type OrderStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertFloatToUint ¶ added in v0.2.0
ConvertFloatToUint convert mayan float amount to the nomalized uint64 amount
Types ¶
type HubPoolContract ¶
func NewHubPoolContract ¶
func NewHubPoolContract( client client.Client, address common.Address, l1Tokens map[string]config.TokenConfig, ) *HubPoolContract
func (*HubPoolContract) DestinationToken ¶
type MayanFulfillMsg ¶ added in v0.2.0
type MayanFulfillParams ¶ added in v0.2.0
type MayanKey ¶ added in v0.2.0
type MayanKey struct {
Trader common.Hash
SrcChainId uint16
TokenIn common.Hash
DestAddr common.Hash
DestChainId uint16
TokenOut common.Hash
MinAmountOut uint64
GasDrop uint64
CancelFee uint64
RefundFee uint64
Deadline uint64
ReferrerAddr common.Hash
ReferrerBps uint8
ProtocolBps uint8
AuctionMode uint8
Random common.Hash
}
type MayanOrder ¶ added in v0.2.0
type MayanOrder struct {
Status OrderStatus
AmountIn uint64
DestChainId uint16
}
type MayanSwiftContract ¶ added in v0.2.0
func NewMayanSwiftContract ¶ added in v0.2.0
func NewMayanSwiftContract( client client.Client, address common.Address, ) *MayanSwiftContract
func (*MayanSwiftContract) DecodeFulfillCall ¶ added in v0.2.0
func (c *MayanSwiftContract) DecodeFulfillCall(calldata []byte) (*MayanFulfillParams, *MayanFulfillMsg, error)
func (*MayanSwiftContract) GetOrder ¶ added in v0.2.0
func (c *MayanSwiftContract) GetOrder( msg *MayanFulfillMsg, swap *mayan.MayanSwap, srcTokenDecimals uint8) (*MayanOrder, error)
func (*MayanSwiftContract) ParseFulfillPayload ¶ added in v0.2.0
func (c *MayanSwiftContract) ParseFulfillPayload(calldata []byte) (*MayanFulfillMsg, error)
type OrderStatus ¶ added in v0.2.0
type OrderStatus uint8
const ( WORMHOLE_DECIMALS = 8 OrderCreated OrderStatus = 1 )
Click to show internal directories.
Click to hide internal directories.