woofi

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

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

Go to latest
Published: Jun 20, 2023 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{
	"nakji.woofi.0_0_0.woopp_feemanagerupdated":         &WOOPP.FeeManagerUpdated{},
	"nakji.woofi.0_0_0.woopp_ownershiptransferprepared": &WOOPP.OwnershipTransferPrepared{},
	"nakji.woofi.0_0_0.woopp_ownershiptransferred":      &WOOPP.OwnershipTransferred{},
	"nakji.woofi.0_0_0.woopp_parametersupdated":         &WOOPP.ParametersUpdated{},
	"nakji.woofi.0_0_0.woopp_paused":                    &WOOPP.Paused{},
	"nakji.woofi.0_0_0.woopp_rewardmanagerupdated":      &WOOPP.RewardManagerUpdated{},
	"nakji.woofi.0_0_0.woopp_strategistupdated":         &WOOPP.StrategistUpdated{},
	"nakji.woofi.0_0_0.woopp_unpaused":                  &WOOPP.Unpaused{},
	"nakji.woofi.0_0_0.woopp_withdraw":                  &WOOPP.Withdraw{},
	"nakji.woofi.0_0_0.woopp_wooguardianupdated":        &WOOPP.WooGuardianUpdated{},
	"nakji.woofi.0_0_0.woopp_wooracleupdated":           &WOOPP.WooracleUpdated{},
	"nakji.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