Create umbruella package#27
Conversation
…eed up base branch sync (cowprotocol#354) * chore: switch to pnpm and update Node.js to v20 * chore: reorganize project structure under packages/cow-sdk * feat: init monorepo structure with Turborepo * chore: format codebase with pnpm script * chore: eslint config. * chore: update lint config, .npmrc, and VSCode settings * feat: copy entire src, tests folders, and package/tsconfig files from app-data project into the monorepo * feat: add typescript-config * feat: create common package with abstract adapter and context classes * feat: implement adapters for ethers v5, ethers v6, and viem * chore: update pnpm-lock * chore: remove appdata and cow-sdk from build * feat: create config package * chore: fix eslint tsconfig path * feat: refactor config * chore: update pnpm-lock * feat: add contracts-ts package * feat: refactor contracts-ts * feat: update adapters with new contracts-ts features * feat: add tests for contracts-ts * feat: move order-signing to new package * feat: refactor order-signing * feat: add new order-signing features to adapters * feat: refactor order-signing tests * feat: implement adapter usage in app-data; update app-data config and test files * chore: update pnpm-lock file * chore: fix lint and remove cow-sdk from lint. * chore: update sdk-config tsconfig * feat: add contracts-ts package * feat: refactor contracts-ts * feat: update adapters with new contracts-ts features * feat: add tests for contracts-ts * chore: update contracts-ts config * chore(order-book): move order-book to monorepo package * restore: bring back deleted type files with their history * restore: bring back deleted config and path files with their history * refactor: move cow-error and wallets.ts and remove duplicate types * feat(order-book): setup order-book package, jest and tsconfig * feat(order-book): refact order-book * feat(monorepo-config): adjust all package.json and scripts * chore(lint): lint * chore(subgraph): move subgraph to monorepo package * chore(subgraph): create package, tsconfig and jest config * feat(subgraph): refactor subgraph package * chore(subgraph): update pnpm-lock and run lint * chore: add hashDomain to abstract utils * feat: move composable package from original sdk to refactor sdk * chore(subgraph): move cow-shed to monorepo package * chore(cow-shed): copy wallets.ts * feat(cow-shed): create package.json and tsconfig.json * feat(cow-shed): add estimateGas method to SignerAdapters * feat: refactor composable module to be framework-agnostic * feat: enhance adapters and utils with composable features * chore: move composable tests file to composable/tests * feat: update tests to work with ethersV5 adapter * feat: enhance composable to test the 3 adapters * chore: remove console logs * feat(cow-shed): refact on common and contract-ts * chore(cow-shed): rename CowShedHooks test file * feat(cow-shed): refact cow-she to use adapters and fix tests * fix(cow-shed): fix adapters - estimateGas and encodeAbi * chore: lint files * chore: move constants to sdk-common * feat: update Node.js to version 22 * chore: align settings.json with .editorconfig configuration. * chore: adjust cow-shed hooks test * chore: add check to verify if the signature is the same across all three adapters in cowshedHooks test * chore: apply PR suggestions * chore: update pnpm-lock.json * fix: viemUtils encodeAbi --------- Co-authored-by: Jean Neiverth <jeanneiverth@gmail.com> Co-authored-by: Jean Neiverth <79885562+jean-neiverth@users.noreply.github.com>
|
I have read the CLA Document and I hereby sign the CLA 0 out of 2 committers have signed the CLA. |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
| @@ -0,0 +1 @@ | |||
| export * from './CowSdk' | |||
There was a problem hiding this comment.
shouldn't we export the types as well ?
There was a problem hiding this comment.
Yes, I will add this export. Tks!
| @@ -0,0 +1,78 @@ | |||
| { | |||
| "name": "@cowprotocol/sdk", | |||
There was a problem hiding this comment.
👍 all other ones then are a subspace of this right?
| @@ -0,0 +1,9 @@ | |||
| { | |||
| "extends": "@repo/typescript-config/base.json", | |||
There was a problem hiding this comment.
again this is not referencing anything ❌ https://turborepo.com/docs/crafting-your-repository/structuring-a-repository#name
This PR introduces the umbrella package to simplify SDK usage and centralize the initialization of all packages.
It provides a unified entry point, similar to the CowSdk, giving users streamlined access to all modules through a single interface.