@inco/shield-js 0.0.0-bootstrap.0
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/LICENSE +201 -0
- package/README.md +359 -0
- package/dist/binary.d.ts +3 -0
- package/dist/binary.js +16 -0
- package/dist/contracts/abi.d.ts +6800 -0
- package/dist/contracts/abi.js +8836 -0
- package/dist/contracts/index.d.ts +2 -0
- package/dist/contracts/index.js +2 -0
- package/dist/contracts/utils.d.ts +25 -0
- package/dist/contracts/utils.js +28 -0
- package/dist/errors.d.ts +125 -0
- package/dist/errors.js +91 -0
- package/dist/generated/inco/shield/v2/conductor_connect.d.ts +137 -0
- package/dist/generated/inco/shield/v2/conductor_connect.js +141 -0
- package/dist/generated/inco/shield/v2/deposit_pb.d.ts +103 -0
- package/dist/generated/inco/shield/v2/deposit_pb.js +141 -0
- package/dist/generated/inco/shield/v2/drafting_pb.d.ts +279 -0
- package/dist/generated/inco/shield/v2/drafting_pb.js +372 -0
- package/dist/generated/inco/shield/v2/permission_pb.d.ts +443 -0
- package/dist/generated/inco/shield/v2/permission_pb.js +639 -0
- package/dist/generated/inco/shield/v2/query_pb.d.ts +103 -0
- package/dist/generated/inco/shield/v2/query_pb.js +141 -0
- package/dist/generated/inco/shield/v2/types_pb.d.ts +166 -0
- package/dist/generated/inco/shield/v2/types_pb.js +261 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +19 -0
- package/dist/shield/client.d.ts +72 -0
- package/dist/shield/client.js +136 -0
- package/dist/shield/convert.d.ts +18 -0
- package/dist/shield/convert.js +152 -0
- package/dist/shield/encryption.d.ts +86 -0
- package/dist/shield/encryption.js +180 -0
- package/dist/shield/envelope.d.ts +14 -0
- package/dist/shield/envelope.js +29 -0
- package/dist/shield/index.d.ts +13 -0
- package/dist/shield/index.js +11 -0
- package/dist/shield/intent.d.ts +977 -0
- package/dist/shield/intent.js +188 -0
- package/dist/shield/rpc.d.ts +72 -0
- package/dist/shield/rpc.js +423 -0
- package/dist/shield/shield.eip712.gen.d.ts +396 -0
- package/dist/shield/shield.eip712.gen.js +318 -0
- package/dist/shield/types.d.ts +119 -0
- package/dist/shield/types.js +4 -0
- package/dist/shield/userop/gas-estimation.d.ts +36 -0
- package/dist/shield/userop/gas-estimation.js +284 -0
- package/dist/shield/userop/index.d.ts +1 -0
- package/dist/shield/userop/index.js +1 -0
- package/dist/shield/userop/token-exchange.d.ts +54 -0
- package/dist/shield/userop/token-exchange.js +165 -0
- package/dist/shield/userop/types.d.ts +91 -0
- package/dist/shield/userop/types.js +4 -0
- package/dist/shield/userop/userOp.d.ts +26 -0
- package/dist/shield/userop/userOp.js +98 -0
- package/dist/shield/utils/chain.d.ts +2 -0
- package/dist/shield/utils/chain.js +8 -0
- package/dist/uniswap-adapter/config.d.ts +34 -0
- package/dist/uniswap-adapter/config.js +45 -0
- package/dist/uniswap-adapter/find-pools.d.ts +91 -0
- package/dist/uniswap-adapter/find-pools.js +108 -0
- package/dist/uniswap-adapter/index.d.ts +10 -0
- package/dist/uniswap-adapter/index.js +13 -0
- package/dist/uniswap-adapter/swap.d.ts +344 -0
- package/dist/uniswap-adapter/swap.js +309 -0
- package/package.json +72 -0
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@inco/shield-js",
|
|
3
|
+
"version": "0.0.0-bootstrap.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"repository": "https://github.com/Inco-fhevm/shield",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public",
|
|
12
|
+
"registry": "https://registry.npmjs.org/"
|
|
13
|
+
},
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"exports": {
|
|
18
|
+
"./package.json": "./package.json",
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./uniswap": {
|
|
24
|
+
"types": "./dist/uniswap-adapter/index.d.ts",
|
|
25
|
+
"import": "./dist/uniswap-adapter/index.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"generate:proto": "rm -rf src/generated && buf generate",
|
|
30
|
+
"generate:abi": "cd ../contracts && bun run generate && cd ../sdk && bun run scripts/extract-abi.ts",
|
|
31
|
+
"generate": "bun run generate:proto && bun run generate:abi",
|
|
32
|
+
"build": "bun run generate && tsc -p tsconfig.dist.json",
|
|
33
|
+
"typecheck": "tsc --noEmit",
|
|
34
|
+
"test": "bun run generate && vitest run",
|
|
35
|
+
"lint": "biome check --write . && eslint .",
|
|
36
|
+
"test:lint": "biome check . && eslint .",
|
|
37
|
+
"uniswap": "bun run scripts/uniswap/uniswap.ts"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@bufbuild/protobuf": "^1.10.0",
|
|
41
|
+
"@connectrpc/connect": "^1.7.0",
|
|
42
|
+
"@hpke/chacha20poly1305": "^1.8.0",
|
|
43
|
+
"@hpke/core": "^1.9.0",
|
|
44
|
+
"@hpke/hybridkem-x-wing": "^0.7.0",
|
|
45
|
+
"@noble/ciphers": "^1.3.0",
|
|
46
|
+
"viem": "^2.30.0"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@uniswap/v4-sdk": "^1.22.0",
|
|
50
|
+
"ethers": "^5"
|
|
51
|
+
},
|
|
52
|
+
"peerDependenciesMeta": {
|
|
53
|
+
"@uniswap/v4-sdk": {
|
|
54
|
+
"optional": true
|
|
55
|
+
},
|
|
56
|
+
"ethers": {
|
|
57
|
+
"optional": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@bufbuild/buf": "^1.34.0",
|
|
62
|
+
"@bufbuild/protoc-gen-es": "^1.10.0",
|
|
63
|
+
"@connectrpc/protoc-gen-connect-es": "^1.7.0",
|
|
64
|
+
"@types/node": "^22.8.5",
|
|
65
|
+
"@uniswap/v4-sdk": "^1.22.0",
|
|
66
|
+
"bun-types": "^1.3.8",
|
|
67
|
+
"dotenv": "^16.4.5",
|
|
68
|
+
"ethers": "^5",
|
|
69
|
+
"typescript": "~5.8.0",
|
|
70
|
+
"vitest": "^3.2.4"
|
|
71
|
+
}
|
|
72
|
+
}
|