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

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

Build:
DEFAULT BRANCH: main
Ran 06 Mar 2024 12:11PM UTC
Jobs 2
Files 588
Run time 1min
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

06 Mar 2024 12:07PM UTC coverage: 93.172% (+0.01%) from 93.159%
8171773380

push

github

web-flow
Guard adding/removing recovery contracts (#1247)

This adds guards to the following routes for addding/removing recovery contracts from Tenderly:

### `POST` `/v1/chains/:chainId/safes/:safeAddress/recovery`

A signature is required in order to successfully add a recovery contract. The following message need be signed (where ${} represents placeholder values for the respective data):

`enable-recovery-alerts-${chainId}-${safeAddress}-${moduleAddress}-${signer}-${timestamp}`

 To use this guard, the route should have:

- the `chainId` as part of the path parameters
- the `safeAddress` as part of the path parameters
- the `moduleAddress` as part of the JSON body (top level - unchanged)
- the `signer` as part of the JSON body (top level - new)
- the `Safe-Wallet-Signature` header set to the signature
- the `Safe-Wallet-Signature-Timestamp` header set to the signature timestamp

On top of this, the 'Safe-Wallet-Signature-Timestamp' need be within the past 5 minutes and the 'signer' an owner of the Safe.

### `DELETE` `chains/:chainId/safes/:safeAddress/recovery/:moduleAddress`

A signature is required in order to successfully remove a recovery contract. The following message need be signed (where ${} represents placeholder values for the respective data):

`enable-recovery-alerts-${chainId}-${safeAddress}-${moduleAddress}-${signer}-${timestamp}`

 To use this guard, the route should have:

- the `chainId` as part of the path parameters
- the `safeAddress` as part of the path parameters
- the `moduleAddress` as part of the JSON body (top level - unchanged)
- the `signer` as part of the JSON body (top level - new)
- the `Safe-Wallet-Signature` header set to the signature
- the `Safe-Wallet-Signature-Timestamp` header set to the signature timestamp

On top of this, the 'Safe-Wallet-Signature-Timestamp' need be within the past 5 minutes and the 'signer' an owner of the Safe.

1742 of 2110 branches covered (82.56%)

Branch coverage included in aggregate %.

41 of 45 new or added lines in 4 files covered. (91.11%)

1 existing line in 1 file now uncovered.

6445 of 6677 relevant lines covered (96.53%)

346.43 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
92.86
src/routes/recovery/guards/disable-recovery-alerts.guard.ts
2
92.86
src/routes/recovery/guards/enable-recovery-alerts.guard.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
80.0
0.0% src/routes/transactions/entities/__tests__/human-description.builder.ts
Jobs
ID Job ID Ran Files Coverage
1 run-test:cov - 8171773380.1 06 Mar 2024 12:11PM UTC 1165
93.45
GitHub Action Run
2 run-test:e2e:cov - 8171773380.2 06 Mar 2024 12:13PM UTC 1016
51.55
GitHub Action Run
Source Files on build 8171773380
  • Tree
  • List 588
  • Changed 218
  • Source Changed 2
  • Coverage Changed 149
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #8171773380
  • 3d01fc15 on github
  • Prev Build on main (#8171663044)
  • Next Build on main (#8172013728)
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