Skip to content

Commit

Permalink
@ethereumjs, typescript were updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkru69 committed Jan 18, 2024
1 parent 487ebd1 commit 4d63912
Show file tree
Hide file tree
Showing 14 changed files with 1,067 additions and 424 deletions.
17 changes: 0 additions & 17 deletions packages/tssdk/Dockerfile

This file was deleted.

14 changes: 6 additions & 8 deletions packages/tssdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"bip32": "1.0.2",
"bip39": "^3.0.4",
"bitcoinjs-lib": "3.3.2",
"bn.js": "^5.2.1",
"buffer": "^6.0.3",
"create-hash": "^1.2.0",
"crypto-browserify": "^3.12.0",
Expand All @@ -37,7 +36,7 @@
"safe-buffer": "^5.2.1",
"solc": "^0.8.14-fixed",
"stream-browserify": "^3.0.0",
"tsconfig-paths-webpack-plugin": "^3.5.2",
"tsconfig-paths-webpack-plugin": "^4.1.0",
"util": "^0.12.4",
"web3-eth-abi": "^4.1.4",
"webpack-node-externals": "^3.0.0",
Expand All @@ -51,13 +50,12 @@
"@types/wif": "^2.0.2",
"dotenv": "^16.0.0",
"nodemon": "^2.0.15",
"prettier": "^2.6.2",
"ts-loader": "^9.2.8",
"ts-loader": "^9.5.1",
"ts-node": "^10.7.0",
"tsconfig-paths": "^3.14.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.3.3",
"webpack": "^5.72.0",
"webpack-cli": "^4.9.2"
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"homepage": "https://github.com/thepower/power_hub#readme",
"publishConfig": {
Expand All @@ -71,4 +69,4 @@
"url": "https://github.com/thepower/power_hub/issues"
},
"gitHead": "720fd16dbec75fe4c963dbcee1d551bab08089c0"
}
}
224 changes: 224 additions & 0 deletions packages/tssdk/src/abi/erc20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
Loading

0 comments on commit 4d63912

Please sign in to comment.