github.com/bhs-gq/quorum-hotstuff@v21.1.0+incompatible/permission/v2/bind/roles.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  // RoleManagerABI is the input ABI used to generate the binding from.
    31  const RoleManagerABI = "[{\"constant\":true,\"inputs\":[{\"name\":\"_roleId\",\"type\":\"string\"},{\"name\":\"_orgId\",\"type\":\"string\"}],\"name\":\"getRoleDetails\",\"outputs\":[{\"name\":\"roleId\",\"type\":\"string\"},{\"name\":\"orgId\",\"type\":\"string\"},{\"name\":\"accessType\",\"type\":\"uint256\"},{\"name\":\"voter\",\"type\":\"bool\"},{\"name\":\"admin\",\"type\":\"bool\"},{\"name\":\"active\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_roleId\",\"type\":\"string\"},{\"name\":\"_orgId\",\"type\":\"string\"},{\"name\":\"_baseAccess\",\"type\":\"uint256\"},{\"name\":\"_isVoter\",\"type\":\"bool\"},{\"name\":\"_isAdmin\",\"type\":\"bool\"}],\"name\":\"addRole\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getNumberOfRoles\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_rIndex\",\"type\":\"uint256\"}],\"name\":\"getRoleDetailsFromIndex\",\"outputs\":[{\"name\":\"roleId\",\"type\":\"string\"},{\"name\":\"orgId\",\"type\":\"string\"},{\"name\":\"accessType\",\"type\":\"uint256\"},{\"name\":\"voter\",\"type\":\"bool\"},{\"name\":\"admin\",\"type\":\"bool\"},{\"name\":\"active\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_roleId\",\"type\":\"string\"},{\"name\":\"_orgId\",\"type\":\"string\"}],\"name\":\"removeRole\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_roleId\",\"type\":\"string\"},{\"name\":\"_orgId\",\"type\":\"string\"},{\"name\":\"_ultParent\",\"type\":\"string\"}],\"name\":\"roleExists\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_roleId\",\"type\":\"string\"},{\"name\":\"_orgId\",\"type\":\"string\"},{\"name\":\"_ultParent\",\"type\":\"string\"}],\"name\":\"isAdminRole\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_roleId\",\"type\":\"string\"},{\"name\":\"_orgId\",\"type\":\"string\"},{\"name\":\"_ultParent\",\"type\":\"string\"}],\"name\":\"roleAccess\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_roleId\",\"type\":\"string\"},{\"name\":\"_orgId\",\"type\":\"string\"},{\"name\":\"_ultParent\",\"type\":\"string\"},{\"name\":\"_typeOfTxn\",\"type\":\"uint256\"}],\"name\":\"transactionAllowed\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_roleId\",\"type\":\"string\"},{\"name\":\"_orgId\",\"type\":\"string\"},{\"name\":\"_ultParent\",\"type\":\"string\"}],\"name\":\"isVoterRole\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_permUpgradable\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_roleId\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_orgId\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_baseAccess\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_isVoter\",\"type\":\"bool\"},{\"indexed\":false,\"name\":\"_isAdmin\",\"type\":\"bool\"}],\"name\":\"RoleCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_roleId\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_orgId\",\"type\":\"string\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"}]"
    32  
    33  var RoleManagerParsedABI, _ = abi.JSON(strings.NewReader(RoleManagerABI))
    34  
    35  // RoleManagerBin is the compiled bytecode used for deploying new contracts.
    36  var RoleManagerBin = "0x608060405234801561001057600080fd5b506040516020806128d98339810180604052602081101561003057600080fd5b5051600080546001600160a01b039092166001600160a01b0319909216919091179055612877806100626000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063abf5739f11610066578063abf5739f1461048e578063be322e5414610650578063cfc83dfa1461075e578063d1f778661461090c578063deb16ba714610a1a5761009e565b80631870aba3146100a35780637b7135791461025f57806387f55d3114610399578063a451d4a8146103b3578063a6343012146103d0575b600080fd5b610161600480360360408110156100b957600080fd5b810190602081018135600160201b8111156100d357600080fd5b8201836020820111156100e557600080fd5b803590602001918460018302840111600160201b8311171561010657600080fd5b919390929091602081019035600160201b81111561012357600080fd5b82018360208201111561013557600080fd5b803590602001918460018302840111600160201b8311171561015657600080fd5b509092509050610b28565b604080519081018590528315156060820152821515608082015281151560a082015260c08082528751908201528651819060208083019160e08401918b019080838360005b838110156101be5781810151838201526020016101a6565b50505050905090810190601f1680156101eb5780820380516001836020036101000a031916815260200191505b5083810382528851815288516020918201918a019080838360005b8381101561021e578181015183820152602001610206565b50505050905090810190601f16801561024b5780820380516001836020036101000a031916815260200191505b509850505050505050505060405180910390f35b610397600480360360a081101561027557600080fd5b810190602081018135600160201b81111561028f57600080fd5b8201836020820111156102a157600080fd5b803590602001918460018302840111600160201b831117156102c257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561031457600080fd5b82018360208201111561032657600080fd5b803590602001918460018302840111600160201b8311171561034757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550508235935050506020810135151590604001351515610eae565b005b6103a1611454565b60408051918252519081900360200190f35b610161600480360360208110156103c957600080fd5b503561145b565b610397600480360360408110156103e657600080fd5b810190602081018135600160201b81111561040057600080fd5b82018360208201111561041257600080fd5b803590602001918460018302840111600160201b8311171561043357600080fd5b919390929091602081019035600160201b81111561045057600080fd5b82018360208201111561046257600080fd5b803590602001918460018302840111600160201b8311171561048357600080fd5b509092509050611679565b61063c600480360360608110156104a457600080fd5b810190602081018135600160201b8111156104be57600080fd5b8201836020820111156104d057600080fd5b803590602001918460018302840111600160201b831117156104f157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561054357600080fd5b82018360208201111561055557600080fd5b803590602001918460018302840111600160201b8311171561057657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156105c857600080fd5b8201836020820111156105da57600080fd5b803590602001918460018302840111600160201b831117156105fb57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611974945050505050565b604080519115158252519081900360200190f35b61063c6004803603606081101561066657600080fd5b810190602081018135600160201b81111561068057600080fd5b82018360208201111561069257600080fd5b803590602001918460018302840111600160201b831117156106b357600080fd5b919390929091602081019035600160201b8111156106d057600080fd5b8201836020820111156106e257600080fd5b803590602001918460018302840111600160201b8311171561070357600080fd5b919390929091602081019035600160201b81111561072057600080fd5b82018360208201111561073257600080fd5b803590602001918460018302840111600160201b8311171561075357600080fd5b509092509050611be8565b6103a16004803603606081101561077457600080fd5b810190602081018135600160201b81111561078e57600080fd5b8201836020820111156107a057600080fd5b803590602001918460018302840111600160201b831117156107c157600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561081357600080fd5b82018360208201111561082557600080fd5b803590602001918460018302840111600160201b8311171561084657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561089857600080fd5b8201836020820111156108aa57600080fd5b803590602001918460018302840111600160201b831117156108cb57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611f68945050505050565b61063c6004803603608081101561092257600080fd5b810190602081018135600160201b81111561093c57600080fd5b82018360208201111561094e57600080fd5b803590602001918460018302840111600160201b8311171561096f57600080fd5b919390929091602081019035600160201b81111561098c57600080fd5b82018360208201111561099e57600080fd5b803590602001918460018302840111600160201b831117156109bf57600080fd5b919390929091602081019035600160201b8111156109dc57600080fd5b8201836020820111156109ee57600080fd5b803590602001918460018302840111600160201b83111715610a0f57600080fd5b9193509150356121c2565b61063c60048036036060811015610a3057600080fd5b810190602081018135600160201b811115610a4a57600080fd5b820183602082011115610a5c57600080fd5b803590602001918460018302840111600160201b83111715610a7d57600080fd5b919390929091602081019035600160201b811115610a9a57600080fd5b820183602082011115610aac57600080fd5b803590602001918460018302840111600160201b83111715610acd57600080fd5b919390929091602081019035600160201b811115610aea57600080fd5b820183602082011115610afc57600080fd5b803590602001918460018302840111600160201b83111715610b1d57600080fd5b50909250905061232e565b606080600080600080610bb28a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8e018190048102820181019092528c815292508c91508b9081908401838280828437600092018290525060408051602081019091529081529250611974915050565b1515610c1c57898960008060008085858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052506040805160208101909152908152939f50929d50959b509399509197509550610ea1945050505050565b6000610c918b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8f018190048102820181019092528d815292508d91508c90819084018382808284376000920191909152506126a392505050565b9050600181815481101515610ca257fe5b9060005260206000209060040201600001600182815481101515610cc257fe5b9060005260206000209060040201600101600183815481101515610ce257fe5b906000526020600020906004020160020154600184815481101515610d0357fe5b60009182526020909120600360049092020101546001805460ff9092169186908110610d2b57fe5b906000526020600020906004020160030160019054906101000a900460ff16600186815481101515610d5957fe5b6000918252602091829020600491909102016003015486546040805160026101006001851615026000190190931692909204601f81018590048502830185019091528082526201000090920460ff169290918891830182828015610dfe5780601f10610dd357610100808354040283529160200191610dfe565b820191906000526020600020905b815481529060010190602001808311610de157829003601f168201915b5050885460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959b508a945092508401905082828015610e8c5780601f10610e6157610100808354040283529160200191610e8c565b820191906000526020600020905b815481529060010190602001808311610e6f57829003601f168201915b50505050509450965096509650965096509650505b9499939850945094509450565b6000809054906101000a90046001600160a01b03166001600160a01b0316630e32cf906040518163ffffffff1660e01b815260040160206040518083038186803b158015610efb57600080fd5b505afa158015610f0f573d6000803e3d6000fd5b505050506040513d6020811015610f2557600080fd5b50516001600160a01b03163314610f7a5760408051600160e51b62461bcd02815260206004820152600e6024820152600160911b6d34b73b30b634b21031b0b63632b902604482015290519081900360640190fd5b60088310610fd25760408051600160e51b62461bcd02815260206004820152601460248201527f696e76616c6964206163636573732076616c7565000000000000000000000000604482015290519081900360640190fd5b600260008686604051602001808060200180602001838103835285818151815260200191508051906020019080838360005b8381101561101c578181015183820152602001611004565b50505050905090810190601f1680156110495780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b8381101561107c578181015183820152602001611064565b50505050905090810190601f1680156110a95780820380516001836020036101000a031916815260200191505b5094505050505060405160208183030381529060405280519060200120815260200190815260200160002054600014151561112e5760408051600160e51b62461bcd02815260206004820152601760248201527f726f6c652065786973747320666f7220746865206f7267000000000000000000604482015290519081900360640190fd5b60038054600101908190556040805160208082018381528951606084015289516002946000948c948c94938493830192608001918701908083838b5b8381101561118257818101518382015260200161116a565b50505050905090810190601f1680156111af5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156111e25781810151838201526020016111ca565b50505050905090810190601f16801561120f5780820380516001836020036101000a031916815260200191505b5060408051601f1981840301815291815281516020928301208852878201989098529587016000908120989098555050845160c0810186528b81528085018b905294850189905250505084151560608301528315156080830152600160a083018190528054808201808355919094528251805191946004027fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf601926112b9928492909101906127b3565b5060208281015180516112d292600185019201906127b3565b5060408281015160028301556060808401516003909301805460808087015160a09788015160ff199093169615159690961761ff001916610100961515969096029590951762ff0000191662010000911515919091021790558151918201889052861515908201528415159181019190915281815287519181019190915286517fefa5bc1bedbee25b04b00855c15a0c180ecb4a2440d4d08296e49561655e2b1c92508791879187918791879190819060208083019160c08401918a019080838360005b838110156113ae578181015183820152602001611396565b50505050905090810190601f1680156113db5780820380516001836020036101000a031916815260200191505b50838103825287518152875160209182019189019080838360005b8381101561140e5781810151838201526020016113f6565b50505050905090810190601f16801561143b5780820380516001836020036101000a031916815260200191505b5097505050505050505060405180910390a15050505050565b6001545b90565b60608060008060008060018781548110151561147357fe5b906000526020600020906004020160000160018881548110151561149357fe5b90600052602060002090600402016001016001898154811015156114b357fe5b90600052602060002090600402016002015460018a8154811015156114d457fe5b60009182526020909120600360049092020101546001805460ff909216918c9081106114fc57fe5b906000526020600020906004020160030160019054906101000a900460ff1660018c81548110151561152a57fe5b6000918252602091829020600491909102016003015486546040805160026101006001851615026000190190931692909204601f81018590048502830185019091528082526201000090920460ff1692909188918301828280156115cf5780601f106115a4576101008083540402835291602001916115cf565b820191906000526020600020905b8154815290600101906020018083116115b257829003601f168201915b5050885460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959b508a94509250840190508282801561165d5780601f106116325761010080835404028352916020019161165d565b820191906000526020600020905b81548152906001019060200180831161164057829003601f168201915b5050505050945095509550955095509550955091939550919395565b6000809054906101000a90046001600160a01b03166001600160a01b0316630e32cf906040518163ffffffff1660e01b815260040160206040518083038186803b1580156116c657600080fd5b505afa1580156116da573d6000803e3d6000fd5b505050506040513d60208110156116f057600080fd5b50516001600160a01b031633146117455760408051600160e51b62461bcd02815260206004820152600e6024820152600160911b6d34b73b30b634b21031b0b63632b902604482015290519081900360640190fd5b60026000858585856040516020018080602001806020018381038352878782818152602001925080828437600083820152601f01601f191690910184810383528581526020019050858580828437600081840152601f19601f8201169050808301925050509650505050505050604051602081830303815290604052805190602001208152602001908152602001600020546000141515156118315760408051600160e51b62461bcd02815260206004820152601360248201527f726f6c6520646f6573206e6f7420657869737400000000000000000000000000604482015290519081900360640190fd5b60006118a685858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f890181900481028201810190925287815292508791508690819084018382808284376000920191909152506126a392505050565b905060006001828154811015156118b957fe5b906000526020600020906004020160030160026101000a81548160ff0219169083151502179055507f1196059dd83524bf989fd94bb65808c09dbea2ab791fb6bfa87a0e0aa64b2ea6858585856040518080602001806020018381038352878782818152602001925080828437600083820152601f01601f191690910184810383528581526020019050858580828437600083820152604051601f909101601f19169092018290039850909650505050505050a15050505050565b600080600260008686604051602001808060200180602001838103835285818151815260200191508051906020019080838360005b838110156119c15781810151838201526020016119a9565b50505050905090810190601f1680156119ee5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611a21578181015183820152602001611a09565b50505050905090810190601f168015611a4e5780820380516001836020036101000a031916815260200191505b50945050505050604051602081830303815290604052805190602001208152602001908152602001600020546000141515611ac557611a8d85856126a3565b9050600181815481101515611a9e57fe5b906000526020600020906004020160030160029054906101000a900460ff16915050611be1565b600260008685604051602001808060200180602001838103835285818151815260200191508051906020019080838360005b83811015611b0f578181015183820152602001611af7565b50505050905090810190601f168015611b3c5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015611b6f578181015183820152602001611b57565b50505050905090810190601f168015611b9c5780820380516001836020036101000a031916815260200191505b50945050505050604051602081830303815290604052805190602001208152602001908152602001600020546000141515611bdb57611a8d85846126a3565b60009150505b9392505050565b60008060009054906101000a90046001600160a01b03166001600160a01b0316630e32cf906040518163ffffffff1660e01b815260040160206040518083038186803b158015611c3757600080fd5b505afa158015611c4b573d6000803e3d6000fd5b505050506040513d6020811015611c6157600080fd5b50516001600160a01b03163314611cb65760408051600160e51b62461bcd02815260206004820152600e6024820152600160911b6d34b73b30b634b21031b0b63632b902604482015290519081900360640190fd5b611d5d87878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8b01819004810282018101909252898152925089915088908190840183828082843760009201919091525050604080516020601f8a01819004810282018101909252888152925088915087908190840183828082843760009201919091525061197492505050565b1515611d6b57506000611f5e565b600060026000898989896040516020018080602001806020018381038352878782818152602001925080828437600083820152601f01601f191690910184810383528581526020019050858580828437600081840152601f19601f8201169050808301925050509650505050505050604051602081830303815290604052805190602001208152602001908152602001600020546000141515611e8257611e7b88888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8c018190048102820181019092528a815292508a91508990819084018382808284376000920191909152506126a392505050565b9050611ef8565b611ef588888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a0181900481028201810190925288815292508891508790819084018382808284376000920191909152506126a392505050565b90505b6001805482908110611f0657fe5b906000526020600020906004020160030160029054906101000a900460ff168015611f5a57506001805482908110611f3a57fe5b906000526020600020906004020160030160019054906101000a900460ff165b9150505b9695505050505050565b600080600260008686604051602001808060200180602001838103835285818151815260200191508051906020019080838360005b83811015611fb5578181015183820152602001611f9d565b50505050905090810190601f168015611fe25780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015612015578181015183820152602001611ffd565b50505050905090810190601f1680156120425780820380516001836020036101000a031916815260200191505b509450505050506040516020818303038152906040528051906020012081526020019081526020016000205460001415156120ac5761208185856126a3565b905060018181548110151561209257fe5b906000526020600020906004020160020154915050611be1565b600260008685604051602001808060200180602001838103835285818151815260200191508051906020019080838360005b838110156120f65781810151838201526020016120de565b50505050905090810190601f1680156121235780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b8381101561215657818101518382015260200161213e565b50505050905090810190601f1680156121835780820380516001836020036101000a031916815260200191505b50945050505050604051602081830303815290604052805190602001208152602001908152602001600020546000141515611bdb5761208185846126a3565b60008061226c89898080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8d018190048102820181019092528b815292508b91508a908190840183828082843760009201919091525050604080516020601f8c018190048102820181019092528a815292508a9150899081908401838280828437600092019190915250611f6892505050565b90508060031415612281576001915050612323565b8260011480156122a65750806001148061229b5750806005145b806122a65750806006145b156122b5576001915050612323565b8260021480156122da575080600214806122cf5750806006145b806122da5750806007145b156122e9576001915050612323565b82600314801561230e575080600414806123035750806005145b8061230e5750806007145b1561231d576001915050612323565b60009150505b979650505050505050565b60008060009054906101000a90046001600160a01b03166001600160a01b0316630e32cf906040518163ffffffff1660e01b815260040160206040518083038186803b15801561237d57600080fd5b505afa158015612391573d6000803e3d6000fd5b505050506040513d60208110156123a757600080fd5b50516001600160a01b031633146123fc5760408051600160e51b62461bcd02815260206004820152600e6024820152600160911b6d34b73b30b634b21031b0b63632b902604482015290519081900360640190fd5b6124a387878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8b01819004810282018101909252898152925089915088908190840183828082843760009201919091525050604080516020601f8a01819004810282018101909252888152925088915087908190840183828082843760009201919091525061197492505050565b15156124b157506000611f5e565b600060026000898989896040516020018080602001806020018381038352878782818152602001925080828437600083820152601f01601f191690910184810383528581526020019050858580828437600081840152601f19601f82011690508083019250505096505050505050506040516020818303038152906040528051906020012081526020019081526020016000205460001415156125c8576125c188888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8c018190048102820181019092528a815292508a91508990819084018382808284376000920191909152506126a392505050565b905061263e565b61263b88888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a0181900481028201810190925288815292508891508790819084018382808284376000920191909152506126a392505050565b90505b600180548290811061264c57fe5b906000526020600020906004020160030160029054906101000a900460ff168015611f5a5750600180548290811061268057fe5b600091825260209091206004909102016003015460ff1698975050505050505050565b60006001600260008585604051602001808060200180602001838103835285818151815260200191508051906020019080838360005b838110156126f15781810151838201526020016126d9565b50505050905090810190601f16801561271e5780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015612751578181015183820152602001612739565b50505050905090810190601f16801561277e5780820380516001836020036101000a031916815260200191505b509450505050506040516020818303038152906040528051906020012081526020019081526020016000205403905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106127f457805160ff1916838001178555612821565b82800160010185558215612821579182015b82811115612821578251825591602001919060010190612806565b5061282d929150612831565b5090565b61145891905b8082111561282d576000815560010161283756fea165627a7a7230582075c8fd5504ba38b54f31bd0f3c28ac8ef88060c8e359bff58088d242f8cd256c0029"
    37  
    38  // DeployRoleManager deploys a new Ethereum contract, binding an instance of RoleManager to it.
    39  func DeployRoleManager(auth *bind.TransactOpts, backend bind.ContractBackend, _permUpgradable common.Address) (common.Address, *types.Transaction, *RoleManager, error) {
    40  	parsed, err := abi.JSON(strings.NewReader(RoleManagerABI))
    41  	if err != nil {
    42  		return common.Address{}, nil, nil, err
    43  	}
    44  
    45  	address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(RoleManagerBin), backend, _permUpgradable)
    46  	if err != nil {
    47  		return common.Address{}, nil, nil, err
    48  	}
    49  	return address, tx, &RoleManager{RoleManagerCaller: RoleManagerCaller{contract: contract}, RoleManagerTransactor: RoleManagerTransactor{contract: contract}, RoleManagerFilterer: RoleManagerFilterer{contract: contract}}, nil
    50  }
    51  
    52  // RoleManager is an auto generated Go binding around an Ethereum contract.
    53  type RoleManager struct {
    54  	RoleManagerCaller     // Read-only binding to the contract
    55  	RoleManagerTransactor // Write-only binding to the contract
    56  	RoleManagerFilterer   // Log filterer for contract events
    57  }
    58  
    59  // RoleManagerCaller is an auto generated read-only Go binding around an Ethereum contract.
    60  type RoleManagerCaller struct {
    61  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    62  }
    63  
    64  // RoleManagerTransactor is an auto generated write-only Go binding around an Ethereum contract.
    65  type RoleManagerTransactor struct {
    66  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    67  }
    68  
    69  // RoleManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
    70  type RoleManagerFilterer struct {
    71  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    72  }
    73  
    74  // RoleManagerSession is an auto generated Go binding around an Ethereum contract,
    75  // with pre-set call and transact options.
    76  type RoleManagerSession struct {
    77  	Contract     *RoleManager      // 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  // RoleManagerCallerSession is an auto generated read-only Go binding around an Ethereum contract,
    83  // with pre-set call options.
    84  type RoleManagerCallerSession struct {
    85  	Contract *RoleManagerCaller // Generic contract caller binding to set the session for
    86  	CallOpts bind.CallOpts      // Call options to use throughout this session
    87  }
    88  
    89  // RoleManagerTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
    90  // with pre-set transact options.
    91  type RoleManagerTransactorSession struct {
    92  	Contract     *RoleManagerTransactor // Generic contract transactor binding to set the session for
    93  	TransactOpts bind.TransactOpts      // Transaction auth options to use throughout this session
    94  }
    95  
    96  // RoleManagerRaw is an auto generated low-level Go binding around an Ethereum contract.
    97  type RoleManagerRaw struct {
    98  	Contract *RoleManager // Generic contract binding to access the raw methods on
    99  }
   100  
   101  // RoleManagerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
   102  type RoleManagerCallerRaw struct {
   103  	Contract *RoleManagerCaller // Generic read-only contract binding to access the raw methods on
   104  }
   105  
   106  // RoleManagerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
   107  type RoleManagerTransactorRaw struct {
   108  	Contract *RoleManagerTransactor // Generic write-only contract binding to access the raw methods on
   109  }
   110  
   111  // NewRoleManager creates a new instance of RoleManager, bound to a specific deployed contract.
   112  func NewRoleManager(address common.Address, backend bind.ContractBackend) (*RoleManager, error) {
   113  	contract, err := bindRoleManager(address, backend, backend, backend)
   114  	if err != nil {
   115  		return nil, err
   116  	}
   117  	return &RoleManager{RoleManagerCaller: RoleManagerCaller{contract: contract}, RoleManagerTransactor: RoleManagerTransactor{contract: contract}, RoleManagerFilterer: RoleManagerFilterer{contract: contract}}, nil
   118  }
   119  
   120  // NewRoleManagerCaller creates a new read-only instance of RoleManager, bound to a specific deployed contract.
   121  func NewRoleManagerCaller(address common.Address, caller bind.ContractCaller) (*RoleManagerCaller, error) {
   122  	contract, err := bindRoleManager(address, caller, nil, nil)
   123  	if err != nil {
   124  		return nil, err
   125  	}
   126  	return &RoleManagerCaller{contract: contract}, nil
   127  }
   128  
   129  // NewRoleManagerTransactor creates a new write-only instance of RoleManager, bound to a specific deployed contract.
   130  func NewRoleManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*RoleManagerTransactor, error) {
   131  	contract, err := bindRoleManager(address, nil, transactor, nil)
   132  	if err != nil {
   133  		return nil, err
   134  	}
   135  	return &RoleManagerTransactor{contract: contract}, nil
   136  }
   137  
   138  // NewRoleManagerFilterer creates a new log filterer instance of RoleManager, bound to a specific deployed contract.
   139  func NewRoleManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*RoleManagerFilterer, error) {
   140  	contract, err := bindRoleManager(address, nil, nil, filterer)
   141  	if err != nil {
   142  		return nil, err
   143  	}
   144  	return &RoleManagerFilterer{contract: contract}, nil
   145  }
   146  
   147  // bindRoleManager binds a generic wrapper to an already deployed contract.
   148  func bindRoleManager(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   149  	parsed, err := abi.JSON(strings.NewReader(RoleManagerABI))
   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 (_RoleManager *RoleManagerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   161  	return _RoleManager.Contract.RoleManagerCaller.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 (_RoleManager *RoleManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   167  	return _RoleManager.Contract.RoleManagerTransactor.contract.Transfer(opts)
   168  }
   169  
   170  // Transact invokes the (paid) contract method with params as input values.
   171  func (_RoleManager *RoleManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   172  	return _RoleManager.Contract.RoleManagerTransactor.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 (_RoleManager *RoleManagerCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   180  	return _RoleManager.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 (_RoleManager *RoleManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   186  	return _RoleManager.Contract.contract.Transfer(opts)
   187  }
   188  
   189  // Transact invokes the (paid) contract method with params as input values.
   190  func (_RoleManager *RoleManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   191  	return _RoleManager.Contract.contract.Transact(opts, method, params...)
   192  }
   193  
   194  // GetNumberOfRoles is a free data retrieval call binding the contract method 0x87f55d31.
   195  //
   196  // Solidity: function getNumberOfRoles() constant returns(uint256)
   197  func (_RoleManager *RoleManagerCaller) GetNumberOfRoles(opts *bind.CallOpts) (*big.Int, error) {
   198  	var (
   199  		ret0 = new(*big.Int)
   200  	)
   201  	out := ret0
   202  	err := _RoleManager.contract.Call(opts, out, "getNumberOfRoles")
   203  	return *ret0, err
   204  }
   205  
   206  // GetNumberOfRoles is a free data retrieval call binding the contract method 0x87f55d31.
   207  //
   208  // Solidity: function getNumberOfRoles() constant returns(uint256)
   209  func (_RoleManager *RoleManagerSession) GetNumberOfRoles() (*big.Int, error) {
   210  	return _RoleManager.Contract.GetNumberOfRoles(&_RoleManager.CallOpts)
   211  }
   212  
   213  // GetNumberOfRoles is a free data retrieval call binding the contract method 0x87f55d31.
   214  //
   215  // Solidity: function getNumberOfRoles() constant returns(uint256)
   216  func (_RoleManager *RoleManagerCallerSession) GetNumberOfRoles() (*big.Int, error) {
   217  	return _RoleManager.Contract.GetNumberOfRoles(&_RoleManager.CallOpts)
   218  }
   219  
   220  // GetRoleDetails is a free data retrieval call binding the contract method 0x1870aba3.
   221  //
   222  // Solidity: function getRoleDetails(string _roleId, string _orgId) constant returns(string roleId, string orgId, uint256 accessType, bool voter, bool admin, bool active)
   223  func (_RoleManager *RoleManagerCaller) GetRoleDetails(opts *bind.CallOpts, _roleId string, _orgId string) (struct {
   224  	RoleId     string
   225  	OrgId      string
   226  	AccessType *big.Int
   227  	Voter      bool
   228  	Admin      bool
   229  	Active     bool
   230  }, error) {
   231  	ret := new(struct {
   232  		RoleId     string
   233  		OrgId      string
   234  		AccessType *big.Int
   235  		Voter      bool
   236  		Admin      bool
   237  		Active     bool
   238  	})
   239  	out := ret
   240  	err := _RoleManager.contract.Call(opts, out, "getRoleDetails", _roleId, _orgId)
   241  	return *ret, err
   242  }
   243  
   244  // GetRoleDetails is a free data retrieval call binding the contract method 0x1870aba3.
   245  //
   246  // Solidity: function getRoleDetails(string _roleId, string _orgId) constant returns(string roleId, string orgId, uint256 accessType, bool voter, bool admin, bool active)
   247  func (_RoleManager *RoleManagerSession) GetRoleDetails(_roleId string, _orgId string) (struct {
   248  	RoleId     string
   249  	OrgId      string
   250  	AccessType *big.Int
   251  	Voter      bool
   252  	Admin      bool
   253  	Active     bool
   254  }, error) {
   255  	return _RoleManager.Contract.GetRoleDetails(&_RoleManager.CallOpts, _roleId, _orgId)
   256  }
   257  
   258  // GetRoleDetails is a free data retrieval call binding the contract method 0x1870aba3.
   259  //
   260  // Solidity: function getRoleDetails(string _roleId, string _orgId) constant returns(string roleId, string orgId, uint256 accessType, bool voter, bool admin, bool active)
   261  func (_RoleManager *RoleManagerCallerSession) GetRoleDetails(_roleId string, _orgId string) (struct {
   262  	RoleId     string
   263  	OrgId      string
   264  	AccessType *big.Int
   265  	Voter      bool
   266  	Admin      bool
   267  	Active     bool
   268  }, error) {
   269  	return _RoleManager.Contract.GetRoleDetails(&_RoleManager.CallOpts, _roleId, _orgId)
   270  }
   271  
   272  // GetRoleDetailsFromIndex is a free data retrieval call binding the contract method 0xa451d4a8.
   273  //
   274  // Solidity: function getRoleDetailsFromIndex(uint256 _rIndex) constant returns(string roleId, string orgId, uint256 accessType, bool voter, bool admin, bool active)
   275  func (_RoleManager *RoleManagerCaller) GetRoleDetailsFromIndex(opts *bind.CallOpts, _rIndex *big.Int) (struct {
   276  	RoleId     string
   277  	OrgId      string
   278  	AccessType *big.Int
   279  	Voter      bool
   280  	Admin      bool
   281  	Active     bool
   282  }, error) {
   283  	ret := new(struct {
   284  		RoleId     string
   285  		OrgId      string
   286  		AccessType *big.Int
   287  		Voter      bool
   288  		Admin      bool
   289  		Active     bool
   290  	})
   291  	out := ret
   292  	err := _RoleManager.contract.Call(opts, out, "getRoleDetailsFromIndex", _rIndex)
   293  	return *ret, err
   294  }
   295  
   296  // GetRoleDetailsFromIndex is a free data retrieval call binding the contract method 0xa451d4a8.
   297  //
   298  // Solidity: function getRoleDetailsFromIndex(uint256 _rIndex) constant returns(string roleId, string orgId, uint256 accessType, bool voter, bool admin, bool active)
   299  func (_RoleManager *RoleManagerSession) GetRoleDetailsFromIndex(_rIndex *big.Int) (struct {
   300  	RoleId     string
   301  	OrgId      string
   302  	AccessType *big.Int
   303  	Voter      bool
   304  	Admin      bool
   305  	Active     bool
   306  }, error) {
   307  	return _RoleManager.Contract.GetRoleDetailsFromIndex(&_RoleManager.CallOpts, _rIndex)
   308  }
   309  
   310  // GetRoleDetailsFromIndex is a free data retrieval call binding the contract method 0xa451d4a8.
   311  //
   312  // Solidity: function getRoleDetailsFromIndex(uint256 _rIndex) constant returns(string roleId, string orgId, uint256 accessType, bool voter, bool admin, bool active)
   313  func (_RoleManager *RoleManagerCallerSession) GetRoleDetailsFromIndex(_rIndex *big.Int) (struct {
   314  	RoleId     string
   315  	OrgId      string
   316  	AccessType *big.Int
   317  	Voter      bool
   318  	Admin      bool
   319  	Active     bool
   320  }, error) {
   321  	return _RoleManager.Contract.GetRoleDetailsFromIndex(&_RoleManager.CallOpts, _rIndex)
   322  }
   323  
   324  // IsAdminRole is a free data retrieval call binding the contract method 0xbe322e54.
   325  //
   326  // Solidity: function isAdminRole(string _roleId, string _orgId, string _ultParent) constant returns(bool)
   327  func (_RoleManager *RoleManagerCaller) IsAdminRole(opts *bind.CallOpts, _roleId string, _orgId string, _ultParent string) (bool, error) {
   328  	var (
   329  		ret0 = new(bool)
   330  	)
   331  	out := ret0
   332  	err := _RoleManager.contract.Call(opts, out, "isAdminRole", _roleId, _orgId, _ultParent)
   333  	return *ret0, err
   334  }
   335  
   336  // IsAdminRole is a free data retrieval call binding the contract method 0xbe322e54.
   337  //
   338  // Solidity: function isAdminRole(string _roleId, string _orgId, string _ultParent) constant returns(bool)
   339  func (_RoleManager *RoleManagerSession) IsAdminRole(_roleId string, _orgId string, _ultParent string) (bool, error) {
   340  	return _RoleManager.Contract.IsAdminRole(&_RoleManager.CallOpts, _roleId, _orgId, _ultParent)
   341  }
   342  
   343  // IsAdminRole is a free data retrieval call binding the contract method 0xbe322e54.
   344  //
   345  // Solidity: function isAdminRole(string _roleId, string _orgId, string _ultParent) constant returns(bool)
   346  func (_RoleManager *RoleManagerCallerSession) IsAdminRole(_roleId string, _orgId string, _ultParent string) (bool, error) {
   347  	return _RoleManager.Contract.IsAdminRole(&_RoleManager.CallOpts, _roleId, _orgId, _ultParent)
   348  }
   349  
   350  // IsVoterRole is a free data retrieval call binding the contract method 0xdeb16ba7.
   351  //
   352  // Solidity: function isVoterRole(string _roleId, string _orgId, string _ultParent) constant returns(bool)
   353  func (_RoleManager *RoleManagerCaller) IsVoterRole(opts *bind.CallOpts, _roleId string, _orgId string, _ultParent string) (bool, error) {
   354  	var (
   355  		ret0 = new(bool)
   356  	)
   357  	out := ret0
   358  	err := _RoleManager.contract.Call(opts, out, "isVoterRole", _roleId, _orgId, _ultParent)
   359  	return *ret0, err
   360  }
   361  
   362  // IsVoterRole is a free data retrieval call binding the contract method 0xdeb16ba7.
   363  //
   364  // Solidity: function isVoterRole(string _roleId, string _orgId, string _ultParent) constant returns(bool)
   365  func (_RoleManager *RoleManagerSession) IsVoterRole(_roleId string, _orgId string, _ultParent string) (bool, error) {
   366  	return _RoleManager.Contract.IsVoterRole(&_RoleManager.CallOpts, _roleId, _orgId, _ultParent)
   367  }
   368  
   369  // IsVoterRole is a free data retrieval call binding the contract method 0xdeb16ba7.
   370  //
   371  // Solidity: function isVoterRole(string _roleId, string _orgId, string _ultParent) constant returns(bool)
   372  func (_RoleManager *RoleManagerCallerSession) IsVoterRole(_roleId string, _orgId string, _ultParent string) (bool, error) {
   373  	return _RoleManager.Contract.IsVoterRole(&_RoleManager.CallOpts, _roleId, _orgId, _ultParent)
   374  }
   375  
   376  // RoleAccess is a free data retrieval call binding the contract method 0xcfc83dfa.
   377  //
   378  // Solidity: function roleAccess(string _roleId, string _orgId, string _ultParent) constant returns(uint256)
   379  func (_RoleManager *RoleManagerCaller) RoleAccess(opts *bind.CallOpts, _roleId string, _orgId string, _ultParent string) (*big.Int, error) {
   380  	var (
   381  		ret0 = new(*big.Int)
   382  	)
   383  	out := ret0
   384  	err := _RoleManager.contract.Call(opts, out, "roleAccess", _roleId, _orgId, _ultParent)
   385  	return *ret0, err
   386  }
   387  
   388  // RoleAccess is a free data retrieval call binding the contract method 0xcfc83dfa.
   389  //
   390  // Solidity: function roleAccess(string _roleId, string _orgId, string _ultParent) constant returns(uint256)
   391  func (_RoleManager *RoleManagerSession) RoleAccess(_roleId string, _orgId string, _ultParent string) (*big.Int, error) {
   392  	return _RoleManager.Contract.RoleAccess(&_RoleManager.CallOpts, _roleId, _orgId, _ultParent)
   393  }
   394  
   395  // RoleAccess is a free data retrieval call binding the contract method 0xcfc83dfa.
   396  //
   397  // Solidity: function roleAccess(string _roleId, string _orgId, string _ultParent) constant returns(uint256)
   398  func (_RoleManager *RoleManagerCallerSession) RoleAccess(_roleId string, _orgId string, _ultParent string) (*big.Int, error) {
   399  	return _RoleManager.Contract.RoleAccess(&_RoleManager.CallOpts, _roleId, _orgId, _ultParent)
   400  }
   401  
   402  // RoleExists is a free data retrieval call binding the contract method 0xabf5739f.
   403  //
   404  // Solidity: function roleExists(string _roleId, string _orgId, string _ultParent) constant returns(bool)
   405  func (_RoleManager *RoleManagerCaller) RoleExists(opts *bind.CallOpts, _roleId string, _orgId string, _ultParent string) (bool, error) {
   406  	var (
   407  		ret0 = new(bool)
   408  	)
   409  	out := ret0
   410  	err := _RoleManager.contract.Call(opts, out, "roleExists", _roleId, _orgId, _ultParent)
   411  	return *ret0, err
   412  }
   413  
   414  // RoleExists is a free data retrieval call binding the contract method 0xabf5739f.
   415  //
   416  // Solidity: function roleExists(string _roleId, string _orgId, string _ultParent) constant returns(bool)
   417  func (_RoleManager *RoleManagerSession) RoleExists(_roleId string, _orgId string, _ultParent string) (bool, error) {
   418  	return _RoleManager.Contract.RoleExists(&_RoleManager.CallOpts, _roleId, _orgId, _ultParent)
   419  }
   420  
   421  // RoleExists is a free data retrieval call binding the contract method 0xabf5739f.
   422  //
   423  // Solidity: function roleExists(string _roleId, string _orgId, string _ultParent) constant returns(bool)
   424  func (_RoleManager *RoleManagerCallerSession) RoleExists(_roleId string, _orgId string, _ultParent string) (bool, error) {
   425  	return _RoleManager.Contract.RoleExists(&_RoleManager.CallOpts, _roleId, _orgId, _ultParent)
   426  }
   427  
   428  // TransactionAllowed is a free data retrieval call binding the contract method 0xd1f77866.
   429  //
   430  // Solidity: function transactionAllowed(string _roleId, string _orgId, string _ultParent, uint256 _typeOfTxn) constant returns(bool)
   431  func (_RoleManager *RoleManagerCaller) TransactionAllowed(opts *bind.CallOpts, _roleId string, _orgId string, _ultParent string, _typeOfTxn *big.Int) (bool, error) {
   432  	var (
   433  		ret0 = new(bool)
   434  	)
   435  	out := ret0
   436  	err := _RoleManager.contract.Call(opts, out, "transactionAllowed", _roleId, _orgId, _ultParent, _typeOfTxn)
   437  	return *ret0, err
   438  }
   439  
   440  // TransactionAllowed is a free data retrieval call binding the contract method 0xd1f77866.
   441  //
   442  // Solidity: function transactionAllowed(string _roleId, string _orgId, string _ultParent, uint256 _typeOfTxn) constant returns(bool)
   443  func (_RoleManager *RoleManagerSession) TransactionAllowed(_roleId string, _orgId string, _ultParent string, _typeOfTxn *big.Int) (bool, error) {
   444  	return _RoleManager.Contract.TransactionAllowed(&_RoleManager.CallOpts, _roleId, _orgId, _ultParent, _typeOfTxn)
   445  }
   446  
   447  // TransactionAllowed is a free data retrieval call binding the contract method 0xd1f77866.
   448  //
   449  // Solidity: function transactionAllowed(string _roleId, string _orgId, string _ultParent, uint256 _typeOfTxn) constant returns(bool)
   450  func (_RoleManager *RoleManagerCallerSession) TransactionAllowed(_roleId string, _orgId string, _ultParent string, _typeOfTxn *big.Int) (bool, error) {
   451  	return _RoleManager.Contract.TransactionAllowed(&_RoleManager.CallOpts, _roleId, _orgId, _ultParent, _typeOfTxn)
   452  }
   453  
   454  // AddRole is a paid mutator transaction binding the contract method 0x7b713579.
   455  //
   456  // Solidity: function addRole(string _roleId, string _orgId, uint256 _baseAccess, bool _isVoter, bool _isAdmin) returns()
   457  func (_RoleManager *RoleManagerTransactor) AddRole(opts *bind.TransactOpts, _roleId string, _orgId string, _baseAccess *big.Int, _isVoter bool, _isAdmin bool) (*types.Transaction, error) {
   458  	return _RoleManager.contract.Transact(opts, "addRole", _roleId, _orgId, _baseAccess, _isVoter, _isAdmin)
   459  }
   460  
   461  // AddRole is a paid mutator transaction binding the contract method 0x7b713579.
   462  //
   463  // Solidity: function addRole(string _roleId, string _orgId, uint256 _baseAccess, bool _isVoter, bool _isAdmin) returns()
   464  func (_RoleManager *RoleManagerSession) AddRole(_roleId string, _orgId string, _baseAccess *big.Int, _isVoter bool, _isAdmin bool) (*types.Transaction, error) {
   465  	return _RoleManager.Contract.AddRole(&_RoleManager.TransactOpts, _roleId, _orgId, _baseAccess, _isVoter, _isAdmin)
   466  }
   467  
   468  // AddRole is a paid mutator transaction binding the contract method 0x7b713579.
   469  //
   470  // Solidity: function addRole(string _roleId, string _orgId, uint256 _baseAccess, bool _isVoter, bool _isAdmin) returns()
   471  func (_RoleManager *RoleManagerTransactorSession) AddRole(_roleId string, _orgId string, _baseAccess *big.Int, _isVoter bool, _isAdmin bool) (*types.Transaction, error) {
   472  	return _RoleManager.Contract.AddRole(&_RoleManager.TransactOpts, _roleId, _orgId, _baseAccess, _isVoter, _isAdmin)
   473  }
   474  
   475  // RemoveRole is a paid mutator transaction binding the contract method 0xa6343012.
   476  //
   477  // Solidity: function removeRole(string _roleId, string _orgId) returns()
   478  func (_RoleManager *RoleManagerTransactor) RemoveRole(opts *bind.TransactOpts, _roleId string, _orgId string) (*types.Transaction, error) {
   479  	return _RoleManager.contract.Transact(opts, "removeRole", _roleId, _orgId)
   480  }
   481  
   482  // RemoveRole is a paid mutator transaction binding the contract method 0xa6343012.
   483  //
   484  // Solidity: function removeRole(string _roleId, string _orgId) returns()
   485  func (_RoleManager *RoleManagerSession) RemoveRole(_roleId string, _orgId string) (*types.Transaction, error) {
   486  	return _RoleManager.Contract.RemoveRole(&_RoleManager.TransactOpts, _roleId, _orgId)
   487  }
   488  
   489  // RemoveRole is a paid mutator transaction binding the contract method 0xa6343012.
   490  //
   491  // Solidity: function removeRole(string _roleId, string _orgId) returns()
   492  func (_RoleManager *RoleManagerTransactorSession) RemoveRole(_roleId string, _orgId string) (*types.Transaction, error) {
   493  	return _RoleManager.Contract.RemoveRole(&_RoleManager.TransactOpts, _roleId, _orgId)
   494  }
   495  
   496  // RoleManagerRoleCreatedIterator is returned from FilterRoleCreated and is used to iterate over the raw logs and unpacked data for RoleCreated events raised by the RoleManager contract.
   497  type RoleManagerRoleCreatedIterator struct {
   498  	Event *RoleManagerRoleCreated // Event containing the contract specifics and raw log
   499  
   500  	contract *bind.BoundContract // Generic contract to use for unpacking event data
   501  	event    string              // Event name to use for unpacking event data
   502  
   503  	logs chan types.Log        // Log channel receiving the found contract events
   504  	sub  ethereum.Subscription // Subscription for errors, completion and termination
   505  	done bool                  // Whether the subscription completed delivering logs
   506  	fail error                 // Occurred error to stop iteration
   507  }
   508  
   509  // Next advances the iterator to the subsequent event, returning whether there
   510  // are any more events found. In case of a retrieval or parsing error, false is
   511  // returned and Error() can be queried for the exact failure.
   512  func (it *RoleManagerRoleCreatedIterator) Next() bool {
   513  	// If the iterator failed, stop iterating
   514  	if it.fail != nil {
   515  		return false
   516  	}
   517  	// If the iterator completed, deliver directly whatever's available
   518  	if it.done {
   519  		select {
   520  		case log := <-it.logs:
   521  			it.Event = new(RoleManagerRoleCreated)
   522  			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   523  				it.fail = err
   524  				return false
   525  			}
   526  			it.Event.Raw = log
   527  			return true
   528  
   529  		default:
   530  			return false
   531  		}
   532  	}
   533  	// Iterator still in progress, wait for either a data or an error event
   534  	select {
   535  	case log := <-it.logs:
   536  		it.Event = new(RoleManagerRoleCreated)
   537  		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   538  			it.fail = err
   539  			return false
   540  		}
   541  		it.Event.Raw = log
   542  		return true
   543  
   544  	case err := <-it.sub.Err():
   545  		it.done = true
   546  		it.fail = err
   547  		return it.Next()
   548  	}
   549  }
   550  
   551  // Error returns any retrieval or parsing error occurred during filtering.
   552  func (it *RoleManagerRoleCreatedIterator) Error() error {
   553  	return it.fail
   554  }
   555  
   556  // Close terminates the iteration process, releasing any pending underlying
   557  // resources.
   558  func (it *RoleManagerRoleCreatedIterator) Close() error {
   559  	it.sub.Unsubscribe()
   560  	return nil
   561  }
   562  
   563  // RoleManagerRoleCreated represents a RoleCreated event raised by the RoleManager contract.
   564  type RoleManagerRoleCreated struct {
   565  	RoleId     string
   566  	OrgId      string
   567  	BaseAccess *big.Int
   568  	IsVoter    bool
   569  	IsAdmin    bool
   570  	Raw        types.Log // Blockchain specific contextual infos
   571  }
   572  
   573  // FilterRoleCreated is a free log retrieval operation binding the contract event 0xefa5bc1bedbee25b04b00855c15a0c180ecb4a2440d4d08296e49561655e2b1c.
   574  //
   575  // Solidity: event RoleCreated(string _roleId, string _orgId, uint256 _baseAccess, bool _isVoter, bool _isAdmin)
   576  func (_RoleManager *RoleManagerFilterer) FilterRoleCreated(opts *bind.FilterOpts) (*RoleManagerRoleCreatedIterator, error) {
   577  
   578  	logs, sub, err := _RoleManager.contract.FilterLogs(opts, "RoleCreated")
   579  	if err != nil {
   580  		return nil, err
   581  	}
   582  	return &RoleManagerRoleCreatedIterator{contract: _RoleManager.contract, event: "RoleCreated", logs: logs, sub: sub}, nil
   583  }
   584  
   585  var RoleCreatedTopicHash = "0xefa5bc1bedbee25b04b00855c15a0c180ecb4a2440d4d08296e49561655e2b1c"
   586  
   587  // WatchRoleCreated is a free log subscription operation binding the contract event 0xefa5bc1bedbee25b04b00855c15a0c180ecb4a2440d4d08296e49561655e2b1c.
   588  //
   589  // Solidity: event RoleCreated(string _roleId, string _orgId, uint256 _baseAccess, bool _isVoter, bool _isAdmin)
   590  func (_RoleManager *RoleManagerFilterer) WatchRoleCreated(opts *bind.WatchOpts, sink chan<- *RoleManagerRoleCreated) (event.Subscription, error) {
   591  
   592  	logs, sub, err := _RoleManager.contract.WatchLogs(opts, "RoleCreated")
   593  	if err != nil {
   594  		return nil, err
   595  	}
   596  	return event.NewSubscription(func(quit <-chan struct{}) error {
   597  		defer sub.Unsubscribe()
   598  		for {
   599  			select {
   600  			case log := <-logs:
   601  				// New log arrived, parse the event and forward to the user
   602  				event := new(RoleManagerRoleCreated)
   603  				if err := _RoleManager.contract.UnpackLog(event, "RoleCreated", log); err != nil {
   604  					return err
   605  				}
   606  				event.Raw = log
   607  
   608  				select {
   609  				case sink <- event:
   610  				case err := <-sub.Err():
   611  					return err
   612  				case <-quit:
   613  					return nil
   614  				}
   615  			case err := <-sub.Err():
   616  				return err
   617  			case <-quit:
   618  				return nil
   619  			}
   620  		}
   621  	}), nil
   622  }
   623  
   624  // ParseRoleCreated is a log parse operation binding the contract event 0xefa5bc1bedbee25b04b00855c15a0c180ecb4a2440d4d08296e49561655e2b1c.
   625  //
   626  // Solidity: event RoleCreated(string _roleId, string _orgId, uint256 _baseAccess, bool _isVoter, bool _isAdmin)
   627  func (_RoleManager *RoleManagerFilterer) ParseRoleCreated(log types.Log) (*RoleManagerRoleCreated, error) {
   628  	event := new(RoleManagerRoleCreated)
   629  	if err := _RoleManager.contract.UnpackLog(event, "RoleCreated", log); err != nil {
   630  		return nil, err
   631  	}
   632  	return event, nil
   633  }
   634  
   635  // RoleManagerRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the RoleManager contract.
   636  type RoleManagerRoleRevokedIterator struct {
   637  	Event *RoleManagerRoleRevoked // Event containing the contract specifics and raw log
   638  
   639  	contract *bind.BoundContract // Generic contract to use for unpacking event data
   640  	event    string              // Event name to use for unpacking event data
   641  
   642  	logs chan types.Log        // Log channel receiving the found contract events
   643  	sub  ethereum.Subscription // Subscription for errors, completion and termination
   644  	done bool                  // Whether the subscription completed delivering logs
   645  	fail error                 // Occurred error to stop iteration
   646  }
   647  
   648  // Next advances the iterator to the subsequent event, returning whether there
   649  // are any more events found. In case of a retrieval or parsing error, false is
   650  // returned and Error() can be queried for the exact failure.
   651  func (it *RoleManagerRoleRevokedIterator) Next() bool {
   652  	// If the iterator failed, stop iterating
   653  	if it.fail != nil {
   654  		return false
   655  	}
   656  	// If the iterator completed, deliver directly whatever's available
   657  	if it.done {
   658  		select {
   659  		case log := <-it.logs:
   660  			it.Event = new(RoleManagerRoleRevoked)
   661  			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   662  				it.fail = err
   663  				return false
   664  			}
   665  			it.Event.Raw = log
   666  			return true
   667  
   668  		default:
   669  			return false
   670  		}
   671  	}
   672  	// Iterator still in progress, wait for either a data or an error event
   673  	select {
   674  	case log := <-it.logs:
   675  		it.Event = new(RoleManagerRoleRevoked)
   676  		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   677  			it.fail = err
   678  			return false
   679  		}
   680  		it.Event.Raw = log
   681  		return true
   682  
   683  	case err := <-it.sub.Err():
   684  		it.done = true
   685  		it.fail = err
   686  		return it.Next()
   687  	}
   688  }
   689  
   690  // Error returns any retrieval or parsing error occurred during filtering.
   691  func (it *RoleManagerRoleRevokedIterator) Error() error {
   692  	return it.fail
   693  }
   694  
   695  // Close terminates the iteration process, releasing any pending underlying
   696  // resources.
   697  func (it *RoleManagerRoleRevokedIterator) Close() error {
   698  	it.sub.Unsubscribe()
   699  	return nil
   700  }
   701  
   702  // RoleManagerRoleRevoked represents a RoleRevoked event raised by the RoleManager contract.
   703  type RoleManagerRoleRevoked struct {
   704  	RoleId string
   705  	OrgId  string
   706  	Raw    types.Log // Blockchain specific contextual infos
   707  }
   708  
   709  // FilterRoleRevoked is a free log retrieval operation binding the contract event 0x1196059dd83524bf989fd94bb65808c09dbea2ab791fb6bfa87a0e0aa64b2ea6.
   710  //
   711  // Solidity: event RoleRevoked(string _roleId, string _orgId)
   712  func (_RoleManager *RoleManagerFilterer) FilterRoleRevoked(opts *bind.FilterOpts) (*RoleManagerRoleRevokedIterator, error) {
   713  
   714  	logs, sub, err := _RoleManager.contract.FilterLogs(opts, "RoleRevoked")
   715  	if err != nil {
   716  		return nil, err
   717  	}
   718  	return &RoleManagerRoleRevokedIterator{contract: _RoleManager.contract, event: "RoleRevoked", logs: logs, sub: sub}, nil
   719  }
   720  
   721  var RoleRevokedTopicHash = "0x1196059dd83524bf989fd94bb65808c09dbea2ab791fb6bfa87a0e0aa64b2ea6"
   722  
   723  // WatchRoleRevoked is a free log subscription operation binding the contract event 0x1196059dd83524bf989fd94bb65808c09dbea2ab791fb6bfa87a0e0aa64b2ea6.
   724  //
   725  // Solidity: event RoleRevoked(string _roleId, string _orgId)
   726  func (_RoleManager *RoleManagerFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *RoleManagerRoleRevoked) (event.Subscription, error) {
   727  
   728  	logs, sub, err := _RoleManager.contract.WatchLogs(opts, "RoleRevoked")
   729  	if err != nil {
   730  		return nil, err
   731  	}
   732  	return event.NewSubscription(func(quit <-chan struct{}) error {
   733  		defer sub.Unsubscribe()
   734  		for {
   735  			select {
   736  			case log := <-logs:
   737  				// New log arrived, parse the event and forward to the user
   738  				event := new(RoleManagerRoleRevoked)
   739  				if err := _RoleManager.contract.UnpackLog(event, "RoleRevoked", log); err != nil {
   740  					return err
   741  				}
   742  				event.Raw = log
   743  
   744  				select {
   745  				case sink <- event:
   746  				case err := <-sub.Err():
   747  					return err
   748  				case <-quit:
   749  					return nil
   750  				}
   751  			case err := <-sub.Err():
   752  				return err
   753  			case <-quit:
   754  				return nil
   755  			}
   756  		}
   757  	}), nil
   758  }
   759  
   760  // ParseRoleRevoked is a log parse operation binding the contract event 0x1196059dd83524bf989fd94bb65808c09dbea2ab791fb6bfa87a0e0aa64b2ea6.
   761  //
   762  // Solidity: event RoleRevoked(string _roleId, string _orgId)
   763  func (_RoleManager *RoleManagerFilterer) ParseRoleRevoked(log types.Log) (*RoleManagerRoleRevoked, error) {
   764  	event := new(RoleManagerRoleRevoked)
   765  	if err := _RoleManager.contract.UnpackLog(event, "RoleRevoked", log); err != nil {
   766  		return nil, err
   767  	}
   768  	return event, nil
   769  }