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

safe-global / safe-client-gateway / 13453624767 / 2
89%
main: 89%

Build:
DEFAULT BRANCH: main
Ran 21 Feb 2025 09:18AM UTC
Files 1621
Run time 40s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Feb 2025 09:12AM UTC coverage: 91.963% (+0.005%) from 91.958%
13453624767.2

push

github

web-flow
feat: only allow adding wallets with signature (#2345)

This modifies the current endpoint for adding a `Wallet` to a `User` to expect a SiWe `message` and `signature`, which must pass validation in order to succeed.

The `POST` `/v1/wallet/:walletAddress` endpoint now becomes `/v1/wallet/add`, which requires the original access token cookie, as well as the following request:

```ts
type Request = {
  message: string;
  signature: `0x${string}`
}
```

The `message` is parsed according to EIP-4362 (Sign-In with Ethereum) and the `signature` validated accordingly. The recovered address is that which a `Wallet` is created for.

As with other endpoints, the access token cookie is responsible for finding the `User` - the `address` of the token:

- Rename `POST` `/v1/wallet/:walletAddress` to `/v1/wallet/add`, and expect/validate payload
- Add `SiweMessageSchema`, responsible for parsing a string `message` to an object
- Add `ISiweRepository['getValidatedSiweMessage']`, responsible for returning a parsed/validated string `message` as an object
- Add/update tests accordingly

3091 of 3739 branches covered (82.67%)

Branch coverage included in aggregate %.

20619 of 22043 relevant lines covered (93.54%)

249.41 hits per line

Source Files on job run-test:cov - 13453624767.2
  • Tree
  • List 1621
  • Changed 243
  • Source Changed 5
  • Coverage Changed 222
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 13453624767
  • d989b2ab on github
  • Prev Job for on main (#13437334431.2)
  • Next Job for on main (#13453839703.1)
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