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