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

safe-global / safe-core-sdk-react-hooks / 10474849315
96%

Build:
DEFAULT BRANCH: main
Ran 20 Aug 2024 03:48PM UTC
Jobs 1
Files 28
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

20 Aug 2024 03:46PM UTC coverage: 95.912% (+0.2%) from 95.699%
10474849315

push

github

web-flow
feat: Send + confirm transactions (#8)

* Add prettier config

* Fix dist paths in package.json

* Add `SafeProvider` component

* Add `useConfig` hook which provides the SafeConfig from the nearest SafeProvider

* Add `useSafeClient` hook which provides a SafeClient instance

* Add WagmiProvider + QueryClientProvider

* Add `useSafeInfo` hook which provides a Safe's address, nonce, threshold, owners and whether it is deployed

Update `useSafeClient` hook to return a function resolving with the curent SafeClient instance

* Add `useBalance` hook to get a Safe's balance

* Refactor SafeProvider to use createElement for better performance

* Define `@/...` as import path alias

* Basic unit test setup with dependencies and configs

* Add tests for `useConfig` hook

* Add tests for `useBalance` hook

* Update `useSafeClient` hook to directly return the SafeClient instance

* Add unit tests for `useSafeClient` hook

* Add test folder for utils + fixtures

* Add unit tests for `useSafeInfo` hook

* Extend SafeConfig by chain prop + add `createConfig` function to generate a config object

* Update config fixtures for testing

* Fix dist paths in package.json

* Add unit tests for `createConfig`

* Add `useChain` hook for retrieving the configured chain + unit tests

* Rename `src/context.ts` to `src/SafeProvider.ts`

* Unit test for `SafeProvider`

* Refactor `useBalance` hook and tests

* Improve types for `useConfig` hooks

* Improve types for `renderHookInSafeProvider` util function

* Implement `useSafe` hook + tests

* Add private keys for testing to fixtures

* Extend query key in `useSafeInfo` by config object to make it unique per config

* Fix tests for `useSafeInfo` hook

* Improve types for createConfig

* Add `useSignerAddress` hook + unit tests

* Add getSignerAddress function to `useSafe` hook

* Extend SafeContext by `setConfig` function to update the global config object
... (continued)

45 of 52 branches covered (86.54%)

Branch coverage included in aggregate %.

39 of 39 new or added lines in 10 files covered. (100.0%)

260 of 266 relevant lines covered (97.74%)

13.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10474849315.1 20 Aug 2024 03:48PM UTC 0
95.91
GitHub Action Run
Source Files on build 10474849315
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10474849315
  • babe39b8 on github
  • Prev Build on main (#10474367124)
  • Next Build on main (#10848263362)
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