@trustvc/eip7702 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +156 -0
- package/contracts/EIP7702Implementation.sol +98 -0
- package/contracts/Factory.sol +50 -0
- package/contracts/PlatformPaymaster.sol +347 -0
- package/dist/index.d.mts +1156 -0
- package/dist/index.d.ts +1156 -0
- package/dist/index.js +1503 -0
- package/dist/index.mjs +1500 -0
- package/package.json +86 -0
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@trustvc/eip7702",
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
|
+
"description": "EIP-7702 smart account, platform paymaster, and factory contracts for TrustVC",
|
|
5
|
+
"author": "DexTech",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/TrustVC/7702SmartAccount.git"
|
|
10
|
+
},
|
|
11
|
+
"release": {
|
|
12
|
+
"branches": [
|
|
13
|
+
"main",
|
|
14
|
+
{
|
|
15
|
+
"name": "dev",
|
|
16
|
+
"prerelease": "beta",
|
|
17
|
+
"channel": "beta"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"tagFormat": "v${version}"
|
|
21
|
+
},
|
|
22
|
+
"main": "dist/index.js",
|
|
23
|
+
"module": "dist/index.mjs",
|
|
24
|
+
"types": "dist/index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"import": "./dist/index.mjs",
|
|
29
|
+
"require": "./dist/index.js"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist",
|
|
34
|
+
"contracts/EIP7702Implementation.sol",
|
|
35
|
+
"contracts/Factory.sol",
|
|
36
|
+
"contracts/PlatformPaymaster.sol"
|
|
37
|
+
],
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build:sol": "TS_NODE_TRANSPILE_ONLY=1 hardhat compile",
|
|
40
|
+
"build:abis": "TS_NODE_TRANSPILE_ONLY=1 ts-node scripts/generate-abis.ts",
|
|
41
|
+
"build:js": "tsup",
|
|
42
|
+
"build": "npm run build:sol && npm run build:abis && npm run build:js",
|
|
43
|
+
"clean": "rm -rf dist cache artifacts src/abis",
|
|
44
|
+
"lint": "eslint src scripts test --ext .ts",
|
|
45
|
+
"lint:fix": "npm run lint -- --fix",
|
|
46
|
+
"prepublishOnly": "npm run build",
|
|
47
|
+
"semantic-release": "semantic-release",
|
|
48
|
+
"test": "TS_NODE_TRANSPILE_ONLY=1 hardhat test"
|
|
49
|
+
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@account-abstraction/contracts": "^0.8.0",
|
|
55
|
+
"@openzeppelin/contracts": "^5.6.1"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@commitlint/cli": "^19.0.0",
|
|
59
|
+
"@commitlint/config-conventional": "^19.0.0",
|
|
60
|
+
"@nomicfoundation/hardhat-ignition": "^0.15.16",
|
|
61
|
+
"@nomicfoundation/hardhat-ignition-viem": "^0.15.16",
|
|
62
|
+
"@nomicfoundation/hardhat-network-helpers": "^1.1.2",
|
|
63
|
+
"@nomicfoundation/hardhat-toolbox-viem": "^4.1.2",
|
|
64
|
+
"@nomicfoundation/hardhat-verify": "^2.1.3",
|
|
65
|
+
"@nomicfoundation/hardhat-viem": "^2.1.3",
|
|
66
|
+
"@nomicfoundation/ignition-core": "^0.15.15",
|
|
67
|
+
"@types/chai": "^4.3.20",
|
|
68
|
+
"@types/chai-as-promised": "^7.1.8",
|
|
69
|
+
"@types/mocha": "^10.0.10",
|
|
70
|
+
"@types/node": "^25.7.0",
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
72
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
73
|
+
"chai": "^4.5.0",
|
|
74
|
+
"dotenv": "^17.4.2",
|
|
75
|
+
"eslint": "^8.57.0",
|
|
76
|
+
"hardhat": "^2.28.6",
|
|
77
|
+
"hardhat-gas-reporter": "^2.3.0",
|
|
78
|
+
"permissionless": "^0.3.5",
|
|
79
|
+
"semantic-release": "^24.0.0",
|
|
80
|
+
"solidity-coverage": "^0.8.17",
|
|
81
|
+
"ts-node": "^10.9.2",
|
|
82
|
+
"tsup": "^8.5.1",
|
|
83
|
+
"typescript": "^6.0.3",
|
|
84
|
+
"viem": "^2.48.11"
|
|
85
|
+
}
|
|
86
|
+
}
|