github.com/XinFinOrg/xdcchain@v1.1.0/contracts/randomize/contract/randomize.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 contract 5 6 import ( 7 "strings" 8 9 "github.com/ethereum/go-ethereum/accounts/abi" 10 "github.com/ethereum/go-ethereum/accounts/abi/bind" 11 "github.com/ethereum/go-ethereum/common" 12 "github.com/ethereum/go-ethereum/core/types" 13 ) 14 15 // SafeMathABI is the input ABI used to generate the binding from. 16 const SafeMathABI = "[]" 17 18 // SafeMathBin is the compiled bytecode used for deploying new contracts. 19 const SafeMathBin = `0x604c602c600b82828239805160001a60731460008114601c57601e565bfe5b5030600052607381538281f30073000000000000000000000000000000000000000030146060604052600080fd00a165627a7a72305820b9407d48ebc7efee5c9f08b3b3a957df2939281f5913225e8c1291f069b900490029` 20 21 // DeploySafeMath deploys a new Ethereum contract, binding an instance of SafeMath to it. 22 func DeploySafeMath(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SafeMath, error) { 23 parsed, err := abi.JSON(strings.NewReader(SafeMathABI)) 24 if err != nil { 25 return common.Address{}, nil, nil, err 26 } 27 address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(SafeMathBin), backend) 28 if err != nil { 29 return common.Address{}, nil, nil, err 30 } 31 return address, tx, &SafeMath{SafeMathCaller: SafeMathCaller{contract: contract}, SafeMathTransactor: SafeMathTransactor{contract: contract}, SafeMathFilterer: SafeMathFilterer{contract: contract}}, nil 32 } 33 34 // SafeMath is an auto generated Go binding around an Ethereum contract. 35 type SafeMath struct { 36 SafeMathCaller // Read-only binding to the contract 37 SafeMathTransactor // Write-only binding to the contract 38 SafeMathFilterer // Log filterer for contract events 39 } 40 41 // SafeMathCaller is an auto generated read-only Go binding around an Ethereum contract. 42 type SafeMathCaller struct { 43 contract *bind.BoundContract // Generic contract wrapper for the low level calls 44 } 45 46 // SafeMathTransactor is an auto generated write-only Go binding around an Ethereum contract. 47 type SafeMathTransactor struct { 48 contract *bind.BoundContract // Generic contract wrapper for the low level calls 49 } 50 51 // SafeMathFilterer is an auto generated log filtering Go binding around an Ethereum contract events. 52 type SafeMathFilterer struct { 53 contract *bind.BoundContract // Generic contract wrapper for the low level calls 54 } 55 56 // SafeMathSession is an auto generated Go binding around an Ethereum contract, 57 // with pre-set call and transact options. 58 type SafeMathSession struct { 59 Contract *SafeMath // Generic contract binding to set the session for 60 CallOpts bind.CallOpts // Call options to use throughout this session 61 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 62 } 63 64 // SafeMathCallerSession is an auto generated read-only Go binding around an Ethereum contract, 65 // with pre-set call options. 66 type SafeMathCallerSession struct { 67 Contract *SafeMathCaller // Generic contract caller binding to set the session for 68 CallOpts bind.CallOpts // Call options to use throughout this session 69 } 70 71 // SafeMathTransactorSession is an auto generated write-only Go binding around an Ethereum contract, 72 // with pre-set transact options. 73 type SafeMathTransactorSession struct { 74 Contract *SafeMathTransactor // Generic contract transactor binding to set the session for 75 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 76 } 77 78 // SafeMathRaw is an auto generated low-level Go binding around an Ethereum contract. 79 type SafeMathRaw struct { 80 Contract *SafeMath // Generic contract binding to access the raw methods on 81 } 82 83 // SafeMathCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. 84 type SafeMathCallerRaw struct { 85 Contract *SafeMathCaller // Generic read-only contract binding to access the raw methods on 86 } 87 88 // SafeMathTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. 89 type SafeMathTransactorRaw struct { 90 Contract *SafeMathTransactor // Generic write-only contract binding to access the raw methods on 91 } 92 93 // NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract. 94 func NewSafeMath(address common.Address, backend bind.ContractBackend) (*SafeMath, error) { 95 contract, err := bindSafeMath(address, backend, backend, backend) 96 if err != nil { 97 return nil, err 98 } 99 return &SafeMath{SafeMathCaller: SafeMathCaller{contract: contract}, SafeMathTransactor: SafeMathTransactor{contract: contract}, SafeMathFilterer: SafeMathFilterer{contract: contract}}, nil 100 } 101 102 // NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract. 103 func NewSafeMathCaller(address common.Address, caller bind.ContractCaller) (*SafeMathCaller, error) { 104 contract, err := bindSafeMath(address, caller, nil, nil) 105 if err != nil { 106 return nil, err 107 } 108 return &SafeMathCaller{contract: contract}, nil 109 } 110 111 // NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract. 112 func NewSafeMathTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeMathTransactor, error) { 113 contract, err := bindSafeMath(address, nil, transactor, nil) 114 if err != nil { 115 return nil, err 116 } 117 return &SafeMathTransactor{contract: contract}, nil 118 } 119 120 // NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract. 121 func NewSafeMathFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeMathFilterer, error) { 122 contract, err := bindSafeMath(address, nil, nil, filterer) 123 if err != nil { 124 return nil, err 125 } 126 return &SafeMathFilterer{contract: contract}, nil 127 } 128 129 // bindSafeMath binds a generic wrapper to an already deployed contract. 130 func bindSafeMath(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { 131 parsed, err := abi.JSON(strings.NewReader(SafeMathABI)) 132 if err != nil { 133 return nil, err 134 } 135 return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil 136 } 137 138 // Call invokes the (constant) contract method with params as input values and 139 // sets the output to result. The result type might be a single field for simple 140 // returns, a slice of interfaces for anonymous returns and a struct for named 141 // returns. 142 func (_SafeMath *SafeMathRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error { 143 return _SafeMath.Contract.SafeMathCaller.contract.Call(opts, result, method, params...) 144 } 145 146 // Transfer initiates a plain transaction to move funds to the contract, calling 147 // its default method if one is available. 148 func (_SafeMath *SafeMathRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 149 return _SafeMath.Contract.SafeMathTransactor.contract.Transfer(opts) 150 } 151 152 // Transact invokes the (paid) contract method with params as input values. 153 func (_SafeMath *SafeMathRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 154 return _SafeMath.Contract.SafeMathTransactor.contract.Transact(opts, method, params...) 155 } 156 157 // Call invokes the (constant) contract method with params as input values and 158 // sets the output to result. The result type might be a single field for simple 159 // returns, a slice of interfaces for anonymous returns and a struct for named 160 // returns. 161 func (_SafeMath *SafeMathCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error { 162 return _SafeMath.Contract.contract.Call(opts, result, method, params...) 163 } 164 165 // Transfer initiates a plain transaction to move funds to the contract, calling 166 // its default method if one is available. 167 func (_SafeMath *SafeMathTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 168 return _SafeMath.Contract.contract.Transfer(opts) 169 } 170 171 // Transact invokes the (paid) contract method with params as input values. 172 func (_SafeMath *SafeMathTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 173 return _SafeMath.Contract.contract.Transact(opts, method, params...) 174 } 175 176 // XDCRandomizeABI is the input ABI used to generate the binding from. 177 const XDCRandomizeABI = "[{\"constant\":true,\"inputs\":[{\"name\":\"_validator\",\"type\":\"address\"}],\"name\":\"getSecret\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_secret\",\"type\":\"bytes32[]\"}],\"name\":\"setSecret\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_validator\",\"type\":\"address\"}],\"name\":\"getOpening\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_opening\",\"type\":\"bytes32\"}],\"name\":\"setOpening\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}]" 178 179 // XDCRandomizeBin is the compiled bytecode used for deploying new contracts. 180 const XDCRandomizeBin = `0x6060604052341561000f57600080fd5b6103368061001e6000396000f3006060604052600436106100615763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663284180fc811461006657806334d38600146100d8578063d442d6cc14610129578063e11f5ba21461015a575b600080fd5b341561007157600080fd5b610085600160a060020a0360043516610170565b60405160208082528190810183818151815260200191508051906020019060200280838360005b838110156100c45780820151838201526020016100ac565b505050509050019250505060405180910390f35b34156100e357600080fd5b61012760046024813581810190830135806020818102016040519081016040528093929190818152602001838360200280828437509496506101f395505050505050565b005b341561013457600080fd5b610148600160a060020a0360043516610243565b60405190815260200160405180910390f35b341561016557600080fd5b61012760043561025e565b61017861028e565b60008083600160a060020a0316600160a060020a031681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156101e757602002820191906000526020600020905b815481526001909101906020018083116101d2575b50505050509050919050565b610384430661032081101561020757600080fd5b610352811061021557600080fd5b600160a060020a033316600090815260208190526040902082805161023e9291602001906102a0565b505050565b600160a060020a031660009081526001602052604090205490565b610384430661035281101561027257600080fd5b50600160a060020a033316600090815260016020526040902055565b60206040519081016040526000815290565b8280548282559060005260206000209081019282156102dd579160200282015b828111156102dd57825182556020909201916001909101906102c0565b506102e99291506102ed565b5090565b61030791905b808211156102e957600081556001016102f3565b905600a165627a7a7230582034991c8dc4001fc254f3ba2811c05d2e7d29bee3908946ca56d1545b2c852de20029` 181 182 // DeployXDCRandomize deploys a new Ethereum contract, binding an instance of XDCRandomize to it. 183 func DeployXDCRandomize(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *XDCRandomize, error) { 184 parsed, err := abi.JSON(strings.NewReader(XDCRandomizeABI)) 185 if err != nil { 186 return common.Address{}, nil, nil, err 187 } 188 address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(XDCRandomizeBin), backend) 189 if err != nil { 190 return common.Address{}, nil, nil, err 191 } 192 return address, tx, &XDCRandomize{XDCRandomizeCaller: XDCRandomizeCaller{contract: contract}, XDCRandomizeTransactor: XDCRandomizeTransactor{contract: contract}, XDCRandomizeFilterer: XDCRandomizeFilterer{contract: contract}}, nil 193 } 194 195 // XDCRandomize is an auto generated Go binding around an Ethereum contract. 196 type XDCRandomize struct { 197 XDCRandomizeCaller // Read-only binding to the contract 198 XDCRandomizeTransactor // Write-only binding to the contract 199 XDCRandomizeFilterer // Log filterer for contract events 200 } 201 202 // XDCRandomizeCaller is an auto generated read-only Go binding around an Ethereum contract. 203 type XDCRandomizeCaller struct { 204 contract *bind.BoundContract // Generic contract wrapper for the low level calls 205 } 206 207 // XDCRandomizeTransactor is an auto generated write-only Go binding around an Ethereum contract. 208 type XDCRandomizeTransactor struct { 209 contract *bind.BoundContract // Generic contract wrapper for the low level calls 210 } 211 212 // XDCRandomizeFilterer is an auto generated log filtering Go binding around an Ethereum contract events. 213 type XDCRandomizeFilterer struct { 214 contract *bind.BoundContract // Generic contract wrapper for the low level calls 215 } 216 217 // XDCRandomizeSession is an auto generated Go binding around an Ethereum contract, 218 // with pre-set call and transact options. 219 type XDCRandomizeSession struct { 220 Contract *XDCRandomize // Generic contract binding to set the session for 221 CallOpts bind.CallOpts // Call options to use throughout this session 222 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 223 } 224 225 // XDCRandomizeCallerSession is an auto generated read-only Go binding around an Ethereum contract, 226 // with pre-set call options. 227 type XDCRandomizeCallerSession struct { 228 Contract *XDCRandomizeCaller // Generic contract caller binding to set the session for 229 CallOpts bind.CallOpts // Call options to use throughout this session 230 } 231 232 // XDCRandomizeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, 233 // with pre-set transact options. 234 type XDCRandomizeTransactorSession struct { 235 Contract *XDCRandomizeTransactor // Generic contract transactor binding to set the session for 236 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 237 } 238 239 // XDCRandomizeRaw is an auto generated low-level Go binding around an Ethereum contract. 240 type XDCRandomizeRaw struct { 241 Contract *XDCRandomize // Generic contract binding to access the raw methods on 242 } 243 244 // XDCRandomizeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. 245 type XDCRandomizeCallerRaw struct { 246 Contract *XDCRandomizeCaller // Generic read-only contract binding to access the raw methods on 247 } 248 249 // XDCRandomizeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. 250 type XDCRandomizeTransactorRaw struct { 251 Contract *XDCRandomizeTransactor // Generic write-only contract binding to access the raw methods on 252 } 253 254 // NewXDCRandomize creates a new instance of XDCRandomize, bound to a specific deployed contract. 255 func NewXDCRandomize(address common.Address, backend bind.ContractBackend) (*XDCRandomize, error) { 256 contract, err := bindXDCRandomize(address, backend, backend, backend) 257 if err != nil { 258 return nil, err 259 } 260 return &XDCRandomize{XDCRandomizeCaller: XDCRandomizeCaller{contract: contract}, XDCRandomizeTransactor: XDCRandomizeTransactor{contract: contract}, XDCRandomizeFilterer: XDCRandomizeFilterer{contract: contract}}, nil 261 } 262 263 // NewXDCRandomizeCaller creates a new read-only instance of XDCRandomize, bound to a specific deployed contract. 264 func NewXDCRandomizeCaller(address common.Address, caller bind.ContractCaller) (*XDCRandomizeCaller, error) { 265 contract, err := bindXDCRandomize(address, caller, nil, nil) 266 if err != nil { 267 return nil, err 268 } 269 return &XDCRandomizeCaller{contract: contract}, nil 270 } 271 272 // NewXDCRandomizeTransactor creates a new write-only instance of XDCRandomize, bound to a specific deployed contract. 273 func NewXDCRandomizeTransactor(address common.Address, transactor bind.ContractTransactor) (*XDCRandomizeTransactor, error) { 274 contract, err := bindXDCRandomize(address, nil, transactor, nil) 275 if err != nil { 276 return nil, err 277 } 278 return &XDCRandomizeTransactor{contract: contract}, nil 279 } 280 281 // NewXDCRandomizeFilterer creates a new log filterer instance of XDCRandomize, bound to a specific deployed contract. 282 func NewXDCRandomizeFilterer(address common.Address, filterer bind.ContractFilterer) (*XDCRandomizeFilterer, error) { 283 contract, err := bindXDCRandomize(address, nil, nil, filterer) 284 if err != nil { 285 return nil, err 286 } 287 return &XDCRandomizeFilterer{contract: contract}, nil 288 } 289 290 // bindXDCRandomize binds a generic wrapper to an already deployed contract. 291 func bindXDCRandomize(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { 292 parsed, err := abi.JSON(strings.NewReader(XDCRandomizeABI)) 293 if err != nil { 294 return nil, err 295 } 296 return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil 297 } 298 299 // Call invokes the (constant) contract method with params as input values and 300 // sets the output to result. The result type might be a single field for simple 301 // returns, a slice of interfaces for anonymous returns and a struct for named 302 // returns. 303 func (_XDCRandomize *XDCRandomizeRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error { 304 return _XDCRandomize.Contract.XDCRandomizeCaller.contract.Call(opts, result, method, params...) 305 } 306 307 // Transfer initiates a plain transaction to move funds to the contract, calling 308 // its default method if one is available. 309 func (_XDCRandomize *XDCRandomizeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 310 return _XDCRandomize.Contract.XDCRandomizeTransactor.contract.Transfer(opts) 311 } 312 313 // Transact invokes the (paid) contract method with params as input values. 314 func (_XDCRandomize *XDCRandomizeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 315 return _XDCRandomize.Contract.XDCRandomizeTransactor.contract.Transact(opts, method, params...) 316 } 317 318 // Call invokes the (constant) contract method with params as input values and 319 // sets the output to result. The result type might be a single field for simple 320 // returns, a slice of interfaces for anonymous returns and a struct for named 321 // returns. 322 func (_XDCRandomize *XDCRandomizeCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error { 323 return _XDCRandomize.Contract.contract.Call(opts, result, method, params...) 324 } 325 326 // Transfer initiates a plain transaction to move funds to the contract, calling 327 // its default method if one is available. 328 func (_XDCRandomize *XDCRandomizeTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 329 return _XDCRandomize.Contract.contract.Transfer(opts) 330 } 331 332 // Transact invokes the (paid) contract method with params as input values. 333 func (_XDCRandomize *XDCRandomizeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 334 return _XDCRandomize.Contract.contract.Transact(opts, method, params...) 335 } 336 337 // GetOpening is a free data retrieval call binding the contract method 0xd442d6cc. 338 // 339 // Solidity: function getOpening(_validator address) constant returns(bytes32) 340 func (_XDCRandomize *XDCRandomizeCaller) GetOpening(opts *bind.CallOpts, _validator common.Address) ([32]byte, error) { 341 var ( 342 ret0 = new([32]byte) 343 ) 344 out := ret0 345 err := _XDCRandomize.contract.Call(opts, out, "getOpening", _validator) 346 return *ret0, err 347 } 348 349 // GetOpening is a free data retrieval call binding the contract method 0xd442d6cc. 350 // 351 // Solidity: function getOpening(_validator address) constant returns(bytes32) 352 func (_XDCRandomize *XDCRandomizeSession) GetOpening(_validator common.Address) ([32]byte, error) { 353 return _XDCRandomize.Contract.GetOpening(&_XDCRandomize.CallOpts, _validator) 354 } 355 356 // GetOpening is a free data retrieval call binding the contract method 0xd442d6cc. 357 // 358 // Solidity: function getOpening(_validator address) constant returns(bytes32) 359 func (_XDCRandomize *XDCRandomizeCallerSession) GetOpening(_validator common.Address) ([32]byte, error) { 360 return _XDCRandomize.Contract.GetOpening(&_XDCRandomize.CallOpts, _validator) 361 } 362 363 // GetSecret is a free data retrieval call binding the contract method 0x284180fc. 364 // 365 // Solidity: function getSecret(_validator address) constant returns(bytes32[]) 366 func (_XDCRandomize *XDCRandomizeCaller) GetSecret(opts *bind.CallOpts, _validator common.Address) ([][32]byte, error) { 367 var ( 368 ret0 = new([][32]byte) 369 ) 370 out := ret0 371 err := _XDCRandomize.contract.Call(opts, out, "getSecret", _validator) 372 return *ret0, err 373 } 374 375 // GetSecret is a free data retrieval call binding the contract method 0x284180fc. 376 // 377 // Solidity: function getSecret(_validator address) constant returns(bytes32[]) 378 func (_XDCRandomize *XDCRandomizeSession) GetSecret(_validator common.Address) ([][32]byte, error) { 379 return _XDCRandomize.Contract.GetSecret(&_XDCRandomize.CallOpts, _validator) 380 } 381 382 // GetSecret is a free data retrieval call binding the contract method 0x284180fc. 383 // 384 // Solidity: function getSecret(_validator address) constant returns(bytes32[]) 385 func (_XDCRandomize *XDCRandomizeCallerSession) GetSecret(_validator common.Address) ([][32]byte, error) { 386 return _XDCRandomize.Contract.GetSecret(&_XDCRandomize.CallOpts, _validator) 387 } 388 389 // SetOpening is a paid mutator transaction binding the contract method 0xe11f5ba2. 390 // 391 // Solidity: function setOpening(_opening bytes32) returns() 392 func (_XDCRandomize *XDCRandomizeTransactor) SetOpening(opts *bind.TransactOpts, _opening [32]byte) (*types.Transaction, error) { 393 return _XDCRandomize.contract.Transact(opts, "setOpening", _opening) 394 } 395 396 // SetOpening is a paid mutator transaction binding the contract method 0xe11f5ba2. 397 // 398 // Solidity: function setOpening(_opening bytes32) returns() 399 func (_XDCRandomize *XDCRandomizeSession) SetOpening(_opening [32]byte) (*types.Transaction, error) { 400 return _XDCRandomize.Contract.SetOpening(&_XDCRandomize.TransactOpts, _opening) 401 } 402 403 // SetOpening is a paid mutator transaction binding the contract method 0xe11f5ba2. 404 // 405 // Solidity: function setOpening(_opening bytes32) returns() 406 func (_XDCRandomize *XDCRandomizeTransactorSession) SetOpening(_opening [32]byte) (*types.Transaction, error) { 407 return _XDCRandomize.Contract.SetOpening(&_XDCRandomize.TransactOpts, _opening) 408 } 409 410 // SetSecret is a paid mutator transaction binding the contract method 0x34d38600. 411 // 412 // Solidity: function setSecret(_secret bytes32[]) returns() 413 func (_XDCRandomize *XDCRandomizeTransactor) SetSecret(opts *bind.TransactOpts, _secret [][32]byte) (*types.Transaction, error) { 414 return _XDCRandomize.contract.Transact(opts, "setSecret", _secret) 415 } 416 417 // SetSecret is a paid mutator transaction binding the contract method 0x34d38600. 418 // 419 // Solidity: function setSecret(_secret bytes32[]) returns() 420 func (_XDCRandomize *XDCRandomizeSession) SetSecret(_secret [][32]byte) (*types.Transaction, error) { 421 return _XDCRandomize.Contract.SetSecret(&_XDCRandomize.TransactOpts, _secret) 422 } 423 424 // SetSecret is a paid mutator transaction binding the contract method 0x34d38600. 425 // 426 // Solidity: function setSecret(_secret bytes32[]) returns() 427 func (_XDCRandomize *XDCRandomizeTransactorSession) SetSecret(_secret [][32]byte) (*types.Transaction, error) { 428 return _XDCRandomize.Contract.SetSecret(&_XDCRandomize.TransactOpts, _secret) 429 }