• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cowprotocol / cow-sdk / 13834506181

13 Mar 2025 12:24PM UTC coverage: 78.779% (+1.6%) from 77.229%
13834506181

push

github

web-flow
feat: implement cow shed sdk (#247)

* feat: implement cow-shed sdk

* docs: improve docs

* chore: simplify

* docs: add comment

* fix: fix compile errors

* docs: fix comment

* feat: allow to provide signing scheme

* chore: move static method to const

* chore: add async in the methods

* docs: add docs to the SDK

* test: unit tests for CowShedSdk

* feat: improve error handling and messages for estimation errors

* fix: fix error serializing the JSON

* fix: use native bigint instead of ethers one

* fix: move hooks cache to instance property instead of static one

* fix: tests

* fix: fix broken provider

* refactor: remove duplication for mocking fetch

* fix: delete empty file

---------

Co-authored-by: shoom3301 <shoom3301@gmail.com>

311 of 426 branches covered (73.0%)

Branch coverage included in aggregate %.

38 of 43 new or added lines in 4 files covered. (88.37%)

3 existing lines in 1 file now uncovered.

721 of 884 relevant lines covered (81.56%)

19.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.62
/src/common/utils/serialize.ts
1
export const jsonReplacer = (_key: string, value: unknown) => {
1✔
2
  // Handle BigInt
3
  if (typeof value === 'bigint') {
20✔
4
    return value.toString()
5✔
5
  }
6
  // Handle BigNumber (if you're using ethers.BigNumber)
7
  if (typeof value === 'object' && value !== null && '_isBigNumber' in value) {
15!
NEW
8
    return value.toString()
×
9
  }
10
  return value
15✔
11
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc