linear

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWorker

func NewWorker(config *config.Module) (engine.Worker, error)

NewWorker returns a new LiNEAR worker.

Types

type Action

type Action struct {
	PoolID       int64  `json:"pool_id"`
	TokenIn      string `json:"token_in"`
	TokenOut     string `json:"token_out"`
	AmountIn     string `json:"amount_in,omitempty"`
	MinAmountOut string `json:"min_amount_out"`
}

type Config

type Config struct {
}

type Data

type Data struct {
	OldOwnerID string `json:"old_owner_id"`
	NewOwnerID string `json:"new_owner_id"`
	Amount     string `json:"amount"`
}

type Event

type Event struct {
	Standard     string `json:"standard"`
	Version      string `json:"version"`
	Event        string `json:"event"`
	Data         []Data `json:"data"`
	TokenAddress string `json:"token_address"`
}

type FunctionCallArgs

type FunctionCallArgs struct {
	ReceiverID string `json:"receiver_id"`
	Amount     string `json:"amount"`
	Msg        string `json:"msg"`
}

type Msg

type Msg struct {
	Force   int64    `json:"force"`
	Actions []Action `json:"actions"`
}

Jump to

Keyboard shortcuts

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