agentregistry

package
v0.0.0-...-25c9f67 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AgentRegistryABI = AgentRegistryMetaData.ABI

AgentRegistryABI is the input ABI used to generate the binding from. Deprecated: Use AgentRegistryMetaData.ABI instead.

View Source
var AgentRegistryMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"KeyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"KeyNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ModelNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotSenderOrOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StakeTooLow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroKey\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"agentId\",\"type\":\"bytes32\"}],\"name\":\"Deregistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newStake\",\"type\":\"uint256\"}],\"name\":\"MinStakeUpdated\",\"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\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"agentId\",\"type\":\"bytes32\"}],\"name\":\"RegisteredUpdated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"deregister\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"exists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAll\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"agentId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"createdAt\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string[]\",\"name\":\"tags\",\"type\":\"string[]\"}],\"internalType\":\"structAgentRegistry.Agent[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getIds\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"map\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"agentId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"createdAt\",\"type\":\"uint128\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"addStake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"agentId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string[]\",\"name\":\"tags\",\"type\":\"string[]\"}],\"name\":\"register\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_minStake\",\"type\":\"uint256\"}],\"name\":\"setMinStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token\",\"outputs\":[{\"internalType\":\"contractERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

AgentRegistryMetaData contains all meta data concerning the AgentRegistry contract.

Functions

This section is empty.

Types

type AgentRegistry

type AgentRegistry struct {
	AgentRegistryCaller     // Read-only binding to the contract
	AgentRegistryTransactor // Write-only binding to the contract
	AgentRegistryFilterer   // Log filterer for contract events
}

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

func NewAgentRegistry

func NewAgentRegistry(address common.Address, backend bind.ContractBackend) (*AgentRegistry, error)

NewAgentRegistry creates a new instance of AgentRegistry, bound to a specific deployed contract.

type AgentRegistryAgent

type AgentRegistryAgent struct {
	AgentId   [32]byte
	Fee       *big.Int
	Stake     *big.Int
	CreatedAt *big.Int
	Owner     common.Address
	Name      string
	Tags      []string
}

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

type AgentRegistryCaller

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

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

func NewAgentRegistryCaller

func NewAgentRegistryCaller(address common.Address, caller bind.ContractCaller) (*AgentRegistryCaller, error)

NewAgentRegistryCaller creates a new read-only instance of AgentRegistry, bound to a specific deployed contract.

func (*AgentRegistryCaller) Exists

func (_AgentRegistry *AgentRegistryCaller) Exists(opts *bind.CallOpts, id [32]byte) (bool, error)

Exists is a free data retrieval call binding the contract method 0x38a699a4.

Solidity: function exists(bytes32 id) view returns(bool)

func (*AgentRegistryCaller) GetAll

func (_AgentRegistry *AgentRegistryCaller) GetAll(opts *bind.CallOpts) ([]AgentRegistryAgent, error)

GetAll is a free data retrieval call binding the contract method 0x53ed5143.

Solidity: function getAll() view returns((bytes32,uint256,uint256,uint128,address,string,string[])[])

func (*AgentRegistryCaller) GetIds

func (_AgentRegistry *AgentRegistryCaller) GetIds(opts *bind.CallOpts) ([][32]byte, error)

GetIds is a free data retrieval call binding the contract method 0x2b105663.

Solidity: function getIds() view returns(bytes32[])

func (*AgentRegistryCaller) Map

func (_AgentRegistry *AgentRegistryCaller) Map(opts *bind.CallOpts, arg0 [32]byte) (struct {
	AgentId   [32]byte
	Fee       *big.Int
	Stake     *big.Int
	CreatedAt *big.Int
	Owner     common.Address
	Name      string
}, error)

Map is a free data retrieval call binding the contract method 0x0ae186a8.

Solidity: function map(bytes32 ) view returns(bytes32 agentId, uint256 fee, uint256 stake, uint128 createdAt, address owner, string name)

func (*AgentRegistryCaller) MinStake

func (_AgentRegistry *AgentRegistryCaller) MinStake(opts *bind.CallOpts) (*big.Int, error)

MinStake is a free data retrieval call binding the contract method 0x375b3c0a.

Solidity: function minStake() view returns(uint256)

func (*AgentRegistryCaller) Owner

func (_AgentRegistry *AgentRegistryCaller) 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)

func (*AgentRegistryCaller) Token

func (_AgentRegistry *AgentRegistryCaller) Token(opts *bind.CallOpts) (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

type AgentRegistryCallerRaw

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

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

func (*AgentRegistryCallerRaw) Call

func (_AgentRegistry *AgentRegistryCallerRaw) 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 AgentRegistryCallerSession

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

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

func (*AgentRegistryCallerSession) Exists

func (_AgentRegistry *AgentRegistryCallerSession) Exists(id [32]byte) (bool, error)

Exists is a free data retrieval call binding the contract method 0x38a699a4.

Solidity: function exists(bytes32 id) view returns(bool)

func (*AgentRegistryCallerSession) GetAll

func (_AgentRegistry *AgentRegistryCallerSession) GetAll() ([]AgentRegistryAgent, error)

GetAll is a free data retrieval call binding the contract method 0x53ed5143.

Solidity: function getAll() view returns((bytes32,uint256,uint256,uint128,address,string,string[])[])

func (*AgentRegistryCallerSession) GetIds

func (_AgentRegistry *AgentRegistryCallerSession) GetIds() ([][32]byte, error)

GetIds is a free data retrieval call binding the contract method 0x2b105663.

Solidity: function getIds() view returns(bytes32[])

func (*AgentRegistryCallerSession) Map

func (_AgentRegistry *AgentRegistryCallerSession) Map(arg0 [32]byte) (struct {
	AgentId   [32]byte
	Fee       *big.Int
	Stake     *big.Int
	CreatedAt *big.Int
	Owner     common.Address
	Name      string
}, error)

Map is a free data retrieval call binding the contract method 0x0ae186a8.

Solidity: function map(bytes32 ) view returns(bytes32 agentId, uint256 fee, uint256 stake, uint128 createdAt, address owner, string name)

func (*AgentRegistryCallerSession) MinStake

func (_AgentRegistry *AgentRegistryCallerSession) MinStake() (*big.Int, error)

MinStake is a free data retrieval call binding the contract method 0x375b3c0a.

Solidity: function minStake() view returns(uint256)

func (*AgentRegistryCallerSession) Owner

func (_AgentRegistry *AgentRegistryCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*AgentRegistryCallerSession) Token

func (_AgentRegistry *AgentRegistryCallerSession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

type AgentRegistryDeregistered

type AgentRegistryDeregistered struct {
	Owner   common.Address
	AgentId [32]byte
	Raw     types.Log // Blockchain specific contextual infos
}

AgentRegistryDeregistered represents a Deregistered event raised by the AgentRegistry contract.

type AgentRegistryDeregisteredIterator

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

AgentRegistryDeregisteredIterator is returned from FilterDeregistered and is used to iterate over the raw logs and unpacked data for Deregistered events raised by the AgentRegistry contract.

func (*AgentRegistryDeregisteredIterator) Close

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

func (*AgentRegistryDeregisteredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AgentRegistryDeregisteredIterator) 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 AgentRegistryFilterer

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

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

func NewAgentRegistryFilterer

func NewAgentRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*AgentRegistryFilterer, error)

NewAgentRegistryFilterer creates a new log filterer instance of AgentRegistry, bound to a specific deployed contract.

func (*AgentRegistryFilterer) FilterDeregistered

func (_AgentRegistry *AgentRegistryFilterer) FilterDeregistered(opts *bind.FilterOpts, owner []common.Address, agentId [][32]byte) (*AgentRegistryDeregisteredIterator, error)

FilterDeregistered is a free log retrieval operation binding the contract event 0xcc0d8d49cb9a5a3eebc1e1f0b607b8aad83fbe9618e448df79b8a0cc33319472.

Solidity: event Deregistered(address indexed owner, bytes32 indexed agentId)

func (*AgentRegistryFilterer) FilterInitialized

func (_AgentRegistry *AgentRegistryFilterer) FilterInitialized(opts *bind.FilterOpts) (*AgentRegistryInitializedIterator, error)

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

Solidity: event Initialized(uint8 version)

func (*AgentRegistryFilterer) FilterMinStakeUpdated

func (_AgentRegistry *AgentRegistryFilterer) FilterMinStakeUpdated(opts *bind.FilterOpts) (*AgentRegistryMinStakeUpdatedIterator, error)

FilterMinStakeUpdated is a free log retrieval operation binding the contract event 0x47ab46f2c8d4258304a2f5551c1cbdb6981be49631365d1ba7191288a73f39ef.

Solidity: event MinStakeUpdated(uint256 newStake)

func (*AgentRegistryFilterer) FilterOwnershipTransferred

func (_AgentRegistry *AgentRegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AgentRegistryOwnershipTransferredIterator, error)

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

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

func (*AgentRegistryFilterer) FilterRegisteredUpdated

func (_AgentRegistry *AgentRegistryFilterer) FilterRegisteredUpdated(opts *bind.FilterOpts, owner []common.Address, agentId [][32]byte) (*AgentRegistryRegisteredUpdatedIterator, error)

FilterRegisteredUpdated is a free log retrieval operation binding the contract event 0x4dffc4e92367641816479c647d1ff3f03202f6c73b97340cba51a7b577c55804.

Solidity: event RegisteredUpdated(address indexed owner, bytes32 indexed agentId)

func (*AgentRegistryFilterer) ParseDeregistered

func (_AgentRegistry *AgentRegistryFilterer) ParseDeregistered(log types.Log) (*AgentRegistryDeregistered, error)

ParseDeregistered is a log parse operation binding the contract event 0xcc0d8d49cb9a5a3eebc1e1f0b607b8aad83fbe9618e448df79b8a0cc33319472.

Solidity: event Deregistered(address indexed owner, bytes32 indexed agentId)

func (*AgentRegistryFilterer) ParseInitialized

func (_AgentRegistry *AgentRegistryFilterer) ParseInitialized(log types.Log) (*AgentRegistryInitialized, error)

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

Solidity: event Initialized(uint8 version)

func (*AgentRegistryFilterer) ParseMinStakeUpdated

func (_AgentRegistry *AgentRegistryFilterer) ParseMinStakeUpdated(log types.Log) (*AgentRegistryMinStakeUpdated, error)

ParseMinStakeUpdated is a log parse operation binding the contract event 0x47ab46f2c8d4258304a2f5551c1cbdb6981be49631365d1ba7191288a73f39ef.

Solidity: event MinStakeUpdated(uint256 newStake)

func (*AgentRegistryFilterer) ParseOwnershipTransferred

func (_AgentRegistry *AgentRegistryFilterer) ParseOwnershipTransferred(log types.Log) (*AgentRegistryOwnershipTransferred, error)

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

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

func (*AgentRegistryFilterer) ParseRegisteredUpdated

func (_AgentRegistry *AgentRegistryFilterer) ParseRegisteredUpdated(log types.Log) (*AgentRegistryRegisteredUpdated, error)

ParseRegisteredUpdated is a log parse operation binding the contract event 0x4dffc4e92367641816479c647d1ff3f03202f6c73b97340cba51a7b577c55804.

Solidity: event RegisteredUpdated(address indexed owner, bytes32 indexed agentId)

func (*AgentRegistryFilterer) WatchDeregistered

func (_AgentRegistry *AgentRegistryFilterer) WatchDeregistered(opts *bind.WatchOpts, sink chan<- *AgentRegistryDeregistered, owner []common.Address, agentId [][32]byte) (event.Subscription, error)

WatchDeregistered is a free log subscription operation binding the contract event 0xcc0d8d49cb9a5a3eebc1e1f0b607b8aad83fbe9618e448df79b8a0cc33319472.

Solidity: event Deregistered(address indexed owner, bytes32 indexed agentId)

func (*AgentRegistryFilterer) WatchInitialized

func (_AgentRegistry *AgentRegistryFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *AgentRegistryInitialized) (event.Subscription, error)

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

Solidity: event Initialized(uint8 version)

func (*AgentRegistryFilterer) WatchMinStakeUpdated

func (_AgentRegistry *AgentRegistryFilterer) WatchMinStakeUpdated(opts *bind.WatchOpts, sink chan<- *AgentRegistryMinStakeUpdated) (event.Subscription, error)

WatchMinStakeUpdated is a free log subscription operation binding the contract event 0x47ab46f2c8d4258304a2f5551c1cbdb6981be49631365d1ba7191288a73f39ef.

Solidity: event MinStakeUpdated(uint256 newStake)

func (*AgentRegistryFilterer) WatchOwnershipTransferred

func (_AgentRegistry *AgentRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AgentRegistryOwnershipTransferred, 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)

func (*AgentRegistryFilterer) WatchRegisteredUpdated

func (_AgentRegistry *AgentRegistryFilterer) WatchRegisteredUpdated(opts *bind.WatchOpts, sink chan<- *AgentRegistryRegisteredUpdated, owner []common.Address, agentId [][32]byte) (event.Subscription, error)

WatchRegisteredUpdated is a free log subscription operation binding the contract event 0x4dffc4e92367641816479c647d1ff3f03202f6c73b97340cba51a7b577c55804.

Solidity: event RegisteredUpdated(address indexed owner, bytes32 indexed agentId)

type AgentRegistryInitialized

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

AgentRegistryInitialized represents a Initialized event raised by the AgentRegistry contract.

type AgentRegistryInitializedIterator

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

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

func (*AgentRegistryInitializedIterator) Close

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

func (*AgentRegistryInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AgentRegistryInitializedIterator) 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 AgentRegistryMinStakeUpdated

type AgentRegistryMinStakeUpdated struct {
	NewStake *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

AgentRegistryMinStakeUpdated represents a MinStakeUpdated event raised by the AgentRegistry contract.

type AgentRegistryMinStakeUpdatedIterator

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

AgentRegistryMinStakeUpdatedIterator is returned from FilterMinStakeUpdated and is used to iterate over the raw logs and unpacked data for MinStakeUpdated events raised by the AgentRegistry contract.

func (*AgentRegistryMinStakeUpdatedIterator) Close

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

func (*AgentRegistryMinStakeUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AgentRegistryMinStakeUpdatedIterator) 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 AgentRegistryOwnershipTransferred

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

AgentRegistryOwnershipTransferred represents a OwnershipTransferred event raised by the AgentRegistry contract.

type AgentRegistryOwnershipTransferredIterator

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

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

func (*AgentRegistryOwnershipTransferredIterator) Close

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

func (*AgentRegistryOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AgentRegistryOwnershipTransferredIterator) 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 AgentRegistryRaw

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

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

func (*AgentRegistryRaw) Call

func (_AgentRegistry *AgentRegistryRaw) 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 (*AgentRegistryRaw) Transact

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

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

func (*AgentRegistryRaw) Transfer

func (_AgentRegistry *AgentRegistryRaw) 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 AgentRegistryRegisteredUpdated

type AgentRegistryRegisteredUpdated struct {
	Owner   common.Address
	AgentId [32]byte
	Raw     types.Log // Blockchain specific contextual infos
}

AgentRegistryRegisteredUpdated represents a RegisteredUpdated event raised by the AgentRegistry contract.

type AgentRegistryRegisteredUpdatedIterator

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

AgentRegistryRegisteredUpdatedIterator is returned from FilterRegisteredUpdated and is used to iterate over the raw logs and unpacked data for RegisteredUpdated events raised by the AgentRegistry contract.

func (*AgentRegistryRegisteredUpdatedIterator) Close

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

func (*AgentRegistryRegisteredUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AgentRegistryRegisteredUpdatedIterator) 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 AgentRegistrySession

type AgentRegistrySession struct {
	Contract     *AgentRegistry    // 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
}

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

func (*AgentRegistrySession) Deregister

func (_AgentRegistry *AgentRegistrySession) Deregister(id [32]byte) (*types.Transaction, error)

Deregister is a paid mutator transaction binding the contract method 0x20813154.

Solidity: function deregister(bytes32 id) returns()

func (*AgentRegistrySession) Exists

func (_AgentRegistry *AgentRegistrySession) Exists(id [32]byte) (bool, error)

Exists is a free data retrieval call binding the contract method 0x38a699a4.

Solidity: function exists(bytes32 id) view returns(bool)

func (*AgentRegistrySession) GetAll

func (_AgentRegistry *AgentRegistrySession) GetAll() ([]AgentRegistryAgent, error)

GetAll is a free data retrieval call binding the contract method 0x53ed5143.

Solidity: function getAll() view returns((bytes32,uint256,uint256,uint128,address,string,string[])[])

func (*AgentRegistrySession) GetIds

func (_AgentRegistry *AgentRegistrySession) GetIds() ([][32]byte, error)

GetIds is a free data retrieval call binding the contract method 0x2b105663.

Solidity: function getIds() view returns(bytes32[])

func (*AgentRegistrySession) Initialize

func (_AgentRegistry *AgentRegistrySession) Initialize(_token common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _token) returns()

func (*AgentRegistrySession) Map

func (_AgentRegistry *AgentRegistrySession) Map(arg0 [32]byte) (struct {
	AgentId   [32]byte
	Fee       *big.Int
	Stake     *big.Int
	CreatedAt *big.Int
	Owner     common.Address
	Name      string
}, error)

Map is a free data retrieval call binding the contract method 0x0ae186a8.

Solidity: function map(bytes32 ) view returns(bytes32 agentId, uint256 fee, uint256 stake, uint128 createdAt, address owner, string name)

func (*AgentRegistrySession) MinStake

func (_AgentRegistry *AgentRegistrySession) MinStake() (*big.Int, error)

MinStake is a free data retrieval call binding the contract method 0x375b3c0a.

Solidity: function minStake() view returns(uint256)

func (*AgentRegistrySession) Owner

func (_AgentRegistry *AgentRegistrySession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*AgentRegistrySession) Register

func (_AgentRegistry *AgentRegistrySession) Register(addStake *big.Int, fee *big.Int, owner common.Address, agentId [32]byte, name string, tags []string) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xcca4cb64.

Solidity: function register(uint256 addStake, uint256 fee, address owner, bytes32 agentId, string name, string[] tags) returns()

func (*AgentRegistrySession) RenounceOwnership

func (_AgentRegistry *AgentRegistrySession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*AgentRegistrySession) SetMinStake

func (_AgentRegistry *AgentRegistrySession) SetMinStake(_minStake *big.Int) (*types.Transaction, error)

SetMinStake is a paid mutator transaction binding the contract method 0x8c80fd90.

Solidity: function setMinStake(uint256 _minStake) returns()

func (*AgentRegistrySession) Token

func (_AgentRegistry *AgentRegistrySession) Token() (common.Address, error)

Token is a free data retrieval call binding the contract method 0xfc0c546a.

Solidity: function token() view returns(address)

func (*AgentRegistrySession) TransferOwnership

func (_AgentRegistry *AgentRegistrySession) 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 AgentRegistryTransactor

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

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

func NewAgentRegistryTransactor

func NewAgentRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*AgentRegistryTransactor, error)

NewAgentRegistryTransactor creates a new write-only instance of AgentRegistry, bound to a specific deployed contract.

func (*AgentRegistryTransactor) Deregister

func (_AgentRegistry *AgentRegistryTransactor) Deregister(opts *bind.TransactOpts, id [32]byte) (*types.Transaction, error)

Deregister is a paid mutator transaction binding the contract method 0x20813154.

Solidity: function deregister(bytes32 id) returns()

func (*AgentRegistryTransactor) Initialize

func (_AgentRegistry *AgentRegistryTransactor) Initialize(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _token) returns()

func (*AgentRegistryTransactor) Register

func (_AgentRegistry *AgentRegistryTransactor) Register(opts *bind.TransactOpts, addStake *big.Int, fee *big.Int, owner common.Address, agentId [32]byte, name string, tags []string) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xcca4cb64.

Solidity: function register(uint256 addStake, uint256 fee, address owner, bytes32 agentId, string name, string[] tags) returns()

func (*AgentRegistryTransactor) RenounceOwnership

func (_AgentRegistry *AgentRegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*AgentRegistryTransactor) SetMinStake

func (_AgentRegistry *AgentRegistryTransactor) SetMinStake(opts *bind.TransactOpts, _minStake *big.Int) (*types.Transaction, error)

SetMinStake is a paid mutator transaction binding the contract method 0x8c80fd90.

Solidity: function setMinStake(uint256 _minStake) returns()

func (*AgentRegistryTransactor) TransferOwnership

func (_AgentRegistry *AgentRegistryTransactor) 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 AgentRegistryTransactorRaw

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

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

func (*AgentRegistryTransactorRaw) Transact

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

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

func (*AgentRegistryTransactorRaw) Transfer

func (_AgentRegistry *AgentRegistryTransactorRaw) 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 AgentRegistryTransactorSession

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

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

func (*AgentRegistryTransactorSession) Deregister

func (_AgentRegistry *AgentRegistryTransactorSession) Deregister(id [32]byte) (*types.Transaction, error)

Deregister is a paid mutator transaction binding the contract method 0x20813154.

Solidity: function deregister(bytes32 id) returns()

func (*AgentRegistryTransactorSession) Initialize

func (_AgentRegistry *AgentRegistryTransactorSession) Initialize(_token common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _token) returns()

func (*AgentRegistryTransactorSession) Register

func (_AgentRegistry *AgentRegistryTransactorSession) Register(addStake *big.Int, fee *big.Int, owner common.Address, agentId [32]byte, name string, tags []string) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xcca4cb64.

Solidity: function register(uint256 addStake, uint256 fee, address owner, bytes32 agentId, string name, string[] tags) returns()

func (*AgentRegistryTransactorSession) RenounceOwnership

func (_AgentRegistry *AgentRegistryTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*AgentRegistryTransactorSession) SetMinStake

func (_AgentRegistry *AgentRegistryTransactorSession) SetMinStake(_minStake *big.Int) (*types.Transaction, error)

SetMinStake is a paid mutator transaction binding the contract method 0x8c80fd90.

Solidity: function setMinStake(uint256 _minStake) returns()

func (*AgentRegistryTransactorSession) TransferOwnership

func (_AgentRegistry *AgentRegistryTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

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