@gvnrdao/dh-sdk 0.0.296 → 0.0.297
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/browser/dist/browser.js +1 -1
- package/dist/deployments.d.ts +2 -0
- package/dist/deployments.js +64 -64
- package/dist/deployments.mjs +64 -64
- package/dist/graphs/diamond-hands.d.ts +15 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.js +4943 -108215
- package/dist/index.mjs +4814 -108080
- package/dist/modules/diamond-hands-sdk.d.ts +2 -2
- package/dist/modules/withdrawal-address/withdrawal-address.module.d.ts +14 -2
- package/dist/server.js +235 -3
- package/dist/server.mjs +235 -3
- package/dist/utils/chunks/eip1559-broadcast.utils.d.ts +17 -1
- package/package.json +7 -11
- package/browser/dist/index.d.ts +0 -8
- package/browser/dist/index.d.ts.map +0 -1
- package/browser/dist/index.js +0 -25
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { getContractsByNetwork, getDeploymentByNetwork, ALL_CONTRACTS, ALL_DEPLOYMENTS, SEPOLIA_CONTRACTS, SEPOLIA_DEPLOYMENT, LOCALHOST_CONTRACTS, LOCALHOST_DEPLOYMENT, } from "./constants/chunks/deployment-addresses";
|
|
2
|
+
export type { DeploymentContracts, DeploymentData, DeploymentLatestEnv } from "./constants/chunks/deployment-addresses";
|
package/dist/deployments.js
CHANGED
|
@@ -52,7 +52,7 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
52
52
|
PositionManagerViews: "0x3b970E41a0668508B4B2ACb83653b2A402F745AE",
|
|
53
53
|
PositionManager: "0x68e0507D982AEBF1D1C1Af8FBbd842327e2deeFF",
|
|
54
54
|
OperationAuthorizationRegistry: "0x75f36E772df9616d40b02092642744D6fd702Df8",
|
|
55
|
-
PKPValidation: "
|
|
55
|
+
PKPValidation: "0x8a1365A974F91e92D2dF5C51216EFCD408e209A8",
|
|
56
56
|
BTCSpendAuthorizer: "0xd7E9Eb5eE53f1d9ee55Dc162bBC7486bE437B6bD",
|
|
57
57
|
LITActionValidator: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
58
58
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
@@ -66,30 +66,30 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
66
66
|
},
|
|
67
67
|
upgraded: {
|
|
68
68
|
PositionManager: {
|
|
69
|
-
previousImplementation: "
|
|
70
|
-
newImplementation: "
|
|
71
|
-
upgradedAt: "2026-
|
|
69
|
+
previousImplementation: "0x1B113E63FA5b1Cd0cCaf28CACE83EAb9621c8e8A",
|
|
70
|
+
newImplementation: "0x3a493909920DF104D4048c2c20270B9DAFC81716",
|
|
71
|
+
upgradedAt: "2026-07-03T20:18:00.987Z",
|
|
72
72
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
73
73
|
reason: "Shared upgrade script: PositionManager implementation update"
|
|
74
74
|
},
|
|
75
75
|
LoanOperationsManagerModule: {
|
|
76
|
-
previousImplementation: "
|
|
77
|
-
newImplementation: "
|
|
78
|
-
upgradedAt: "2026-
|
|
76
|
+
previousImplementation: "0x8c20e9Edf44146718F2EF15eEF47A201CaC229B8",
|
|
77
|
+
newImplementation: "0x6Ad08177F264f441074921C437670D1fA5934676",
|
|
78
|
+
upgradedAt: "2026-07-03T20:19:49.032Z",
|
|
79
79
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
80
|
-
reason: "
|
|
80
|
+
reason: "Shared upgrade script: LoanOperationsManagerModule implementation update"
|
|
81
81
|
},
|
|
82
82
|
UCDController: {
|
|
83
|
-
previousImplementation: "
|
|
84
|
-
newImplementation: "
|
|
85
|
-
upgradedAt: "2026-
|
|
83
|
+
previousImplementation: "0xF820098c311C736AB1793656044d95A0F6806B27",
|
|
84
|
+
newImplementation: "0x91204831bBCfcDCEa5fEE09B0d875778E9651690",
|
|
85
|
+
upgradedAt: "2026-07-03T19:52:40.152Z",
|
|
86
86
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
87
|
-
reason: "
|
|
87
|
+
reason: "Shared upgrade script: UCDController implementation update"
|
|
88
88
|
},
|
|
89
89
|
TermManagerModule: {
|
|
90
|
-
previousImplementation: "
|
|
91
|
-
newImplementation: "
|
|
92
|
-
upgradedAt: "2026-
|
|
90
|
+
previousImplementation: "0x358d6A7A864853beAA3E157fEB83dCEb1628E8eB",
|
|
91
|
+
newImplementation: "0xA2D6543faFA9d84C16Cd5e5E34F746B6e138F54d",
|
|
92
|
+
upgradedAt: "2026-07-03T19:58:25.937Z",
|
|
93
93
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
94
94
|
reason: "Shared upgrade script: TermManagerModule implementation update"
|
|
95
95
|
},
|
|
@@ -108,9 +108,9 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
108
108
|
reason: "Shared upgrade script: AdminModule implementation update"
|
|
109
109
|
},
|
|
110
110
|
PositionManagerViews: {
|
|
111
|
-
previousImplementation: "
|
|
112
|
-
newImplementation: "
|
|
113
|
-
upgradedAt: "2026-
|
|
111
|
+
previousImplementation: "0x1EB2B1d058006ACd9033E01e846D73eDE686b620",
|
|
112
|
+
newImplementation: "0xA455B542cFb36AF8451fc420dB89e590E5c87cef",
|
|
113
|
+
upgradedAt: "2026-07-03T20:11:25.817Z",
|
|
114
114
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
115
115
|
reason: "Shared upgrade script: PositionManagerViews implementation update"
|
|
116
116
|
},
|
|
@@ -122,46 +122,46 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
122
122
|
reason: "Add setPositionExpiry() for expiry-liquidation E2E testing"
|
|
123
123
|
},
|
|
124
124
|
UCDToken: {
|
|
125
|
-
previousImplementation: "
|
|
126
|
-
newImplementation: "
|
|
127
|
-
upgradedAt: "2026-
|
|
125
|
+
previousImplementation: "0xC587a2cb7e828A44d8C6190eDA6c47b08BA07115",
|
|
126
|
+
newImplementation: "0xa6C8C4cfc7DD3dCE5F1259A4a1eAf8461aA8CeC8",
|
|
127
|
+
upgradedAt: "2026-07-03T19:54:36.519Z",
|
|
128
128
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
129
129
|
reason: "Shared upgrade script: UCDToken implementation update"
|
|
130
130
|
},
|
|
131
131
|
PositionManagerCoreModule: {
|
|
132
|
-
previousImplementation: "
|
|
133
|
-
newImplementation: "
|
|
134
|
-
upgradedAt: "2026-
|
|
132
|
+
previousImplementation: "0xA52580D61Bc451dEe897F64cf51187Ad594B048c",
|
|
133
|
+
newImplementation: "0x0E721048c066C5589C41f97785f7E5737ac2BEB3",
|
|
134
|
+
upgradedAt: "2026-07-03T19:56:24.960Z",
|
|
135
135
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
136
136
|
reason: "Shared upgrade script: PositionManagerCoreModule implementation update"
|
|
137
137
|
},
|
|
138
138
|
CollateralManagerModule: {
|
|
139
|
-
previousImplementation: "
|
|
140
|
-
newImplementation: "
|
|
141
|
-
upgradedAt: "2026-
|
|
139
|
+
previousImplementation: "0xd47FE9126daE9A1e0fFdaCf539BE7345D3642bcb",
|
|
140
|
+
newImplementation: "0xC232E95951303828CF66eaf76181A7956144d27a",
|
|
141
|
+
upgradedAt: "2026-07-03T20:00:13.567Z",
|
|
142
142
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
143
143
|
reason: "Shared upgrade script: CollateralManagerModule implementation update"
|
|
144
144
|
},
|
|
145
145
|
LiquidationManagerModule: {
|
|
146
|
-
previousImplementation: "
|
|
147
|
-
newImplementation: "
|
|
148
|
-
upgradedAt: "2026-
|
|
146
|
+
previousImplementation: "0x31CD6191d80F484b72925Aa1834c80F5f739252A",
|
|
147
|
+
newImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
|
|
148
|
+
upgradedAt: "2026-07-03T20:02:00.579Z",
|
|
149
149
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
150
150
|
reason: "Shared upgrade script: LiquidationManagerModule implementation update"
|
|
151
151
|
},
|
|
152
152
|
BTCSpendAuthorizer: {
|
|
153
|
-
previousImplementation: "
|
|
154
|
-
newImplementation: "
|
|
155
|
-
upgradedAt: "2026-
|
|
153
|
+
previousImplementation: "0x8775a520cAA18c03Cc3f51ee254cAB830960f80E",
|
|
154
|
+
newImplementation: "0xdd3DFaEc50d6214d57eA64e8b76ff318b501607b",
|
|
155
|
+
upgradedAt: "2026-07-03T20:09:36.466Z",
|
|
156
156
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
157
157
|
reason: "Shared upgrade script: BTCSpendAuthorizer implementation update"
|
|
158
158
|
},
|
|
159
159
|
SimplePSMV2: {
|
|
160
|
-
previousImplementation: "
|
|
161
|
-
newImplementation: "
|
|
162
|
-
upgradedAt: "2026-
|
|
160
|
+
previousImplementation: "0xd2488cb7d9ba211e7437FcE9dcfBC3c2D4CBe419",
|
|
161
|
+
newImplementation: "0xE38010BE47B389922A1cd4b533470F0af7d20101",
|
|
162
|
+
upgradedAt: "2026-07-03T20:21:49.843Z",
|
|
163
163
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
164
|
-
reason: "
|
|
164
|
+
reason: "Shared upgrade script: SimplePSMV2 implementation update"
|
|
165
165
|
},
|
|
166
166
|
UpgradeValidator: {
|
|
167
167
|
previousImplementation: "0x535c9d66F9CFa4f2337cF6074BFc8fdcBBb9cFC4",
|
|
@@ -181,9 +181,9 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
181
181
|
note: "M-03: removed validateLITActionSignature, LIT_PROTOCOL_ROLE, isValidatedPKP, getValidationProof, helpers"
|
|
182
182
|
},
|
|
183
183
|
ContractVersionRegistry: {
|
|
184
|
-
previousImplementation: "
|
|
185
|
-
newImplementation: "
|
|
186
|
-
upgradedAt: "2026-
|
|
184
|
+
previousImplementation: "0x327Ced106C2804283994F0C0e2436E4B76AA7dAD",
|
|
185
|
+
newImplementation: "0xF3389De4bCeC735e4F6d35b9f71170D96037D1B7",
|
|
186
|
+
upgradedAt: "2026-07-03T19:50:48.918Z",
|
|
187
187
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
188
188
|
reason: "Shared upgrade script: ContractVersionRegistry implementation update"
|
|
189
189
|
},
|
|
@@ -195,9 +195,9 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
195
195
|
reason: "Shared upgrade script: PositionDelegateRegistry implementation update"
|
|
196
196
|
},
|
|
197
197
|
OperationAuthorizationRegistry: {
|
|
198
|
-
previousImplementation: "
|
|
199
|
-
newImplementation: "
|
|
200
|
-
upgradedAt: "2026-
|
|
198
|
+
previousImplementation: "0xF56090039c268B90f1867075813B5B36C40092B4",
|
|
199
|
+
newImplementation: "0xe0D981B60351f0f8fFDA2b50C8180Fb37CeF3883",
|
|
200
|
+
upgradedAt: "2026-07-03T20:23:37.669Z",
|
|
201
201
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
202
202
|
reason: "Shared upgrade script: OperationAuthorizationRegistry implementation update"
|
|
203
203
|
},
|
|
@@ -251,17 +251,17 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
253
|
pkpValidationDeployed: {
|
|
254
|
-
address: "
|
|
255
|
-
deployedAt: "2026-
|
|
254
|
+
address: "0x8a1365A974F91e92D2dF5C51216EFCD408e209A8",
|
|
255
|
+
deployedAt: "2026-07-03T19:48:13.932Z",
|
|
256
256
|
deployedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
257
|
-
setPKPValidationRegistryTx: "
|
|
258
|
-
replacedAddress: "
|
|
257
|
+
setPKPValidationRegistryTx: "0xab6b7e610c1ecf68da9a1e1150e61631e1f2a945bec12608c8357e03be25c4a5",
|
|
258
|
+
replacedAddress: "0xC8Ca02238fbCDAEbE6dbF804461D43F46F9406F4"
|
|
259
259
|
},
|
|
260
260
|
latestEnv: {
|
|
261
261
|
UCD_TOKEN: "0xdd817Ff47C9b8f81335Ac579895D8EA321Fa86Df",
|
|
262
262
|
UCD_CONTROLLER: "0x360Bde4e489ee94E26601B206932De09EE60FF04",
|
|
263
263
|
POSITION_MANAGER: "0x68e0507D982AEBF1D1C1Af8FBbd842327e2deeFF",
|
|
264
|
-
PKP_VALIDATION_REGISTRY: "
|
|
264
|
+
PKP_VALIDATION_REGISTRY: "0x8a1365A974F91e92D2dF5C51216EFCD408e209A8",
|
|
265
265
|
PKP_VALIDATION_CID_V1: "0x1220246b43f71828ed1cfdc455b6bd4fd9e7382251ea634589f8da9b12f61d40cd51",
|
|
266
266
|
PKP_ETH_ADDRESS: "0x9624C46073E1d1F5AB975c67Fc899536d599bb57",
|
|
267
267
|
OPERATION_AUTHORIZATION_REGISTRY: "0x75f36E772df9616d40b02092642744D6fd702Df8",
|
|
@@ -281,24 +281,24 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
281
281
|
POSITION_MANAGER_VIEWS: "0x3b970E41a0668508B4B2ACb83653b2A402F745AE",
|
|
282
282
|
CIRCUIT_BREAKER_MODULE: "0x3D0B2cAE481821E57BA9CC3807bCC0d0D7F18bd8",
|
|
283
283
|
ADMIN_MODULE: "0xAcd1f07915b17CA3727e7fE89BdF618A1545a1ed",
|
|
284
|
-
UCD_CONTROLLER_IMPL: "
|
|
285
|
-
LOAN_OPERATIONS_MANAGER_MODULE_IMPL: "
|
|
286
|
-
TERM_MANAGER_MODULE_IMPL: "
|
|
284
|
+
UCD_CONTROLLER_IMPL: "0x91204831bBCfcDCEa5fEE09B0d875778E9651690",
|
|
285
|
+
LOAN_OPERATIONS_MANAGER_MODULE_IMPL: "0x6Ad08177F264f441074921C437670D1fA5934676",
|
|
286
|
+
TERM_MANAGER_MODULE_IMPL: "0xA2D6543faFA9d84C16Cd5e5E34F746B6e138F54d",
|
|
287
287
|
CIRCUIT_BREAKER_MODULE_IMPL: "0xF6277dEF72D51312CC99616B5380f34Eb7603D75",
|
|
288
288
|
ADMIN_MODULE_IMPL: "0xBBA86246169f81a307Fafff02C1e3D8456aab973",
|
|
289
|
-
POSITION_MANAGER_VIEWS_IMPL: "
|
|
290
|
-
POSITION_MANAGER_IMPL: "
|
|
289
|
+
POSITION_MANAGER_VIEWS_IMPL: "0xA455B542cFb36AF8451fc420dB89e590E5c87cef",
|
|
290
|
+
POSITION_MANAGER_IMPL: "0x3a493909920DF104D4048c2c20270B9DAFC81716",
|
|
291
291
|
SIMPLE_PSM_V2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
292
|
-
SIMPLE_PSM_V2_IMPL: "
|
|
293
|
-
UCD_TOKEN_IMPL: "
|
|
292
|
+
SIMPLE_PSM_V2_IMPL: "0xE38010BE47B389922A1cd4b533470F0af7d20101",
|
|
293
|
+
UCD_TOKEN_IMPL: "0xa6C8C4cfc7DD3dCE5F1259A4a1eAf8461aA8CeC8",
|
|
294
294
|
POSITION_MANAGER_CORE_MODULE: "0xfFAA39a08887FeFB697eBC8691A8630CbCC33391",
|
|
295
|
-
POSITION_MANAGER_CORE_MODULE_IMPL: "
|
|
295
|
+
POSITION_MANAGER_CORE_MODULE_IMPL: "0x0E721048c066C5589C41f97785f7E5737ac2BEB3",
|
|
296
296
|
COLLATERAL_MANAGER_MODULE: "0x967E92c976Fc0fa8268D37D4d6B7245d912aA7dB",
|
|
297
|
-
COLLATERAL_MANAGER_MODULE_IMPL: "
|
|
297
|
+
COLLATERAL_MANAGER_MODULE_IMPL: "0xC232E95951303828CF66eaf76181A7956144d27a",
|
|
298
298
|
LIQUIDATION_MANAGER_MODULE: "0xC4AB00f39e7ceD812F5C67058C9fa44e15d40e76",
|
|
299
|
-
LIQUIDATION_MANAGER_MODULE_IMPL: "
|
|
299
|
+
LIQUIDATION_MANAGER_MODULE_IMPL: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
|
|
300
300
|
BTC_SPEND_AUTHORIZER: "0xd7E9Eb5eE53f1d9ee55Dc162bBC7486bE437B6bD",
|
|
301
|
-
BTC_SPEND_AUTHORIZER_IMPL: "
|
|
301
|
+
BTC_SPEND_AUTHORIZER_IMPL: "0xdd3DFaEc50d6214d57eA64e8b76ff318b501607b",
|
|
302
302
|
UPGRADE_VALIDATOR: "0x592e650edD9bA26ecc407989fdd6F9cdcDeC27A6",
|
|
303
303
|
UPGRADE_VALIDATOR_IMPL: "0x2Dd375041Be067E7d12bAB2106911Ce209EbD12f",
|
|
304
304
|
BITCOIN_PROVIDER_REGISTRY: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
@@ -306,7 +306,7 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
306
306
|
LIT_ACTION_VALIDATOR: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
307
307
|
LIT_ACTION_VALIDATOR_IMPL: "0xE2f99EA35b4DA01A66338427EC9077581d28FDb5",
|
|
308
308
|
CONTRACT_VERSION_REGISTRY: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
|
|
309
|
-
CONTRACT_VERSION_REGISTRY_IMPL: "
|
|
309
|
+
CONTRACT_VERSION_REGISTRY_IMPL: "0xF3389De4bCeC735e4F6d35b9f71170D96037D1B7",
|
|
310
310
|
MOCK_USDC_TOKEN: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
|
|
311
311
|
MOCK_USDT_TOKEN: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D",
|
|
312
312
|
POSITION_DELEGATE_REGISTRY: "0x482369De283622E7b05731875ec137d4E3D208F9",
|
|
@@ -314,7 +314,7 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
314
314
|
AGENT_MODULE: "0xefb8C29C1e7e92ed7d81a52dbedaed74e37fe380",
|
|
315
315
|
FEE_RECIPIENT_REGISTRY: "0x95795F8403DDb629E8527B2934C4e71f5fC0C374",
|
|
316
316
|
FEE_RECIPIENT_REGISTRY_IMPL: "0xd08513a7cB2dd354B26cDDf549616F12054c34c9",
|
|
317
|
-
OPERATION_AUTHORIZATION_REGISTRY_IMPL: "
|
|
317
|
+
OPERATION_AUTHORIZATION_REGISTRY_IMPL: "0xe0D981B60351f0f8fFDA2b50C8180Fb37CeF3883",
|
|
318
318
|
BITCOIN_WITHDRAWAL_ADDRESS_REGISTRY: "0x6376D392097F0A81e51BD83960A97EA20eaf1dbe",
|
|
319
319
|
BITCOIN_WITHDRAWAL_ADDRESS_REGISTRY_IMPL: "0xFF270BC4470dBA80430Bd1a3a66EB691599354fA"
|
|
320
320
|
}
|
|
@@ -334,7 +334,7 @@ var SEPOLIA_CONTRACTS = {
|
|
|
334
334
|
PositionManagerViews: "0x3b970E41a0668508B4B2ACb83653b2A402F745AE",
|
|
335
335
|
PositionManager: "0x68e0507D982AEBF1D1C1Af8FBbd842327e2deeFF",
|
|
336
336
|
OperationAuthorizationRegistry: "0x75f36E772df9616d40b02092642744D6fd702Df8",
|
|
337
|
-
PKPValidation: "
|
|
337
|
+
PKPValidation: "0x8a1365A974F91e92D2dF5C51216EFCD408e209A8",
|
|
338
338
|
BTCSpendAuthorizer: "0xd7E9Eb5eE53f1d9ee55Dc162bBC7486bE437B6bD",
|
|
339
339
|
LITActionValidator: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
340
340
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
@@ -374,7 +374,7 @@ var MAINNET_DEPLOYMENT = {
|
|
|
374
374
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
375
375
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
376
376
|
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
377
|
-
PKPValidation: "
|
|
377
|
+
PKPValidation: "0x29922d3ccb86516f6C24F89f1eb3068655ca7Fa0"
|
|
378
378
|
},
|
|
379
379
|
upgraded: {
|
|
380
380
|
SimplePSMV2: {
|
|
@@ -423,7 +423,7 @@ var MAINNET_CONTRACTS = {
|
|
|
423
423
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
424
424
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
425
425
|
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
426
|
-
PKPValidation: "
|
|
426
|
+
PKPValidation: "0x29922d3ccb86516f6C24F89f1eb3068655ca7Fa0"
|
|
427
427
|
};
|
|
428
428
|
var LOCALHOST_DEPLOYMENT = {
|
|
429
429
|
network: "localhost",
|
package/dist/deployments.mjs
CHANGED
|
@@ -19,7 +19,7 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
19
19
|
PositionManagerViews: "0x3b970E41a0668508B4B2ACb83653b2A402F745AE",
|
|
20
20
|
PositionManager: "0x68e0507D982AEBF1D1C1Af8FBbd842327e2deeFF",
|
|
21
21
|
OperationAuthorizationRegistry: "0x75f36E772df9616d40b02092642744D6fd702Df8",
|
|
22
|
-
PKPValidation: "
|
|
22
|
+
PKPValidation: "0x8a1365A974F91e92D2dF5C51216EFCD408e209A8",
|
|
23
23
|
BTCSpendAuthorizer: "0xd7E9Eb5eE53f1d9ee55Dc162bBC7486bE437B6bD",
|
|
24
24
|
LITActionValidator: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
25
25
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
@@ -33,30 +33,30 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
33
33
|
},
|
|
34
34
|
upgraded: {
|
|
35
35
|
PositionManager: {
|
|
36
|
-
previousImplementation: "
|
|
37
|
-
newImplementation: "
|
|
38
|
-
upgradedAt: "2026-
|
|
36
|
+
previousImplementation: "0x1B113E63FA5b1Cd0cCaf28CACE83EAb9621c8e8A",
|
|
37
|
+
newImplementation: "0x3a493909920DF104D4048c2c20270B9DAFC81716",
|
|
38
|
+
upgradedAt: "2026-07-03T20:18:00.987Z",
|
|
39
39
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
40
40
|
reason: "Shared upgrade script: PositionManager implementation update"
|
|
41
41
|
},
|
|
42
42
|
LoanOperationsManagerModule: {
|
|
43
|
-
previousImplementation: "
|
|
44
|
-
newImplementation: "
|
|
45
|
-
upgradedAt: "2026-
|
|
43
|
+
previousImplementation: "0x8c20e9Edf44146718F2EF15eEF47A201CaC229B8",
|
|
44
|
+
newImplementation: "0x6Ad08177F264f441074921C437670D1fA5934676",
|
|
45
|
+
upgradedAt: "2026-07-03T20:19:49.032Z",
|
|
46
46
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
47
|
-
reason: "
|
|
47
|
+
reason: "Shared upgrade script: LoanOperationsManagerModule implementation update"
|
|
48
48
|
},
|
|
49
49
|
UCDController: {
|
|
50
|
-
previousImplementation: "
|
|
51
|
-
newImplementation: "
|
|
52
|
-
upgradedAt: "2026-
|
|
50
|
+
previousImplementation: "0xF820098c311C736AB1793656044d95A0F6806B27",
|
|
51
|
+
newImplementation: "0x91204831bBCfcDCEa5fEE09B0d875778E9651690",
|
|
52
|
+
upgradedAt: "2026-07-03T19:52:40.152Z",
|
|
53
53
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
54
|
-
reason: "
|
|
54
|
+
reason: "Shared upgrade script: UCDController implementation update"
|
|
55
55
|
},
|
|
56
56
|
TermManagerModule: {
|
|
57
|
-
previousImplementation: "
|
|
58
|
-
newImplementation: "
|
|
59
|
-
upgradedAt: "2026-
|
|
57
|
+
previousImplementation: "0x358d6A7A864853beAA3E157fEB83dCEb1628E8eB",
|
|
58
|
+
newImplementation: "0xA2D6543faFA9d84C16Cd5e5E34F746B6e138F54d",
|
|
59
|
+
upgradedAt: "2026-07-03T19:58:25.937Z",
|
|
60
60
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
61
61
|
reason: "Shared upgrade script: TermManagerModule implementation update"
|
|
62
62
|
},
|
|
@@ -75,9 +75,9 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
75
75
|
reason: "Shared upgrade script: AdminModule implementation update"
|
|
76
76
|
},
|
|
77
77
|
PositionManagerViews: {
|
|
78
|
-
previousImplementation: "
|
|
79
|
-
newImplementation: "
|
|
80
|
-
upgradedAt: "2026-
|
|
78
|
+
previousImplementation: "0x1EB2B1d058006ACd9033E01e846D73eDE686b620",
|
|
79
|
+
newImplementation: "0xA455B542cFb36AF8451fc420dB89e590E5c87cef",
|
|
80
|
+
upgradedAt: "2026-07-03T20:11:25.817Z",
|
|
81
81
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
82
82
|
reason: "Shared upgrade script: PositionManagerViews implementation update"
|
|
83
83
|
},
|
|
@@ -89,46 +89,46 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
89
89
|
reason: "Add setPositionExpiry() for expiry-liquidation E2E testing"
|
|
90
90
|
},
|
|
91
91
|
UCDToken: {
|
|
92
|
-
previousImplementation: "
|
|
93
|
-
newImplementation: "
|
|
94
|
-
upgradedAt: "2026-
|
|
92
|
+
previousImplementation: "0xC587a2cb7e828A44d8C6190eDA6c47b08BA07115",
|
|
93
|
+
newImplementation: "0xa6C8C4cfc7DD3dCE5F1259A4a1eAf8461aA8CeC8",
|
|
94
|
+
upgradedAt: "2026-07-03T19:54:36.519Z",
|
|
95
95
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
96
96
|
reason: "Shared upgrade script: UCDToken implementation update"
|
|
97
97
|
},
|
|
98
98
|
PositionManagerCoreModule: {
|
|
99
|
-
previousImplementation: "
|
|
100
|
-
newImplementation: "
|
|
101
|
-
upgradedAt: "2026-
|
|
99
|
+
previousImplementation: "0xA52580D61Bc451dEe897F64cf51187Ad594B048c",
|
|
100
|
+
newImplementation: "0x0E721048c066C5589C41f97785f7E5737ac2BEB3",
|
|
101
|
+
upgradedAt: "2026-07-03T19:56:24.960Z",
|
|
102
102
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
103
103
|
reason: "Shared upgrade script: PositionManagerCoreModule implementation update"
|
|
104
104
|
},
|
|
105
105
|
CollateralManagerModule: {
|
|
106
|
-
previousImplementation: "
|
|
107
|
-
newImplementation: "
|
|
108
|
-
upgradedAt: "2026-
|
|
106
|
+
previousImplementation: "0xd47FE9126daE9A1e0fFdaCf539BE7345D3642bcb",
|
|
107
|
+
newImplementation: "0xC232E95951303828CF66eaf76181A7956144d27a",
|
|
108
|
+
upgradedAt: "2026-07-03T20:00:13.567Z",
|
|
109
109
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
110
110
|
reason: "Shared upgrade script: CollateralManagerModule implementation update"
|
|
111
111
|
},
|
|
112
112
|
LiquidationManagerModule: {
|
|
113
|
-
previousImplementation: "
|
|
114
|
-
newImplementation: "
|
|
115
|
-
upgradedAt: "2026-
|
|
113
|
+
previousImplementation: "0x31CD6191d80F484b72925Aa1834c80F5f739252A",
|
|
114
|
+
newImplementation: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
|
|
115
|
+
upgradedAt: "2026-07-03T20:02:00.579Z",
|
|
116
116
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
117
117
|
reason: "Shared upgrade script: LiquidationManagerModule implementation update"
|
|
118
118
|
},
|
|
119
119
|
BTCSpendAuthorizer: {
|
|
120
|
-
previousImplementation: "
|
|
121
|
-
newImplementation: "
|
|
122
|
-
upgradedAt: "2026-
|
|
120
|
+
previousImplementation: "0x8775a520cAA18c03Cc3f51ee254cAB830960f80E",
|
|
121
|
+
newImplementation: "0xdd3DFaEc50d6214d57eA64e8b76ff318b501607b",
|
|
122
|
+
upgradedAt: "2026-07-03T20:09:36.466Z",
|
|
123
123
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
124
124
|
reason: "Shared upgrade script: BTCSpendAuthorizer implementation update"
|
|
125
125
|
},
|
|
126
126
|
SimplePSMV2: {
|
|
127
|
-
previousImplementation: "
|
|
128
|
-
newImplementation: "
|
|
129
|
-
upgradedAt: "2026-
|
|
127
|
+
previousImplementation: "0xd2488cb7d9ba211e7437FcE9dcfBC3c2D4CBe419",
|
|
128
|
+
newImplementation: "0xE38010BE47B389922A1cd4b533470F0af7d20101",
|
|
129
|
+
upgradedAt: "2026-07-03T20:21:49.843Z",
|
|
130
130
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
131
|
-
reason: "
|
|
131
|
+
reason: "Shared upgrade script: SimplePSMV2 implementation update"
|
|
132
132
|
},
|
|
133
133
|
UpgradeValidator: {
|
|
134
134
|
previousImplementation: "0x535c9d66F9CFa4f2337cF6074BFc8fdcBBb9cFC4",
|
|
@@ -148,9 +148,9 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
148
148
|
note: "M-03: removed validateLITActionSignature, LIT_PROTOCOL_ROLE, isValidatedPKP, getValidationProof, helpers"
|
|
149
149
|
},
|
|
150
150
|
ContractVersionRegistry: {
|
|
151
|
-
previousImplementation: "
|
|
152
|
-
newImplementation: "
|
|
153
|
-
upgradedAt: "2026-
|
|
151
|
+
previousImplementation: "0x327Ced106C2804283994F0C0e2436E4B76AA7dAD",
|
|
152
|
+
newImplementation: "0xF3389De4bCeC735e4F6d35b9f71170D96037D1B7",
|
|
153
|
+
upgradedAt: "2026-07-03T19:50:48.918Z",
|
|
154
154
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
155
155
|
reason: "Shared upgrade script: ContractVersionRegistry implementation update"
|
|
156
156
|
},
|
|
@@ -162,9 +162,9 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
162
162
|
reason: "Shared upgrade script: PositionDelegateRegistry implementation update"
|
|
163
163
|
},
|
|
164
164
|
OperationAuthorizationRegistry: {
|
|
165
|
-
previousImplementation: "
|
|
166
|
-
newImplementation: "
|
|
167
|
-
upgradedAt: "2026-
|
|
165
|
+
previousImplementation: "0xF56090039c268B90f1867075813B5B36C40092B4",
|
|
166
|
+
newImplementation: "0xe0D981B60351f0f8fFDA2b50C8180Fb37CeF3883",
|
|
167
|
+
upgradedAt: "2026-07-03T20:23:37.669Z",
|
|
168
168
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
169
169
|
reason: "Shared upgrade script: OperationAuthorizationRegistry implementation update"
|
|
170
170
|
},
|
|
@@ -218,17 +218,17 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
220
|
pkpValidationDeployed: {
|
|
221
|
-
address: "
|
|
222
|
-
deployedAt: "2026-
|
|
221
|
+
address: "0x8a1365A974F91e92D2dF5C51216EFCD408e209A8",
|
|
222
|
+
deployedAt: "2026-07-03T19:48:13.932Z",
|
|
223
223
|
deployedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
224
|
-
setPKPValidationRegistryTx: "
|
|
225
|
-
replacedAddress: "
|
|
224
|
+
setPKPValidationRegistryTx: "0xab6b7e610c1ecf68da9a1e1150e61631e1f2a945bec12608c8357e03be25c4a5",
|
|
225
|
+
replacedAddress: "0xC8Ca02238fbCDAEbE6dbF804461D43F46F9406F4"
|
|
226
226
|
},
|
|
227
227
|
latestEnv: {
|
|
228
228
|
UCD_TOKEN: "0xdd817Ff47C9b8f81335Ac579895D8EA321Fa86Df",
|
|
229
229
|
UCD_CONTROLLER: "0x360Bde4e489ee94E26601B206932De09EE60FF04",
|
|
230
230
|
POSITION_MANAGER: "0x68e0507D982AEBF1D1C1Af8FBbd842327e2deeFF",
|
|
231
|
-
PKP_VALIDATION_REGISTRY: "
|
|
231
|
+
PKP_VALIDATION_REGISTRY: "0x8a1365A974F91e92D2dF5C51216EFCD408e209A8",
|
|
232
232
|
PKP_VALIDATION_CID_V1: "0x1220246b43f71828ed1cfdc455b6bd4fd9e7382251ea634589f8da9b12f61d40cd51",
|
|
233
233
|
PKP_ETH_ADDRESS: "0x9624C46073E1d1F5AB975c67Fc899536d599bb57",
|
|
234
234
|
OPERATION_AUTHORIZATION_REGISTRY: "0x75f36E772df9616d40b02092642744D6fd702Df8",
|
|
@@ -248,24 +248,24 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
248
248
|
POSITION_MANAGER_VIEWS: "0x3b970E41a0668508B4B2ACb83653b2A402F745AE",
|
|
249
249
|
CIRCUIT_BREAKER_MODULE: "0x3D0B2cAE481821E57BA9CC3807bCC0d0D7F18bd8",
|
|
250
250
|
ADMIN_MODULE: "0xAcd1f07915b17CA3727e7fE89BdF618A1545a1ed",
|
|
251
|
-
UCD_CONTROLLER_IMPL: "
|
|
252
|
-
LOAN_OPERATIONS_MANAGER_MODULE_IMPL: "
|
|
253
|
-
TERM_MANAGER_MODULE_IMPL: "
|
|
251
|
+
UCD_CONTROLLER_IMPL: "0x91204831bBCfcDCEa5fEE09B0d875778E9651690",
|
|
252
|
+
LOAN_OPERATIONS_MANAGER_MODULE_IMPL: "0x6Ad08177F264f441074921C437670D1fA5934676",
|
|
253
|
+
TERM_MANAGER_MODULE_IMPL: "0xA2D6543faFA9d84C16Cd5e5E34F746B6e138F54d",
|
|
254
254
|
CIRCUIT_BREAKER_MODULE_IMPL: "0xF6277dEF72D51312CC99616B5380f34Eb7603D75",
|
|
255
255
|
ADMIN_MODULE_IMPL: "0xBBA86246169f81a307Fafff02C1e3D8456aab973",
|
|
256
|
-
POSITION_MANAGER_VIEWS_IMPL: "
|
|
257
|
-
POSITION_MANAGER_IMPL: "
|
|
256
|
+
POSITION_MANAGER_VIEWS_IMPL: "0xA455B542cFb36AF8451fc420dB89e590E5c87cef",
|
|
257
|
+
POSITION_MANAGER_IMPL: "0x3a493909920DF104D4048c2c20270B9DAFC81716",
|
|
258
258
|
SIMPLE_PSM_V2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
259
|
-
SIMPLE_PSM_V2_IMPL: "
|
|
260
|
-
UCD_TOKEN_IMPL: "
|
|
259
|
+
SIMPLE_PSM_V2_IMPL: "0xE38010BE47B389922A1cd4b533470F0af7d20101",
|
|
260
|
+
UCD_TOKEN_IMPL: "0xa6C8C4cfc7DD3dCE5F1259A4a1eAf8461aA8CeC8",
|
|
261
261
|
POSITION_MANAGER_CORE_MODULE: "0xfFAA39a08887FeFB697eBC8691A8630CbCC33391",
|
|
262
|
-
POSITION_MANAGER_CORE_MODULE_IMPL: "
|
|
262
|
+
POSITION_MANAGER_CORE_MODULE_IMPL: "0x0E721048c066C5589C41f97785f7E5737ac2BEB3",
|
|
263
263
|
COLLATERAL_MANAGER_MODULE: "0x967E92c976Fc0fa8268D37D4d6B7245d912aA7dB",
|
|
264
|
-
COLLATERAL_MANAGER_MODULE_IMPL: "
|
|
264
|
+
COLLATERAL_MANAGER_MODULE_IMPL: "0xC232E95951303828CF66eaf76181A7956144d27a",
|
|
265
265
|
LIQUIDATION_MANAGER_MODULE: "0xC4AB00f39e7ceD812F5C67058C9fa44e15d40e76",
|
|
266
|
-
LIQUIDATION_MANAGER_MODULE_IMPL: "
|
|
266
|
+
LIQUIDATION_MANAGER_MODULE_IMPL: "0xCe7587C47094BBb3dCa13D7a2299Ec9beA6cd759",
|
|
267
267
|
BTC_SPEND_AUTHORIZER: "0xd7E9Eb5eE53f1d9ee55Dc162bBC7486bE437B6bD",
|
|
268
|
-
BTC_SPEND_AUTHORIZER_IMPL: "
|
|
268
|
+
BTC_SPEND_AUTHORIZER_IMPL: "0xdd3DFaEc50d6214d57eA64e8b76ff318b501607b",
|
|
269
269
|
UPGRADE_VALIDATOR: "0x592e650edD9bA26ecc407989fdd6F9cdcDeC27A6",
|
|
270
270
|
UPGRADE_VALIDATOR_IMPL: "0x2Dd375041Be067E7d12bAB2106911Ce209EbD12f",
|
|
271
271
|
BITCOIN_PROVIDER_REGISTRY: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
@@ -273,7 +273,7 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
273
273
|
LIT_ACTION_VALIDATOR: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
274
274
|
LIT_ACTION_VALIDATOR_IMPL: "0xE2f99EA35b4DA01A66338427EC9077581d28FDb5",
|
|
275
275
|
CONTRACT_VERSION_REGISTRY: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
|
|
276
|
-
CONTRACT_VERSION_REGISTRY_IMPL: "
|
|
276
|
+
CONTRACT_VERSION_REGISTRY_IMPL: "0xF3389De4bCeC735e4F6d35b9f71170D96037D1B7",
|
|
277
277
|
MOCK_USDC_TOKEN: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
|
|
278
278
|
MOCK_USDT_TOKEN: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D",
|
|
279
279
|
POSITION_DELEGATE_REGISTRY: "0x482369De283622E7b05731875ec137d4E3D208F9",
|
|
@@ -281,7 +281,7 @@ var SEPOLIA_DEPLOYMENT = {
|
|
|
281
281
|
AGENT_MODULE: "0xefb8C29C1e7e92ed7d81a52dbedaed74e37fe380",
|
|
282
282
|
FEE_RECIPIENT_REGISTRY: "0x95795F8403DDb629E8527B2934C4e71f5fC0C374",
|
|
283
283
|
FEE_RECIPIENT_REGISTRY_IMPL: "0xd08513a7cB2dd354B26cDDf549616F12054c34c9",
|
|
284
|
-
OPERATION_AUTHORIZATION_REGISTRY_IMPL: "
|
|
284
|
+
OPERATION_AUTHORIZATION_REGISTRY_IMPL: "0xe0D981B60351f0f8fFDA2b50C8180Fb37CeF3883",
|
|
285
285
|
BITCOIN_WITHDRAWAL_ADDRESS_REGISTRY: "0x6376D392097F0A81e51BD83960A97EA20eaf1dbe",
|
|
286
286
|
BITCOIN_WITHDRAWAL_ADDRESS_REGISTRY_IMPL: "0xFF270BC4470dBA80430Bd1a3a66EB691599354fA"
|
|
287
287
|
}
|
|
@@ -301,7 +301,7 @@ var SEPOLIA_CONTRACTS = {
|
|
|
301
301
|
PositionManagerViews: "0x3b970E41a0668508B4B2ACb83653b2A402F745AE",
|
|
302
302
|
PositionManager: "0x68e0507D982AEBF1D1C1Af8FBbd842327e2deeFF",
|
|
303
303
|
OperationAuthorizationRegistry: "0x75f36E772df9616d40b02092642744D6fd702Df8",
|
|
304
|
-
PKPValidation: "
|
|
304
|
+
PKPValidation: "0x8a1365A974F91e92D2dF5C51216EFCD408e209A8",
|
|
305
305
|
BTCSpendAuthorizer: "0xd7E9Eb5eE53f1d9ee55Dc162bBC7486bE437B6bD",
|
|
306
306
|
LITActionValidator: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
307
307
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
@@ -341,7 +341,7 @@ var MAINNET_DEPLOYMENT = {
|
|
|
341
341
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
342
342
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
343
343
|
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
344
|
-
PKPValidation: "
|
|
344
|
+
PKPValidation: "0x29922d3ccb86516f6C24F89f1eb3068655ca7Fa0"
|
|
345
345
|
},
|
|
346
346
|
upgraded: {
|
|
347
347
|
SimplePSMV2: {
|
|
@@ -390,7 +390,7 @@ var MAINNET_CONTRACTS = {
|
|
|
390
390
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
391
391
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
392
392
|
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
393
|
-
PKPValidation: "
|
|
393
|
+
PKPValidation: "0x29922d3ccb86516f6C24F89f1eb3068655ca7Fa0"
|
|
394
394
|
};
|
|
395
395
|
var LOCALHOST_DEPLOYMENT = {
|
|
396
396
|
network: "localhost",
|
|
@@ -30,6 +30,14 @@ export interface LoanTermData {
|
|
|
30
30
|
createdAt?: string;
|
|
31
31
|
createdAtBlock?: string;
|
|
32
32
|
}
|
|
33
|
+
/** A single withdrawal-address allowlist entry as indexed by the subgraph (raw address included). */
|
|
34
|
+
export interface WithdrawalAddressBookEntry {
|
|
35
|
+
addressHash: string;
|
|
36
|
+
address: string;
|
|
37
|
+
status: string;
|
|
38
|
+
usableAt: string;
|
|
39
|
+
addedAt: string;
|
|
40
|
+
}
|
|
33
41
|
export interface PSMConfigurationData {
|
|
34
42
|
id: string;
|
|
35
43
|
version: string;
|
|
@@ -202,6 +210,13 @@ export declare class DiamondHandsGraph {
|
|
|
202
210
|
* Typical id is the months as string, e.g., "12".
|
|
203
211
|
*/
|
|
204
212
|
getLoanTerm(months: number | string): Promise<LoanTermData | null>;
|
|
213
|
+
/**
|
|
214
|
+
* Get a wallet's withdrawal-address allowlist entries (with raw address strings) from
|
|
215
|
+
* the subgraph. The on-chain BitcoinWithdrawalAddressRegistry stores only
|
|
216
|
+
* keccak256(address) — the raw address is only available here, indexed from the
|
|
217
|
+
* contract's AddressAdded event log.
|
|
218
|
+
*/
|
|
219
|
+
getWithdrawalAddressBook(wallet: string): Promise<WithdrawalAddressBookEntry[]>;
|
|
205
220
|
/**
|
|
206
221
|
* Get PSM configuration from subgraph
|
|
207
222
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -32,9 +32,7 @@ export { WithdrawalAddressModule, createWithdrawalAddressModule, } from './modul
|
|
|
32
32
|
export type { WithdrawalAddressModuleConfig, WithdrawalAddressEntry, } from './modules/withdrawal-address/withdrawal-address.module';
|
|
33
33
|
export { BitcoinOperations, createBitcoinOperations, } from './modules/bitcoin/bitcoin-operations.module';
|
|
34
34
|
export type { BitcoinOperationsConfig, BitcoinNetwork, EnrichedBitcoinBalance, } from './modules/bitcoin/bitcoin-operations.module';
|
|
35
|
-
export { MockTokenManager, createMockTokenManager, } from './modules/mock/mock-token-manager.module';
|
|
36
35
|
export type { SupportedStablecoinData } from './graphs/diamond-hands';
|
|
37
|
-
export type { MockTokenManagerConfig, MockTokenTransactionResult, } from './modules/mock/mock-token-manager.module';
|
|
38
36
|
export { validateSDKConfig, validateServiceModeConfig, validateStandaloneModeConfig, isServiceModeConfig, isStandaloneModeConfig, } from './interfaces/chunks/config.i';
|
|
39
37
|
export { assertSafeServiceEndpoint } from './utils/service-endpoint-policy';
|
|
40
38
|
export { DEFAULT_LIT_NETWORK, VALID_LIT_NETWORKS, SDK_DEFAULTS, } from './constants/chunks/sdk-config';
|