-
Notifications
You must be signed in to change notification settings - Fork 0
Dev #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dadadave80
wants to merge
27
commits into
main
Choose a base branch
from
dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Dev #18
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Removed the erc2535-diamond-template submodule and references, and added diamond-lib as a new submodule. Updated remappings to point to diamond-lib paths instead of erc2535-diamond-template.
Replaces ERC165Init with DiamondInit in deployment and helper scripts. Updates the helper to generate initialization calldata instead of DiamondArgs, aligning with new contract initialization requirements.
Refactored the HostItTickets contract constructor to accept FacetCut array, init contract address, and calldata directly, aligning with the updated Diamond contract interface. Updated parameter names and documentation accordingly.
Introduces the diamond-lib repository as a submodule under lib/. This allows the project to track and use code from diamond-lib at commit 95faf293ac04cb21f41fcf2ae4f51f68fba037ec.
Refreshed revisions for several libraries and added diamond-lib to the lock file to ensure the latest versions are used.
Added a clarifying comment before the call to _getAddressesAndFeesByChainId to improve code readability.
Moved the _createErc6551Account function to a new location within the LibMarketplace library and removed unused refund-related functions. This improves code organization and removes incomplete or placeholder code.
Introduces claimRefund to MarketplaceFacet and IMarketplace, allowing users to claim ticket refunds within a specified period. Updates LibMarketplace with internal refund logic, new error types, and related event emissions. Refactors fee setting and withdrawal logic for consistency and improved event handling.
Updates LibFactory to set maxTicketsPerUser in extraTicketData if provided. Also changes updatedAt field to use uint48 for increased timestamp range.
Added tests for claiming ticket refunds in ETH, USDT, and USDC to MarketplaceTest. Updated DeployedHostItTickets to set isRefundable to true for paid tickets, enabling refund functionality in tests.
Changed EIP-2535 to ERC-2535 in HostItTickets documentation for accuracy. Updated TicketProxy constructor to be payable, allowing it to receive Ether.
Replaced dynamic HostIt fee basis points with a constant, refactored fee calculation to use pure functions, and removed related setter logic. Updated IMarketplace interface with detailed documentation and adjusted function signatures. Added HOST_IT_SALT to .env.example for deployment configuration.
The createTicket function in FactoryFacet, IFactory, and LibFactory now returns the ticket ID (uint64) after creation. This change allows callers to immediately obtain the new ticket's identifier for further processing or reference.
Also removed unused fee bps from storage
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.