Skip to content

Commit

Permalink
feat: re-export a few ethers utils
Browse files Browse the repository at this point in the history
  • Loading branch information
sampullman committed Nov 9, 2024
1 parent ea30268 commit b5a4bea
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
20 changes: 20 additions & 0 deletions lib/providers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,23 @@ export * from './i-provider'
export * from './provider-config'
export * from './use-metamask'
export * from './use-walletconnect'

import {
hexlify,
isHexString,
isAddress,
formatEther,
formatUnits,
parseEther,
parseUnits,
} from 'ethers'

export const ethers = {
hexlify,
isHexString,
isAddress,
formatEther,
formatUnits,
parseEther,
parseUnits,
}
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@
},
"dependencies": {
"@metamask/detect-provider": "^2.0.0",
"ethers": "6.13.2"
"ethers": "6.13.4"
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@types/node": "22.7.3",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"@types/node": "22.9.0",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"@vitejs/plugin-vue": "^5.1.4",
"concurrently": "^7.1.0",
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.30.0",
"typescript": "^5.6.2",
"vite": "^5.4.8",
"concurrently": "^9.1.0",
"eslint": "^9.14.0",
"eslint-plugin-import": "^2.31.0",
"typescript": "^5.6.3",
"vite": "^5.4.10",
"vite-plugin-dts": "4.2.2",
"vite-plugin-node-polyfills": "^0.22.0"
}
}
}

0 comments on commit b5a4bea

Please sign in to comment.