Files

18 KiB

@thirdweb-dev/sdk

3.1.1

Patch Changes

3.1.0

Minor Changes

Patch Changes

3.0.8

Patch Changes

3.0.7

Patch Changes

3.0.6

Patch Changes

3.0.5

Patch Changes

3.0.4

Patch Changes

3.0.3

Patch Changes

3.0.2

Patch Changes

3.0.1

Patch Changes

3.0.0

Major Changes

  • #19 82627ea Thanks @joaquim-verges! - 3.0.0 update

    MAJOR VERSION CHANGE

    • 85% reduction in package size!
    • Custom contracts are now first class citizens

    Full changelog

    Breaking changes:

    1. Getting contracts is now async. This allows dynamically importing contracts and reduces the weight of the SDK significantly.

    before:

    const token = sdk.getToken(...)
    const nftDrop = sdk.getNFTDrop(...)
    

    after:

    const token = await sdk.getToken(...)
    const nftDrop = await sdk.getNFTDrop(...)
    
    1. New Extension API for custom contracts

    When working with custom contracts using await sdk.getContract(...), we now expose all the convenient high level APIs for each ERC standard top level. Calling a function that is not supported in your contract will give you an error with instructions on how to unlock that functionality.

    before:

    const contract = await sdk.getContract(...)
    // ERC721 contracts
    const contract.nft?.drop?.claim?.to(...)
    const contract.nft?.drop?.claim?.conditions.set(...)
    // ERC1155 contracts
    const contract.edition?.mint?.to(...)
    // ERC20 contracts
    const contract.token?.burn.tokens(...)
    

    after:

    const contract = await sdk.getContract(...)
    // ERC721 contracts
    const contract.erc721.claimTo(...)
    const contract.erc721.claimConditions.set(...)
    // ERC1155 contracts
    const contract.erc1155.mintTo(...)
    // ERC20 contracts
    const contract.erc20.burn(...)
    

Patch Changes

2.4.9

Patch Changes

2.4.8

Patch Changes

2.4.7

Patch Changes

2.4.6

Patch Changes

2.4.5

Patch Changes

2.4.4

Patch Changes

2.4.3

Patch Changes

2.4.2

Patch Changes

2.4.1

Patch Changes

2.4.0

Minor Changes

  • 3abe26c: initialze monorepo packages

Patch Changes

2.3.43

Patch Changes

  • d4abb09: Add support for Binance chains (BSC)
  • 274afb5: make input/output versions of the release metadata schemas
  • 86e3b58: use storage helpers from @thirdweb-dev/storage
  • 0c78b16: Fix listening to a single contract event
  • Updated dependencies [86e3b58]