github.com/jpmorganchase/quorum@v21.1.0+incompatible/permission/v1/bind/org.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 // OrgManagerABI is the input ABI used to generate the binding from. 31 const OrgManagerABI = "[{\"constant\":false,\"inputs\":[{\"name\":\"_orgId\",\"type\":\"string\"},{\"name\":\"_action\",\"type\":\"uint256\"}],\"name\":\"updateOrg\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_orgId\",\"type\":\"string\"},{\"name\":\"_action\",\"type\":\"uint256\"}],\"name\":\"approveOrgStatusUpdate\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_orgId\",\"type\":\"string\"}],\"name\":\"getUltimateParent\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_pOrgId\",\"type\":\"string\"},{\"name\":\"_orgId\",\"type\":\"string\"}],\"name\":\"addSubOrg\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_orgIndex\",\"type\":\"uint256\"}],\"name\":\"getOrgInfo\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"},{\"name\":\"\",\"type\":\"string\"},{\"name\":\"\",\"type\":\"string\"},{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_orgId\",\"type\":\"string\"}],\"name\":\"getSubOrgIndexes\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getNumberOfOrgs\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_orgId\",\"type\":\"string\"},{\"name\":\"_orgStatus\",\"type\":\"uint256\"}],\"name\":\"checkOrgStatus\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_orgId\",\"type\":\"string\"},{\"name\":\"_breadth\",\"type\":\"uint256\"},{\"name\":\"_depth\",\"type\":\"uint256\"}],\"name\":\"setUpOrg\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_orgId\",\"type\":\"string\"}],\"name\":\"approveOrg\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_orgId\",\"type\":\"string\"}],\"name\":\"getOrgDetails\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"},{\"name\":\"\",\"type\":\"string\"},{\"name\":\"\",\"type\":\"string\"},{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_orgId\",\"type\":\"string\"}],\"name\":\"addOrg\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_orgId\",\"type\":\"string\"}],\"name\":\"checkOrgExists\",\"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\":\"_orgId\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_porgId\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_ultParent\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_level\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_status\",\"type\":\"uint256\"}],\"name\":\"OrgApproved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_orgId\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_porgId\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_ultParent\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_level\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_status\",\"type\":\"uint256\"}],\"name\":\"OrgPendingApproval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_orgId\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_porgId\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_ultParent\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_level\",\"type\":\"uint256\"}],\"name\":\"OrgSuspended\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_orgId\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_porgId\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_ultParent\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_level\",\"type\":\"uint256\"}],\"name\":\"OrgSuspensionRevoked\",\"type\":\"event\"}]" 32 33 var OrgManagerParsedABI, _ = abi.JSON(strings.NewReader(OrgManagerABI)) 34 35 // OrgManagerBin is the compiled bytecode used for deploying new contracts. 36 var OrgManagerBin = "0x608060405260018054600160a01b60ff021916905560046002819055600355600060065534801561002f57600080fd5b506040516020806138e98339810180604052602081101561004f57600080fd5b5051600180546001600160a01b0319166001600160a01b0390921691909117905561386a8061007f6000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80637755ebdd1161008c578063e302831611610066578063e3028316146106c8578063f4d6d9f514610736578063f9953de5146107a4578063ffe40d1d14610812576100cf565b80637755ebdd146105925780638c8642df1461059a5780639e58eb9f14610654576100cf565b80630cc27493146100d457806314f775f914610154578063177c8d8a146101c45780631f953480146102a75780635c4f32ee146103655780635e99f6e5146104d4575b600080fd5b610142600480360360408110156100ea57600080fd5b810190602081018135600160201b81111561010457600080fd5b82018360208201111561011657600080fd5b803590602001918460018302840111600160201b8311171561013757600080fd5b9193509150356108b6565b60408051918252519081900360200190f35b6101c26004803603604081101561016a57600080fd5b810190602081018135600160201b81111561018457600080fd5b82018360208201111561019657600080fd5b803590602001918460018302840111600160201b831117156101b757600080fd5b919350915035610c48565b005b610232600480360360208110156101da57600080fd5b810190602081018135600160201b8111156101f457600080fd5b82018360208201111561020657600080fd5b803590602001918460018302840111600160201b8311171561022757600080fd5b509092509050610e3a565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026c578181015183820152602001610254565b50505050905090810190601f1680156102995780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101c2600480360360408110156102bd57600080fd5b810190602081018135600160201b8111156102d757600080fd5b8201836020820111156102e957600080fd5b803590602001918460018302840111600160201b8311171561030a57600080fd5b919390929091602081019035600160201b81111561032757600080fd5b82018360208201111561033957600080fd5b803590602001918460018302840111600160201b8311171561035a57600080fd5b509092509050610fef565b6103826004803603602081101561037b57600080fd5b50356111cd565b60405180806020018060200180602001868152602001858152602001848103845289818151815260200191508051906020019080838360005b838110156103d35781810151838201526020016103bb565b50505050905090810190601f1680156104005780820380516001836020036101000a031916815260200191505b5084810383528851815288516020918201918a019080838360005b8381101561043357818101518382015260200161041b565b50505050905090810190601f1680156104605780820380516001836020036101000a031916815260200191505b50848103825287518152875160209182019189019080838360005b8381101561049357818101518382015260200161047b565b50505050905090810190601f1680156104c05780820380516001836020036101000a031916815260200191505b509850505050505050505060405180910390f35b610542600480360360208110156104ea57600080fd5b810190602081018135600160201b81111561050457600080fd5b82018360208201111561051657600080fd5b803590602001918460018302840111600160201b8311171561053757600080fd5b509092509050611442565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561057e578181015183820152602001610566565b505050509050019250505060405180910390f35b61014261158f565b610640600480360360408110156105b057600080fd5b810190602081018135600160201b8111156105ca57600080fd5b8201836020820111156105dc57600080fd5b803590602001918460018302840111600160201b831117156105fd57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505091359250611596915050565b604080519115158252519081900360200190f35b6101c26004803603606081101561066a57600080fd5b810190602081018135600160201b81111561068457600080fd5b82018360208201111561069657600080fd5b803590602001918460018302840111600160201b831117156106b757600080fd5b9193509150803590602001356116ee565b6101c2600480360360208110156106de57600080fd5b810190602081018135600160201b8111156106f857600080fd5b82018360208201111561070a57600080fd5b803590602001918460018302840111600160201b8311171561072b57600080fd5b50909250905061181a565b6103826004803603602081101561074c57600080fd5b810190602081018135600160201b81111561076657600080fd5b82018360208201111561077857600080fd5b803590602001918460018302840111600160201b8311171561079957600080fd5b509092509050611c25565b6101c2600480360360208110156107ba57600080fd5b810190602081018135600160201b8111156107d457600080fd5b8201836020820111156107e657600080fd5b803590602001918460018302840111600160201b8311171561080757600080fd5b509092509050611f8e565b6106406004803603602081101561082857600080fd5b810190602081018135600160201b81111561084257600080fd5b82018360208201111561085457600080fd5b803590602001918460018302840111600160201b8311171561087557600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061213b945050505050565b60015460408051600160e41b62e32cf902815290516000926001600160a01b031691630e32cf90916004808301926020929190829003018186803b1580156108fd57600080fd5b505afa158015610911573d6000803e3d6000fd5b505050506040513d602081101561092757600080fd5b50516001600160a01b0316331461097c5760408051600160e51b62461bcd02815260206004820152600e6024820152600160911b6d34b73b30b634b21031b0b63632b902604482015290519081900360640190fd5b83838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506109be925083915061213b9050565b1515600114610a0f5760408051600160e51b62461bcd0281526020600482015260126024820152600160721b711bdc99c8191bd95cc81b9bdd08195e1a5cdd02604482015290519081900360640190fd5b8260011480610a1e5750826002145b1515610a5e57604051600160e51b62461bcd0281526004018080602001828103825260258152602001806137986025913960400191505060405180910390fd5b6000610a9f86868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506121c992505050565b9050600481815481101515610ab057fe5b9060005260206000209060080201600601546001141515610b0557604051600160e51b62461bcd0281526004018080602001828103825260278152602001806137bd6027913960400191505060405180910390fd5b6000808560011415610b1c57506002905080610b2d565b8560021415610b2d57506004905060035b610b6e88888080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250869250611596915050565b1515600114610bb157604051600160e51b62461bcd0281526004018080602001828103825260278152602001806137e46027913960400191505060405180910390fd5b8560011415610bfe57610bf988888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061225692505050565b610c3d565b610c3d88888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061251892505050565b979650505050505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316630e32cf906040518163ffffffff1660e01b815260040160206040518083038186803b158015610c9657600080fd5b505afa158015610caa573d6000803e3d6000fd5b505050506040513d6020811015610cc057600080fd5b50516001600160a01b03163314610d155760408051600160e51b62461bcd02815260206004820152600e6024820152600160911b6d34b73b30b634b21031b0b63632b902604482015290519081900360640190fd5b82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610d57925083915061213b9050565b1515600114610da85760408051600160e51b62461bcd0281526020600482015260126024820152600160721b711bdc99c8191bd95cc81b9bdd08195e1a5cdd02604482015290519081900360640190fd5b8160011415610df557610df084848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506126c592505050565b610e34565b610e3484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061298392505050565b50505050565b60015460408051600160e41b62e32cf902815290516060926001600160a01b031691630e32cf90916004808301926020929190829003018186803b158015610e8157600080fd5b505afa158015610e95573d6000803e3d6000fd5b505050506040513d6020811015610eab57600080fd5b50516001600160a01b03163314610f005760408051600160e51b62461bcd02815260206004820152600e6024820152600160911b6d34b73b30b634b21031b0b63632b902604482015290519081900360640190fd5b6004610f4184848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506121c992505050565b81548110610f4b57fe5b6000918252602091829020600460089092020101805460408051601f6002600019610100600187161502019094169390930492830185900485028101850190915281815292830182828015610fe15780601f10610fb657610100808354040283529160200191610fe1565b820191906000526020600020905b815481529060010190602001808311610fc457829003601f168201915b505050505090505b92915050565b600160009054906101000a90046001600160a01b03166001600160a01b0316630e32cf906040518163ffffffff1660e01b815260040160206040518083038186803b15801561103d57600080fd5b505afa158015611051573d6000803e3d6000fd5b505050506040513d602081101561106757600080fd5b50516001600160a01b031633146110bc5760408051600160e51b62461bcd02815260206004820152600e6024820152600160911b6d34b73b30b634b21031b0b63632b902604482015290519081900360640190fd5b8383838360405160200180858580828437600160f91b601702920191825250600101838380828437808301925050509450505050506040516020818303038152906040526111098161213b565b1561114e5760408051600160e51b62461bcd02815260206004820152600a6024820152600160b01b696f72672065786973747302604482015290519081900360640190fd5b6111c685858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8901819004810282018101909252878152925087915086908190840183828082843760009201919091525060029250829150612a429050565b5050505050565b60608060606000806004868154811015156111e457fe5b906000526020600020906008020160000160048781548110151561120457fe5b906000526020600020906008020160020160048881548110151561122457fe5b906000526020600020906008020160040160048981548110151561124457fe5b90600052602060002090600802016006015460048a81548110151561126557fe5b906000526020600020906008020160010154848054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561130c5780601f106112e15761010080835404028352916020019161130c565b820191906000526020600020905b8154815290600101906020018083116112ef57829003601f168201915b5050875460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959a508994509250840190508282801561139a5780601f1061136f5761010080835404028352916020019161139a565b820191906000526020600020905b81548152906001019060200180831161137d57829003601f168201915b5050865460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959950889450925084019050828280156114285780601f106113fd57610100808354040283529160200191611428565b820191906000526020600020905b81548152906001019060200180831161140b57829003601f168201915b505050505092509450945094509450945091939590929450565b606061148383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061213b92505050565b15156001146114d45760408051600160e51b62461bcd0281526020600482015260126024820152600160721b711bdc99c8191bd95cc81b9bdd08195e1a5cdd02604482015290519081900360640190fd5b600061151584848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506121c992505050565b905060048181548110151561152657fe5b906000526020600020906008020160070180548060200260200160405190810160405280929190818152602001828054801561158157602002820191906000526020600020905b81548152602001906001019080831161156d575b505050505091505092915050565b6004545b90565b600060056000846040516020018082805190602001908083835b602083106115cf5780518252601f1990920191602091820191016115b0565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052805190602001208152602001908152602001600020546000141561162957506000610fe9565b6000611634846121c9565b905060056000856040516020018082805190602001908083835b6020831061166d5780518252601f19909201916020918201910161164e565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052805190602001208152602001908152602001600020546000141580156116e65750826004828154811015156116d257fe5b906000526020600020906008020160010154145b949350505050565b600160009054906101000a90046001600160a01b03166001600160a01b0316630e32cf906040518163ffffffff1660e01b815260040160206040518083038186803b15801561173c57600080fd5b505afa158015611750573d6000803e3d6000fd5b505050506040513d602081101561176657600080fd5b50516001600160a01b031633146117bb5760408051600160e51b62461bcd02815260206004820152600e6024820152600160911b6d34b73b30b634b21031b0b63632b902604482015290519081900360640190fd5b6118106040518060200160405280600081525085858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506001925060029150612a429050565b6002556003555050565b600160009054906101000a90046001600160a01b03166001600160a01b0316630e32cf906040518163ffffffff1660e01b815260040160206040518083038186803b15801561186857600080fd5b505afa15801561187c573d6000803e3d6000fd5b505050506040513d602081101561189257600080fd5b50516001600160a01b031633146118e75760408051600160e51b62461bcd02815260206004820152600e6024820152600160911b6d34b73b30b634b21031b0b63632b902604482015290519081900360640190fd5b61192982828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250611596915050565b151560011461197a5760408051600160e51b62461bcd0281526020600482015260126024820152600160701b716e6f7468696e6720746f20617070726f766502604482015290519081900360640190fd5b60006119bb83838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506121c992505050565b905060026004828154811015156119ce57fe5b9060005260206000209060080201600101819055507fd705723a50859c9cc1d3953e10b8b9478820e7a62927ad3215897ed87b20591c600482815481101515611a1357fe5b9060005260206000209060080201600001600483815481101515611a3357fe5b9060005260206000209060080201600201600484815481101515611a5357fe5b9060005260206000209060080201600401600485815481101515611a7357fe5b906000526020600020906008020160060154600260405180806020018060200180602001868152602001858152602001848103845289818154600181600116156101000203166002900481526020019150805460018160011615610100020316600290048015611b245780601f10611af957610100808354040283529160200191611b24565b820191906000526020600020905b815481529060010190602001808311611b0757829003601f168201915b5050848103835288546002600019610100600184161502019091160480825260209091019089908015611b985780601f10611b6d57610100808354040283529160200191611b98565b820191906000526020600020905b815481529060010190602001808311611b7b57829003601f168201915b5050848103825287546002600019610100600184161502019091160480825260209091019088908015611c0c5780601f10611be157610100808354040283529160200191611c0c565b820191906000526020600020905b815481529060010190602001808311611bef57829003601f168201915b50509850505050505050505060405180910390a1505050565b6060806060600080611c6c87878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061213b92505050565b1515611cdb57868660008083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525060408051602080820183528382528251908101909252918152949d509b50929950939750919550611f84945050505050565b6000611d1c88888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506121c992505050565b9050600481815481101515611d2d57fe5b9060005260206000209060080201600001600482815481101515611d4d57fe5b9060005260206000209060080201600201600483815481101515611d6d57fe5b9060005260206000209060080201600401600484815481101515611d8d57fe5b906000526020600020906008020160060154600485815481101515611dae57fe5b906000526020600020906008020160010154848054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611e555780601f10611e2a57610100808354040283529160200191611e55565b820191906000526020600020905b815481529060010190602001808311611e3857829003601f168201915b5050875460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959a5089945092508401905082828015611ee35780601f10611eb857610100808354040283529160200191611ee3565b820191906000526020600020905b815481529060010190602001808311611ec657829003601f168201915b5050865460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815295995088945092508401905082828015611f715780601f10611f4657610100808354040283529160200191611f71565b820191906000526020600020905b815481529060010190602001808311611f5457829003601f168201915b5050505050925095509550955095509550505b9295509295909350565b600160009054906101000a90046001600160a01b03166001600160a01b0316630e32cf906040518163ffffffff1660e01b815260040160206040518083038186803b158015611fdc57600080fd5b505afa158015611ff0573d6000803e3d6000fd5b505050506040513d602081101561200657600080fd5b50516001600160a01b0316331461205b5760408051600160e51b62461bcd02815260206004820152600e6024820152600160911b6d34b73b30b634b21031b0b63632b902604482015290519081900360640190fd5b81818080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061209d925083915061213b9050565b156120e25760408051600160e51b62461bcd02815260206004820152600a6024820152600160b01b696f72672065786973747302604482015290519081900360640190fd5b6121366040518060200160405280600081525084848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525060019250829150612a429050565b505050565b600060056000836040516020018082805190602001908083835b602083106121745780518252601f199092019160209182019101612155565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405160208183030381529060405280519060200120815260200190815260200160002054600014159050919050565b6000600160056000846040516020018082805190602001908083835b602083106122045780518252601f1990920191602091820191016121e5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405160208183030381529060405280519060200120815260200190815260200160002054039050919050565b612261816002611596565b15156001146122a457604051600160e51b62461bcd02815260040180806020018281038252603481526020018061380b6034913960400191505060405180910390fd5b60006122af826121c9565b905060036004828154811015156122c257fe5b9060005260206000209060080201600101819055507f0e8b7be64e0c730234ba2cd252b227fb481d7a247ba806d1941144c535bf054b60048281548110151561230757fe5b906000526020600020906008020160000160048381548110151561232757fe5b906000526020600020906008020160020160048481548110151561234757fe5b906000526020600020906008020160040160048581548110151561236757fe5b9060005260206000209060080201600601546003604051808060200180602001806020018681526020018581526020018481038452898181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156124185780601f106123ed57610100808354040283529160200191612418565b820191906000526020600020905b8154815290600101906020018083116123fb57829003601f168201915b505084810383528854600260001961010060018416150201909116048082526020909101908990801561248c5780601f106124615761010080835404028352916020019161248c565b820191906000526020600020905b81548152906001019060200180831161246f57829003601f168201915b50508481038252875460026000196101006001841615020190911604808252602090910190889080156125005780601f106124d557610100808354040283529160200191612500565b820191906000526020600020905b8154815290600101906020018083116124e357829003601f168201915b50509850505050505050505060405180910390a15050565b612523816004611596565b151560011461257c5760408051600160e51b62461bcd02815260206004820152601a60248201527f6f7267206e6f7420696e2073757370656e646564207374617465000000000000604482015290519081900360640190fd5b6000612587826121c9565b9050600560048281548110151561259a57fe5b9060005260206000209060080201600101819055507f0e8b7be64e0c730234ba2cd252b227fb481d7a247ba806d1941144c535bf054b6004828154811015156125df57fe5b90600052602060002090600802016000016004838154811015156125ff57fe5b906000526020600020906008020160020160048481548110151561261f57fe5b906000526020600020906008020160040160048581548110151561263f57fe5b9060005260206000209060080201600601546005604051808060200180602001806020018681526020018581526020018481038452898181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156124185780601f106123ed57610100808354040283529160200191612418565b6126d0816003611596565b15156001146127215760408051600160e51b62461bcd0281526020600482015260126024820152600160701b716e6f7468696e6720746f20617070726f766502604482015290519081900360640190fd5b600061272c826121c9565b90506004808281548110151561273e57fe5b9060005260206000209060080201600101819055507f73ccf8d6c8385bf5347269bd59712da33183c1a5e1702494bcdb87d0f4674d9660048281548110151561278357fe5b90600052602060002090600802016000016004838154811015156127a357fe5b90600052602060002090600802016002016004848154811015156127c357fe5b90600052602060002090600802016004016004858154811015156127e357fe5b600091825260209182902060066008909202010154604080516060810183905260808082528754600260001961010060018416150201909116049082018190529293909283929183019183019060a0840190899080156128845780601f1061285957610100808354040283529160200191612884565b820191906000526020600020905b81548152906001019060200180831161286757829003601f168201915b50508481038352875460026000196101006001841615020190911604808252602090910190889080156128f85780601f106128cd576101008083540402835291602001916128f8565b820191906000526020600020905b8154815290600101906020018083116128db57829003601f168201915b505084810382528654600260001961010060018416150201909116048082526020909101908790801561296c5780601f106129415761010080835404028352916020019161296c565b820191906000526020600020905b81548152906001019060200180831161294f57829003601f168201915b505097505050505050505060405180910390a15050565b61298e816005611596565b15156001146129df5760408051600160e51b62461bcd0281526020600482015260126024820152600160701b716e6f7468696e6720746f20617070726f766502604482015290519081900360640190fd5b60006129ea826121c9565b905060026004828154811015156129fd57fe5b9060005260206000209060080201600101819055507f882f030c609566cd82918a97d457fd48f9cfcefd11282e2654cde3f94579c15f60048281548110151561278357fe5b600080806001851415612ac457856040516020018082805190602001908083835b60208310612a825780518252601f199092019160209182019101612a63565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052805190602001209150612c03565b866040516020018082805190602001908083835b60208310612af75780518252601f199092019160209182019101612ad8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405160208183030381529060405280519060200120925086866040516020018083805190602001908083835b60208310612b685780518252601f199092019160209182019101612b49565b6001836020036101000a03801982511681845116808217855250505050505090500180600160f91b60170281525060010182805190602001908083835b60208310612bc45780518252601f199092019160209182019101612ba5565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040528051906020012091505b600680546001908101918290556000848152600560205260408120929092556004805491612c339190830161355e565b90508560011415612cf85785600482815481101515612c4e57fe5b9060005260206000209060080201600601819055506000600482815481101515612c7457fe5b90600052602060002090600802016005018190555086600482815481101515612c9957fe5b90600052602060002090600802016003019080519060200190612cbd92919061358a565b5086600482815481101515612cce57fe5b90600052602060002090600802016004019080519060200190612cf292919061358a565b5061303c565b600084815260056020526040902054600354600480546000199093019450909184908110612d2257fe5b600091825260209091206007600890920201015410612d8b5760408051600160e51b62461bcd02815260206004820152601660248201527f62726561647468206c6576656c20657863656564656400000000000000000000604482015290519081900360640190fd5b6002546004805484908110612d9c57fe5b906000526020600020906008020160060154101515612e055760408051600160e51b62461bcd02815260206004820152601460248201527f6465707468206c6576656c206578636565646564000000000000000000000000604482015290519081900360640190fd5b6004805483908110612e1357fe5b906000526020600020906008020160060154600101600482815481101515612e3757fe5b90600052602060002090600802016006018190555081600482815481101515612e5c57fe5b60009182526020909120600560089092020101556004805483908110612e7e57fe5b9060005260206000209060080201600401600482815481101515612e9e57fe5b90600052602060002090600802016004019080546001816001161561010002031660029004612ece929190613608565b506000600483815481101515612ee057fe5b90600052602060002090600802016007018054809190600101612f03919061367d565b905081600484815481101515612f1557fe5b906000526020600020906008020160070182815481101515612f3357fe5b906000526020600020018190555088886040516020018083805190602001908083835b60208310612f755780518252601f199092019160209182019101612f56565b6001836020036101000a03801982511681845116808217855250505050505090500180600160f91b60170281525060010182805190602001908083835b60208310612fd15780518252601f199092019160209182019101612fb2565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405260048381548110151561301557fe5b9060005260206000209060080201600301908051906020019061303992919061358a565b50505b8660048281548110151561304c57fe5b9060005260206000209060080201600001908051906020019061307092919061358a565b508760048281548110151561308157fe5b906000526020600020906008020160020190805190602001906130a592919061358a565b50846004828154811015156130b657fe5b9060005260206000209060080201600101819055508460011415613316577f0e8b7be64e0c730234ba2cd252b227fb481d7a247ba806d1941144c535bf054b60048281548110151561310457fe5b906000526020600020906008020160000160048381548110151561312457fe5b906000526020600020906008020160020160048481548110151561314457fe5b906000526020600020906008020160040160048581548110151561316457fe5b9060005260206000209060080201600601546001604051808060200180602001806020018681526020018581526020018481038452898181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156132155780601f106131ea57610100808354040283529160200191613215565b820191906000526020600020905b8154815290600101906020018083116131f857829003601f168201915b50508481038352885460026000196101006001841615020190911604808252602090910190899080156132895780601f1061325e57610100808354040283529160200191613289565b820191906000526020600020905b81548152906001019060200180831161326c57829003601f168201915b50508481038252875460026000196101006001841615020190911604808252602090910190889080156132fd5780601f106132d2576101008083540402835291602001916132fd565b820191906000526020600020905b8154815290600101906020018083116132e057829003601f168201915b50509850505050505050505060405180910390a1613554565b7fd705723a50859c9cc1d3953e10b8b9478820e7a62927ad3215897ed87b20591c60048281548110151561334657fe5b906000526020600020906008020160000160048381548110151561336657fe5b906000526020600020906008020160020160048481548110151561338657fe5b90600052602060002090600802016004016004858154811015156133a657fe5b9060005260206000209060080201600601546002604051808060200180602001806020018681526020018581526020018481038452898181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156134575780601f1061342c57610100808354040283529160200191613457565b820191906000526020600020905b81548152906001019060200180831161343a57829003601f168201915b50508481038352885460026000196101006001841615020190911604808252602090910190899080156134cb5780601f106134a0576101008083540402835291602001916134cb565b820191906000526020600020905b8154815290600101906020018083116134ae57829003601f168201915b505084810382528754600260001961010060018416150201909116048082526020909101908890801561353f5780601f106135145761010080835404028352916020019161353f565b820191906000526020600020905b81548152906001019060200180831161352257829003601f168201915b50509850505050505050505060405180910390a15b5050505050505050565b8154818355818111156121365760080281600802836000526020600020918201910161213691906136a1565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106135cb57805160ff19168380011785556135f8565b828001600101855582156135f8579182015b828111156135f85782518255916020019190600101906135dd565b50613604929150613718565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061364157805485556135f8565b828001600101855582156135f857600052602060002091601f016020900482015b828111156135f8578254825591600101919060010190613662565b81548183558181111561213657600083815260209020612136918101908301613718565b61159391905b808211156136045760006136bb8282613732565b60018201600090556002820160006136d39190613732565b6136e1600383016000613732565b6136ef600483016000613732565b6005820160009055600682016000905560078201600061370f9190613779565b506008016136a7565b61159391905b80821115613604576000815560010161371e565b50805460018160011615610100020316600290046000825580601f106137585750613776565b601f0160209004906000526020600020908101906137769190613718565b50565b5080546000825590600052602060002090810190613776919061371856fe696e76616c696420616374696f6e2e206f7065726174696f6e206e6f7420616c6c6f7765646e6f742061206d6173746572206f72672e206f7065726174696f6e206e6f7420616c6c6f7765646f72672073746174757320646f6573206e6f7420616c6c6f7720746865206f7065726174696f6e6f7267206e6f7420696e20617070726f766564207374617475732e206f7065726174696f6e2063616e6e6f7420626520646f6e65a165627a7a72305820a443b9df85904ce8fcc8f004110f5465352bd5d4804a4e22547ef1fad4e8f21b0029" 37 38 // DeployOrgManager deploys a new Ethereum contract, binding an instance of OrgManager to it. 39 func DeployOrgManager(auth *bind.TransactOpts, backend bind.ContractBackend, _permUpgradable common.Address) (common.Address, *types.Transaction, *OrgManager, error) { 40 parsed, err := abi.JSON(strings.NewReader(OrgManagerABI)) 41 if err != nil { 42 return common.Address{}, nil, nil, err 43 } 44 45 address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(OrgManagerBin), backend, _permUpgradable) 46 if err != nil { 47 return common.Address{}, nil, nil, err 48 } 49 return address, tx, &OrgManager{OrgManagerCaller: OrgManagerCaller{contract: contract}, OrgManagerTransactor: OrgManagerTransactor{contract: contract}, OrgManagerFilterer: OrgManagerFilterer{contract: contract}}, nil 50 } 51 52 // OrgManager is an auto generated Go binding around an Ethereum contract. 53 type OrgManager struct { 54 OrgManagerCaller // Read-only binding to the contract 55 OrgManagerTransactor // Write-only binding to the contract 56 OrgManagerFilterer // Log filterer for contract events 57 } 58 59 // OrgManagerCaller is an auto generated read-only Go binding around an Ethereum contract. 60 type OrgManagerCaller struct { 61 contract *bind.BoundContract // Generic contract wrapper for the low level calls 62 } 63 64 // OrgManagerTransactor is an auto generated write-only Go binding around an Ethereum contract. 65 type OrgManagerTransactor struct { 66 contract *bind.BoundContract // Generic contract wrapper for the low level calls 67 } 68 69 // OrgManagerFilterer is an auto generated log filtering Go binding around an Ethereum contract events. 70 type OrgManagerFilterer struct { 71 contract *bind.BoundContract // Generic contract wrapper for the low level calls 72 } 73 74 // OrgManagerSession is an auto generated Go binding around an Ethereum contract, 75 // with pre-set call and transact options. 76 type OrgManagerSession struct { 77 Contract *OrgManager // 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 // OrgManagerCallerSession is an auto generated read-only Go binding around an Ethereum contract, 83 // with pre-set call options. 84 type OrgManagerCallerSession struct { 85 Contract *OrgManagerCaller // Generic contract caller binding to set the session for 86 CallOpts bind.CallOpts // Call options to use throughout this session 87 } 88 89 // OrgManagerTransactorSession is an auto generated write-only Go binding around an Ethereum contract, 90 // with pre-set transact options. 91 type OrgManagerTransactorSession struct { 92 Contract *OrgManagerTransactor // Generic contract transactor binding to set the session for 93 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 94 } 95 96 // OrgManagerRaw is an auto generated low-level Go binding around an Ethereum contract. 97 type OrgManagerRaw struct { 98 Contract *OrgManager // Generic contract binding to access the raw methods on 99 } 100 101 // OrgManagerCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. 102 type OrgManagerCallerRaw struct { 103 Contract *OrgManagerCaller // Generic read-only contract binding to access the raw methods on 104 } 105 106 // OrgManagerTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. 107 type OrgManagerTransactorRaw struct { 108 Contract *OrgManagerTransactor // Generic write-only contract binding to access the raw methods on 109 } 110 111 // NewOrgManager creates a new instance of OrgManager, bound to a specific deployed contract. 112 func NewOrgManager(address common.Address, backend bind.ContractBackend) (*OrgManager, error) { 113 contract, err := bindOrgManager(address, backend, backend, backend) 114 if err != nil { 115 return nil, err 116 } 117 return &OrgManager{OrgManagerCaller: OrgManagerCaller{contract: contract}, OrgManagerTransactor: OrgManagerTransactor{contract: contract}, OrgManagerFilterer: OrgManagerFilterer{contract: contract}}, nil 118 } 119 120 // NewOrgManagerCaller creates a new read-only instance of OrgManager, bound to a specific deployed contract. 121 func NewOrgManagerCaller(address common.Address, caller bind.ContractCaller) (*OrgManagerCaller, error) { 122 contract, err := bindOrgManager(address, caller, nil, nil) 123 if err != nil { 124 return nil, err 125 } 126 return &OrgManagerCaller{contract: contract}, nil 127 } 128 129 // NewOrgManagerTransactor creates a new write-only instance of OrgManager, bound to a specific deployed contract. 130 func NewOrgManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*OrgManagerTransactor, error) { 131 contract, err := bindOrgManager(address, nil, transactor, nil) 132 if err != nil { 133 return nil, err 134 } 135 return &OrgManagerTransactor{contract: contract}, nil 136 } 137 138 // NewOrgManagerFilterer creates a new log filterer instance of OrgManager, bound to a specific deployed contract. 139 func NewOrgManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*OrgManagerFilterer, error) { 140 contract, err := bindOrgManager(address, nil, nil, filterer) 141 if err != nil { 142 return nil, err 143 } 144 return &OrgManagerFilterer{contract: contract}, nil 145 } 146 147 // bindOrgManager binds a generic wrapper to an already deployed contract. 148 func bindOrgManager(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { 149 parsed, err := abi.JSON(strings.NewReader(OrgManagerABI)) 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 (_OrgManager *OrgManagerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error { 161 return _OrgManager.Contract.OrgManagerCaller.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 (_OrgManager *OrgManagerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 167 return _OrgManager.Contract.OrgManagerTransactor.contract.Transfer(opts) 168 } 169 170 // Transact invokes the (paid) contract method with params as input values. 171 func (_OrgManager *OrgManagerRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 172 return _OrgManager.Contract.OrgManagerTransactor.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 (_OrgManager *OrgManagerCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error { 180 return _OrgManager.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 (_OrgManager *OrgManagerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 186 return _OrgManager.Contract.contract.Transfer(opts) 187 } 188 189 // Transact invokes the (paid) contract method with params as input values. 190 func (_OrgManager *OrgManagerTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 191 return _OrgManager.Contract.contract.Transact(opts, method, params...) 192 } 193 194 // CheckOrgExists is a free data retrieval call binding the contract method 0xffe40d1d. 195 // 196 // Solidity: function checkOrgExists(string _orgId) constant returns(bool) 197 func (_OrgManager *OrgManagerCaller) CheckOrgExists(opts *bind.CallOpts, _orgId string) (bool, error) { 198 var ( 199 ret0 = new(bool) 200 ) 201 out := ret0 202 err := _OrgManager.contract.Call(opts, out, "checkOrgExists", _orgId) 203 return *ret0, err 204 } 205 206 // CheckOrgExists is a free data retrieval call binding the contract method 0xffe40d1d. 207 // 208 // Solidity: function checkOrgExists(string _orgId) constant returns(bool) 209 func (_OrgManager *OrgManagerSession) CheckOrgExists(_orgId string) (bool, error) { 210 return _OrgManager.Contract.CheckOrgExists(&_OrgManager.CallOpts, _orgId) 211 } 212 213 // CheckOrgExists is a free data retrieval call binding the contract method 0xffe40d1d. 214 // 215 // Solidity: function checkOrgExists(string _orgId) constant returns(bool) 216 func (_OrgManager *OrgManagerCallerSession) CheckOrgExists(_orgId string) (bool, error) { 217 return _OrgManager.Contract.CheckOrgExists(&_OrgManager.CallOpts, _orgId) 218 } 219 220 // CheckOrgStatus is a free data retrieval call binding the contract method 0x8c8642df. 221 // 222 // Solidity: function checkOrgStatus(string _orgId, uint256 _orgStatus) constant returns(bool) 223 func (_OrgManager *OrgManagerCaller) CheckOrgStatus(opts *bind.CallOpts, _orgId string, _orgStatus *big.Int) (bool, error) { 224 var ( 225 ret0 = new(bool) 226 ) 227 out := ret0 228 err := _OrgManager.contract.Call(opts, out, "checkOrgStatus", _orgId, _orgStatus) 229 return *ret0, err 230 } 231 232 // CheckOrgStatus is a free data retrieval call binding the contract method 0x8c8642df. 233 // 234 // Solidity: function checkOrgStatus(string _orgId, uint256 _orgStatus) constant returns(bool) 235 func (_OrgManager *OrgManagerSession) CheckOrgStatus(_orgId string, _orgStatus *big.Int) (bool, error) { 236 return _OrgManager.Contract.CheckOrgStatus(&_OrgManager.CallOpts, _orgId, _orgStatus) 237 } 238 239 // CheckOrgStatus is a free data retrieval call binding the contract method 0x8c8642df. 240 // 241 // Solidity: function checkOrgStatus(string _orgId, uint256 _orgStatus) constant returns(bool) 242 func (_OrgManager *OrgManagerCallerSession) CheckOrgStatus(_orgId string, _orgStatus *big.Int) (bool, error) { 243 return _OrgManager.Contract.CheckOrgStatus(&_OrgManager.CallOpts, _orgId, _orgStatus) 244 } 245 246 // GetNumberOfOrgs is a free data retrieval call binding the contract method 0x7755ebdd. 247 // 248 // Solidity: function getNumberOfOrgs() constant returns(uint256) 249 func (_OrgManager *OrgManagerCaller) GetNumberOfOrgs(opts *bind.CallOpts) (*big.Int, error) { 250 var ( 251 ret0 = new(*big.Int) 252 ) 253 out := ret0 254 err := _OrgManager.contract.Call(opts, out, "getNumberOfOrgs") 255 return *ret0, err 256 } 257 258 // GetNumberOfOrgs is a free data retrieval call binding the contract method 0x7755ebdd. 259 // 260 // Solidity: function getNumberOfOrgs() constant returns(uint256) 261 func (_OrgManager *OrgManagerSession) GetNumberOfOrgs() (*big.Int, error) { 262 return _OrgManager.Contract.GetNumberOfOrgs(&_OrgManager.CallOpts) 263 } 264 265 // GetNumberOfOrgs is a free data retrieval call binding the contract method 0x7755ebdd. 266 // 267 // Solidity: function getNumberOfOrgs() constant returns(uint256) 268 func (_OrgManager *OrgManagerCallerSession) GetNumberOfOrgs() (*big.Int, error) { 269 return _OrgManager.Contract.GetNumberOfOrgs(&_OrgManager.CallOpts) 270 } 271 272 // GetOrgDetails is a free data retrieval call binding the contract method 0xf4d6d9f5. 273 // 274 // Solidity: function getOrgDetails(string _orgId) constant returns(string, string, string, uint256, uint256) 275 func (_OrgManager *OrgManagerCaller) GetOrgDetails(opts *bind.CallOpts, _orgId string) (string, string, string, *big.Int, *big.Int, error) { 276 var ( 277 ret0 = new(string) 278 ret1 = new(string) 279 ret2 = new(string) 280 ret3 = new(*big.Int) 281 ret4 = new(*big.Int) 282 ) 283 out := &[]interface{}{ 284 ret0, 285 ret1, 286 ret2, 287 ret3, 288 ret4, 289 } 290 err := _OrgManager.contract.Call(opts, out, "getOrgDetails", _orgId) 291 return *ret0, *ret1, *ret2, *ret3, *ret4, err 292 } 293 294 // GetOrgDetails is a free data retrieval call binding the contract method 0xf4d6d9f5. 295 // 296 // Solidity: function getOrgDetails(string _orgId) constant returns(string, string, string, uint256, uint256) 297 func (_OrgManager *OrgManagerSession) GetOrgDetails(_orgId string) (string, string, string, *big.Int, *big.Int, error) { 298 return _OrgManager.Contract.GetOrgDetails(&_OrgManager.CallOpts, _orgId) 299 } 300 301 // GetOrgDetails is a free data retrieval call binding the contract method 0xf4d6d9f5. 302 // 303 // Solidity: function getOrgDetails(string _orgId) constant returns(string, string, string, uint256, uint256) 304 func (_OrgManager *OrgManagerCallerSession) GetOrgDetails(_orgId string) (string, string, string, *big.Int, *big.Int, error) { 305 return _OrgManager.Contract.GetOrgDetails(&_OrgManager.CallOpts, _orgId) 306 } 307 308 // GetOrgInfo is a free data retrieval call binding the contract method 0x5c4f32ee. 309 // 310 // Solidity: function getOrgInfo(uint256 _orgIndex) constant returns(string, string, string, uint256, uint256) 311 func (_OrgManager *OrgManagerCaller) GetOrgInfo(opts *bind.CallOpts, _orgIndex *big.Int) (string, string, string, *big.Int, *big.Int, error) { 312 var ( 313 ret0 = new(string) 314 ret1 = new(string) 315 ret2 = new(string) 316 ret3 = new(*big.Int) 317 ret4 = new(*big.Int) 318 ) 319 out := &[]interface{}{ 320 ret0, 321 ret1, 322 ret2, 323 ret3, 324 ret4, 325 } 326 err := _OrgManager.contract.Call(opts, out, "getOrgInfo", _orgIndex) 327 return *ret0, *ret1, *ret2, *ret3, *ret4, err 328 } 329 330 // GetOrgInfo is a free data retrieval call binding the contract method 0x5c4f32ee. 331 // 332 // Solidity: function getOrgInfo(uint256 _orgIndex) constant returns(string, string, string, uint256, uint256) 333 func (_OrgManager *OrgManagerSession) GetOrgInfo(_orgIndex *big.Int) (string, string, string, *big.Int, *big.Int, error) { 334 return _OrgManager.Contract.GetOrgInfo(&_OrgManager.CallOpts, _orgIndex) 335 } 336 337 // GetOrgInfo is a free data retrieval call binding the contract method 0x5c4f32ee. 338 // 339 // Solidity: function getOrgInfo(uint256 _orgIndex) constant returns(string, string, string, uint256, uint256) 340 func (_OrgManager *OrgManagerCallerSession) GetOrgInfo(_orgIndex *big.Int) (string, string, string, *big.Int, *big.Int, error) { 341 return _OrgManager.Contract.GetOrgInfo(&_OrgManager.CallOpts, _orgIndex) 342 } 343 344 // GetSubOrgIndexes is a free data retrieval call binding the contract method 0x5e99f6e5. 345 // 346 // Solidity: function getSubOrgIndexes(string _orgId) constant returns(uint256[]) 347 func (_OrgManager *OrgManagerCaller) GetSubOrgIndexes(opts *bind.CallOpts, _orgId string) ([]*big.Int, error) { 348 var ( 349 ret0 = new([]*big.Int) 350 ) 351 out := ret0 352 err := _OrgManager.contract.Call(opts, out, "getSubOrgIndexes", _orgId) 353 return *ret0, err 354 } 355 356 // GetSubOrgIndexes is a free data retrieval call binding the contract method 0x5e99f6e5. 357 // 358 // Solidity: function getSubOrgIndexes(string _orgId) constant returns(uint256[]) 359 func (_OrgManager *OrgManagerSession) GetSubOrgIndexes(_orgId string) ([]*big.Int, error) { 360 return _OrgManager.Contract.GetSubOrgIndexes(&_OrgManager.CallOpts, _orgId) 361 } 362 363 // GetSubOrgIndexes is a free data retrieval call binding the contract method 0x5e99f6e5. 364 // 365 // Solidity: function getSubOrgIndexes(string _orgId) constant returns(uint256[]) 366 func (_OrgManager *OrgManagerCallerSession) GetSubOrgIndexes(_orgId string) ([]*big.Int, error) { 367 return _OrgManager.Contract.GetSubOrgIndexes(&_OrgManager.CallOpts, _orgId) 368 } 369 370 // GetUltimateParent is a free data retrieval call binding the contract method 0x177c8d8a. 371 // 372 // Solidity: function getUltimateParent(string _orgId) constant returns(string) 373 func (_OrgManager *OrgManagerCaller) GetUltimateParent(opts *bind.CallOpts, _orgId string) (string, error) { 374 var ( 375 ret0 = new(string) 376 ) 377 out := ret0 378 err := _OrgManager.contract.Call(opts, out, "getUltimateParent", _orgId) 379 return *ret0, err 380 } 381 382 // GetUltimateParent is a free data retrieval call binding the contract method 0x177c8d8a. 383 // 384 // Solidity: function getUltimateParent(string _orgId) constant returns(string) 385 func (_OrgManager *OrgManagerSession) GetUltimateParent(_orgId string) (string, error) { 386 return _OrgManager.Contract.GetUltimateParent(&_OrgManager.CallOpts, _orgId) 387 } 388 389 // GetUltimateParent is a free data retrieval call binding the contract method 0x177c8d8a. 390 // 391 // Solidity: function getUltimateParent(string _orgId) constant returns(string) 392 func (_OrgManager *OrgManagerCallerSession) GetUltimateParent(_orgId string) (string, error) { 393 return _OrgManager.Contract.GetUltimateParent(&_OrgManager.CallOpts, _orgId) 394 } 395 396 // AddOrg is a paid mutator transaction binding the contract method 0xf9953de5. 397 // 398 // Solidity: function addOrg(string _orgId) returns() 399 func (_OrgManager *OrgManagerTransactor) AddOrg(opts *bind.TransactOpts, _orgId string) (*types.Transaction, error) { 400 return _OrgManager.contract.Transact(opts, "addOrg", _orgId) 401 } 402 403 // AddOrg is a paid mutator transaction binding the contract method 0xf9953de5. 404 // 405 // Solidity: function addOrg(string _orgId) returns() 406 func (_OrgManager *OrgManagerSession) AddOrg(_orgId string) (*types.Transaction, error) { 407 return _OrgManager.Contract.AddOrg(&_OrgManager.TransactOpts, _orgId) 408 } 409 410 // AddOrg is a paid mutator transaction binding the contract method 0xf9953de5. 411 // 412 // Solidity: function addOrg(string _orgId) returns() 413 func (_OrgManager *OrgManagerTransactorSession) AddOrg(_orgId string) (*types.Transaction, error) { 414 return _OrgManager.Contract.AddOrg(&_OrgManager.TransactOpts, _orgId) 415 } 416 417 // AddSubOrg is a paid mutator transaction binding the contract method 0x1f953480. 418 // 419 // Solidity: function addSubOrg(string _pOrgId, string _orgId) returns() 420 func (_OrgManager *OrgManagerTransactor) AddSubOrg(opts *bind.TransactOpts, _pOrgId string, _orgId string) (*types.Transaction, error) { 421 return _OrgManager.contract.Transact(opts, "addSubOrg", _pOrgId, _orgId) 422 } 423 424 // AddSubOrg is a paid mutator transaction binding the contract method 0x1f953480. 425 // 426 // Solidity: function addSubOrg(string _pOrgId, string _orgId) returns() 427 func (_OrgManager *OrgManagerSession) AddSubOrg(_pOrgId string, _orgId string) (*types.Transaction, error) { 428 return _OrgManager.Contract.AddSubOrg(&_OrgManager.TransactOpts, _pOrgId, _orgId) 429 } 430 431 // AddSubOrg is a paid mutator transaction binding the contract method 0x1f953480. 432 // 433 // Solidity: function addSubOrg(string _pOrgId, string _orgId) returns() 434 func (_OrgManager *OrgManagerTransactorSession) AddSubOrg(_pOrgId string, _orgId string) (*types.Transaction, error) { 435 return _OrgManager.Contract.AddSubOrg(&_OrgManager.TransactOpts, _pOrgId, _orgId) 436 } 437 438 // ApproveOrg is a paid mutator transaction binding the contract method 0xe3028316. 439 // 440 // Solidity: function approveOrg(string _orgId) returns() 441 func (_OrgManager *OrgManagerTransactor) ApproveOrg(opts *bind.TransactOpts, _orgId string) (*types.Transaction, error) { 442 return _OrgManager.contract.Transact(opts, "approveOrg", _orgId) 443 } 444 445 // ApproveOrg is a paid mutator transaction binding the contract method 0xe3028316. 446 // 447 // Solidity: function approveOrg(string _orgId) returns() 448 func (_OrgManager *OrgManagerSession) ApproveOrg(_orgId string) (*types.Transaction, error) { 449 return _OrgManager.Contract.ApproveOrg(&_OrgManager.TransactOpts, _orgId) 450 } 451 452 // ApproveOrg is a paid mutator transaction binding the contract method 0xe3028316. 453 // 454 // Solidity: function approveOrg(string _orgId) returns() 455 func (_OrgManager *OrgManagerTransactorSession) ApproveOrg(_orgId string) (*types.Transaction, error) { 456 return _OrgManager.Contract.ApproveOrg(&_OrgManager.TransactOpts, _orgId) 457 } 458 459 // ApproveOrgStatusUpdate is a paid mutator transaction binding the contract method 0x14f775f9. 460 // 461 // Solidity: function approveOrgStatusUpdate(string _orgId, uint256 _action) returns() 462 func (_OrgManager *OrgManagerTransactor) ApproveOrgStatusUpdate(opts *bind.TransactOpts, _orgId string, _action *big.Int) (*types.Transaction, error) { 463 return _OrgManager.contract.Transact(opts, "approveOrgStatusUpdate", _orgId, _action) 464 } 465 466 // ApproveOrgStatusUpdate is a paid mutator transaction binding the contract method 0x14f775f9. 467 // 468 // Solidity: function approveOrgStatusUpdate(string _orgId, uint256 _action) returns() 469 func (_OrgManager *OrgManagerSession) ApproveOrgStatusUpdate(_orgId string, _action *big.Int) (*types.Transaction, error) { 470 return _OrgManager.Contract.ApproveOrgStatusUpdate(&_OrgManager.TransactOpts, _orgId, _action) 471 } 472 473 // ApproveOrgStatusUpdate is a paid mutator transaction binding the contract method 0x14f775f9. 474 // 475 // Solidity: function approveOrgStatusUpdate(string _orgId, uint256 _action) returns() 476 func (_OrgManager *OrgManagerTransactorSession) ApproveOrgStatusUpdate(_orgId string, _action *big.Int) (*types.Transaction, error) { 477 return _OrgManager.Contract.ApproveOrgStatusUpdate(&_OrgManager.TransactOpts, _orgId, _action) 478 } 479 480 // SetUpOrg is a paid mutator transaction binding the contract method 0x9e58eb9f. 481 // 482 // Solidity: function setUpOrg(string _orgId, uint256 _breadth, uint256 _depth) returns() 483 func (_OrgManager *OrgManagerTransactor) SetUpOrg(opts *bind.TransactOpts, _orgId string, _breadth *big.Int, _depth *big.Int) (*types.Transaction, error) { 484 return _OrgManager.contract.Transact(opts, "setUpOrg", _orgId, _breadth, _depth) 485 } 486 487 // SetUpOrg is a paid mutator transaction binding the contract method 0x9e58eb9f. 488 // 489 // Solidity: function setUpOrg(string _orgId, uint256 _breadth, uint256 _depth) returns() 490 func (_OrgManager *OrgManagerSession) SetUpOrg(_orgId string, _breadth *big.Int, _depth *big.Int) (*types.Transaction, error) { 491 return _OrgManager.Contract.SetUpOrg(&_OrgManager.TransactOpts, _orgId, _breadth, _depth) 492 } 493 494 // SetUpOrg is a paid mutator transaction binding the contract method 0x9e58eb9f. 495 // 496 // Solidity: function setUpOrg(string _orgId, uint256 _breadth, uint256 _depth) returns() 497 func (_OrgManager *OrgManagerTransactorSession) SetUpOrg(_orgId string, _breadth *big.Int, _depth *big.Int) (*types.Transaction, error) { 498 return _OrgManager.Contract.SetUpOrg(&_OrgManager.TransactOpts, _orgId, _breadth, _depth) 499 } 500 501 // UpdateOrg is a paid mutator transaction binding the contract method 0x0cc27493. 502 // 503 // Solidity: function updateOrg(string _orgId, uint256 _action) returns(uint256) 504 func (_OrgManager *OrgManagerTransactor) UpdateOrg(opts *bind.TransactOpts, _orgId string, _action *big.Int) (*types.Transaction, error) { 505 return _OrgManager.contract.Transact(opts, "updateOrg", _orgId, _action) 506 } 507 508 // UpdateOrg is a paid mutator transaction binding the contract method 0x0cc27493. 509 // 510 // Solidity: function updateOrg(string _orgId, uint256 _action) returns(uint256) 511 func (_OrgManager *OrgManagerSession) UpdateOrg(_orgId string, _action *big.Int) (*types.Transaction, error) { 512 return _OrgManager.Contract.UpdateOrg(&_OrgManager.TransactOpts, _orgId, _action) 513 } 514 515 // UpdateOrg is a paid mutator transaction binding the contract method 0x0cc27493. 516 // 517 // Solidity: function updateOrg(string _orgId, uint256 _action) returns(uint256) 518 func (_OrgManager *OrgManagerTransactorSession) UpdateOrg(_orgId string, _action *big.Int) (*types.Transaction, error) { 519 return _OrgManager.Contract.UpdateOrg(&_OrgManager.TransactOpts, _orgId, _action) 520 } 521 522 // OrgManagerOrgApprovedIterator is returned from FilterOrgApproved and is used to iterate over the raw logs and unpacked data for OrgApproved events raised by the OrgManager contract. 523 type OrgManagerOrgApprovedIterator struct { 524 Event *OrgManagerOrgApproved // Event containing the contract specifics and raw log 525 526 contract *bind.BoundContract // Generic contract to use for unpacking event data 527 event string // Event name to use for unpacking event data 528 529 logs chan types.Log // Log channel receiving the found contract events 530 sub ethereum.Subscription // Subscription for errors, completion and termination 531 done bool // Whether the subscription completed delivering logs 532 fail error // Occurred error to stop iteration 533 } 534 535 // Next advances the iterator to the subsequent event, returning whether there 536 // are any more events found. In case of a retrieval or parsing error, false is 537 // returned and Error() can be queried for the exact failure. 538 func (it *OrgManagerOrgApprovedIterator) Next() bool { 539 // If the iterator failed, stop iterating 540 if it.fail != nil { 541 return false 542 } 543 // If the iterator completed, deliver directly whatever's available 544 if it.done { 545 select { 546 case log := <-it.logs: 547 it.Event = new(OrgManagerOrgApproved) 548 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 549 it.fail = err 550 return false 551 } 552 it.Event.Raw = log 553 return true 554 555 default: 556 return false 557 } 558 } 559 // Iterator still in progress, wait for either a data or an error event 560 select { 561 case log := <-it.logs: 562 it.Event = new(OrgManagerOrgApproved) 563 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 564 it.fail = err 565 return false 566 } 567 it.Event.Raw = log 568 return true 569 570 case err := <-it.sub.Err(): 571 it.done = true 572 it.fail = err 573 return it.Next() 574 } 575 } 576 577 // Error returns any retrieval or parsing error occurred during filtering. 578 func (it *OrgManagerOrgApprovedIterator) Error() error { 579 return it.fail 580 } 581 582 // Close terminates the iteration process, releasing any pending underlying 583 // resources. 584 func (it *OrgManagerOrgApprovedIterator) Close() error { 585 it.sub.Unsubscribe() 586 return nil 587 } 588 589 // OrgManagerOrgApproved represents a OrgApproved event raised by the OrgManager contract. 590 type OrgManagerOrgApproved struct { 591 OrgId string 592 PorgId string 593 UltParent string 594 Level *big.Int 595 Status *big.Int 596 Raw types.Log // Blockchain specific contextual infos 597 } 598 599 // FilterOrgApproved is a free log retrieval operation binding the contract event 0xd705723a50859c9cc1d3953e10b8b9478820e7a62927ad3215897ed87b20591c. 600 // 601 // Solidity: event OrgApproved(string _orgId, string _porgId, string _ultParent, uint256 _level, uint256 _status) 602 func (_OrgManager *OrgManagerFilterer) FilterOrgApproved(opts *bind.FilterOpts) (*OrgManagerOrgApprovedIterator, error) { 603 604 logs, sub, err := _OrgManager.contract.FilterLogs(opts, "OrgApproved") 605 if err != nil { 606 return nil, err 607 } 608 return &OrgManagerOrgApprovedIterator{contract: _OrgManager.contract, event: "OrgApproved", logs: logs, sub: sub}, nil 609 } 610 611 var OrgApprovedTopicHash = "0xd705723a50859c9cc1d3953e10b8b9478820e7a62927ad3215897ed87b20591c" 612 613 // WatchOrgApproved is a free log subscription operation binding the contract event 0xd705723a50859c9cc1d3953e10b8b9478820e7a62927ad3215897ed87b20591c. 614 // 615 // Solidity: event OrgApproved(string _orgId, string _porgId, string _ultParent, uint256 _level, uint256 _status) 616 func (_OrgManager *OrgManagerFilterer) WatchOrgApproved(opts *bind.WatchOpts, sink chan<- *OrgManagerOrgApproved) (event.Subscription, error) { 617 618 logs, sub, err := _OrgManager.contract.WatchLogs(opts, "OrgApproved") 619 if err != nil { 620 return nil, err 621 } 622 return event.NewSubscription(func(quit <-chan struct{}) error { 623 defer sub.Unsubscribe() 624 for { 625 select { 626 case log := <-logs: 627 // New log arrived, parse the event and forward to the user 628 event := new(OrgManagerOrgApproved) 629 if err := _OrgManager.contract.UnpackLog(event, "OrgApproved", log); err != nil { 630 return err 631 } 632 event.Raw = log 633 634 select { 635 case sink <- event: 636 case err := <-sub.Err(): 637 return err 638 case <-quit: 639 return nil 640 } 641 case err := <-sub.Err(): 642 return err 643 case <-quit: 644 return nil 645 } 646 } 647 }), nil 648 } 649 650 // ParseOrgApproved is a log parse operation binding the contract event 0xd705723a50859c9cc1d3953e10b8b9478820e7a62927ad3215897ed87b20591c. 651 // 652 // Solidity: event OrgApproved(string _orgId, string _porgId, string _ultParent, uint256 _level, uint256 _status) 653 func (_OrgManager *OrgManagerFilterer) ParseOrgApproved(log types.Log) (*OrgManagerOrgApproved, error) { 654 event := new(OrgManagerOrgApproved) 655 if err := _OrgManager.contract.UnpackLog(event, "OrgApproved", log); err != nil { 656 return nil, err 657 } 658 return event, nil 659 } 660 661 // OrgManagerOrgPendingApprovalIterator is returned from FilterOrgPendingApproval and is used to iterate over the raw logs and unpacked data for OrgPendingApproval events raised by the OrgManager contract. 662 type OrgManagerOrgPendingApprovalIterator struct { 663 Event *OrgManagerOrgPendingApproval // Event containing the contract specifics and raw log 664 665 contract *bind.BoundContract // Generic contract to use for unpacking event data 666 event string // Event name to use for unpacking event data 667 668 logs chan types.Log // Log channel receiving the found contract events 669 sub ethereum.Subscription // Subscription for errors, completion and termination 670 done bool // Whether the subscription completed delivering logs 671 fail error // Occurred error to stop iteration 672 } 673 674 // Next advances the iterator to the subsequent event, returning whether there 675 // are any more events found. In case of a retrieval or parsing error, false is 676 // returned and Error() can be queried for the exact failure. 677 func (it *OrgManagerOrgPendingApprovalIterator) Next() bool { 678 // If the iterator failed, stop iterating 679 if it.fail != nil { 680 return false 681 } 682 // If the iterator completed, deliver directly whatever's available 683 if it.done { 684 select { 685 case log := <-it.logs: 686 it.Event = new(OrgManagerOrgPendingApproval) 687 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 688 it.fail = err 689 return false 690 } 691 it.Event.Raw = log 692 return true 693 694 default: 695 return false 696 } 697 } 698 // Iterator still in progress, wait for either a data or an error event 699 select { 700 case log := <-it.logs: 701 it.Event = new(OrgManagerOrgPendingApproval) 702 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 703 it.fail = err 704 return false 705 } 706 it.Event.Raw = log 707 return true 708 709 case err := <-it.sub.Err(): 710 it.done = true 711 it.fail = err 712 return it.Next() 713 } 714 } 715 716 // Error returns any retrieval or parsing error occurred during filtering. 717 func (it *OrgManagerOrgPendingApprovalIterator) Error() error { 718 return it.fail 719 } 720 721 // Close terminates the iteration process, releasing any pending underlying 722 // resources. 723 func (it *OrgManagerOrgPendingApprovalIterator) Close() error { 724 it.sub.Unsubscribe() 725 return nil 726 } 727 728 // OrgManagerOrgPendingApproval represents a OrgPendingApproval event raised by the OrgManager contract. 729 type OrgManagerOrgPendingApproval struct { 730 OrgId string 731 PorgId string 732 UltParent string 733 Level *big.Int 734 Status *big.Int 735 Raw types.Log // Blockchain specific contextual infos 736 } 737 738 // FilterOrgPendingApproval is a free log retrieval operation binding the contract event 0x0e8b7be64e0c730234ba2cd252b227fb481d7a247ba806d1941144c535bf054b. 739 // 740 // Solidity: event OrgPendingApproval(string _orgId, string _porgId, string _ultParent, uint256 _level, uint256 _status) 741 func (_OrgManager *OrgManagerFilterer) FilterOrgPendingApproval(opts *bind.FilterOpts) (*OrgManagerOrgPendingApprovalIterator, error) { 742 743 logs, sub, err := _OrgManager.contract.FilterLogs(opts, "OrgPendingApproval") 744 if err != nil { 745 return nil, err 746 } 747 return &OrgManagerOrgPendingApprovalIterator{contract: _OrgManager.contract, event: "OrgPendingApproval", logs: logs, sub: sub}, nil 748 } 749 750 var OrgPendingApprovalTopicHash = "0x0e8b7be64e0c730234ba2cd252b227fb481d7a247ba806d1941144c535bf054b" 751 752 // WatchOrgPendingApproval is a free log subscription operation binding the contract event 0x0e8b7be64e0c730234ba2cd252b227fb481d7a247ba806d1941144c535bf054b. 753 // 754 // Solidity: event OrgPendingApproval(string _orgId, string _porgId, string _ultParent, uint256 _level, uint256 _status) 755 func (_OrgManager *OrgManagerFilterer) WatchOrgPendingApproval(opts *bind.WatchOpts, sink chan<- *OrgManagerOrgPendingApproval) (event.Subscription, error) { 756 757 logs, sub, err := _OrgManager.contract.WatchLogs(opts, "OrgPendingApproval") 758 if err != nil { 759 return nil, err 760 } 761 return event.NewSubscription(func(quit <-chan struct{}) error { 762 defer sub.Unsubscribe() 763 for { 764 select { 765 case log := <-logs: 766 // New log arrived, parse the event and forward to the user 767 event := new(OrgManagerOrgPendingApproval) 768 if err := _OrgManager.contract.UnpackLog(event, "OrgPendingApproval", log); err != nil { 769 return err 770 } 771 event.Raw = log 772 773 select { 774 case sink <- event: 775 case err := <-sub.Err(): 776 return err 777 case <-quit: 778 return nil 779 } 780 case err := <-sub.Err(): 781 return err 782 case <-quit: 783 return nil 784 } 785 } 786 }), nil 787 } 788 789 // ParseOrgPendingApproval is a log parse operation binding the contract event 0x0e8b7be64e0c730234ba2cd252b227fb481d7a247ba806d1941144c535bf054b. 790 // 791 // Solidity: event OrgPendingApproval(string _orgId, string _porgId, string _ultParent, uint256 _level, uint256 _status) 792 func (_OrgManager *OrgManagerFilterer) ParseOrgPendingApproval(log types.Log) (*OrgManagerOrgPendingApproval, error) { 793 event := new(OrgManagerOrgPendingApproval) 794 if err := _OrgManager.contract.UnpackLog(event, "OrgPendingApproval", log); err != nil { 795 return nil, err 796 } 797 return event, nil 798 } 799 800 // OrgManagerOrgSuspendedIterator is returned from FilterOrgSuspended and is used to iterate over the raw logs and unpacked data for OrgSuspended events raised by the OrgManager contract. 801 type OrgManagerOrgSuspendedIterator struct { 802 Event *OrgManagerOrgSuspended // Event containing the contract specifics and raw log 803 804 contract *bind.BoundContract // Generic contract to use for unpacking event data 805 event string // Event name to use for unpacking event data 806 807 logs chan types.Log // Log channel receiving the found contract events 808 sub ethereum.Subscription // Subscription for errors, completion and termination 809 done bool // Whether the subscription completed delivering logs 810 fail error // Occurred error to stop iteration 811 } 812 813 // Next advances the iterator to the subsequent event, returning whether there 814 // are any more events found. In case of a retrieval or parsing error, false is 815 // returned and Error() can be queried for the exact failure. 816 func (it *OrgManagerOrgSuspendedIterator) Next() bool { 817 // If the iterator failed, stop iterating 818 if it.fail != nil { 819 return false 820 } 821 // If the iterator completed, deliver directly whatever's available 822 if it.done { 823 select { 824 case log := <-it.logs: 825 it.Event = new(OrgManagerOrgSuspended) 826 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 827 it.fail = err 828 return false 829 } 830 it.Event.Raw = log 831 return true 832 833 default: 834 return false 835 } 836 } 837 // Iterator still in progress, wait for either a data or an error event 838 select { 839 case log := <-it.logs: 840 it.Event = new(OrgManagerOrgSuspended) 841 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 842 it.fail = err 843 return false 844 } 845 it.Event.Raw = log 846 return true 847 848 case err := <-it.sub.Err(): 849 it.done = true 850 it.fail = err 851 return it.Next() 852 } 853 } 854 855 // Error returns any retrieval or parsing error occurred during filtering. 856 func (it *OrgManagerOrgSuspendedIterator) Error() error { 857 return it.fail 858 } 859 860 // Close terminates the iteration process, releasing any pending underlying 861 // resources. 862 func (it *OrgManagerOrgSuspendedIterator) Close() error { 863 it.sub.Unsubscribe() 864 return nil 865 } 866 867 // OrgManagerOrgSuspended represents a OrgSuspended event raised by the OrgManager contract. 868 type OrgManagerOrgSuspended struct { 869 OrgId string 870 PorgId string 871 UltParent string 872 Level *big.Int 873 Raw types.Log // Blockchain specific contextual infos 874 } 875 876 // FilterOrgSuspended is a free log retrieval operation binding the contract event 0x73ccf8d6c8385bf5347269bd59712da33183c1a5e1702494bcdb87d0f4674d96. 877 // 878 // Solidity: event OrgSuspended(string _orgId, string _porgId, string _ultParent, uint256 _level) 879 func (_OrgManager *OrgManagerFilterer) FilterOrgSuspended(opts *bind.FilterOpts) (*OrgManagerOrgSuspendedIterator, error) { 880 881 logs, sub, err := _OrgManager.contract.FilterLogs(opts, "OrgSuspended") 882 if err != nil { 883 return nil, err 884 } 885 return &OrgManagerOrgSuspendedIterator{contract: _OrgManager.contract, event: "OrgSuspended", logs: logs, sub: sub}, nil 886 } 887 888 var OrgSuspendedTopicHash = "0x73ccf8d6c8385bf5347269bd59712da33183c1a5e1702494bcdb87d0f4674d96" 889 890 // WatchOrgSuspended is a free log subscription operation binding the contract event 0x73ccf8d6c8385bf5347269bd59712da33183c1a5e1702494bcdb87d0f4674d96. 891 // 892 // Solidity: event OrgSuspended(string _orgId, string _porgId, string _ultParent, uint256 _level) 893 func (_OrgManager *OrgManagerFilterer) WatchOrgSuspended(opts *bind.WatchOpts, sink chan<- *OrgManagerOrgSuspended) (event.Subscription, error) { 894 895 logs, sub, err := _OrgManager.contract.WatchLogs(opts, "OrgSuspended") 896 if err != nil { 897 return nil, err 898 } 899 return event.NewSubscription(func(quit <-chan struct{}) error { 900 defer sub.Unsubscribe() 901 for { 902 select { 903 case log := <-logs: 904 // New log arrived, parse the event and forward to the user 905 event := new(OrgManagerOrgSuspended) 906 if err := _OrgManager.contract.UnpackLog(event, "OrgSuspended", log); err != nil { 907 return err 908 } 909 event.Raw = log 910 911 select { 912 case sink <- event: 913 case err := <-sub.Err(): 914 return err 915 case <-quit: 916 return nil 917 } 918 case err := <-sub.Err(): 919 return err 920 case <-quit: 921 return nil 922 } 923 } 924 }), nil 925 } 926 927 // ParseOrgSuspended is a log parse operation binding the contract event 0x73ccf8d6c8385bf5347269bd59712da33183c1a5e1702494bcdb87d0f4674d96. 928 // 929 // Solidity: event OrgSuspended(string _orgId, string _porgId, string _ultParent, uint256 _level) 930 func (_OrgManager *OrgManagerFilterer) ParseOrgSuspended(log types.Log) (*OrgManagerOrgSuspended, error) { 931 event := new(OrgManagerOrgSuspended) 932 if err := _OrgManager.contract.UnpackLog(event, "OrgSuspended", log); err != nil { 933 return nil, err 934 } 935 return event, nil 936 } 937 938 // OrgManagerOrgSuspensionRevokedIterator is returned from FilterOrgSuspensionRevoked and is used to iterate over the raw logs and unpacked data for OrgSuspensionRevoked events raised by the OrgManager contract. 939 type OrgManagerOrgSuspensionRevokedIterator struct { 940 Event *OrgManagerOrgSuspensionRevoked // Event containing the contract specifics and raw log 941 942 contract *bind.BoundContract // Generic contract to use for unpacking event data 943 event string // Event name to use for unpacking event data 944 945 logs chan types.Log // Log channel receiving the found contract events 946 sub ethereum.Subscription // Subscription for errors, completion and termination 947 done bool // Whether the subscription completed delivering logs 948 fail error // Occurred error to stop iteration 949 } 950 951 // Next advances the iterator to the subsequent event, returning whether there 952 // are any more events found. In case of a retrieval or parsing error, false is 953 // returned and Error() can be queried for the exact failure. 954 func (it *OrgManagerOrgSuspensionRevokedIterator) Next() bool { 955 // If the iterator failed, stop iterating 956 if it.fail != nil { 957 return false 958 } 959 // If the iterator completed, deliver directly whatever's available 960 if it.done { 961 select { 962 case log := <-it.logs: 963 it.Event = new(OrgManagerOrgSuspensionRevoked) 964 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 965 it.fail = err 966 return false 967 } 968 it.Event.Raw = log 969 return true 970 971 default: 972 return false 973 } 974 } 975 // Iterator still in progress, wait for either a data or an error event 976 select { 977 case log := <-it.logs: 978 it.Event = new(OrgManagerOrgSuspensionRevoked) 979 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 980 it.fail = err 981 return false 982 } 983 it.Event.Raw = log 984 return true 985 986 case err := <-it.sub.Err(): 987 it.done = true 988 it.fail = err 989 return it.Next() 990 } 991 } 992 993 // Error returns any retrieval or parsing error occurred during filtering. 994 func (it *OrgManagerOrgSuspensionRevokedIterator) Error() error { 995 return it.fail 996 } 997 998 // Close terminates the iteration process, releasing any pending underlying 999 // resources. 1000 func (it *OrgManagerOrgSuspensionRevokedIterator) Close() error { 1001 it.sub.Unsubscribe() 1002 return nil 1003 } 1004 1005 // OrgManagerOrgSuspensionRevoked represents a OrgSuspensionRevoked event raised by the OrgManager contract. 1006 type OrgManagerOrgSuspensionRevoked struct { 1007 OrgId string 1008 PorgId string 1009 UltParent string 1010 Level *big.Int 1011 Raw types.Log // Blockchain specific contextual infos 1012 } 1013 1014 // FilterOrgSuspensionRevoked is a free log retrieval operation binding the contract event 0x882f030c609566cd82918a97d457fd48f9cfcefd11282e2654cde3f94579c15f. 1015 // 1016 // Solidity: event OrgSuspensionRevoked(string _orgId, string _porgId, string _ultParent, uint256 _level) 1017 func (_OrgManager *OrgManagerFilterer) FilterOrgSuspensionRevoked(opts *bind.FilterOpts) (*OrgManagerOrgSuspensionRevokedIterator, error) { 1018 1019 logs, sub, err := _OrgManager.contract.FilterLogs(opts, "OrgSuspensionRevoked") 1020 if err != nil { 1021 return nil, err 1022 } 1023 return &OrgManagerOrgSuspensionRevokedIterator{contract: _OrgManager.contract, event: "OrgSuspensionRevoked", logs: logs, sub: sub}, nil 1024 } 1025 1026 var OrgSuspensionRevokedTopicHash = "0x882f030c609566cd82918a97d457fd48f9cfcefd11282e2654cde3f94579c15f" 1027 1028 // WatchOrgSuspensionRevoked is a free log subscription operation binding the contract event 0x882f030c609566cd82918a97d457fd48f9cfcefd11282e2654cde3f94579c15f. 1029 // 1030 // Solidity: event OrgSuspensionRevoked(string _orgId, string _porgId, string _ultParent, uint256 _level) 1031 func (_OrgManager *OrgManagerFilterer) WatchOrgSuspensionRevoked(opts *bind.WatchOpts, sink chan<- *OrgManagerOrgSuspensionRevoked) (event.Subscription, error) { 1032 1033 logs, sub, err := _OrgManager.contract.WatchLogs(opts, "OrgSuspensionRevoked") 1034 if err != nil { 1035 return nil, err 1036 } 1037 return event.NewSubscription(func(quit <-chan struct{}) error { 1038 defer sub.Unsubscribe() 1039 for { 1040 select { 1041 case log := <-logs: 1042 // New log arrived, parse the event and forward to the user 1043 event := new(OrgManagerOrgSuspensionRevoked) 1044 if err := _OrgManager.contract.UnpackLog(event, "OrgSuspensionRevoked", log); err != nil { 1045 return err 1046 } 1047 event.Raw = log 1048 1049 select { 1050 case sink <- event: 1051 case err := <-sub.Err(): 1052 return err 1053 case <-quit: 1054 return nil 1055 } 1056 case err := <-sub.Err(): 1057 return err 1058 case <-quit: 1059 return nil 1060 } 1061 } 1062 }), nil 1063 } 1064 1065 // ParseOrgSuspensionRevoked is a log parse operation binding the contract event 0x882f030c609566cd82918a97d457fd48f9cfcefd11282e2654cde3f94579c15f. 1066 // 1067 // Solidity: event OrgSuspensionRevoked(string _orgId, string _porgId, string _ultParent, uint256 _level) 1068 func (_OrgManager *OrgManagerFilterer) ParseOrgSuspensionRevoked(log types.Log) (*OrgManagerOrgSuspensionRevoked, error) { 1069 event := new(OrgManagerOrgSuspensionRevoked) 1070 if err := _OrgManager.contract.UnpackLog(event, "OrgSuspensionRevoked", log); err != nil { 1071 return nil, err 1072 } 1073 return event, nil 1074 }