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

safe-global / safe-client-gateway / 7829609131
89%

Build:
DEFAULT BRANCH: main
Ran 08 Feb 2024 12:32PM UTC
Jobs 2
Files 536
Run time 49s
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

08 Feb 2024 12:30PM UTC coverage: 93.068% (+0.05%) from 93.019%
7829609131

push

github

web-flow
Add route to retrieve email address (#1116)

- Adds a new route to retrieve an email address: `GET /v1/chains/:chainId/safes/:safeAddress/emails/:signerAddress`
- This route returns the `emailAddress` and respective verification status for authenticated requests. If there are no emails associated with the signer a `404 Not Found` is returned. 

```
GET /v1/chains/:chainId/safes/:safeAddress/emails/:signerAddress

{
  email: <string>, // the signer's email address
  verified: <boolean>, // the current verification status of the email
}
```

- This new route requires two headers to be set:
  * `Safe-Wallet-Signature` – which includes the signature of the expected message
  * `Safe-Wallet-Signature-Timestamp` – which includes the timestamp that is signed with the message
- The expected message to be signed is: `email-retrieval-${chainId}-${safe}-${signer}-${timestamp}`
- A signature is only valid for 5 minutes. If a signature is re-used after these 5 minutes, a `403 Forbidden` is returned.

Future work:

We can move the authentication components to the headers instead for the other endpoints that require some sort of authentication. This decouples the authentication part with the payload part of each request which was an issue when building this `GET` endpoint.

1515 of 1819 branches covered (0.0%)

Branch coverage included in aggregate %.

5815 of 6057 relevant lines covered (96.0%)

181.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-test:e2e:cov - 7829609131.1 08 Feb 2024 12:32PM UTC 910
53.59
GitHub Action Run
2 run-test:cov - 7829609131.2 08 Feb 2024 12:33PM UTC 1067
93.87
GitHub Action Run
Source Files on build 7829609131
  • Tree
  • List 536
  • Changed 481
  • Source Changed 5
  • Coverage Changed 143
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #7829609131
  • b1a4b7fa on github
  • Prev Build on 1118-add-additional-logging-to-events-route (#7828677353)
  • Next Build on main (#7844930038)
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

© 2025 Coveralls, Inc