Skip to content

Releases: 0xSplits/splits-sdk

v6.4.1

22 Jan 06:58

Choose a tag to compare

What's Changed

  • Add balance field to per-contract earnings, fix top-level user balances by @mihoward21 in #90
  • Add Tempo testnet chain support by @mihoward21 in #91

Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@6.2.0...@0xsplits/splits-sdk@6.4.1

v6.2.0

21 Nov 00:26

Choose a tag to compare

What's Changed

  • chore: cap recipients to 400/500 dep. on type by @0xdiid in #85
  • Add claude.md and avalanche for splits v2 by @mihoward21 in #86

New Contributors

Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@6.1.0...@0xsplits/splits-sdk@6.2.0

v6.1.0

24 Sep 06:02

Choose a tag to compare

What's Changed

  • feat: add support for new universal swapper contract by @r0ohafza in #84

Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@6.0.3...@0xsplits/splits-sdk@6.1.0

v6.0.3

08 Sep 15:31

Choose a tag to compare

v6.0.0

14 Jul 18:59

Choose a tag to compare

What's Changed

A new version of the Split contracts (v2.2) have been launched, which includes new factories and splitters. No changes are needed to start using the new contracts. Calling SplitV2Client.createSplit(args) will now create a v2.2 Split instead of a v2.1 Split. The other functions (i.e. distribute) will also work with no changes, and they will work for both v2 Splits and v2.1 Splits. For more information see here.

Breaking SDK changes

  • By default the splits v2 client now creates v2.2 splits.
  • In order to interact/create v2.0 and v2.1 splits you can now pass the version in the createSplitV2Config.
  • We got rid of all _ prefixed functions that were added to support interactions for older v2 splits.
    1. _isDeployedOldV2
    2. _createSplitOldV2
    3. _predictDeterministicAddressOldV2
  • controllerAddress has been renamed to ownerAddress in SplitV2 type.

Breaking react SDK changes

  • _useCreateSplitOldV2 has been deprecated. If you want to created older versions of the split you can use useCreateSplit and pass the appropriate version as mentioned above.

Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@5.1.0...@0xsplits/splits-sdk@6.0.0

v5.1.0

15 May 18:58

Choose a tag to compare

v5.0.2

07 May 21:05

Choose a tag to compare

What's Changed

Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@4.1.1...@0xsplits/splits-sdk@5.0.2

v5.0.1

26 Apr 05:02

Choose a tag to compare

What's Changed

Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@5.0.0...@0xsplits/splits-sdk@5.0.1

v5.0.0

12 Feb 18:59

Choose a tag to compare

v4 --> v5 Migration Guide

What's Changed

  • A new version of the Split contracts (v2.1) have been launched, including new factories. No changes are needed to start using the new contracts. Calling SplitV2Client.createSplit(args) will now create a v2.1 Split instead of a v2 Split. The only difference in the contracts are that the v2 Split could not properly handle non-compliant ERC20 tokens (e.g. USDT on mainnet). The v2.1 Split can handle those tokens. The other functions (i.e. distribute) will also work with no changes, and they will work for both v2 Splits and v2.1 Splits. For more information see here.
  • Splits Kit v1 has launched. It is a wrapper around the Splits React SDK, providing easy React components to plug into your application. It currently supports a CreateSplit component and a DisplaySplit component. Documentation is here, you can see the components being used at Splits Lite which is a publicly available repo.
  • Dropped support for viem v1. All three packages (splits-sdk, splits-sdk-react, and splits-kit) require viem v2.

Breaking Changes

  • Need to upgrade to viem v2 if you are using v1. See here.
  • All data hooks in the react sdk now have the same return values: isLoading, data, status, error. The hooks that were specifically changed: useSplitMetadataViaProvider, useSplitMetadata, useSplitEarnings, useContractEarnings, useLiquidSplitMetadata, useSwapperMetadata, useUserEarnings, useUserEarningsByContract, useVestingMetadata, useWaterfallMetadata.
  • All data hooks should just take in the required args, and then an optional options dictionary. Any optional args now go into that dictionary. The updated hooks: useSplitEarnings, useContractEarnings.
  • Added _ to the start of all the submit functions. They are not meant to be called directly, so added an underscore to make that more clear.

Full Changelog: https://github.com/0xSplits/splits-sdk/compare/@0xsplits/splits-sdk@4.1.1...@0xsplits/splits-sdk@5.0.0

v4.1.1

22 Jan 22:17

Choose a tag to compare

What's Changed

Full Changelog: https://github.com/0xSplits/splits-sdk/commits/@0xsplits/splits-sdk@4.1.1