@trustware/sdk-staging 0.0.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 +364 -0
- package/dist/constants.cjs +46 -0
- package/dist/constants.cjs.map +1 -0
- package/dist/constants.d.cts +8 -0
- package/dist/constants.d.ts +8 -0
- package/dist/constants.mjs +16 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/index.cjs +11744 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +705 -0
- package/dist/index.d.ts +705 -0
- package/dist/index.mjs +11726 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +126 -0
package/package.json
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@trustware/sdk-staging",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Trustware partner SDK: quote → send → receipt → status, plus drop-in React widget.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "Trustware",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/trustware/sdk.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://trustware.io",
|
|
12
|
+
"type": "module",
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"main": "dist/index.cjs",
|
|
15
|
+
"module": "dist/index.mjs",
|
|
16
|
+
"types": "dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.mjs",
|
|
21
|
+
"require": "./dist/index.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./core": {
|
|
24
|
+
"types": "./dist/core.d.ts",
|
|
25
|
+
"import": "./dist/core.mjs",
|
|
26
|
+
"require": "./dist/core.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./wallet": {
|
|
29
|
+
"types": "./dist/wallet.d.ts",
|
|
30
|
+
"import": "./dist/wallet.mjs",
|
|
31
|
+
"require": "./dist/wallet.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./react": {
|
|
34
|
+
"types": "./dist/widget.d.ts",
|
|
35
|
+
"import": "./dist/widget.mjs",
|
|
36
|
+
"require": "./dist/widget.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./constants": {
|
|
39
|
+
"types": "./dist/constants.d.ts",
|
|
40
|
+
"import": "./dist/constants.mjs",
|
|
41
|
+
"require": "./dist/constants.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./types": {
|
|
44
|
+
"types": "./dist/index.d.ts",
|
|
45
|
+
"import": "./dist/index.mjs",
|
|
46
|
+
"require": "./dist/index.cjs"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"dist"
|
|
51
|
+
],
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "tsup --config tsup.config.ts",
|
|
54
|
+
"build:staging": "TRUSTWARE_API_ROOT=https://bv-staging-api.trustware.io npm run build",
|
|
55
|
+
"build:local": "TRUSTWARE_API_ROOT=http://localhost:8000 npm run build",
|
|
56
|
+
"dev": "tsup --config tsup.config.ts --watch",
|
|
57
|
+
"prepublishOnly": "npm run build",
|
|
58
|
+
"typecheck": "tsc --noEmit",
|
|
59
|
+
"lint": "eslint .",
|
|
60
|
+
"lint:strict": "eslint . --max-warnings 0",
|
|
61
|
+
"lint:fix": "eslint . --fix",
|
|
62
|
+
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
|
|
63
|
+
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
|
|
64
|
+
"validate": "npm run typecheck && npm run lint:strict && npm run format:check",
|
|
65
|
+
"size": "size-limit",
|
|
66
|
+
"size:check": "size-limit --limit"
|
|
67
|
+
},
|
|
68
|
+
"size-limit": [
|
|
69
|
+
{
|
|
70
|
+
"name": "Full SDK (ESM)",
|
|
71
|
+
"path": "dist/index.mjs",
|
|
72
|
+
"limit": "50 KB",
|
|
73
|
+
"gzip": true
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"react": "^18.2.0",
|
|
78
|
+
"react-dom": "^18.2.0",
|
|
79
|
+
"viem": "^2.47.0"
|
|
80
|
+
},
|
|
81
|
+
"peerDependenciesMeta": {
|
|
82
|
+
"react": {
|
|
83
|
+
"optional": true
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"devDependencies": {
|
|
87
|
+
"@eslint/js": "^9.39.2",
|
|
88
|
+
"@size-limit/preset-small-lib": "^12.0.0",
|
|
89
|
+
"@types/eslint__js": "^8.42.3",
|
|
90
|
+
"@types/node": "^24.10.0",
|
|
91
|
+
"@types/qrcode": "^1.5.5",
|
|
92
|
+
"@types/react": "^18.3.3",
|
|
93
|
+
"eslint": "^9.39.2",
|
|
94
|
+
"eslint-config-prettier": "^10.1.8",
|
|
95
|
+
"eslint-plugin-react": "^7.37.5",
|
|
96
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
97
|
+
"prettier": "^3.7.4",
|
|
98
|
+
"react": "^18.2.0",
|
|
99
|
+
"react-dom": "^18.2.0",
|
|
100
|
+
"size-limit": "^12.0.0",
|
|
101
|
+
"tsup": "^8.5.0",
|
|
102
|
+
"typescript": "^5.6.3",
|
|
103
|
+
"typescript-eslint": "^8.51.0"
|
|
104
|
+
},
|
|
105
|
+
"engines": {
|
|
106
|
+
"node": ">=18"
|
|
107
|
+
},
|
|
108
|
+
"publishConfig": {
|
|
109
|
+
"registry": "https://registry.npmjs.org/"
|
|
110
|
+
},
|
|
111
|
+
"keywords": [
|
|
112
|
+
"bridge",
|
|
113
|
+
"swap",
|
|
114
|
+
"cross-chain",
|
|
115
|
+
"squid",
|
|
116
|
+
"web3",
|
|
117
|
+
"sdk",
|
|
118
|
+
"widget"
|
|
119
|
+
],
|
|
120
|
+
"dependencies": {
|
|
121
|
+
"@reown/appkit": "^1.8.17",
|
|
122
|
+
"@reown/appkit-common": "^1.8.17",
|
|
123
|
+
"@reown/appkit-universal-connector": "^1.8.17",
|
|
124
|
+
"ethers": "^6.16.0"
|
|
125
|
+
}
|
|
126
|
+
}
|