@agentlayer.tech/wallet 0.1.44 → 0.1.48
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/.openclaw/extensions/agent-wallet/index.ts +99 -0
- package/.openclaw/extensions/agent-wallet/openclaw.plugin.json +6 -1
- package/.openclaw/extensions/agent-wallet/package.json +1 -1
- package/CHANGELOG.md +62 -0
- package/README.md +2 -2
- package/VERSION +1 -1
- package/agent-wallet/agent_wallet/__init__.py +1 -1
- package/agent-wallet/agent_wallet/openclaw_adapter.py +884 -37
- package/agent-wallet/agent_wallet/providers/jupiter.py +5 -0
- package/agent-wallet/agent_wallet/providers/wdk_evm_local.py +6 -0
- package/agent-wallet/agent_wallet/wallet_layer/base.py +189 -0
- package/agent-wallet/agent_wallet/wallet_layer/solana.py +14 -0
- package/agent-wallet/agent_wallet/wallet_layer/wdk_evm.py +404 -0
- package/agent-wallet/openclaw.plugin.json +1 -1
- package/agent-wallet/pyproject.toml +1 -1
- package/agent-wallet/scripts/install_agent_wallet.py +33 -8
- package/claude-code/plugins/agent-wallet/.claude-plugin/plugin.json +1 -1
- package/codex/plugins/agent-wallet/.codex-plugin/plugin.json +1 -1
- package/hermes/plugins/agent_wallet/plugin.yaml +1 -1
- package/package.json +1 -1
- package/wdk-btc-wallet/package.json +1 -1
- package/wdk-evm-wallet/README.md +31 -0
- package/wdk-evm-wallet/package-lock.json +268 -64
- package/wdk-evm-wallet/package.json +4 -1
- package/wdk-evm-wallet/src/config.js +2 -0
- package/wdk-evm-wallet/src/server.js +66 -0
- package/wdk-evm-wallet/src/wdk_evm_wallet.js +2725 -939
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wdk-evm-wallet",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.44",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "wdk-evm-wallet",
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.44",
|
|
10
10
|
"dependencies": {
|
|
11
|
+
"@morpho-org/wdk-protocol-lending-morpho-evm": "^0.0.5",
|
|
11
12
|
"@tetherto/wdk": "^1.0.0-beta.9",
|
|
12
13
|
"@tetherto/wdk-protocol-lending-aave-evm": "^1.0.0-beta.4",
|
|
13
14
|
"@tetherto/wdk-protocol-swap-velora-evm": "^1.0.0-beta.4",
|
|
@@ -49,6 +50,136 @@
|
|
|
49
50
|
"node": ">=14.0.0"
|
|
50
51
|
}
|
|
51
52
|
},
|
|
53
|
+
"node_modules/@morpho-org/blue-sdk": {
|
|
54
|
+
"version": "6.1.0",
|
|
55
|
+
"resolved": "https://registry.npmjs.org/@morpho-org/blue-sdk/-/blue-sdk-6.1.0.tgz",
|
|
56
|
+
"integrity": "sha512-cuypuQNEzjY5SdqSw907si0mcMVoxNjc1PDChrYSDzbogtkpcd/Nx1PD+qhlkAv9fGYnqIBi6hYBsQWjNkT8uQ==",
|
|
57
|
+
"license": "MIT",
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"@noble/hashes": "^2.2.0",
|
|
60
|
+
"@types/lodash.isplainobject": "^4.0.9",
|
|
61
|
+
"@types/lodash.mergewith": "^4.6.9",
|
|
62
|
+
"lodash.isplainobject": "^4.0.6",
|
|
63
|
+
"lodash.mergewith": "^4.6.2"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"@morpho-org/morpho-ts": "^2.5.1"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"node_modules/@morpho-org/blue-sdk-viem": {
|
|
70
|
+
"version": "5.1.0",
|
|
71
|
+
"resolved": "https://registry.npmjs.org/@morpho-org/blue-sdk-viem/-/blue-sdk-viem-5.1.0.tgz",
|
|
72
|
+
"integrity": "sha512-Wd29wEbkW7/r/d0YMAt5N4PZ/+TFnuK2Aw/oHSDfla5pPkBxPv5M+1n4Bv5GT/2wt3zIRyH6QUCGyc8KagK5LA==",
|
|
73
|
+
"license": "MIT",
|
|
74
|
+
"peerDependencies": {
|
|
75
|
+
"@morpho-org/blue-sdk": "^6.0.0",
|
|
76
|
+
"@morpho-org/morpho-ts": "^2.5.1",
|
|
77
|
+
"viem": "^2.0.0"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"node_modules/@morpho-org/blue-sdk/node_modules/@noble/hashes": {
|
|
81
|
+
"version": "2.2.0",
|
|
82
|
+
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.2.0.tgz",
|
|
83
|
+
"integrity": "sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==",
|
|
84
|
+
"license": "MIT",
|
|
85
|
+
"engines": {
|
|
86
|
+
"node": ">= 20.19.0"
|
|
87
|
+
},
|
|
88
|
+
"funding": {
|
|
89
|
+
"url": "https://paulmillr.com/funding/"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"node_modules/@morpho-org/morpho-sdk": {
|
|
93
|
+
"version": "3.2.0",
|
|
94
|
+
"resolved": "https://registry.npmjs.org/@morpho-org/morpho-sdk/-/morpho-sdk-3.2.0.tgz",
|
|
95
|
+
"integrity": "sha512-2fp4LjqPDtRennMs3vE0+5WOUxXlO8QepMp+njMDimJZdonFc7cKUVLuAkGq00uMGjUyz63SEWo0dEwdVhOmfw==",
|
|
96
|
+
"license": "MIT",
|
|
97
|
+
"dependencies": {
|
|
98
|
+
"@morpho-org/blue-sdk": "^6.1.0",
|
|
99
|
+
"@morpho-org/blue-sdk-viem": "^5.1.0",
|
|
100
|
+
"@morpho-org/morpho-ts": "^2.6.0",
|
|
101
|
+
"zod": "^4.4.3"
|
|
102
|
+
},
|
|
103
|
+
"peerDependencies": {
|
|
104
|
+
"viem": "^2.0.0"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"node_modules/@morpho-org/morpho-ts": {
|
|
108
|
+
"version": "2.6.0",
|
|
109
|
+
"resolved": "https://registry.npmjs.org/@morpho-org/morpho-ts/-/morpho-ts-2.6.0.tgz",
|
|
110
|
+
"integrity": "sha512-1JdXTCi9V1cih7e51i6XuCdftfiBEqfCf27XMM2nVGlXgrO9L9BGUrNT5XHglgCrUwYXABtlfXk1koLD7xS+YA==",
|
|
111
|
+
"license": "MIT"
|
|
112
|
+
},
|
|
113
|
+
"node_modules/@morpho-org/wdk-protocol-lending-morpho-evm": {
|
|
114
|
+
"version": "0.0.5",
|
|
115
|
+
"resolved": "https://registry.npmjs.org/@morpho-org/wdk-protocol-lending-morpho-evm/-/wdk-protocol-lending-morpho-evm-0.0.5.tgz",
|
|
116
|
+
"integrity": "sha512-S/LJY6aCzeKV8vP3EhPzNIl6k0kHocjc//siGNi38E3HBHc/Gq0i7Dv6kvp0PyyZiwATuTnBBBuMrQKaaH8YDA==",
|
|
117
|
+
"license": "Apache-2.0",
|
|
118
|
+
"dependencies": {
|
|
119
|
+
"@morpho-org/blue-sdk": "^6.1.0",
|
|
120
|
+
"@morpho-org/blue-sdk-viem": "^5.1.0",
|
|
121
|
+
"@morpho-org/morpho-sdk": "^3.1.1",
|
|
122
|
+
"@tetherto/wdk-wallet": "1.0.0-beta.9",
|
|
123
|
+
"@tetherto/wdk-wallet-evm": "1.0.0-beta.12",
|
|
124
|
+
"@tetherto/wdk-wallet-evm-erc-4337": "1.0.0-beta.6",
|
|
125
|
+
"bare-node-runtime": "1.3.1"
|
|
126
|
+
},
|
|
127
|
+
"engines": {
|
|
128
|
+
"node": ">=22.13"
|
|
129
|
+
},
|
|
130
|
+
"peerDependencies": {
|
|
131
|
+
"viem": "^2.0.0"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"node_modules/@morpho-org/wdk-protocol-lending-morpho-evm/node_modules/@tetherto/wdk-wallet": {
|
|
135
|
+
"version": "1.0.0-beta.9",
|
|
136
|
+
"resolved": "https://registry.npmjs.org/@tetherto/wdk-wallet/-/wdk-wallet-1.0.0-beta.9.tgz",
|
|
137
|
+
"integrity": "sha512-sycU5+3fcgnJNR2vftGYykwrcqIzy9WKef6Yzwn7luS4S+MHDz+nfhhI0t9Qh3GMC+1m52LSMGBro3BPSHszNg==",
|
|
138
|
+
"license": "Apache-2.0",
|
|
139
|
+
"dependencies": {
|
|
140
|
+
"bare-node-runtime": "^1.1.4",
|
|
141
|
+
"bip39": "3.1.0"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"node_modules/@morpho-org/wdk-protocol-lending-morpho-evm/node_modules/@tetherto/wdk-wallet-evm-erc-4337": {
|
|
145
|
+
"version": "1.0.0-beta.6",
|
|
146
|
+
"resolved": "https://registry.npmjs.org/@tetherto/wdk-wallet-evm-erc-4337/-/wdk-wallet-evm-erc-4337-1.0.0-beta.6.tgz",
|
|
147
|
+
"integrity": "sha512-H992no1TPcyy4u2pdC/7m+zva3EBHE5sW0lM4gmX7mRK/R+qXU37XWikDf+fDODPRVmqwrOdzsz7XlIaCV+SSw==",
|
|
148
|
+
"license": "Apache-2.0",
|
|
149
|
+
"dependencies": {
|
|
150
|
+
"@tetherto/wdk-safe-relay-kit": "4.1.5",
|
|
151
|
+
"@tetherto/wdk-wallet": "1.0.0-beta.7",
|
|
152
|
+
"@tetherto/wdk-wallet-evm": "1.0.0-beta.11",
|
|
153
|
+
"bare-node-runtime": "^1.1.4",
|
|
154
|
+
"ethers": "6.14.4"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"node_modules/@morpho-org/wdk-protocol-lending-morpho-evm/node_modules/@tetherto/wdk-wallet-evm-erc-4337/node_modules/@tetherto/wdk-wallet": {
|
|
158
|
+
"version": "1.0.0-beta.7",
|
|
159
|
+
"resolved": "https://registry.npmjs.org/@tetherto/wdk-wallet/-/wdk-wallet-1.0.0-beta.7.tgz",
|
|
160
|
+
"integrity": "sha512-QJJPhA+adCImQ/nMymmMeW4x0Ey65vEgWfoDjuXtdaD7LnFdCChFvZXcyDQUH3ghSTnve6MDutMmvfDIxhipVg==",
|
|
161
|
+
"license": "Apache-2.0",
|
|
162
|
+
"dependencies": {
|
|
163
|
+
"bare-node-runtime": "^1.1.4",
|
|
164
|
+
"bip39": "3.1.0"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"node_modules/@morpho-org/wdk-protocol-lending-morpho-evm/node_modules/@tetherto/wdk-wallet-evm-erc-4337/node_modules/@tetherto/wdk-wallet-evm": {
|
|
168
|
+
"version": "1.0.0-beta.11",
|
|
169
|
+
"resolved": "https://registry.npmjs.org/@tetherto/wdk-wallet-evm/-/wdk-wallet-evm-1.0.0-beta.11.tgz",
|
|
170
|
+
"integrity": "sha512-zfNOGHQdcIw+ByhnDXipEZ3/W5JRv+3kse4uS7vDvhOY+HmC4QrxrutUA0NP7/8CkgaLGR58M331DsXk9L5/Fg==",
|
|
171
|
+
"license": "Apache-2.0",
|
|
172
|
+
"dependencies": {
|
|
173
|
+
"@noble/curves": "1.9.2",
|
|
174
|
+
"@noble/hashes": "1.8.0",
|
|
175
|
+
"@noble/secp256k1": "2.2.3",
|
|
176
|
+
"@tetherto/wdk-wallet": "1.0.0-beta.7",
|
|
177
|
+
"bare-node-runtime": "^1.1.4",
|
|
178
|
+
"bip39": "3.1.0",
|
|
179
|
+
"ethers": "6.14.4",
|
|
180
|
+
"sodium-universal": "5.0.1"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
52
183
|
"node_modules/@noble/ciphers": {
|
|
53
184
|
"version": "1.3.0",
|
|
54
185
|
"resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.3.0.tgz",
|
|
@@ -343,6 +474,30 @@
|
|
|
343
474
|
"bip39": "3.1.0"
|
|
344
475
|
}
|
|
345
476
|
},
|
|
477
|
+
"node_modules/@types/lodash": {
|
|
478
|
+
"version": "4.17.24",
|
|
479
|
+
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.24.tgz",
|
|
480
|
+
"integrity": "sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ==",
|
|
481
|
+
"license": "MIT"
|
|
482
|
+
},
|
|
483
|
+
"node_modules/@types/lodash.isplainobject": {
|
|
484
|
+
"version": "4.0.9",
|
|
485
|
+
"resolved": "https://registry.npmjs.org/@types/lodash.isplainobject/-/lodash.isplainobject-4.0.9.tgz",
|
|
486
|
+
"integrity": "sha512-QC8nKcap5hRrbtIaPRjUMlcXXnLeayqQZPSaWJDx3xeuN17+2PW5wkmEJ4+lZgNnQRlSPzxjTYKCfV1uTnPaEg==",
|
|
487
|
+
"license": "MIT",
|
|
488
|
+
"dependencies": {
|
|
489
|
+
"@types/lodash": "*"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"node_modules/@types/lodash.mergewith": {
|
|
493
|
+
"version": "4.6.9",
|
|
494
|
+
"resolved": "https://registry.npmjs.org/@types/lodash.mergewith/-/lodash.mergewith-4.6.9.tgz",
|
|
495
|
+
"integrity": "sha512-fgkoCAOF47K7sxrQ7Mlud2TH023itugZs2bUg8h/KzT+BnZNrR2jAOmaokbLunHNnobXVWOezAeNn/lZqwxkcw==",
|
|
496
|
+
"license": "MIT",
|
|
497
|
+
"dependencies": {
|
|
498
|
+
"@types/lodash": "*"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
346
501
|
"node_modules/@types/node": {
|
|
347
502
|
"version": "22.7.5",
|
|
348
503
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz",
|
|
@@ -596,9 +751,9 @@
|
|
|
596
751
|
}
|
|
597
752
|
},
|
|
598
753
|
"node_modules/bare-crypto": {
|
|
599
|
-
"version": "1.
|
|
600
|
-
"resolved": "https://registry.npmjs.org/bare-crypto/-/bare-crypto-1.
|
|
601
|
-
"integrity": "sha512-
|
|
754
|
+
"version": "1.15.3",
|
|
755
|
+
"resolved": "https://registry.npmjs.org/bare-crypto/-/bare-crypto-1.15.3.tgz",
|
|
756
|
+
"integrity": "sha512-macV9lbyJTsLPRXJkBtz8ivTGEo3LCyJInLT9IB/PWJ7pRXwvHs/FP4bx/fWw+HZkiepIYCAV2cuU5CR92XWCw==",
|
|
602
757
|
"license": "Apache-2.0",
|
|
603
758
|
"dependencies": {
|
|
604
759
|
"bare-assert": "^1.2.0",
|
|
@@ -685,14 +840,15 @@
|
|
|
685
840
|
}
|
|
686
841
|
},
|
|
687
842
|
"node_modules/bare-fetch": {
|
|
688
|
-
"version": "
|
|
689
|
-
"resolved": "https://registry.npmjs.org/bare-fetch/-/bare-fetch-
|
|
690
|
-
"integrity": "sha512-
|
|
843
|
+
"version": "3.0.1",
|
|
844
|
+
"resolved": "https://registry.npmjs.org/bare-fetch/-/bare-fetch-3.0.1.tgz",
|
|
845
|
+
"integrity": "sha512-OWC8Z62E8JmomltTkXt9cCPMPj2DNi2vp66FOj3BkglNKNshZuk8n98Ba3afUxrrM4kv9/eMzh9+U9dXZSQyOg==",
|
|
691
846
|
"license": "Apache-2.0",
|
|
692
847
|
"dependencies": {
|
|
693
848
|
"bare-form-data": "^1.2.0",
|
|
694
849
|
"bare-http1": "^4.5.2",
|
|
695
|
-
"bare-https": "^
|
|
850
|
+
"bare-https": "^3.0.0",
|
|
851
|
+
"bare-mime": "^1.0.0",
|
|
696
852
|
"bare-stream": "^2.9.1",
|
|
697
853
|
"bare-url": "^2.4.0",
|
|
698
854
|
"bare-zlib": "^1.3.0"
|
|
@@ -711,9 +867,9 @@
|
|
|
711
867
|
}
|
|
712
868
|
},
|
|
713
869
|
"node_modules/bare-form-data": {
|
|
714
|
-
"version": "1.2.
|
|
715
|
-
"resolved": "https://registry.npmjs.org/bare-form-data/-/bare-form-data-1.2.
|
|
716
|
-
"integrity": "sha512-
|
|
870
|
+
"version": "1.2.2",
|
|
871
|
+
"resolved": "https://registry.npmjs.org/bare-form-data/-/bare-form-data-1.2.2.tgz",
|
|
872
|
+
"integrity": "sha512-DQyAkCf5mgKT07orewuvaJfoalw7RBSHia4wgkrG7+seI6aHLB+r6gMRdCGrlO+BmCqMwgTeHAHxDU2NrOjQnQ==",
|
|
717
873
|
"license": "Apache-2.0",
|
|
718
874
|
"dependencies": {
|
|
719
875
|
"bare-buffer": "^3.6.0",
|
|
@@ -760,15 +916,15 @@
|
|
|
760
916
|
"license": "Apache-2.0"
|
|
761
917
|
},
|
|
762
918
|
"node_modules/bare-http-parser": {
|
|
763
|
-
"version": "1.1.
|
|
764
|
-
"resolved": "https://registry.npmjs.org/bare-http-parser/-/bare-http-parser-1.1.
|
|
765
|
-
"integrity": "sha512
|
|
919
|
+
"version": "1.1.5",
|
|
920
|
+
"resolved": "https://registry.npmjs.org/bare-http-parser/-/bare-http-parser-1.1.5.tgz",
|
|
921
|
+
"integrity": "sha512-sPaDetLbWRmth04JmuTCvw/hoNdWJvYUJN8n1tYdGW3HM0mMnCvK2f0oIxE6HK7iOq+WlsRzEMg1LT/b0wGbLQ==",
|
|
766
922
|
"license": "Apache-2.0"
|
|
767
923
|
},
|
|
768
924
|
"node_modules/bare-http1": {
|
|
769
|
-
"version": "4.5.
|
|
770
|
-
"resolved": "https://registry.npmjs.org/bare-http1/-/bare-http1-4.5.
|
|
771
|
-
"integrity": "sha512-
|
|
925
|
+
"version": "4.5.7",
|
|
926
|
+
"resolved": "https://registry.npmjs.org/bare-http1/-/bare-http1-4.5.7.tgz",
|
|
927
|
+
"integrity": "sha512-PRuzs9ywt4vUvrC3mnHhQyaQfLYzdFy8XKOH0oKeKmYfyYYUqXBkdbJE2csESLBxJEbKDBjxPGLU+Qa0l1ds4A==",
|
|
772
928
|
"license": "Apache-2.0",
|
|
773
929
|
"dependencies": {
|
|
774
930
|
"bare-events": "^2.6.0",
|
|
@@ -790,14 +946,14 @@
|
|
|
790
946
|
}
|
|
791
947
|
},
|
|
792
948
|
"node_modules/bare-https": {
|
|
793
|
-
"version": "
|
|
794
|
-
"resolved": "https://registry.npmjs.org/bare-https/-/bare-https-
|
|
795
|
-
"integrity": "sha512-
|
|
949
|
+
"version": "3.0.0",
|
|
950
|
+
"resolved": "https://registry.npmjs.org/bare-https/-/bare-https-3.0.0.tgz",
|
|
951
|
+
"integrity": "sha512-W1GRSCzn+xXKf5bMcPs/hg6Ga1bxPqb7owGfS+tvlBQfPe5Q2STcanRuKZrgU60v5uKrhXH5cgWwM+DLqvXZgQ==",
|
|
796
952
|
"license": "Apache-2.0",
|
|
797
953
|
"dependencies": {
|
|
798
954
|
"bare-http1": "^4.4.0",
|
|
799
955
|
"bare-tcp": "^2.2.0",
|
|
800
|
-
"bare-tls": "^
|
|
956
|
+
"bare-tls": "^3.0.0"
|
|
801
957
|
}
|
|
802
958
|
},
|
|
803
959
|
"node_modules/bare-inspect": {
|
|
@@ -814,19 +970,19 @@
|
|
|
814
970
|
}
|
|
815
971
|
},
|
|
816
972
|
"node_modules/bare-inspector": {
|
|
817
|
-
"version": "
|
|
818
|
-
"resolved": "https://registry.npmjs.org/bare-inspector/-/bare-inspector-
|
|
819
|
-
"integrity": "sha512-
|
|
973
|
+
"version": "6.0.1",
|
|
974
|
+
"resolved": "https://registry.npmjs.org/bare-inspector/-/bare-inspector-6.0.1.tgz",
|
|
975
|
+
"integrity": "sha512-rL+aKJ74FhF+6iJS2cV3C8js8nGF37H05ldiyMojgFP/N5eYShZ/mhSbTcDh1yriW5jndYd6xWQU0E/CE14Tiw==",
|
|
820
976
|
"license": "Apache-2.0",
|
|
821
977
|
"dependencies": {
|
|
822
978
|
"bare-events": "^2.1.0",
|
|
823
979
|
"bare-http1": "^4.0.0",
|
|
824
980
|
"bare-stream": "^2.0.0",
|
|
825
981
|
"bare-url": "^2.0.0",
|
|
826
|
-
"bare-ws": "^
|
|
982
|
+
"bare-ws": "^3.0.0"
|
|
827
983
|
},
|
|
828
984
|
"engines": {
|
|
829
|
-
"bare": ">=1.
|
|
985
|
+
"bare": ">=1.25.0"
|
|
830
986
|
},
|
|
831
987
|
"peerDependencies": {
|
|
832
988
|
"bare-tcp": "*"
|
|
@@ -846,6 +1002,12 @@
|
|
|
846
1002
|
"bare-format": "^1.0.0"
|
|
847
1003
|
}
|
|
848
1004
|
},
|
|
1005
|
+
"node_modules/bare-mime": {
|
|
1006
|
+
"version": "1.0.0",
|
|
1007
|
+
"resolved": "https://registry.npmjs.org/bare-mime/-/bare-mime-1.0.0.tgz",
|
|
1008
|
+
"integrity": "sha512-lUOswzBkfqham4zjLDueKOd4Qj3gS56BiZ3q2f0g0adoFhF+HFNupvTUfZBWoicl7fWJ7Hp2RUZjmkY47dxxOQ==",
|
|
1009
|
+
"license": "Apache-2.0"
|
|
1010
|
+
},
|
|
849
1011
|
"node_modules/bare-module": {
|
|
850
1012
|
"version": "6.1.3",
|
|
851
1013
|
"resolved": "https://registry.npmjs.org/bare-module/-/bare-module-6.1.3.tgz",
|
|
@@ -928,9 +1090,9 @@
|
|
|
928
1090
|
}
|
|
929
1091
|
},
|
|
930
1092
|
"node_modules/bare-net": {
|
|
931
|
-
"version": "2.3.
|
|
932
|
-
"resolved": "https://registry.npmjs.org/bare-net/-/bare-net-2.3.
|
|
933
|
-
"integrity": "sha512-
|
|
1093
|
+
"version": "2.3.2",
|
|
1094
|
+
"resolved": "https://registry.npmjs.org/bare-net/-/bare-net-2.3.2.tgz",
|
|
1095
|
+
"integrity": "sha512-I+yz+pqbYsBkxDsnu5vkKvy7RSNY9CcAvu2jZT6PsmdXJQG1i3dmD5V7xc3334OVp2absgtUEYLmmuNFlphBzg==",
|
|
934
1096
|
"license": "Apache-2.0",
|
|
935
1097
|
"dependencies": {
|
|
936
1098
|
"bare-events": "^2.2.2",
|
|
@@ -940,9 +1102,9 @@
|
|
|
940
1102
|
}
|
|
941
1103
|
},
|
|
942
1104
|
"node_modules/bare-node-runtime": {
|
|
943
|
-
"version": "1.
|
|
944
|
-
"resolved": "https://registry.npmjs.org/bare-node-runtime/-/bare-node-runtime-1.
|
|
945
|
-
"integrity": "sha512-
|
|
1105
|
+
"version": "1.3.1",
|
|
1106
|
+
"resolved": "https://registry.npmjs.org/bare-node-runtime/-/bare-node-runtime-1.3.1.tgz",
|
|
1107
|
+
"integrity": "sha512-VuTkBLZKAZdC1hiEX+4so9YQo2Su4FVJRUbXfqMas66dJOcQIuyc7Rz3ED9ZNVg7MXUygOeLz0N54pDGxtDWzw==",
|
|
946
1108
|
"license": "Apache-2.0",
|
|
947
1109
|
"dependencies": {
|
|
948
1110
|
"bare-abort-controller": "^1.0.0",
|
|
@@ -955,16 +1117,16 @@
|
|
|
955
1117
|
"bare-diagnostics-channel": "^1.1.0",
|
|
956
1118
|
"bare-dns": "^2.1.4",
|
|
957
1119
|
"bare-events": "^2.7.0",
|
|
958
|
-
"bare-fetch": "^
|
|
1120
|
+
"bare-fetch": "^3.0.0",
|
|
959
1121
|
"bare-fs": "^4.2.3",
|
|
960
1122
|
"bare-http1": "^4.0.4",
|
|
961
|
-
"bare-https": "^
|
|
962
|
-
"bare-inspector": "^
|
|
1123
|
+
"bare-https": "^3.0.0",
|
|
1124
|
+
"bare-inspector": "^6.0.1",
|
|
963
1125
|
"bare-module": "^6.1.2",
|
|
964
1126
|
"bare-net": "^2.0.2",
|
|
965
1127
|
"bare-os": "^3.6.2",
|
|
966
1128
|
"bare-path": "^3.0.0",
|
|
967
|
-
"bare-performance": "^
|
|
1129
|
+
"bare-performance": "^2.0.0",
|
|
968
1130
|
"bare-process": "^4.2.1",
|
|
969
1131
|
"bare-punycode": "^0.0.0",
|
|
970
1132
|
"bare-querystring": "^1.0.0",
|
|
@@ -972,16 +1134,16 @@
|
|
|
972
1134
|
"bare-repl": "^6.0.1",
|
|
973
1135
|
"bare-stream": "^2.7.0",
|
|
974
1136
|
"bare-string-decoder": "^1.0.0",
|
|
975
|
-
"bare-subprocess": "^
|
|
1137
|
+
"bare-subprocess": "^6.0.0",
|
|
976
1138
|
"bare-timers": "^3.0.3",
|
|
977
|
-
"bare-tls": "^
|
|
1139
|
+
"bare-tls": "^3.0.0",
|
|
978
1140
|
"bare-tty": "^5.0.3",
|
|
979
1141
|
"bare-url": "^2.2.2",
|
|
980
1142
|
"bare-utils": "^1.5.1",
|
|
981
1143
|
"bare-v8": "^1.0.1",
|
|
982
1144
|
"bare-vm": "^1.0.0",
|
|
983
1145
|
"bare-worker": "^4.0.0",
|
|
984
|
-
"bare-ws": "^
|
|
1146
|
+
"bare-ws": "^3.0.0",
|
|
985
1147
|
"bare-zlib": "^1.3.1"
|
|
986
1148
|
}
|
|
987
1149
|
},
|
|
@@ -1004,15 +1166,18 @@
|
|
|
1004
1166
|
}
|
|
1005
1167
|
},
|
|
1006
1168
|
"node_modules/bare-performance": {
|
|
1007
|
-
"version": "
|
|
1008
|
-
"resolved": "https://registry.npmjs.org/bare-performance/-/bare-performance-
|
|
1009
|
-
"integrity": "sha512-
|
|
1010
|
-
"license": "Apache-2.0"
|
|
1169
|
+
"version": "2.0.0",
|
|
1170
|
+
"resolved": "https://registry.npmjs.org/bare-performance/-/bare-performance-2.0.0.tgz",
|
|
1171
|
+
"integrity": "sha512-8iCIWtHcChombHshFqYCy0dtFFLUJur9Ahy+T7U49LqrhQ6FtUulat4kGlo6rMkBiBkeFCysTjPvm3nd+cao6w==",
|
|
1172
|
+
"license": "Apache-2.0",
|
|
1173
|
+
"engines": {
|
|
1174
|
+
"bare": ">=1.27.0"
|
|
1175
|
+
}
|
|
1011
1176
|
},
|
|
1012
1177
|
"node_modules/bare-pipe": {
|
|
1013
|
-
"version": "4.
|
|
1014
|
-
"resolved": "https://registry.npmjs.org/bare-pipe/-/bare-pipe-4.
|
|
1015
|
-
"integrity": "sha512-
|
|
1178
|
+
"version": "4.2.2",
|
|
1179
|
+
"resolved": "https://registry.npmjs.org/bare-pipe/-/bare-pipe-4.2.2.tgz",
|
|
1180
|
+
"integrity": "sha512-Wkf6//CmKS8inHrkgi3X/xNMeaGfs2I0ayLM0B8cbPB4DxYHcoes6Ng+muCBfXNIJ9qmEjwDDJjAUz7nRxxjgQ==",
|
|
1016
1181
|
"license": "Apache-2.0",
|
|
1017
1182
|
"dependencies": {
|
|
1018
1183
|
"bare-events": "^2.0.0",
|
|
@@ -1186,15 +1351,17 @@
|
|
|
1186
1351
|
}
|
|
1187
1352
|
},
|
|
1188
1353
|
"node_modules/bare-subprocess": {
|
|
1189
|
-
"version": "
|
|
1190
|
-
"resolved": "https://registry.npmjs.org/bare-subprocess/-/bare-subprocess-
|
|
1191
|
-
"integrity": "sha512-
|
|
1354
|
+
"version": "6.1.0",
|
|
1355
|
+
"resolved": "https://registry.npmjs.org/bare-subprocess/-/bare-subprocess-6.1.0.tgz",
|
|
1356
|
+
"integrity": "sha512-8L6KtbmreDy4Fc1BdDqaDo9fg0nbedUmTSFQxYPV0uHIM2BBAX8+E0LyMDKgkk0I+mlKto80WYzOnIhT8VDdOg==",
|
|
1192
1357
|
"license": "Apache-2.0",
|
|
1193
1358
|
"dependencies": {
|
|
1194
1359
|
"bare-env": "^3.0.0",
|
|
1195
1360
|
"bare-events": "^2.5.4",
|
|
1196
1361
|
"bare-os": "^3.0.1",
|
|
1197
|
-
"bare-pipe": "^4.
|
|
1362
|
+
"bare-pipe": "^4.2.0",
|
|
1363
|
+
"bare-structured-clone": "^1.5.2",
|
|
1364
|
+
"bare-tcp": "^2.4.1",
|
|
1198
1365
|
"bare-url": "^2.2.2"
|
|
1199
1366
|
},
|
|
1200
1367
|
"engines": {
|
|
@@ -1219,9 +1386,9 @@
|
|
|
1219
1386
|
}
|
|
1220
1387
|
},
|
|
1221
1388
|
"node_modules/bare-tcp": {
|
|
1222
|
-
"version": "2.
|
|
1223
|
-
"resolved": "https://registry.npmjs.org/bare-tcp/-/bare-tcp-2.
|
|
1224
|
-
"integrity": "sha512-
|
|
1389
|
+
"version": "2.5.1",
|
|
1390
|
+
"resolved": "https://registry.npmjs.org/bare-tcp/-/bare-tcp-2.5.1.tgz",
|
|
1391
|
+
"integrity": "sha512-N32OosAegmGzksr/huxIYLU/uaUARte6utO+vAu/EPQztMM7iAC55VeQSfzr2/XBJoz2OIETMvmU7/sdfiOGjw==",
|
|
1225
1392
|
"license": "Apache-2.0",
|
|
1226
1393
|
"dependencies": {
|
|
1227
1394
|
"bare-dns": "^2.0.4",
|
|
@@ -1230,6 +1397,14 @@
|
|
|
1230
1397
|
},
|
|
1231
1398
|
"engines": {
|
|
1232
1399
|
"bare": ">=1.16.0"
|
|
1400
|
+
},
|
|
1401
|
+
"peerDependencies": {
|
|
1402
|
+
"bare-pipe": "*"
|
|
1403
|
+
},
|
|
1404
|
+
"peerDependenciesMeta": {
|
|
1405
|
+
"bare-pipe": {
|
|
1406
|
+
"optional": true
|
|
1407
|
+
}
|
|
1233
1408
|
}
|
|
1234
1409
|
},
|
|
1235
1410
|
"node_modules/bare-thread": {
|
|
@@ -1261,9 +1436,9 @@
|
|
|
1261
1436
|
}
|
|
1262
1437
|
},
|
|
1263
1438
|
"node_modules/bare-tls": {
|
|
1264
|
-
"version": "
|
|
1265
|
-
"resolved": "https://registry.npmjs.org/bare-tls/-/bare-tls-
|
|
1266
|
-
"integrity": "sha512-
|
|
1439
|
+
"version": "3.1.7",
|
|
1440
|
+
"resolved": "https://registry.npmjs.org/bare-tls/-/bare-tls-3.1.7.tgz",
|
|
1441
|
+
"integrity": "sha512-AMw8tJlb3LhzAmhgXRcjDrTlNxR3gXXyj6G8eU9iwvCFtiUBD8MxAW7bwunA1gXDukgo40A970jX0APc2jMU7A==",
|
|
1267
1442
|
"license": "Apache-2.0",
|
|
1268
1443
|
"dependencies": {
|
|
1269
1444
|
"bare-net": "^2.0.1",
|
|
@@ -1347,15 +1522,15 @@
|
|
|
1347
1522
|
}
|
|
1348
1523
|
},
|
|
1349
1524
|
"node_modules/bare-ws": {
|
|
1350
|
-
"version": "
|
|
1351
|
-
"resolved": "https://registry.npmjs.org/bare-ws/-/bare-ws-
|
|
1352
|
-
"integrity": "sha512-
|
|
1525
|
+
"version": "3.0.0",
|
|
1526
|
+
"resolved": "https://registry.npmjs.org/bare-ws/-/bare-ws-3.0.0.tgz",
|
|
1527
|
+
"integrity": "sha512-q2v0UIQ0cFQBXQMp+0FRaoSk1EoYgOhzO7yio0TqBV6Rkfot97mbBYxb1ssw5faVCisVaFxQYY8113SMLYQBow==",
|
|
1353
1528
|
"license": "Apache-2.0",
|
|
1354
1529
|
"dependencies": {
|
|
1355
1530
|
"bare-crypto": "^1.2.0",
|
|
1356
1531
|
"bare-events": "^2.3.1",
|
|
1357
1532
|
"bare-http1": "^4.0.0",
|
|
1358
|
-
"bare-https": "^
|
|
1533
|
+
"bare-https": "^3.0.0",
|
|
1359
1534
|
"bare-stream": "^2.1.2"
|
|
1360
1535
|
},
|
|
1361
1536
|
"peerDependencies": {
|
|
@@ -1372,12 +1547,20 @@
|
|
|
1372
1547
|
}
|
|
1373
1548
|
},
|
|
1374
1549
|
"node_modules/bare-zlib": {
|
|
1375
|
-
"version": "1.
|
|
1376
|
-
"resolved": "https://registry.npmjs.org/bare-zlib/-/bare-zlib-1.
|
|
1377
|
-
"integrity": "sha512-
|
|
1550
|
+
"version": "1.4.0",
|
|
1551
|
+
"resolved": "https://registry.npmjs.org/bare-zlib/-/bare-zlib-1.4.0.tgz",
|
|
1552
|
+
"integrity": "sha512-xd0DT6nrj7553IkvfpJJSJiN0SM1OWQ4ycP53DET2zuF9UmDOh5XmWr+cA8pwkvS7YQyGHEm+kwtCZsUctUh5A==",
|
|
1378
1553
|
"license": "Apache-2.0",
|
|
1379
1554
|
"dependencies": {
|
|
1380
1555
|
"bare-stream": "^2.0.0"
|
|
1556
|
+
},
|
|
1557
|
+
"peerDependencies": {
|
|
1558
|
+
"bare-buffer": "*"
|
|
1559
|
+
},
|
|
1560
|
+
"peerDependenciesMeta": {
|
|
1561
|
+
"bare-buffer": {
|
|
1562
|
+
"optional": true
|
|
1563
|
+
}
|
|
1381
1564
|
}
|
|
1382
1565
|
},
|
|
1383
1566
|
"node_modules/bip39": {
|
|
@@ -1778,6 +1961,18 @@
|
|
|
1778
1961
|
"ws": "*"
|
|
1779
1962
|
}
|
|
1780
1963
|
},
|
|
1964
|
+
"node_modules/lodash.isplainobject": {
|
|
1965
|
+
"version": "4.0.6",
|
|
1966
|
+
"resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
|
|
1967
|
+
"integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",
|
|
1968
|
+
"license": "MIT"
|
|
1969
|
+
},
|
|
1970
|
+
"node_modules/lodash.mergewith": {
|
|
1971
|
+
"version": "4.6.2",
|
|
1972
|
+
"resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz",
|
|
1973
|
+
"integrity": "sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==",
|
|
1974
|
+
"license": "MIT"
|
|
1975
|
+
},
|
|
1781
1976
|
"node_modules/math-intrinsics": {
|
|
1782
1977
|
"version": "1.1.0",
|
|
1783
1978
|
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
|
|
@@ -2149,6 +2344,15 @@
|
|
|
2149
2344
|
"optional": true
|
|
2150
2345
|
}
|
|
2151
2346
|
}
|
|
2347
|
+
},
|
|
2348
|
+
"node_modules/zod": {
|
|
2349
|
+
"version": "4.4.3",
|
|
2350
|
+
"resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
|
|
2351
|
+
"integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
|
|
2352
|
+
"license": "MIT",
|
|
2353
|
+
"funding": {
|
|
2354
|
+
"url": "https://github.com/sponsors/colinhacks"
|
|
2355
|
+
}
|
|
2152
2356
|
}
|
|
2153
2357
|
}
|
|
2154
2358
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wdk-evm-wallet",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.48",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Separate EVM wallet service built on Tether WDK.",
|
|
@@ -11,11 +11,14 @@
|
|
|
11
11
|
"check": "node --check src/server.js && node --check src/wdk_evm_wallet.js && node --check src/config.js && node --check src/json.js && node --check src/local_vault.js && node --check src/network_state.js",
|
|
12
12
|
"test:swap-runtime": "node --test --test-concurrency=1 tests/smoke_swap_runtime.mjs",
|
|
13
13
|
"test:aave-runtime": "node --test --test-concurrency=1 tests/smoke_aave_runtime.mjs",
|
|
14
|
+
"test:morpho-runtime": "node --test --test-concurrency=1 tests/smoke_morpho_runtime.mjs",
|
|
14
15
|
"test:lido-runtime": "node --test --test-concurrency=1 tests/smoke_lido_runtime.mjs",
|
|
15
16
|
"test:uniswap-runtime": "node --test --test-concurrency=1 tests/smoke_uniswap_runtime.mjs",
|
|
16
17
|
"test:unit": "node --test tests/unit_uniswap_helpers.mjs"
|
|
17
18
|
},
|
|
18
19
|
"dependencies": {
|
|
20
|
+
"@morpho-org/morpho-sdk": "^3.2.0",
|
|
21
|
+
"@morpho-org/wdk-protocol-lending-morpho-evm": "^0.0.5",
|
|
19
22
|
"@tetherto/wdk": "^1.0.0-beta.9",
|
|
20
23
|
"@tetherto/wdk-protocol-lending-aave-evm": "^1.0.0-beta.4",
|
|
21
24
|
"@tetherto/wdk-protocol-swap-velora-evm": "^1.0.0-beta.4",
|
|
@@ -309,6 +309,8 @@ export function loadConfig(env = process.env) {
|
|
|
309
309
|
env.WDK_EVM_TRANSFER_MAX_FEE_WEI,
|
|
310
310
|
"WDK_EVM_TRANSFER_MAX_FEE_WEI"
|
|
311
311
|
),
|
|
312
|
+
morphoApiBaseUrl:
|
|
313
|
+
String(env.MORPHO_API_BASE_URL ?? "").trim() || "https://api.morpho.org/graphql",
|
|
312
314
|
lifiApiBaseUrl: String(env.LIFI_API_BASE_URL ?? "").trim() || "https://li.quest/v1",
|
|
313
315
|
lifiApiKey: String(env.LIFI_API_KEY ?? "").trim(),
|
|
314
316
|
lifiIntegrator: String(env.LIFI_INTEGRATOR ?? "").trim() || "openclaw",
|