Skip to content

Commit

Permalink
feat(auth-kit): SafeAuthPack (safe-global#575)
Browse files Browse the repository at this point in the history
* Add provider info

* Use sdk personal sign

* signOut with option

* Remove provider

* Sign safe transaction

* Test in gnosis chain

* Use ethers provider

* Update naming from Web3Auth to SafeAuth

* Renaming and persistent login

* Add tests

* set selected safe

* Add clearInit call in pack

* Remove signTransaction

* Fix typed Data sign

* Add test with ethers signer

* Added proposed transaction instead execute to check signature

* Throw error if the provider is not the web3auth one

* use SafeTx as typedData

* Metamask verify

* Update example sign and execute code

* sign transactions for testing purposes

* Remove @toruslabs/ethereum-controllers

* Publish

 - @safe-global/[email protected]

* Fix wrong chain in example app
  • Loading branch information
yagopv authored Nov 30, 2023
1 parent 2216f6f commit 9305d0c
Show file tree
Hide file tree
Showing 29 changed files with 7,793 additions and 2,698 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,6 @@ openapi/
.idea

.yalc
yalc.lock
yalc.lock
# Local Netlify folder
.netlify
6 changes: 0 additions & 6 deletions packages/auth-kit/example/.env.sample

This file was deleted.

12 changes: 8 additions & 4 deletions packages/auth-kit/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,30 @@
"type": "module",
"scripts": {
"clean": "rm -rf node_modules/.vite",
"start": "yarn clean && vite"
"start": "yarn clean && vite",
"build": "vite build"
},
"dependencies": {
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@mui/material": "^5.11.7",
"@safe-global/api-kit": "file:../../api-kit",
"@safe-global/auth-kit": "file:../",
"@safe-global/protocol-kit": "file:../../protocol-kit",
"@safe-global/safe-core-sdk-types": "file:../../safe-core-sdk-types",
"@safe-global/safe-react-components": "^2.0.1",
"ethers": "^6.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
"@rollup/plugin-commonjs": "^24.0.1",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@vitejs/plugin-react": "^3.1.0",
"rollup-plugin-polyfill-node": "^0.12.0",
"typescript": "^4.9.3",
"vite": "^4.1.0"
"vite": "^4.1.0",
"vite-plugin-node-polyfills": "^0.16.0"
}
}
Loading

0 comments on commit 9305d0c

Please sign in to comment.