Skip to content

Commit 6c68529

Browse files
yoanslvymathieulrl
andauthored
Develop (#80)
* feat/sdk-lite (#75) * feat/sdk-lite-init-commit * add: example for sdk lite * update: contractParams passed by user * remove: api key in example sdk lite * refacto: remove unused code * clean: lightening sdk * add: default safe contract config * fix: counter number in example * remove contractParams in example * update: doc comments * delete: sessionKey and importSafe pages in example * remove eip5792 & erc7715 actions in sdk lite * update Readme * clean * update Readme * clean: remove unnessary code * update: store account address in local storage in example * clean: unused dependencies in package.json * fix: typings * update: naming --------- Co-authored-by: yoanslvy <97676023+yoanslvy@users.noreply.github.com> * fix: typo * Sdk core/new features (#77) * feat/ add capabilities & safeOwner actions * add: eip1193Actions in createClient * update: capabilities example with sdk core * add: safeOwner tests in sdk core demo * update: viem version * update: sdk version * feat/session-keys sdk (#76) * feat/session-keys sdk * lint * make session-keys sdk agnostic to any safe smart account client * feat: toSmartSessionsAccount * add: session keys example * update: bun.lock * fix: typings errors * export type SafeSigner * update: use permissionless in example * fix: typing error in applyDefaults * update: smartAccountClient type in toSessionsSigner * WIP: fix type error in example * add: addSafe7579Module function * add: SmartSessionsAccountClient type * update: example session keys * update: package version * remove: bun.lock file * update: viem version * update: readme --------- Co-authored-by: Mathieu LARUELLE <95310781+mathieulrl@users.noreply.github.com>
1 parent 7604f0f commit 6c68529

File tree

143 files changed

+12479
-548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+12479
-548
lines changed

bun.lockb

-459 KB
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
NEXT_PUBLIC_4337_BUNDLER_URL="https://bundler.cometh.io/CHAIN_ID?apikey="
2+
NEXT_PUBLIC_4337_PAYMASTER_URL="https://paymaster.cometh.io/CHAIN_ID?apikey="

examples/sdk-core-demo/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
.next
3+
.env
4+
5+
# misc
6+
.DS_Store
7+
.vscode

examples/sdk-core-demo/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Cometh getting started example
2+
3+
Discover all the cometh tools here: [our documentation](https://docs.cometh.io/).
4+
5+
## Installation
6+
7+
> Don't forget to add `cometh-demo.eu.auth0.com` to your project's authorized domains on https://app.cometh.io/.
8+
9+
Clone the repo and run `yarn install`
10+
11+
Setup your .env file from the .env.example file.
12+
13+
## Start
14+
15+
After the successfull installation of the packages: `yarn dev`
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
output: "standalone",
4+
experimental: {
5+
esmExternals: "loose",
6+
},
7+
};
8+
9+
module.exports = nextConfig;
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "sdk-lite-example",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev --port 3006",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint",
10+
"deploy-safe": "tsx ./scripts/deploySafe.ts",
11+
"prediction": "tsx ./scripts/predictionAddress.ts"
12+
},
13+
"dependencies": {
14+
"@cometh/connect-sdk": "^1.2.31",
15+
"@cometh/connect-core-sdk": "workspace:*",
16+
"@radix-ui/react-icons": "^1.3.0",
17+
"@radix-ui/react-slot": "^1.0.2",
18+
"@rhinestone/module-sdk": "^0.2.3",
19+
"@types/node": "20.3.2",
20+
"@types/react": "18.2.14",
21+
"@types/react-dom": "18.2.6",
22+
"autoprefixer": "10.4.14",
23+
"class-variance-authority": "^0.6.1",
24+
"clsx": "^1.2.1",
25+
"dotenv": "^16.4.7",
26+
"eslint": "8.43.0",
27+
"eslint-config-next": "13.4.7",
28+
"next": "13.4.7",
29+
"next-auth": "^4.23.1",
30+
"nextjs-cors": "^2.1.2",
31+
"permissionless": "^0.2.36",
32+
"postcss": "8.4.24",
33+
"react": "18.2.0",
34+
"react-confetti": "^6.1.0",
35+
"react-dom": "18.2.0",
36+
"react-feather": "^2.0.10",
37+
"tailwind-merge": "^1.13.2",
38+
"tailwindcss": "3.3.2",
39+
"tailwindcss-animate": "^1.0.6",
40+
"tsx": "^4.19.3",
41+
"typescript": "^5",
42+
"viem": "^2.24.3"
43+
}
44+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)