EeseeOffchain
EeseeOffchain
Contract for offchain eesee lots logic.
SignatureData
nonceUsed
Is nonce used.
lotClosed
Is lot closed. Tickets are unable to get bought in closed lots.
CreateLot
BuyTickets
ClaimAsset
RevokeSignature
LotClosed
InvalidRecipient
ExpiredDeadline
NonceUsed
InvalidAmount
InvalidSignature
InvalidValue
TransferNotSuccessful
InvalidAssetType
initialize
createLot
Creates lot with offchain logic. Emits {CreateLot} event.
Parameters
Name | Type | Description |
---|---|---|
asset | struct Asset | - Assets to list. Note: The sender must have them approved for this contract. |
data | bytes | - Lot data for offchain logic. |
signatureData | struct EeseeOffchain.SignatureData | - Signature for asset and data signed by SIGNER_ROLE. |
Return Values
Name | Type | Description |
---|---|---|
ID | bytes32 | - ID of created lot. |
buyTickets
Buys tickets to participate in a lot. Emits {BuyTickets} event.
Parameters
Name | Type | Description |
---|---|---|
ID | bytes32 | - ID of lot to buy tickets in. |
asset | struct Asset | - Asset to buy tickets with. |
recipient | address | - Recipient of tickets. |
closeLot | bool | - Prevent buying new tickets. |
signatureData | struct EeseeOffchain.SignatureData | - Signature for ID, asset and recipient signed by SIGNER_ROLE. |
claimAsset
Claims asset from a lot. Emits {ClaimAsset} event.
Parameters
Name | Type | Description |
---|---|---|
ID | bytes32 | - ID of lot to claim asset in. |
asset | struct Asset | - Asset to claim and send to recipient. |
recipient | address | - Recipient of asset. |
_call | bytes | - Additional external call to make. |
signatureData | struct EeseeOffchain.SignatureData | - Signature for ID, asset, msgSender, recipient and _call signed by SIGNER_ROLE. |
Return Values
Name | Type | Description |
---|---|---|
returnData | bytes | - Data returned from external call. |
revokeSignatures
Callable by SIGNER_ROLE to revoke signatures. Emits {RevokeSignature} for each signature revoked.
Parameters
Name | Type | Description |
---|---|---|
nonces | uint256[] | - Signature nonces to revoke. |
getLotId
Inherited from EeseeRoleHandler
Inherited from EIP712Upgradeable
eip712Domain
_See {EIP-5267}.
Available since v4.9._
Inherited from IERC5267Upgradeable
EIP712DomainChanged
MAY be emitted to signal that the domain could have changed.
Inherited from ERC1155HolderUpgradeable
onERC1155Received
onERC1155BatchReceived
Inherited from ERC1155ReceiverUpgradeable
supportsInterface
See {IERC165-supportsInterface}.
Inherited from ERC165Upgradeable
Inherited from ERC721HolderUpgradeable
onERC721Received
_See {IERC721Receiver-onERC721Received}.
Always returns IERC721Receiver.onERC721Received.selector
._
Inherited from ERC2771ContextUpgradeable
isTrustedForwarder
Inherited from ContextUpgradeable
Inherited from Initializable
Initialized
Triggered when the contract has been initialized or reinitialized.
Inherited from UUPSUpgradeable
proxiableUUID
_Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade.
IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the notDelegated
modifier._
upgradeTo
_Upgrade the implementation of the proxy to newImplementation
.
Calls {_authorizeUpgrade}.
Emits an {Upgraded} event._
upgradeToAndCall
_Upgrade the implementation of the proxy to newImplementation
, and subsequently execute the function call encoded in data
.
Calls {_authorizeUpgrade}.
Emits an {Upgraded} event._
Inherited from ERC1967Upgrade
Inherited from IERC1967
Upgraded
Emitted when the implementation is upgraded.
AdminChanged
Emitted when the admin account has changed.
BeaconUpgraded
Emitted when the beacon is changed.
Last updated