@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/index.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;
@@ -42245,9 +42245,15 @@ function iso(sec) {
42245
42245
  }
42246
42246
  var PSM_FLOOR_TOLERANCE_BPS = 100;
42247
42247
  var CANONICAL_MAINNET_USDC = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
42248
+ var CANONICAL_SEPOLIA_USDC = "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238";
42249
+ var CANONICAL_USDC_BY_NETWORK = {
42250
+ sepolia: CANONICAL_SEPOLIA_USDC,
42251
+ mainnet: CANONICAL_MAINNET_USDC
42252
+ };
42248
42253
  function stablecoinKindFor(network, stablecoinAddress) {
42249
- if (network !== "mainnet") return "mock";
42250
- return stablecoinAddress.toLowerCase() === CANONICAL_MAINNET_USDC.toLowerCase() ? "circle" : "onchain";
42254
+ if (network === "mock") return "mock";
42255
+ if (stablecoinAddress.toLowerCase() === CANONICAL_USDC_BY_NETWORK[network].toLowerCase()) return "circle";
42256
+ return network === "sepolia" ? "mock" : "onchain";
42251
42257
  }
42252
42258
  function failureToError(f) {
42253
42259
  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";
@@ -42786,9 +42792,10 @@ var BoundaryCore = class {
42786
42792
  chainId: this.deps.chainId,
42787
42793
  psmAddress: s.psmAddress,
42788
42794
  stablecoinAddress: s.stablecoinAddress,
42789
- // Labelled by the ACTUAL coin, not the network (C-49): `circle` only for canonical
42790
- // mainnet USDC, `mock` for the practice token, `onchain` for any other real coin
42791
- // (e.g. mainnet USDT) — a USDT swap must never render as "real USDC".
42795
+ // Labelled by the ACTUAL coin, not the network (C-49): `circle` only for Circle's
42796
+ // USDC on this network (mainnet, or Circle's faucet-limited Sepolia issuance), `mock`
42797
+ // for the practice token, `onchain` for any other real coin (e.g. mainnet USDT) — a
42798
+ // USDT swap must never render as "real USDC".
42792
42799
  stablecoinKind: stablecoinKindFor(this.deps.network, s.stablecoinAddress),
42793
42800
  stablecoinSymbol: s.stablecoinSymbol,
42794
42801
  stablecoinDecimals: s.stablecoinDecimals,
@@ -53648,6 +53655,7 @@ var init_deployment_addresses = __esm2({
53648
53655
  SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
53649
53656
  BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
53650
53657
  ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
53658
+ usdcToken: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
53651
53659
  mockUsdcToken: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
53652
53660
  mockUsdtToken: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D",
53653
53661
  PositionDelegateRegistry: "0x482369De283622E7b05731875ec137d4E3D208F9",
@@ -53660,7 +53668,8 @@ var init_deployment_addresses = __esm2({
53660
53668
  StUSDCVault: "0x7aBac04d4Bf2b3A63AF363B9527970791346463a",
53661
53669
  CarryFeeReceiver: "0x2C8e54f099Cf479182D7c87D76FeD88b4172cdB4",
53662
53670
  FeeRecognitionLedger: "0xA5EBfb856fe2b847cC6011B0fe2dB6ACE63D6C3c",
53663
- FeeBurner: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826"
53671
+ FeeBurner: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826",
53672
+ BackingOracle: "0x003b97EF135e414198bCc4D2c50AC6B1BFb602C0"
53664
53673
  },
53665
53674
  upgraded: {
53666
53675
  PositionManager: {
@@ -53840,10 +53849,10 @@ var init_deployment_addresses = __esm2({
53840
53849
  },
53841
53850
  CarryFeeReceiver: {
53842
53851
  previousImplementation: "0x9c43996C6f6BAD82F2A5152AbA61137E929EFA17",
53843
- newImplementation: "0x9c43996C6f6BAD82F2A5152AbA61137E929EFA17",
53844
- upgradedAt: "2026-10-30T16:51:13.732Z",
53852
+ newImplementation: "0x3a86A23ff3cd6c26B1Fa2C5aeBAeEEdbF6095D69",
53853
+ upgradedAt: "2026-11-04T16:30:38.150Z",
53845
53854
  upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
53846
- reason: "Initial CarryFeeReceiver deployment"
53855
+ reason: "Shared upgrade script: CarryFeeReceiver implementation update"
53847
53856
  },
53848
53857
  FeeRecognitionLedger: {
53849
53858
  previousImplementation: "0x50E3EEdf1e106041e0F521808815d7c6B2AeD8CA",
@@ -53851,6 +53860,13 @@ var init_deployment_addresses = __esm2({
53851
53860
  upgradedAt: "2026-10-30T16:59:24.774Z",
53852
53861
  upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
53853
53862
  reason: "Initial FeeRecognitionLedger deployment"
53863
+ },
53864
+ BackingOracle: {
53865
+ previousImplementation: "0x472C89BB35482e4F8d5092497087c47Fa8B9ccEa",
53866
+ newImplementation: "0x472C89BB35482e4F8d5092497087c47Fa8B9ccEa",
53867
+ upgradedAt: "2026-11-05T12:34:48.972Z",
53868
+ upgradedBy: "0x0f8f23674cc90Ef7107930a4437341fD8B460362",
53869
+ reason: "Initial BackingOracle deployment"
53854
53870
  }
53855
53871
  },
53856
53872
  history: {
@@ -53945,6 +53961,7 @@ var init_deployment_addresses = __esm2({
53945
53961
  LIT_ACTION_VALIDATOR_IMPL: "0x8FF30Fab0cC09C67dF6DF0ee017f817d5B101457",
53946
53962
  CONTRACT_VERSION_REGISTRY: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
53947
53963
  CONTRACT_VERSION_REGISTRY_IMPL: "0xF3389De4bCeC735e4F6d35b9f71170D96037D1B7",
53964
+ USDC_TOKEN: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
53948
53965
  MOCK_USDC_TOKEN: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
53949
53966
  MOCK_USDT_TOKEN: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D",
53950
53967
  POSITION_DELEGATE_REGISTRY: "0x482369De283622E7b05731875ec137d4E3D208F9",
@@ -53963,10 +53980,12 @@ var init_deployment_addresses = __esm2({
53963
53980
  STUSDC_VAULT: "0x7aBac04d4Bf2b3A63AF363B9527970791346463a",
53964
53981
  STUSDC_VAULT_IMPL: "0x3619b14C23c5F7d950EF845481C2299939873004",
53965
53982
  CARRY_FEE_RECEIVER: "0x2C8e54f099Cf479182D7c87D76FeD88b4172cdB4",
53966
- CARRY_FEE_RECEIVER_IMPL: "0x9c43996C6f6BAD82F2A5152AbA61137E929EFA17",
53983
+ CARRY_FEE_RECEIVER_IMPL: "0x3a86A23ff3cd6c26B1Fa2C5aeBAeEEdbF6095D69",
53967
53984
  FEE_RECOGNITION_LEDGER: "0xA5EBfb856fe2b847cC6011B0fe2dB6ACE63D6C3c",
53968
53985
  FEE_RECOGNITION_LEDGER_IMPL: "0x50E3EEdf1e106041e0F521808815d7c6B2AeD8CA",
53969
- FEE_BURNER: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826"
53986
+ FEE_BURNER: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826",
53987
+ BACKING_ORACLE: "0x003b97EF135e414198bCc4D2c50AC6B1BFb602C0",
53988
+ BACKING_ORACLE_IMPL: "0x472C89BB35482e4F8d5092497087c47Fa8B9ccEa"
53970
53989
  }
53971
53990
  };
53972
53991
  SEPOLIA_CONTRACTS = {
@@ -53990,6 +54009,7 @@ var init_deployment_addresses = __esm2({
53990
54009
  SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
53991
54010
  BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
53992
54011
  ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
54012
+ usdcToken: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
53993
54013
  mockUsdcToken: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
53994
54014
  mockUsdtToken: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D",
53995
54015
  PositionDelegateRegistry: "0x482369De283622E7b05731875ec137d4E3D208F9",
@@ -54002,7 +54022,8 @@ var init_deployment_addresses = __esm2({
54002
54022
  StUSDCVault: "0x7aBac04d4Bf2b3A63AF363B9527970791346463a",
54003
54023
  CarryFeeReceiver: "0x2C8e54f099Cf479182D7c87D76FeD88b4172cdB4",
54004
54024
  FeeRecognitionLedger: "0xA5EBfb856fe2b847cC6011B0fe2dB6ACE63D6C3c",
54005
- FeeBurner: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826"
54025
+ FeeBurner: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826",
54026
+ BackingOracle: "0x003b97EF135e414198bCc4D2c50AC6B1BFb602C0"
54006
54027
  };
54007
54028
  MAINNET_DEPLOYMENT = {
54008
54029
  network: "mainnet",
@@ -54032,6 +54053,7 @@ var init_deployment_addresses = __esm2({
54032
54053
  BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
54033
54054
  BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
54034
54055
  SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
54056
+ usdcToken: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
54035
54057
  PKPValidation: "0x29922d3ccb86516f6C24F89f1eb3068655ca7Fa0",
54036
54058
  AgentDelegationRegistry: "0x54853b7E91ce2Be34ce65655D80c4447e67187Fa",
54037
54059
  DHAgentDelegate: "0x70232d0caBe529e29a01A442423d7e03BBd414c8"
@@ -54196,6 +54218,7 @@ var init_deployment_addresses = __esm2({
54196
54218
  BITCOIN_WITHDRAWAL_ADDRESS_REGISTRY_IMPL: "0x190c08300Ae650fb88ed8156445BBeb13bE9E8a3",
54197
54219
  SIMPLE_PSM_V2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
54198
54220
  SIMPLE_PSM_V2_IMPL: "0x8717761444b1822c2E6916aB5bD9ac96c91b6DF5",
54221
+ USDC_TOKEN: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
54199
54222
  UCD_CONTROLLER: "0x4b4f8063048bCD59D469219E3f07C6aaDF4f6157",
54200
54223
  UCD_CONTROLLER_IMPL: "0x28B8cAB89D89B3F83581FD2290de2Ce84535bd0A",
54201
54224
  UCD_TOKEN: "0xaAaB6B05E5EecB015898483d4e6703d7F218850b",
@@ -54252,6 +54275,7 @@ var init_deployment_addresses = __esm2({
54252
54275
  BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
54253
54276
  BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
54254
54277
  SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
54278
+ usdcToken: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
54255
54279
  PKPValidation: "0x29922d3ccb86516f6C24F89f1eb3068655ca7Fa0",
54256
54280
  AgentDelegationRegistry: "0x54853b7E91ce2Be34ce65655D80c4447e67187Fa",
54257
54281
  DHAgentDelegate: "0x70232d0caBe529e29a01A442423d7e03BBd414c8"
@@ -55256,6 +55280,19 @@ var require_pkg_src2 = __commonJS2({
55256
55280
  deployedAt: 1790925699980,
55257
55281
  size: 7193,
55258
55282
  hash: "4944ada61610cf64b32e33b5be62087088dcf5e821040c69e67942e643ce74c9"
55283
+ },
55284
+ backingAttestation: {
55285
+ cid: "QmRkWKprbhP865uALCjfp8gC34JJtZZuD5UFZxqB2jJ8Hi",
55286
+ authorizedCidHex: cidToHex(
55287
+ "QmRkWKprbhP865uALCjfp8gC34JJtZZuD5UFZxqB2jJ8Hi"
55288
+ ),
55289
+ name: "Backing Attestation",
55290
+ description: "BackingOracle report: BTC collateral over loan UCD at a pinned block, from a keeper snapshot the action verifies",
55291
+ version: "1.0.2",
55292
+ deployed: true,
55293
+ deployedAt: 1793955517792,
55294
+ size: 20733,
55295
+ hash: "9b87800369aa37b12496cfaf8247e5e52eb82ad292519e75e799274046cf214a"
55259
55296
  }
55260
55297
  };
55261
55298
  function getDeploymentsForNetwork(network) {
@@ -59463,6 +59500,7 @@ function getSepoliaConfig() {
59463
59500
  positionManagerCore: SEPOLIA_CONTRACTS.PositionManagerCoreModule || "",
59464
59501
  positionManagerViews: SEPOLIA_CONTRACTS.PositionManagerViews || "",
59465
59502
  simplePsmV2: SEPOLIA_CONTRACTS.SimplePSMV2 || "",
59503
+ usdcToken: SEPOLIA_CONTRACTS.usdcToken || "",
59466
59504
  mockUsdcToken: SEPOLIA_CONTRACTS.mockUsdcToken || "",
59467
59505
  mockUsdtToken: SEPOLIA_CONTRACTS.mockUsdtToken || "",
59468
59506
  loanOperationsManager: SEPOLIA_CONTRACTS.LoanOperationsManagerModule || "",
@@ -59486,7 +59524,8 @@ function getSepoliaConfig() {
59486
59524
  stUsdcVault: SEPOLIA_CONTRACTS.StUSDCVault || "",
59487
59525
  carryFeeReceiver: SEPOLIA_CONTRACTS.CarryFeeReceiver || "",
59488
59526
  feeRecognitionLedger: SEPOLIA_CONTRACTS.FeeRecognitionLedger || "",
59489
- feeBurner: SEPOLIA_CONTRACTS.FeeBurner || ""
59527
+ feeBurner: SEPOLIA_CONTRACTS.FeeBurner || "",
59528
+ backingOracle: SEPOLIA_CONTRACTS.BackingOracle || ""
59490
59529
  },
59491
59530
  subgraphs: {
59492
59531
  // Lazy getter for the same module-init snapshot reason as serviceEndpoint.
@@ -59523,6 +59562,7 @@ function getMainnetConfig() {
59523
59562
  positionManagerCore: MAINNET_CONTRACTS.PositionManagerCoreModule || "",
59524
59563
  positionManagerViews: MAINNET_CONTRACTS.PositionManagerViews || "",
59525
59564
  simplePsmV2: MAINNET_CONTRACTS.SimplePSMV2 || "",
59565
+ usdcToken: MAINNET_CONTRACTS.usdcToken || "",
59526
59566
  loanOperationsManager: MAINNET_CONTRACTS.LoanOperationsManagerModule || "",
59527
59567
  termManager: MAINNET_CONTRACTS.TermManagerModule || "",
59528
59568
  circuitBreaker: MAINNET_CONTRACTS.CircuitBreakerModule || "",
@@ -59546,7 +59586,8 @@ function getMainnetConfig() {
59546
59586
  stUsdcVault: MAINNET_CONTRACTS.StUSDCVault || "",
59547
59587
  carryFeeReceiver: MAINNET_CONTRACTS.CarryFeeReceiver || "",
59548
59588
  feeRecognitionLedger: MAINNET_CONTRACTS.FeeRecognitionLedger || "",
59549
- feeBurner: MAINNET_CONTRACTS.FeeBurner || ""
59589
+ feeBurner: MAINNET_CONTRACTS.FeeBurner || "",
59590
+ backingOracle: MAINNET_CONTRACTS.BackingOracle || ""
59550
59591
  },
59551
59592
  subgraphs: {
59552
59593
  // The MAINNET subgraph on The Graph's decentralized network — the same id
@@ -85513,6 +85554,7 @@ var SEPOLIA_DEPLOYMENT2 = {
85513
85554
  SimplePSMV2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
85514
85555
  BitcoinProviderRegistry: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
85515
85556
  ContractVersionRegistry: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
85557
+ usdcToken: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
85516
85558
  mockUsdcToken: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
85517
85559
  mockUsdtToken: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D",
85518
85560
  PositionDelegateRegistry: "0x482369De283622E7b05731875ec137d4E3D208F9",
@@ -85525,7 +85567,8 @@ var SEPOLIA_DEPLOYMENT2 = {
85525
85567
  StUSDCVault: "0x7aBac04d4Bf2b3A63AF363B9527970791346463a",
85526
85568
  CarryFeeReceiver: "0x2C8e54f099Cf479182D7c87D76FeD88b4172cdB4",
85527
85569
  FeeRecognitionLedger: "0xA5EBfb856fe2b847cC6011B0fe2dB6ACE63D6C3c",
85528
- FeeBurner: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826"
85570
+ FeeBurner: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826",
85571
+ BackingOracle: "0x003b97EF135e414198bCc4D2c50AC6B1BFb602C0"
85529
85572
  },
85530
85573
  upgraded: {
85531
85574
  PositionManager: {
@@ -85705,10 +85748,10 @@ var SEPOLIA_DEPLOYMENT2 = {
85705
85748
  },
85706
85749
  CarryFeeReceiver: {
85707
85750
  previousImplementation: "0x9c43996C6f6BAD82F2A5152AbA61137E929EFA17",
85708
- newImplementation: "0x9c43996C6f6BAD82F2A5152AbA61137E929EFA17",
85709
- upgradedAt: "2026-10-30T16:51:13.732Z",
85751
+ newImplementation: "0x3a86A23ff3cd6c26B1Fa2C5aeBAeEEdbF6095D69",
85752
+ upgradedAt: "2026-11-04T16:30:38.150Z",
85710
85753
  upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
85711
- reason: "Initial CarryFeeReceiver deployment"
85754
+ reason: "Shared upgrade script: CarryFeeReceiver implementation update"
85712
85755
  },
85713
85756
  FeeRecognitionLedger: {
85714
85757
  previousImplementation: "0x50E3EEdf1e106041e0F521808815d7c6B2AeD8CA",
@@ -85716,6 +85759,13 @@ var SEPOLIA_DEPLOYMENT2 = {
85716
85759
  upgradedAt: "2026-10-30T16:59:24.774Z",
85717
85760
  upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
85718
85761
  reason: "Initial FeeRecognitionLedger deployment"
85762
+ },
85763
+ BackingOracle: {
85764
+ previousImplementation: "0x472C89BB35482e4F8d5092497087c47Fa8B9ccEa",
85765
+ newImplementation: "0x472C89BB35482e4F8d5092497087c47Fa8B9ccEa",
85766
+ upgradedAt: "2026-11-05T12:34:48.972Z",
85767
+ upgradedBy: "0x0f8f23674cc90Ef7107930a4437341fD8B460362",
85768
+ reason: "Initial BackingOracle deployment"
85719
85769
  }
85720
85770
  },
85721
85771
  history: {
@@ -85810,6 +85860,7 @@ var SEPOLIA_DEPLOYMENT2 = {
85810
85860
  LIT_ACTION_VALIDATOR_IMPL: "0x8FF30Fab0cC09C67dF6DF0ee017f817d5B101457",
85811
85861
  CONTRACT_VERSION_REGISTRY: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
85812
85862
  CONTRACT_VERSION_REGISTRY_IMPL: "0xF3389De4bCeC735e4F6d35b9f71170D96037D1B7",
85863
+ USDC_TOKEN: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
85813
85864
  MOCK_USDC_TOKEN: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
85814
85865
  MOCK_USDT_TOKEN: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D",
85815
85866
  POSITION_DELEGATE_REGISTRY: "0x482369De283622E7b05731875ec137d4E3D208F9",
@@ -85828,10 +85879,12 @@ var SEPOLIA_DEPLOYMENT2 = {
85828
85879
  STUSDC_VAULT: "0x7aBac04d4Bf2b3A63AF363B9527970791346463a",
85829
85880
  STUSDC_VAULT_IMPL: "0x3619b14C23c5F7d950EF845481C2299939873004",
85830
85881
  CARRY_FEE_RECEIVER: "0x2C8e54f099Cf479182D7c87D76FeD88b4172cdB4",
85831
- CARRY_FEE_RECEIVER_IMPL: "0x9c43996C6f6BAD82F2A5152AbA61137E929EFA17",
85882
+ CARRY_FEE_RECEIVER_IMPL: "0x3a86A23ff3cd6c26B1Fa2C5aeBAeEEdbF6095D69",
85832
85883
  FEE_RECOGNITION_LEDGER: "0xA5EBfb856fe2b847cC6011B0fe2dB6ACE63D6C3c",
85833
85884
  FEE_RECOGNITION_LEDGER_IMPL: "0x50E3EEdf1e106041e0F521808815d7c6B2AeD8CA",
85834
- FEE_BURNER: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826"
85885
+ FEE_BURNER: "0x397a50c81Eb3C1f68F936794524Adb26B03Dd826",
85886
+ BACKING_ORACLE: "0x003b97EF135e414198bCc4D2c50AC6B1BFb602C0",
85887
+ BACKING_ORACLE_IMPL: "0x472C89BB35482e4F8d5092497087c47Fa8B9ccEa"
85835
85888
  }
85836
85889
  };
85837
85890
  var MAINNET_DEPLOYMENT2 = {
@@ -85862,6 +85915,7 @@ var MAINNET_DEPLOYMENT2 = {
85862
85915
  BitcoinProviderRegistry: "0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",
85863
85916
  BitcoinWithdrawalAddressRegistry: "0xf667f77FDba7458345f227eB6Bfe4148243E7270",
85864
85917
  SimplePSMV2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
85918
+ usdcToken: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
85865
85919
  PKPValidation: "0x29922d3ccb86516f6C24F89f1eb3068655ca7Fa0",
85866
85920
  AgentDelegationRegistry: "0x54853b7E91ce2Be34ce65655D80c4447e67187Fa",
85867
85921
  DHAgentDelegate: "0x70232d0caBe529e29a01A442423d7e03BBd414c8"
@@ -86026,6 +86080,7 @@ var MAINNET_DEPLOYMENT2 = {
86026
86080
  BITCOIN_WITHDRAWAL_ADDRESS_REGISTRY_IMPL: "0x190c08300Ae650fb88ed8156445BBeb13bE9E8a3",
86027
86081
  SIMPLE_PSM_V2: "0xfE0C14B4E614f40Bf58845b4B04CeD17fd116532",
86028
86082
  SIMPLE_PSM_V2_IMPL: "0x8717761444b1822c2E6916aB5bD9ac96c91b6DF5",
86083
+ USDC_TOKEN: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
86029
86084
  UCD_CONTROLLER: "0x4b4f8063048bCD59D469219E3f07C6aaDF4f6157",
86030
86085
  UCD_CONTROLLER_IMPL: "0x28B8cAB89D89B3F83581FD2290de2Ce84535bd0A",
86031
86086
  UCD_TOKEN: "0xaAaB6B05E5EecB015898483d4e6703d7F218850b",
@@ -90755,7 +90810,8 @@ var RealUpstreamPlugin = class {
90755
90810
  }
90756
90811
  // ---- helpers ----
90757
90812
  /** Lazily-built PSM wrapper. Addresses come ONLY from the bundled SDK deployment table
90758
- * (never invented): sepolia runs the self-mintable mock USDC; the MAINNET table carries
90813
+ * (never invented): sepolia runs Circle's testnet USDC (dispenser-funded) beside the
90814
+ * legacy self-mintable mock USDC until that is retired; the MAINNET table carries
90759
90815
  * SimplePSMV2 but NO stablecoin address — mainnet PSM reads refuse typed rather than
90760
90816
  * guess the Circle USDC address (reads-verify only, and only once the table names it). */
90761
90817
  /** One wrapper per stablecoin — the PSM supports several and each has its own decimals,
@@ -91822,13 +91878,17 @@ function switchNetworkIndexLine(d) {
91822
91878
  }
91823
91879
  function psmStablecoinRealityNote(d) {
91824
91880
  if (d.networks.includes("sepolia")) {
91825
- return `**Practice funding (sepolia):** the sepolia stablecoin is a MOCK USDC with a public
91826
- \`mint\` \u2014 you can create practice USDC for yourself, self-serve. \`protocol://psm\` states
91827
- the token's kind (\`mock\` vs \`circle\`) and address so you never have to guess whether
91828
- the money is real. On mainnet the stablecoin is real Circle USDC.`;
91881
+ return `**Practice funding (sepolia):** the sepolia stablecoin is Circle's own testnet USDC \u2014
91882
+ real USDC with faucet-limited supply, NOT a token you can mint yourself. Practice USDC
91883
+ comes from the protocol's dispenser: \`POST /v1/faucet/sepolia/usdc\` on the GVNR api sends
91884
+ 25 USDC by default (50 max per request, 100 per address per 24 h) to the address you name.
91885
+ \`protocol://psm\` states each token's kind (\`circle\` = Circle USDC; \`mock\` = the legacy
91886
+ practice token with a public self-serve \`mint\`, listed only until it is retired) and
91887
+ address so you never have to guess whether the money is real. On mainnet the stablecoin is
91888
+ real Circle USDC.`;
91829
91889
  }
91830
91890
  return `**Real money, and no practice path from here.** This deployment is not rolled out to
91831
- sepolia, so the self-mintable MOCK USDC that funds practice swaps there is out of reach \u2014
91891
+ sepolia, so the faucet-limited testnet USDC that funds practice swaps there is out of reach \u2014
91832
91892
  every swap executed on this deployment moves real Circle USDC and real UCD.
91833
91893
  \`protocol://psm\` states the token's kind (\`mock\` vs \`circle\`) and address, so you never
91834
91894
  have to guess whether the money is real.`;
@@ -93841,7 +93901,7 @@ function registerProtocolResources(server, getB) {
93841
93901
  "protocol://psm",
93842
93902
  {
93843
93903
  title: "PSM status (UCD \u2194 USDC exchange)",
93844
- 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; circle = canonical mainnet USDC, i.e. real Circle USDC; onchain = any OTHER real coin such as mainnet 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.",
93904
+ 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.",
93845
93905
  mimeType: "application/json"
93846
93906
  },
93847
93907
  async (uri) => {
@@ -93903,7 +93963,7 @@ function registerBoundaryInfoResource(server, getB) {
93903
93963
  }
93904
93964
 
93905
93965
  // src/version.ts
93906
- var SERVER_VERSION = "0.5.26";
93966
+ var SERVER_VERSION = "0.5.28";
93907
93967
 
93908
93968
  // src/server.ts
93909
93969
  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.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gvnrdao/dh-mcp",
3
- "version": "0.5.26",
3
+ "version": "0.5.28",
4
4
  "description": "MCP server for the Diamond Hands protocol",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -56,7 +56,7 @@
56
56
  "devDependencies": {
57
57
  "@anthropic-ai/mcpb": "2.1.2",
58
58
  "@google-cloud/firestore": "9.3.1",
59
- "@gvnrdao/dh-sdk": "^0.0.352",
59
+ "@gvnrdao/dh-sdk": "^0.0.354",
60
60
  "@types/express": "5.0.3",
61
61
  "@types/jest": "29.5.12",
62
62
  "@types/node": "20.14.10",