github.com/bigzoro/my_simplechain@v0.0.0-20240315012955-8ad0a2a29bb9/permission/store_abi.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 permission 5 6 import ( 7 "errors" 8 "math/big" 9 "strings" 10 11 ethereum "github.com/bigzoro/my_simplechain" 12 "github.com/bigzoro/my_simplechain/accounts/abi" 13 "github.com/bigzoro/my_simplechain/accounts/abi/bind" 14 "github.com/bigzoro/my_simplechain/common" 15 "github.com/bigzoro/my_simplechain/core/types" 16 "github.com/bigzoro/my_simplechain/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 ) 30 31 // StoreAbiMetaData contains all meta data concerning the StoreAbi contract. 32 var StoreAbiMetaData = &bind.MetaData{ 33 ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"name\":\"getAbi\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_abi\",\"type\":\"string\"}],\"name\":\"set\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]", 34 Sigs: map[string]string{ 35 "8d717ac5": "getAbi(string)", 36 "1ff5020f": "set(string,address,string)", 37 }, 38 Bin: "0x608060405234801561001057600080fd5b50610604806100206000396000f3fe6080604052600436106100295760003560e01c80631ff5020f1461002e5780638d717ac51461016e575b600080fd5b61016c6004803603606081101561004457600080fd5b81019060208101813564010000000081111561005f57600080fd5b82018360208201111561007157600080fd5b8035906020019184600183028401116401000000008311171561009357600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092956001600160a01b038535169590949093506040810192506020013590506401000000008111156100f757600080fd5b82018360208201111561010957600080fd5b8035906020019184600183028401116401000000008311171561012b57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506102b2945050505050565b005b34801561017a57600080fd5b506102216004803603602081101561019157600080fd5b8101906020810181356401000000008111156101ac57600080fd5b8201836020820111156101be57600080fd5b803590602001918460018302840111640100000000831117156101e057600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061039c945050505050565b60405180836001600160a01b03166001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561027657818101518382015260200161025e565b50505050905090810190601f1680156102a35780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6102ba610509565b6040518060600160405280858152602001846001600160a01b03168152602001838152509050806000856040518082805190602001908083835b602083106103135780518252601f1990920191602091820191016102f4565b51815160209384036101000a600019018019909216911617905292019485525060405193849003810190932084518051919461035494508593500190610533565b506020828101516001830180546001600160a01b0319166001600160a01b03909216919091179055604083015180516103939260028501920190610533565b50505050505050565b600060606000836040518082805190602001908083835b602083106103d25780518252601f1990920191602091820191016103b3565b51815160209384036101000a600019018019909216911617905292019485525060405193849003810184206001015487516001600160a01b039091169460009450889350918291908401908083835b602083106104405780518252601f199092019160209182019101610421565b518151600019602094850361010090810a8201928316921993909316919091179092529490920196875260408051978890038201882060029081018054601f60018216159098029095019094160494850182900482028801820190528387529095945085935084019050828280156104f95780601f106104ce576101008083540402835291602001916104f9565b820191906000526020600020905b8154815290600101906020018083116104dc57829003601f168201915b5050505050905091509150915091565b60405180606001604052806060815260200160006001600160a01b03168152602001606081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061057457805160ff19168380011785556105a1565b828001600101855582156105a1579182015b828111156105a1578251825591602001919060010190610586565b506105ad9291506105b1565b5090565b6105cb91905b808211156105ad57600081556001016105b7565b9056fea2646970667358221220b19ff616d9f9043c3428af7c961104e69172469a24c0cf1382bd1f88dde93a7c64736f6c63430006000033", 39 } 40 41 // StoreAbiABI is the input ABI used to generate the binding from. 42 // Deprecated: Use StoreAbiMetaData.ABI instead. 43 var StoreAbiABI = StoreAbiMetaData.ABI 44 45 // Deprecated: Use StoreAbiMetaData.Sigs instead. 46 // StoreAbiFuncSigs maps the 4-byte function signature to its string representation. 47 var StoreAbiFuncSigs = StoreAbiMetaData.Sigs 48 49 // StoreAbiBin is the compiled bytecode used for deploying new contracts. 50 // Deprecated: Use StoreAbiMetaData.Bin instead. 51 var StoreAbiBin = StoreAbiMetaData.Bin 52 53 // DeployStoreAbi deploys a new Ethereum contract, binding an instance of StoreAbi to it. 54 func DeployStoreAbi(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *StoreAbi, error) { 55 parsed, err := StoreAbiMetaData.GetAbi() 56 if err != nil { 57 return common.Address{}, nil, nil, err 58 } 59 if parsed == nil { 60 return common.Address{}, nil, nil, errors.New("GetABI returned nil") 61 } 62 63 address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(StoreAbiBin), backend) 64 if err != nil { 65 return common.Address{}, nil, nil, err 66 } 67 return address, tx, &StoreAbi{StoreAbiCaller: StoreAbiCaller{contract: contract}, StoreAbiTransactor: StoreAbiTransactor{contract: contract}, StoreAbiFilterer: StoreAbiFilterer{contract: contract}}, nil 68 } 69 70 // StoreAbi is an auto generated Go binding around an Ethereum contract. 71 type StoreAbi struct { 72 StoreAbiCaller // Read-only binding to the contract 73 StoreAbiTransactor // Write-only binding to the contract 74 StoreAbiFilterer // Log filterer for contract events 75 } 76 77 // StoreAbiCaller is an auto generated read-only Go binding around an Ethereum contract. 78 type StoreAbiCaller struct { 79 contract *bind.BoundContract // Generic contract wrapper for the low level calls 80 } 81 82 // StoreAbiTransactor is an auto generated write-only Go binding around an Ethereum contract. 83 type StoreAbiTransactor struct { 84 contract *bind.BoundContract // Generic contract wrapper for the low level calls 85 } 86 87 // StoreAbiFilterer is an auto generated log filtering Go binding around an Ethereum contract events. 88 type StoreAbiFilterer struct { 89 contract *bind.BoundContract // Generic contract wrapper for the low level calls 90 } 91 92 // StoreAbiSession is an auto generated Go binding around an Ethereum contract, 93 // with pre-set call and transact options. 94 type StoreAbiSession struct { 95 Contract *StoreAbi // Generic contract binding to set the session for 96 CallOpts bind.CallOpts // Call options to use throughout this session 97 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 98 } 99 100 // StoreAbiCallerSession is an auto generated read-only Go binding around an Ethereum contract, 101 // with pre-set call options. 102 type StoreAbiCallerSession struct { 103 Contract *StoreAbiCaller // Generic contract caller binding to set the session for 104 CallOpts bind.CallOpts // Call options to use throughout this session 105 } 106 107 // StoreAbiTransactorSession is an auto generated write-only Go binding around an Ethereum contract, 108 // with pre-set transact options. 109 type StoreAbiTransactorSession struct { 110 Contract *StoreAbiTransactor // Generic contract transactor binding to set the session for 111 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 112 } 113 114 // StoreAbiRaw is an auto generated low-level Go binding around an Ethereum contract. 115 type StoreAbiRaw struct { 116 Contract *StoreAbi // Generic contract binding to access the raw methods on 117 } 118 119 // StoreAbiCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. 120 type StoreAbiCallerRaw struct { 121 Contract *StoreAbiCaller // Generic read-only contract binding to access the raw methods on 122 } 123 124 // StoreAbiTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. 125 type StoreAbiTransactorRaw struct { 126 Contract *StoreAbiTransactor // Generic write-only contract binding to access the raw methods on 127 } 128 129 // NewStoreAbi creates a new instance of StoreAbi, bound to a specific deployed contract. 130 func NewStoreAbi(address common.Address, backend bind.ContractBackend) (*StoreAbi, error) { 131 contract, err := bindStoreAbi(address, backend, backend, backend) 132 if err != nil { 133 return nil, err 134 } 135 return &StoreAbi{StoreAbiCaller: StoreAbiCaller{contract: contract}, StoreAbiTransactor: StoreAbiTransactor{contract: contract}, StoreAbiFilterer: StoreAbiFilterer{contract: contract}}, nil 136 } 137 138 // NewStoreAbiCaller creates a new read-only instance of StoreAbi, bound to a specific deployed contract. 139 func NewStoreAbiCaller(address common.Address, caller bind.ContractCaller) (*StoreAbiCaller, error) { 140 contract, err := bindStoreAbi(address, caller, nil, nil) 141 if err != nil { 142 return nil, err 143 } 144 return &StoreAbiCaller{contract: contract}, nil 145 } 146 147 // NewStoreAbiTransactor creates a new write-only instance of StoreAbi, bound to a specific deployed contract. 148 func NewStoreAbiTransactor(address common.Address, transactor bind.ContractTransactor) (*StoreAbiTransactor, error) { 149 contract, err := bindStoreAbi(address, nil, transactor, nil) 150 if err != nil { 151 return nil, err 152 } 153 return &StoreAbiTransactor{contract: contract}, nil 154 } 155 156 // NewStoreAbiFilterer creates a new log filterer instance of StoreAbi, bound to a specific deployed contract. 157 func NewStoreAbiFilterer(address common.Address, filterer bind.ContractFilterer) (*StoreAbiFilterer, error) { 158 contract, err := bindStoreAbi(address, nil, nil, filterer) 159 if err != nil { 160 return nil, err 161 } 162 return &StoreAbiFilterer{contract: contract}, nil 163 } 164 165 // bindStoreAbi binds a generic wrapper to an already deployed contract. 166 func bindStoreAbi(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { 167 parsed, err := abi.JSON(strings.NewReader(StoreAbiABI)) 168 if err != nil { 169 return nil, err 170 } 171 return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil 172 } 173 174 // Call invokes the (constant) contract method with params as input values and 175 // sets the output to result. The result type might be a single field for simple 176 // returns, a slice of interfaces for anonymous returns and a struct for named 177 // returns. 178 func (_StoreAbi *StoreAbiRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 179 return _StoreAbi.Contract.StoreAbiCaller.contract.Call(opts, result, method, params...) 180 } 181 182 // Transfer initiates a plain transaction to move funds to the contract, calling 183 // its default method if one is available. 184 func (_StoreAbi *StoreAbiRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 185 return _StoreAbi.Contract.StoreAbiTransactor.contract.Transfer(opts) 186 } 187 188 // Transact invokes the (paid) contract method with params as input values. 189 func (_StoreAbi *StoreAbiRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 190 return _StoreAbi.Contract.StoreAbiTransactor.contract.Transact(opts, method, params...) 191 } 192 193 // Call invokes the (constant) contract method with params as input values and 194 // sets the output to result. The result type might be a single field for simple 195 // returns, a slice of interfaces for anonymous returns and a struct for named 196 // returns. 197 func (_StoreAbi *StoreAbiCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 198 return _StoreAbi.Contract.contract.Call(opts, result, method, params...) 199 } 200 201 // Transfer initiates a plain transaction to move funds to the contract, calling 202 // its default method if one is available. 203 func (_StoreAbi *StoreAbiTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 204 return _StoreAbi.Contract.contract.Transfer(opts) 205 } 206 207 // Transact invokes the (paid) contract method with params as input values. 208 func (_StoreAbi *StoreAbiTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 209 return _StoreAbi.Contract.contract.Transact(opts, method, params...) 210 } 211 212 // GetAbi is a free data retrieval call binding the contract method 0x8d717ac5. 213 // 214 // Solidity: function getAbi(string name) view returns(address, string) 215 func (_StoreAbi *StoreAbiCaller) GetAbi(opts *bind.CallOpts, name string) (common.Address, string, error) { 216 var out []interface{} 217 err := _StoreAbi.contract.Call(opts, &out, "getAbi", name) 218 219 if err != nil { 220 return *new(common.Address), *new(string), err 221 } 222 223 out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) 224 out1 := *abi.ConvertType(out[1], new(string)).(*string) 225 226 return out0, out1, err 227 228 } 229 230 // GetAbi is a free data retrieval call binding the contract method 0x8d717ac5. 231 // 232 // Solidity: function getAbi(string name) view returns(address, string) 233 func (_StoreAbi *StoreAbiSession) GetAbi(name string) (common.Address, string, error) { 234 return _StoreAbi.Contract.GetAbi(&_StoreAbi.CallOpts, name) 235 } 236 237 // GetAbi is a free data retrieval call binding the contract method 0x8d717ac5. 238 // 239 // Solidity: function getAbi(string name) view returns(address, string) 240 func (_StoreAbi *StoreAbiCallerSession) GetAbi(name string) (common.Address, string, error) { 241 return _StoreAbi.Contract.GetAbi(&_StoreAbi.CallOpts, name) 242 } 243 244 // Set is a paid mutator transaction binding the contract method 0x1ff5020f. 245 // 246 // Solidity: function set(string name, address addr, string _abi) payable returns() 247 func (_StoreAbi *StoreAbiTransactor) Set(opts *bind.TransactOpts, name string, addr common.Address, _abi string) (*types.Transaction, error) { 248 return _StoreAbi.contract.Transact(opts, "set", name, addr, _abi) 249 } 250 251 // Set is a paid mutator transaction binding the contract method 0x1ff5020f. 252 // 253 // Solidity: function set(string name, address addr, string _abi) payable returns() 254 func (_StoreAbi *StoreAbiSession) Set(name string, addr common.Address, _abi string) (*types.Transaction, error) { 255 return _StoreAbi.Contract.Set(&_StoreAbi.TransactOpts, name, addr, _abi) 256 } 257 258 // Set is a paid mutator transaction binding the contract method 0x1ff5020f. 259 // 260 // Solidity: function set(string name, address addr, string _abi) payable returns() 261 func (_StoreAbi *StoreAbiTransactorSession) Set(name string, addr common.Address, _abi string) (*types.Transaction, error) { 262 return _StoreAbi.Contract.Set(&_StoreAbi.TransactOpts, name, addr, _abi) 263 }