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