Skip to content

Commit 0b54f32

Browse files
committed
feat: scaffold @aave/react/viem and @aave/react/ethers
1 parent 9d1ac08 commit 0b54f32

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

packages/client/src/viem.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ export function sendWith(
6767
TxHash,
6868
SigningError | ValidationError<InsufficientBalanceError>
6969
> => {
70-
if ('hash' in result) {
71-
return okAsync(result.hash);
72-
}
73-
7470
invariant(
7571
walletClient,
7672
'Expected a WalletClient to handle the operation result.',

packages/react/package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,23 @@
1515
".": {
1616
"import": "./dist/index.js",
1717
"require": "./dist/index.cjs"
18+
},
19+
"./actions": {
20+
"types": "./dist/actions/index.d.cts",
21+
"import": "./dist/actions/index.js",
22+
"require": "./dist/actions/index.cjs"
1823
}
1924
},
2025
"typesVersions": {
2126
"*": {
22-
"import": [
23-
"./dist/index.d.ts"
27+
"actions": [
28+
"./dist/actions/index.d.ts"
29+
],
30+
"ethers": [
31+
"./dist/ethers/index.d.ts"
2432
],
25-
"require": [
26-
"./dist/index.d.cts"
33+
"viem": [
34+
"./dist/viem/index.d.ts"
2735
]
2836
}
2937
},

packages/react/src/ethers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

packages/react/src/viem.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

packages/react/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { defineConfig } from 'tsup';
33

44
export default defineConfig(() => ({
5-
entry: ['src/index.ts'],
5+
entry: ['src/index.ts', 'src/ethers.ts', 'src/viem.ts'],
66
outDir: 'dist',
77
splitting: false,
88
sourcemap: true,

0 commit comments

Comments
 (0)