evmapi

package
v0.0.0-...-0161901 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentUpgradeableInitializeData

func AgentUpgradeableInitializeData(agentName string, agentVersion string, codeLanguage string, pointers []agentupgradeable.IAgentCodePointer, depsAgents []common.Address, agentOwner common.Address, isOnchain bool) ([]byte, error)

Types

type BaseClient

type BaseClient interface {
	WaitMined(hash string) error
	Transact(contractAddr string, prkHex string, input []byte, value *big.Int) (string, error)
	TransactionConfirmed(hash string) error
	InscribeTxs(txHashs []string) (string, error)
	SystemPromptManagerTopup(contractAddr string, prkHex string, agentId int64, amount *big.Int) (string, error)
	SystemPromptManagerMint(contractAddr string, prkHex string, to common.Address, uri string, data []byte, fee *big.Int) (string, error)
	IsContract(address string) (bool, error)
	ConvertAddressForIn(addr string) string
	ConvertAddressForOut(addr string) string
	Erc721Transfer(contractAddr string, prkHex string, toAddr string, tokenId *big.Int) (string, error)
	DeployERC20RealWorldAgent(prkHex string, name string, symbol string, amount *big.Int, recipient common.Address, minFeeToUse *big.Int, timeout uint32, tokenFee common.Address, worker common.Address) (string, string, error)
	DeployERC20UtilityAgent(prkHex string, name string, symbol string, amount *big.Int, recipient common.Address, systemPrompt string, storageInfo []byte) (string, string, error)
	DeployTransparentUpgradeableProxy(prkHex string, logic common.Address, admin common.Address, data []byte) (string, string, error)
}

Jump to

Keyboard shortcuts

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