Documentation ¶
Index ¶
- Variables
- type CallableCluster
- type Simcontract
- type SimcontractCaller
- type SimcontractCallerRaw
- type SimcontractCallerSession
- type SimcontractClusterLiquidated
- type SimcontractClusterLiquidatedIterator
- type SimcontractClusterReactivated
- type SimcontractClusterReactivatedIterator
- type SimcontractFeeRecipientAddressUpdated
- type SimcontractFeeRecipientAddressUpdatedIterator
- type SimcontractFilterer
- func (_Simcontract *SimcontractFilterer) FilterClusterLiquidated(opts *bind.FilterOpts, owner []common.Address) (*SimcontractClusterLiquidatedIterator, error)
- func (_Simcontract *SimcontractFilterer) FilterClusterReactivated(opts *bind.FilterOpts, owner []common.Address) (*SimcontractClusterReactivatedIterator, error)
- func (_Simcontract *SimcontractFilterer) FilterFeeRecipientAddressUpdated(opts *bind.FilterOpts, owner []common.Address) (*SimcontractFeeRecipientAddressUpdatedIterator, error)
- func (_Simcontract *SimcontractFilterer) FilterOperatorAdded(opts *bind.FilterOpts, operatorId []uint64, owner []common.Address) (*SimcontractOperatorAddedIterator, error)
- func (_Simcontract *SimcontractFilterer) FilterOperatorRemoved(opts *bind.FilterOpts, operatorId []uint64) (*SimcontractOperatorRemovedIterator, error)
- func (_Simcontract *SimcontractFilterer) FilterValidatorAdded(opts *bind.FilterOpts, owner []common.Address) (*SimcontractValidatorAddedIterator, error)
- func (_Simcontract *SimcontractFilterer) FilterValidatorRemoved(opts *bind.FilterOpts, owner []common.Address) (*SimcontractValidatorRemovedIterator, error)
- func (_Simcontract *SimcontractFilterer) ParseClusterLiquidated(log types.Log) (*SimcontractClusterLiquidated, error)
- func (_Simcontract *SimcontractFilterer) ParseClusterReactivated(log types.Log) (*SimcontractClusterReactivated, error)
- func (_Simcontract *SimcontractFilterer) ParseFeeRecipientAddressUpdated(log types.Log) (*SimcontractFeeRecipientAddressUpdated, error)
- func (_Simcontract *SimcontractFilterer) ParseOperatorAdded(log types.Log) (*SimcontractOperatorAdded, error)
- func (_Simcontract *SimcontractFilterer) ParseOperatorRemoved(log types.Log) (*SimcontractOperatorRemoved, error)
- func (_Simcontract *SimcontractFilterer) ParseValidatorAdded(log types.Log) (*SimcontractValidatorAdded, error)
- func (_Simcontract *SimcontractFilterer) ParseValidatorRemoved(log types.Log) (*SimcontractValidatorRemoved, error)
- func (_Simcontract *SimcontractFilterer) WatchClusterLiquidated(opts *bind.WatchOpts, sink chan<- *SimcontractClusterLiquidated, ...) (event.Subscription, error)
- func (_Simcontract *SimcontractFilterer) WatchClusterReactivated(opts *bind.WatchOpts, sink chan<- *SimcontractClusterReactivated, ...) (event.Subscription, error)
- func (_Simcontract *SimcontractFilterer) WatchFeeRecipientAddressUpdated(opts *bind.WatchOpts, sink chan<- *SimcontractFeeRecipientAddressUpdated, ...) (event.Subscription, error)
- func (_Simcontract *SimcontractFilterer) WatchOperatorAdded(opts *bind.WatchOpts, sink chan<- *SimcontractOperatorAdded, ...) (event.Subscription, error)
- func (_Simcontract *SimcontractFilterer) WatchOperatorRemoved(opts *bind.WatchOpts, sink chan<- *SimcontractOperatorRemoved, ...) (event.Subscription, error)
- func (_Simcontract *SimcontractFilterer) WatchValidatorAdded(opts *bind.WatchOpts, sink chan<- *SimcontractValidatorAdded, ...) (event.Subscription, error)
- func (_Simcontract *SimcontractFilterer) WatchValidatorRemoved(opts *bind.WatchOpts, sink chan<- *SimcontractValidatorRemoved, ...) (event.Subscription, error)
- type SimcontractOperatorAdded
- type SimcontractOperatorAddedIterator
- type SimcontractOperatorRemoved
- type SimcontractOperatorRemovedIterator
- type SimcontractRaw
- func (_Simcontract *SimcontractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Simcontract *SimcontractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Simcontract *SimcontractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SimcontractSession
- func (_Simcontract *SimcontractSession) Liquidate(clusterOwner common.Address, operatorIds []uint64, cluster CallableCluster) (*types.Transaction, error)
- func (_Simcontract *SimcontractSession) Reactivate(operatorIds []uint64, amount *big.Int, cluster CallableCluster) (*types.Transaction, error)
- func (_Simcontract *SimcontractSession) RegisterOperator(publicKey []byte, fee *big.Int) (*types.Transaction, error)
- func (_Simcontract *SimcontractSession) RegisterValidator(publicKey []byte, operatorIds []uint64, sharesData []byte, amount *big.Int, ...) (*types.Transaction, error)
- func (_Simcontract *SimcontractSession) RemoveOperator(operatorId uint64) (*types.Transaction, error)
- func (_Simcontract *SimcontractSession) RemoveValidator(publicKey []byte, operatorIds []uint64, cluster CallableCluster) (*types.Transaction, error)
- func (_Simcontract *SimcontractSession) SetFeeRecipientAddress(recipientAddress common.Address) (*types.Transaction, error)
- type SimcontractTransactor
- func (_Simcontract *SimcontractTransactor) Liquidate(opts *bind.TransactOpts, clusterOwner common.Address, operatorIds []uint64, ...) (*types.Transaction, error)
- func (_Simcontract *SimcontractTransactor) Reactivate(opts *bind.TransactOpts, operatorIds []uint64, amount *big.Int, ...) (*types.Transaction, error)
- func (_Simcontract *SimcontractTransactor) RegisterOperator(opts *bind.TransactOpts, publicKey []byte, fee *big.Int) (*types.Transaction, error)
- func (_Simcontract *SimcontractTransactor) RegisterValidator(opts *bind.TransactOpts, publicKey []byte, operatorIds []uint64, ...) (*types.Transaction, error)
- func (_Simcontract *SimcontractTransactor) RemoveOperator(opts *bind.TransactOpts, operatorId uint64) (*types.Transaction, error)
- func (_Simcontract *SimcontractTransactor) RemoveValidator(opts *bind.TransactOpts, publicKey []byte, operatorIds []uint64, ...) (*types.Transaction, error)
- func (_Simcontract *SimcontractTransactor) SetFeeRecipientAddress(opts *bind.TransactOpts, recipientAddress common.Address) (*types.Transaction, error)
- type SimcontractTransactorRaw
- type SimcontractTransactorSession
- func (_Simcontract *SimcontractTransactorSession) Liquidate(clusterOwner common.Address, operatorIds []uint64, cluster CallableCluster) (*types.Transaction, error)
- func (_Simcontract *SimcontractTransactorSession) Reactivate(operatorIds []uint64, amount *big.Int, cluster CallableCluster) (*types.Transaction, error)
- func (_Simcontract *SimcontractTransactorSession) RegisterOperator(publicKey []byte, fee *big.Int) (*types.Transaction, error)
- func (_Simcontract *SimcontractTransactorSession) RegisterValidator(publicKey []byte, operatorIds []uint64, sharesData []byte, amount *big.Int, ...) (*types.Transaction, error)
- func (_Simcontract *SimcontractTransactorSession) RemoveOperator(operatorId uint64) (*types.Transaction, error)
- func (_Simcontract *SimcontractTransactorSession) RemoveValidator(publicKey []byte, operatorIds []uint64, cluster CallableCluster) (*types.Transaction, error)
- func (_Simcontract *SimcontractTransactorSession) SetFeeRecipientAddress(recipientAddress common.Address) (*types.Transaction, error)
- type SimcontractValidatorAdded
- type SimcontractValidatorAddedIterator
- type SimcontractValidatorRemoved
- type SimcontractValidatorRemovedIterator
Constants ¶
This section is empty.
Variables ¶
var SimcontractABI = SimcontractMetaData.ABI
SimcontractABI is the input ABI used to generate the binding from. Deprecated: Use SimcontractMetaData.ABI instead.
var SimcontractBin = SimcontractMetaData.Bin
SimcontractBin is the compiled bytecode used for deploying new contracts. Deprecated: Use SimcontractMetaData.Bin instead.
var SimcontractMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structCallable.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"}],\"name\":\"ClusterLiquidated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structCallable.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"}],\"name\":\"ClusterReactivated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipientAddress\",\"type\":\"address\"}],\"name\":\"FeeRecipientAddressUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"operatorId\",\"type\":\"uint64\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"name\":\"OperatorAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"operatorId\",\"type\":\"uint64\"}],\"name\":\"OperatorRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"shares\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structCallable.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"}],\"name\":\"ValidatorAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structCallable.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"}],\"name\":\"ValidatorRemoved\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"clusterOwner\",\"type\":\"address\"},{\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"internalType\":\"structCallable.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"}],\"name\":\"liquidate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"internalType\":\"structCallable.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"}],\"name\":\"reactivate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"name\":\"registerOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"},{\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"internalType\":\"bytes\",\"name\":\"sharesData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"internalType\":\"structCallable.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"}],\"name\":\"registerValidator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"operatorId\",\"type\":\"uint64\"}],\"name\":\"removeOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"publicKey\",\"type\":\"bytes\"},{\"internalType\":\"uint64[]\",\"name\":\"operatorIds\",\"type\":\"uint64[]\"},{\"components\":[{\"internalType\":\"uint32\",\"name\":\"validatorCount\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"networkFeeIndex\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"active\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"internalType\":\"structCallable.Cluster\",\"name\":\"cluster\",\"type\":\"tuple\"}],\"name\":\"removeValidator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipientAddress\",\"type\":\"address\"}],\"name\":\"setFeeRecipientAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x608060405260008060006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555034801561003957600080fd5b50610f40806100496000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80635fec6dd01161005b5780635fec6dd0146100d6578063bf0f2fb2146100f2578063dbcdc2cc1461010e578063ff212c5c1461012a5761007d565b806306e8fb9c1461008257806312b3fc191461009e5780632e168e0e146100ba575b600080fd5b61009c60048036038101906100979190610740565b610146565b005b6100b860048036038101906100b3919061086f565b6101a7565b005b6100d460048036038101906100cf9190610904565b610204565b005b6100f060048036038101906100eb9190610931565b61023e565b005b61010c60048036038101906101079190610a03565b610296565b005b61012860048036038101906101239190610a72565b6102eb565b005b610144600480360381019061013f9190610a9f565b61033c565b005b3373ffffffffffffffffffffffffffffffffffffffff167f48a3ea0796746043948f6341d17ff8200937b99262a0b48c2663b951ed7114e586898988888760405161019696959493929190610c9f565b60405180910390a250505050505050565b3373ffffffffffffffffffffffffffffffffffffffff167fccf4370403e5fbbde0cd3f13426479dcd8a5916b05db424b7a2c04978cf8ce6e84848888866040516101f5959493929190610d89565b60405180910390a25050505050565b8067ffffffffffffffff167f0e0ba6c2b04de36d6d509ec5bd155c43a9fe862f8052096dd54f3902a74cca3e60405160405180910390a250565b3373ffffffffffffffffffffffffffffffffffffffff167fc803f8c01343fcdaf32068f4c283951623ef2b3fa0c547551931356f456b685985858460405161028893929190610dd2565b60405180910390a250505050565b3373ffffffffffffffffffffffffffffffffffffffff167f1fce24c373e07f89214e9187598635036111dbb363e99f4ce498488cdc66e68883836040516102de929190610e04565b60405180910390a2505050565b3373ffffffffffffffffffffffffffffffffffffffff167f259235c230d57def1521657e7c7951d3b385e76193378bc87ef6b56bc2ec3548826040516103319190610e43565b60405180910390a250565b60016000808282829054906101000a900467ffffffffffffffff166103619190610e8d565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900467ffffffffffffffff1667ffffffffffffffff167fd839f31c14bd632f424e307b36abff63ca33684f77f28e35dc13718ef338f7f48585856040516103f093929190610ed8565b60405180910390a3505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f84011261043657610435610411565b5b8235905067ffffffffffffffff81111561045357610452610416565b5b60208301915083600182028301111561046f5761046e61041b565b5b9250929050565b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6104bf82610476565b810181811067ffffffffffffffff821117156104de576104dd610487565b5b80604052505050565b60006104f16103fd565b90506104fd82826104b6565b919050565b600067ffffffffffffffff82111561051d5761051c610487565b5b602082029050602081019050919050565b600067ffffffffffffffff82169050919050565b61054b8161052e565b811461055657600080fd5b50565b60008135905061056881610542565b92915050565b600061058161057c84610502565b6104e7565b905080838252602082019050602084028301858111156105a4576105a361041b565b5b835b818110156105cd57806105b98882610559565b8452602084019350506020810190506105a6565b5050509392505050565b600082601f8301126105ec576105eb610411565b5b81356105fc84826020860161056e565b91505092915050565b6000819050919050565b61061881610605565b811461062357600080fd5b50565b6000813590506106358161060f565b92915050565b600080fd5b600063ffffffff82169050919050565b61065981610640565b811461066457600080fd5b50565b60008135905061067681610650565b92915050565b60008115159050919050565b6106918161067c565b811461069c57600080fd5b50565b6000813590506106ae81610688565b92915050565b600060a082840312156106ca576106c961063b565b5b6106d460a06104e7565b905060006106e484828501610667565b60008301525060206106f884828501610559565b602083015250604061070c84828501610559565b60408301525060606107208482850161069f565b606083015250608061073484828501610626565b60808301525092915050565b6000806000806000806000610120888a0312156107605761075f610407565b5b600088013567ffffffffffffffff81111561077e5761077d61040c565b5b61078a8a828b01610420565b9750975050602088013567ffffffffffffffff8111156107ad576107ac61040c565b5b6107b98a828b016105d7565b955050604088013567ffffffffffffffff8111156107da576107d961040c565b5b6107e68a828b01610420565b945094505060606107f98a828b01610626565b925050608061080a8a828b016106b4565b91505092959891949750929550565b60008083601f84011261082f5761082e610411565b5b8235905067ffffffffffffffff81111561084c5761084b610416565b5b6020830191508360208202830111156108685761086761041b565b5b9250929050565b600080600080600060e0868803121561088b5761088a610407565b5b600086013567ffffffffffffffff8111156108a9576108a861040c565b5b6108b588828901610420565b9550955050602086013567ffffffffffffffff8111156108d8576108d761040c565b5b6108e488828901610819565b935093505060406108f7888289016106b4565b9150509295509295909350565b60006020828403121561091a57610919610407565b5b600061092884828501610559565b91505092915050565b60008060008060e0858703121561094b5761094a610407565b5b600085013567ffffffffffffffff8111156109695761096861040c565b5b61097587828801610819565b9450945050602061098887828801610626565b9250506040610999878288016106b4565b91505092959194509250565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006109d0826109a5565b9050919050565b6109e0816109c5565b81146109eb57600080fd5b50565b6000813590506109fd816109d7565b92915050565b600080600060e08486031215610a1c57610a1b610407565b5b6000610a2a868287016109ee565b935050602084013567ffffffffffffffff811115610a4b57610a4a61040c565b5b610a57868287016105d7565b9250506040610a68868287016106b4565b9150509250925092565b600060208284031215610a8857610a87610407565b5b6000610a96848285016109ee565b91505092915050565b600080600060408486031215610ab857610ab7610407565b5b600084013567ffffffffffffffff811115610ad657610ad561040c565b5b610ae286828701610420565b93509350506020610af586828701610626565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b610b348161052e565b82525050565b6000610b468383610b2b565b60208301905092915050565b6000602082019050919050565b6000610b6a82610aff565b610b748185610b0a565b9350610b7f83610b1b565b8060005b83811015610bb0578151610b978882610b3a565b9750610ba283610b52565b925050600181019050610b83565b5085935050505092915050565b600082825260208201905092915050565b82818337600083830152505050565b6000610be98385610bbd565b9350610bf6838584610bce565b610bff83610476565b840190509392505050565b610c1381610640565b82525050565b610c228161067c565b82525050565b610c3181610605565b82525050565b60a082016000820151610c4d6000850182610c0a565b506020820151610c606020850182610b2b565b506040820151610c736040850182610b2b565b506060820151610c866060850182610c19565b506080820151610c996080850182610c28565b50505050565b6000610100820190508181036000830152610cba8189610b5f565b90508181036020830152610ccf818789610bdd565b90508181036040830152610ce4818587610bdd565b9050610cf36060830184610c37565b979650505050505050565b6000819050919050565b6000610d176020840184610559565b905092915050565b6000602082019050919050565b6000610d388385610b0a565b9350610d4382610cfe565b8060005b85811015610d7c57610d598284610d08565b610d638882610b3a565b9750610d6e83610d1f565b925050600181019050610d47565b5085925050509392505050565b600060e0820190508181036000830152610da4818789610d2c565b90508181036020830152610db9818587610bdd565b9050610dc86040830184610c37565b9695505050505050565b600060c0820190508181036000830152610ded818587610d2c565b9050610dfc6020830184610c37565b949350505050565b600060c0820190508181036000830152610e1e8185610b5f565b9050610e2d6020830184610c37565b9392505050565b610e3d816109c5565b82525050565b6000602082019050610e586000830184610e34565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610e988261052e565b9150610ea38361052e565b9250828201905067ffffffffffffffff811115610ec357610ec2610e5e565b5b92915050565b610ed281610605565b82525050565b60006040820190508181036000830152610ef3818587610bdd565b9050610f026020830184610ec9565b94935050505056fea26469706673582212206464f7d32909b03e1e16f822f4ba73e56f9b875dfda6cb13f3fc97c182c5e43664736f6c63430008120033",
}
SimcontractMetaData contains all meta data concerning the Simcontract contract.
Functions ¶
This section is empty.
Types ¶
type CallableCluster ¶
type CallableCluster struct { ValidatorCount uint32 NetworkFeeIndex uint64 Index uint64 Active bool Balance *big.Int }
CallableCluster is an auto generated low-level Go binding around an user-defined struct.
type Simcontract ¶
type Simcontract struct { SimcontractCaller // Read-only binding to the contract SimcontractTransactor // Write-only binding to the contract SimcontractFilterer // Log filterer for contract events }
Simcontract is an auto generated Go binding around an Ethereum contract.
func DeploySimcontract ¶
func DeploySimcontract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Simcontract, error)
DeploySimcontract deploys a new Ethereum contract, binding an instance of Simcontract to it.
func NewSimcontract ¶
func NewSimcontract(address common.Address, backend bind.ContractBackend) (*Simcontract, error)
NewSimcontract creates a new instance of Simcontract, bound to a specific deployed contract.
type SimcontractCaller ¶
type SimcontractCaller struct {
// contains filtered or unexported fields
}
SimcontractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewSimcontractCaller ¶
func NewSimcontractCaller(address common.Address, caller bind.ContractCaller) (*SimcontractCaller, error)
NewSimcontractCaller creates a new read-only instance of Simcontract, bound to a specific deployed contract.
type SimcontractCallerRaw ¶
type SimcontractCallerRaw struct {
Contract *SimcontractCaller // Generic read-only contract binding to access the raw methods on
}
SimcontractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*SimcontractCallerRaw) Call ¶
func (_Simcontract *SimcontractCallerRaw) 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 SimcontractCallerSession ¶
type SimcontractCallerSession struct { Contract *SimcontractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
SimcontractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type SimcontractClusterLiquidated ¶
type SimcontractClusterLiquidated struct { Owner common.Address OperatorIds []uint64 Cluster CallableCluster Raw types.Log // Blockchain specific contextual infos }
SimcontractClusterLiquidated represents a ClusterLiquidated event raised by the Simcontract contract.
type SimcontractClusterLiquidatedIterator ¶
type SimcontractClusterLiquidatedIterator struct { Event *SimcontractClusterLiquidated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SimcontractClusterLiquidatedIterator is returned from FilterClusterLiquidated and is used to iterate over the raw logs and unpacked data for ClusterLiquidated events raised by the Simcontract contract.
func (*SimcontractClusterLiquidatedIterator) Close ¶
func (it *SimcontractClusterLiquidatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SimcontractClusterLiquidatedIterator) Error ¶
func (it *SimcontractClusterLiquidatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SimcontractClusterLiquidatedIterator) Next ¶
func (it *SimcontractClusterLiquidatedIterator) 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 SimcontractClusterReactivated ¶
type SimcontractClusterReactivated struct { Owner common.Address OperatorIds []uint64 Cluster CallableCluster Raw types.Log // Blockchain specific contextual infos }
SimcontractClusterReactivated represents a ClusterReactivated event raised by the Simcontract contract.
type SimcontractClusterReactivatedIterator ¶
type SimcontractClusterReactivatedIterator struct { Event *SimcontractClusterReactivated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SimcontractClusterReactivatedIterator is returned from FilterClusterReactivated and is used to iterate over the raw logs and unpacked data for ClusterReactivated events raised by the Simcontract contract.
func (*SimcontractClusterReactivatedIterator) Close ¶
func (it *SimcontractClusterReactivatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SimcontractClusterReactivatedIterator) Error ¶
func (it *SimcontractClusterReactivatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SimcontractClusterReactivatedIterator) Next ¶
func (it *SimcontractClusterReactivatedIterator) 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 SimcontractFeeRecipientAddressUpdated ¶
type SimcontractFeeRecipientAddressUpdated struct { Owner common.Address RecipientAddress common.Address Raw types.Log // Blockchain specific contextual infos }
SimcontractFeeRecipientAddressUpdated represents a FeeRecipientAddressUpdated event raised by the Simcontract contract.
type SimcontractFeeRecipientAddressUpdatedIterator ¶
type SimcontractFeeRecipientAddressUpdatedIterator struct { Event *SimcontractFeeRecipientAddressUpdated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SimcontractFeeRecipientAddressUpdatedIterator is returned from FilterFeeRecipientAddressUpdated and is used to iterate over the raw logs and unpacked data for FeeRecipientAddressUpdated events raised by the Simcontract contract.
func (*SimcontractFeeRecipientAddressUpdatedIterator) Close ¶
func (it *SimcontractFeeRecipientAddressUpdatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SimcontractFeeRecipientAddressUpdatedIterator) Error ¶
func (it *SimcontractFeeRecipientAddressUpdatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SimcontractFeeRecipientAddressUpdatedIterator) Next ¶
func (it *SimcontractFeeRecipientAddressUpdatedIterator) 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 SimcontractFilterer ¶
type SimcontractFilterer struct {
// contains filtered or unexported fields
}
SimcontractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewSimcontractFilterer ¶
func NewSimcontractFilterer(address common.Address, filterer bind.ContractFilterer) (*SimcontractFilterer, error)
NewSimcontractFilterer creates a new log filterer instance of Simcontract, bound to a specific deployed contract.
func (*SimcontractFilterer) FilterClusterLiquidated ¶
func (_Simcontract *SimcontractFilterer) FilterClusterLiquidated(opts *bind.FilterOpts, owner []common.Address) (*SimcontractClusterLiquidatedIterator, error)
FilterClusterLiquidated is a free log retrieval operation binding the contract event 0x1fce24c373e07f89214e9187598635036111dbb363e99f4ce498488cdc66e688.
Solidity: event ClusterLiquidated(address indexed owner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster)
func (*SimcontractFilterer) FilterClusterReactivated ¶
func (_Simcontract *SimcontractFilterer) FilterClusterReactivated(opts *bind.FilterOpts, owner []common.Address) (*SimcontractClusterReactivatedIterator, error)
FilterClusterReactivated is a free log retrieval operation binding the contract event 0xc803f8c01343fcdaf32068f4c283951623ef2b3fa0c547551931356f456b6859.
Solidity: event ClusterReactivated(address indexed owner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster)
func (*SimcontractFilterer) FilterFeeRecipientAddressUpdated ¶
func (_Simcontract *SimcontractFilterer) FilterFeeRecipientAddressUpdated(opts *bind.FilterOpts, owner []common.Address) (*SimcontractFeeRecipientAddressUpdatedIterator, error)
FilterFeeRecipientAddressUpdated is a free log retrieval operation binding the contract event 0x259235c230d57def1521657e7c7951d3b385e76193378bc87ef6b56bc2ec3548.
Solidity: event FeeRecipientAddressUpdated(address indexed owner, address recipientAddress)
func (*SimcontractFilterer) FilterOperatorAdded ¶
func (_Simcontract *SimcontractFilterer) FilterOperatorAdded(opts *bind.FilterOpts, operatorId []uint64, owner []common.Address) (*SimcontractOperatorAddedIterator, error)
FilterOperatorAdded is a free log retrieval operation binding the contract event 0xd839f31c14bd632f424e307b36abff63ca33684f77f28e35dc13718ef338f7f4.
Solidity: event OperatorAdded(uint64 indexed operatorId, address indexed owner, bytes publicKey, uint256 fee)
func (*SimcontractFilterer) FilterOperatorRemoved ¶
func (_Simcontract *SimcontractFilterer) FilterOperatorRemoved(opts *bind.FilterOpts, operatorId []uint64) (*SimcontractOperatorRemovedIterator, error)
FilterOperatorRemoved is a free log retrieval operation binding the contract event 0x0e0ba6c2b04de36d6d509ec5bd155c43a9fe862f8052096dd54f3902a74cca3e.
Solidity: event OperatorRemoved(uint64 indexed operatorId)
func (*SimcontractFilterer) FilterValidatorAdded ¶
func (_Simcontract *SimcontractFilterer) FilterValidatorAdded(opts *bind.FilterOpts, owner []common.Address) (*SimcontractValidatorAddedIterator, error)
FilterValidatorAdded is a free log retrieval operation binding the contract event 0x48a3ea0796746043948f6341d17ff8200937b99262a0b48c2663b951ed7114e5.
Solidity: event ValidatorAdded(address indexed owner, uint64[] operatorIds, bytes publicKey, bytes shares, (uint32,uint64,uint64,bool,uint256) cluster)
func (*SimcontractFilterer) FilterValidatorRemoved ¶
func (_Simcontract *SimcontractFilterer) FilterValidatorRemoved(opts *bind.FilterOpts, owner []common.Address) (*SimcontractValidatorRemovedIterator, error)
FilterValidatorRemoved is a free log retrieval operation binding the contract event 0xccf4370403e5fbbde0cd3f13426479dcd8a5916b05db424b7a2c04978cf8ce6e.
Solidity: event ValidatorRemoved(address indexed owner, uint64[] operatorIds, bytes publicKey, (uint32,uint64,uint64,bool,uint256) cluster)
func (*SimcontractFilterer) ParseClusterLiquidated ¶
func (_Simcontract *SimcontractFilterer) ParseClusterLiquidated(log types.Log) (*SimcontractClusterLiquidated, error)
ParseClusterLiquidated is a log parse operation binding the contract event 0x1fce24c373e07f89214e9187598635036111dbb363e99f4ce498488cdc66e688.
Solidity: event ClusterLiquidated(address indexed owner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster)
func (*SimcontractFilterer) ParseClusterReactivated ¶
func (_Simcontract *SimcontractFilterer) ParseClusterReactivated(log types.Log) (*SimcontractClusterReactivated, error)
ParseClusterReactivated is a log parse operation binding the contract event 0xc803f8c01343fcdaf32068f4c283951623ef2b3fa0c547551931356f456b6859.
Solidity: event ClusterReactivated(address indexed owner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster)
func (*SimcontractFilterer) ParseFeeRecipientAddressUpdated ¶
func (_Simcontract *SimcontractFilterer) ParseFeeRecipientAddressUpdated(log types.Log) (*SimcontractFeeRecipientAddressUpdated, error)
ParseFeeRecipientAddressUpdated is a log parse operation binding the contract event 0x259235c230d57def1521657e7c7951d3b385e76193378bc87ef6b56bc2ec3548.
Solidity: event FeeRecipientAddressUpdated(address indexed owner, address recipientAddress)
func (*SimcontractFilterer) ParseOperatorAdded ¶
func (_Simcontract *SimcontractFilterer) ParseOperatorAdded(log types.Log) (*SimcontractOperatorAdded, error)
ParseOperatorAdded is a log parse operation binding the contract event 0xd839f31c14bd632f424e307b36abff63ca33684f77f28e35dc13718ef338f7f4.
Solidity: event OperatorAdded(uint64 indexed operatorId, address indexed owner, bytes publicKey, uint256 fee)
func (*SimcontractFilterer) ParseOperatorRemoved ¶
func (_Simcontract *SimcontractFilterer) ParseOperatorRemoved(log types.Log) (*SimcontractOperatorRemoved, error)
ParseOperatorRemoved is a log parse operation binding the contract event 0x0e0ba6c2b04de36d6d509ec5bd155c43a9fe862f8052096dd54f3902a74cca3e.
Solidity: event OperatorRemoved(uint64 indexed operatorId)
func (*SimcontractFilterer) ParseValidatorAdded ¶
func (_Simcontract *SimcontractFilterer) ParseValidatorAdded(log types.Log) (*SimcontractValidatorAdded, error)
ParseValidatorAdded is a log parse operation binding the contract event 0x48a3ea0796746043948f6341d17ff8200937b99262a0b48c2663b951ed7114e5.
Solidity: event ValidatorAdded(address indexed owner, uint64[] operatorIds, bytes publicKey, bytes shares, (uint32,uint64,uint64,bool,uint256) cluster)
func (*SimcontractFilterer) ParseValidatorRemoved ¶
func (_Simcontract *SimcontractFilterer) ParseValidatorRemoved(log types.Log) (*SimcontractValidatorRemoved, error)
ParseValidatorRemoved is a log parse operation binding the contract event 0xccf4370403e5fbbde0cd3f13426479dcd8a5916b05db424b7a2c04978cf8ce6e.
Solidity: event ValidatorRemoved(address indexed owner, uint64[] operatorIds, bytes publicKey, (uint32,uint64,uint64,bool,uint256) cluster)
func (*SimcontractFilterer) WatchClusterLiquidated ¶
func (_Simcontract *SimcontractFilterer) WatchClusterLiquidated(opts *bind.WatchOpts, sink chan<- *SimcontractClusterLiquidated, owner []common.Address) (event.Subscription, error)
WatchClusterLiquidated is a free log subscription operation binding the contract event 0x1fce24c373e07f89214e9187598635036111dbb363e99f4ce498488cdc66e688.
Solidity: event ClusterLiquidated(address indexed owner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster)
func (*SimcontractFilterer) WatchClusterReactivated ¶
func (_Simcontract *SimcontractFilterer) WatchClusterReactivated(opts *bind.WatchOpts, sink chan<- *SimcontractClusterReactivated, owner []common.Address) (event.Subscription, error)
WatchClusterReactivated is a free log subscription operation binding the contract event 0xc803f8c01343fcdaf32068f4c283951623ef2b3fa0c547551931356f456b6859.
Solidity: event ClusterReactivated(address indexed owner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster)
func (*SimcontractFilterer) WatchFeeRecipientAddressUpdated ¶
func (_Simcontract *SimcontractFilterer) WatchFeeRecipientAddressUpdated(opts *bind.WatchOpts, sink chan<- *SimcontractFeeRecipientAddressUpdated, owner []common.Address) (event.Subscription, error)
WatchFeeRecipientAddressUpdated is a free log subscription operation binding the contract event 0x259235c230d57def1521657e7c7951d3b385e76193378bc87ef6b56bc2ec3548.
Solidity: event FeeRecipientAddressUpdated(address indexed owner, address recipientAddress)
func (*SimcontractFilterer) WatchOperatorAdded ¶
func (_Simcontract *SimcontractFilterer) WatchOperatorAdded(opts *bind.WatchOpts, sink chan<- *SimcontractOperatorAdded, operatorId []uint64, owner []common.Address) (event.Subscription, error)
WatchOperatorAdded is a free log subscription operation binding the contract event 0xd839f31c14bd632f424e307b36abff63ca33684f77f28e35dc13718ef338f7f4.
Solidity: event OperatorAdded(uint64 indexed operatorId, address indexed owner, bytes publicKey, uint256 fee)
func (*SimcontractFilterer) WatchOperatorRemoved ¶
func (_Simcontract *SimcontractFilterer) WatchOperatorRemoved(opts *bind.WatchOpts, sink chan<- *SimcontractOperatorRemoved, operatorId []uint64) (event.Subscription, error)
WatchOperatorRemoved is a free log subscription operation binding the contract event 0x0e0ba6c2b04de36d6d509ec5bd155c43a9fe862f8052096dd54f3902a74cca3e.
Solidity: event OperatorRemoved(uint64 indexed operatorId)
func (*SimcontractFilterer) WatchValidatorAdded ¶
func (_Simcontract *SimcontractFilterer) WatchValidatorAdded(opts *bind.WatchOpts, sink chan<- *SimcontractValidatorAdded, owner []common.Address) (event.Subscription, error)
WatchValidatorAdded is a free log subscription operation binding the contract event 0x48a3ea0796746043948f6341d17ff8200937b99262a0b48c2663b951ed7114e5.
Solidity: event ValidatorAdded(address indexed owner, uint64[] operatorIds, bytes publicKey, bytes shares, (uint32,uint64,uint64,bool,uint256) cluster)
func (*SimcontractFilterer) WatchValidatorRemoved ¶
func (_Simcontract *SimcontractFilterer) WatchValidatorRemoved(opts *bind.WatchOpts, sink chan<- *SimcontractValidatorRemoved, owner []common.Address) (event.Subscription, error)
WatchValidatorRemoved is a free log subscription operation binding the contract event 0xccf4370403e5fbbde0cd3f13426479dcd8a5916b05db424b7a2c04978cf8ce6e.
Solidity: event ValidatorRemoved(address indexed owner, uint64[] operatorIds, bytes publicKey, (uint32,uint64,uint64,bool,uint256) cluster)
type SimcontractOperatorAdded ¶
type SimcontractOperatorAdded struct { OperatorId uint64 Owner common.Address PublicKey []byte Fee *big.Int Raw types.Log // Blockchain specific contextual infos }
SimcontractOperatorAdded represents a OperatorAdded event raised by the Simcontract contract.
type SimcontractOperatorAddedIterator ¶
type SimcontractOperatorAddedIterator struct { Event *SimcontractOperatorAdded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SimcontractOperatorAddedIterator is returned from FilterOperatorAdded and is used to iterate over the raw logs and unpacked data for OperatorAdded events raised by the Simcontract contract.
func (*SimcontractOperatorAddedIterator) Close ¶
func (it *SimcontractOperatorAddedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SimcontractOperatorAddedIterator) Error ¶
func (it *SimcontractOperatorAddedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SimcontractOperatorAddedIterator) Next ¶
func (it *SimcontractOperatorAddedIterator) 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 SimcontractOperatorRemoved ¶
type SimcontractOperatorRemoved struct { OperatorId uint64 Raw types.Log // Blockchain specific contextual infos }
SimcontractOperatorRemoved represents a OperatorRemoved event raised by the Simcontract contract.
type SimcontractOperatorRemovedIterator ¶
type SimcontractOperatorRemovedIterator struct { Event *SimcontractOperatorRemoved // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SimcontractOperatorRemovedIterator is returned from FilterOperatorRemoved and is used to iterate over the raw logs and unpacked data for OperatorRemoved events raised by the Simcontract contract.
func (*SimcontractOperatorRemovedIterator) Close ¶
func (it *SimcontractOperatorRemovedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SimcontractOperatorRemovedIterator) Error ¶
func (it *SimcontractOperatorRemovedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SimcontractOperatorRemovedIterator) Next ¶
func (it *SimcontractOperatorRemovedIterator) 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 SimcontractRaw ¶
type SimcontractRaw struct {
Contract *Simcontract // Generic contract binding to access the raw methods on
}
SimcontractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*SimcontractRaw) Call ¶
func (_Simcontract *SimcontractRaw) 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 (*SimcontractRaw) Transact ¶
func (_Simcontract *SimcontractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SimcontractRaw) Transfer ¶
func (_Simcontract *SimcontractRaw) 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 SimcontractSession ¶
type SimcontractSession struct { Contract *Simcontract // 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 }
SimcontractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*SimcontractSession) Liquidate ¶
func (_Simcontract *SimcontractSession) Liquidate(clusterOwner common.Address, operatorIds []uint64, cluster CallableCluster) (*types.Transaction, error)
Liquidate is a paid mutator transaction binding the contract method 0xbf0f2fb2.
Solidity: function liquidate(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) returns()
func (*SimcontractSession) Reactivate ¶
func (_Simcontract *SimcontractSession) Reactivate(operatorIds []uint64, amount *big.Int, cluster CallableCluster) (*types.Transaction, error)
Reactivate is a paid mutator transaction binding the contract method 0x5fec6dd0.
Solidity: function reactivate(uint64[] operatorIds, uint256 amount, (uint32,uint64,uint64,bool,uint256) cluster) returns()
func (*SimcontractSession) RegisterOperator ¶
func (_Simcontract *SimcontractSession) RegisterOperator(publicKey []byte, fee *big.Int) (*types.Transaction, error)
RegisterOperator is a paid mutator transaction binding the contract method 0xff212c5c.
Solidity: function registerOperator(bytes publicKey, uint256 fee) returns()
func (*SimcontractSession) RegisterValidator ¶
func (_Simcontract *SimcontractSession) RegisterValidator(publicKey []byte, operatorIds []uint64, sharesData []byte, amount *big.Int, cluster CallableCluster) (*types.Transaction, error)
RegisterValidator is a paid mutator transaction binding the contract method 0x06e8fb9c.
Solidity: function registerValidator(bytes publicKey, uint64[] operatorIds, bytes sharesData, uint256 amount, (uint32,uint64,uint64,bool,uint256) cluster) returns()
func (*SimcontractSession) RemoveOperator ¶
func (_Simcontract *SimcontractSession) RemoveOperator(operatorId uint64) (*types.Transaction, error)
RemoveOperator is a paid mutator transaction binding the contract method 0x2e168e0e.
Solidity: function removeOperator(uint64 operatorId) returns()
func (*SimcontractSession) RemoveValidator ¶
func (_Simcontract *SimcontractSession) RemoveValidator(publicKey []byte, operatorIds []uint64, cluster CallableCluster) (*types.Transaction, error)
RemoveValidator is a paid mutator transaction binding the contract method 0x12b3fc19.
Solidity: function removeValidator(bytes publicKey, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) returns()
func (*SimcontractSession) SetFeeRecipientAddress ¶
func (_Simcontract *SimcontractSession) SetFeeRecipientAddress(recipientAddress common.Address) (*types.Transaction, error)
SetFeeRecipientAddress is a paid mutator transaction binding the contract method 0xdbcdc2cc.
Solidity: function setFeeRecipientAddress(address recipientAddress) returns()
type SimcontractTransactor ¶
type SimcontractTransactor struct {
// contains filtered or unexported fields
}
SimcontractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewSimcontractTransactor ¶
func NewSimcontractTransactor(address common.Address, transactor bind.ContractTransactor) (*SimcontractTransactor, error)
NewSimcontractTransactor creates a new write-only instance of Simcontract, bound to a specific deployed contract.
func (*SimcontractTransactor) Liquidate ¶
func (_Simcontract *SimcontractTransactor) Liquidate(opts *bind.TransactOpts, clusterOwner common.Address, operatorIds []uint64, cluster CallableCluster) (*types.Transaction, error)
Liquidate is a paid mutator transaction binding the contract method 0xbf0f2fb2.
Solidity: function liquidate(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) returns()
func (*SimcontractTransactor) Reactivate ¶
func (_Simcontract *SimcontractTransactor) Reactivate(opts *bind.TransactOpts, operatorIds []uint64, amount *big.Int, cluster CallableCluster) (*types.Transaction, error)
Reactivate is a paid mutator transaction binding the contract method 0x5fec6dd0.
Solidity: function reactivate(uint64[] operatorIds, uint256 amount, (uint32,uint64,uint64,bool,uint256) cluster) returns()
func (*SimcontractTransactor) RegisterOperator ¶
func (_Simcontract *SimcontractTransactor) RegisterOperator(opts *bind.TransactOpts, publicKey []byte, fee *big.Int) (*types.Transaction, error)
RegisterOperator is a paid mutator transaction binding the contract method 0xff212c5c.
Solidity: function registerOperator(bytes publicKey, uint256 fee) returns()
func (*SimcontractTransactor) RegisterValidator ¶
func (_Simcontract *SimcontractTransactor) RegisterValidator(opts *bind.TransactOpts, publicKey []byte, operatorIds []uint64, sharesData []byte, amount *big.Int, cluster CallableCluster) (*types.Transaction, error)
RegisterValidator is a paid mutator transaction binding the contract method 0x06e8fb9c.
Solidity: function registerValidator(bytes publicKey, uint64[] operatorIds, bytes sharesData, uint256 amount, (uint32,uint64,uint64,bool,uint256) cluster) returns()
func (*SimcontractTransactor) RemoveOperator ¶
func (_Simcontract *SimcontractTransactor) RemoveOperator(opts *bind.TransactOpts, operatorId uint64) (*types.Transaction, error)
RemoveOperator is a paid mutator transaction binding the contract method 0x2e168e0e.
Solidity: function removeOperator(uint64 operatorId) returns()
func (*SimcontractTransactor) RemoveValidator ¶
func (_Simcontract *SimcontractTransactor) RemoveValidator(opts *bind.TransactOpts, publicKey []byte, operatorIds []uint64, cluster CallableCluster) (*types.Transaction, error)
RemoveValidator is a paid mutator transaction binding the contract method 0x12b3fc19.
Solidity: function removeValidator(bytes publicKey, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) returns()
func (*SimcontractTransactor) SetFeeRecipientAddress ¶
func (_Simcontract *SimcontractTransactor) SetFeeRecipientAddress(opts *bind.TransactOpts, recipientAddress common.Address) (*types.Transaction, error)
SetFeeRecipientAddress is a paid mutator transaction binding the contract method 0xdbcdc2cc.
Solidity: function setFeeRecipientAddress(address recipientAddress) returns()
type SimcontractTransactorRaw ¶
type SimcontractTransactorRaw struct {
Contract *SimcontractTransactor // Generic write-only contract binding to access the raw methods on
}
SimcontractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*SimcontractTransactorRaw) Transact ¶
func (_Simcontract *SimcontractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SimcontractTransactorRaw) Transfer ¶
func (_Simcontract *SimcontractTransactorRaw) 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 SimcontractTransactorSession ¶
type SimcontractTransactorSession struct { Contract *SimcontractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
SimcontractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*SimcontractTransactorSession) Liquidate ¶
func (_Simcontract *SimcontractTransactorSession) Liquidate(clusterOwner common.Address, operatorIds []uint64, cluster CallableCluster) (*types.Transaction, error)
Liquidate is a paid mutator transaction binding the contract method 0xbf0f2fb2.
Solidity: function liquidate(address clusterOwner, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) returns()
func (*SimcontractTransactorSession) Reactivate ¶
func (_Simcontract *SimcontractTransactorSession) Reactivate(operatorIds []uint64, amount *big.Int, cluster CallableCluster) (*types.Transaction, error)
Reactivate is a paid mutator transaction binding the contract method 0x5fec6dd0.
Solidity: function reactivate(uint64[] operatorIds, uint256 amount, (uint32,uint64,uint64,bool,uint256) cluster) returns()
func (*SimcontractTransactorSession) RegisterOperator ¶
func (_Simcontract *SimcontractTransactorSession) RegisterOperator(publicKey []byte, fee *big.Int) (*types.Transaction, error)
RegisterOperator is a paid mutator transaction binding the contract method 0xff212c5c.
Solidity: function registerOperator(bytes publicKey, uint256 fee) returns()
func (*SimcontractTransactorSession) RegisterValidator ¶
func (_Simcontract *SimcontractTransactorSession) RegisterValidator(publicKey []byte, operatorIds []uint64, sharesData []byte, amount *big.Int, cluster CallableCluster) (*types.Transaction, error)
RegisterValidator is a paid mutator transaction binding the contract method 0x06e8fb9c.
Solidity: function registerValidator(bytes publicKey, uint64[] operatorIds, bytes sharesData, uint256 amount, (uint32,uint64,uint64,bool,uint256) cluster) returns()
func (*SimcontractTransactorSession) RemoveOperator ¶
func (_Simcontract *SimcontractTransactorSession) RemoveOperator(operatorId uint64) (*types.Transaction, error)
RemoveOperator is a paid mutator transaction binding the contract method 0x2e168e0e.
Solidity: function removeOperator(uint64 operatorId) returns()
func (*SimcontractTransactorSession) RemoveValidator ¶
func (_Simcontract *SimcontractTransactorSession) RemoveValidator(publicKey []byte, operatorIds []uint64, cluster CallableCluster) (*types.Transaction, error)
RemoveValidator is a paid mutator transaction binding the contract method 0x12b3fc19.
Solidity: function removeValidator(bytes publicKey, uint64[] operatorIds, (uint32,uint64,uint64,bool,uint256) cluster) returns()
func (*SimcontractTransactorSession) SetFeeRecipientAddress ¶
func (_Simcontract *SimcontractTransactorSession) SetFeeRecipientAddress(recipientAddress common.Address) (*types.Transaction, error)
SetFeeRecipientAddress is a paid mutator transaction binding the contract method 0xdbcdc2cc.
Solidity: function setFeeRecipientAddress(address recipientAddress) returns()
type SimcontractValidatorAdded ¶
type SimcontractValidatorAdded struct { Owner common.Address OperatorIds []uint64 PublicKey []byte Cluster CallableCluster Raw types.Log // Blockchain specific contextual infos }
SimcontractValidatorAdded represents a ValidatorAdded event raised by the Simcontract contract.
type SimcontractValidatorAddedIterator ¶
type SimcontractValidatorAddedIterator struct { Event *SimcontractValidatorAdded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SimcontractValidatorAddedIterator is returned from FilterValidatorAdded and is used to iterate over the raw logs and unpacked data for ValidatorAdded events raised by the Simcontract contract.
func (*SimcontractValidatorAddedIterator) Close ¶
func (it *SimcontractValidatorAddedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SimcontractValidatorAddedIterator) Error ¶
func (it *SimcontractValidatorAddedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SimcontractValidatorAddedIterator) Next ¶
func (it *SimcontractValidatorAddedIterator) 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 SimcontractValidatorRemoved ¶
type SimcontractValidatorRemoved struct { Owner common.Address OperatorIds []uint64 PublicKey []byte Cluster CallableCluster Raw types.Log // Blockchain specific contextual infos }
SimcontractValidatorRemoved represents a ValidatorRemoved event raised by the Simcontract contract.
type SimcontractValidatorRemovedIterator ¶
type SimcontractValidatorRemovedIterator struct { Event *SimcontractValidatorRemoved // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SimcontractValidatorRemovedIterator is returned from FilterValidatorRemoved and is used to iterate over the raw logs and unpacked data for ValidatorRemoved events raised by the Simcontract contract.
func (*SimcontractValidatorRemovedIterator) Close ¶
func (it *SimcontractValidatorRemovedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SimcontractValidatorRemovedIterator) Error ¶
func (it *SimcontractValidatorRemovedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SimcontractValidatorRemovedIterator) Next ¶
func (it *SimcontractValidatorRemovedIterator) 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.