world
import "command-line-arguments"
Index
- Variables
- func GetWorldABI() (contractAbi abi.ABI)
- type World
- type WorldCaller
- func NewWorldCaller(address common.Address, caller bind.ContractCaller) (*WorldCaller, error)
- func (_World *WorldCaller) GetComponent(opts *bind.CallOpts, id *big.Int) (common.Address, error)
- func (_World *WorldCaller) GetComponentIdFromAddress(opts *bind.CallOpts, componentAddr common.Address) (*big.Int, error)
- func (_World *WorldCaller) GetNumEntities(opts *bind.CallOpts) (*big.Int, error)
- func (_World *WorldCaller) HasEntity(opts *bind.CallOpts, entity *big.Int) (bool, error)
- type WorldCallerRaw
- type WorldCallerSession
- func (_World *WorldCallerSession) GetComponent(id *big.Int) (common.Address, error)
- func (_World *WorldCallerSession) GetComponentIdFromAddress(componentAddr common.Address) (*big.Int, error)
- func (_World *WorldCallerSession) GetNumEntities() (*big.Int, error)
- func (_World *WorldCallerSession) HasEntity(entity *big.Int) (bool, error)
- type WorldComponentRegistered
- type WorldComponentRegisteredIterator
- type WorldComponentValueRemoved
- type WorldComponentValueRemovedIterator
- type WorldComponentValueSet
- type WorldComponentValueSetIterator
- type WorldFilterer
- func NewWorldFilterer(address common.Address, filterer bind.ContractFilterer) (*WorldFilterer, error)
- func (_World *WorldFilterer) FilterComponentRegistered(opts *bind.FilterOpts, componentId []*big.Int) (*WorldComponentRegisteredIterator, error)
- func (_World *WorldFilterer) FilterComponentValueRemoved(opts *bind.FilterOpts, componentId []*big.Int, component []common.Address, entity []*big.Int) (*WorldComponentValueRemovedIterator, error)
- func (_World *WorldFilterer) FilterComponentValueSet(opts *bind.FilterOpts, componentId []*big.Int, component []common.Address, entity []*big.Int) (*WorldComponentValueSetIterator, error)
- func (_World *WorldFilterer) ParseComponentRegistered(log types.Log) (*WorldComponentRegistered, error)
- func (_World *WorldFilterer) ParseComponentValueRemoved(log types.Log) (*WorldComponentValueRemoved, error)
- func (_World *WorldFilterer) ParseComponentValueSet(log types.Log) (*WorldComponentValueSet, error)
- func (_World *WorldFilterer) WatchComponentRegistered(opts *bind.WatchOpts, sink chan<- *WorldComponentRegistered, componentId []*big.Int) (event.Subscription, error)
- func (_World *WorldFilterer) WatchComponentValueRemoved(opts *bind.WatchOpts, sink chan<- *WorldComponentValueRemoved, componentId []*big.Int, component []common.Address, entity []*big.Int) (event.Subscription, error)
- func (_World *WorldFilterer) WatchComponentValueSet(opts *bind.WatchOpts, sink chan<- *WorldComponentValueSet, componentId []*big.Int, component []common.Address, entity []*big.Int) (event.Subscription, error)
- type WorldRaw
- func (_World *WorldRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
- func (_World *WorldRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_World *WorldRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type WorldSession
- func (_World *WorldSession) GetComponent(id *big.Int) (common.Address, error)
- func (_World *WorldSession) GetComponentIdFromAddress(componentAddr common.Address) (*big.Int, error)
- func (_World *WorldSession) GetNumEntities() (*big.Int, error)
- func (_World *WorldSession) HasEntity(entity *big.Int) (bool, error)
- func (_World *WorldSession) RegisterComponent(componentAddr common.Address, id *big.Int) (*types.Transaction, error)
- func (_World *WorldSession) RegisterComponentValueRemoved(component common.Address, entity *big.Int) (*types.Transaction, error)
- func (_World *WorldSession) RegisterComponentValueSet(component common.Address, entity *big.Int, data []byte) (*types.Transaction, error)
- type WorldTransactor
- func NewWorldTransactor(address common.Address, transactor bind.ContractTransactor) (*WorldTransactor, error)
- func (_World *WorldTransactor) RegisterComponent(opts *bind.TransactOpts, componentAddr common.Address, id *big.Int) (*types.Transaction, error)
- func (_World *WorldTransactor) RegisterComponentValueRemoved(opts *bind.TransactOpts, component common.Address, entity *big.Int) (*types.Transaction, error)
- func (_World *WorldTransactor) RegisterComponentValueSet(opts *bind.TransactOpts, component common.Address, entity *big.Int, data []byte) (*types.Transaction, error)
- type WorldTransactorRaw
- type WorldTransactorSession
- func (_World *WorldTransactorSession) RegisterComponent(componentAddr common.Address, id *big.Int) (*types.Transaction, error)
- func (_World *WorldTransactorSession) RegisterComponentValueRemoved(component common.Address, entity *big.Int) (*types.Transaction, error)
- func (_World *WorldTransactorSession) RegisterComponentValueSet(component common.Address, entity *big.Int, data []byte) (*types.Transaction, error)
Variables
WorldABI is the input ABI used to generate the binding from. Deprecated: Use WorldMetaData.ABI instead.
var WorldABI = WorldMetaData.ABI
WorldMetaData contains all meta data concerning the World contract.
var WorldMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"componentId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"component\",\"type\":\"address\"}],\"name\":\"ComponentRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"componentId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"component\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"entity\",\"type\":\"uint256\"}],\"name\":\"ComponentValueRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"componentId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"component\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"entity\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"ComponentValueSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"getComponent\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"componentAddr\",\"type\":\"address\"}],\"name\":\"getComponentIdFromAddress\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNumEntities\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"entity\",\"type\":\"uint256\"}],\"name\":\"hasEntity\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"componentAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"registerComponent\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"component\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"entity\",\"type\":\"uint256\"}],\"name\":\"registerComponentValueRemoved\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"component\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"entity\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"registerComponentValueSet\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
func GetWorldABI (opens in a new tab)
func GetWorldABI() (contractAbi abi.ABI)
type World (opens in a new tab)
World is an auto generated Go binding around an Ethereum contract.
type World struct {
WorldCaller // Read-only binding to the contract
WorldTransactor // Write-only binding to the contract
WorldFilterer // Log filterer for contract events
}
func NewWorld (opens in a new tab)
func NewWorld(address common.Address, backend bind.ContractBackend) (*World, error)
NewWorld creates a new instance of World, bound to a specific deployed contract.
type WorldCaller (opens in a new tab)
WorldCaller is an auto generated read-only Go binding around an Ethereum contract.
type WorldCaller struct {
// contains filtered or unexported fields
}
func NewWorldCaller (opens in a new tab)
func NewWorldCaller(address common.Address, caller bind.ContractCaller) (*WorldCaller, error)
NewWorldCaller creates a new read-only instance of World, bound to a specific deployed contract.
func (*WorldCaller) GetComponent (opens in a new tab)
func (_World *WorldCaller) GetComponent(opts *bind.CallOpts, id *big.Int) (common.Address, error)
GetComponent is a free data retrieval call binding the contract method 0x4f27da18.
Solidity: function getComponent(uint256 id) view returns(address)
func (*WorldCaller) GetComponentIdFromAddress (opens in a new tab)
func (_World *WorldCaller) GetComponentIdFromAddress(opts *bind.CallOpts, componentAddr common.Address) (*big.Int, error)
GetComponentIdFromAddress is a free data retrieval call binding the contract method 0x9f54f545.
Solidity: function getComponentIdFromAddress(address componentAddr) view returns(uint256)
func (*WorldCaller) GetNumEntities (opens in a new tab)
func (_World *WorldCaller) GetNumEntities(opts *bind.CallOpts) (*big.Int, error)
GetNumEntities is a free data retrieval call binding the contract method 0xd7ecf62b.
Solidity: function getNumEntities() view returns(uint256)
func (*WorldCaller) HasEntity (opens in a new tab)
func (_World *WorldCaller) HasEntity(opts *bind.CallOpts, entity *big.Int) (bool, error)
HasEntity is a free data retrieval call binding the contract method 0xe3d12875.
Solidity: function hasEntity(uint256 entity) view returns(bool)
type WorldCallerRaw (opens in a new tab)
WorldCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type WorldCallerRaw struct {
Contract *WorldCaller // Generic read-only contract binding to access the raw methods on
}
func (*WorldCallerRaw) Call (opens in a new tab)
func (_World *WorldCallerRaw) 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 WorldCallerSession (opens in a new tab)
WorldCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type WorldCallerSession struct {
Contract *WorldCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
func (*WorldCallerSession) GetComponent (opens in a new tab)
func (_World *WorldCallerSession) GetComponent(id *big.Int) (common.Address, error)
GetComponent is a free data retrieval call binding the contract method 0x4f27da18.
Solidity: function getComponent(uint256 id) view returns(address)
func (*WorldCallerSession) GetComponentIdFromAddress (opens in a new tab)
func (_World *WorldCallerSession) GetComponentIdFromAddress(componentAddr common.Address) (*big.Int, error)
GetComponentIdFromAddress is a free data retrieval call binding the contract method 0x9f54f545.
Solidity: function getComponentIdFromAddress(address componentAddr) view returns(uint256)
func (*WorldCallerSession) GetNumEntities (opens in a new tab)
func (_World *WorldCallerSession) GetNumEntities() (*big.Int, error)
GetNumEntities is a free data retrieval call binding the contract method 0xd7ecf62b.
Solidity: function getNumEntities() view returns(uint256)
func (*WorldCallerSession) HasEntity (opens in a new tab)
func (_World *WorldCallerSession) HasEntity(entity *big.Int) (bool, error)
HasEntity is a free data retrieval call binding the contract method 0xe3d12875.
Solidity: function hasEntity(uint256 entity) view returns(bool)
type WorldComponentRegistered (opens in a new tab)
WorldComponentRegistered represents a ComponentRegistered event raised by the World contract.
type WorldComponentRegistered struct {
ComponentId *big.Int
Component common.Address
Raw types.Log // Blockchain specific contextual infos
}
type WorldComponentRegisteredIterator (opens in a new tab)
WorldComponentRegisteredIterator is returned from FilterComponentRegistered and is used to iterate over the raw logs and unpacked data for ComponentRegistered events raised by the World contract.
type WorldComponentRegisteredIterator struct {
Event *WorldComponentRegistered // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
func (*WorldComponentRegisteredIterator) Close (opens in a new tab)
func (it *WorldComponentRegisteredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorldComponentRegisteredIterator) Error (opens in a new tab)
func (it *WorldComponentRegisteredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorldComponentRegisteredIterator) Next (opens in a new tab)
func (it *WorldComponentRegisteredIterator) Next() bool
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 WorldComponentValueRemoved (opens in a new tab)
WorldComponentValueRemoved represents a ComponentValueRemoved event raised by the World contract.
type WorldComponentValueRemoved struct {
ComponentId *big.Int
Component common.Address
Entity *big.Int
Raw types.Log // Blockchain specific contextual infos
}
type WorldComponentValueRemovedIterator (opens in a new tab)
WorldComponentValueRemovedIterator is returned from FilterComponentValueRemoved and is used to iterate over the raw logs and unpacked data for ComponentValueRemoved events raised by the World contract.
type WorldComponentValueRemovedIterator struct {
Event *WorldComponentValueRemoved // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
func (*WorldComponentValueRemovedIterator) Close (opens in a new tab)
func (it *WorldComponentValueRemovedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorldComponentValueRemovedIterator) Error (opens in a new tab)
func (it *WorldComponentValueRemovedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorldComponentValueRemovedIterator) Next (opens in a new tab)
func (it *WorldComponentValueRemovedIterator) Next() bool
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 WorldComponentValueSet (opens in a new tab)
WorldComponentValueSet represents a ComponentValueSet event raised by the World contract.
type WorldComponentValueSet struct {
ComponentId *big.Int
Component common.Address
Entity *big.Int
Data []byte
Raw types.Log // Blockchain specific contextual infos
}
type WorldComponentValueSetIterator (opens in a new tab)
WorldComponentValueSetIterator is returned from FilterComponentValueSet and is used to iterate over the raw logs and unpacked data for ComponentValueSet events raised by the World contract.
type WorldComponentValueSetIterator struct {
Event *WorldComponentValueSet // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
func (*WorldComponentValueSetIterator) Close (opens in a new tab)
func (it *WorldComponentValueSetIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*WorldComponentValueSetIterator) Error (opens in a new tab)
func (it *WorldComponentValueSetIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*WorldComponentValueSetIterator) Next (opens in a new tab)
func (it *WorldComponentValueSetIterator) Next() bool
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 WorldFilterer (opens in a new tab)
WorldFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type WorldFilterer struct {
// contains filtered or unexported fields
}
func NewWorldFilterer (opens in a new tab)
func NewWorldFilterer(address common.Address, filterer bind.ContractFilterer) (*WorldFilterer, error)
NewWorldFilterer creates a new log filterer instance of World, bound to a specific deployed contract.
func (*WorldFilterer) FilterComponentRegistered (opens in a new tab)
func (_World *WorldFilterer) FilterComponentRegistered(opts *bind.FilterOpts, componentId []*big.Int) (*WorldComponentRegisteredIterator, error)
FilterComponentRegistered is a free log retrieval operation binding the contract event 0xe065b93b78fd9ec871610269cc875e4f300f3cf0ed219355a75c09ffdc72c185.
Solidity: event ComponentRegistered(uint256 indexed componentId, address component)
func (*WorldFilterer) FilterComponentValueRemoved (opens in a new tab)
func (_World *WorldFilterer) FilterComponentValueRemoved(opts *bind.FilterOpts, componentId []*big.Int, component []common.Address, entity []*big.Int) (*WorldComponentValueRemovedIterator, error)
FilterComponentValueRemoved is a free log retrieval operation binding the contract event 0x6dd56823030ae6d8ae09cbfb8972c4e9494e67b209c4ab6300c21d73e269b350.
Solidity: event ComponentValueRemoved(uint256 indexed componentId, address indexed component, uint256 indexed entity)
func (*WorldFilterer) FilterComponentValueSet (opens in a new tab)
func (_World *WorldFilterer) FilterComponentValueSet(opts *bind.FilterOpts, componentId []*big.Int, component []common.Address, entity []*big.Int) (*WorldComponentValueSetIterator, error)
FilterComponentValueSet is a free log retrieval operation binding the contract event 0x6ac31c38682e0128240cf68316d7ae751020d8f74c614e2a30278afcec8a6073.
Solidity: event ComponentValueSet(uint256 indexed componentId, address indexed component, uint256 indexed entity, bytes data)
func (*WorldFilterer) ParseComponentRegistered (opens in a new tab)
func (_World *WorldFilterer) ParseComponentRegistered(log types.Log) (*WorldComponentRegistered, error)
ParseComponentRegistered is a log parse operation binding the contract event 0xe065b93b78fd9ec871610269cc875e4f300f3cf0ed219355a75c09ffdc72c185.
Solidity: event ComponentRegistered(uint256 indexed componentId, address component)
func (*WorldFilterer) ParseComponentValueRemoved (opens in a new tab)
func (_World *WorldFilterer) ParseComponentValueRemoved(log types.Log) (*WorldComponentValueRemoved, error)
ParseComponentValueRemoved is a log parse operation binding the contract event 0x6dd56823030ae6d8ae09cbfb8972c4e9494e67b209c4ab6300c21d73e269b350.
Solidity: event ComponentValueRemoved(uint256 indexed componentId, address indexed component, uint256 indexed entity)
func (*WorldFilterer) ParseComponentValueSet (opens in a new tab)
func (_World *WorldFilterer) ParseComponentValueSet(log types.Log) (*WorldComponentValueSet, error)
ParseComponentValueSet is a log parse operation binding the contract event 0x6ac31c38682e0128240cf68316d7ae751020d8f74c614e2a30278afcec8a6073.
Solidity: event ComponentValueSet(uint256 indexed componentId, address indexed component, uint256 indexed entity, bytes data)
func (*WorldFilterer) WatchComponentRegistered (opens in a new tab)
func (_World *WorldFilterer) WatchComponentRegistered(opts *bind.WatchOpts, sink chan<- *WorldComponentRegistered, componentId []*big.Int) (event.Subscription, error)
WatchComponentRegistered is a free log subscription operation binding the contract event 0xe065b93b78fd9ec871610269cc875e4f300f3cf0ed219355a75c09ffdc72c185.
Solidity: event ComponentRegistered(uint256 indexed componentId, address component)
func (*WorldFilterer) WatchComponentValueRemoved (opens in a new tab)
func (_World *WorldFilterer) WatchComponentValueRemoved(opts *bind.WatchOpts, sink chan<- *WorldComponentValueRemoved, componentId []*big.Int, component []common.Address, entity []*big.Int) (event.Subscription, error)
WatchComponentValueRemoved is a free log subscription operation binding the contract event 0x6dd56823030ae6d8ae09cbfb8972c4e9494e67b209c4ab6300c21d73e269b350.
Solidity: event ComponentValueRemoved(uint256 indexed componentId, address indexed component, uint256 indexed entity)
func (*WorldFilterer) WatchComponentValueSet (opens in a new tab)
func (_World *WorldFilterer) WatchComponentValueSet(opts *bind.WatchOpts, sink chan<- *WorldComponentValueSet, componentId []*big.Int, component []common.Address, entity []*big.Int) (event.Subscription, error)
WatchComponentValueSet is a free log subscription operation binding the contract event 0x6ac31c38682e0128240cf68316d7ae751020d8f74c614e2a30278afcec8a6073.
Solidity: event ComponentValueSet(uint256 indexed componentId, address indexed component, uint256 indexed entity, bytes data)
type WorldRaw (opens in a new tab)
WorldRaw is an auto generated low-level Go binding around an Ethereum contract.
type WorldRaw struct {
Contract *World // Generic contract binding to access the raw methods on
}
func (*WorldRaw) Call (opens in a new tab)
func (_World *WorldRaw) 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 (*WorldRaw) Transact (opens in a new tab)
func (_World *WorldRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*WorldRaw) Transfer (opens in a new tab)
func (_World *WorldRaw) 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 WorldSession (opens in a new tab)
WorldSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
type WorldSession struct {
Contract *World // 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
}
func (*WorldSession) GetComponent (opens in a new tab)
func (_World *WorldSession) GetComponent(id *big.Int) (common.Address, error)
GetComponent is a free data retrieval call binding the contract method 0x4f27da18.
Solidity: function getComponent(uint256 id) view returns(address)
func (*WorldSession) GetComponentIdFromAddress (opens in a new tab)
func (_World *WorldSession) GetComponentIdFromAddress(componentAddr common.Address) (*big.Int, error)
GetComponentIdFromAddress is a free data retrieval call binding the contract method 0x9f54f545.
Solidity: function getComponentIdFromAddress(address componentAddr) view returns(uint256)
func (*WorldSession) GetNumEntities (opens in a new tab)
func (_World *WorldSession) GetNumEntities() (*big.Int, error)
GetNumEntities is a free data retrieval call binding the contract method 0xd7ecf62b.
Solidity: function getNumEntities() view returns(uint256)
func (*WorldSession) HasEntity (opens in a new tab)
func (_World *WorldSession) HasEntity(entity *big.Int) (bool, error)
HasEntity is a free data retrieval call binding the contract method 0xe3d12875.
Solidity: function hasEntity(uint256 entity) view returns(bool)
func (*WorldSession) RegisterComponent (opens in a new tab)
func (_World *WorldSession) RegisterComponent(componentAddr common.Address, id *big.Int) (*types.Transaction, error)
RegisterComponent is a paid mutator transaction binding the contract method 0xf3034770.
Solidity: function registerComponent(address componentAddr, uint256 id) returns()
func (*WorldSession) RegisterComponentValueRemoved (opens in a new tab)
func (_World *WorldSession) RegisterComponentValueRemoved(component common.Address, entity *big.Int) (*types.Transaction, error)
RegisterComponentValueRemoved is a paid mutator transaction binding the contract method 0xd803064a.
Solidity: function registerComponentValueRemoved(address component, uint256 entity) returns()
func (*WorldSession) RegisterComponentValueSet (opens in a new tab)
func (_World *WorldSession) RegisterComponentValueSet(component common.Address, entity *big.Int, data []byte) (*types.Transaction, error)
RegisterComponentValueSet is a paid mutator transaction binding the contract method 0xaf104e40.
Solidity: function registerComponentValueSet(address component, uint256 entity, bytes data) returns()
type WorldTransactor (opens in a new tab)
WorldTransactor is an auto generated write-only Go binding around an Ethereum contract.
type WorldTransactor struct {
// contains filtered or unexported fields
}
func NewWorldTransactor (opens in a new tab)
func NewWorldTransactor(address common.Address, transactor bind.ContractTransactor) (*WorldTransactor, error)
NewWorldTransactor creates a new write-only instance of World, bound to a specific deployed contract.
func (*WorldTransactor) RegisterComponent (opens in a new tab)
func (_World *WorldTransactor) RegisterComponent(opts *bind.TransactOpts, componentAddr common.Address, id *big.Int) (*types.Transaction, error)
RegisterComponent is a paid mutator transaction binding the contract method 0xf3034770.
Solidity: function registerComponent(address componentAddr, uint256 id) returns()
func (*WorldTransactor) RegisterComponentValueRemoved (opens in a new tab)
func (_World *WorldTransactor) RegisterComponentValueRemoved(opts *bind.TransactOpts, component common.Address, entity *big.Int) (*types.Transaction, error)
RegisterComponentValueRemoved is a paid mutator transaction binding the contract method 0xd803064a.
Solidity: function registerComponentValueRemoved(address component, uint256 entity) returns()
func (*WorldTransactor) RegisterComponentValueSet (opens in a new tab)
func (_World *WorldTransactor) RegisterComponentValueSet(opts *bind.TransactOpts, component common.Address, entity *big.Int, data []byte) (*types.Transaction, error)
RegisterComponentValueSet is a paid mutator transaction binding the contract method 0xaf104e40.
Solidity: function registerComponentValueSet(address component, uint256 entity, bytes data) returns()
type WorldTransactorRaw (opens in a new tab)
WorldTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type WorldTransactorRaw struct {
Contract *WorldTransactor // Generic write-only contract binding to access the raw methods on
}
func (*WorldTransactorRaw) Transact (opens in a new tab)
func (_World *WorldTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*WorldTransactorRaw) Transfer (opens in a new tab)
func (_World *WorldTransactorRaw) 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 WorldTransactorSession (opens in a new tab)
WorldTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type WorldTransactorSession struct {
Contract *WorldTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
func (*WorldTransactorSession) RegisterComponent (opens in a new tab)
func (_World *WorldTransactorSession) RegisterComponent(componentAddr common.Address, id *big.Int) (*types.Transaction, error)
RegisterComponent is a paid mutator transaction binding the contract method 0xf3034770.
Solidity: function registerComponent(address componentAddr, uint256 id) returns()
func (*WorldTransactorSession) RegisterComponentValueRemoved (opens in a new tab)
func (_World *WorldTransactorSession) RegisterComponentValueRemoved(component common.Address, entity *big.Int) (*types.Transaction, error)
RegisterComponentValueRemoved is a paid mutator transaction binding the contract method 0xd803064a.
Solidity: function registerComponentValueRemoved(address component, uint256 entity) returns()
func (*WorldTransactorSession) RegisterComponentValueSet (opens in a new tab)
func (_World *WorldTransactorSession) RegisterComponentValueSet(component common.Address, entity *big.Int, data []byte) (*types.Transaction, error)
RegisterComponentValueSet is a paid mutator transaction binding the contract method 0xaf104e40.
Solidity: function registerComponentValueSet(address component, uint256 entity, bytes data) returns()
Generated by gomarkdoc (opens in a new tab)