wen-community / wen-program-library

Apache License 2.0
90 stars 21 forks source link

Anchor Style Workspace and Tests #66

Closed kespinola closed 6 months ago

kespinola commented 7 months ago

Goal Developers familiar with anchor immediately understand the workspace and specs structure.

Changes

Follow Up

Next abk labs will create a separate suite for testing royalties where we create a dummy sales program.

  wen_new_standard
    manager
      after initializing
        ✔ should exist with a fixed seed
        ✔ should be owned by the program
    mint
      after creating
        - should be owned by the token extensions program
        - should have metadata pointer
      after updating
        - should have updated title
      after adding royalties
        - should contain seller fee basis points
        - should contain creators and their shares
        - should have wen_royalty_distribution extension registered
      after freezing
        - should be frozen
        trying to transfer
          - should be blocked
      after thawing
        - should be thawed
        trying to transfer
          - should be allowed
      after transferring
        - should be owned by the new owner
      after burning
        - should be burnt
        - should have no rent
        - should be owned by the system program
        - should have no data
    group
      after creating
        ✔ should be an account owned by the program
        ✔ should have an update authority
        ✔ should reference the group mint
        ✔ should have a max size
        ✔ should have no members denoted by a size of 0
      after adding a mint as a member
        the mint
          - should point back to the group
        the group
          - should a size of 1
      after removing mint as a member
        the mint
          - should not point back to the group
        the group
          - should have a size of 0

  7 passing (1s)
  19 pending