Skip to content

Releases: thirdweb-dev/js

@thirdweb-dev/auth@4.1.84

22 May 04:35
71da068
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies []:
    • @thirdweb-dev/wallets@2.5.26

thirdweb@5.22.1

17 May 10:29
85b5a6d
Compare
Choose a tag to compare

Patch Changes

thirdweb@5.22.0

17 May 06:35
f4508e4
Compare
Choose a tag to compare

Minor Changes

  • #3001 726618b Thanks @gregfromstl! - Adds basic EIP-5792 support for wallets with functions getCapabilities, sendCalls, showCallsStatus, getCallsStatus.

    Example Usage

    getCapabilities

    Returns the capabilities of the wallet according to EIP-5792.

    import { getCapabilities } from "thirdweb/wallets/eip5792";
    
    const capabilities = await getCapabilities({ wallet });

    sendCalls

    Sends the given calls to the wallet for execution, and attempts to fallback to normal execution if the wallet does not support EIP-5792.

    import { sendCalls } from "thirdweb/wallets/eip5792";
    
    const transfer1 = transfer({
      contract: USDC_CONTRACT,
      amount: 5000,
      to: "0x33d9B8BEfE81027E2C859EDc84F5636cbb202Ed6",
    });
    
    const transfer2 = transfer({
      contract: USDT_CONTRACT,
      amount: 1000,
      to: "0x33d9B8BEfE81027E2C859EDc84F5636cbb202Ed6",
    });
    
    const bundleId = await sendCalls({
      wallet,
      client,
      calls: [transfer1, transfer2],
    });

    showCallsStatus

    Requests the wallet to show the status of a given bundle ID.

    import { showCallsStatus } from "thirdweb/wallets/eip5792";
    
    await showCallsStatus({ wallet, bundleId });

    getCallsStatus

    Returns the status of the given bundle ID and the transaction receipts if completed.

    import { getCallsStatus } from "thirdweb/wallets/eip5792";
    
    const status = await getCallsStatus({ wallet, bundleId });

Patch Changes

@thirdweb-dev/wallets@2.5.25

17 May 10:28
85b5a6d
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [9a9ec97]:
    • @thirdweb-dev/chains@0.1.111
    • @thirdweb-dev/sdk@4.0.85

@thirdweb-dev/wallets@2.5.24

17 May 06:34
f4508e4
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [c417bda, 46492bb]:
    • @thirdweb-dev/sdk@4.0.84
    • @thirdweb-dev/chains@0.1.110

@thirdweb-dev/unity-js-bridge@0.6.34

17 May 10:28
85b5a6d
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [9a9ec97]:
    • @thirdweb-dev/chains@0.1.111
    • @thirdweb-dev/sdk@4.0.85
    • @thirdweb-dev/wallets@2.5.25
    • @thirdweb-dev/auth@4.1.83

@thirdweb-dev/unity-js-bridge@0.6.33

17 May 06:34
f4508e4
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [c417bda, 46492bb]:
    • @thirdweb-dev/sdk@4.0.84
    • @thirdweb-dev/chains@0.1.110
    • @thirdweb-dev/wallets@2.5.24
    • @thirdweb-dev/auth@4.1.82

@thirdweb-dev/service-utils@0.4.30

17 May 06:34
f4508e4
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/sdk@4.0.85

17 May 10:28
85b5a6d
Compare
Choose a tag to compare

Patch Changes

@thirdweb-dev/sdk@4.0.84

17 May 06:34
f4508e4
Compare
Choose a tag to compare

Patch Changes