ManagementContract

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ManagementContractABI = ManagementContractMetaData.ABI

ManagementContractABI is the input ABI used to generate the binding from. Deprecated: Use ManagementContractMetaData.ABI instead.

View Source
var ManagementContractBin = ManagementContractMetaData.Bin

ManagementContractBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ManagementContractMetaData.Bin instead.

View Source
var ManagementContractMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"messageBusAddress\",\"type\":\"address\"}],\"name\":\"LogManagementContractCreated\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"Hash\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"AggregatorID\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"L1Block\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"LastSequenceNumber\",\"type\":\"uint256\"}],\"internalType\":\"structStructs.MetaRollup\",\"name\":\"r\",\"type\":\"tuple\"},{\"internalType\":\"string\",\"name\":\"_rollupData\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"blockHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"topic\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"internalType\":\"uint8\",\"name\":\"consistencyLevel\",\"type\":\"uint8\"}],\"internalType\":\"structStructs.CrossChainMessage[]\",\"name\":\"messages\",\"type\":\"tuple[]\"}],\"internalType\":\"structStructs.HeaderCrossChainData\",\"name\":\"crossChainData\",\"type\":\"tuple\"}],\"name\":\"AddRollup\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_addr\",\"type\":\"address\"}],\"name\":\"Attested\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GetHostAddresses\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"rollupHash\",\"type\":\"bytes32\"}],\"name\":\"GetRollupByHash\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"Hash\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"AggregatorID\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"L1Block\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"LastSequenceNumber\",\"type\":\"uint256\"}],\"internalType\":\"structStructs.MetaRollup\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_aggregatorID\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_initSecret\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"_hostAddress\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_genesisAttestation\",\"type\":\"string\"}],\"name\":\"InitializeNetworkSecret\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"IsWithdrawalAvailable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"requestReport\",\"type\":\"string\"}],\"name\":\"RequestNetworkSecret\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"attesterID\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"requesterID\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"attesterSig\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"responseSecret\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"hostAddress\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"verifyAttester\",\"type\":\"bool\"}],\"name\":\"RespondNetworkSecret\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastBatchSeqNo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"messageBus\",\"outputs\":[{\"internalType\":\"contractIMessageBus\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x6080604052600060045534801561001557600080fd5b5060405161002290610096565b604051809103906000f08015801561003e573d6000803e3d6000fd5b50600680546001600160a01b0319166001600160a01b039290921691821790556040519081527fbd726cf82ac9c3260b1495107182e336e0654b25c10915648c0cc15b2bb72cbf9060200160405180910390a16100a3565b610e91806115d583390190565b611523806100b26000396000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c80638236a7ba11610076578063a52f433c1161005b578063a52f433c14610248578063bbd79e1514610258578063e34fbfc81461026b57600080fd5b80638236a7ba1461015c578063a1a227fa1461021d57600080fd5b806343348b2f116100a757806343348b2f146100f6578063440c953b1461013257806359a900711461014957600080fd5b806302bf9317146100c3578063324ff866146100d8575b600080fd5b6100d66100d1366004610d45565b61027e565b005b6100e0610318565b6040516100ed9190610df8565b60405180910390f35b610122610104366004610e87565b6001600160a01b031660009081526001602052604090205460ff1690565b60405190151581526020016100ed565b61013b60045481565b6040519081526020016100ed565b6100d6610157366004610f4e565b6103f1565b6101de61016a366004610ff5565b604080516080810182526000808252602082018190529181018290526060810182905250506000818152600560209081526040918290208251608081018452815480825260018301546001600160a01b03169382019390935260028201549381019390935260030154606083015290911491565b60408051921515835281516020808501919091528201516001600160a01b0316838201528101516060808401919091520151608082015260a0016100ed565b600654610230906001600160a01b031681565b6040516001600160a01b0390911681526020016100ed565b600354610100900460ff16610122565b6100d661026636600461100e565b610479565b6100d66102793660046110d4565b6105dc565b600160006102926040870160208801610e87565b6001600160a01b0316815260208101919091526040016000205460ff166103005760405162461bcd60e51b815260206004820152601760248201527f61676772656761746f72206e6f7420617474657374656400000000000000000060448201526064015b60405180910390fd5b610309846105fb565b61031281610633565b50505050565b60606002805480602002602001604051908101604052809291908181526020016000905b828210156103e857838290600052602060002001805461035b90611116565b80601f016020809104026020016040519081016040528092919081815260200182805461038790611116565b80156103d45780601f106103a9576101008083540402835291602001916103d4565b820191906000526020600020905b8154815290600101906020018083116103b757829003601f168201915b50505050508152602001906001019061033c565b50505050905090565b60035460ff161561040157600080fd5b60038054600160ff1991821681179092556001600160a01b03881660009081526020838152604082208054909316841790925560028054938401815590528451610470927f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0191860190610bf6565b50505050505050565b6001600160a01b03861660009081526001602052604090205460ff168061049f57600080fd5b811561056f5760006104d5888886886040516020016104c19493929190611151565b6040516020818303038152906040526106f3565b905060006104e3828861072e565b9050886001600160a01b0316816001600160a01b03161461056c5760405162461bcd60e51b815260206004820152602c60248201527f63616c63756c61746564206164647265737320616e642061747465737465724960448201527f4420646f6e74206d61746368000000000000000000000000000000000000000060648201526084016102f7565b50505b6001600160a01b03861660009081526001602081815260408320805460ff19168317905560028054928301815590925284516105d2927f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90920191860190610bf6565b5050505050505050565b3360009081526020819052604090206105f6908383610c7a565b505050565b80356000908152600560205260409020819061061782826111ad565b5050600454606082013511156106305760608101356004555b50565b6000610642604083018361120e565b9050905060005b818110156105f6576006546001600160a01b0316639730886d61066f604086018661120e565b8481811061067f5761067f611258565b9050602002810190610691919061126e565b60016040518363ffffffff1660e01b81526004016106b0929190611327565b600060405180830381600087803b1580156106ca57600080fd5b505af11580156106de573d6000803e3d6000fd5b50505050806106ec906113f4565b9050610649565b60006106ff8251610752565b8260405160200161071192919061140f565b604051602081830303815290604052805190602001209050919050565b600080600061073d858561088c565b9150915061074a816108fc565b509392505050565b60608161079257505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156107bc57806107a6816113f4565b91506107b59050600a83611480565b9150610796565b60008167ffffffffffffffff8111156107d7576107d7610eab565b6040519080825280601f01601f191660200182016040528015610801576020820181803683370190505b5090505b841561088457610816600183611494565b9150610823600a866114ab565b61082e9060306114bf565b60f81b81838151811061084357610843611258565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061087d600a86611480565b9450610805565b949350505050565b6000808251604114156108c35760208301516040840151606085015160001a6108b787828585610ab7565b945094505050506108f5565b8251604014156108ed57602083015160408401516108e2868383610ba4565b9350935050506108f5565b506000905060025b9250929050565b6000816004811115610910576109106114d7565b14156109195750565b600181600481111561092d5761092d6114d7565b141561097b5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016102f7565b600281600481111561098f5761098f6114d7565b14156109dd5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016102f7565b60038160048111156109f1576109f16114d7565b1415610a4a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016102f7565b6004816004811115610a5e57610a5e6114d7565b14156106305760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016102f7565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610aee5750600090506003610b9b565b8460ff16601b14158015610b0657508460ff16601c14155b15610b175750600090506004610b9b565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610b6b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610b9457600060019250925050610b9b565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831681610bda60ff86901c601b6114bf565b9050610be887828885610ab7565b935093505050935093915050565b828054610c0290611116565b90600052602060002090601f016020900481019282610c245760008555610c6a565b82601f10610c3d57805160ff1916838001178555610c6a565b82800160010185558215610c6a579182015b82811115610c6a578251825591602001919060010190610c4f565b50610c76929150610cee565b5090565b828054610c8690611116565b90600052602060002090601f016020900481019282610ca85760008555610c6a565b82601f10610cc15782800160ff19823516178555610c6a565b82800160010185558215610c6a579182015b82811115610c6a578235825591602001919060010190610cd3565b5b80821115610c765760008155600101610cef565b60008083601f840112610d1557600080fd5b50813567ffffffffffffffff811115610d2d57600080fd5b6020830191508360208285010111156108f557600080fd5b60008060008084860360c0811215610d5c57600080fd5b6080811215610d6a57600080fd5b50849350608085013567ffffffffffffffff80821115610d8957600080fd5b610d9588838901610d03565b909550935060a0870135915080821115610dae57600080fd5b50850160608188031215610dc157600080fd5b939692955090935050565b60005b83811015610de7578181015183820152602001610dcf565b838111156103125750506000910152565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015610e6557878503603f1901845281518051808752610e46818989018a8501610dcc565b601f01601f191695909501860194509285019290850190600101610e1f565b5092979650505050505050565b6001600160a01b038116811461063057600080fd5b600060208284031215610e9957600080fd5b8135610ea481610e72565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112610ed257600080fd5b813567ffffffffffffffff80821115610eed57610eed610eab565b604051601f8301601f19908116603f01168101908282118183101715610f1557610f15610eab565b81604052838152866020858801011115610f2e57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060008060808789031215610f6757600080fd5b8635610f7281610e72565b9550602087013567ffffffffffffffff80821115610f8f57600080fd5b610f9b8a838b01610d03565b90975095506040890135915080821115610fb457600080fd5b610fc08a838b01610ec1565b94506060890135915080821115610fd657600080fd5b50610fe389828a01610d03565b979a9699509497509295939492505050565b60006020828403121561100757600080fd5b5035919050565b60008060008060008060c0878903121561102757600080fd5b863561103281610e72565b9550602087013561104281610e72565b9450604087013567ffffffffffffffff8082111561105f57600080fd5b61106b8a838b01610ec1565b9550606089013591508082111561108157600080fd5b61108d8a838b01610ec1565b945060808901359150808211156110a357600080fd5b506110b089828a01610ec1565b92505060a087013580151581146110c657600080fd5b809150509295509295509295565b600080602083850312156110e757600080fd5b823567ffffffffffffffff8111156110fe57600080fd5b61110a85828601610d03565b90969095509350505050565b600181811c9082168061112a57607f821691505b6020821081141561114b57634e487b7160e01b600052602260045260246000fd5b50919050565b60006bffffffffffffffffffffffff19808760601b168352808660601b166014840152508351611188816028850160208801610dcc565b83519083019061119f816028840160208801610dcc565b016028019695505050505050565b813581556001810160208301356111c381610e72565b6001600160a01b0381167fffffffffffffffffffffffff0000000000000000000000000000000000000000835416178255505060408201356002820155606082013560038201555050565b6000808335601e1984360301811261122557600080fd5b83018035915067ffffffffffffffff82111561124057600080fd5b6020019150600581901b36038213156108f557600080fd5b634e487b7160e01b600052603260045260246000fd5b6000823560be1983360301811261128457600080fd5b9190910192915050565b803563ffffffff811681146112a257600080fd5b919050565b6000808335601e198436030181126112be57600080fd5b830160208101925035905067ffffffffffffffff8111156112de57600080fd5b8036038313156108f557600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b803560ff811681146112a257600080fd5b604081526000833561133881610e72565b6001600160a01b03166040830152602084013567ffffffffffffffff811680821461136257600080fd5b6060840152506113746040850161128e565b63ffffffff16608083015261138b6060850161128e565b63ffffffff1660a08301526113a360808501856112a7565b60c0808501526113b8610100850182846112ed565b9150506113c760a08601611316565b60ff1660e084015260209092019290925292915050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415611408576114086113de565b5060010190565b7f19457468657265756d205369676e6564204d6573736167653a0a00000000000081526000835161144781601a850160208801610dcc565b83519083019061145e81601a840160208801610dcc565b01601a01949350505050565b634e487b7160e01b600052601260045260246000fd5b60008261148f5761148f61146a565b500490565b6000828210156114a6576114a66113de565b500390565b6000826114ba576114ba61146a565b500690565b600082198211156114d2576114d26113de565b500190565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220ab8ac0fa6222958367a9e3f95f61a4bf1ae1c4af86bd4b10a9c675a689423f3464736f6c63430008090033608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610e138061007e6000396000f3fe6080604052600436106100745760003560e01c80638da5cb5b1161004e5780638da5cb5b146101ae5780639730886d146101d6578063b1454caa146101f6578063f2fde38b1461022f576100ec565b80630fcfbd111461013457806333a88c7214610167578063715018a614610197576100ec565b366100ec5760405162461bcd60e51b815260206004820152602c60248201527f74686520576f726d686f6c6520636f6e747261637420646f6573206e6f74206160448201527f636365707420617373657473000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60405162461bcd60e51b815260206004820152600b60248201527f756e737570706f7274656400000000000000000000000000000000000000000060448201526064016100e3565b34801561014057600080fd5b5061015461014f366004610770565b61024f565b6040519081526020015b60405180910390f35b34801561017357600080fd5b50610187610182366004610770565b610305565b604051901515815260200161015e565b3480156101a357600080fd5b506101ac610358565b005b3480156101ba57600080fd5b506000546040516001600160a01b03909116815260200161015e565b3480156101e257600080fd5b506101ac6101f13660046107a5565b6103be565b34801561020257600080fd5b5061021661021136600461081b565b610562565b60405167ffffffffffffffff909116815260200161015e565b34801561023b57600080fd5b506101ac61024a3660046108dd565b6105bb565b600080826040516020016102639190610939565b60408051601f19818403018152918152815160209283012060008181526001909352912054909150806102fe5760405162461bcd60e51b815260206004820152602160248201527f54686973206d65737361676520776173206e65766572207375626d697474656460448201527f2e0000000000000000000000000000000000000000000000000000000000000060648201526084016100e3565b9392505050565b600080826040516020016103199190610939565b60408051601f1981840301815291815281516020928301206000818152600190935291205490915080158015906103505750428111155b949350505050565b6000546001600160a01b031633146103b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016100e3565b6103bc600061069d565b565b6000546001600160a01b031633146104185760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016100e3565b60006104248242610a39565b90506000836040516020016104399190610939565b60408051601f19818403018152918152815160209283012060008181526001909352912054909150156104d45760405162461bcd60e51b815260206004820152602160248201527f4d657373616765207375626d6974746564206d6f7265207468616e206f6e636560448201527f210000000000000000000000000000000000000000000000000000000000000060648201526084016100e3565b60008181526001602090815260408220849055600291906104f7908701876108dd565b6001600160a01b0316815260208101919091526040016000908120906105236080870160608801610a51565b63ffffffff1681526020808201929092526040016000908120805460018101825590825291902085916004020161055a8282610c33565b505050505050565b600061056d336106fa565b90507fb93c37389233beb85a3a726c3f15c2d15533ee74cb602f20f490dfffef775937338288888888886040516105aa9796959493929190610d51565b60405180910390a195945050505050565b6000546001600160a01b031633146106155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016100e3565b6001600160a01b0381166106915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016100e3565b61069a8161069d565b50565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381166000908152600360205260408120805467ffffffffffffffff16916001919061072d8385610db1565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550919050565b600060c0828403121561076a57600080fd5b50919050565b60006020828403121561078257600080fd5b813567ffffffffffffffff81111561079957600080fd5b61035084828501610758565b600080604083850312156107b857600080fd5b823567ffffffffffffffff8111156107cf57600080fd5b6107db85828601610758565b95602094909401359450505050565b63ffffffff8116811461069a57600080fd5b60ff8116811461069a57600080fd5b8035610816816107fc565b919050565b60008060008060006080868803121561083357600080fd5b853561083e816107ea565b9450602086013561084e816107ea565b9350604086013567ffffffffffffffff8082111561086b57600080fd5b818801915088601f83011261087f57600080fd5b81358181111561088e57600080fd5b8960208285010111156108a057600080fd5b60208301955080945050505060608601356108ba816107fc565b809150509295509295909350565b6001600160a01b038116811461069a57600080fd5b6000602082840312156108ef57600080fd5b81356102fe816108c8565b67ffffffffffffffff8116811461069a57600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000823561094a816108c8565b6001600160a01b0381166020840152506020830135610968816108fa565b67ffffffffffffffff808216604085015260408501359150610989826107ea565b63ffffffff8083166060860152606086013592506109a6836107ea565b80831660808601525060808501359150601e198536030182126109c857600080fd5b908401908135818111156109db57600080fd5b8036038613156109ea57600080fd5b60c060a0860152610a0260e086018260208601610910565b92505050610a1260a0850161080b565b60ff811660c0850152509392505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610a4c57610a4c610a23565b500190565b600060208284031215610a6357600080fd5b81356102fe816107ea565b60008135610a7b816107ea565b92915050565b6000808335601e19843603018112610a9857600080fd5b83018035915067ffffffffffffffff821115610ab357600080fd5b602001915036819003821315610ac857600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680610af957607f821691505b6020821081141561076a57634e487b7160e01b600052602260045260246000fd5b601f821115610b6057600081815260208120601f850160051c81016020861015610b415750805b601f850160051c820191505b8181101561055a57828155600101610b4d565b505050565b67ffffffffffffffff831115610b7d57610b7d610acf565b610b9183610b8b8354610ae5565b83610b1a565b6000601f841160018114610bc55760008515610bad5750838201355b600019600387901b1c1916600186901b178355610c1f565b600083815260209020601f19861690835b82811015610bf65786850135825560209485019460019092019101610bd6565b5086821015610c135760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60008135610a7b816107fc565b8135610c3e816108c8565b6001600160a01b038116905081548173ffffffffffffffffffffffffffffffffffffffff1982161783556020840135610c76816108fa565b7bffffffffffffffff00000000000000000000000000000000000000008160a01b1690507fffffffff0000000000000000000000000000000000000000000000000000000081848285161717855560408601359250610cd4836107ea565b921760e09190911b909116178155610d0c610cf160608401610a6e565b6001830163ffffffff821663ffffffff198254161781555050565b610d196080830183610a81565b610d27818360028601610b65565b5050610d4d610d3860a08401610c26565b6003830160ff821660ff198254161781555050565b5050565b6001600160a01b038816815267ffffffffffffffff87166020820152600063ffffffff808816604084015280871660608401525060c06080830152610d9a60c083018587610910565b905060ff831660a083015298975050505050505050565b600067ffffffffffffffff808316818516808303821115610dd457610dd4610a23565b0194935050505056fea2646970667358221220e790a069b7a49368e0f1c281855881b133f1eac9bbac989876cb3bc659282fbe64736f6c63430008090033",
}

ManagementContractMetaData contains all meta data concerning the ManagementContract contract.

Functions

This section is empty.

Types

type ManagementContract

type ManagementContract struct {
	ManagementContractCaller     // Read-only binding to the contract
	ManagementContractTransactor // Write-only binding to the contract
	ManagementContractFilterer   // Log filterer for contract events
}

ManagementContract is an auto generated Go binding around an Ethereum contract.

func DeployManagementContract

func DeployManagementContract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ManagementContract, error)

DeployManagementContract deploys a new Ethereum contract, binding an instance of ManagementContract to it.

func NewManagementContract

func NewManagementContract(address common.Address, backend bind.ContractBackend) (*ManagementContract, error)

NewManagementContract creates a new instance of ManagementContract, bound to a specific deployed contract.

type ManagementContractCaller

type ManagementContractCaller struct {
	// contains filtered or unexported fields
}

ManagementContractCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewManagementContractCaller

func NewManagementContractCaller(address common.Address, caller bind.ContractCaller) (*ManagementContractCaller, error)

NewManagementContractCaller creates a new read-only instance of ManagementContract, bound to a specific deployed contract.

func (*ManagementContractCaller) Attested

func (_ManagementContract *ManagementContractCaller) Attested(opts *bind.CallOpts, _addr common.Address) (bool, error)

Attested is a free data retrieval call binding the contract method 0x43348b2f.

Solidity: function Attested(address _addr) view returns(bool)

func (*ManagementContractCaller) GetHostAddresses

func (_ManagementContract *ManagementContractCaller) GetHostAddresses(opts *bind.CallOpts) ([]string, error)

GetHostAddresses is a free data retrieval call binding the contract method 0x324ff866.

Solidity: function GetHostAddresses() view returns(string[])

func (*ManagementContractCaller) GetRollupByHash

func (_ManagementContract *ManagementContractCaller) GetRollupByHash(opts *bind.CallOpts, rollupHash [32]byte) (bool, StructsMetaRollup, error)

GetRollupByHash is a free data retrieval call binding the contract method 0x8236a7ba.

Solidity: function GetRollupByHash(bytes32 rollupHash) view returns(bool, (bytes32,address,bytes32,uint256))

func (*ManagementContractCaller) IsWithdrawalAvailable

func (_ManagementContract *ManagementContractCaller) IsWithdrawalAvailable(opts *bind.CallOpts) (bool, error)

IsWithdrawalAvailable is a free data retrieval call binding the contract method 0xa52f433c.

Solidity: function IsWithdrawalAvailable() view returns(bool)

func (*ManagementContractCaller) LastBatchSeqNo added in v0.14.0

func (_ManagementContract *ManagementContractCaller) LastBatchSeqNo(opts *bind.CallOpts) (*big.Int, error)

LastBatchSeqNo is a free data retrieval call binding the contract method 0x440c953b.

Solidity: function lastBatchSeqNo() view returns(uint256)

func (*ManagementContractCaller) MessageBus

func (_ManagementContract *ManagementContractCaller) MessageBus(opts *bind.CallOpts) (common.Address, error)

MessageBus is a free data retrieval call binding the contract method 0xa1a227fa.

Solidity: function messageBus() view returns(address)

type ManagementContractCallerRaw

type ManagementContractCallerRaw struct {
	Contract *ManagementContractCaller // Generic read-only contract binding to access the raw methods on
}

ManagementContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ManagementContractCallerRaw) Call

func (_ManagementContract *ManagementContractCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ManagementContractCallerSession

type ManagementContractCallerSession struct {
	Contract *ManagementContractCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts             // Call options to use throughout this session
}

ManagementContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*ManagementContractCallerSession) Attested

func (_ManagementContract *ManagementContractCallerSession) Attested(_addr common.Address) (bool, error)

Attested is a free data retrieval call binding the contract method 0x43348b2f.

Solidity: function Attested(address _addr) view returns(bool)

func (*ManagementContractCallerSession) GetHostAddresses

func (_ManagementContract *ManagementContractCallerSession) GetHostAddresses() ([]string, error)

GetHostAddresses is a free data retrieval call binding the contract method 0x324ff866.

Solidity: function GetHostAddresses() view returns(string[])

func (*ManagementContractCallerSession) GetRollupByHash

func (_ManagementContract *ManagementContractCallerSession) GetRollupByHash(rollupHash [32]byte) (bool, StructsMetaRollup, error)

GetRollupByHash is a free data retrieval call binding the contract method 0x8236a7ba.

Solidity: function GetRollupByHash(bytes32 rollupHash) view returns(bool, (bytes32,address,bytes32,uint256))

func (*ManagementContractCallerSession) IsWithdrawalAvailable

func (_ManagementContract *ManagementContractCallerSession) IsWithdrawalAvailable() (bool, error)

IsWithdrawalAvailable is a free data retrieval call binding the contract method 0xa52f433c.

Solidity: function IsWithdrawalAvailable() view returns(bool)

func (*ManagementContractCallerSession) LastBatchSeqNo added in v0.14.0

func (_ManagementContract *ManagementContractCallerSession) LastBatchSeqNo() (*big.Int, error)

LastBatchSeqNo is a free data retrieval call binding the contract method 0x440c953b.

Solidity: function lastBatchSeqNo() view returns(uint256)

func (*ManagementContractCallerSession) MessageBus

func (_ManagementContract *ManagementContractCallerSession) MessageBus() (common.Address, error)

MessageBus is a free data retrieval call binding the contract method 0xa1a227fa.

Solidity: function messageBus() view returns(address)

type ManagementContractFilterer

type ManagementContractFilterer struct {
	// contains filtered or unexported fields
}

ManagementContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewManagementContractFilterer

func NewManagementContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ManagementContractFilterer, error)

NewManagementContractFilterer creates a new log filterer instance of ManagementContract, bound to a specific deployed contract.

func (*ManagementContractFilterer) FilterLogManagementContractCreated

func (_ManagementContract *ManagementContractFilterer) FilterLogManagementContractCreated(opts *bind.FilterOpts) (*ManagementContractLogManagementContractCreatedIterator, error)

FilterLogManagementContractCreated is a free log retrieval operation binding the contract event 0xbd726cf82ac9c3260b1495107182e336e0654b25c10915648c0cc15b2bb72cbf.

Solidity: event LogManagementContractCreated(address messageBusAddress)

func (*ManagementContractFilterer) ParseLogManagementContractCreated

func (_ManagementContract *ManagementContractFilterer) ParseLogManagementContractCreated(log types.Log) (*ManagementContractLogManagementContractCreated, error)

ParseLogManagementContractCreated is a log parse operation binding the contract event 0xbd726cf82ac9c3260b1495107182e336e0654b25c10915648c0cc15b2bb72cbf.

Solidity: event LogManagementContractCreated(address messageBusAddress)

func (*ManagementContractFilterer) WatchLogManagementContractCreated

func (_ManagementContract *ManagementContractFilterer) WatchLogManagementContractCreated(opts *bind.WatchOpts, sink chan<- *ManagementContractLogManagementContractCreated) (event.Subscription, error)

WatchLogManagementContractCreated is a free log subscription operation binding the contract event 0xbd726cf82ac9c3260b1495107182e336e0654b25c10915648c0cc15b2bb72cbf.

Solidity: event LogManagementContractCreated(address messageBusAddress)

type ManagementContractLogManagementContractCreated

type ManagementContractLogManagementContractCreated struct {
	MessageBusAddress common.Address
	Raw               types.Log // Blockchain specific contextual infos
}

ManagementContractLogManagementContractCreated represents a LogManagementContractCreated event raised by the ManagementContract contract.

type ManagementContractLogManagementContractCreatedIterator

type ManagementContractLogManagementContractCreatedIterator struct {
	Event *ManagementContractLogManagementContractCreated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ManagementContractLogManagementContractCreatedIterator is returned from FilterLogManagementContractCreated and is used to iterate over the raw logs and unpacked data for LogManagementContractCreated events raised by the ManagementContract contract.

func (*ManagementContractLogManagementContractCreatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ManagementContractLogManagementContractCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ManagementContractLogManagementContractCreatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ManagementContractRaw

type ManagementContractRaw struct {
	Contract *ManagementContract // Generic contract binding to access the raw methods on
}

ManagementContractRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ManagementContractRaw) Call

func (_ManagementContract *ManagementContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ManagementContractRaw) Transact

func (_ManagementContract *ManagementContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ManagementContractRaw) Transfer

func (_ManagementContract *ManagementContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ManagementContractSession

type ManagementContractSession struct {
	Contract     *ManagementContract // Generic contract binding to set the session for
	CallOpts     bind.CallOpts       // Call options to use throughout this session
	TransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session
}

ManagementContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ManagementContractSession) AddRollup

func (_ManagementContract *ManagementContractSession) AddRollup(r StructsMetaRollup, _rollupData string, crossChainData StructsHeaderCrossChainData) (*types.Transaction, error)

AddRollup is a paid mutator transaction binding the contract method 0x02bf9317.

Solidity: function AddRollup((bytes32,address,bytes32,uint256) r, string _rollupData, (uint256,bytes32,(address,uint64,uint32,uint32,bytes,uint8)[]) crossChainData) returns()

func (*ManagementContractSession) Attested

func (_ManagementContract *ManagementContractSession) Attested(_addr common.Address) (bool, error)

Attested is a free data retrieval call binding the contract method 0x43348b2f.

Solidity: function Attested(address _addr) view returns(bool)

func (*ManagementContractSession) GetHostAddresses

func (_ManagementContract *ManagementContractSession) GetHostAddresses() ([]string, error)

GetHostAddresses is a free data retrieval call binding the contract method 0x324ff866.

Solidity: function GetHostAddresses() view returns(string[])

func (*ManagementContractSession) GetRollupByHash

func (_ManagementContract *ManagementContractSession) GetRollupByHash(rollupHash [32]byte) (bool, StructsMetaRollup, error)

GetRollupByHash is a free data retrieval call binding the contract method 0x8236a7ba.

Solidity: function GetRollupByHash(bytes32 rollupHash) view returns(bool, (bytes32,address,bytes32,uint256))

func (*ManagementContractSession) InitializeNetworkSecret

func (_ManagementContract *ManagementContractSession) InitializeNetworkSecret(_aggregatorID common.Address, _initSecret []byte, _hostAddress string, _genesisAttestation string) (*types.Transaction, error)

InitializeNetworkSecret is a paid mutator transaction binding the contract method 0x59a90071.

Solidity: function InitializeNetworkSecret(address _aggregatorID, bytes _initSecret, string _hostAddress, string _genesisAttestation) returns()

func (*ManagementContractSession) IsWithdrawalAvailable

func (_ManagementContract *ManagementContractSession) IsWithdrawalAvailable() (bool, error)

IsWithdrawalAvailable is a free data retrieval call binding the contract method 0xa52f433c.

Solidity: function IsWithdrawalAvailable() view returns(bool)

func (*ManagementContractSession) LastBatchSeqNo added in v0.14.0

func (_ManagementContract *ManagementContractSession) LastBatchSeqNo() (*big.Int, error)

LastBatchSeqNo is a free data retrieval call binding the contract method 0x440c953b.

Solidity: function lastBatchSeqNo() view returns(uint256)

func (*ManagementContractSession) MessageBus

func (_ManagementContract *ManagementContractSession) MessageBus() (common.Address, error)

MessageBus is a free data retrieval call binding the contract method 0xa1a227fa.

Solidity: function messageBus() view returns(address)

func (*ManagementContractSession) RequestNetworkSecret

func (_ManagementContract *ManagementContractSession) RequestNetworkSecret(requestReport string) (*types.Transaction, error)

RequestNetworkSecret is a paid mutator transaction binding the contract method 0xe34fbfc8.

Solidity: function RequestNetworkSecret(string requestReport) returns()

func (*ManagementContractSession) RespondNetworkSecret

func (_ManagementContract *ManagementContractSession) RespondNetworkSecret(attesterID common.Address, requesterID common.Address, attesterSig []byte, responseSecret []byte, hostAddress string, verifyAttester bool) (*types.Transaction, error)

RespondNetworkSecret is a paid mutator transaction binding the contract method 0xbbd79e15.

Solidity: function RespondNetworkSecret(address attesterID, address requesterID, bytes attesterSig, bytes responseSecret, string hostAddress, bool verifyAttester) returns()

type ManagementContractTransactor

type ManagementContractTransactor struct {
	// contains filtered or unexported fields
}

ManagementContractTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewManagementContractTransactor

func NewManagementContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ManagementContractTransactor, error)

NewManagementContractTransactor creates a new write-only instance of ManagementContract, bound to a specific deployed contract.

func (*ManagementContractTransactor) AddRollup

func (_ManagementContract *ManagementContractTransactor) AddRollup(opts *bind.TransactOpts, r StructsMetaRollup, _rollupData string, crossChainData StructsHeaderCrossChainData) (*types.Transaction, error)

AddRollup is a paid mutator transaction binding the contract method 0x02bf9317.

Solidity: function AddRollup((bytes32,address,bytes32,uint256) r, string _rollupData, (uint256,bytes32,(address,uint64,uint32,uint32,bytes,uint8)[]) crossChainData) returns()

func (*ManagementContractTransactor) InitializeNetworkSecret

func (_ManagementContract *ManagementContractTransactor) InitializeNetworkSecret(opts *bind.TransactOpts, _aggregatorID common.Address, _initSecret []byte, _hostAddress string, _genesisAttestation string) (*types.Transaction, error)

InitializeNetworkSecret is a paid mutator transaction binding the contract method 0x59a90071.

Solidity: function InitializeNetworkSecret(address _aggregatorID, bytes _initSecret, string _hostAddress, string _genesisAttestation) returns()

func (*ManagementContractTransactor) RequestNetworkSecret

func (_ManagementContract *ManagementContractTransactor) RequestNetworkSecret(opts *bind.TransactOpts, requestReport string) (*types.Transaction, error)

RequestNetworkSecret is a paid mutator transaction binding the contract method 0xe34fbfc8.

Solidity: function RequestNetworkSecret(string requestReport) returns()

func (*ManagementContractTransactor) RespondNetworkSecret

func (_ManagementContract *ManagementContractTransactor) RespondNetworkSecret(opts *bind.TransactOpts, attesterID common.Address, requesterID common.Address, attesterSig []byte, responseSecret []byte, hostAddress string, verifyAttester bool) (*types.Transaction, error)

RespondNetworkSecret is a paid mutator transaction binding the contract method 0xbbd79e15.

Solidity: function RespondNetworkSecret(address attesterID, address requesterID, bytes attesterSig, bytes responseSecret, string hostAddress, bool verifyAttester) returns()

type ManagementContractTransactorRaw

type ManagementContractTransactorRaw struct {
	Contract *ManagementContractTransactor // Generic write-only contract binding to access the raw methods on
}

ManagementContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ManagementContractTransactorRaw) Transact

func (_ManagementContract *ManagementContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ManagementContractTransactorRaw) Transfer

func (_ManagementContract *ManagementContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ManagementContractTransactorSession

type ManagementContractTransactorSession struct {
	Contract     *ManagementContractTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts             // Transaction auth options to use throughout this session
}

ManagementContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ManagementContractTransactorSession) AddRollup

func (_ManagementContract *ManagementContractTransactorSession) AddRollup(r StructsMetaRollup, _rollupData string, crossChainData StructsHeaderCrossChainData) (*types.Transaction, error)

AddRollup is a paid mutator transaction binding the contract method 0x02bf9317.

Solidity: function AddRollup((bytes32,address,bytes32,uint256) r, string _rollupData, (uint256,bytes32,(address,uint64,uint32,uint32,bytes,uint8)[]) crossChainData) returns()

func (*ManagementContractTransactorSession) InitializeNetworkSecret

func (_ManagementContract *ManagementContractTransactorSession) InitializeNetworkSecret(_aggregatorID common.Address, _initSecret []byte, _hostAddress string, _genesisAttestation string) (*types.Transaction, error)

InitializeNetworkSecret is a paid mutator transaction binding the contract method 0x59a90071.

Solidity: function InitializeNetworkSecret(address _aggregatorID, bytes _initSecret, string _hostAddress, string _genesisAttestation) returns()

func (*ManagementContractTransactorSession) RequestNetworkSecret

func (_ManagementContract *ManagementContractTransactorSession) RequestNetworkSecret(requestReport string) (*types.Transaction, error)

RequestNetworkSecret is a paid mutator transaction binding the contract method 0xe34fbfc8.

Solidity: function RequestNetworkSecret(string requestReport) returns()

func (*ManagementContractTransactorSession) RespondNetworkSecret

func (_ManagementContract *ManagementContractTransactorSession) RespondNetworkSecret(attesterID common.Address, requesterID common.Address, attesterSig []byte, responseSecret []byte, hostAddress string, verifyAttester bool) (*types.Transaction, error)

RespondNetworkSecret is a paid mutator transaction binding the contract method 0xbbd79e15.

Solidity: function RespondNetworkSecret(address attesterID, address requesterID, bytes attesterSig, bytes responseSecret, string hostAddress, bool verifyAttester) returns()

type StructsCrossChainMessage

type StructsCrossChainMessage struct {
	Sender           common.Address
	Sequence         uint64
	Nonce            uint32
	Topic            uint32
	Payload          []byte
	ConsistencyLevel uint8
}

StructsCrossChainMessage is an auto generated low-level Go binding around an user-defined struct.

type StructsHeaderCrossChainData

type StructsHeaderCrossChainData struct {
	BlockNumber *big.Int
	BlockHash   [32]byte
	Messages    []StructsCrossChainMessage
}

StructsHeaderCrossChainData is an auto generated low-level Go binding around an user-defined struct.

type StructsMetaRollup

type StructsMetaRollup struct {
	Hash               [32]byte
	AggregatorID       common.Address
	L1Block            [32]byte
	LastSequenceNumber *big.Int
}

StructsMetaRollup is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL