{"repo":"0xSplits/splits-sdk","free":true,"listed":false,"github":"https://github.com/0xSplits/splits-sdk","clone":"git clone https://github.com/0xSplits/splits-sdk.git","description":"An SDK for building apps on top of 0xSplits","language":"TypeScript","stars":41,"topics":["ethereum","sdk","typescript"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Splits SDK Developer tools for integrating with the 0xSplits contracts and subgraph data Packages Package Description ---------------------------------------------- :----------------------------------------------- splits-sdk Core package for integrating with 0xSplits splits-sdk-react A wrapper of splits-sdk with helpful React Hooks splits-kit Pre-built React components for 0xSplits Testing Update the .env file with appropriate values for the variables present here. If you see any failing forked tests it could be because of the outdated block number, make sure to update it to the most recent one. This should be automated in the future. Run mocked tests with pnpm run test . Run forked tests with pnpm run vitest . note: when writing forked tests make sure to add fork in the test file name. e.g. my-test-fork.test.ts . Local development Build the packages From the root directory: Local linking Can use yalc to link the locally built sdk to other projects. In the package you want to link, run: In the project you want to link to, run (replace @0xsplits/splits-sdk with whatever package you are linking to the local package): To unlink the package, run: Update versions and prepare for npm publish From the root directory: Publish to npm From each package directory that you want to publish: If you want to publish an alpha/beta version, apply the appropriate tag: Creating a Release Once you are done publishing all the packages, create a release on GitHub. The release version should match t","default_branch":null,"files":null,"tree":[],"storefront":"/r/0xSplits","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/0xSplits/splits-sdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}