github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/test/contracts/bin/ChainCallLevel1/ChainCallLevel1.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 ChainCallLevel1 5 6 import ( 7 "errors" 8 "math/big" 9 "strings" 10 11 ethereum "github.com/ethereum/go-ethereum" 12 "github.com/ethereum/go-ethereum/accounts/abi" 13 "github.com/ethereum/go-ethereum/accounts/abi/bind" 14 "github.com/ethereum/go-ethereum/common" 15 "github.com/ethereum/go-ethereum/core/types" 16 "github.com/ethereum/go-ethereum/event" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var ( 21 _ = errors.New 22 _ = big.NewInt 23 _ = strings.NewReader 24 _ = ethereum.NotFound 25 _ = bind.Bind 26 _ = common.Big1 27 _ = types.BloomLookup 28 _ = event.NewSubscription 29 _ = abi.ConvertType 30 ) 31 32 // ChainCallLevel1MetaData contains all meta data concerning the ChainCallLevel1 contract. 33 var ChainCallLevel1MetaData = &bind.MetaData{ 34 ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"level2Addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"level3Addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"level4Addr\",\"type\":\"address\"}],\"name\":\"exec\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]", 35 Bin: "0x608060405234801561001057600080fd5b506104f3806100206000396000f3fe60806040526004361061001e5760003560e01c8063c023dcf314610023575b600080fd5b61003661003136600461036b565b610038565b005b6040516001600160a01b03838116602483015282811660448301526000919085169060640160408051601f198184030181529181526020820180516001600160e01b031663ee2d011560e01b1790525161009291906103de565b6000604051808303816000865af19150503d80600081146100cf576040519150601f19603f3d011682016040523d82523d6000602084013e6100d4565b606091505b505080915050806101365760405162461bcd60e51b815260206004820152602160248201527f6661696c656420746f20706572666f726d2063616c6c20746f206c6576656c206044820152601960f91b60648201526084015b60405180910390fd5b6040516001600160a01b038481166024830152838116604483015285169060640160408051601f198184030181529181526020820180516001600160e01b031663ee2d011560e01b1790525161018c91906103de565b600060405180830381855af49150503d80600081146101c7576040519150601f19603f3d011682016040523d82523d6000602084013e6101cc565b606091505b505080915050806102325760405162461bcd60e51b815260206004820152602a60248201527f6661696c656420746f20706572666f726d2064656c65676174652063616c6c206044820152693a37903632bb32b6101960b11b606482015260840161012d565b6040516001600160a01b03848116602483015283811660448301526060919086169060640160408051601f198184030181529181526020820180516001600160e01b031663d81e842360e01b1790525161028c91906103de565b600060405180830381855afa9150503d80600081146102c7576040519150601f19603f3d011682016040523d82523d6000602084013e6102cc565b606091505b509092509050816103305760405162461bcd60e51b815260206004820152602860248201527f6661696c656420746f20706572666f726d207374617469632063616c6c20746f604482015267103632bb32b6101960c11b606482015260840161012d565b6060818060200190518101906103469190610410565b50505050505050565b80356001600160a01b038116811461036657600080fd5b919050565b60008060006060848603121561038057600080fd5b6103898461034f565b92506103976020850161034f565b91506103a56040850161034f565b90509250925092565b60005b838110156103c95781810151838201526020016103b1565b838111156103d8576000848401525b50505050565b600082516103f08184602087016103ae565b9190910192915050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561042257600080fd5b815167ffffffffffffffff8082111561043a57600080fd5b818401915084601f83011261044e57600080fd5b815181811115610460576104606103fa565b604051601f8201601f19908116603f01168101908382118183101715610488576104886103fa565b816040528281528760208487010111156104a157600080fd5b6104b28360208301602088016103ae565b97965050505050505056fea2646970667358221220a70fce29b6e5fb440773cb2a94c85ba96b98c2b7d2d3f624750ec475578ed92764736f6c634300080c0033", 36 } 37 38 // ChainCallLevel1ABI is the input ABI used to generate the binding from. 39 // Deprecated: Use ChainCallLevel1MetaData.ABI instead. 40 var ChainCallLevel1ABI = ChainCallLevel1MetaData.ABI 41 42 // ChainCallLevel1Bin is the compiled bytecode used for deploying new contracts. 43 // Deprecated: Use ChainCallLevel1MetaData.Bin instead. 44 var ChainCallLevel1Bin = ChainCallLevel1MetaData.Bin 45 46 // DeployChainCallLevel1 deploys a new Ethereum contract, binding an instance of ChainCallLevel1 to it. 47 func DeployChainCallLevel1(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ChainCallLevel1, error) { 48 parsed, err := ChainCallLevel1MetaData.GetAbi() 49 if err != nil { 50 return common.Address{}, nil, nil, err 51 } 52 if parsed == nil { 53 return common.Address{}, nil, nil, errors.New("GetABI returned nil") 54 } 55 56 address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ChainCallLevel1Bin), backend) 57 if err != nil { 58 return common.Address{}, nil, nil, err 59 } 60 return address, tx, &ChainCallLevel1{ChainCallLevel1Caller: ChainCallLevel1Caller{contract: contract}, ChainCallLevel1Transactor: ChainCallLevel1Transactor{contract: contract}, ChainCallLevel1Filterer: ChainCallLevel1Filterer{contract: contract}}, nil 61 } 62 63 // ChainCallLevel1 is an auto generated Go binding around an Ethereum contract. 64 type ChainCallLevel1 struct { 65 ChainCallLevel1Caller // Read-only binding to the contract 66 ChainCallLevel1Transactor // Write-only binding to the contract 67 ChainCallLevel1Filterer // Log filterer for contract events 68 } 69 70 // ChainCallLevel1Caller is an auto generated read-only Go binding around an Ethereum contract. 71 type ChainCallLevel1Caller struct { 72 contract *bind.BoundContract // Generic contract wrapper for the low level calls 73 } 74 75 // ChainCallLevel1Transactor is an auto generated write-only Go binding around an Ethereum contract. 76 type ChainCallLevel1Transactor struct { 77 contract *bind.BoundContract // Generic contract wrapper for the low level calls 78 } 79 80 // ChainCallLevel1Filterer is an auto generated log filtering Go binding around an Ethereum contract events. 81 type ChainCallLevel1Filterer struct { 82 contract *bind.BoundContract // Generic contract wrapper for the low level calls 83 } 84 85 // ChainCallLevel1Session is an auto generated Go binding around an Ethereum contract, 86 // with pre-set call and transact options. 87 type ChainCallLevel1Session struct { 88 Contract *ChainCallLevel1 // Generic contract binding to set the session for 89 CallOpts bind.CallOpts // Call options to use throughout this session 90 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 91 } 92 93 // ChainCallLevel1CallerSession is an auto generated read-only Go binding around an Ethereum contract, 94 // with pre-set call options. 95 type ChainCallLevel1CallerSession struct { 96 Contract *ChainCallLevel1Caller // Generic contract caller binding to set the session for 97 CallOpts bind.CallOpts // Call options to use throughout this session 98 } 99 100 // ChainCallLevel1TransactorSession is an auto generated write-only Go binding around an Ethereum contract, 101 // with pre-set transact options. 102 type ChainCallLevel1TransactorSession struct { 103 Contract *ChainCallLevel1Transactor // Generic contract transactor binding to set the session for 104 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 105 } 106 107 // ChainCallLevel1Raw is an auto generated low-level Go binding around an Ethereum contract. 108 type ChainCallLevel1Raw struct { 109 Contract *ChainCallLevel1 // Generic contract binding to access the raw methods on 110 } 111 112 // ChainCallLevel1CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. 113 type ChainCallLevel1CallerRaw struct { 114 Contract *ChainCallLevel1Caller // Generic read-only contract binding to access the raw methods on 115 } 116 117 // ChainCallLevel1TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. 118 type ChainCallLevel1TransactorRaw struct { 119 Contract *ChainCallLevel1Transactor // Generic write-only contract binding to access the raw methods on 120 } 121 122 // NewChainCallLevel1 creates a new instance of ChainCallLevel1, bound to a specific deployed contract. 123 func NewChainCallLevel1(address common.Address, backend bind.ContractBackend) (*ChainCallLevel1, error) { 124 contract, err := bindChainCallLevel1(address, backend, backend, backend) 125 if err != nil { 126 return nil, err 127 } 128 return &ChainCallLevel1{ChainCallLevel1Caller: ChainCallLevel1Caller{contract: contract}, ChainCallLevel1Transactor: ChainCallLevel1Transactor{contract: contract}, ChainCallLevel1Filterer: ChainCallLevel1Filterer{contract: contract}}, nil 129 } 130 131 // NewChainCallLevel1Caller creates a new read-only instance of ChainCallLevel1, bound to a specific deployed contract. 132 func NewChainCallLevel1Caller(address common.Address, caller bind.ContractCaller) (*ChainCallLevel1Caller, error) { 133 contract, err := bindChainCallLevel1(address, caller, nil, nil) 134 if err != nil { 135 return nil, err 136 } 137 return &ChainCallLevel1Caller{contract: contract}, nil 138 } 139 140 // NewChainCallLevel1Transactor creates a new write-only instance of ChainCallLevel1, bound to a specific deployed contract. 141 func NewChainCallLevel1Transactor(address common.Address, transactor bind.ContractTransactor) (*ChainCallLevel1Transactor, error) { 142 contract, err := bindChainCallLevel1(address, nil, transactor, nil) 143 if err != nil { 144 return nil, err 145 } 146 return &ChainCallLevel1Transactor{contract: contract}, nil 147 } 148 149 // NewChainCallLevel1Filterer creates a new log filterer instance of ChainCallLevel1, bound to a specific deployed contract. 150 func NewChainCallLevel1Filterer(address common.Address, filterer bind.ContractFilterer) (*ChainCallLevel1Filterer, error) { 151 contract, err := bindChainCallLevel1(address, nil, nil, filterer) 152 if err != nil { 153 return nil, err 154 } 155 return &ChainCallLevel1Filterer{contract: contract}, nil 156 } 157 158 // bindChainCallLevel1 binds a generic wrapper to an already deployed contract. 159 func bindChainCallLevel1(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { 160 parsed, err := ChainCallLevel1MetaData.GetAbi() 161 if err != nil { 162 return nil, err 163 } 164 return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil 165 } 166 167 // Call invokes the (constant) contract method with params as input values and 168 // sets the output to result. The result type might be a single field for simple 169 // returns, a slice of interfaces for anonymous returns and a struct for named 170 // returns. 171 func (_ChainCallLevel1 *ChainCallLevel1Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 172 return _ChainCallLevel1.Contract.ChainCallLevel1Caller.contract.Call(opts, result, method, params...) 173 } 174 175 // Transfer initiates a plain transaction to move funds to the contract, calling 176 // its default method if one is available. 177 func (_ChainCallLevel1 *ChainCallLevel1Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 178 return _ChainCallLevel1.Contract.ChainCallLevel1Transactor.contract.Transfer(opts) 179 } 180 181 // Transact invokes the (paid) contract method with params as input values. 182 func (_ChainCallLevel1 *ChainCallLevel1Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 183 return _ChainCallLevel1.Contract.ChainCallLevel1Transactor.contract.Transact(opts, method, params...) 184 } 185 186 // Call invokes the (constant) contract method with params as input values and 187 // sets the output to result. The result type might be a single field for simple 188 // returns, a slice of interfaces for anonymous returns and a struct for named 189 // returns. 190 func (_ChainCallLevel1 *ChainCallLevel1CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 191 return _ChainCallLevel1.Contract.contract.Call(opts, result, method, params...) 192 } 193 194 // Transfer initiates a plain transaction to move funds to the contract, calling 195 // its default method if one is available. 196 func (_ChainCallLevel1 *ChainCallLevel1TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 197 return _ChainCallLevel1.Contract.contract.Transfer(opts) 198 } 199 200 // Transact invokes the (paid) contract method with params as input values. 201 func (_ChainCallLevel1 *ChainCallLevel1TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 202 return _ChainCallLevel1.Contract.contract.Transact(opts, method, params...) 203 } 204 205 // Exec is a paid mutator transaction binding the contract method 0xc023dcf3. 206 // 207 // Solidity: function exec(address level2Addr, address level3Addr, address level4Addr) payable returns() 208 func (_ChainCallLevel1 *ChainCallLevel1Transactor) Exec(opts *bind.TransactOpts, level2Addr common.Address, level3Addr common.Address, level4Addr common.Address) (*types.Transaction, error) { 209 return _ChainCallLevel1.contract.Transact(opts, "exec", level2Addr, level3Addr, level4Addr) 210 } 211 212 // Exec is a paid mutator transaction binding the contract method 0xc023dcf3. 213 // 214 // Solidity: function exec(address level2Addr, address level3Addr, address level4Addr) payable returns() 215 func (_ChainCallLevel1 *ChainCallLevel1Session) Exec(level2Addr common.Address, level3Addr common.Address, level4Addr common.Address) (*types.Transaction, error) { 216 return _ChainCallLevel1.Contract.Exec(&_ChainCallLevel1.TransactOpts, level2Addr, level3Addr, level4Addr) 217 } 218 219 // Exec is a paid mutator transaction binding the contract method 0xc023dcf3. 220 // 221 // Solidity: function exec(address level2Addr, address level3Addr, address level4Addr) payable returns() 222 func (_ChainCallLevel1 *ChainCallLevel1TransactorSession) Exec(level2Addr common.Address, level3Addr common.Address, level4Addr common.Address) (*types.Transaction, error) { 223 return _ChainCallLevel1.Contract.Exec(&_ChainCallLevel1.TransactOpts, level2Addr, level3Addr, level4Addr) 224 }