github.com/xfers/quorum@v21.1.0+incompatible/permission/v1/bind/permission_upgr.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  	"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  // PermUpgrABI is the input ABI used to generate the binding from.
    31  const PermUpgrABI = "[{\"constant\":true,\"inputs\":[],\"name\":\"getPermImpl\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_proposedImpl\",\"type\":\"address\"}],\"name\":\"confirmImplChange\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getGuardian\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getPermInterface\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_permInterface\",\"type\":\"address\"},{\"name\":\"_permImpl\",\"type\":\"address\"}],\"name\":\"init\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_guardian\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}]"
    32  
    33  var PermUpgrParsedABI, _ = abi.JSON(strings.NewReader(PermUpgrABI))
    34  
    35  // PermUpgrBin is the compiled bytecode used for deploying new contracts.
    36  var PermUpgrBin = "0x608060405234801561001057600080fd5b506040516020806106e78339810180604052602081101561003057600080fd5b5051600080546001600160a01b039092166001600160a01b031990921691909117905560028054600160a01b60ff0219169055610675806100726000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630e32cf901461005c57806322bcb39a14610080578063a75b87d2146100a8578063e572515c146100b0578063f09a4016146100b8575b600080fd5b6100646100e6565b604080516001600160a01b039092168252519081900360200190f35b6100a66004803603602081101561009657600080fd5b50356001600160a01b03166100f5565b005b61006461030b565b61006461031a565b6100a6600480360360408110156100ce57600080fd5b506001600160a01b0381358116916020013516610329565b6001546001600160a01b031690565b6000546001600160a01b0316331461014b5760408051600160e51b62461bcd02815260206004820152600e6024820152600160911b6d34b73b30b634b21031b0b63632b902604482015290519081900360640190fd5b60608060606000600160009054906101000a90046001600160a01b03166001600160a01b031663cc9ba6fa6040518163ffffffff1660e01b815260040160006040518083038186803b1580156101a057600080fd5b505afa1580156101b4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260808110156101dd57600080fd5b8101908080516401000000008111156101f557600080fd5b8201602081018481111561020857600080fd5b815164010000000081118282018710171561022257600080fd5b5050929190602001805164010000000081111561023e57600080fd5b8201602081018481111561025157600080fd5b815164010000000081118282018710171561026b57600080fd5b5050929190602001805164010000000081111561028757600080fd5b8201602081018481111561029a57600080fd5b81516401000000008111828201871017156102b457600080fd5b50506020909101519498509296509194509192506102d9915086905085858585610443565b600180546001600160a01b0319166001600160a01b03878116919091179182905561030491166105e4565b5050505050565b6000546001600160a01b031690565b6002546001600160a01b031690565b6000546001600160a01b0316331461037f5760408051600160e51b62461bcd02815260206004820152600e6024820152600160911b6d34b73b30b634b21031b0b63632b902604482015290519081900360640190fd5b600254600160a01b900460ff16156103e15760408051600160e51b62461bcd02815260206004820152601960248201527f63616e206265206578656375746564206f6e6c79206f6e636500000000000000604482015290519081900360640190fd5b600180546001600160a01b038084166001600160a01b031992831617928390556002805486831693169290921790915561041b91166105e4565b50506002805474ff00000000000000000000000000000000000000001916600160a01b179055565b846001600160a01b031663f5ad584a858585856040518563ffffffff1660e01b81526004018080602001806020018060200185151515158152602001848103845288818151815260200191508051906020019080838360005b838110156104b457818101518382015260200161049c565b50505050905090810190601f1680156104e15780820380516001836020036101000a031916815260200191505b50848103835287518152875160209182019189019080838360005b838110156105145781810151838201526020016104fc565b50505050905090810190601f1680156105415780820380516001836020036101000a031916815260200191505b50848103825286518152865160209182019188019080838360005b8381101561057457818101518382015260200161055c565b50505050905090810190601f1680156105a15780820380516001836020036101000a031916815260200191505b50975050505050505050600060405180830381600087803b1580156105c557600080fd5b505af11580156105d9573d6000803e3d6000fd5b505050505050505050565b60025460408051600160e01b63511bbd9f0281526001600160a01b0384811660048301529151919092169163511bbd9f91602480830192600092919082900301818387803b15801561063557600080fd5b505af1158015610304573d6000803e3d6000fdfea165627a7a72305820baed98682426c4ca5713954d4aec5ce8f78637bbf627bd8f53ff37aac2394a950029"
    37  
    38  // DeployPermUpgr deploys a new Ethereum contract, binding an instance of PermUpgr to it.
    39  func DeployPermUpgr(auth *bind.TransactOpts, backend bind.ContractBackend, _guardian common.Address) (common.Address, *types.Transaction, *PermUpgr, error) {
    40  	parsed, err := abi.JSON(strings.NewReader(PermUpgrABI))
    41  	if err != nil {
    42  		return common.Address{}, nil, nil, err
    43  	}
    44  
    45  	address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(PermUpgrBin), backend, _guardian)
    46  	if err != nil {
    47  		return common.Address{}, nil, nil, err
    48  	}
    49  	return address, tx, &PermUpgr{PermUpgrCaller: PermUpgrCaller{contract: contract}, PermUpgrTransactor: PermUpgrTransactor{contract: contract}, PermUpgrFilterer: PermUpgrFilterer{contract: contract}}, nil
    50  }
    51  
    52  // PermUpgr is an auto generated Go binding around an Ethereum contract.
    53  type PermUpgr struct {
    54  	PermUpgrCaller     // Read-only binding to the contract
    55  	PermUpgrTransactor // Write-only binding to the contract
    56  	PermUpgrFilterer   // Log filterer for contract events
    57  }
    58  
    59  // PermUpgrCaller is an auto generated read-only Go binding around an Ethereum contract.
    60  type PermUpgrCaller struct {
    61  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    62  }
    63  
    64  // PermUpgrTransactor is an auto generated write-only Go binding around an Ethereum contract.
    65  type PermUpgrTransactor struct {
    66  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    67  }
    68  
    69  // PermUpgrFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
    70  type PermUpgrFilterer struct {
    71  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    72  }
    73  
    74  // PermUpgrSession is an auto generated Go binding around an Ethereum contract,
    75  // with pre-set call and transact options.
    76  type PermUpgrSession struct {
    77  	Contract     *PermUpgr         // Generic contract binding to set the session for
    78  	CallOpts     bind.CallOpts     // Call options to use throughout this session
    79  	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
    80  }
    81  
    82  // PermUpgrCallerSession is an auto generated read-only Go binding around an Ethereum contract,
    83  // with pre-set call options.
    84  type PermUpgrCallerSession struct {
    85  	Contract *PermUpgrCaller // Generic contract caller binding to set the session for
    86  	CallOpts bind.CallOpts   // Call options to use throughout this session
    87  }
    88  
    89  // PermUpgrTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
    90  // with pre-set transact options.
    91  type PermUpgrTransactorSession struct {
    92  	Contract     *PermUpgrTransactor // Generic contract transactor binding to set the session for
    93  	TransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session
    94  }
    95  
    96  // PermUpgrRaw is an auto generated low-level Go binding around an Ethereum contract.
    97  type PermUpgrRaw struct {
    98  	Contract *PermUpgr // Generic contract binding to access the raw methods on
    99  }
   100  
   101  // PermUpgrCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
   102  type PermUpgrCallerRaw struct {
   103  	Contract *PermUpgrCaller // Generic read-only contract binding to access the raw methods on
   104  }
   105  
   106  // PermUpgrTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
   107  type PermUpgrTransactorRaw struct {
   108  	Contract *PermUpgrTransactor // Generic write-only contract binding to access the raw methods on
   109  }
   110  
   111  // NewPermUpgr creates a new instance of PermUpgr, bound to a specific deployed contract.
   112  func NewPermUpgr(address common.Address, backend bind.ContractBackend) (*PermUpgr, error) {
   113  	contract, err := bindPermUpgr(address, backend, backend, backend)
   114  	if err != nil {
   115  		return nil, err
   116  	}
   117  	return &PermUpgr{PermUpgrCaller: PermUpgrCaller{contract: contract}, PermUpgrTransactor: PermUpgrTransactor{contract: contract}, PermUpgrFilterer: PermUpgrFilterer{contract: contract}}, nil
   118  }
   119  
   120  // NewPermUpgrCaller creates a new read-only instance of PermUpgr, bound to a specific deployed contract.
   121  func NewPermUpgrCaller(address common.Address, caller bind.ContractCaller) (*PermUpgrCaller, error) {
   122  	contract, err := bindPermUpgr(address, caller, nil, nil)
   123  	if err != nil {
   124  		return nil, err
   125  	}
   126  	return &PermUpgrCaller{contract: contract}, nil
   127  }
   128  
   129  // NewPermUpgrTransactor creates a new write-only instance of PermUpgr, bound to a specific deployed contract.
   130  func NewPermUpgrTransactor(address common.Address, transactor bind.ContractTransactor) (*PermUpgrTransactor, error) {
   131  	contract, err := bindPermUpgr(address, nil, transactor, nil)
   132  	if err != nil {
   133  		return nil, err
   134  	}
   135  	return &PermUpgrTransactor{contract: contract}, nil
   136  }
   137  
   138  // NewPermUpgrFilterer creates a new log filterer instance of PermUpgr, bound to a specific deployed contract.
   139  func NewPermUpgrFilterer(address common.Address, filterer bind.ContractFilterer) (*PermUpgrFilterer, error) {
   140  	contract, err := bindPermUpgr(address, nil, nil, filterer)
   141  	if err != nil {
   142  		return nil, err
   143  	}
   144  	return &PermUpgrFilterer{contract: contract}, nil
   145  }
   146  
   147  // bindPermUpgr binds a generic wrapper to an already deployed contract.
   148  func bindPermUpgr(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   149  	parsed, err := abi.JSON(strings.NewReader(PermUpgrABI))
   150  	if err != nil {
   151  		return nil, err
   152  	}
   153  	return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
   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 (_PermUpgr *PermUpgrRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   161  	return _PermUpgr.Contract.PermUpgrCaller.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 (_PermUpgr *PermUpgrRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   167  	return _PermUpgr.Contract.PermUpgrTransactor.contract.Transfer(opts)
   168  }
   169  
   170  // Transact invokes the (paid) contract method with params as input values.
   171  func (_PermUpgr *PermUpgrRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   172  	return _PermUpgr.Contract.PermUpgrTransactor.contract.Transact(opts, method, params...)
   173  }
   174  
   175  // Call invokes the (constant) contract method with params as input values and
   176  // sets the output to result. The result type might be a single field for simple
   177  // returns, a slice of interfaces for anonymous returns and a struct for named
   178  // returns.
   179  func (_PermUpgr *PermUpgrCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   180  	return _PermUpgr.Contract.contract.Call(opts, result, method, params...)
   181  }
   182  
   183  // Transfer initiates a plain transaction to move funds to the contract, calling
   184  // its default method if one is available.
   185  func (_PermUpgr *PermUpgrTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   186  	return _PermUpgr.Contract.contract.Transfer(opts)
   187  }
   188  
   189  // Transact invokes the (paid) contract method with params as input values.
   190  func (_PermUpgr *PermUpgrTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   191  	return _PermUpgr.Contract.contract.Transact(opts, method, params...)
   192  }
   193  
   194  // GetGuardian is a free data retrieval call binding the contract method 0xa75b87d2.
   195  //
   196  // Solidity: function getGuardian() constant returns(address)
   197  func (_PermUpgr *PermUpgrCaller) GetGuardian(opts *bind.CallOpts) (common.Address, error) {
   198  	var (
   199  		ret0 = new(common.Address)
   200  	)
   201  	out := ret0
   202  	err := _PermUpgr.contract.Call(opts, out, "getGuardian")
   203  	return *ret0, err
   204  }
   205  
   206  // GetGuardian is a free data retrieval call binding the contract method 0xa75b87d2.
   207  //
   208  // Solidity: function getGuardian() constant returns(address)
   209  func (_PermUpgr *PermUpgrSession) GetGuardian() (common.Address, error) {
   210  	return _PermUpgr.Contract.GetGuardian(&_PermUpgr.CallOpts)
   211  }
   212  
   213  // GetGuardian is a free data retrieval call binding the contract method 0xa75b87d2.
   214  //
   215  // Solidity: function getGuardian() constant returns(address)
   216  func (_PermUpgr *PermUpgrCallerSession) GetGuardian() (common.Address, error) {
   217  	return _PermUpgr.Contract.GetGuardian(&_PermUpgr.CallOpts)
   218  }
   219  
   220  // GetPermImpl is a free data retrieval call binding the contract method 0x0e32cf90.
   221  //
   222  // Solidity: function getPermImpl() constant returns(address)
   223  func (_PermUpgr *PermUpgrCaller) GetPermImpl(opts *bind.CallOpts) (common.Address, error) {
   224  	var (
   225  		ret0 = new(common.Address)
   226  	)
   227  	out := ret0
   228  	err := _PermUpgr.contract.Call(opts, out, "getPermImpl")
   229  	return *ret0, err
   230  }
   231  
   232  // GetPermImpl is a free data retrieval call binding the contract method 0x0e32cf90.
   233  //
   234  // Solidity: function getPermImpl() constant returns(address)
   235  func (_PermUpgr *PermUpgrSession) GetPermImpl() (common.Address, error) {
   236  	return _PermUpgr.Contract.GetPermImpl(&_PermUpgr.CallOpts)
   237  }
   238  
   239  // GetPermImpl is a free data retrieval call binding the contract method 0x0e32cf90.
   240  //
   241  // Solidity: function getPermImpl() constant returns(address)
   242  func (_PermUpgr *PermUpgrCallerSession) GetPermImpl() (common.Address, error) {
   243  	return _PermUpgr.Contract.GetPermImpl(&_PermUpgr.CallOpts)
   244  }
   245  
   246  // GetPermInterface is a free data retrieval call binding the contract method 0xe572515c.
   247  //
   248  // Solidity: function getPermInterface() constant returns(address)
   249  func (_PermUpgr *PermUpgrCaller) GetPermInterface(opts *bind.CallOpts) (common.Address, error) {
   250  	var (
   251  		ret0 = new(common.Address)
   252  	)
   253  	out := ret0
   254  	err := _PermUpgr.contract.Call(opts, out, "getPermInterface")
   255  	return *ret0, err
   256  }
   257  
   258  // GetPermInterface is a free data retrieval call binding the contract method 0xe572515c.
   259  //
   260  // Solidity: function getPermInterface() constant returns(address)
   261  func (_PermUpgr *PermUpgrSession) GetPermInterface() (common.Address, error) {
   262  	return _PermUpgr.Contract.GetPermInterface(&_PermUpgr.CallOpts)
   263  }
   264  
   265  // GetPermInterface is a free data retrieval call binding the contract method 0xe572515c.
   266  //
   267  // Solidity: function getPermInterface() constant returns(address)
   268  func (_PermUpgr *PermUpgrCallerSession) GetPermInterface() (common.Address, error) {
   269  	return _PermUpgr.Contract.GetPermInterface(&_PermUpgr.CallOpts)
   270  }
   271  
   272  // ConfirmImplChange is a paid mutator transaction binding the contract method 0x22bcb39a.
   273  //
   274  // Solidity: function confirmImplChange(address _proposedImpl) returns()
   275  func (_PermUpgr *PermUpgrTransactor) ConfirmImplChange(opts *bind.TransactOpts, _proposedImpl common.Address) (*types.Transaction, error) {
   276  	return _PermUpgr.contract.Transact(opts, "confirmImplChange", _proposedImpl)
   277  }
   278  
   279  // ConfirmImplChange is a paid mutator transaction binding the contract method 0x22bcb39a.
   280  //
   281  // Solidity: function confirmImplChange(address _proposedImpl) returns()
   282  func (_PermUpgr *PermUpgrSession) ConfirmImplChange(_proposedImpl common.Address) (*types.Transaction, error) {
   283  	return _PermUpgr.Contract.ConfirmImplChange(&_PermUpgr.TransactOpts, _proposedImpl)
   284  }
   285  
   286  // ConfirmImplChange is a paid mutator transaction binding the contract method 0x22bcb39a.
   287  //
   288  // Solidity: function confirmImplChange(address _proposedImpl) returns()
   289  func (_PermUpgr *PermUpgrTransactorSession) ConfirmImplChange(_proposedImpl common.Address) (*types.Transaction, error) {
   290  	return _PermUpgr.Contract.ConfirmImplChange(&_PermUpgr.TransactOpts, _proposedImpl)
   291  }
   292  
   293  // Init is a paid mutator transaction binding the contract method 0xf09a4016.
   294  //
   295  // Solidity: function init(address _permInterface, address _permImpl) returns()
   296  func (_PermUpgr *PermUpgrTransactor) Init(opts *bind.TransactOpts, _permInterface common.Address, _permImpl common.Address) (*types.Transaction, error) {
   297  	return _PermUpgr.contract.Transact(opts, "init", _permInterface, _permImpl)
   298  }
   299  
   300  // Init is a paid mutator transaction binding the contract method 0xf09a4016.
   301  //
   302  // Solidity: function init(address _permInterface, address _permImpl) returns()
   303  func (_PermUpgr *PermUpgrSession) Init(_permInterface common.Address, _permImpl common.Address) (*types.Transaction, error) {
   304  	return _PermUpgr.Contract.Init(&_PermUpgr.TransactOpts, _permInterface, _permImpl)
   305  }
   306  
   307  // Init is a paid mutator transaction binding the contract method 0xf09a4016.
   308  //
   309  // Solidity: function init(address _permInterface, address _permImpl) returns()
   310  func (_PermUpgr *PermUpgrTransactorSession) Init(_permInterface common.Address, _permImpl common.Address) (*types.Transaction, error) {
   311  	return _PermUpgr.Contract.Init(&_PermUpgr.TransactOpts, _permInterface, _permImpl)
   312  }