@gvnrdao/dh-mcp 0.5.26 → 0.5.28
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/dist/boundary.js +79 -23
- package/dist/connector-embed.js +90 -30
- package/dist/connector.js +90 -30
- package/dist/index.js +90 -30
- package/package.json +2 -2
package/dist/connector.js
CHANGED
|
@@ -13782,9 +13782,9 @@ var require_interfaces = __commonJS({
|
|
|
13782
13782
|
}
|
|
13783
13783
|
});
|
|
13784
13784
|
|
|
13785
|
-
// node_modules/@gvnrdao/dh-lit-actions/pkg-dist/pkg-src/index.js
|
|
13785
|
+
// node_modules/@gvnrdao/dh-lit-ops/node_modules/@gvnrdao/dh-lit-actions/pkg-dist/pkg-src/index.js
|
|
13786
13786
|
var require_pkg_src = __commonJS({
|
|
13787
|
-
"node_modules/@gvnrdao/dh-lit-actions/pkg-dist/pkg-src/index.js"(exports2, module2) {
|
|
13787
|
+
"node_modules/@gvnrdao/dh-lit-ops/node_modules/@gvnrdao/dh-lit-actions/pkg-dist/pkg-src/index.js"(exports2, module2) {
|
|
13788
13788
|
"use strict";
|
|
13789
13789
|
var __defProp3 = Object.defineProperty;
|
|
13790
13790
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
|
@@ -43491,13 +43491,17 @@ function switchNetworkIndexLine(d) {
|
|
|
43491
43491
|
}
|
|
43492
43492
|
function psmStablecoinRealityNote(d) {
|
|
43493
43493
|
if (d.networks.includes("sepolia")) {
|
|
43494
|
-
return `**Practice funding (sepolia):** the sepolia stablecoin is
|
|
43495
|
-
|
|
43496
|
-
the
|
|
43497
|
-
|
|
43494
|
+
return `**Practice funding (sepolia):** the sepolia stablecoin is Circle's own testnet USDC \u2014
|
|
43495
|
+
real USDC with faucet-limited supply, NOT a token you can mint yourself. Practice USDC
|
|
43496
|
+
comes from the protocol's dispenser: \`POST /v1/faucet/sepolia/usdc\` on the GVNR api sends
|
|
43497
|
+
25 USDC by default (50 max per request, 100 per address per 24 h) to the address you name.
|
|
43498
|
+
\`protocol://psm\` states each token's kind (\`circle\` = Circle USDC; \`mock\` = the legacy
|
|
43499
|
+
practice token with a public self-serve \`mint\`, listed only until it is retired) and
|
|
43500
|
+
address so you never have to guess whether the money is real. On mainnet the stablecoin is
|
|
43501
|
+
real Circle USDC.`;
|
|
43498
43502
|
}
|
|
43499
43503
|
return `**Real money, and no practice path from here.** This deployment is not rolled out to
|
|
43500
|
-
sepolia, so the
|
|
43504
|
+
sepolia, so the faucet-limited testnet USDC that funds practice swaps there is out of reach \u2014
|
|
43501
43505
|
every swap executed on this deployment moves real Circle USDC and real UCD.
|
|
43502
43506
|
\`protocol://psm\` states the token's kind (\`mock\` vs \`circle\`) and address, so you never
|
|
43503
43507
|
have to guess whether the money is real.`;
|
|
@@ -44617,9 +44621,15 @@ function iso(sec) {
|
|
|
44617
44621
|
}
|
|
44618
44622
|
var PSM_FLOOR_TOLERANCE_BPS = 100;
|
|
44619
44623
|
var CANONICAL_MAINNET_USDC = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
|
|
44624
|
+
var CANONICAL_SEPOLIA_USDC = "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238";
|
|
44625
|
+
var CANONICAL_USDC_BY_NETWORK = {
|
|
44626
|
+
sepolia: CANONICAL_SEPOLIA_USDC,
|
|
44627
|
+
mainnet: CANONICAL_MAINNET_USDC
|
|
44628
|
+
};
|
|
44620
44629
|
function stablecoinKindFor(network, stablecoinAddress) {
|
|
44621
|
-
if (network
|
|
44622
|
-
|
|
44630
|
+
if (network === "mock") return "mock";
|
|
44631
|
+
if (stablecoinAddress.toLowerCase() === CANONICAL_USDC_BY_NETWORK[network].toLowerCase()) return "circle";
|
|
44632
|
+
return network === "sepolia" ? "mock" : "onchain";
|
|
44623
44633
|
}
|
|
44624
44634
|
function failureToError(f) {
|
|
44625
44635
|
const code = f.kind === "signer-missing" ? "SIGNER_UNAVAILABLE" : f.kind === "unavailable" ? "UPSTREAM_UNAVAILABLE" : f.kind === "unsupported" ? "NOT_IMPLEMENTED" : f.kind === "not-found" ? "NOT_FOUND" : "UPSTREAM_REJECTED";
|
|
@@ -45158,9 +45168,10 @@ var BoundaryCore = class {
|
|
|
45158
45168
|
chainId: this.deps.chainId,
|
|
45159
45169
|
psmAddress: s.psmAddress,
|
|
45160
45170
|
stablecoinAddress: s.stablecoinAddress,
|
|
45161
|
-
// Labelled by the ACTUAL coin, not the network (C-49): `circle` only for
|
|
45162
|
-
//
|
|
45163
|
-
// (e.g. mainnet USDT) — a
|
|
45171
|
+
// Labelled by the ACTUAL coin, not the network (C-49): `circle` only for Circle's
|
|
45172
|
+
// USDC on this network (mainnet, or Circle's faucet-limited Sepolia issuance), `mock`
|
|
45173
|
+
// for the practice token, `onchain` for any other real coin (e.g. mainnet USDT) — a
|
|
45174
|
+
// USDT swap must never render as "real USDC".
|
|
45164
45175
|
stablecoinKind: stablecoinKindFor(this.deps.network, s.stablecoinAddress),
|
|
45165
45176
|
stablecoinSymbol: s.stablecoinSymbol,
|
|
45166
45177
|
stablecoinDecimals: s.stablecoinDecimals,
|
|
@@ -56029,6 +56040,7 @@ var init_deployment_addresses = __esm2({
|
|
|
56029
56040
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
56030
56041
|
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
56031
56042
|
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
|
|
56043
|
+
usdcToken: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
|
|
56032
56044
|
mockUsdcToken: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
|
|
56033
56045
|
mockUsdtToken: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D",
|
|
56034
56046
|
PositionDelegateRegistry: "0x482369De283622E7b05731875ec137d4E3D208F9",
|
|
@@ -56041,7 +56053,8 @@ var init_deployment_addresses = __esm2({
|
|
|
56041
56053
|
StUSDCVault: "0x7aBac04d4Bf2b3A63AF363B9527970791346463a",
|
|
56042
56054
|
CarryFeeReceiver: "0x2C8e54f099Cf479182D7c87D76FeD88b4172cdB4",
|
|
56043
56055
|
FeeRecognitionLedger: "0xA5EBfb856fe2b847cC6011B0fe2dB6ACE63D6C3c",
|
|
56044
|
-
FeeBurner: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826"
|
|
56056
|
+
FeeBurner: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826",
|
|
56057
|
+
BackingOracle: "0x003b97EF135e414198bCc4D2c50AC6B1BFb602C0"
|
|
56045
56058
|
},
|
|
56046
56059
|
upgraded: {
|
|
56047
56060
|
PositionManager: {
|
|
@@ -56221,10 +56234,10 @@ var init_deployment_addresses = __esm2({
|
|
|
56221
56234
|
},
|
|
56222
56235
|
CarryFeeReceiver: {
|
|
56223
56236
|
previousImplementation: "0x9c43996C6f6BAD82F2A5152AbA61137E929EFA17",
|
|
56224
|
-
newImplementation: "
|
|
56225
|
-
upgradedAt: "2026-
|
|
56237
|
+
newImplementation: "0x3a86A23ff3cd6c26B1Fa2C5aeBAeEEdbF6095D69",
|
|
56238
|
+
upgradedAt: "2026-11-04T16:30:38.150Z",
|
|
56226
56239
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
56227
|
-
reason: "
|
|
56240
|
+
reason: "Shared upgrade script: CarryFeeReceiver implementation update"
|
|
56228
56241
|
},
|
|
56229
56242
|
FeeRecognitionLedger: {
|
|
56230
56243
|
previousImplementation: "0x50E3EEdf1e106041e0F521808815d7c6B2AeD8CA",
|
|
@@ -56232,6 +56245,13 @@ var init_deployment_addresses = __esm2({
|
|
|
56232
56245
|
upgradedAt: "2026-10-30T16:59:24.774Z",
|
|
56233
56246
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
56234
56247
|
reason: "Initial FeeRecognitionLedger deployment"
|
|
56248
|
+
},
|
|
56249
|
+
BackingOracle: {
|
|
56250
|
+
previousImplementation: "0x472C89BB35482e4F8d5092497087c47Fa8B9ccEa",
|
|
56251
|
+
newImplementation: "0x472C89BB35482e4F8d5092497087c47Fa8B9ccEa",
|
|
56252
|
+
upgradedAt: "2026-11-05T12:34:48.972Z",
|
|
56253
|
+
upgradedBy: "0x0f8f23674cc90Ef7107930a4437341fD8B460362",
|
|
56254
|
+
reason: "Initial BackingOracle deployment"
|
|
56235
56255
|
}
|
|
56236
56256
|
},
|
|
56237
56257
|
history: {
|
|
@@ -56326,6 +56346,7 @@ var init_deployment_addresses = __esm2({
|
|
|
56326
56346
|
LIT_ACTION_VALIDATOR_IMPL: "0x8FF30Fab0cC09C67dF6DF0ee017f817d5B101457",
|
|
56327
56347
|
CONTRACT_VERSION_REGISTRY: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
|
|
56328
56348
|
CONTRACT_VERSION_REGISTRY_IMPL: "0xF3389De4bCeC735e4F6d35b9f71170D96037D1B7",
|
|
56349
|
+
USDC_TOKEN: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
|
|
56329
56350
|
MOCK_USDC_TOKEN: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
|
|
56330
56351
|
MOCK_USDT_TOKEN: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D",
|
|
56331
56352
|
POSITION_DELEGATE_REGISTRY: "0x482369De283622E7b05731875ec137d4E3D208F9",
|
|
@@ -56344,10 +56365,12 @@ var init_deployment_addresses = __esm2({
|
|
|
56344
56365
|
STUSDC_VAULT: "0x7aBac04d4Bf2b3A63AF363B9527970791346463a",
|
|
56345
56366
|
STUSDC_VAULT_IMPL: "0x3619b14C23c5F7d950EF845481C2299939873004",
|
|
56346
56367
|
CARRY_FEE_RECEIVER: "0x2C8e54f099Cf479182D7c87D76FeD88b4172cdB4",
|
|
56347
|
-
CARRY_FEE_RECEIVER_IMPL: "
|
|
56368
|
+
CARRY_FEE_RECEIVER_IMPL: "0x3a86A23ff3cd6c26B1Fa2C5aeBAeEEdbF6095D69",
|
|
56348
56369
|
FEE_RECOGNITION_LEDGER: "0xA5EBfb856fe2b847cC6011B0fe2dB6ACE63D6C3c",
|
|
56349
56370
|
FEE_RECOGNITION_LEDGER_IMPL: "0x50E3EEdf1e106041e0F521808815d7c6B2AeD8CA",
|
|
56350
|
-
FEE_BURNER: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826"
|
|
56371
|
+
FEE_BURNER: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826",
|
|
56372
|
+
BACKING_ORACLE: "0x003b97EF135e414198bCc4D2c50AC6B1BFb602C0",
|
|
56373
|
+
BACKING_ORACLE_IMPL: "0x472C89BB35482e4F8d5092497087c47Fa8B9ccEa"
|
|
56351
56374
|
}
|
|
56352
56375
|
};
|
|
56353
56376
|
SEPOLIA_CONTRACTS = {
|
|
@@ -56371,6 +56394,7 @@ var init_deployment_addresses = __esm2({
|
|
|
56371
56394
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
56372
56395
|
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
56373
56396
|
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
|
|
56397
|
+
usdcToken: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
|
|
56374
56398
|
mockUsdcToken: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
|
|
56375
56399
|
mockUsdtToken: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D",
|
|
56376
56400
|
PositionDelegateRegistry: "0x482369De283622E7b05731875ec137d4E3D208F9",
|
|
@@ -56383,7 +56407,8 @@ var init_deployment_addresses = __esm2({
|
|
|
56383
56407
|
StUSDCVault: "0x7aBac04d4Bf2b3A63AF363B9527970791346463a",
|
|
56384
56408
|
CarryFeeReceiver: "0x2C8e54f099Cf479182D7c87D76FeD88b4172cdB4",
|
|
56385
56409
|
FeeRecognitionLedger: "0xA5EBfb856fe2b847cC6011B0fe2dB6ACE63D6C3c",
|
|
56386
|
-
FeeBurner: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826"
|
|
56410
|
+
FeeBurner: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826",
|
|
56411
|
+
BackingOracle: "0x003b97EF135e414198bCc4D2c50AC6B1BFb602C0"
|
|
56387
56412
|
};
|
|
56388
56413
|
MAINNET_DEPLOYMENT = {
|
|
56389
56414
|
network: "mainnet",
|
|
@@ -56413,6 +56438,7 @@ var init_deployment_addresses = __esm2({
|
|
|
56413
56438
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
56414
56439
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
56415
56440
|
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
56441
|
+
usdcToken: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
56416
56442
|
PKPValidation: "0x29922d3ccb86516f6C24F89f1eb3068655ca7Fa0",
|
|
56417
56443
|
AgentDelegationRegistry: "0x54853b7E91ce2Be34ce65655D80c4447e67187Fa",
|
|
56418
56444
|
DHAgentDelegate: "0x70232d0caBe529e29a01A442423d7e03BBd414c8"
|
|
@@ -56577,6 +56603,7 @@ var init_deployment_addresses = __esm2({
|
|
|
56577
56603
|
BITCOIN_WITHDRAWAL_ADDRESS_REGISTRY_IMPL: "0x190c08300Ae650fb88ed8156445BBeb13bE9E8a3",
|
|
56578
56604
|
SIMPLE_PSM_V2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
56579
56605
|
SIMPLE_PSM_V2_IMPL: "0x8717761444b1822c2E6916aB5bD9ac96c91b6DF5",
|
|
56606
|
+
USDC_TOKEN: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
56580
56607
|
UCD_CONTROLLER: "0x4b4f8063048bCD59D469219E3f07C6aaDF4f6157",
|
|
56581
56608
|
UCD_CONTROLLER_IMPL: "0x28B8cAB89D89B3F83581FD2290de2Ce84535bd0A",
|
|
56582
56609
|
UCD_TOKEN: "0xaAaB6B05E5EecB015898483d4e6703d7F218850b",
|
|
@@ -56633,6 +56660,7 @@ var init_deployment_addresses = __esm2({
|
|
|
56633
56660
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
56634
56661
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
56635
56662
|
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
56663
|
+
usdcToken: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
56636
56664
|
PKPValidation: "0x29922d3ccb86516f6C24F89f1eb3068655ca7Fa0",
|
|
56637
56665
|
AgentDelegationRegistry: "0x54853b7E91ce2Be34ce65655D80c4447e67187Fa",
|
|
56638
56666
|
DHAgentDelegate: "0x70232d0caBe529e29a01A442423d7e03BBd414c8"
|
|
@@ -57637,6 +57665,19 @@ var require_pkg_src2 = __commonJS2({
|
|
|
57637
57665
|
deployedAt: 1790925699980,
|
|
57638
57666
|
size: 7193,
|
|
57639
57667
|
hash: "4944ada61610cf64b32e33b5be62087088dcf5e821040c69e67942e643ce74c9"
|
|
57668
|
+
},
|
|
57669
|
+
backingAttestation: {
|
|
57670
|
+
cid: "QmRkWKprbhP865uALCjfp8gC34JJtZZuD5UFZxqB2jJ8Hi",
|
|
57671
|
+
authorizedCidHex: cidToHex(
|
|
57672
|
+
"QmRkWKprbhP865uALCjfp8gC34JJtZZuD5UFZxqB2jJ8Hi"
|
|
57673
|
+
),
|
|
57674
|
+
name: "Backing Attestation",
|
|
57675
|
+
description: "BackingOracle report: BTC collateral over loan UCD at a pinned block, from a keeper snapshot the action verifies",
|
|
57676
|
+
version: "1.0.2",
|
|
57677
|
+
deployed: true,
|
|
57678
|
+
deployedAt: 1793955517792,
|
|
57679
|
+
size: 20733,
|
|
57680
|
+
hash: "9b87800369aa37b12496cfaf8247e5e52eb82ad292519e75e799274046cf214a"
|
|
57640
57681
|
}
|
|
57641
57682
|
};
|
|
57642
57683
|
function getDeploymentsForNetwork(network) {
|
|
@@ -61844,6 +61885,7 @@ function getSepoliaConfig() {
|
|
|
61844
61885
|
positionManagerCore: SEPOLIA_CONTRACTS.PositionManagerCoreModule || "",
|
|
61845
61886
|
positionManagerViews: SEPOLIA_CONTRACTS.PositionManagerViews || "",
|
|
61846
61887
|
simplePsmV2: SEPOLIA_CONTRACTS.SimplePSMV2 || "",
|
|
61888
|
+
usdcToken: SEPOLIA_CONTRACTS.usdcToken || "",
|
|
61847
61889
|
mockUsdcToken: SEPOLIA_CONTRACTS.mockUsdcToken || "",
|
|
61848
61890
|
mockUsdtToken: SEPOLIA_CONTRACTS.mockUsdtToken || "",
|
|
61849
61891
|
loanOperationsManager: SEPOLIA_CONTRACTS.LoanOperationsManagerModule || "",
|
|
@@ -61867,7 +61909,8 @@ function getSepoliaConfig() {
|
|
|
61867
61909
|
stUsdcVault: SEPOLIA_CONTRACTS.StUSDCVault || "",
|
|
61868
61910
|
carryFeeReceiver: SEPOLIA_CONTRACTS.CarryFeeReceiver || "",
|
|
61869
61911
|
feeRecognitionLedger: SEPOLIA_CONTRACTS.FeeRecognitionLedger || "",
|
|
61870
|
-
feeBurner: SEPOLIA_CONTRACTS.FeeBurner || ""
|
|
61912
|
+
feeBurner: SEPOLIA_CONTRACTS.FeeBurner || "",
|
|
61913
|
+
backingOracle: SEPOLIA_CONTRACTS.BackingOracle || ""
|
|
61871
61914
|
},
|
|
61872
61915
|
subgraphs: {
|
|
61873
61916
|
// Lazy getter for the same module-init snapshot reason as serviceEndpoint.
|
|
@@ -61904,6 +61947,7 @@ function getMainnetConfig() {
|
|
|
61904
61947
|
positionManagerCore: MAINNET_CONTRACTS.PositionManagerCoreModule || "",
|
|
61905
61948
|
positionManagerViews: MAINNET_CONTRACTS.PositionManagerViews || "",
|
|
61906
61949
|
simplePsmV2: MAINNET_CONTRACTS.SimplePSMV2 || "",
|
|
61950
|
+
usdcToken: MAINNET_CONTRACTS.usdcToken || "",
|
|
61907
61951
|
loanOperationsManager: MAINNET_CONTRACTS.LoanOperationsManagerModule || "",
|
|
61908
61952
|
termManager: MAINNET_CONTRACTS.TermManagerModule || "",
|
|
61909
61953
|
circuitBreaker: MAINNET_CONTRACTS.CircuitBreakerModule || "",
|
|
@@ -61927,7 +61971,8 @@ function getMainnetConfig() {
|
|
|
61927
61971
|
stUsdcVault: MAINNET_CONTRACTS.StUSDCVault || "",
|
|
61928
61972
|
carryFeeReceiver: MAINNET_CONTRACTS.CarryFeeReceiver || "",
|
|
61929
61973
|
feeRecognitionLedger: MAINNET_CONTRACTS.FeeRecognitionLedger || "",
|
|
61930
|
-
feeBurner: MAINNET_CONTRACTS.FeeBurner || ""
|
|
61974
|
+
feeBurner: MAINNET_CONTRACTS.FeeBurner || "",
|
|
61975
|
+
backingOracle: MAINNET_CONTRACTS.BackingOracle || ""
|
|
61931
61976
|
},
|
|
61932
61977
|
subgraphs: {
|
|
61933
61978
|
// The MAINNET subgraph on The Graph's decentralized network — the same id
|
|
@@ -87894,6 +87939,7 @@ var SEPOLIA_DEPLOYMENT2 = {
|
|
|
87894
87939
|
SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
87895
87940
|
BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
87896
87941
|
ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
|
|
87942
|
+
usdcToken: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
|
|
87897
87943
|
mockUsdcToken: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
|
|
87898
87944
|
mockUsdtToken: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D",
|
|
87899
87945
|
PositionDelegateRegistry: "0x482369De283622E7b05731875ec137d4E3D208F9",
|
|
@@ -87906,7 +87952,8 @@ var SEPOLIA_DEPLOYMENT2 = {
|
|
|
87906
87952
|
StUSDCVault: "0x7aBac04d4Bf2b3A63AF363B9527970791346463a",
|
|
87907
87953
|
CarryFeeReceiver: "0x2C8e54f099Cf479182D7c87D76FeD88b4172cdB4",
|
|
87908
87954
|
FeeRecognitionLedger: "0xA5EBfb856fe2b847cC6011B0fe2dB6ACE63D6C3c",
|
|
87909
|
-
FeeBurner: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826"
|
|
87955
|
+
FeeBurner: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826",
|
|
87956
|
+
BackingOracle: "0x003b97EF135e414198bCc4D2c50AC6B1BFb602C0"
|
|
87910
87957
|
},
|
|
87911
87958
|
upgraded: {
|
|
87912
87959
|
PositionManager: {
|
|
@@ -88086,10 +88133,10 @@ var SEPOLIA_DEPLOYMENT2 = {
|
|
|
88086
88133
|
},
|
|
88087
88134
|
CarryFeeReceiver: {
|
|
88088
88135
|
previousImplementation: "0x9c43996C6f6BAD82F2A5152AbA61137E929EFA17",
|
|
88089
|
-
newImplementation: "
|
|
88090
|
-
upgradedAt: "2026-
|
|
88136
|
+
newImplementation: "0x3a86A23ff3cd6c26B1Fa2C5aeBAeEEdbF6095D69",
|
|
88137
|
+
upgradedAt: "2026-11-04T16:30:38.150Z",
|
|
88091
88138
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
88092
|
-
reason: "
|
|
88139
|
+
reason: "Shared upgrade script: CarryFeeReceiver implementation update"
|
|
88093
88140
|
},
|
|
88094
88141
|
FeeRecognitionLedger: {
|
|
88095
88142
|
previousImplementation: "0x50E3EEdf1e106041e0F521808815d7c6B2AeD8CA",
|
|
@@ -88097,6 +88144,13 @@ var SEPOLIA_DEPLOYMENT2 = {
|
|
|
88097
88144
|
upgradedAt: "2026-10-30T16:59:24.774Z",
|
|
88098
88145
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
88099
88146
|
reason: "Initial FeeRecognitionLedger deployment"
|
|
88147
|
+
},
|
|
88148
|
+
BackingOracle: {
|
|
88149
|
+
previousImplementation: "0x472C89BB35482e4F8d5092497087c47Fa8B9ccEa",
|
|
88150
|
+
newImplementation: "0x472C89BB35482e4F8d5092497087c47Fa8B9ccEa",
|
|
88151
|
+
upgradedAt: "2026-11-05T12:34:48.972Z",
|
|
88152
|
+
upgradedBy: "0x0f8f23674cc90Ef7107930a4437341fD8B460362",
|
|
88153
|
+
reason: "Initial BackingOracle deployment"
|
|
88100
88154
|
}
|
|
88101
88155
|
},
|
|
88102
88156
|
history: {
|
|
@@ -88191,6 +88245,7 @@ var SEPOLIA_DEPLOYMENT2 = {
|
|
|
88191
88245
|
LIT_ACTION_VALIDATOR_IMPL: "0x8FF30Fab0cC09C67dF6DF0ee017f817d5B101457",
|
|
88192
88246
|
CONTRACT_VERSION_REGISTRY: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
|
|
88193
88247
|
CONTRACT_VERSION_REGISTRY_IMPL: "0xF3389De4bCeC735e4F6d35b9f71170D96037D1B7",
|
|
88248
|
+
USDC_TOKEN: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
|
|
88194
88249
|
MOCK_USDC_TOKEN: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
|
|
88195
88250
|
MOCK_USDT_TOKEN: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D",
|
|
88196
88251
|
POSITION_DELEGATE_REGISTRY: "0x482369De283622E7b05731875ec137d4E3D208F9",
|
|
@@ -88209,10 +88264,12 @@ var SEPOLIA_DEPLOYMENT2 = {
|
|
|
88209
88264
|
STUSDC_VAULT: "0x7aBac04d4Bf2b3A63AF363B9527970791346463a",
|
|
88210
88265
|
STUSDC_VAULT_IMPL: "0x3619b14C23c5F7d950EF845481C2299939873004",
|
|
88211
88266
|
CARRY_FEE_RECEIVER: "0x2C8e54f099Cf479182D7c87D76FeD88b4172cdB4",
|
|
88212
|
-
CARRY_FEE_RECEIVER_IMPL: "
|
|
88267
|
+
CARRY_FEE_RECEIVER_IMPL: "0x3a86A23ff3cd6c26B1Fa2C5aeBAeEEdbF6095D69",
|
|
88213
88268
|
FEE_RECOGNITION_LEDGER: "0xA5EBfb856fe2b847cC6011B0fe2dB6ACE63D6C3c",
|
|
88214
88269
|
FEE_RECOGNITION_LEDGER_IMPL: "0x50E3EEdf1e106041e0F521808815d7c6B2AeD8CA",
|
|
88215
|
-
FEE_BURNER: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826"
|
|
88270
|
+
FEE_BURNER: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826",
|
|
88271
|
+
BACKING_ORACLE: "0x003b97EF135e414198bCc4D2c50AC6B1BFb602C0",
|
|
88272
|
+
BACKING_ORACLE_IMPL: "0x472C89BB35482e4F8d5092497087c47Fa8B9ccEa"
|
|
88216
88273
|
}
|
|
88217
88274
|
};
|
|
88218
88275
|
var MAINNET_DEPLOYMENT2 = {
|
|
@@ -88243,6 +88300,7 @@ var MAINNET_DEPLOYMENT2 = {
|
|
|
88243
88300
|
BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
|
|
88244
88301
|
BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
|
|
88245
88302
|
SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
88303
|
+
usdcToken: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
88246
88304
|
PKPValidation: "0x29922d3ccb86516f6C24F89f1eb3068655ca7Fa0",
|
|
88247
88305
|
AgentDelegationRegistry: "0x54853b7E91ce2Be34ce65655D80c4447e67187Fa",
|
|
88248
88306
|
DHAgentDelegate: "0x70232d0caBe529e29a01A442423d7e03BBd414c8"
|
|
@@ -88407,6 +88465,7 @@ var MAINNET_DEPLOYMENT2 = {
|
|
|
88407
88465
|
BITCOIN_WITHDRAWAL_ADDRESS_REGISTRY_IMPL: "0x190c08300Ae650fb88ed8156445BBeb13bE9E8a3",
|
|
88408
88466
|
SIMPLE_PSM_V2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
|
|
88409
88467
|
SIMPLE_PSM_V2_IMPL: "0x8717761444b1822c2E6916aB5bD9ac96c91b6DF5",
|
|
88468
|
+
USDC_TOKEN: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
88410
88469
|
UCD_CONTROLLER: "0x4b4f8063048bCD59D469219E3f07C6aaDF4f6157",
|
|
88411
88470
|
UCD_CONTROLLER_IMPL: "0x28B8cAB89D89B3F83581FD2290de2Ce84535bd0A",
|
|
88412
88471
|
UCD_TOKEN: "0xaAaB6B05E5EecB015898483d4e6703d7F218850b",
|
|
@@ -93137,7 +93196,8 @@ var RealUpstreamPlugin = class {
|
|
|
93137
93196
|
}
|
|
93138
93197
|
// ---- helpers ----
|
|
93139
93198
|
/** Lazily-built PSM wrapper. Addresses come ONLY from the bundled SDK deployment table
|
|
93140
|
-
* (never invented): sepolia runs
|
|
93199
|
+
* (never invented): sepolia runs Circle's testnet USDC (dispenser-funded) beside the
|
|
93200
|
+
* legacy self-mintable mock USDC until that is retired; the MAINNET table carries
|
|
93141
93201
|
* SimplePSMV2 but NO stablecoin address — mainnet PSM reads refuse typed rather than
|
|
93142
93202
|
* guess the Circle USDC address (reads-verify only, and only once the table names it). */
|
|
93143
93203
|
/** One wrapper per stablecoin — the PSM supports several and each has its own decimals,
|
|
@@ -94083,7 +94143,7 @@ function registerProtocolResources(server, getB) {
|
|
|
94083
94143
|
"protocol://psm",
|
|
94084
94144
|
{
|
|
94085
94145
|
title: "PSM status (UCD \u2194 USDC exchange)",
|
|
94086
|
-
description: "Live SimplePSMV2 state as {data, warnings, source}. `data` carries network + chainId + psmAddress (the money surface names its chain) and `stablecoins`: EVERY coin this PSM supports, each with its own stablecoinKind (mock = practice token with a public self-serve mint
|
|
94146
|
+
description: "Live SimplePSMV2 state as {data, warnings, source}. `data` carries network + chainId + psmAddress (the money surface names its chain) and `stablecoins`: EVERY coin this PSM supports, each with its own stablecoinKind (circle = Circle's canonical USDC on this network \u2014 real Circle USDC on mainnet; on sepolia Circle's own testnet USDC, real USDC that is NOT self-mintable: practice funds come from the protocol's faucet-limited dispenser, POST /v1/faucet/sepolia/usdc on the GVNR api, 25 USDC per request by default, 50 max, 100 per address per 24 h; mock = the practice token \u2014 the mock world's simulated coin, or the legacy sepolia MockUSDC with a public self-serve mint until it is retired; onchain = any OTHER real mainnet coin such as USDT \u2014 real and on-chain, but NOT Circle USDC), pause + redeemEnabled switches, live reserves, and per-direction fees (WITH their token), min/max (WITH their units \u2014 to-ucd caps in the stablecoin's smallest units, from-ucd caps in UCD wei) and per-block volume caps ('uncapped' when the on-chain cap is 0). This is where a caller learns the coin names that `psm_quote` and `psm_swap` require.",
|
|
94087
94147
|
mimeType: "application/json"
|
|
94088
94148
|
},
|
|
94089
94149
|
async (uri) => {
|
|
@@ -94145,7 +94205,7 @@ function registerBoundaryInfoResource(server, getB) {
|
|
|
94145
94205
|
}
|
|
94146
94206
|
|
|
94147
94207
|
// src/version.ts
|
|
94148
|
-
var SERVER_VERSION = "0.5.
|
|
94208
|
+
var SERVER_VERSION = "0.5.28";
|
|
94149
94209
|
|
|
94150
94210
|
// src/server.ts
|
|
94151
94211
|
var SERVER_INSTRUCTIONS = "Diamond Hands MCP \u2014 Bitcoin-collateralized borrowing. Before promising ANY flow, read the boundary://info resource and honor its `capabilities` block: it states which network this server is on, whether money is real (practiceWorld), whether writes are enabled (and the true reason when they are not), and which signer modes this build actually offers \u2014 never describe a flow outside it. State the network and whether funds are real when the user first acts. Authorization is chosen by conversation via the signer_setup tool (when listed); writes always require confirmed:true after showing the human-readable card. For walkthroughs consult the guide tool / guide:// resources instead of inventing steps; when a tool refuses, relay its stated reason and remedy \u2014 do not improvise alternatives. When a network_switch tool is listed, the network can change mid-session \u2014 after ANY switch, re-read boundary://info and state the new network and money reality to the user before doing anything else. When the user asks to disconnect / log out / sign out / forget or remove their wallet, call signer_setup action 'disconnect' (the full flush) \u2014 never treat 'reset-borrower' as a disconnect; it only swaps identity. READING DATA: a payload's fields and notes are authoritative \u2014 state what they say, never speculate past them, and when the data does not carry something, say 'the data does not carry X'. Field meanings live in guide topic 'reading-data'; `reading` notes inside a result are interpretation instructions for that exact payload \u2014 follow them over any prior assumption.";
|