0 txs
87 calls
constructor
constructor()
functions
allowlist
viewfunction allowlist(address) view returns (bool)
nftCollectionImpl
viewfunction nftCollectionImpl() view returns (address)
oraAIOracleGasPriceMultiplier
viewfunction oraAIOracleGasPriceMultiplier() view returns (uint16)
oraModelAllowed
viewfunction oraModelAllowed(uint256) view returns (bool)
oraRandOracleMaxGasPriceMultiplier
viewfunction oraRandOracleMaxGasPriceMultiplier() view returns (uint16)
owner
viewfunction owner() view returns (address)
predictNFTCollectionAddress
viewfunction predictNFTCollectionAddress(address provider, uint256 modelId, string prompt) view returns (address)
providerAllowed
viewfunction providerAllowed(address) view returns (bool)
proxiableUUID
viewfunction proxiableUUID() view returns (bytes32)
UPGRADE_INTERFACE_VERSION
viewfunction UPGRADE_INTERFACE_VERSION() view returns (string)
createNFTCollection
nonpayablefunction createNFTCollection(address _owner, string prompt, bytes metadataInitializer, address provider, bytes providerParams, uint96 royaltyFeeBps) returns (address collection)
initialize
nonpayablefunction initialize(address owner, address _implementation, uint16 _oraAIOracleGasPriceMultiplier, uint16 _oraRandOracleMaxGasPriceMultiplier)
renounceOwnership
nonpayablefunction renounceOwnership()
setAllowlistAllowed
nonpayablefunction setAllowlistAllowed(address addr, bool isAllowed)
setORAAIOracleGasPriceMultiplier
nonpayablefunction setORAAIOracleGasPriceMultiplier(uint16 newMultiplier)
setORAModelAllowed
nonpayablefunction setORAModelAllowed(uint256 modelId, bool isAllowed)
setORARandOracleMaxGasPriceMultiplier
nonpayablefunction setORARandOracleMaxGasPriceMultiplier(uint16 newMultiplier)
setProviderAllowed
nonpayablefunction setProviderAllowed(address provider, bool isAllowed)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
upgradeToAndCall
payablefunction upgradeToAndCall(address newImplementation, bytes data) payable
events
AllowlistStatusUpdate
event AllowlistStatusUpdate(address indexed addr, bool isAllowed)
Initialized
event Initialized(uint64 version)
ORAAIOracleGasPriceMultiplierUpdate
event ORAAIOracleGasPriceMultiplierUpdate(uint16 newMultiplier)
ORAModelStatusUpdate
event ORAModelStatusUpdate(uint256 indexed modelId, bool isAllowed)
ORARandOracleMaxGasPriceMultiplierUpdate
event ORARandOracleMaxGasPriceMultiplierUpdate(uint16 newMultiplier)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
ProviderStatusUpdate
event ProviderStatusUpdate(address indexed provider, bool isAllowed)
Upgraded
event Upgraded(address indexed implementation)
errors
AddressEmptyCode
error AddressEmptyCode(address target)
ERC1167FailedCreateClone
error ERC1167FailedCreateClone()
ERC1967InvalidImplementation
error ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable
error ERC1967NonPayable()
FailedInnerCall
error FailedInnerCall()
InvalidInitialization
error InvalidInitialization()
NotInitializing
error NotInitializing()
ORAModelNotAllowed
error ORAModelNotAllowed()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
ProviderNotAllowed
error ProviderNotAllowed()
UnauthorizedCaller
error UnauthorizedCaller()
UUPSUnauthorizedCallContext
error UUPSUnauthorizedCallContext()
UUPSUnsupportedProxiableUUID
error UUPSUnsupportedProxiableUUID(bytes32 slot)
creation bytecode
0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516113e66100f95f395f818161099d015281816109c60152610b0a01526113e65ff3fe60806040526004361061011b575f3560e01c80638da5cb5b1161009d578063c25f6be511610062578063c25f6be514610382578063dd942758146103a1578063df442678146103bf578063dfbd57f1146103de578063f2fde38b146103fd575f5ffd5b80638da5cb5b1461029d5780638f8a4b5b146102d9578063a7cd52cb146102f8578063ad3cb1cc14610326578063b1d2747814610363575f5ffd5b806358e7e73e116100e357806358e7e73e146101c6578063715018a6146101e657806378f66f57146101fa5780638923e2f9146102385780638a686cc61461026f575f5ffd5b8063050bbafb1461011f5780630d74c252146101405780634f1ef2861461015f57806352d1902d1461017257806356af0a7114610199575b5f5ffd5b34801561012a575f5ffd5b5061013e610139366004610f2d565b61041c565b005b34801561014b575f5ffd5b5061013e61015a366004610f6f565b610483565b61013e61016d366004610f9c565b6104e0565b34801561017d575f5ffd5b506101866104ff565b6040519081526020015b60405180910390f35b3480156101a4575f5ffd5b506004546101b39061ffff1681565b60405161ffff9091168152602001610190565b3480156101d1575f5ffd5b506004546101b39062010000900461ffff1681565b3480156101f1575f5ffd5b5061013e61051a565b348015610205575f5ffd5b50610228610214366004611060565b60026020525f908152604090205460ff1681565b6040519015158152602001610190565b348015610243575f5ffd5b506102576102523660046110be565b61052d565b6040516001600160a01b039091168152602001610190565b34801561027a575f5ffd5b50610228610289366004611114565b60036020525f908152604090205460ff1681565b3480156102a8575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b0316610257565b3480156102e4575f5ffd5b5061013e6102f3366004610f6f565b610580565b348015610303575f5ffd5b50610228610312366004611060565b60016020525f908152604090205460ff1681565b348015610331575f5ffd5b50610356604051806040016040528060058152602001640352e302e360dc1b81525081565b604051610190919061112b565b34801561036e575f5ffd5b5061013e61037d366004611160565b6105cc565b34801561038d575f5ffd5b5061013e61039c366004610f2d565b610623565b3480156103ac575f5ffd5b505f54610257906001600160a01b031681565b3480156103ca575f5ffd5b5061013e6103d9366004611181565b610682565b3480156103e9575f5ffd5b506102576103f83660046111d2565b6107ce565b348015610408575f5ffd5b5061013e610417366004611060565b6108f5565b610424610937565b6001600160a01b0382165f81815260026020908152604091829020805460ff191685151590811790915591519182527f345cb89236db1e0545ed73596cc1bbe4f009b17c9a7a7b733325ccbf4df5b6fd91015b60405180910390a25050565b61048b610937565b6004805463ffff000019166201000061ffff8416908102919091179091556040519081527fe6fb87a5e881096fd44ea4f5459b49377e76fdefcf34a9f176a7365c57c89c3f906020015b60405180910390a150565b6104e8610992565b6104f182610a36565b6104fb8282610a3e565b5050565b5f610508610aff565b505f5160206113915f395f51905f5290565b610522610937565b61052b5f610b48565b565b5f5f8585858560405160200161054694939291906112dc565b60408051601f1981840301815291905280516020909101205f54909150610576906001600160a01b031682610bb8565b9695505050505050565b610588610937565b6004805461ffff191661ffff83169081179091556040519081527f624234db95aac050b4e8bfd32a916328c1b64cc675d280a1cb8e700f96905153906020016104d5565b6105d4610937565b5f82815260036020908152604091829020805460ff1916841515908117909155915191825283917f27914062bcb37704df022e49e69f8b7d9abaa534e268d8bcac3f509cc18017a49101610477565b61062b610937565b6001600160a01b0382165f81815260016020908152604091829020805460ff191685151590811790915591519182527f039ac167b1bcc46e8d7f6763fa3830f1ee61fac1000c4ccec10814b9596b8d299101610477565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f811580156106c75750825b90505f8267ffffffffffffffff1660011480156106e35750303b155b9050811580156106f1575080155b1561070f5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561073957845460ff60401b1916600160401b1785555b61074289610c1c565b5f80546001600160a01b038a166001600160a01b03199091161790556004805461ffff888116620100000263ffffffff19909216908a161717905583156107c357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050505050565b335f9081526001602052604081205460ff166107fd57604051635c427cd960e01b815260040160405180910390fd5b6001600160a01b0385165f9081526002602052604090205460ff1661083557604051630890b7a360e11b815260040160405180910390fd5b5f61084284860186611114565b5f8181526003602052604090205490915060ff16610873576040516306663dd560e21b815260040160405180910390fd5b61087f86828c8c610c2d565b60405163c3b1802b60e01b81529092506001600160a01b0383169063c3b1802b906108ba908e908e908e908e908e9089908c90600401611303565b5f604051808303815f87803b1580156108d1575f5ffd5b505af11580156108e3573d5f5f3e3d5ffd5b50505050509998505050505050505050565b6108fd610937565b6001600160a01b03811661092b57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61093481610b48565b50565b336109697f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b03161461052b5760405163118cdaa760e01b8152336004820152602401610922565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610a1857507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610a0c5f5160206113915f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561052b5760405163703e46dd60e11b815260040160405180910390fd5b610934610937565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610a98575060408051601f3d908101601f19168201909252610a9591810190611363565b60015b610ac057604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610922565b5f5160206113915f395f51905f528114610af057604051632a87526960e21b815260048101829052602401610922565b610afa8383610c76565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461052b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040513060388201526f5af43d82803e903d91602b57fd5bf3ff602482015260148101839052733d602d80600a3d3981f3363d3d373d3d3d363d738152605881018290526037600c820120607882015260556043909101205f905b90505b92915050565b610c24610ccb565b61093481610d14565b5f5f85858585604051602001610c4694939291906112dc565b60408051601f1981840301815291905280516020909101205f54909150610576906001600160a01b031682610d1c565b610c7f82610d87565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115610cc357610afa8282610dea565b6104fb610e5c565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661052b57604051631afcd79f60e31b815260040160405180910390fd5b6108fd610ccb565b5f763d602d80600a3d3981f3363d3d373d3d3d363d730000008360601b60e81c175f526e5af43d82803e903d91602b57fd5bf38360781b1760205281603760095ff590506001600160a01b038116610c16576040516330be1a3d60e21b815260040160405180910390fd5b806001600160a01b03163b5f03610dbc57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610922565b5f5160206113915f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610e06919061137a565b5f60405180830381855af49150503d805f8114610e3e576040519150601f19603f3d011682016040523d82523d5f602084013e610e43565b606091505b5091509150610e53858383610e7b565b95945050505050565b341561052b5760405163b398979f60e01b815260040160405180910390fd5b606082610e9057610e8b82610eda565b610ed3565b8151158015610ea757506001600160a01b0384163b155b15610ed057604051639996b31560e01b81526001600160a01b0385166004820152602401610922565b50805b9392505050565b805115610eea5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80356001600160a01b0381168114610f19575f5ffd5b919050565b80358015158114610f19575f5ffd5b5f5f60408385031215610f3e575f5ffd5b610f4783610f03565b9150610f5560208401610f1e565b90509250929050565b803561ffff81168114610f19575f5ffd5b5f60208284031215610f7f575f5ffd5b610c1382610f5e565b634e487b7160e01b5f52604160045260245ffd5b5f5f60408385031215610fad575f5ffd5b610fb683610f03565b9150602083013567ffffffffffffffff811115610fd1575f5ffd5b8301601f81018513610fe1575f5ffd5b803567ffffffffffffffff811115610ffb57610ffb610f88565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561102a5761102a610f88565b604052818152828201602001871015611041575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611070575f5ffd5b610c1382610f03565b5f5f83601f840112611089575f5ffd5b50813567ffffffffffffffff8111156110a0575f5ffd5b6020830191508360208285010111156110b7575f5ffd5b9250929050565b5f5f5f5f606085870312156110d1575f5ffd5b6110da85610f03565b935060208501359250604085013567ffffffffffffffff8111156110fc575f5ffd5b61110887828801611079565b95989497509550505050565b5f60208284031215611124575f5ffd5b5035919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f60408385031215611171575f5ffd5b82359150610f5560208401610f1e565b5f5f5f5f60808587031215611194575f5ffd5b61119d85610f03565b93506111ab60208601610f03565b92506111b960408601610f5e565b91506111c760608601610f5e565b905092959194509250565b5f5f5f5f5f5f5f5f5f60c08a8c0312156111ea575f5ffd5b6111f38a610f03565b985060208a013567ffffffffffffffff81111561120e575f5ffd5b61121a8c828d01611079565b90995097505060408a013567ffffffffffffffff811115611239575f5ffd5b6112458c828d01611079565b9097509550611258905060608b01610f03565b935060808a013567ffffffffffffffff811115611273575f5ffd5b61127f8c828d01611079565b90945092505060a08a01356bffffffffffffffffffffffff811681146112a3575f5ffd5b809150509295985092959850929598565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b60018060a01b0385168152836020820152606060408201525f6105766060830184866112b4565b6001600160a01b038816815260a0602082018190525f90611327908301888a6112b4565b828103604084015261133a8187896112b4565b9150508360608301526bffffffffffffffffffffffff8316608083015298975050505050505050565b5f60208284031215611373575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220e59b3735b35f75f0a3ecf49029c4aa6a646fa597d6079e0de306ac8bad7ef10964736f6c634300081c0033