github.com/codingfuture/orig-energi3@v0.8.4/energi/abi/ISporkRegistry.go (about) 1 // Code generated - DO NOT EDIT. 2 // This file is a generated binding and any manual changes will be lost. 3 4 package abi 5 6 import ( 7 "math/big" 8 "strings" 9 10 ethereum "github.com/ethereum/go-ethereum" 11 "github.com/ethereum/go-ethereum/accounts/abi" 12 "github.com/ethereum/go-ethereum/accounts/abi/bind" 13 "github.com/ethereum/go-ethereum/common" 14 "github.com/ethereum/go-ethereum/core/types" 15 "github.com/ethereum/go-ethereum/event" 16 ) 17 18 // Reference imports to suppress errors if they are not otherwise used. 19 var ( 20 _ = big.NewInt 21 _ = strings.NewReader 22 _ = ethereum.NotFound 23 _ = abi.U256 24 _ = bind.Bind 25 _ = common.Big1 26 _ = types.BloomLookup 27 _ = event.NewSubscription 28 ) 29 30 // ISporkRegistryABI is the input ABI used to generate the binding from. 31 const ISporkRegistryABI = "[{\"constant\":true,\"inputs\":[],\"name\":\"consensusGasLimits\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"callGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"xferGas\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractIGovernedContract\",\"name\":\"_impl\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_period\",\"type\":\"uint256\"},{\"internalType\":\"addresspayable\",\"name\":\"_fee_payer\",\"type\":\"address\"}],\"name\":\"createUpgradeProposal\",\"outputs\":[{\"internalType\":\"contractIUpgradeProposal\",\"name\":\"\",\"type\":\"address\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"}]" 32 33 // ISporkRegistry is an auto generated Go binding around an Ethereum contract. 34 type ISporkRegistry struct { 35 ISporkRegistryCaller // Read-only binding to the contract 36 ISporkRegistryTransactor // Write-only binding to the contract 37 ISporkRegistryFilterer // Log filterer for contract events 38 } 39 40 // ISporkRegistryCaller is an auto generated read-only Go binding around an Ethereum contract. 41 type ISporkRegistryCaller struct { 42 contract *bind.BoundContract // Generic contract wrapper for the low level calls 43 } 44 45 // ISporkRegistryTransactor is an auto generated write-only Go binding around an Ethereum contract. 46 type ISporkRegistryTransactor struct { 47 contract *bind.BoundContract // Generic contract wrapper for the low level calls 48 } 49 50 // ISporkRegistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events. 51 type ISporkRegistryFilterer struct { 52 contract *bind.BoundContract // Generic contract wrapper for the low level calls 53 } 54 55 // ISporkRegistrySession is an auto generated Go binding around an Ethereum contract, 56 // with pre-set call and transact options. 57 type ISporkRegistrySession struct { 58 Contract *ISporkRegistry // Generic contract binding to set the session for 59 CallOpts bind.CallOpts // Call options to use throughout this session 60 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 61 } 62 63 // ISporkRegistryCallerSession is an auto generated read-only Go binding around an Ethereum contract, 64 // with pre-set call options. 65 type ISporkRegistryCallerSession struct { 66 Contract *ISporkRegistryCaller // Generic contract caller binding to set the session for 67 CallOpts bind.CallOpts // Call options to use throughout this session 68 } 69 70 // ISporkRegistryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, 71 // with pre-set transact options. 72 type ISporkRegistryTransactorSession struct { 73 Contract *ISporkRegistryTransactor // Generic contract transactor binding to set the session for 74 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 75 } 76 77 // ISporkRegistryRaw is an auto generated low-level Go binding around an Ethereum contract. 78 type ISporkRegistryRaw struct { 79 Contract *ISporkRegistry // Generic contract binding to access the raw methods on 80 } 81 82 // ISporkRegistryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. 83 type ISporkRegistryCallerRaw struct { 84 Contract *ISporkRegistryCaller // Generic read-only contract binding to access the raw methods on 85 } 86 87 // ISporkRegistryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. 88 type ISporkRegistryTransactorRaw struct { 89 Contract *ISporkRegistryTransactor // Generic write-only contract binding to access the raw methods on 90 } 91 92 // NewISporkRegistry creates a new instance of ISporkRegistry, bound to a specific deployed contract. 93 func NewISporkRegistry(address common.Address, backend bind.ContractBackend) (*ISporkRegistry, error) { 94 contract, err := bindISporkRegistry(address, backend, backend, backend) 95 if err != nil { 96 return nil, err 97 } 98 return &ISporkRegistry{ISporkRegistryCaller: ISporkRegistryCaller{contract: contract}, ISporkRegistryTransactor: ISporkRegistryTransactor{contract: contract}, ISporkRegistryFilterer: ISporkRegistryFilterer{contract: contract}}, nil 99 } 100 101 // NewISporkRegistryCaller creates a new read-only instance of ISporkRegistry, bound to a specific deployed contract. 102 func NewISporkRegistryCaller(address common.Address, caller bind.ContractCaller) (*ISporkRegistryCaller, error) { 103 contract, err := bindISporkRegistry(address, caller, nil, nil) 104 if err != nil { 105 return nil, err 106 } 107 return &ISporkRegistryCaller{contract: contract}, nil 108 } 109 110 // NewISporkRegistryTransactor creates a new write-only instance of ISporkRegistry, bound to a specific deployed contract. 111 func NewISporkRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*ISporkRegistryTransactor, error) { 112 contract, err := bindISporkRegistry(address, nil, transactor, nil) 113 if err != nil { 114 return nil, err 115 } 116 return &ISporkRegistryTransactor{contract: contract}, nil 117 } 118 119 // NewISporkRegistryFilterer creates a new log filterer instance of ISporkRegistry, bound to a specific deployed contract. 120 func NewISporkRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*ISporkRegistryFilterer, error) { 121 contract, err := bindISporkRegistry(address, nil, nil, filterer) 122 if err != nil { 123 return nil, err 124 } 125 return &ISporkRegistryFilterer{contract: contract}, nil 126 } 127 128 // bindISporkRegistry binds a generic wrapper to an already deployed contract. 129 func bindISporkRegistry(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { 130 parsed, err := abi.JSON(strings.NewReader(ISporkRegistryABI)) 131 if err != nil { 132 return nil, err 133 } 134 return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil 135 } 136 137 // Call invokes the (constant) contract method with params as input values and 138 // sets the output to result. The result type might be a single field for simple 139 // returns, a slice of interfaces for anonymous returns and a struct for named 140 // returns. 141 func (_ISporkRegistry *ISporkRegistryRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error { 142 return _ISporkRegistry.Contract.ISporkRegistryCaller.contract.Call(opts, result, method, params...) 143 } 144 145 // Transfer initiates a plain transaction to move funds to the contract, calling 146 // its default method if one is available. 147 func (_ISporkRegistry *ISporkRegistryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 148 return _ISporkRegistry.Contract.ISporkRegistryTransactor.contract.Transfer(opts) 149 } 150 151 // Transact invokes the (paid) contract method with params as input values. 152 func (_ISporkRegistry *ISporkRegistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 153 return _ISporkRegistry.Contract.ISporkRegistryTransactor.contract.Transact(opts, method, params...) 154 } 155 156 // Call invokes the (constant) contract method with params as input values and 157 // sets the output to result. The result type might be a single field for simple 158 // returns, a slice of interfaces for anonymous returns and a struct for named 159 // returns. 160 func (_ISporkRegistry *ISporkRegistryCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error { 161 return _ISporkRegistry.Contract.contract.Call(opts, result, method, params...) 162 } 163 164 // Transfer initiates a plain transaction to move funds to the contract, calling 165 // its default method if one is available. 166 func (_ISporkRegistry *ISporkRegistryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 167 return _ISporkRegistry.Contract.contract.Transfer(opts) 168 } 169 170 // Transact invokes the (paid) contract method with params as input values. 171 func (_ISporkRegistry *ISporkRegistryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 172 return _ISporkRegistry.Contract.contract.Transact(opts, method, params...) 173 } 174 175 // ConsensusGasLimits is a free data retrieval call binding the contract method 0xc00ebced. 176 // 177 // Solidity: function consensusGasLimits() constant returns(uint256 callGas, uint256 xferGas) 178 func (_ISporkRegistry *ISporkRegistryCaller) ConsensusGasLimits(opts *bind.CallOpts) (struct { 179 CallGas *big.Int 180 XferGas *big.Int 181 }, error) { 182 ret := new(struct { 183 CallGas *big.Int 184 XferGas *big.Int 185 }) 186 out := ret 187 err := _ISporkRegistry.contract.Call(opts, out, "consensusGasLimits") 188 return *ret, err 189 } 190 191 // ConsensusGasLimits is a free data retrieval call binding the contract method 0xc00ebced. 192 // 193 // Solidity: function consensusGasLimits() constant returns(uint256 callGas, uint256 xferGas) 194 func (_ISporkRegistry *ISporkRegistrySession) ConsensusGasLimits() (struct { 195 CallGas *big.Int 196 XferGas *big.Int 197 }, error) { 198 return _ISporkRegistry.Contract.ConsensusGasLimits(&_ISporkRegistry.CallOpts) 199 } 200 201 // ConsensusGasLimits is a free data retrieval call binding the contract method 0xc00ebced. 202 // 203 // Solidity: function consensusGasLimits() constant returns(uint256 callGas, uint256 xferGas) 204 func (_ISporkRegistry *ISporkRegistryCallerSession) ConsensusGasLimits() (struct { 205 CallGas *big.Int 206 XferGas *big.Int 207 }, error) { 208 return _ISporkRegistry.Contract.ConsensusGasLimits(&_ISporkRegistry.CallOpts) 209 } 210 211 // CreateUpgradeProposal is a paid mutator transaction binding the contract method 0x62877ccd. 212 // 213 // Solidity: function createUpgradeProposal(address _impl, uint256 _period, address _fee_payer) returns(address) 214 func (_ISporkRegistry *ISporkRegistryTransactor) CreateUpgradeProposal(opts *bind.TransactOpts, _impl common.Address, _period *big.Int, _fee_payer common.Address) (*types.Transaction, error) { 215 return _ISporkRegistry.contract.Transact(opts, "createUpgradeProposal", _impl, _period, _fee_payer) 216 } 217 218 // CreateUpgradeProposal is a paid mutator transaction binding the contract method 0x62877ccd. 219 // 220 // Solidity: function createUpgradeProposal(address _impl, uint256 _period, address _fee_payer) returns(address) 221 func (_ISporkRegistry *ISporkRegistrySession) CreateUpgradeProposal(_impl common.Address, _period *big.Int, _fee_payer common.Address) (*types.Transaction, error) { 222 return _ISporkRegistry.Contract.CreateUpgradeProposal(&_ISporkRegistry.TransactOpts, _impl, _period, _fee_payer) 223 } 224 225 // CreateUpgradeProposal is a paid mutator transaction binding the contract method 0x62877ccd. 226 // 227 // Solidity: function createUpgradeProposal(address _impl, uint256 _period, address _fee_payer) returns(address) 228 func (_ISporkRegistry *ISporkRegistryTransactorSession) CreateUpgradeProposal(_impl common.Address, _period *big.Int, _fee_payer common.Address) (*types.Transaction, error) { 229 return _ISporkRegistry.Contract.CreateUpgradeProposal(&_ISporkRegistry.TransactOpts, _impl, _period, _fee_payer) 230 }