Commit cb869c43 authored by lbeder's avatar lbeder Committed by Mark Tyneway

Add EAS and SchemaRegistry bindings

parent 9c3d03d6
This source diff could not be displayed because it is too large. You can view the blob instead.
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package bindings
import (
"encoding/json"
"github.com/ethereum-optimism/optimism/op-bindings/solc"
)
const EASStorageLayoutJSON = "{\"storage\":[{\"astId\":1000,\"contract\":\"contracts/EAS/EAS.sol:EAS\",\"label\":\"_initialized\",\"offset\":0,\"slot\":\"0\",\"type\":\"t_uint8\"},{\"astId\":1001,\"contract\":\"contracts/EAS/EAS.sol:EAS\",\"label\":\"_initializing\",\"offset\":1,\"slot\":\"0\",\"type\":\"t_bool\"},{\"astId\":1002,\"contract\":\"contracts/EAS/EAS.sol:EAS\",\"label\":\"_nonces\",\"offset\":0,\"slot\":\"1\",\"type\":\"t_mapping(t_address,t_uint256)\"},{\"astId\":1003,\"contract\":\"contracts/EAS/EAS.sol:EAS\",\"label\":\"__gap\",\"offset\":0,\"slot\":\"2\",\"type\":\"t_array(t_uint256)49_storage\"},{\"astId\":1004,\"contract\":\"contracts/EAS/EAS.sol:EAS\",\"label\":\"_db\",\"offset\":0,\"slot\":\"51\",\"type\":\"t_mapping(t_bytes32,t_struct(Attestation)1008_storage)\"},{\"astId\":1005,\"contract\":\"contracts/EAS/EAS.sol:EAS\",\"label\":\"_timestamps\",\"offset\":0,\"slot\":\"52\",\"type\":\"t_mapping(t_bytes32,t_uint64)\"},{\"astId\":1006,\"contract\":\"contracts/EAS/EAS.sol:EAS\",\"label\":\"_revocationsOffchain\",\"offset\":0,\"slot\":\"53\",\"type\":\"t_mapping(t_address,t_mapping(t_bytes32,t_uint64))\"},{\"astId\":1007,\"contract\":\"contracts/EAS/EAS.sol:EAS\",\"label\":\"__gap\",\"offset\":0,\"slot\":\"54\",\"type\":\"t_array(t_uint256)47_storage\"}],\"types\":{\"t_address\":{\"encoding\":\"inplace\",\"label\":\"address\",\"numberOfBytes\":\"20\"},\"t_array(t_uint256)47_storage\":{\"encoding\":\"inplace\",\"label\":\"uint256[47]\",\"numberOfBytes\":\"1504\",\"base\":\"t_uint256\"},\"t_array(t_uint256)49_storage\":{\"encoding\":\"inplace\",\"label\":\"uint256[49]\",\"numberOfBytes\":\"1568\",\"base\":\"t_uint256\"},\"t_bool\":{\"encoding\":\"inplace\",\"label\":\"bool\",\"numberOfBytes\":\"1\"},\"t_bytes32\":{\"encoding\":\"inplace\",\"label\":\"bytes32\",\"numberOfBytes\":\"32\"},\"t_bytes_storage\":{\"encoding\":\"bytes\",\"label\":\"bytes\",\"numberOfBytes\":\"32\"},\"t_mapping(t_address,t_mapping(t_bytes32,t_uint64))\":{\"encoding\":\"mapping\",\"label\":\"mapping(address =\u003e mapping(bytes32 =\u003e uint64))\",\"numberOfBytes\":\"32\",\"key\":\"t_address\",\"value\":\"t_mapping(t_bytes32,t_uint64)\"},\"t_mapping(t_address,t_uint256)\":{\"encoding\":\"mapping\",\"label\":\"mapping(address =\u003e uint256)\",\"numberOfBytes\":\"32\",\"key\":\"t_address\",\"value\":\"t_uint256\"},\"t_mapping(t_bytes32,t_struct(Attestation)1008_storage)\":{\"encoding\":\"mapping\",\"label\":\"mapping(bytes32 =\u003e struct Attestation)\",\"numberOfBytes\":\"32\",\"key\":\"t_bytes32\",\"value\":\"t_struct(Attestation)1008_storage\"},\"t_mapping(t_bytes32,t_uint64)\":{\"encoding\":\"mapping\",\"label\":\"mapping(bytes32 =\u003e uint64)\",\"numberOfBytes\":\"32\",\"key\":\"t_bytes32\",\"value\":\"t_uint64\"},\"t_struct(Attestation)1008_storage\":{\"encoding\":\"inplace\",\"label\":\"struct Attestation\",\"numberOfBytes\":\"224\"},\"t_uint256\":{\"encoding\":\"inplace\",\"label\":\"uint256\",\"numberOfBytes\":\"32\"},\"t_uint64\":{\"encoding\":\"inplace\",\"label\":\"uint64\",\"numberOfBytes\":\"8\"},\"t_uint8\":{\"encoding\":\"inplace\",\"label\":\"uint8\",\"numberOfBytes\":\"1\"}}}"
var EASStorageLayout = new(solc.StorageLayout)
var EASDeployedBin = "0x60806040526004361061018b5760003560e01c8063b469318d116100d6578063e45d03f91161007f578063ed24911d11610059578063ed24911d146104be578063f10b5cc8146104d3578063f17325e71461052457600080fd5b8063e45d03f914610478578063e57a6b1b1461048b578063e71ff3651461049e57600080fd5b8063d45c4435116100b0578063d45c4435146103ef578063e13458fc14610426578063e30bb5631461043957600080fd5b8063b469318d14610342578063b83010d31461039c578063cf190f34146103cf57600080fd5b80634cb7e9e5116101385780638129fc1c116101125780638129fc1c146102ed578063831e05a114610302578063a3112a641461031557600080fd5b80634cb7e9e5146102a55780634d003070146102b857806354fd4d50146102d857600080fd5b80632d0335ab116101695780632d0335ab1461022d57806344adc90e14610270578063469262671461029057600080fd5b806312b11a171461019057806313893f61146101d257806317d7de7c1461020b575b600080fd5b34801561019c57600080fd5b507fdbfdf8dc2b135c26253e00d5b6cbe6f20457e003fd526d97cea183883570de615b6040519081526020015b60405180910390f35b3480156101de57600080fd5b506101f26101ed36600461373b565b610537565b60405167ffffffffffffffff90911681526020016101c9565b34801561021757600080fd5b5061022061057c565b6040516101c991906137eb565b34801561023957600080fd5b506101bf610248366004613837565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b61028361027e36600461373b565b6105ac565b6040516101c99190613854565b6102a361029e366004613898565b6106e3565b005b6102a36102b336600461373b565b610767565b3480156102c457600080fd5b506101f26102d33660046138b0565b61084f565b3480156102e457600080fd5b5061022061085c565b3480156102f957600080fd5b506102a36108ff565b61028361031036600461373b565b610a96565b34801561032157600080fd5b506103356103303660046138b0565b610ce7565b6040516101c991906139b0565b34801561034e57600080fd5b506101f261035d3660046139c3565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152603560209081526040808320938352929052205467ffffffffffffffff1690565b3480156103a857600080fd5b507fa98d02348410c9c76735e0d0bb1396f4015ac2bb9615f9c2611d19d7a8a996506101bf565b3480156103db57600080fd5b506101f26103ea3660046138b0565b610eaa565b3480156103fb57600080fd5b506101f261040a3660046138b0565b60009081526034602052604090205467ffffffffffffffff1690565b6101bf6104343660046139ef565b610eb8565b34801561044557600080fd5b506104686104543660046138b0565b600090815260336020526040902054151590565b60405190151581526020016101c9565b6102a361048636600461373b565b610fbb565b6102a3610499366004613a2a565b611136565b3480156104aa57600080fd5b506101f26104b936600461373b565b6111db565b3480156104ca57600080fd5b506101bf611213565b3480156104df57600080fd5b5060405173ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001681526020016101c9565b6101bf610532366004613a3c565b61121d565b60004282825b81811015610570576105683387878481811061055b5761055b613a77565b90506020020135856112db565b60010161053d565b50909150505b92915050565b60606105a77f00000000000000000000000000000000000000000000000000000000000000006113da565b905090565b606060008267ffffffffffffffff8111156105c9576105c9613aa6565b6040519080825280602002602001820160405280156105fc57816020015b60608152602001906001900390816105e75790505b509050600034815b858110156106ce577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff860181143688888481811061064457610644613a77565b90506020028101906106569190613ad5565b9050600061067d823561066c6020850185613b13565b61067591613d8c565b338887611568565b805190915061068c9086613e2f565b945080602001518785815181106106a5576106a5613a77565b6020026020010181905250806020015151860195505050506106c78160010190565b9050610604565b506106d98383611c9c565b9695505050505050565b604080516001808252818301909252600091816020015b60408051808201909152600080825260208201528152602001906001900390816106fa57905050905061073536839003830160208401613e91565b8160008151811061074857610748613a77565b602090810291909101015261076282358233346001611d69565b505050565b3460005b82811015610849577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83018114368585848181106107ab576107ab613a77565b90506020028101906107bd9190613ad5565b905061082a81356107d16020840184613ead565b808060200260200160405190810160405280939291908181526020016000905b8282101561081d5761080e60408302860136819003810190613e91565b815260200190600101906107f1565b5050505050338786611d69565b6108349085613e2f565b935050506108428160010190565b905061076b565b50505050565b60004261057683826123c5565b60606108877f0000000000000000000000000000000000000000000000000000000000000000612487565b6108b07f0000000000000000000000000000000000000000000000000000000000000000612487565b6108d97f0000000000000000000000000000000000000000000000000000000000000000612487565b6040516020016108eb93929190613f15565b604051602081830303815290604052905090565b600054610100900460ff161580801561091f5750600054600160ff909116105b806109395750303b158015610939575060005460ff166001145b6109ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558015610a2857600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b610a306125c4565b8015610a9357600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b606060008267ffffffffffffffff811115610ab357610ab3613aa6565b604051908082528060200260200182016040528015610ae657816020015b6060815260200190600190039081610ad15790505b509050600034815b858110156106ce577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8601811436888884818110610b2e57610b2e613a77565b9050602002810190610b409190613f8b565b9050366000610b526020840184613b13565b9092509050801580610b725750610b6c6040840184613fbf565b82141590505b15610ba9576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610c6b57610c63604051806080016040528086600001358152602001858585818110610bde57610bde613a77565b9050602002810190610bf09190614026565b610bf99061405a565b8152602001610c0b6040880188613fbf565b85818110610c1b57610c1b613a77565b905060600201803603810190610c3191906140d1565b8152602001610c466080880160608901613837565b73ffffffffffffffffffffffffffffffffffffffff169052612665565b600101610bac565b506000610c948435610c7d8486613d8c565b610c8d6080880160608901613837565b8a89611568565b8051909150610ca39088613e2f565b96508060200151898781518110610cbc57610cbc613a77565b6020026020010181905250806020015151880197505050505050610ce08160010190565b9050610aee565b604080516101408101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820183905261010082019290925261012081019190915260008281526033602090815260409182902082516101408101845281548152600182015492810192909252600281015467ffffffffffffffff808216948401949094526801000000000000000081048416606084015270010000000000000000000000000000000090049092166080820152600382015460a0820152600482015473ffffffffffffffffffffffffffffffffffffffff90811660c0830152600583015490811660e083015274010000000000000000000000000000000000000000900460ff16151561010082015260068201805491929161012084019190610e21906140ed565b80601f0160208091040260200160405190810160405280929190818152602001828054610e4d906140ed565b8015610e9a5780601f10610e6f57610100808354040283529160200191610e9a565b820191906000526020600020905b815481529060010190602001808311610e7d57829003601f168201915b5050505050815250509050919050565b6000426105763384836112db565b6000610ecb610ec68361413a565b612665565b604080516001808252818301909252600091816020015b6040805160c081018252600080825260208083018290529282018190526060808301829052608083015260a082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909201910181610ee2579050509050610f506020840184614026565b610f599061405a565b81600081518110610f6c57610f6c613a77565b6020908102919091010152610f95833582610f8d60c0870160a08801613837565b346001611568565b60200151600081518110610fab57610fab613a77565b6020026020010151915050919050565b3460005b82811015610849577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83018114600085858481811061100057611000613a77565b90506020028101906110129190613f8b565b61101b9061421f565b602081015180519192509015806110385750816040015151815114155b1561106f576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b8151811015611100576110f86040518060800160405280856000015181526020018484815181106110a5576110a5613a77565b60200260200101518152602001856040015184815181106110c8576110c8613a77565b60200260200101518152602001856060015173ffffffffffffffffffffffffffffffffffffffff168152506127f4565b600101611072565b5061111682600001518284606001518887611d69565b6111209086613e2f565b945050505061112f8160010190565b9050610fbf565b61114d611148368390038301836142fe565b6127f4565b604080516001808252818301909252600091816020015b604080518082019091526000808252602082015281526020019060019003908161116457905050905061119f36839003830160208401613e91565b816000815181106111b2576111b2613a77565b60209081029190910101526107628235826111d360e0860160c08701613837565b346001611d69565b60004282825b818110156105705761120b8686838181106111fe576111fe613a77565b90506020020135846123c5565b6001016111e1565b60006105a7612882565b604080516001808252818301909252600091829190816020015b6040805160c081018252600080825260208083018290529282018190526060808301829052608083015260a082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019101816112375790505090506112a56020840184614026565b6112ae9061405a565b816000815181106112c1576112c1613a77565b6020908102919091010152610f9583358233346001611568565b73ffffffffffffffffffffffffffffffffffffffff83166000908152603560209081526040808320858452918290529091205467ffffffffffffffff161561134f576040517fec9d6eeb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008381526020829052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff861690811790915590519091859173ffffffffffffffffffffffffffffffffffffffff8816917f92a1f7a41a7c585a8b09e25b195e225b1d43248daca46b0faf9e0792777a222991a450505050565b604080516020808252818301909252606091600091906020820181803683370190505090506000805b60208110156114a557600085826020811061142057611420613a77565b1a60f81b90507fff00000000000000000000000000000000000000000000000000000000000000811660000361145657506114a5565b8084848151811061146957611469613a77565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505060019182019101611403565b5060008167ffffffffffffffff8111156114c1576114c1613aa6565b6040519080825280601f01601f1916602001820160405280156114eb576020820181803683370190505b50905060005b8281101561155f5783818151811061150b5761150b613a77565b602001015160f81c60f81b82828151811061152857611528613a77565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506001016114f1565b50949350505050565b60408051808201909152600081526060602082015284516040805180820190915260008152606060208201528167ffffffffffffffff8111156115ad576115ad613aa6565b6040519080825280602002602001820160405280156115d6578160200160208202803683370190505b5060208201526040517fa2ea7c6e000000000000000000000000000000000000000000000000000000008152600481018990526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a2ea7c6e90602401600060405180830381865afa15801561166a573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526116b0919081019061435a565b80519091506116eb576040517fbf37b20e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008367ffffffffffffffff81111561170657611706613aa6565b6040519080825280602002602001820160405280156117a557816020015b60408051610140810182526000808252602080830182905292820181905260608083018290526080830182905260a0830182905260c0830182905260e0830182905261010083019190915261012082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019101816117245790505b50905060008467ffffffffffffffff8111156117c3576117c3613aa6565b6040519080825280602002602001820160405280156117ec578160200160208202803683370190505b50905060005b85811015611c7b5760008b828151811061180e5761180e613a77565b60200260200101519050600067ffffffffffffffff16816020015167ffffffffffffffff161415801561185957504267ffffffffffffffff16816020015167ffffffffffffffff1611155b15611890576040517f08e8b93700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84604001511580156118a3575080604001515b156118da576040517f157bd4c300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006040518061014001604052806000801b81526020018f81526020016118fe4290565b67ffffffffffffffff168152602001836020015167ffffffffffffffff168152602001600067ffffffffffffffff16815260200183606001518152602001836000015173ffffffffffffffffffffffffffffffffffffffff1681526020018d73ffffffffffffffffffffffffffffffffffffffff16815260200183604001511515815260200183608001518152509050600080600090505b6119a083826129b6565b600081815260336020526040902054909250156119bf57600101611996565b81835260008281526033602090815260409182902085518155908501516001820155908401516002820180546060870151608088015167ffffffffffffffff908116700100000000000000000000000000000000027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff92821668010000000000000000027fffffffffffffffffffffffffffffffff000000000000000000000000000000009094169190951617919091171691909117905560a0840151600382015560c084015160048201805473ffffffffffffffffffffffffffffffffffffffff9283167fffffffffffffffffffffffff000000000000000000000000000000000000000090911617905560e0850151600583018054610100880151151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00000000000000000000000000000000000000000090911692909316919091179190911790556101208401518491906006820190611b3f9082614480565b505050606084015115611b96576060840151600090815260336020526040902054611b96576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82878681518110611ba957611ba9613a77565b60200260200101819052508360a00151868681518110611bcb57611bcb613a77565b6020026020010181815250508189602001518681518110611bee57611bee613a77565b6020026020010181815250508f8e73ffffffffffffffffffffffffffffffffffffffff16856000015173ffffffffffffffffffffffffffffffffffffffff167f8bf46bf4cfd674fa735a3d63ec1c9ad4153f033c290341f3a588b75685141b3585604051611c5e91815260200190565b60405180910390a450505050611c748160010190565b90506117f2565b50611c8b83838360008c8c612a15565b845250919998505050505050505050565b606060008267ffffffffffffffff811115611cb957611cb9613aa6565b604051908082528060200260200182016040528015611ce2578160200160208202803683370190505b5090506000805b8551811015610570576000868281518110611d0657611d06613a77565b6020026020010151905060005b8151811015611d5f57818181518110611d2e57611d2e613a77565b6020026020010151858581518110611d4857611d48613a77565b602090810291909101015260019384019301611d13565b5050600101611ce9565b6040517fa2ea7c6e00000000000000000000000000000000000000000000000000000000815260048101869052600090819073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063a2ea7c6e90602401600060405180830381865afa158015611df9573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052611e3f919081019061435a565b8051909150611e7a576040517fbf37b20e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b855160008167ffffffffffffffff811115611e9757611e97613aa6565b604051908082528060200260200182016040528015611f3657816020015b60408051610140810182526000808252602080830182905292820181905260608083018290526080830182905260a0830182905260c0830182905260e0830182905261010083019190915261012082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909201910181611eb55790505b50905060008267ffffffffffffffff811115611f5457611f54613aa6565b604051908082528060200260200182016040528015611f7d578160200160208202803683370190505b50905060005b838110156123a75760008a8281518110611f9f57611f9f613a77565b6020908102919091018101518051600090815260339092526040909120805491925090611ff8576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8c816001015414612035576040517fbf37b20e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600581015473ffffffffffffffffffffffffffffffffffffffff8c811691161461208b576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600581015474010000000000000000000000000000000000000000900460ff166120e1576040517f157bd4c300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002810154700100000000000000000000000000000000900467ffffffffffffffff161561213b576040517f905e710700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b426002820180547fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff811670010000000000000000000000000000000067ffffffffffffffff948516810291821793849055604080516101408101825287548152600188015460208201529386169286169290921791830191909152680100000000000000008304841660608301529091049091166080820152600382015460a0820152600482015473ffffffffffffffffffffffffffffffffffffffff90811660c0830152600583015490811660e083015274010000000000000000000000000000000000000000900460ff1615156101008201526006820180548391610120840191612247906140ed565b80601f0160208091040260200160405190810160405280929190818152602001828054612273906140ed565b80156122c05780601f10612295576101008083540402835291602001916122c0565b820191906000526020600020905b8154815290600101906020018083116122a357829003601f168201915b5050505050815250508584815181106122db576122db613a77565b602002602001018190525081602001518484815181106122fd576122fd613a77565b60200260200101818152505080600101548b73ffffffffffffffffffffffffffffffffffffffff168260040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff930a6e2523c9cc298691873087a740550b8fc85a0680830414c148ed927f615856000015160405161239591815260200190565b60405180910390a45050600101611f83565b506123b784838360018b8b612a15565b9a9950505050505050505050565b60008281526034602052604090205467ffffffffffffffff1615612415576040517f2e26794600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526034602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff85169081179091559051909184917f5aafceeb1c7ad58e4a84898bdee37c02c0fc46e7d24e6b60e8209449f183459f9190a35050565b6060816000036124ca57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156124f457806124de8161459a565b91506124ed9050600a83614601565b91506124ce565b60008167ffffffffffffffff81111561250f5761250f613aa6565b6040519080825280601f01601f191660200182016040528015612539576020820181803683370190505b5090505b84156125bc5761254e600183613e2f565b915061255b600a86614615565b612566906030614629565b60f81b81838151811061257b5761257b613a77565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506125b5600a86614601565b945061253d565b949350505050565b600054610100900460ff1661265b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016109c1565b612663612def565b565b60208082015160408084015160608086015173ffffffffffffffffffffffffffffffffffffffff1660009081526001808752848220805491820190558751865187890151878901519589015160808a01518051908c01209851999a97999498959761276b97612750977fdbfdf8dc2b135c26253e00d5b6cbe6f20457e003fd526d97cea183883570de619791939290918c9101978852602088019690965273ffffffffffffffffffffffffffffffffffffffff94909416604087015267ffffffffffffffff9290921660608601521515608085015260a084015260c083015260e08201526101000190565b60405160208183030381529060405280519060200120612e86565b9050846060015173ffffffffffffffffffffffffffffffffffffffff166127a082856000015186602001518760400151612e99565b73ffffffffffffffffffffffffffffffffffffffff16146127ed576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b60208181015160408084015160608086015173ffffffffffffffffffffffffffffffffffffffff1660009081526001808752848220805491820190558751865186517fa98d02348410c9c76735e0d0bb1396f4015ac2bb9615f9c2611d19d7a8a996509981019990995295880152918601939093526080850181905292939092919061276b9060a001612750565b60003073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161480156128e857507f000000000000000000000000000000000000000000000000000000000000000046145b1561291257507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b60208083015160c084015160e0850151604080870151606088015161010089015160a08a01516101208b015194516000996129f799989796918c910161463c565b60405160208183030381529060405280519060200120905092915050565b84516000906001819003612a6d57612a658888600081518110612a3a57612a3a613a77565b602002602001015188600081518110612a5557612a55613a77565b6020026020010151888888612ec1565b9150506106d9565b602088015173ffffffffffffffffffffffffffffffffffffffff8116612aff5760005b82811015612af357878181518110612aaa57612aaa613a77565b6020026020010151600014612aeb576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600101612a90565b506000925050506106d9565b6000805b83811015612c29576000898281518110612b1f57612b1f613a77565b6020026020010151905080600014158015612ba657508373ffffffffffffffffffffffffffffffffffffffff1663ce46e0466040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ba4919061471a565b155b15612bdd576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b87811115612c17576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b96879003969190910190600101612b03565b508615612d04576040517f88e5b2d900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8316906388e5b2d9908390612c86908d908d90600401614737565b60206040518083038185885af1158015612ca4573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612cc9919061471a565b612cff576040517fbf2f3a8b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612dd3565b6040517f91db0b7e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8316906391db0b7e908390612d5a908d908d90600401614737565b60206040518083038185885af1158015612d78573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612d9d919061471a565b612dd3576040517fe8bee83900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8415612de257612de2866131d7565b9998505050505050505050565b600054610100900460ff16612663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016109c1565b6000610576612e93612882565b836131e7565b6000806000612eaa87878787613229565b91509150612eb781613341565b5095945050505050565b602086015160009073ffffffffffffffffffffffffffffffffffffffff8116612f26578515612f1c576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60009150506106d9565b8515801590612fa157508073ffffffffffffffffffffffffffffffffffffffff1663ce46e0466040518163ffffffff1660e01b8152600401602060405180830381865afa158015612f7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f9f919061471a565b155b15612fd8576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83861115613012576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b858403935084156130ef576040517fe49617e100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063e49617e1908890613071908b906004016139b0565b60206040518083038185885af115801561308f573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906130b4919061471a565b6130ea576040517fccf3bb2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131bc565b6040517fe60c350500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063e60c3505908890613143908b906004016139b0565b60206040518083038185885af1158015613161573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190613186919061471a565b6131bc576040517fbd8ba84d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82156131cb576131cb846131d7565b50939695505050505050565b8015610a9357610a933382613595565b6040517f1901000000000000000000000000000000000000000000000000000000000000602082015260228101839052604281018290526000906062016129f7565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156132605750600090506003613338565b8460ff16601b1415801561327857508460ff16601c14155b156132895750600090506004613338565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156132dd573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661333157600060019250925050613338565b9150600090505b94509492505050565b6000816004811115613355576133556147f0565b0361335d5750565b6001816004811115613371576133716147f0565b036133d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016109c1565b60028160048111156133ec576133ec6147f0565b03613453576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016109c1565b6003816004811115613467576134676147f0565b036134f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016109c1565b6004816004811115613508576135086147f0565b03610a93576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016109c1565b804710156135ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109c1565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114613659576040519150601f19603f3d011682016040523d82523d6000602084013e61365e565b606091505b5050905080610762576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109c1565b60008083601f84011261370157600080fd5b50813567ffffffffffffffff81111561371957600080fd5b6020830191508360208260051b850101111561373457600080fd5b9250929050565b6000806020838503121561374e57600080fd5b823567ffffffffffffffff81111561376557600080fd5b613771858286016136ef565b90969095509350505050565b60005b83811015613798578181015183820152602001613780565b50506000910152565b600081518084526137b981602086016020860161377d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006137fe60208301846137a1565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff81168114610a9357600080fd5b803561383281613805565b919050565b60006020828403121561384957600080fd5b81356137fe81613805565b6020808252825182820181905260009190848201906040850190845b8181101561388c57835183529284019291840191600101613870565b50909695505050505050565b6000606082840312156138aa57600080fd5b50919050565b6000602082840312156138c257600080fd5b5035919050565b6000610140825184526020830151602085015260408301516138f7604086018267ffffffffffffffff169052565b506060830151613913606086018267ffffffffffffffff169052565b50608083015161392f608086018267ffffffffffffffff169052565b5060a083015160a085015260c083015161396160c086018273ffffffffffffffffffffffffffffffffffffffff169052565b5060e083015161398960e086018273ffffffffffffffffffffffffffffffffffffffff169052565b5061010083810151151590850152610120808401518186018390526106d9838701826137a1565b6020815260006137fe60208301846138c9565b600080604083850312156139d657600080fd5b82356139e181613805565b946020939093013593505050565b600060208284031215613a0157600080fd5b813567ffffffffffffffff811115613a1857600080fd5b820160c081850312156137fe57600080fd5b600060e082840312156138aa57600080fd5b600060208284031215613a4e57600080fd5b813567ffffffffffffffff811115613a6557600080fd5b8201604081850312156137fe57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc1833603018112613b0957600080fd5b9190910192915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112613b4857600080fd5b83018035915067ffffffffffffffff821115613b6357600080fd5b6020019150600581901b360382131561373457600080fd5b60405160c0810167ffffffffffffffff81118282101715613b9e57613b9e613aa6565b60405290565b6040516080810167ffffffffffffffff81118282101715613b9e57613b9e613aa6565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613c0e57613c0e613aa6565b604052919050565b600067ffffffffffffffff821115613c3057613c30613aa6565b5060051b60200190565b8015158114610a9357600080fd5b803561383281613c3a565b600067ffffffffffffffff821115613c6d57613c6d613aa6565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600082601f830112613caa57600080fd5b8135613cbd613cb882613c53565b613bc7565b818152846020838601011115613cd257600080fd5b816020850160208301376000918101602001919091529392505050565b600060c08284031215613d0157600080fd5b613d09613b7b565b90508135613d1681613805565b8152602082013567ffffffffffffffff8082168214613d3457600080fd5b816020840152613d4660408501613c48565b6040840152606084013560608401526080840135915080821115613d6957600080fd5b50613d7684828501613c99565b60808301525060a082013560a082015292915050565b6000613d9a613cb884613c16565b80848252602080830192508560051b850136811115613db857600080fd5b855b81811015613df457803567ffffffffffffffff811115613dda5760008081fd5b613de636828a01613cef565b865250938201938201613dba565b50919695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561057657610576613e00565b600060408284031215613e5457600080fd5b6040516040810181811067ffffffffffffffff82111715613e7757613e77613aa6565b604052823581526020928301359281019290925250919050565b600060408284031215613ea357600080fd5b6137fe8383613e42565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112613ee257600080fd5b83018035915067ffffffffffffffff821115613efd57600080fd5b6020019150600681901b360382131561373457600080fd5b60008451613f2781846020890161377d565b80830190507f2e000000000000000000000000000000000000000000000000000000000000008082528551613f63816001850160208a0161377d565b60019201918201528351613f7e81600284016020880161377d565b0160020195945050505050565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81833603018112613b0957600080fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112613ff457600080fd5b83018035915067ffffffffffffffff82111561400f57600080fd5b602001915060608102360382131561373457600080fd5b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff41833603018112613b0957600080fd5b60006105763683613cef565b60006060828403121561407857600080fd5b6040516060810181811067ffffffffffffffff8211171561409b5761409b613aa6565b604052905080823560ff811681146140b257600080fd5b8082525060208301356020820152604083013560408201525092915050565b6000606082840312156140e357600080fd5b6137fe8383614066565b600181811c9082168061410157607f821691505b6020821081036138aa577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060c0823603121561414c57600080fd5b614154613ba4565b82358152602083013567ffffffffffffffff81111561417257600080fd5b61417e36828601613cef565b6020830152506141913660408501614066565b604082015260a08301356141a481613805565b606082015292915050565b600082601f8301126141c057600080fd5b813560206141d0613cb883613c16565b828152606092830285018201928282019190878511156141ef57600080fd5b8387015b85811015614212576142058982614066565b84529284019281016141f3565b5090979650505050505050565b60006080823603121561423157600080fd5b614239613ba4565b8235815260208084013567ffffffffffffffff8082111561425957600080fd5b9085019036601f83011261426c57600080fd5b813561427a613cb882613c16565b81815260069190911b8301840190848101903683111561429957600080fd5b938501935b828510156142c2576142b03686613e42565b8252858201915060408501945061429e565b808688015250505060408601359250808311156142de57600080fd5b50506142ec368286016141af565b6040830152506141a460608401613827565b600060e0828403121561431057600080fd5b614318613ba4565b823581526143298460208501613e42565b602082015261433b8460608501614066565b604082015260c083013561434e81613805565b60608201529392505050565b6000602080838503121561436d57600080fd5b825167ffffffffffffffff8082111561438557600080fd5b908401906080828703121561439957600080fd5b6143a1613ba4565b82518152838301516143b281613805565b8185015260408301516143c481613c3a565b60408201526060830151828111156143db57600080fd5b80840193505086601f8401126143f057600080fd5b82519150614400613cb883613c53565b828152878584860101111561441457600080fd5b6144238386830187870161377d565b60608201529695505050505050565b601f82111561076257600081815260208120601f850160051c810160208610156144595750805b601f850160051c820191505b8181101561447857828155600101614465565b505050505050565b815167ffffffffffffffff81111561449a5761449a613aa6565b6144ae816144a884546140ed565b84614432565b602080601f83116001811461450157600084156144cb5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555614478565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561454e5788860151825594840194600190910190840161452f565b508582101561458a57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036145cb576145cb613e00565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614610576146106145d2565b500490565b600082614624576146246145d2565b500690565b8082018082111561057657610576613e00565b89815260007fffffffffffffffffffffffffffffffffffffffff000000000000000000000000808b60601b166020840152808a60601b166034840152507fffffffffffffffff000000000000000000000000000000000000000000000000808960c01b166048840152808860c01b1660508401525085151560f81b605883015284605983015283516146d581607985016020880161377d565b80830190507fffffffff000000000000000000000000000000000000000000000000000000008460e01b166079820152607d81019150509a9950505050505050505050565b60006020828403121561472c57600080fd5b81516137fe81613c3a565b6000604082016040835280855180835260608501915060608160051b8601019250602080880160005b838110156147ac577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa088870301855261479a8683516138c9565b95509382019390820190600101614760565b50508584038187015286518085528782019482019350915060005b828110156147e3578451845293810193928101926001016147c7565b5091979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea164736f6c6343000813000a"
func init() {
if err := json.Unmarshal([]byte(EASStorageLayoutJSON), EASStorageLayout); err != nil {
panic(err)
}
layouts["EAS"] = EASStorageLayout
deployedBytecodes["EAS"] = EASDeployedBin
}
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package bindings
import (
"errors"
"math/big"
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = errors.New
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
_ = abi.ConvertType
)
// SchemaRecord is an auto generated low-level Go binding around an user-defined struct.
type SchemaRecord struct {
Uid [32]byte
Resolver common.Address
Revocable bool
Schema string
}
// SchemaRegistryMetaData contains all meta data concerning the SchemaRegistry contract.
var SchemaRegistryMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AlreadyExists\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"uid\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"registerer\",\"type\":\"address\"}],\"name\":\"Registered\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"uid\",\"type\":\"bytes32\"}],\"name\":\"getSchema\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"uid\",\"type\":\"bytes32\"},{\"internalType\":\"contractISchemaResolver\",\"name\":\"resolver\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"revocable\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"schema\",\"type\":\"string\"}],\"internalType\":\"structSchemaRecord\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"schema\",\"type\":\"string\"},{\"internalType\":\"contractISchemaResolver\",\"name\":\"resolver\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"revocable\",\"type\":\"bool\"}],\"name\":\"register\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
Bin: "0x60e060405234801561001057600080fd5b5060016080819052600060a081905260c081905280610dfb610048823960006101130152600060ea0152600060c10152610dfb6000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806354fd4d501461005157806360d7a2781461006f5780638129fc1c14610090578063a2ea7c6e1461009a575b600080fd5b6100596100ba565b60405161006691906108e9565b60405180910390f35b61008261007d366004610903565b61015d565b604051908152602001610066565b610098610306565b005b6100ad6100a83660046109b5565b61049d565b60405161006691906109ce565b60606100e57f00000000000000000000000000000000000000000000000000000000000000006105c6565b61010e7f00000000000000000000000000000000000000000000000000000000000000006105c6565b6101377f00000000000000000000000000000000000000000000000000000000000000006105c6565b60405160200161014993929190610a1f565b604051602081830303815290604052905090565b60008060405180608001604052806000801b81526020018573ffffffffffffffffffffffffffffffffffffffff168152602001841515815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525092935091506101df905082610703565b60008181526001602052604090205490915015610228576040517f23369fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082526000818152600160208181526040928390208551815590850151918101805493860151151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00000000000000000000000000000000000000000090941673ffffffffffffffffffffffffffffffffffffffff90931692909217929092179055606083015183919060028201906102c49082610b66565b50506040513381528291507f7d917fcbc9a29a9705ff9936ffa599500e4fd902e4486bae317414fe967b307c9060200160405180910390a29695505050505050565b600054610100900460ff16158080156103265750600054600160ff909116105b806103405750303b158015610340575060005460ff166001145b6103d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055801561042f57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b610437610743565b801561049a57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b60408051608081018252600080825260208201819052918101919091526060808201526000828152600160208181526040928390208351608081018552815481529281015473ffffffffffffffffffffffffffffffffffffffff8116928401929092527401000000000000000000000000000000000000000090910460ff1615159282019290925260028201805491929160608401919061053d90610ac4565b80601f016020809104026020016040519081016040528092919081815260200182805461056990610ac4565b80156105b65780601f1061058b576101008083540402835291602001916105b6565b820191906000526020600020905b81548152906001019060200180831161059957829003601f168201915b5050505050815250509050919050565b60608160000361060957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115610633578061061d81610caf565b915061062c9050600a83610d16565b915061060d565b60008167ffffffffffffffff81111561064e5761064e610a95565b6040519080825280601f01601f191660200182016040528015610678576020820181803683370190505b5090505b84156106fb5761068d600183610d2a565b915061069a600a86610d43565b6106a5906030610d57565b60f81b8183815181106106ba576106ba610d6a565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506106f4600a86610d16565b945061067c565b949350505050565b600081606001518260200151836040015160405160200161072693929190610d99565b604051602081830303815290604052805190602001209050919050565b600054610100900460ff166107da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016103c8565b6107e26107e4565b565b600054610100900460ff166107e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016103c8565b60005b8381101561089657818101518382015260200161087e565b50506000910152565b600081518084526108b781602086016020860161087b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006108fc602083018461089f565b9392505050565b6000806000806060858703121561091957600080fd5b843567ffffffffffffffff8082111561093157600080fd5b818701915087601f83011261094557600080fd5b81358181111561095457600080fd5b88602082850101111561096657600080fd5b6020928301965094505085013573ffffffffffffffffffffffffffffffffffffffff8116811461099557600080fd5b9150604085013580151581146109aa57600080fd5b939692955090935050565b6000602082840312156109c757600080fd5b5035919050565b602081528151602082015273ffffffffffffffffffffffffffffffffffffffff6020830151166040820152604082015115156060820152600060608301516080808401526106fb60a084018261089f565b60008451610a3181846020890161087b565b80830190507f2e000000000000000000000000000000000000000000000000000000000000008082528551610a6d816001850160208a0161087b565b60019201918201528351610a8881600284016020880161087b565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600181811c90821680610ad857607f821691505b602082108103610b11577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f821115610b6157600081815260208120601f850160051c81016020861015610b3e5750805b601f850160051c820191505b81811015610b5d57828155600101610b4a565b5050505b505050565b815167ffffffffffffffff811115610b8057610b80610a95565b610b9481610b8e8454610ac4565b84610b17565b602080601f831160018114610be75760008415610bb15750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555610b5d565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015610c3457888601518255948401946001909101908401610c15565b5085821015610c7057878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610ce057610ce0610c80565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082610d2557610d25610ce7565b500490565b81810381811115610d3d57610d3d610c80565b92915050565b600082610d5257610d52610ce7565b500690565b80820180821115610d3d57610d3d610c80565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008451610dab81846020890161087b565b60609490941b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000169190930190815290151560f81b60148201526015019291505056fea164736f6c6343000813000a",
}
// SchemaRegistryABI is the input ABI used to generate the binding from.
// Deprecated: Use SchemaRegistryMetaData.ABI instead.
var SchemaRegistryABI = SchemaRegistryMetaData.ABI
// SchemaRegistryBin is the compiled bytecode used for deploying new contracts.
// Deprecated: Use SchemaRegistryMetaData.Bin instead.
var SchemaRegistryBin = SchemaRegistryMetaData.Bin
// DeploySchemaRegistry deploys a new Ethereum contract, binding an instance of SchemaRegistry to it.
func DeploySchemaRegistry(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SchemaRegistry, error) {
parsed, err := SchemaRegistryMetaData.GetAbi()
if err != nil {
return common.Address{}, nil, nil, err
}
if parsed == nil {
return common.Address{}, nil, nil, errors.New("GetABI returned nil")
}
address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(SchemaRegistryBin), backend)
if err != nil {
return common.Address{}, nil, nil, err
}
return address, tx, &SchemaRegistry{SchemaRegistryCaller: SchemaRegistryCaller{contract: contract}, SchemaRegistryTransactor: SchemaRegistryTransactor{contract: contract}, SchemaRegistryFilterer: SchemaRegistryFilterer{contract: contract}}, nil
}
// SchemaRegistry is an auto generated Go binding around an Ethereum contract.
type SchemaRegistry struct {
SchemaRegistryCaller // Read-only binding to the contract
SchemaRegistryTransactor // Write-only binding to the contract
SchemaRegistryFilterer // Log filterer for contract events
}
// SchemaRegistryCaller is an auto generated read-only Go binding around an Ethereum contract.
type SchemaRegistryCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// SchemaRegistryTransactor is an auto generated write-only Go binding around an Ethereum contract.
type SchemaRegistryTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// SchemaRegistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type SchemaRegistryFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// SchemaRegistrySession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type SchemaRegistrySession struct {
Contract *SchemaRegistry // 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
}
// SchemaRegistryCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type SchemaRegistryCallerSession struct {
Contract *SchemaRegistryCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// SchemaRegistryTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type SchemaRegistryTransactorSession struct {
Contract *SchemaRegistryTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// SchemaRegistryRaw is an auto generated low-level Go binding around an Ethereum contract.
type SchemaRegistryRaw struct {
Contract *SchemaRegistry // Generic contract binding to access the raw methods on
}
// SchemaRegistryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type SchemaRegistryCallerRaw struct {
Contract *SchemaRegistryCaller // Generic read-only contract binding to access the raw methods on
}
// SchemaRegistryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type SchemaRegistryTransactorRaw struct {
Contract *SchemaRegistryTransactor // Generic write-only contract binding to access the raw methods on
}
// NewSchemaRegistry creates a new instance of SchemaRegistry, bound to a specific deployed contract.
func NewSchemaRegistry(address common.Address, backend bind.ContractBackend) (*SchemaRegistry, error) {
contract, err := bindSchemaRegistry(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &SchemaRegistry{SchemaRegistryCaller: SchemaRegistryCaller{contract: contract}, SchemaRegistryTransactor: SchemaRegistryTransactor{contract: contract}, SchemaRegistryFilterer: SchemaRegistryFilterer{contract: contract}}, nil
}
// NewSchemaRegistryCaller creates a new read-only instance of SchemaRegistry, bound to a specific deployed contract.
func NewSchemaRegistryCaller(address common.Address, caller bind.ContractCaller) (*SchemaRegistryCaller, error) {
contract, err := bindSchemaRegistry(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &SchemaRegistryCaller{contract: contract}, nil
}
// NewSchemaRegistryTransactor creates a new write-only instance of SchemaRegistry, bound to a specific deployed contract.
func NewSchemaRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*SchemaRegistryTransactor, error) {
contract, err := bindSchemaRegistry(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &SchemaRegistryTransactor{contract: contract}, nil
}
// NewSchemaRegistryFilterer creates a new log filterer instance of SchemaRegistry, bound to a specific deployed contract.
func NewSchemaRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*SchemaRegistryFilterer, error) {
contract, err := bindSchemaRegistry(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &SchemaRegistryFilterer{contract: contract}, nil
}
// bindSchemaRegistry binds a generic wrapper to an already deployed contract.
func bindSchemaRegistry(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := SchemaRegistryMetaData.GetAbi()
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil
}
// 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 (_SchemaRegistry *SchemaRegistryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _SchemaRegistry.Contract.SchemaRegistryCaller.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_SchemaRegistry *SchemaRegistryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _SchemaRegistry.Contract.SchemaRegistryTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_SchemaRegistry *SchemaRegistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _SchemaRegistry.Contract.SchemaRegistryTransactor.contract.Transact(opts, method, params...)
}
// 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 (_SchemaRegistry *SchemaRegistryCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _SchemaRegistry.Contract.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_SchemaRegistry *SchemaRegistryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _SchemaRegistry.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_SchemaRegistry *SchemaRegistryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _SchemaRegistry.Contract.contract.Transact(opts, method, params...)
}
// GetSchema is a free data retrieval call binding the contract method 0xa2ea7c6e.
//
// Solidity: function getSchema(bytes32 uid) view returns((bytes32,address,bool,string))
func (_SchemaRegistry *SchemaRegistryCaller) GetSchema(opts *bind.CallOpts, uid [32]byte) (SchemaRecord, error) {
var out []interface{}
err := _SchemaRegistry.contract.Call(opts, &out, "getSchema", uid)
if err != nil {
return *new(SchemaRecord), err
}
out0 := *abi.ConvertType(out[0], new(SchemaRecord)).(*SchemaRecord)
return out0, err
}
// GetSchema is a free data retrieval call binding the contract method 0xa2ea7c6e.
//
// Solidity: function getSchema(bytes32 uid) view returns((bytes32,address,bool,string))
func (_SchemaRegistry *SchemaRegistrySession) GetSchema(uid [32]byte) (SchemaRecord, error) {
return _SchemaRegistry.Contract.GetSchema(&_SchemaRegistry.CallOpts, uid)
}
// GetSchema is a free data retrieval call binding the contract method 0xa2ea7c6e.
//
// Solidity: function getSchema(bytes32 uid) view returns((bytes32,address,bool,string))
func (_SchemaRegistry *SchemaRegistryCallerSession) GetSchema(uid [32]byte) (SchemaRecord, error) {
return _SchemaRegistry.Contract.GetSchema(&_SchemaRegistry.CallOpts, uid)
}
// Version is a free data retrieval call binding the contract method 0x54fd4d50.
//
// Solidity: function version() view returns(string)
func (_SchemaRegistry *SchemaRegistryCaller) Version(opts *bind.CallOpts) (string, error) {
var out []interface{}
err := _SchemaRegistry.contract.Call(opts, &out, "version")
if err != nil {
return *new(string), err
}
out0 := *abi.ConvertType(out[0], new(string)).(*string)
return out0, err
}
// Version is a free data retrieval call binding the contract method 0x54fd4d50.
//
// Solidity: function version() view returns(string)
func (_SchemaRegistry *SchemaRegistrySession) Version() (string, error) {
return _SchemaRegistry.Contract.Version(&_SchemaRegistry.CallOpts)
}
// Version is a free data retrieval call binding the contract method 0x54fd4d50.
//
// Solidity: function version() view returns(string)
func (_SchemaRegistry *SchemaRegistryCallerSession) Version() (string, error) {
return _SchemaRegistry.Contract.Version(&_SchemaRegistry.CallOpts)
}
// Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
//
// Solidity: function initialize() returns()
func (_SchemaRegistry *SchemaRegistryTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error) {
return _SchemaRegistry.contract.Transact(opts, "initialize")
}
// Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
//
// Solidity: function initialize() returns()
func (_SchemaRegistry *SchemaRegistrySession) Initialize() (*types.Transaction, error) {
return _SchemaRegistry.Contract.Initialize(&_SchemaRegistry.TransactOpts)
}
// Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
//
// Solidity: function initialize() returns()
func (_SchemaRegistry *SchemaRegistryTransactorSession) Initialize() (*types.Transaction, error) {
return _SchemaRegistry.Contract.Initialize(&_SchemaRegistry.TransactOpts)
}
// Register is a paid mutator transaction binding the contract method 0x60d7a278.
//
// Solidity: function register(string schema, address resolver, bool revocable) returns(bytes32)
func (_SchemaRegistry *SchemaRegistryTransactor) Register(opts *bind.TransactOpts, schema string, resolver common.Address, revocable bool) (*types.Transaction, error) {
return _SchemaRegistry.contract.Transact(opts, "register", schema, resolver, revocable)
}
// Register is a paid mutator transaction binding the contract method 0x60d7a278.
//
// Solidity: function register(string schema, address resolver, bool revocable) returns(bytes32)
func (_SchemaRegistry *SchemaRegistrySession) Register(schema string, resolver common.Address, revocable bool) (*types.Transaction, error) {
return _SchemaRegistry.Contract.Register(&_SchemaRegistry.TransactOpts, schema, resolver, revocable)
}
// Register is a paid mutator transaction binding the contract method 0x60d7a278.
//
// Solidity: function register(string schema, address resolver, bool revocable) returns(bytes32)
func (_SchemaRegistry *SchemaRegistryTransactorSession) Register(schema string, resolver common.Address, revocable bool) (*types.Transaction, error) {
return _SchemaRegistry.Contract.Register(&_SchemaRegistry.TransactOpts, schema, resolver, revocable)
}
// SchemaRegistryInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the SchemaRegistry contract.
type SchemaRegistryInitializedIterator struct {
Event *SchemaRegistryInitialized // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func (it *SchemaRegistryInitializedIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(SchemaRegistryInitialized)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(SchemaRegistryInitialized)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *SchemaRegistryInitializedIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *SchemaRegistryInitializedIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// SchemaRegistryInitialized represents a Initialized event raised by the SchemaRegistry contract.
type SchemaRegistryInitialized struct {
Version uint8
Raw types.Log // Blockchain specific contextual infos
}
// FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
//
// Solidity: event Initialized(uint8 version)
func (_SchemaRegistry *SchemaRegistryFilterer) FilterInitialized(opts *bind.FilterOpts) (*SchemaRegistryInitializedIterator, error) {
logs, sub, err := _SchemaRegistry.contract.FilterLogs(opts, "Initialized")
if err != nil {
return nil, err
}
return &SchemaRegistryInitializedIterator{contract: _SchemaRegistry.contract, event: "Initialized", logs: logs, sub: sub}, nil
}
// WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
//
// Solidity: event Initialized(uint8 version)
func (_SchemaRegistry *SchemaRegistryFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *SchemaRegistryInitialized) (event.Subscription, error) {
logs, sub, err := _SchemaRegistry.contract.WatchLogs(opts, "Initialized")
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(SchemaRegistryInitialized)
if err := _SchemaRegistry.contract.UnpackLog(event, "Initialized", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
//
// Solidity: event Initialized(uint8 version)
func (_SchemaRegistry *SchemaRegistryFilterer) ParseInitialized(log types.Log) (*SchemaRegistryInitialized, error) {
event := new(SchemaRegistryInitialized)
if err := _SchemaRegistry.contract.UnpackLog(event, "Initialized", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// SchemaRegistryRegisteredIterator is returned from FilterRegistered and is used to iterate over the raw logs and unpacked data for Registered events raised by the SchemaRegistry contract.
type SchemaRegistryRegisteredIterator struct {
Event *SchemaRegistryRegistered // Event containing the contract specifics and raw log
contract *bind.BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types.Log // Log channel receiving the found contract events
sub ethereum.Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func (it *SchemaRegistryRegisteredIterator) Next() bool {
// If the iterator failed, stop iterating
if it.fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it.done {
select {
case log := <-it.logs:
it.Event = new(SchemaRegistryRegistered)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
default:
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <-it.logs:
it.Event = new(SchemaRegistryRegistered)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err := <-it.sub.Err():
it.done = true
it.fail = err
return it.Next()
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func (it *SchemaRegistryRegisteredIterator) Error() error {
return it.fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func (it *SchemaRegistryRegisteredIterator) Close() error {
it.sub.Unsubscribe()
return nil
}
// SchemaRegistryRegistered represents a Registered event raised by the SchemaRegistry contract.
type SchemaRegistryRegistered struct {
Uid [32]byte
Registerer common.Address
Raw types.Log // Blockchain specific contextual infos
}
// FilterRegistered is a free log retrieval operation binding the contract event 0x7d917fcbc9a29a9705ff9936ffa599500e4fd902e4486bae317414fe967b307c.
//
// Solidity: event Registered(bytes32 indexed uid, address registerer)
func (_SchemaRegistry *SchemaRegistryFilterer) FilterRegistered(opts *bind.FilterOpts, uid [][32]byte) (*SchemaRegistryRegisteredIterator, error) {
var uidRule []interface{}
for _, uidItem := range uid {
uidRule = append(uidRule, uidItem)
}
logs, sub, err := _SchemaRegistry.contract.FilterLogs(opts, "Registered", uidRule)
if err != nil {
return nil, err
}
return &SchemaRegistryRegisteredIterator{contract: _SchemaRegistry.contract, event: "Registered", logs: logs, sub: sub}, nil
}
// WatchRegistered is a free log subscription operation binding the contract event 0x7d917fcbc9a29a9705ff9936ffa599500e4fd902e4486bae317414fe967b307c.
//
// Solidity: event Registered(bytes32 indexed uid, address registerer)
func (_SchemaRegistry *SchemaRegistryFilterer) WatchRegistered(opts *bind.WatchOpts, sink chan<- *SchemaRegistryRegistered, uid [][32]byte) (event.Subscription, error) {
var uidRule []interface{}
for _, uidItem := range uid {
uidRule = append(uidRule, uidItem)
}
logs, sub, err := _SchemaRegistry.contract.WatchLogs(opts, "Registered", uidRule)
if err != nil {
return nil, err
}
return event.NewSubscription(func(quit <-chan struct{}) error {
defer sub.Unsubscribe()
for {
select {
case log := <-logs:
// New log arrived, parse the event and forward to the user
event := new(SchemaRegistryRegistered)
if err := _SchemaRegistry.contract.UnpackLog(event, "Registered", log); err != nil {
return err
}
event.Raw = log
select {
case sink <- event:
case err := <-sub.Err():
return err
case <-quit:
return nil
}
case err := <-sub.Err():
return err
case <-quit:
return nil
}
}
}), nil
}
// ParseRegistered is a log parse operation binding the contract event 0x7d917fcbc9a29a9705ff9936ffa599500e4fd902e4486bae317414fe967b307c.
//
// Solidity: event Registered(bytes32 indexed uid, address registerer)
func (_SchemaRegistry *SchemaRegistryFilterer) ParseRegistered(log types.Log) (*SchemaRegistryRegistered, error) {
event := new(SchemaRegistryRegistered)
if err := _SchemaRegistry.contract.UnpackLog(event, "Registered", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
}
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package bindings
import (
"encoding/json"
"github.com/ethereum-optimism/optimism/op-bindings/solc"
)
const SchemaRegistryStorageLayoutJSON = "{\"storage\":[{\"astId\":1000,\"contract\":\"contracts/EAS/SchemaRegistry.sol:SchemaRegistry\",\"label\":\"_initialized\",\"offset\":0,\"slot\":\"0\",\"type\":\"t_uint8\"},{\"astId\":1001,\"contract\":\"contracts/EAS/SchemaRegistry.sol:SchemaRegistry\",\"label\":\"_initializing\",\"offset\":1,\"slot\":\"0\",\"type\":\"t_bool\"},{\"astId\":1002,\"contract\":\"contracts/EAS/SchemaRegistry.sol:SchemaRegistry\",\"label\":\"_registry\",\"offset\":0,\"slot\":\"1\",\"type\":\"t_mapping(t_bytes32,t_struct(SchemaRecord)1005_storage)\"},{\"astId\":1003,\"contract\":\"contracts/EAS/SchemaRegistry.sol:SchemaRegistry\",\"label\":\"__gap\",\"offset\":0,\"slot\":\"2\",\"type\":\"t_array(t_uint256)49_storage\"}],\"types\":{\"t_array(t_uint256)49_storage\":{\"encoding\":\"inplace\",\"label\":\"uint256[49]\",\"numberOfBytes\":\"1568\",\"base\":\"t_uint256\"},\"t_bool\":{\"encoding\":\"inplace\",\"label\":\"bool\",\"numberOfBytes\":\"1\"},\"t_bytes32\":{\"encoding\":\"inplace\",\"label\":\"bytes32\",\"numberOfBytes\":\"32\"},\"t_contract(ISchemaResolver)1004\":{\"encoding\":\"inplace\",\"label\":\"contract ISchemaResolver\",\"numberOfBytes\":\"20\"},\"t_mapping(t_bytes32,t_struct(SchemaRecord)1005_storage)\":{\"encoding\":\"mapping\",\"label\":\"mapping(bytes32 =\u003e struct SchemaRecord)\",\"numberOfBytes\":\"32\",\"key\":\"t_bytes32\",\"value\":\"t_struct(SchemaRecord)1005_storage\"},\"t_string_storage\":{\"encoding\":\"bytes\",\"label\":\"string\",\"numberOfBytes\":\"32\"},\"t_struct(SchemaRecord)1005_storage\":{\"encoding\":\"inplace\",\"label\":\"struct SchemaRecord\",\"numberOfBytes\":\"96\"},\"t_uint256\":{\"encoding\":\"inplace\",\"label\":\"uint256\",\"numberOfBytes\":\"32\"},\"t_uint8\":{\"encoding\":\"inplace\",\"label\":\"uint8\",\"numberOfBytes\":\"1\"}}}"
var SchemaRegistryStorageLayout = new(solc.StorageLayout)
var SchemaRegistryDeployedBin = "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806354fd4d501461005157806360d7a2781461006f5780638129fc1c14610090578063a2ea7c6e1461009a575b600080fd5b6100596100ba565b60405161006691906108e9565b60405180910390f35b61008261007d366004610903565b61015d565b604051908152602001610066565b610098610306565b005b6100ad6100a83660046109b5565b61049d565b60405161006691906109ce565b60606100e57f00000000000000000000000000000000000000000000000000000000000000006105c6565b61010e7f00000000000000000000000000000000000000000000000000000000000000006105c6565b6101377f00000000000000000000000000000000000000000000000000000000000000006105c6565b60405160200161014993929190610a1f565b604051602081830303815290604052905090565b60008060405180608001604052806000801b81526020018573ffffffffffffffffffffffffffffffffffffffff168152602001841515815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525092935091506101df905082610703565b60008181526001602052604090205490915015610228576040517f23369fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082526000818152600160208181526040928390208551815590850151918101805493860151151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00000000000000000000000000000000000000000090941673ffffffffffffffffffffffffffffffffffffffff90931692909217929092179055606083015183919060028201906102c49082610b66565b50506040513381528291507f7d917fcbc9a29a9705ff9936ffa599500e4fd902e4486bae317414fe967b307c9060200160405180910390a29695505050505050565b600054610100900460ff16158080156103265750600054600160ff909116105b806103405750303b158015610340575060005460ff166001145b6103d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055801561042f57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b610437610743565b801561049a57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b60408051608081018252600080825260208201819052918101919091526060808201526000828152600160208181526040928390208351608081018552815481529281015473ffffffffffffffffffffffffffffffffffffffff8116928401929092527401000000000000000000000000000000000000000090910460ff1615159282019290925260028201805491929160608401919061053d90610ac4565b80601f016020809104026020016040519081016040528092919081815260200182805461056990610ac4565b80156105b65780601f1061058b576101008083540402835291602001916105b6565b820191906000526020600020905b81548152906001019060200180831161059957829003601f168201915b5050505050815250509050919050565b60608160000361060957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115610633578061061d81610caf565b915061062c9050600a83610d16565b915061060d565b60008167ffffffffffffffff81111561064e5761064e610a95565b6040519080825280601f01601f191660200182016040528015610678576020820181803683370190505b5090505b84156106fb5761068d600183610d2a565b915061069a600a86610d43565b6106a5906030610d57565b60f81b8183815181106106ba576106ba610d6a565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506106f4600a86610d16565b945061067c565b949350505050565b600081606001518260200151836040015160405160200161072693929190610d99565b604051602081830303815290604052805190602001209050919050565b600054610100900460ff166107da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016103c8565b6107e26107e4565b565b600054610100900460ff166107e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016103c8565b60005b8381101561089657818101518382015260200161087e565b50506000910152565b600081518084526108b781602086016020860161087b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006108fc602083018461089f565b9392505050565b6000806000806060858703121561091957600080fd5b843567ffffffffffffffff8082111561093157600080fd5b818701915087601f83011261094557600080fd5b81358181111561095457600080fd5b88602082850101111561096657600080fd5b6020928301965094505085013573ffffffffffffffffffffffffffffffffffffffff8116811461099557600080fd5b9150604085013580151581146109aa57600080fd5b939692955090935050565b6000602082840312156109c757600080fd5b5035919050565b602081528151602082015273ffffffffffffffffffffffffffffffffffffffff6020830151166040820152604082015115156060820152600060608301516080808401526106fb60a084018261089f565b60008451610a3181846020890161087b565b80830190507f2e000000000000000000000000000000000000000000000000000000000000008082528551610a6d816001850160208a0161087b565b60019201918201528351610a8881600284016020880161087b565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600181811c90821680610ad857607f821691505b602082108103610b11577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f821115610b6157600081815260208120601f850160051c81016020861015610b3e5750805b601f850160051c820191505b81811015610b5d57828155600101610b4a565b5050505b505050565b815167ffffffffffffffff811115610b8057610b80610a95565b610b9481610b8e8454610ac4565b84610b17565b602080601f831160018114610be75760008415610bb15750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555610b5d565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015610c3457888601518255948401946001909101908401610c15565b5085821015610c7057878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610ce057610ce0610c80565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082610d2557610d25610ce7565b500490565b81810381811115610d3d57610d3d610c80565b92915050565b600082610d5257610d52610ce7565b500690565b80820180821115610d3d57610d3d610c80565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008451610dab81846020890161087b565b60609490941b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000169190930190815290151560f81b60148201526015019291505056fea164736f6c6343000813000a"
func init() {
if err := json.Unmarshal([]byte(SchemaRegistryStorageLayoutJSON), SchemaRegistryStorageLayout); err != nil {
panic(err)
}
layouts["SchemaRegistry"] = SchemaRegistryStorageLayout
deployedBytecodes["SchemaRegistry"] = SchemaRegistryDeployedBin
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment