applications

package
v0.0.0-...-07d62d3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application int64

Enum that represents supported applications on Ethereum, used to obtain application-specific information like fees and senders/recipients.

func ParseApplicationName

func ParseApplicationName(name string) (Application, error)

func (Application) String

func (app Application) String() string

type ApplicationData

type ApplicationData struct {
	AmmPrices ApplicationDataAmm `json:"amm_prices"`
}

ApplicationData is arbitrary data that can get set by applications that gets propagated through the stack currently just used for the AMM

type ApplicationDataAmm

type ApplicationDataAmm struct {
	FirstToken  ethereum.Address
	FirstTick   int32
	SecondToken ethereum.Address
	SecondTick  int32
}

AMM data, lives in the ApplicationData struct

type ApplicationFeeData

type ApplicationFeeData = struct {
	// Fee for the fee paid to the application (in USD)
	Fee *big.Rat `json:"fee"`
	// Volume for the amount of fluid token used (in USD)
	Volume *big.Rat `json:"volume"`
}

type UtilityName

type UtilityName string

Supported utilities, should map to an entry in the onchain Registry

var UtilityFluid UtilityName = "FLUID"

UtilityFluid is the special utility name for the fluid token itself

Jump to

Keyboard shortcuts

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