agentupgradeable

package
v0.0.0-...-baa49d7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AgentUpgradeableABI = AgentUpgradeableMetaData.ABI

AgentUpgradeableABI is the input ABI used to generate the binding from. Deprecated: Use AgentUpgradeableMetaData.ABI instead.

View Source
var AgentUpgradeableMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"DigestAlreadyUsed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidData\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidVersion\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Unauthenticated\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"version\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pIndex\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"retrieveAddress\",\"type\":\"address\"},{\"internalType\":\"enumIAgent.FileType\",\"name\":\"fileType\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"fileName\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"structIAgent.CodePointer\",\"name\":\"newPointer\",\"type\":\"tuple\"}],\"name\":\"CodePointerCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"EIP712DomainChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"eip712Domain\",\"outputs\":[{\"internalType\":\"bytes1\",\"name\":\"fields\",\"type\":\"bytes1\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"version\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"verifyingContract\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"uint256[]\",\"name\":\"extensions\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"version\",\"type\":\"uint16\"}],\"name\":\"getAgentCode\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"code\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCodeLanguage\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentVersion\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"version\",\"type\":\"uint16\"}],\"name\":\"getDepsAgents\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"retrieveAddress\",\"type\":\"address\"},{\"internalType\":\"enumIAgent.FileType\",\"name\":\"fileType\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"fileName\",\"type\":\"string\"}],\"internalType\":\"structIAgent.CodePointer[]\",\"name\":\"pointers\",\"type\":\"tuple[]\"},{\"internalType\":\"address[]\",\"name\":\"depsAgents\",\"type\":\"address[]\"},{\"internalType\":\"bool\",\"name\":\"isOnchain\",\"type\":\"bool\"}],\"name\":\"getHashToSign\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"agentName\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"agentVersion\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"codeLanguage\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"retrieveAddress\",\"type\":\"address\"},{\"internalType\":\"enumIAgent.FileType\",\"name\":\"fileType\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"fileName\",\"type\":\"string\"}],\"internalType\":\"structIAgent.CodePointer[]\",\"name\":\"pointers\",\"type\":\"tuple[]\"},{\"internalType\":\"address[]\",\"name\":\"depsAgents\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"agentOwner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isOnchain\",\"type\":\"bool\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"version\",\"type\":\"uint256\"}],\"name\":\"isOnchain\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"retrieveAddress\",\"type\":\"address\"},{\"internalType\":\"enumIAgent.FileType\",\"name\":\"fileType\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"fileName\",\"type\":\"string\"}],\"internalType\":\"structIAgent.CodePointer[]\",\"name\":\"pointers\",\"type\":\"tuple[]\"},{\"internalType\":\"address[]\",\"name\":\"depsAgents\",\"type\":\"address[]\"},{\"internalType\":\"bool\",\"name\":\"isOnchain\",\"type\":\"bool\"}],\"name\":\"publishAgentCode\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"retrieveAddress\",\"type\":\"address\"},{\"internalType\":\"enumIAgent.FileType\",\"name\":\"fileType\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"fileName\",\"type\":\"string\"}],\"internalType\":\"structIAgent.CodePointer[]\",\"name\":\"pointers\",\"type\":\"tuple[]\"},{\"internalType\":\"address[]\",\"name\":\"depsAgents\",\"type\":\"address[]\"},{\"internalType\":\"bool\",\"name\":\"isOnchain\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"publishAgentCodeWithSignature\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

AgentUpgradeableMetaData contains all meta data concerning the AgentUpgradeable contract.

Functions

This section is empty.

Types

type AgentUpgradeable

type AgentUpgradeable struct {
	AgentUpgradeableCaller     // Read-only binding to the contract
	AgentUpgradeableTransactor // Write-only binding to the contract
	AgentUpgradeableFilterer   // Log filterer for contract events
}

AgentUpgradeable is an auto generated Go binding around an Ethereum contract.

func NewAgentUpgradeable

func NewAgentUpgradeable(address common.Address, backend bind.ContractBackend) (*AgentUpgradeable, error)

NewAgentUpgradeable creates a new instance of AgentUpgradeable, bound to a specific deployed contract.

type AgentUpgradeableCaller

type AgentUpgradeableCaller struct {
	// contains filtered or unexported fields
}

AgentUpgradeableCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewAgentUpgradeableCaller

func NewAgentUpgradeableCaller(address common.Address, caller bind.ContractCaller) (*AgentUpgradeableCaller, error)

NewAgentUpgradeableCaller creates a new read-only instance of AgentUpgradeable, bound to a specific deployed contract.

func (*AgentUpgradeableCaller) Eip712Domain

func (_AgentUpgradeable *AgentUpgradeableCaller) Eip712Domain(opts *bind.CallOpts) (struct {
	Fields            [1]byte
	Name              string
	Version           string
	ChainId           *big.Int
	VerifyingContract common.Address
	Salt              [32]byte
	Extensions        []*big.Int
}, error)

Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e.

Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)

func (*AgentUpgradeableCaller) GetAgentCode

func (_AgentUpgradeable *AgentUpgradeableCaller) GetAgentCode(opts *bind.CallOpts, version uint16) (string, error)

GetAgentCode is a free data retrieval call binding the contract method 0xc1f3dd3c.

Solidity: function getAgentCode(uint16 version) view returns(string code)

func (*AgentUpgradeableCaller) GetCodeLanguage

func (_AgentUpgradeable *AgentUpgradeableCaller) GetCodeLanguage(opts *bind.CallOpts) (string, error)

GetCodeLanguage is a free data retrieval call binding the contract method 0x6681792d.

Solidity: function getCodeLanguage() view returns(string)

func (*AgentUpgradeableCaller) GetCurrentVersion

func (_AgentUpgradeable *AgentUpgradeableCaller) GetCurrentVersion(opts *bind.CallOpts) (uint16, error)

GetCurrentVersion is a free data retrieval call binding the contract method 0xfabec44a.

Solidity: function getCurrentVersion() view returns(uint16)

func (*AgentUpgradeableCaller) GetDepsAgents

func (_AgentUpgradeable *AgentUpgradeableCaller) GetDepsAgents(opts *bind.CallOpts, version uint16) ([]common.Address, error)

GetDepsAgents is a free data retrieval call binding the contract method 0xfa0d4179.

Solidity: function getDepsAgents(uint16 version) view returns(address[])

func (*AgentUpgradeableCaller) GetHashToSign

func (_AgentUpgradeable *AgentUpgradeableCaller) GetHashToSign(opts *bind.CallOpts, pointers []IAgentCodePointer, depsAgents []common.Address, isOnchain bool) ([32]byte, error)

GetHashToSign is a free data retrieval call binding the contract method 0xb095e56a.

Solidity: function getHashToSign((address,uint8,string)[] pointers, address[] depsAgents, bool isOnchain) view returns(bytes32)

func (*AgentUpgradeableCaller) IsOnchain

func (_AgentUpgradeable *AgentUpgradeableCaller) IsOnchain(opts *bind.CallOpts, version *big.Int) (bool, error)

IsOnchain is a free data retrieval call binding the contract method 0x23b01cfa.

Solidity: function isOnchain(uint256 version) view returns(bool)

func (*AgentUpgradeableCaller) Owner

func (_AgentUpgradeable *AgentUpgradeableCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

type AgentUpgradeableCallerRaw

type AgentUpgradeableCallerRaw struct {
	Contract *AgentUpgradeableCaller // Generic read-only contract binding to access the raw methods on
}

AgentUpgradeableCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*AgentUpgradeableCallerRaw) Call

func (_AgentUpgradeable *AgentUpgradeableCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type AgentUpgradeableCallerSession

type AgentUpgradeableCallerSession struct {
	Contract *AgentUpgradeableCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts           // Call options to use throughout this session
}

AgentUpgradeableCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*AgentUpgradeableCallerSession) Eip712Domain

func (_AgentUpgradeable *AgentUpgradeableCallerSession) Eip712Domain() (struct {
	Fields            [1]byte
	Name              string
	Version           string
	ChainId           *big.Int
	VerifyingContract common.Address
	Salt              [32]byte
	Extensions        []*big.Int
}, error)

Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e.

Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)

func (*AgentUpgradeableCallerSession) GetAgentCode

func (_AgentUpgradeable *AgentUpgradeableCallerSession) GetAgentCode(version uint16) (string, error)

GetAgentCode is a free data retrieval call binding the contract method 0xc1f3dd3c.

Solidity: function getAgentCode(uint16 version) view returns(string code)

func (*AgentUpgradeableCallerSession) GetCodeLanguage

func (_AgentUpgradeable *AgentUpgradeableCallerSession) GetCodeLanguage() (string, error)

GetCodeLanguage is a free data retrieval call binding the contract method 0x6681792d.

Solidity: function getCodeLanguage() view returns(string)

func (*AgentUpgradeableCallerSession) GetCurrentVersion

func (_AgentUpgradeable *AgentUpgradeableCallerSession) GetCurrentVersion() (uint16, error)

GetCurrentVersion is a free data retrieval call binding the contract method 0xfabec44a.

Solidity: function getCurrentVersion() view returns(uint16)

func (*AgentUpgradeableCallerSession) GetDepsAgents

func (_AgentUpgradeable *AgentUpgradeableCallerSession) GetDepsAgents(version uint16) ([]common.Address, error)

GetDepsAgents is a free data retrieval call binding the contract method 0xfa0d4179.

Solidity: function getDepsAgents(uint16 version) view returns(address[])

func (*AgentUpgradeableCallerSession) GetHashToSign

func (_AgentUpgradeable *AgentUpgradeableCallerSession) GetHashToSign(pointers []IAgentCodePointer, depsAgents []common.Address, isOnchain bool) ([32]byte, error)

GetHashToSign is a free data retrieval call binding the contract method 0xb095e56a.

Solidity: function getHashToSign((address,uint8,string)[] pointers, address[] depsAgents, bool isOnchain) view returns(bytes32)

func (*AgentUpgradeableCallerSession) IsOnchain

func (_AgentUpgradeable *AgentUpgradeableCallerSession) IsOnchain(version *big.Int) (bool, error)

IsOnchain is a free data retrieval call binding the contract method 0x23b01cfa.

Solidity: function isOnchain(uint256 version) view returns(bool)

func (*AgentUpgradeableCallerSession) Owner

func (_AgentUpgradeable *AgentUpgradeableCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

type AgentUpgradeableCodePointerCreated

type AgentUpgradeableCodePointerCreated struct {
	Version    *big.Int
	PIndex     *big.Int
	NewPointer IAgentCodePointer
	Raw        types.Log // Blockchain specific contextual infos
}

AgentUpgradeableCodePointerCreated represents a CodePointerCreated event raised by the AgentUpgradeable contract.

type AgentUpgradeableCodePointerCreatedIterator

type AgentUpgradeableCodePointerCreatedIterator struct {
	Event *AgentUpgradeableCodePointerCreated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AgentUpgradeableCodePointerCreatedIterator is returned from FilterCodePointerCreated and is used to iterate over the raw logs and unpacked data for CodePointerCreated events raised by the AgentUpgradeable contract.

func (*AgentUpgradeableCodePointerCreatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*AgentUpgradeableCodePointerCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AgentUpgradeableCodePointerCreatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AgentUpgradeableEIP712DomainChanged

type AgentUpgradeableEIP712DomainChanged struct {
	Raw types.Log // Blockchain specific contextual infos
}

AgentUpgradeableEIP712DomainChanged represents a EIP712DomainChanged event raised by the AgentUpgradeable contract.

type AgentUpgradeableEIP712DomainChangedIterator

type AgentUpgradeableEIP712DomainChangedIterator struct {
	Event *AgentUpgradeableEIP712DomainChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AgentUpgradeableEIP712DomainChangedIterator is returned from FilterEIP712DomainChanged and is used to iterate over the raw logs and unpacked data for EIP712DomainChanged events raised by the AgentUpgradeable contract.

func (*AgentUpgradeableEIP712DomainChangedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*AgentUpgradeableEIP712DomainChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AgentUpgradeableEIP712DomainChangedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AgentUpgradeableFilterer

type AgentUpgradeableFilterer struct {
	// contains filtered or unexported fields
}

AgentUpgradeableFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewAgentUpgradeableFilterer

func NewAgentUpgradeableFilterer(address common.Address, filterer bind.ContractFilterer) (*AgentUpgradeableFilterer, error)

NewAgentUpgradeableFilterer creates a new log filterer instance of AgentUpgradeable, bound to a specific deployed contract.

func (*AgentUpgradeableFilterer) FilterCodePointerCreated

func (_AgentUpgradeable *AgentUpgradeableFilterer) FilterCodePointerCreated(opts *bind.FilterOpts, version []*big.Int, pIndex []*big.Int) (*AgentUpgradeableCodePointerCreatedIterator, error)

FilterCodePointerCreated is a free log retrieval operation binding the contract event 0x0c69de805f518c322126e1fa81f2e91d814412a2ad304638fcaed200bd7f43dc.

Solidity: event CodePointerCreated(uint256 indexed version, uint256 indexed pIndex, (address,uint8,string) newPointer)

func (*AgentUpgradeableFilterer) FilterEIP712DomainChanged

func (_AgentUpgradeable *AgentUpgradeableFilterer) FilterEIP712DomainChanged(opts *bind.FilterOpts) (*AgentUpgradeableEIP712DomainChangedIterator, error)

FilterEIP712DomainChanged is a free log retrieval operation binding the contract event 0x0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31.

Solidity: event EIP712DomainChanged()

func (*AgentUpgradeableFilterer) FilterInitialized

func (_AgentUpgradeable *AgentUpgradeableFilterer) FilterInitialized(opts *bind.FilterOpts) (*AgentUpgradeableInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*AgentUpgradeableFilterer) FilterOwnershipTransferred

func (_AgentUpgradeable *AgentUpgradeableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AgentUpgradeableOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*AgentUpgradeableFilterer) ParseCodePointerCreated

func (_AgentUpgradeable *AgentUpgradeableFilterer) ParseCodePointerCreated(log types.Log) (*AgentUpgradeableCodePointerCreated, error)

ParseCodePointerCreated is a log parse operation binding the contract event 0x0c69de805f518c322126e1fa81f2e91d814412a2ad304638fcaed200bd7f43dc.

Solidity: event CodePointerCreated(uint256 indexed version, uint256 indexed pIndex, (address,uint8,string) newPointer)

func (*AgentUpgradeableFilterer) ParseEIP712DomainChanged

func (_AgentUpgradeable *AgentUpgradeableFilterer) ParseEIP712DomainChanged(log types.Log) (*AgentUpgradeableEIP712DomainChanged, error)

ParseEIP712DomainChanged is a log parse operation binding the contract event 0x0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31.

Solidity: event EIP712DomainChanged()

func (*AgentUpgradeableFilterer) ParseInitialized

func (_AgentUpgradeable *AgentUpgradeableFilterer) ParseInitialized(log types.Log) (*AgentUpgradeableInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*AgentUpgradeableFilterer) ParseOwnershipTransferred

func (_AgentUpgradeable *AgentUpgradeableFilterer) ParseOwnershipTransferred(log types.Log) (*AgentUpgradeableOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*AgentUpgradeableFilterer) WatchCodePointerCreated

func (_AgentUpgradeable *AgentUpgradeableFilterer) WatchCodePointerCreated(opts *bind.WatchOpts, sink chan<- *AgentUpgradeableCodePointerCreated, version []*big.Int, pIndex []*big.Int) (event.Subscription, error)

WatchCodePointerCreated is a free log subscription operation binding the contract event 0x0c69de805f518c322126e1fa81f2e91d814412a2ad304638fcaed200bd7f43dc.

Solidity: event CodePointerCreated(uint256 indexed version, uint256 indexed pIndex, (address,uint8,string) newPointer)

func (*AgentUpgradeableFilterer) WatchEIP712DomainChanged

func (_AgentUpgradeable *AgentUpgradeableFilterer) WatchEIP712DomainChanged(opts *bind.WatchOpts, sink chan<- *AgentUpgradeableEIP712DomainChanged) (event.Subscription, error)

WatchEIP712DomainChanged is a free log subscription operation binding the contract event 0x0a6387c9ea3628b88a633bb4f3b151770f70085117a15f9bf3787cda53f13d31.

Solidity: event EIP712DomainChanged()

func (*AgentUpgradeableFilterer) WatchInitialized

func (_AgentUpgradeable *AgentUpgradeableFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *AgentUpgradeableInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*AgentUpgradeableFilterer) WatchOwnershipTransferred

func (_AgentUpgradeable *AgentUpgradeableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AgentUpgradeableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

type AgentUpgradeableInitialized

type AgentUpgradeableInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

AgentUpgradeableInitialized represents a Initialized event raised by the AgentUpgradeable contract.

type AgentUpgradeableInitializedIterator

type AgentUpgradeableInitializedIterator struct {
	Event *AgentUpgradeableInitialized // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AgentUpgradeableInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the AgentUpgradeable contract.

func (*AgentUpgradeableInitializedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*AgentUpgradeableInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AgentUpgradeableInitializedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AgentUpgradeableOwnershipTransferred

type AgentUpgradeableOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

AgentUpgradeableOwnershipTransferred represents a OwnershipTransferred event raised by the AgentUpgradeable contract.

type AgentUpgradeableOwnershipTransferredIterator

type AgentUpgradeableOwnershipTransferredIterator struct {
	Event *AgentUpgradeableOwnershipTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

AgentUpgradeableOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the AgentUpgradeable contract.

func (*AgentUpgradeableOwnershipTransferredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*AgentUpgradeableOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AgentUpgradeableOwnershipTransferredIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type AgentUpgradeableRaw

type AgentUpgradeableRaw struct {
	Contract *AgentUpgradeable // Generic contract binding to access the raw methods on
}

AgentUpgradeableRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*AgentUpgradeableRaw) Call

func (_AgentUpgradeable *AgentUpgradeableRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*AgentUpgradeableRaw) Transact

func (_AgentUpgradeable *AgentUpgradeableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*AgentUpgradeableRaw) Transfer

func (_AgentUpgradeable *AgentUpgradeableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type AgentUpgradeableSession

type AgentUpgradeableSession struct {
	Contract     *AgentUpgradeable // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

AgentUpgradeableSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*AgentUpgradeableSession) Eip712Domain

func (_AgentUpgradeable *AgentUpgradeableSession) Eip712Domain() (struct {
	Fields            [1]byte
	Name              string
	Version           string
	ChainId           *big.Int
	VerifyingContract common.Address
	Salt              [32]byte
	Extensions        []*big.Int
}, error)

Eip712Domain is a free data retrieval call binding the contract method 0x84b0196e.

Solidity: function eip712Domain() view returns(bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)

func (*AgentUpgradeableSession) GetAgentCode

func (_AgentUpgradeable *AgentUpgradeableSession) GetAgentCode(version uint16) (string, error)

GetAgentCode is a free data retrieval call binding the contract method 0xc1f3dd3c.

Solidity: function getAgentCode(uint16 version) view returns(string code)

func (*AgentUpgradeableSession) GetCodeLanguage

func (_AgentUpgradeable *AgentUpgradeableSession) GetCodeLanguage() (string, error)

GetCodeLanguage is a free data retrieval call binding the contract method 0x6681792d.

Solidity: function getCodeLanguage() view returns(string)

func (*AgentUpgradeableSession) GetCurrentVersion

func (_AgentUpgradeable *AgentUpgradeableSession) GetCurrentVersion() (uint16, error)

GetCurrentVersion is a free data retrieval call binding the contract method 0xfabec44a.

Solidity: function getCurrentVersion() view returns(uint16)

func (*AgentUpgradeableSession) GetDepsAgents

func (_AgentUpgradeable *AgentUpgradeableSession) GetDepsAgents(version uint16) ([]common.Address, error)

GetDepsAgents is a free data retrieval call binding the contract method 0xfa0d4179.

Solidity: function getDepsAgents(uint16 version) view returns(address[])

func (*AgentUpgradeableSession) GetHashToSign

func (_AgentUpgradeable *AgentUpgradeableSession) GetHashToSign(pointers []IAgentCodePointer, depsAgents []common.Address, isOnchain bool) ([32]byte, error)

GetHashToSign is a free data retrieval call binding the contract method 0xb095e56a.

Solidity: function getHashToSign((address,uint8,string)[] pointers, address[] depsAgents, bool isOnchain) view returns(bytes32)

func (*AgentUpgradeableSession) Initialize

func (_AgentUpgradeable *AgentUpgradeableSession) Initialize(agentName string, agentVersion string, codeLanguage string, pointers []IAgentCodePointer, depsAgents []common.Address, agentOwner common.Address, isOnchain bool) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x7109e143.

Solidity: function initialize(string agentName, string agentVersion, string codeLanguage, (address,uint8,string)[] pointers, address[] depsAgents, address agentOwner, bool isOnchain) returns()

func (*AgentUpgradeableSession) IsOnchain

func (_AgentUpgradeable *AgentUpgradeableSession) IsOnchain(version *big.Int) (bool, error)

IsOnchain is a free data retrieval call binding the contract method 0x23b01cfa.

Solidity: function isOnchain(uint256 version) view returns(bool)

func (*AgentUpgradeableSession) Owner

func (_AgentUpgradeable *AgentUpgradeableSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*AgentUpgradeableSession) PublishAgentCode

func (_AgentUpgradeable *AgentUpgradeableSession) PublishAgentCode(pointers []IAgentCodePointer, depsAgents []common.Address, isOnchain bool) (*types.Transaction, error)

PublishAgentCode is a paid mutator transaction binding the contract method 0x9de79e65.

Solidity: function publishAgentCode((address,uint8,string)[] pointers, address[] depsAgents, bool isOnchain) returns(uint16)

func (*AgentUpgradeableSession) PublishAgentCodeWithSignature

func (_AgentUpgradeable *AgentUpgradeableSession) PublishAgentCodeWithSignature(pointers []IAgentCodePointer, depsAgents []common.Address, isOnchain bool, signature []byte) (*types.Transaction, error)

PublishAgentCodeWithSignature is a paid mutator transaction binding the contract method 0x45a836ec.

Solidity: function publishAgentCodeWithSignature((address,uint8,string)[] pointers, address[] depsAgents, bool isOnchain, bytes signature) returns(uint16)

func (*AgentUpgradeableSession) RenounceOwnership

func (_AgentUpgradeable *AgentUpgradeableSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*AgentUpgradeableSession) TransferOwnership

func (_AgentUpgradeable *AgentUpgradeableSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type AgentUpgradeableTransactor

type AgentUpgradeableTransactor struct {
	// contains filtered or unexported fields
}

AgentUpgradeableTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewAgentUpgradeableTransactor

func NewAgentUpgradeableTransactor(address common.Address, transactor bind.ContractTransactor) (*AgentUpgradeableTransactor, error)

NewAgentUpgradeableTransactor creates a new write-only instance of AgentUpgradeable, bound to a specific deployed contract.

func (*AgentUpgradeableTransactor) Initialize

func (_AgentUpgradeable *AgentUpgradeableTransactor) Initialize(opts *bind.TransactOpts, agentName string, agentVersion string, codeLanguage string, pointers []IAgentCodePointer, depsAgents []common.Address, agentOwner common.Address, isOnchain bool) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x7109e143.

Solidity: function initialize(string agentName, string agentVersion, string codeLanguage, (address,uint8,string)[] pointers, address[] depsAgents, address agentOwner, bool isOnchain) returns()

func (*AgentUpgradeableTransactor) PublishAgentCode

func (_AgentUpgradeable *AgentUpgradeableTransactor) PublishAgentCode(opts *bind.TransactOpts, pointers []IAgentCodePointer, depsAgents []common.Address, isOnchain bool) (*types.Transaction, error)

PublishAgentCode is a paid mutator transaction binding the contract method 0x9de79e65.

Solidity: function publishAgentCode((address,uint8,string)[] pointers, address[] depsAgents, bool isOnchain) returns(uint16)

func (*AgentUpgradeableTransactor) PublishAgentCodeWithSignature

func (_AgentUpgradeable *AgentUpgradeableTransactor) PublishAgentCodeWithSignature(opts *bind.TransactOpts, pointers []IAgentCodePointer, depsAgents []common.Address, isOnchain bool, signature []byte) (*types.Transaction, error)

PublishAgentCodeWithSignature is a paid mutator transaction binding the contract method 0x45a836ec.

Solidity: function publishAgentCodeWithSignature((address,uint8,string)[] pointers, address[] depsAgents, bool isOnchain, bytes signature) returns(uint16)

func (*AgentUpgradeableTransactor) RenounceOwnership

func (_AgentUpgradeable *AgentUpgradeableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*AgentUpgradeableTransactor) TransferOwnership

func (_AgentUpgradeable *AgentUpgradeableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type AgentUpgradeableTransactorRaw

type AgentUpgradeableTransactorRaw struct {
	Contract *AgentUpgradeableTransactor // Generic write-only contract binding to access the raw methods on
}

AgentUpgradeableTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*AgentUpgradeableTransactorRaw) Transact

func (_AgentUpgradeable *AgentUpgradeableTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*AgentUpgradeableTransactorRaw) Transfer

func (_AgentUpgradeable *AgentUpgradeableTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type AgentUpgradeableTransactorSession

type AgentUpgradeableTransactorSession struct {
	Contract     *AgentUpgradeableTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts           // Transaction auth options to use throughout this session
}

AgentUpgradeableTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*AgentUpgradeableTransactorSession) Initialize

func (_AgentUpgradeable *AgentUpgradeableTransactorSession) Initialize(agentName string, agentVersion string, codeLanguage string, pointers []IAgentCodePointer, depsAgents []common.Address, agentOwner common.Address, isOnchain bool) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x7109e143.

Solidity: function initialize(string agentName, string agentVersion, string codeLanguage, (address,uint8,string)[] pointers, address[] depsAgents, address agentOwner, bool isOnchain) returns()

func (*AgentUpgradeableTransactorSession) PublishAgentCode

func (_AgentUpgradeable *AgentUpgradeableTransactorSession) PublishAgentCode(pointers []IAgentCodePointer, depsAgents []common.Address, isOnchain bool) (*types.Transaction, error)

PublishAgentCode is a paid mutator transaction binding the contract method 0x9de79e65.

Solidity: function publishAgentCode((address,uint8,string)[] pointers, address[] depsAgents, bool isOnchain) returns(uint16)

func (*AgentUpgradeableTransactorSession) PublishAgentCodeWithSignature

func (_AgentUpgradeable *AgentUpgradeableTransactorSession) PublishAgentCodeWithSignature(pointers []IAgentCodePointer, depsAgents []common.Address, isOnchain bool, signature []byte) (*types.Transaction, error)

PublishAgentCodeWithSignature is a paid mutator transaction binding the contract method 0x45a836ec.

Solidity: function publishAgentCodeWithSignature((address,uint8,string)[] pointers, address[] depsAgents, bool isOnchain, bytes signature) returns(uint16)

func (*AgentUpgradeableTransactorSession) RenounceOwnership

func (_AgentUpgradeable *AgentUpgradeableTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*AgentUpgradeableTransactorSession) TransferOwnership

func (_AgentUpgradeable *AgentUpgradeableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type IAgentCodePointer

type IAgentCodePointer struct {
	RetrieveAddress common.Address
	FileType        uint8
	FileName        string
}

IAgentCodePointer is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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