woofi

package module
v0.0.0-...-cc46cae Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ABIs = map[string]string{
	"WOOPP": WOOPP.WOOPPABI,
}
View Source
var ContractAddresses = map[string]string{
	"WOOPP": "0xbf365Ce9cFcb2d5855521985E351bA3bcf77FD3F",
}
View Source
var TopicTypes = map[string]proto.Message{
	"lotus.woofi.0_0_0.woopp_feemanagerupdated":         &WOOPP.FeeManagerUpdated{},
	"lotus.woofi.0_0_0.woopp_ownershiptransferprepared": &WOOPP.OwnershipTransferPrepared{},
	"lotus.woofi.0_0_0.woopp_ownershiptransferred":      &WOOPP.OwnershipTransferred{},
	"lotus.woofi.0_0_0.woopp_parametersupdated":         &WOOPP.ParametersUpdated{},
	"lotus.woofi.0_0_0.woopp_paused":                    &WOOPP.Paused{},
	"lotus.woofi.0_0_0.woopp_rewardmanagerupdated":      &WOOPP.RewardManagerUpdated{},
	"lotus.woofi.0_0_0.woopp_strategistupdated":         &WOOPP.StrategistUpdated{},
	"lotus.woofi.0_0_0.woopp_unpaused":                  &WOOPP.Unpaused{},
	"lotus.woofi.0_0_0.woopp_withdraw":                  &WOOPP.Withdraw{},
	"lotus.woofi.0_0_0.woopp_wooguardianupdated":        &WOOPP.WooGuardianUpdated{},
	"lotus.woofi.0_0_0.woopp_wooracleupdated":           &WOOPP.WooracleUpdated{},
	"lotus.woofi.0_0_0.woopp_wooswap":                   &WOOPP.WooSwap{},
}

Functions

func GetAddresses

func GetAddresses(addresses map[string]string) []common.Address

func GetContracts

func GetContracts(addresses map[string]string) map[string]*Contract

Types

type Config

type Config struct {
	ConnectorName string
	NetworkName   string
	FromBlock     uint64
	NumBlocks     uint64
}

type Connector

type Connector struct {
	*connector.Connector
	*Config
	// contains filtered or unexported fields
}

func New

func New(c *connector.Connector, config *Config) *Connector

func (*Connector) Start

func (c *Connector) Start()

type Contract

type Contract struct {
	ABI  *abi.ABI
	Name string
	Type string
}

type ISmartContract

type ISmartContract interface {
	Message(eventName string, contractAbi *abi.ABI, vLog types.Log, timestamp *timestamppb.Timestamp) protoreflect.ProtoMessage
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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