sdk

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 28 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var INF_POOL_APR = big.NewInt(15e16)

Functions

func ConnectEthClient added in v1.2.0

func ConnectEthClient(dialAddr string, token string) (*ethclient.Client, error)

func ConnectEthClientWS added in v1.2.0

func ConnectEthClientWS(dialAddr string, token string) (*ethclient.Client, error)

func ConnectLotusClient added in v1.2.0

func ConnectLotusClient(lotusDialAddr string, lotusToken string) (*lotusapi.FullNodeStruct, jsonrpc.ClientCloser, error)

func Init

func Init(
	ctx context.Context,
	sdk *types.PoolsSDK,
	agentPolice common.Address,
	minerRegistry common.Address,
	router common.Address,
	poolRegistry common.Address,
	agentFactory common.Address,
	iFIL common.Address,
	wFIL common.Address,
	glf common.Address,
	spPlus common.Address,
	lpPlus common.Address,
	rwtFuture common.Address,
	infinityPool common.Address,
	tokenNFTWrapper common.Address,
	delegatedClaimsCampaigns common.Address,
	governor common.Address,
	adoAddr string,
	adoNamespace string,
	dialAddr string,
	token string,
	eventsURL string,
) error

func InitFEVMConnection

func InitFEVMConnection(
	agentPolice common.Address,
	minerRegistry common.Address,
	router common.Address,
	agentFactory common.Address,
	iFIL common.Address,
	wFIL common.Address,
	glf common.Address,
	spPlus common.Address,
	lpPlus common.Address,
	rwtFuture common.Address,
	infinityPool common.Address,
	tokenNFTWrapper common.Address,
	delegatedClaimsCampaigns common.Address,
	governor common.Address,
	adoAddr string,
	adoNamespace string,
	dialAddr string,
	token string,
	chainID *big.Int,
	eventsURL string,
) *fevmConnection

func LazyInit

func LazyInit(
	ctx context.Context,
	sdk *types.PoolsSDK,
	router common.Address,
	adoAddr string,
	adoNamespace string,
	dialAddr string,
	token string,
	eventsURL string,
) error

func New

func New(
	ctx context.Context,
	chainID *big.Int,
	extern types.Extern,
) (types.PoolsSDK, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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