Skip to content
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

[SDK] Add Pack extensions #4579

Merged
merged 1 commit into from
Sep 28, 2024
Merged

[SDK] Add Pack extensions #4579

merged 1 commit into from
Sep 28, 2024

Commits on Sep 28, 2024

  1. [SDK] Add Pack extensions (#4579)

    ## Problem solved
    
    Short description of the bug fixed or feature added
    
    <!-- start pr-codex -->
    
    ---
    
    ## PR-Codex overview
    This PR introduces new functionalities and enhancements for the `Pack` contract in the `thirdweb` project, including event definitions, deployment options, and methods for managing packs and rewards.
    
    ### Detailed summary
    - Added `initialize` function to `Pack.json`.
    - Exported new types and functions in `deploy-pack.ts`.
    - Defined new events and functions in `IPackVRFDirect.json`.
    - Created tests for deploying `Pack` contracts.
    - Updated changelog with Pack extensions.
    - Implemented various methods for managing packs, including `openPack`, `addPackContents`, and `claimRewards`.
    
    > The following files were skipped due to too many changes: `packages/thirdweb/src/extensions/pack/createNewPack.test.ts`, `packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts`, `packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts`, `packages/thirdweb/src/extensions/pack/createNewPack.ts`
    
    > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
    
    <!-- end pr-codex -->
    kien-ngo committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    90b5495 View commit details
    Browse the repository at this point in the history