Skip to content

v4.15.0

Compare
Choose a tag to compare
@0xFirekeeper 0xFirekeeper released this 04 Jun 00:39
86c4d43

What's Changed

Removed all ThirdwebManager Instance references from internal code, meaning you can now instantiate the ThirdwebSDK or wrap it more easily in your own scripts.

The above change comes with a few breaking changes, as some code was rewritten and cleaned up to be more efficient and stable as we move towards Unity v5 which will mostly make use of our .NET SDK once cross-platform feature parity is achieved.

Breaking changes include:

  • Wallet.AuthenticateAndLoginServerSide is now just Authenticate.
    • The old Wallet.Authenticate and Wallet.Verify methods no longer exist as they were not useful client-side.
    • Nethereum.SIWE, Nethereum.SIWE.Core and Nethereum.GnosisSafe DLLs have been removed.
  • Pay is no longer static, you must now go through SDK.Pay.*
  • Blocks is no longer static, you must now go through SDK.Blocks.*
  • Raw Transaction constructor (not through Contract.Prepare) now takes in a ThirdwebSDK reference.
  • Most other raw constructors take in ThirdwebSDK or new parameters.
  • Some Utils now require additional parameters.

We still recommend using the ThirdwebManager if you are not familiar enough with the SDK and the values it expects for different use cases.

Additional Updates

  • [Cross-Platform] Added support for new chains.
  • [WebGL] Updated bridge.
  • [Native] Improved 1559 gas estimation for various chains, and added logic to handle edge cases and fallback gracefully.
    • 1559 estimations were previously overriden on some chains, all chains now properly estimate 1559 fees with the exception of Celo.
    • This should increase consistency with transaction submission speed and potentially reduce gas costs.
    • Added a ceiling for RPC providers that may return overestimate priority fees, making sure to avoid overpaying in such cases.
  • [Native] Smart Wallets now "just work" on ZkSync Sepolia and ZkSync Mainnet, all you need is to connect and set gasless to true.
    • Unlike other chains, ZkSync Smart Wallets simply "upgrade" your EOA and preserve their address.
    • All EOA wallets are supported.
    • You may transact gaslessly using ZkSync Smart Wallets on Mainnet and Sepolia using thirdweb infrastructure.
    • A client id is needed to enable this feature, make sure you set it in your ThirdwebManager!

This is a minor update, meaning some structural or api-breaking changes occured. When upgrading, it is best to remove previous SDK files for a smooth importing process, backing up any prefab copies or scripts extending or overriding thirdweb prefabs and scripts.