Skip to content

Commit

Permalink
Merge pull request #7 from zerodevapp/fix/hook-return-type
Browse files Browse the repository at this point in the history
fix: get public client from config
  • Loading branch information
jstinhw authored Apr 25, 2024
2 parents b3af94e + 727805d commit a96f7c4
Show file tree
Hide file tree
Showing 43 changed files with 3,002 additions and 2,693 deletions.
47 changes: 47 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$schema": "https://biomejs.dev/schemas/1.0.0/schema.json",
"files": {
"ignore": [
"node_modules",
"**/node_modules",
"cache",
"coverage",
"tsconfig.json",
"tsconfig.*.json",
"_cjs",
"_esm",
"_types",
"dist",
"bun.lockb"
]
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "warn"
},
"style": {
"noUnusedTemplateLiteral": "warn",
"noUselessElse": "off"
}
}
},
"formatter": {
"enabled": true,
"formatWithErrors": true,
"lineWidth": 80,
"indentWidth": 4,
"indentStyle": "space"
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"trailingComma": "none"
}
}
}
Binary file modified bun.lockb
Binary file not shown.
93 changes: 50 additions & 43 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,52 @@
{
"name": "@zerodev/waas",
"version": "0.1.4",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsup",
"dev": "tsup --watch"
},
"keywords": [],
"author": "ZeroDev",
"license": "MIT",
"dependencies": {
"@tanstack/react-query": "^5.28.14",
"@walletconnect/core": "^2.11.3",
"@walletconnect/encoding": "^1.0.2",
"@walletconnect/web3wallet": "^1.10.3",
"@zerodev/ecdsa-validator": "^5.2.3",
"@zerodev/passkey-validator": "^5.2.3",
"@zerodev/permissions": "^5.2.2",
"@zerodev/sdk": "^5.2.4",
"@zerodev/session-key": "^5.2.2",
"events": "^3.3.0",
"lodash": "^4.17.21",
"permissionless": "^0.1.18",
"react": "^18.2.0"
},
"devDependencies": {
"@swc/core": "^1.4.11",
"@types/lodash": "^4.17.0",
"@types/react": "^18.2.73",
"tsup": "^8.0.2",
"typescript": "^5.4.3",
"viem": "^2.9.23",
"wagmi": "^2.5.20"
},
"peerDependencies": {
"@wagmi/core": ">=2.5.0",
"react": ">=18.2.0",
"typescript": ">=5.4.3",
"viem": ">=2.5.0",
"wagmi": ">=2.5.0"
}
"name": "@zerodev/waas",
"version": "0.1.5-alpha.0",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"format": "biome format . --write",
"lint": "biome check .",
"lint:fix": "bun run lint --apply"
},
"keywords": [],
"author": "ZeroDev",
"license": "MIT",
"dependencies": {
"@walletconnect/core": "^2.11.3",
"@walletconnect/encoding": "^1.0.2",
"@walletconnect/web3wallet": "^1.10.3",
"@zerodev/ecdsa-validator": "^5.2.3",
"@zerodev/passkey-validator": "^5.2.3",
"@zerodev/permissions": "^5.2.2",
"@zerodev/sdk": "^5.2.4",
"@zerodev/session-key": "^5.2.2",
"events": "^3.3.0",
"lodash": "^4.17.21"
},
"devDependencies": {
"@biomejs/biome": "^1.7.1",
"@swc/core": "^1.4.11",
"@tanstack/react-query": "^5.28.14",
"@types/lodash": "^4.17.0",
"@types/react": "^18.2.73",
"react": ">=18.2.0",
"react-dom": ">=18",
"simple-git-hooks": "^2.11.1",
"tsup": "^8.0.2",
"typescript": "^5.4.3"
},
"peerDependencies": {
"@tanstack/react-query": "^5.28.14",
"@wagmi/core": ">=2.5.0",
"react": ">=18.2.0",
"typescript": ">=5.4.3",
"viem": ">=2.5.0",
"wagmi": ">=2.5.0"
},
"simple-git-hooks": {
"pre-commit": "bun run format && bun run lint:fix"
}
}
126 changes: 63 additions & 63 deletions src/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
export {
useWalletConnect,
type UseWalletConnectParameters,
type UseWalletConnectReturnType,
useWalletConnect,
type UseWalletConnectParameters,
type UseWalletConnectReturnType
} from "./useWalletConnect"

export {
useCreateBasicSession,
type UseCreateBasicSessionReturnType,
type CreateBasicSessionVariables,
type CreateBasicSessionReturnType,
export {
useCreateBasicSession,
type UseCreateBasicSessionReturnType,
type CreateBasicSessionVariables,
type CreateBasicSessionReturnType
} from "./useCreateBasicSession"

export {
useCreateSession,
type UseCreateSessionReturnType,
type CreateSessionVariables,
type CreateSessionReturnType,
export {
useCreateSession,
type UseCreateSessionReturnType,
type CreateSessionVariables,
type CreateSessionReturnType
} from "./useCreateSession"

export {
useCreateKernelClientEOA,
type UseCreateKernelClientEOAParameters,
type UseCreateKernelClientEOAReturnType,
type CreateKernelClientEOAVariables,
type CreateKernelClientEOAReturnType,
export {
useCreateKernelClientEOA,
type UseCreateKernelClientEOAParameters,
type UseCreateKernelClientEOAReturnType,
type CreateKernelClientEOAVariables,
type CreateKernelClientEOAReturnType
} from "./useCreateKernelClientEOA"

export {
useCreateKernelClientPasskey,
type UseCreateKernelClientPasskeyParameters,
type UseCreateKernelClientPasskeyReturnType,
type CreateKernelClientPasskeyVariables,
type CreateKernelClientPasskeyReturnType,
export {
useCreateKernelClientPasskey,
type UseCreateKernelClientPasskeyParameters,
type UseCreateKernelClientPasskeyReturnType,
type CreateKernelClientPasskeyVariables,
type CreateKernelClientPasskeyReturnType
} from "./useCreateKernelClientPasskey"

export {
useKernelClient,
type UseKernelClientParameters,
type UseKernelClientReturnType,
type GetKernelClientReturnType,
export {
useKernelClient,
type UseKernelClientParameters,
type UseKernelClientReturnType,
type GetKernelClientReturnType
} from "./useKernelClient"

export {
useSendUserOperation,
type UseSendUserOperationParameters,
type UseSendUserOperationReturnType,
type SendUserOperationVariables,
type SendUserOperationReturnType
export {
useSendUserOperation,
type UseSendUserOperationParameters,
type UseSendUserOperationReturnType,
type SendUserOperationVariables,
type SendUserOperationReturnType
} from "./useSendUserOperation"

export {
useSendUserOperationWithSession,
type UseSendUserOperationWithSessionParameters,
type UseSendUserOperationWithSessionReturnType,
type SendUserOperationWithSessionVariables,
type SendUserOperationWithSessionReturnType,
export {
useSendUserOperationWithSession,
type UseSendUserOperationWithSessionParameters,
type UseSendUserOperationWithSessionReturnType,
type SendUserOperationWithSessionVariables,
type SendUserOperationWithSessionReturnType
} from "./useSendUserOperationWithSession"

export {
useSessionKernelClient,
type UseSessionKernelClientParameters,
type UseSessionKernelClientReturnType,
type GetSessionKernelClientReturnType
export {
useSessionKernelClient,
type UseSessionKernelClientParameters,
type UseSessionKernelClientReturnType,
type GetSessionKernelClientReturnType
} from "./useSessionKernelClient"

export {
useSessions,
type useSessionsReturnType,
export {
useSessions,
type useSessionsReturnType
} from "./useSessions"

export {
useSetKernelClient,
type UseSetKernelClientReturnType,
type SetKernelClientReturnType,
export {
useSetKernelClient,
type UseSetKernelClientReturnType,
type SetKernelClientReturnType
} from "./useSetKernelClient"

export {
useDisconnectKernelClient,
type UseDisconnectKernelClientReturnType,
type DisconnectKernelClientReturnType,
export {
useDisconnectKernelClient,
type UseDisconnectKernelClientReturnType,
type DisconnectKernelClientReturnType
} from "./useDisconnectKernelClient"

export {
useBalance,
type UseBalanceParameters,
type UseBalanceReturnType,
type GetBalanceReturnType,
} from "./useBalance";
useBalance,
type UseBalanceParameters,
type UseBalanceReturnType,
type GetBalanceReturnType
} from "./useBalance"
Loading

0 comments on commit a96f7c4

Please sign in to comment.