Skip to content

Commit

Permalink
feat: complete full trezor interaction support
Browse files Browse the repository at this point in the history
  • Loading branch information
yankeguo committed Jul 1, 2024
1 parent e53897e commit d6e97c7
Show file tree
Hide file tree
Showing 7 changed files with 913 additions and 120 deletions.
4 changes: 3 additions & 1 deletion examples/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "@nomicfoundation/hardhat-ethers";
import "../dist/index";
import { HardhatUserConfig } from "hardhat/config";
import { task } from "hardhat/config";
Expand All @@ -14,7 +15,8 @@ task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
module.exports = {
solidity: "0.8.24",
networks: {
hardhat: {
sepolia: {
url: "https://sepolia.infura.io/v3/" + process.env.INFURA_API_KEY,
trezorAccountIndexes: [[44, 60, 0, 0, 0]],
},
},
Expand Down
23 changes: 7 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
"CHANGELOG.md"
],
"scripts": {
"prettier": "prettier . --write",
"protoc": "cd proto && protoc --plugin=../node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=../src/proto *.proto && npm run prettier",
"build": "npm run prettier && rimraf dist tsconfig.tsbuildinfo && tsc"
"format": "prettier . --write",
"build": "npm run format && rimraf dist tsconfig.tsbuildinfo && tsc"
},
"repository": {
"type": "git",
Expand All @@ -29,8 +28,10 @@
},
"homepage": "https://github.com/yankeguo/hardhat-trezor#readme",
"devDependencies": {
"@nomicfoundation/hardhat-ethers": "^3.0.6",
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
"@types/node": "^20.14.9",
"ethers": "^6.13.1",
"hardhat": "^2.22.5",
"prettier": "3.3.2",
"protobufjs-cli": "^1.1.2",
Expand Down
Loading

0 comments on commit d6e97c7

Please sign in to comment.