@pearcurve/sdk 0.1.0 → 0.1.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.
Files changed (42) hide show
  1. package/README.md +2 -2
  2. package/dist/abis.js +19 -19
  3. package/dist/abis.js.map +1 -1
  4. package/package.json +5 -5
  5. package/dist/abis/json/collateralTokenRegistry.json +0 -257
  6. package/dist/abis/json/errors.json +0 -1034
  7. package/dist/abis/json/feeManager.json +0 -668
  8. package/dist/abis/json/intentRegistry.json +0 -1169
  9. package/dist/abis/json/intentRegistryViews.json +0 -958
  10. package/dist/abis/json/loanAssetRegistry.json +0 -220
  11. package/dist/abis/json/loanHealthViewer.json +0 -176
  12. package/dist/abis/json/loanManager.json +0 -1404
  13. package/dist/abis/json/loanMarketCaps.json +0 -1642
  14. package/dist/abis/json/loanPositionToken.json +0 -650
  15. package/dist/abis/json/main.json +0 -1951
  16. package/dist/abis/json/matchingEngine.json +0 -2060
  17. package/dist/abis/json/priceOracle.json +0 -453
  18. package/dist/abis/json/protocolViewer.json +0 -959
  19. package/dist/abis/json/secondaryMarket.json +0 -1348
  20. package/dist/abis/json/strategyRegistry.json +0 -237
  21. package/dist/abis/json/termCurveOracle.json +0 -346
  22. package/dist/abis/json/yieldSource.json +0 -298
  23. package/dist/abis/json/yieldSourceRegistry.json +0 -295
  24. package/src/abis/json/collateralTokenRegistry.json +0 -257
  25. package/src/abis/json/errors.json +0 -1034
  26. package/src/abis/json/feeManager.json +0 -668
  27. package/src/abis/json/intentRegistry.json +0 -1169
  28. package/src/abis/json/intentRegistryViews.json +0 -958
  29. package/src/abis/json/loanAssetRegistry.json +0 -220
  30. package/src/abis/json/loanHealthViewer.json +0 -176
  31. package/src/abis/json/loanManager.json +0 -1404
  32. package/src/abis/json/loanMarketCaps.json +0 -1642
  33. package/src/abis/json/loanPositionToken.json +0 -650
  34. package/src/abis/json/main.json +0 -1951
  35. package/src/abis/json/matchingEngine.json +0 -2060
  36. package/src/abis/json/priceOracle.json +0 -453
  37. package/src/abis/json/protocolViewer.json +0 -959
  38. package/src/abis/json/secondaryMarket.json +0 -1348
  39. package/src/abis/json/strategyRegistry.json +0 -237
  40. package/src/abis/json/termCurveOracle.json +0 -346
  41. package/src/abis/json/yieldSource.json +0 -298
  42. package/src/abis/json/yieldSourceRegistry.json +0 -295
package/README.md CHANGED
@@ -8,7 +8,7 @@ For **reading** protocol state (intent book, loans, health), use the **public re
8
8
 
9
9
  ## Contents
10
10
 
11
- - **ABIs** — `Main`, `MatchingEngine`, `IntentRegistry` (core), **`IntentRegistryViews`**, `YieldSourceRegistry`, `IYieldSource`, and **`Errors.sol`** (`src/abis/json/errors.json`). Refresh after a contracts release with `npm run sync-abis`, which always copies `abis/` from `@pearcurve/contracts@latest` (the contracts package builds them from Foundry `out/` + `Errors.sol` error fragments + enum normalization). Or manually copy ABIs and run `npm run normalize-abis` so enum fields use `uint8` (avoids ethers `[Warning] Invalid Fragment`).
11
+ - **ABIs** — `Main`, `MatchingEngine`, `IntentRegistry` (core), **`IntentRegistryViews`**, `YieldSourceRegistry`, `IYieldSource`, and **`Errors.sol`**, imported from `@pearcurve/contracts`. Bump that dependency after a contracts release.
12
12
  - **Custom errors** — `decodeProtocolError` / `formatProtocolError` map revert selectors (`bytes4(keccak256("FillExceedsCapacity()"))`) from `Errors.sol` to human-readable copy. UI, API, and bots should use this instead of scraping wallet text.
13
13
  - **Preflight** — `assertLenderSubmitLiquidity(provider, …)` mirrors on-chain checks for `committedCapacity + maxPrincipal` vs yield `balanceOf` or wallet `min(balance, allowance)` before `submitLenderIntent`.
14
14
  - **Encoding** — `encodeSubmitLenderIntent`, `encodeMatchBundleOnChain`, etc.
@@ -75,7 +75,7 @@ Output: `dist/` (TypeScript declarations included).
75
75
 
76
76
  ## Publish
77
77
 
78
- `npm run publish:sdk` publishes this package as `@pearcurve/sdk`. It copies ABIs from `@pearcurve/contracts@latest`, runs the test suite, then `npm publish --access public`. A merge does not publish it.
78
+ `npm run publish:sdk` publishes this package as `@pearcurve/sdk`. It runs the test suite, then `npm publish --access public`. ABIs are loaded from the `@pearcurve/contracts` dependency. A merge does not publish it.
79
79
 
80
80
  Bump `version` in `package.json` first. npm rejects a second publish of the same version. You need to be logged in as a member of the `pearcurve` npm org.
81
81
 
package/dist/abis.js CHANGED
@@ -1,22 +1,22 @@
1
- import collateralTokenRegistryJson from './abis/json/collateralTokenRegistry.json' with { type: 'json' };
2
- import errorsJson from './abis/json/errors.json' with { type: 'json' };
3
- import feeManagerJson from './abis/json/feeManager.json' with { type: 'json' };
4
- import intentRegistryJson from './abis/json/intentRegistry.json' with { type: 'json' };
5
- import intentRegistryViewsJson from './abis/json/intentRegistryViews.json' with { type: 'json' };
6
- import loanAssetRegistryJson from './abis/json/loanAssetRegistry.json' with { type: 'json' };
7
- import loanHealthViewerJson from './abis/json/loanHealthViewer.json' with { type: 'json' };
8
- import protocolViewerJson from './abis/json/protocolViewer.json' with { type: 'json' };
9
- import loanManagerJson from './abis/json/loanManager.json' with { type: 'json' };
10
- import loanMarketCapsJson from './abis/json/loanMarketCaps.json' with { type: 'json' };
11
- import loanPositionTokenJson from './abis/json/loanPositionToken.json' with { type: 'json' };
12
- import mainJson from './abis/json/main.json' with { type: 'json' };
13
- import matchingEngineJson from './abis/json/matchingEngine.json' with { type: 'json' };
14
- import priceOracleJson from './abis/json/priceOracle.json' with { type: 'json' };
15
- import secondaryMarketJson from './abis/json/secondaryMarket.json' with { type: 'json' };
16
- import strategyRegistryJson from './abis/json/strategyRegistry.json' with { type: 'json' };
17
- import termCurveOracleJson from './abis/json/termCurveOracle.json' with { type: 'json' };
18
- import yieldSourceJson from './abis/json/yieldSource.json' with { type: 'json' };
19
- import yieldSourceRegistryJson from './abis/json/yieldSourceRegistry.json' with { type: 'json' };
1
+ import collateralTokenRegistryJson from '@pearcurve/contracts/collateralTokenRegistry' with { type: 'json' };
2
+ import errorsJson from '@pearcurve/contracts/errors' with { type: 'json' };
3
+ import feeManagerJson from '@pearcurve/contracts/feeManager' with { type: 'json' };
4
+ import intentRegistryJson from '@pearcurve/contracts/intentRegistry' with { type: 'json' };
5
+ import intentRegistryViewsJson from '@pearcurve/contracts/intentRegistryViews' with { type: 'json' };
6
+ import loanAssetRegistryJson from '@pearcurve/contracts/loanAssetRegistry' with { type: 'json' };
7
+ import loanHealthViewerJson from '@pearcurve/contracts/loanHealthViewer' with { type: 'json' };
8
+ import protocolViewerJson from '@pearcurve/contracts/protocolViewer' with { type: 'json' };
9
+ import loanManagerJson from '@pearcurve/contracts/loanManager' with { type: 'json' };
10
+ import loanMarketCapsJson from '@pearcurve/contracts/loanMarketCaps' with { type: 'json' };
11
+ import loanPositionTokenJson from '@pearcurve/contracts/loanPositionToken' with { type: 'json' };
12
+ import mainJson from '@pearcurve/contracts/main' with { type: 'json' };
13
+ import matchingEngineJson from '@pearcurve/contracts/matchingEngine' with { type: 'json' };
14
+ import priceOracleJson from '@pearcurve/contracts/priceOracle' with { type: 'json' };
15
+ import secondaryMarketJson from '@pearcurve/contracts/secondaryMarket' with { type: 'json' };
16
+ import strategyRegistryJson from '@pearcurve/contracts/strategyRegistry' with { type: 'json' };
17
+ import termCurveOracleJson from '@pearcurve/contracts/termCurveOracle' with { type: 'json' };
18
+ import yieldSourceJson from '@pearcurve/contracts/yieldSource' with { type: 'json' };
19
+ import yieldSourceRegistryJson from '@pearcurve/contracts/yieldSourceRegistry' with { type: 'json' };
20
20
  export const protocolErrorsAbi = errorsJson;
21
21
  export const mainAbi = mainJson;
22
22
  export const matchingEngineAbi = matchingEngineJson;
package/dist/abis.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"abis.js","sourceRoot":"","sources":["../src/abis.ts"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,MAAM,0CAA0C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACxG,OAAO,UAAU,MAAM,yBAAyB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AACtE,OAAO,c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TypeScript SDK for Pearcurve protocol (ethers, calldata helpers)",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -17,19 +17,19 @@
17
17
  }
18
18
  },
19
19
  "files": [
20
- "dist",
21
- "src/abis/json"
20
+ "dist"
22
21
  ],
23
22
  "scripts": {
24
- "sync-abis": "node ./scripts/sync-abis.mjs",
25
23
  "publish:sdk": "node ./scripts/publish-sdk.mjs",
26
24
  "sync-deployments": "node ./scripts/sync-deployments.mjs",
27
- "normalize-abis": "node ./scripts/normalize-abis.mjs",
28
25
  "build": "rm -rf dist && tsc",
29
26
  "prepack": "npm run build",
30
27
  "test": "vitest run",
31
28
  "test:watch": "vitest"
32
29
  },
30
+ "dependencies": {
31
+ "@pearcurve/contracts": "^0.1.0"
32
+ },
33
33
  "peerDependencies": {
34
34
  "ethers": "^6.16.0"
35
35
  },
@@ -1,257 +0,0 @@
1
- [
2
- {
3
- "type": "constructor",
4
- "inputs": [
5
- {
6
- "name": "governor_",
7
- "type": "address",
8
- "internalType": "address"
9
- },
10
- {
11
- "name": "_priceOracle",
12
- "type": "address",
13
- "internalType": "address"
14
- }
15
- ],
16
- "stateMutability": "nonpayable"
17
- },
18
- {
19
- "type": "function",
20
- "name": "acceptGovernance",
21
- "inputs": [],
22
- "outputs": [],
23
- "stateMutability": "nonpayable"
24
- },
25
- {
26
- "type": "function",
27
- "name": "governor",
28
- "inputs": [],
29
- "outputs": [
30
- {
31
- "name": "",
32
- "type": "address",
33
- "internalType": "address"
34
- }
35
- ],
36
- "stateMutability": "view"
37
- },
38
- {
39
- "type": "function",
40
- "name": "isApproved",
41
- "inputs": [
42
- {
43
- "name": "",
44
- "type": "address",
45
- "internalType": "address"
46
- }
47
- ],
48
- "outputs": [
49
- {
50
- "name": "",
51
- "type": "bool",
52
- "internalType": "bool"
53
- }
54
- ],
55
- "stateMutability": "view"
56
- },
57
- {
58
- "type": "function",
59
- "name": "listApprovedCollateralTokens",
60
- "inputs": [],
61
- "outputs": [
62
- {
63
- "name": "",
64
- "type": "address[]",
65
- "internalType": "address[]"
66
- }
67
- ],
68
- "stateMutability": "view"
69
- },
70
- {
71
- "type": "function",
72
- "name": "listPricedCollateralTokensForLoanAsset",
73
- "inputs": [
74
- {
75
- "name": "loanAsset",
76
- "type": "address",
77
- "internalType": "address"
78
- }
79
- ],
80
- "outputs": [
81
- {
82
- "name": "",
83
- "type": "address[]",
84
- "internalType": "address[]"
85
- }
86
- ],
87
- "stateMutability": "view"
88
- },
89
- {
90
- "type": "function",
91
- "name": "pendingGovernor",
92
- "inputs": [],
93
- "outputs": [
94
- {
95
- "name": "",
96
- "type": "address",
97
- "internalType": "address"
98
- }
99
- ],
100
- "stateMutability": "view"
101
- },
102
- {
103
- "type": "function",
104
- "name": "priceOracle",
105
- "inputs": [],
106
- "outputs": [
107
- {
108
- "name": "",
109
- "type": "address",
110
- "internalType": "address"
111
- }
112
- ],
113
- "stateMutability": "view"
114
- },
115
- {
116
- "type": "function",
117
- "name": "registerCollateral",
118
- "inputs": [
119
- {
120
- "name": "token",
121
- "type": "address",
122
- "internalType": "address"
123
- }
124
- ],
125
- "outputs": [],
126
- "stateMutability": "nonpayable"
127
- },
128
- {
129
- "type": "function",
130
- "name": "removeCollateral",
131
- "inputs": [
132
- {
133
- "name": "token",
134
- "type": "address",
135
- "internalType": "address"
136
- }
137
- ],
138
- "outputs": [],
139
- "stateMutability": "nonpayable"
140
- },
141
- {
142
- "type": "function",
143
- "name": "requireApproved",
144
- "inputs": [
145
- {
146
- "name": "token",
147
- "type": "address",
148
- "internalType": "address"
149
- }
150
- ],
151
- "outputs": [],
152
- "stateMutability": "view"
153
- },
154
- {
155
- "type": "function",
156
- "name": "transferGovernance",
157
- "inputs": [
158
- {
159
- "name": "newGovernor",
160
- "type": "address",
161
- "internalType": "address"
162
- }
163
- ],
164
- "outputs": [],
165
- "stateMutability": "nonpayable"
166
- },
167
- {
168
- "type": "event",
169
- "name": "CollateralRegistered",
170
- "inputs": [
171
- {
172
- "name": "token",
173
- "type": "address",
174
- "indexed": true,
175
- "internalType": "address"
176
- }
177
- ],
178
- "anonymous": false
179
- },
180
- {
181
- "type": "event",
182
- "name": "CollateralRemoved",
183
- "inputs": [
184
- {
185
- "name": "token",
186
- "type": "address",
187
- "indexed": true,
188
- "internalType": "address"
189
- }
190
- ],
191
- "anonymous": false
192
- },
193
- {
194
- "type": "event",
195
- "name": "GovernorTransferInitiated",
196
- "inputs": [
197
- {
198
- "name": "currentGovernor",
199
- "type": "address",
200
- "indexed": true,
201
- "internalType": "address"
202
- },
203
- {
204
- "name": "pendingGovernor_",
205
- "type": "address",
206
- "indexed": true,
207
- "internalType": "address"
208
- }
209
- ],
210
- "anonymous": false
211
- },
212
- {
213
- "type": "event",
214
- "name": "GovernorUpdated",
215
- "inputs": [
216
- {
217
- "name": "oldGovernor",
218
- "type": "address",
219
- "indexed": true,
220
- "internalType": "address"
221
- },
222
- {
223
- "name": "newGovernor",
224
- "type": "address",
225
- "indexed": true,
226
- "internalType": "address"
227
- }
228
- ],
229
- "anonymous": false
230
- },
231
- {
232
- "type": "error",
233
- "name": "CallerIsNotGovernor",
234
- "inputs": []
235
- },
236
- {
237
- "type": "error",
238
- "name": "CallerIsNotPendingGovernor",
239
- "inputs": []
240
- },
241
- {
242
- "type": "error",
243
- "name": "UnsupportedCollateral",
244
- "inputs": [
245
- {
246
- "name": "token",
247
- "type": "address",
248
- "internalType": "address"
249
- }
250
- ]
251
- },
252
- {
253
- "type": "error",
254
- "name": "ZeroAddress",
255
- "inputs": []
256
- }
257
- ]