@gvnrdao/dh-lit-actions 0.0.323 → 0.0.324

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 (40) hide show
  1. package/dist/a_dev_address-probe-signer.meta.json +1 -1
  2. package/dist/a_dev_address-probe.meta.json +1 -1
  3. package/dist/a_dev_always-signer.meta.json +1 -1
  4. package/dist/a_dev_authorization-dummy-b.meta.json +1 -1
  5. package/dist/a_dev_authorization-dummy.meta.json +1 -1
  6. package/dist/a_dev_ethers-version-probe.meta.json +1 -1
  7. package/dist/a_dev_process-payment-sign-only.meta.json +1 -1
  8. package/dist/agent-module-executor.meta.json +1 -1
  9. package/dist/btc-address-balance.meta.json +1 -1
  10. package/dist/btc-provider-probe.meta.json +1 -1
  11. package/dist/btc-transaction-signer.meta.json +1 -1
  12. package/dist/btc-utxo-invalidator.meta.json +1 -1
  13. package/dist/btc-withdrawal.meta.json +1 -1
  14. package/dist/carry-collateral-attestation.action.js +1 -0
  15. package/dist/carry-collateral-attestation.hash +1 -0
  16. package/dist/carry-collateral-attestation.meta.json +9 -0
  17. package/dist/carry-funding-attestation.action.js +1 -0
  18. package/dist/carry-funding-attestation.hash +1 -0
  19. package/dist/carry-funding-attestation.meta.json +9 -0
  20. package/dist/encrypt-parameter.meta.json +1 -1
  21. package/dist/extend-position-validator.meta.json +1 -1
  22. package/dist/liquidation-validator.meta.json +1 -1
  23. package/dist/loan-vault-btc-balance.meta.json +1 -1
  24. package/dist/pkp-validator.meta.json +1 -1
  25. package/dist/price-oracle.meta.json +1 -1
  26. package/dist/process-payment-validator.meta.json +1 -1
  27. package/dist/stale-spend-recovery-validator.meta.json +1 -1
  28. package/dist/ucd-mint-validator.meta.json +1 -1
  29. package/package.json +1 -1
  30. package/pkg-dist/pkg-src/constants/chunks/lit-actions-registry.d.ts.map +1 -1
  31. package/pkg-dist/pkg-src/index.js +26 -0
  32. package/pkg-dist/pkg-src/index.js.map +2 -2
  33. package/pkg-dist/pkg-src/interfaces/chunks/diamond-hands-lit-actions.i.d.ts +4 -0
  34. package/pkg-dist/pkg-src/interfaces/chunks/diamond-hands-lit-actions.i.d.ts.map +1 -1
  35. package/pkg-dist/src/constants/chunks/bitcoin-network-config.d.ts +1 -1
  36. package/pkg-dist/src/constants/chunks/bitcoin-network-config.d.ts.map +1 -1
  37. package/pkg-dist/src/constants/chunks/carry.d.ts +55 -0
  38. package/pkg-dist/src/constants/chunks/carry.d.ts.map +1 -0
  39. package/pkg-dist/src/modules/carry-attestation.module.d.ts +126 -0
  40. package/pkg-dist/src/modules/carry-attestation.module.d.ts.map +1 -0
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 1608,
5
5
  "compressionRatio": 0.45895020188425306,
6
6
  "hash": "c6042989c2e0ac53631e008a960aef78f977471b9a7a8fc05a1537b10f34c8a9",
7
- "buildTime": 1790432625365,
7
+ "buildTime": 1792165846044,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 856,
5
5
  "compressionRatio": 0.4827794561933535,
6
6
  "hash": "bc0bcb38452275c93fa74c5240ae496d7a3eef9d38e7fb0dd99c5202c554d5e3",
7
- "buildTime": 1790432625372,
7
+ "buildTime": 1792165846052,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 4307,
5
5
  "compressionRatio": 0.5257130271996476,
6
6
  "hash": "22aa318284a25e721d1c949c8b4e5dbbb21853d1a3f649a72fd85ae32467bb17",
7
- "buildTime": 1790432625397,
7
+ "buildTime": 1792165846101,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 1889,
5
5
  "compressionRatio": 0.4549913444893249,
6
6
  "hash": "790a1c5326a623065ab3c295d2c50cc8838d643730e53cb993a303ab9d7e0d83",
7
- "buildTime": 1790432625406,
7
+ "buildTime": 1792165846108,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 2220,
5
5
  "compressionRatio": 0.4740582800284293,
6
6
  "hash": "828aea87c7a7652377e00cb7a97c18324f09b87d3fa6703487fa3034e204a82c",
7
- "buildTime": 1790432625416,
7
+ "buildTime": 1792165846119,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 1046,
5
5
  "compressionRatio": 0.47960199004975124,
6
6
  "hash": "03ee5be239c91c735d2c95db89a0d1b77e602cfc18af8eb64b3281fddcd90a72",
7
- "buildTime": 1790432625426,
7
+ "buildTime": 1792165846126,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 2329,
5
5
  "compressionRatio": 0.44875739644970414,
6
6
  "hash": "6d26460ed9170782834926bcc30669fb48a9a0346f555eb838c99f8d9e6e8796",
7
- "buildTime": 1790432625436,
7
+ "buildTime": 1792165846137,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 14688,
5
5
  "compressionRatio": 0.411656318846385,
6
6
  "hash": "8edb9b12c784c8d7d153cce97235584c24665a788767ae68713dce91109ab35e",
7
- "buildTime": 1790432625494,
7
+ "buildTime": 1792165846178,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 30295,
5
5
  "compressionRatio": 0.5143164037450301,
6
6
  "hash": "2c67d9cfa4d50e835fbb28ae50e80217ceb2be3bb862c89290aadf43fdc739c9",
7
- "buildTime": 1790432625648,
7
+ "buildTime": 1792165846429,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 5769,
5
5
  "compressionRatio": 0.43173758865248224,
6
6
  "hash": "5e420c2f758018417309d4114333fc4c8200212db518f32281e9ec766cd7ebac",
7
- "buildTime": 1790432625686,
7
+ "buildTime": 1792165846449,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 73313,
5
5
  "compressionRatio": 0.5776195332169545,
6
6
  "hash": "d8b6bc646ba33fee7d46c8e9b281de776081ea6f182f56fd15d4c52aaf3dd030",
7
- "buildTime": 1790432625944,
7
+ "buildTime": 1792165846653,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 69219,
5
5
  "compressionRatio": 0.5883643759366303,
6
6
  "hash": "bda048d8cd6b5a39c2774bcf1320e82d1eea935c2a521006fb8b887e13b6dd8d",
7
- "buildTime": 1790432626155,
7
+ "buildTime": 1792165846838,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 101228,
5
5
  "compressionRatio": 0.5800155998473207,
6
6
  "hash": "2ed25eca6cc80a43061b7ad119737af48158fdb61d59f10cd06cea51b607f112",
7
- "buildTime": 1790432626407,
7
+ "buildTime": 1792165847076,
8
8
  "version": "0.1.0"
9
9
  }
@@ -0,0 +1 @@
1
+ var _LIT_ACTION_=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,n={};((t,r)=>{for(var a in r)e(t,a,{get:r[a],enumerable:!0})})(n,{main:()=>main});var i=11e3,o=1000000000000000000n,s=60,c=8e3,d={1:{PositionManager:"0x12A1836e56139ccaD8722B89519d84233efc224B",LoanOperationsManagerModule:"0x2561974A40F1AEed1251d0A090A83cF8536FB9E9",BTCSpendAuthorizer:"0xfBbF108486fa07F1B06a811C5b66ed68DD9c508a",BitcoinProviderRegistry:"0x4ab3Fb96e02893Ed6FAa61bad1918390c8DbbFFC",LITActionValidator:"0xD2c5d59c2CC5c409AC65ce0A817236aeC6869512",PositionDelegateRegistry:"0xf0aa2678aD4F60f49e8F7725089B5E86B7F8FE4C",TermManagerModule:"0xDB99CdF883ffa38acD099bC39F8d1f4508c9239E",UCDController:"0x4b4f8063048bCD59D469219E3f07C6aaDF4f6157",LiquidationManagerModule:"0x74B28695352E7bf736D6c9F76ccb7B4439477De9"},11155111:{PositionManager:"0x68e0507D982AEBF1D1C1Af8FBbd842327e2deeFF",LoanOperationsManagerModule:"0x3e05e760a87715207b7F4e8fD35EF7559BcA72C0",BTCSpendAuthorizer:"0xd7E9Eb5eE53f1d9ee55Dc162bBC7486bE437B6bD",BitcoinProviderRegistry:"0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",LITActionValidator:"0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",PositionDelegateRegistry:"0x482369De283622E7b05731875ec137d4E3D208F9",TermManagerModule:"0x94Adc6F9558368B1482197584f1fc7133Ecf835b",UCDController:"0x360Bde4e489ee94E26601B206932De09EE60FF04",LiquidationManagerModule:"0xC4AB00f39e7ceD812F5C67058C9fa44e15d40e76"}};var l="DiamondHands.Protocol",u="1",h=(e=>(e.SEPOLIA="sepolia",e.ETHEREUM="ethereum",e.HARDHAT="hardhat",e))(h||{}),p={sepolia:"regtest",ethereum:"mainnet",hardhat:"regtest"},m=["infura.io","drpc.org"],g={ethereum:1,sepolia:11155111,hardhat:1337};function y(e){const t=e.toLowerCase().trim();if("sepolia"===t)return"sepolia";if("ethereum"===t||"mainnet"===t)return"ethereum";if("hardhat"===t)return"hardhat";throw new Error(`Unsupported EVM chain: "${e}". Supported chains: ${Object.values(h).join(", ")}`)}function f(e){return g[e]}var w=class{constructor(e){this.termManagerAddress=e.termManagerAddress,this.loanOpsManagerAddress=e.loanOpsManagerAddress,this.liquidationManagerAddress=e.liquidationManagerAddress,this.chain=e.chain,this.chainId=e.chainId,this.rpcUrl=e.rpcUrl}async getLiquidationThreshold(){try{let e;e=this.rpcUrl?this.rpcUrl:await Lit.Actions.getRpcUrl({chain:this.chain});const t=new ethers.providers.StaticJsonRpcProvider({url:e,timeout:c},{name:"any",chainId:this.chainId}),r=[{inputs:[],name:"liquidationThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],a=new ethers.Contract(this.loanOpsManagerAddress,r,t),n=await a.liquidationThreshold();return Number(n.toString())}catch(e){throw console.error("[ProtocolParameters] Error fetching liquidation threshold:",e.message),new Error(`Failed to fetch liquidation threshold: ${e.message}`)}}async getTermFees(e){try{let t;t=this.rpcUrl?this.rpcUrl:await Lit.Actions.getRpcUrl({chain:this.chain});const r=new ethers.providers.StaticJsonRpcProvider({url:t,timeout:c},{name:"any",chainId:this.chainId}),a=[{inputs:[{internalType:"uint256",name:"_termMonths",type:"uint256"}],name:"getTermFees",outputs:[{internalType:"uint88",name:"originationFee",type:"uint88"},{internalType:"uint88",name:"extensionFee",type:"uint88"}],stateMutability:"view",type:"function"}],n=new ethers.Contract(this.termManagerAddress,a,r),i=await n.getTermFees(e);return{originationFeeBps:Number(i.originationFee?.toString?.()??i[0]?.toString?.()??i[0]),extensionFeeBps:Number(i.extensionFee?.toString?.()??i[1]?.toString?.()??i[1])}}catch(e){throw console.error("[ProtocolParameters] Error fetching term fees:",e.message),new Error(`Failed to fetch term fees: ${e.message}`)}}async getAuthorizedSpendsHash(e){try{const t=this.rpcUrl||await Lit.Actions.getRpcUrl({chain:this.chain}),r=new ethers.providers.StaticJsonRpcProvider({url:t,timeout:c},{name:"any",chainId:this.chainId}),a=e.startsWith("0x")?e:`0x${e.padStart(64,"0")}`,n=new ethers.Contract(this.loanOpsManagerAddress,[{inputs:[{name:"positionId",type:"bytes32"}],name:"getAuthorizedSpendsHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],r);return await n.getAuthorizedSpendsHash(a)}catch(e){throw console.error("[ProtocolParameters] Error fetching authorized spends hash:",e.message),new Error(`Failed to fetch authorized spends hash: ${e.message}`)}}async getMaxEscalatedThreshold(){try{let e;e=this.rpcUrl?this.rpcUrl:await Lit.Actions.getRpcUrl({chain:this.chain});const t=new ethers.providers.StaticJsonRpcProvider({url:e,timeout:c},{name:"any",chainId:this.chainId}),r=[{inputs:[],name:"maxEscalatedThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],a=new ethers.Contract(this.liquidationManagerAddress,r,t),n=await a.maxEscalatedThreshold();return Number(n.toString())}catch(e){throw console.error("[ProtocolParameters] Error fetching max escalated threshold:",e.message),new Error(`Failed to fetch max escalated threshold: ${e.message}`)}}};function b(e,t){try{const r=JSON.parse(e);if("object"==typeof r&&null!==r){if("sepolia"===t.toLowerCase())return r.regtest||r.testnet||r.mainnet;const e=function(e){return p[e]}(t);return"regtest"===e?r.regtest||r.testnet||r.mainnet:"testnet"===e&&(r.testnet||r.regtest)||r.mainnet}}catch(e){}return e}var A=class{constructor(e){this.config=e}async getVaultSnapshot(e){const t=await this.queryPositionState(e);console.log(`[Vault Snapshot] Raw vault address from contract: "${t.vaultAddress}"`);const r=!0===this.config.debugOverrides?.useStubbedBtcData,[a,n]=r?this.buildStubbedBtcSnapshotInputs(t):await Promise.all([this.config.vaultBalance.calculateTrustedBalance(e,t.vaultAddress),this.config.priceOracle.getBTCPrice()]),s=(c={termManagerAddress:this.config.termManagerAddress,loanOpsManagerAddress:this.config.loanOpsManagerAddress,liquidationManagerAddress:this.config.liquidationManagerAddress,chain:this.config.chain,chainId:this.config.chainId||1,rpcUrl:this.config.rpcUrl},new w(c));var c;const d=this.config.termOverride??t.selectedTerm,[l,u,h]=await Promise.all([s.getLiquidationThreshold(),s.getMaxEscalatedThreshold(),s.getTermFees(d)]),p=function(e,t){if(0===e)return{termDurationDays:0,termLengthDays:30*t,isExpired:!1,daysUntilExpiry:30*t,daysIntoGracePeriod:0};const r=30*t,a=Math.floor(Date.now()/1e3)-e,n=Math.floor(a/86400);return{termDurationDays:n,termLengthDays:r,isExpired:n>r,daysUntilExpiry:Math.max(0,r-n),daysIntoGracePeriod:Math.max(0,n-r)}}(t.termStartTimestamp,t.selectedTerm),m=function(e,t,r,a){if(!e)return r;const n=a??i,o=Math.min(t,30);return i+o*o*(n-i)/900}(p.isExpired,p.daysIntoGracePeriod,l,u),g=function(e,t,r){const a=e*t/10000000000000000n;return 0n===r?{collateralValueUsd:a,collateralRatioBps:Number.MAX_SAFE_INTEGER}:{collateralValueUsd:a,collateralRatioBps:Number(a*o*10000n/r)}}(a.availableBalance,n,t.ucdDebt),y=g.collateralRatioBps<m,f=g.collateralRatioBps-m;return{positionId:t.positionId,pkpId:t.pkpId,borrower:t.borrower,vaultAddress:t.vaultAddress,ucdDebt:t.ucdDebt,termStartTimestamp:t.termStartTimestamp,selectedTerm:t.selectedTerm,status:t.status,expiryAt:t.expiryAt,previousExpiryAt:t.previousExpiryAt,totalTerm:t.totalTerm,lastRenewedAt:t.lastRenewedAt,totalBTCSats:a.totalBalance,totalUTXOs:a.totalUTXOs,authorizedSpendsSats:a.authorizedBalance,authorizedSpendsHash:a.authorizedSpendsHash,availableBTCSats:a.availableBalance,availableUTXOs:a.availableUTXOs,btcPriceUsd:n,collateralValueUsd:g.collateralValueUsd,collateralRatioBps:g.collateralRatioBps,termDurationDays:p.termDurationDays,termLengthDays:p.termLengthDays,isExpired:p.isExpired,daysUntilExpiry:p.daysUntilExpiry,daysIntoGracePeriod:p.daysIntoGracePeriod,currentLiquidationThreshold:m,isLiquidatable:y,marginToLiquidationBps:f,liquidationThresholdBps:l,originationFeeBps:h.originationFeeBps,extensionFeeBps:h.extensionFeeBps,timestamp:Date.now()}}buildStubbedBtcSnapshotInputs(e){const t=BigInt(this.config.debugOverrides?.stubbedAvailableBtcSats??"10000000"),r=BigInt(this.config.debugOverrides?.stubbedBtcPriceUsd??"5000000000000");return[{totalUTXOs:[],totalBalance:t,authorizedUTXOs:[],authorizedBalance:0n,authorizedSpendsHash:this.config.debugOverrides?.stubbedAuthorizedSpendsHash??ethers.utils.keccak256(ethers.utils.defaultAbiCoder.encode(["bytes32","bytes32[]"],[e.positionId,[]])),availableUTXOs:[],availableBalance:t,vaultAddress:e.vaultAddress,positionId:e.positionId,timestamp:Date.now()},r]}async queryPositionState(e){const t=e.startsWith("0x")?e:`0x${e.padStart(64,"0")}`;let r;r=this.config.rpcUrl?this.config.rpcUrl:await Lit.Actions.getRpcUrl({chain:this.config.chain});const a=new ethers.providers.StaticJsonRpcProvider({url:r,timeout:c},this.config.chainId),n=new ethers.Contract(this.config.contractAddress,[{inputs:[],name:"core",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],a),i=await n.core(),o=new ethers.Contract(i,[{inputs:[{internalType:"bytes32",name:"positionId",type:"bytes32"}],name:"getPositionDetails",outputs:[{components:[{internalType:"bytes32",name:"positionId",type:"bytes32"},{internalType:"bytes32",name:"pkpId",type:"bytes32"},{internalType:"uint256",name:"ucdDebt",type:"uint256"},{internalType:"string",name:"vaultAddress",type:"string"},{internalType:"address",name:"borrower",type:"address"},{internalType:"uint40",name:"createdAt",type:"uint40"},{internalType:"uint40",name:"lastUpdated",type:"uint40"},{internalType:"uint16",name:"selectedTerm",type:"uint16"},{internalType:"uint40",name:"expiryAt",type:"uint40"},{internalType:"enum LoanStatusLib.LoanStatus",name:"status",type:"uint8"},{internalType:"uint40",name:"previousExpiryAt",type:"uint40"},{internalType:"uint16",name:"totalTerm",type:"uint16"},{internalType:"uint40",name:"lastRenewedAt",type:"uint40"}],internalType:"struct IPositionManagerCore.Position",name:"",type:"tuple"}],stateMutability:"view",type:"function"}],a),s=await o.getPositionDetails(t),d=Number(s.status);if(d<0||d>7)throw console.error("[VaultSnapshot] INVALID STATUS - ABI decoding error detected"),console.error(" Position ID:",t),console.error(" Contract:",this.config.contractAddress),console.error(" Status decoded:",d,"(expected 0-7)"),console.error(" Full position:",JSON.stringify(s,null,2)),new Error(`Invalid position status decoded from contract: ${d} (expected 0-7). This indicates an ABI decoding issue. Position: ${t}`);const l=Number(s.expiryAt),u=Number(s.selectedTerm),h=Number(s.totalTerm),p=Number(s.previousExpiryAt),m=Number(s.lastRenewedAt),g=(w=u,0===(f=l)?0:f-30*w*86400);var f,w;const A=b(s.vaultAddress,y(this.config.chain));if("string"!=typeof A||0===A.length)throw new Error(`Position ${t} vaultAddress has no entry for chain "${this.config.chain}"`);return{positionId:s.positionId,pkpId:s.pkpId,borrower:s.borrower,vaultAddress:A,ucdDebt:BigInt(s.ucdDebt.toString()),termStartTimestamp:g,selectedTerm:u,status:d,expiryAt:l,previousExpiryAt:p,totalTerm:h,lastRenewedAt:m}}async isLiquidatable(e){return(await this.getVaultSnapshot(e)).isLiquidatable}async getCollateralRatio(e){return(await this.getVaultSnapshot(e)).collateralRatioBps}async getAvailableBalance(e){return(await this.getVaultSnapshot(e)).availableBTCSats}async hasSufficientCollateral(e,t,r){const a=await this.getVaultSnapshot(e);return function(e,t,r,a){const n=t+r;return 0n===n||Number(e*o*10000n/n)>=a}(a.collateralValueUsd,a.ucdDebt,t,r)}},v="carry-collateral",T=0,E={CarryCollateralAttestation:[{name:"actionTag",type:"bytes32"},{name:"loanId",type:"bytes32"},{name:"borrower",type:"address"},{name:"borrowerKind",type:"uint8"},{name:"actor",type:"address"},{name:"actorValidUntil",type:"uint64"},{name:"btcVaultAddress",type:"string"},{name:"btcBalance",type:"uint128"},{name:"quantumTimestamp",type:"uint256"}]},B={11155111:{hyperEvmChainId:998,vault:"0x5310AE7e24835cC6f7740db18ebbF9f3aB422554",signer:"0x1d2ff7E2fC89ead767b44F3aB2cAA6b18Fff3a67"}};function C(){const e=Math.floor(Date.now()/1e3);return t=e,Math.floor(t/s)*s;var t}var I={hardhat:{chain:"hardhat",chainId:g.hardhat,bitcoinNetwork:p.hardhat,allowArbitraryBitcoinProvider:!0,allowArbitraryEvmRpc:!0,pinContractAddresses:!1,allowDevSinglePriceProvider:!0,minBitcoinBalanceConfirmations:1,minBitcoinSpendConfirmations:1,minConsensusProviders:1},sepolia:{chain:"sepolia",chainId:g.sepolia,bitcoinNetwork:p.sepolia,allowArbitraryBitcoinProvider:!1,allowArbitraryEvmRpc:!1,pinContractAddresses:!0,allowDevSinglePriceProvider:!1,minBitcoinBalanceConfirmations:1,minBitcoinSpendConfirmations:1,minConsensusProviders:2},ethereum:{chain:"ethereum",chainId:g.ethereum,bitcoinNetwork:p.ethereum,allowArbitraryBitcoinProvider:!1,allowArbitraryEvmRpc:!1,pinContractAddresses:!0,allowDevSinglePriceProvider:!1,minBitcoinBalanceConfirmations:6,minBitcoinSpendConfirmations:6,minConsensusProviders:2}};var S=["PositionManager","LoanOperationsManagerModule","BTCSpendAuthorizer","BitcoinProviderRegistry","LITActionValidator","PositionDelegateRegistry","TermManagerModule","UCDController","LiquidationManagerModule"];function M(e,t){const r={...t??{}};if(!e.pinContractAddresses)return r;const a=(n=e.chainId,d[n]??null);var n;if(!a)throw new Error(`No pinned contract-address set for chainId ${e.chainId} (${e.chain}); refusing to trust caller-supplied addresses on an enforced chain`);for(const t of S){const n=a[t];if(!n)throw new Error(`Pinned address set for ${e.chain} is missing required "${t}"; refusing to fall through to a caller-supplied value`);const i=r[t];if("string"==typeof i&&i.length>0&&i.toLowerCase()!==n.toLowerCase())throw new Error(`Caller-supplied "${t}" (${i}) contradicts the pinned ${e.chain} address (${n}); refusing to sign`);r[t]=n}return r}async function P(e,t){const r=t.rpcUrl,a=t.rpcSource??"params-or-lit-node";let n;if("string"==typeof r&&r.length>0)!function(e,t){if(e.allowArbitraryEvmRpc)return;if(!t||"string"!=typeof t)throw new Error("validateEvmRpcForPolicy: rpcUrl must be a non-empty string");let r;try{r=new URL(t).hostname}catch(e){throw new Error(`Invalid rpcUrl: ${e?.message??String(e)}`)}if(!m.some((e=>r===e||r.endsWith(`.${e}`))))throw new Error(`Custom RPC domain "${r}" is not in the approved list: ${m.join(", ")}`)}(e,r),n=r;else{if("params-only"===a)throw new Error('Missing required parameter "rpcUrl" \u2014 this action cannot resolve an RPC endpoint itself (Chipotle has no Lit.Actions.getRpcUrl)');if(n=await Lit.Actions.getRpcUrl({chain:t.chain}),"string"!=typeof n||0===n.length)throw new Error(`Lit.Actions.getRpcUrl returned no endpoint for chain "${t.chain}"`)}return{rpcUrl:n,addresses:M(e,t.contractAddresses)}}var D=5;var x={BalanceConfirmation:[{name:"actionTag",type:"bytes32"},{name:"positionId",type:"bytes32"},{name:"collateralValue",type:"uint256"},{name:"btcPrice",type:"uint256"},{name:"quantumTimestamp",type:"uint256"},{name:"borrower",type:"address"}]},U="updateBalance(bytes32,uint256,uint256,uint256,bytes)",F=180;var $,L=class extends A{read(e){return this.queryPositionState(e)}},R={getBTCPrice:async()=>{throw new Error("[carry-collateral] a price was requested; collateral attestations sign no price")}},O={calculateTrustedBalance:async()=>{throw new Error("[carry-collateral] a BTC read was requested; the BTC comes from the verified BalanceConfirmation")}};async function main(e){if(!e||"object"!=typeof e)throw new Error("[carry-collateral] missing args");for(const t of["chain","positionId","validatorWalletAddress","rpcUrl"])if("string"!=typeof e[t]||0===e[t].length)throw new Error(`[carry-collateral] missing "${t}"`);if(!e.carryVault||"object"!=typeof e.carryVault)throw new Error('[carry-collateral] missing "carryVault"');if(!e.balanceConfirmation||"object"!=typeof e.balanceConfirmation)throw new Error('[carry-collateral] missing "balanceConfirmation" (the loans\' signed vault balance, D81)');const t=function(e){const t=y(e),r=I[t];if(!r)throw new Error(`No chain policy registered for "${e}"`);return r}(e.chain),r=function(e,t,r,a,n,i){if(!Number.isInteger(t.chainId)||t.chainId<=0)throw new Error(`[carry] invalid carryVault.chainId: ${t.chainId}`);const o=ethers.utils.getAddress(t.vault),s=ethers.utils.getAddress(r);if(e.pinContractAddresses){if(!a)throw new Error(`[carry] no pinned carry pairing for ${e.chain} (${e.chainId}) \u2014 the vault is not deployed/pinned there; refusing to sign`);if(t.chainId!==a.hyperEvmChainId||o!==ethers.utils.getAddress(a.vault))throw new Error(`[carry] requested domain (${t.chainId}, ${o}) is not the pinned pairing (${a.hyperEvmChainId}, ${a.vault}) for ${e.chain}; refusing to sign`);if(s!==ethers.utils.getAddress(a.signer))throw new Error(`[carry] signer ${s} is not the pinned carry signer ${a.signer}; refusing to sign`)}return{name:n,version:i,chainId:t.chainId,verifyingContract:o}}(t,e.carryVault,e.validatorWalletAddress,(a=t.chainId,B[a]??null),l,u);var a;const{rpcUrl:n,addresses:i}=await P(t,{chain:e.chain,rpcUrl:e.rpcUrl,contractAddresses:e.contractAddresses,rpcSource:"params-only"});for(const e of["PositionManager","TermManagerModule","LoanOperationsManagerModule","LiquidationManagerModule"])if(!i[e])throw new Error(`[carry-collateral] contractAddresses.${e} is required`);const o=new ethers.providers.JsonRpcProvider(n),s=new L({contractAddress:i.PositionManager,termManagerAddress:i.TermManagerModule,loanOpsManagerAddress:i.LoanOperationsManagerModule,liquidationManagerAddress:i.LiquidationManagerModule,chain:t.chain,chainId:f(t.chain),vaultBalance:O,priceOracle:R,rpcUrl:n}),c=function(e){if("string"!=typeof e)throw new Error("positionId must be a string");const t=e.trim(),r=/^0x/i.test(t)?t.slice(2):t;if(0===r.length)throw new Error("positionId is empty");if(!/^[0-9a-fA-F]+$/.test(r))throw new Error("positionId must be hexadecimal (bytes32)");if(r.length>64)throw new Error("positionId exceeds 32 bytes");return"0x"+r.padStart(64,"0").toLowerCase()}(e.positionId),d=await s.read(c),h=ethers.utils.getAddress(d.borrower);!function(e,t,r,a){if(t===D)throw new Error(`[carry] loan ${e} is liquidated; refusing to attest its collateral (D56)`);if(!function(e){const t=e.toLowerCase();return"0x"===t||/^0xef0100[0-9a-f]{40}$/.test(t)}(a))throw new Error(`[carry] borrower ${r} has contract code; v1 attests EOA borrowers only (D45)`)}(c,d.status,h,await o.getCode(h));const p=new ethers.Contract(i.PositionManager,["function authorizationRegistry() view returns (address)"],o),m=new ethers.Contract(await p.authorizationRegistry(),["function getValidator(bytes4) view returns (tuple(address pkpAddress, uint256 version, bool active))"],o),g=await m.getValidator(ethers.utils.id(U).slice(0,10));if(!g.active)throw new Error("[carry-collateral] the updateBalance validator is not active");const w=C(),b=function(e){const t=e.confirmation;if(!t||"string"!=typeof t.signature||!/^0x[0-9a-fA-F]{130}$/.test(t.signature))throw new Error("[carry] balanceConfirmation.signature is missing or malformed");if(!/^\d+$/.test(String(t.vaultBalance))||!/^\d+$/.test(String(t.btcPrice))||!/^\d+$/.test(String(t.quantumTimestamp)))throw new Error("[carry] balanceConfirmation fields must be unsigned integers");const r=Number(t.quantumTimestamp);if(r>e.nowSeconds+60||e.nowSeconds-r>F)throw new Error(`[carry] balanceConfirmation at ${r} is outside the window at ${e.nowSeconds}`);const a={actionTag:ethers.utils.keccak256(ethers.utils.toUtf8Bytes("balance-confirmation")),positionId:e.positionId,collateralValue:String(t.vaultBalance),btcPrice:String(t.btcPrice),quantumTimestamp:String(t.quantumTimestamp),borrower:ethers.utils.getAddress(e.borrower)},n=ethers.utils._TypedDataEncoder.hash(e.domain,x,a),i=ethers.utils.recoverAddress(n,t.signature);if(i!==ethers.utils.getAddress(e.validator))throw new Error(`[carry] balanceConfirmation signed by ${i}, not the updateBalance validator ${e.validator}`);return BigInt(t.vaultBalance)}({confirmation:e.balanceConfirmation,positionId:c,borrower:h,validator:g.pkpAddress,domain:{name:l,version:u,chainId:f(t.chain),verifyingContract:ethers.utils.getAddress(i.LoanOperationsManagerModule)},nowSeconds:w}),A={actionTag:ethers.utils.keccak256(ethers.utils.toUtf8Bytes(v)),loanId:c,borrower:h,borrowerKind:T,actor:h,actorValidUntil:"0",btcVaultAddress:d.vaultAddress,btcBalance:b.toString(),quantumTimestamp:w.toString()},{signature:S,signer:M}=await async function(e,t,r,a){const n=await Lit.Actions.getPrivateKey({pkpId:e}),i="string"==typeof n?n.startsWith("0x")?n:`0x${n}`:String(n),o=new ethers.Wallet(i);if(o.address!==ethers.utils.getAddress(e))throw new Error(`[carry] key for ${e} derives ${o.address}; refusing to sign`);return{signature:await o._signTypedData(t,r,a),signer:o.address}}(e.validatorWalletAddress,r,E,A);return{attestation:A,signature:S,signer:M,domain:r}}return $=n,((n,i,o,s)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of r(i))a.call(n,c)||c===o||e(n,c,{get:()=>i[c],enumerable:!(s=t(i,c))||s.enumerable});return n})(e({},"__esModule",{value:!0}),$)})();if("object"==typeof _LIT_ACTION_)if("function"==typeof _LIT_ACTION_.main)var main=_LIT_ACTION_.main;else"function"==typeof _LIT_ACTION_.go&&_LIT_ACTION_.go();
@@ -0,0 +1 @@
1
+ 05b177e0bb36b0483db4a42d33c1bbbf47eb9ef34ae278459397d51a7f8957ff
@@ -0,0 +1,9 @@
1
+ {
2
+ "actionName": "carry-collateral-attestation",
3
+ "originalSize": 45941,
4
+ "minifiedSize": 21156,
5
+ "compressionRatio": 0.5394963104851875,
6
+ "hash": "05b177e0bb36b0483db4a42d33c1bbbf47eb9ef34ae278459397d51a7f8957ff",
7
+ "buildTime": 1792165847132,
8
+ "version": "0.1.0"
9
+ }
@@ -0,0 +1 @@
1
+ var _LIT_ACTION_=(()=>{var r=Object.defineProperty,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,t=Object.prototype.hasOwnProperty,i={};((e,n)=>{for(var t in n)r(e,t,{get:n[t],enumerable:!0})})(i,{main:()=>main});var o=60,a="DiamondHands.Protocol",s="1",c=(r=>(r.SEPOLIA="sepolia",r.ETHEREUM="ethereum",r.HARDHAT="hardhat",r))(c||{}),d={sepolia:"regtest",ethereum:"mainnet",hardhat:"regtest"},f={ethereum:1,sepolia:11155111,hardhat:1337};var u="carry-funding",l={CarryFundingAttestation:[{name:"actionTag",type:"bytes32"},{name:"windowHours",type:"uint32"},{name:"avgFundingRate",type:"int64"},{name:"sampleCount",type:"uint32"},{name:"firstTime",type:"uint64"},{name:"lastTime",type:"uint64"},{name:"quantumTimestamp",type:"uint256"}]},h=8,g=4000000n,m=36e5,y=6e5,p=500,w=15e3,v="BTC",T={998:"https://api.hyperliquid-testnet.xyz/info",999:"https://api.hyperliquid.xyz/info"},I={11155111:{hyperEvmChainId:998,vault:"0x5310AE7e24835cC6f7740db18ebbF9f3aB422554",signer:"0x1d2ff7E2fC89ead767b44F3aB2cAA6b18Fff3a67"}};function A(){const r=Math.floor(Date.now()/1e3);return e=r,Math.floor(e/o)*o;var e}var E,b={hardhat:{chain:"hardhat",chainId:f.hardhat,bitcoinNetwork:d.hardhat,allowArbitraryBitcoinProvider:!0,allowArbitraryEvmRpc:!0,pinContractAddresses:!1,allowDevSinglePriceProvider:!0,minBitcoinBalanceConfirmations:1,minBitcoinSpendConfirmations:1,minConsensusProviders:1},sepolia:{chain:"sepolia",chainId:f.sepolia,bitcoinNetwork:d.sepolia,allowArbitraryBitcoinProvider:!1,allowArbitraryEvmRpc:!1,pinContractAddresses:!0,allowDevSinglePriceProvider:!1,minBitcoinBalanceConfirmations:1,minBitcoinSpendConfirmations:1,minConsensusProviders:2},ethereum:{chain:"ethereum",chainId:f.ethereum,bitcoinNetwork:d.ethereum,allowArbitraryBitcoinProvider:!1,allowArbitraryEvmRpc:!1,pinContractAddresses:!0,allowDevSinglePriceProvider:!1,minBitcoinBalanceConfirmations:6,minBitcoinSpendConfirmations:6,minConsensusProviders:2}};function C(r){const e=function(r){const e=r.toLowerCase().trim();if("sepolia"===e)return"sepolia";if("ethereum"===e||"mainnet"===e)return"ethereum";if("hardhat"===e)return"hardhat";throw new Error(`Unsupported EVM chain: "${r}". Supported chains: ${Object.values(c).join(", ")}`)}(r),n=b[e];if(!n)throw new Error(`No chain policy registered for "${r}"`);return n}function $(r){const e=/^(-?)(\d+)(?:\.(\d+))?$/.exec(r);if(!e)throw new Error(`[carry] unparseable funding rate "${r}"`);const[,n,t,i=""]=e,o=(i+"0".repeat(h)).slice(0,h),a=BigInt(t)*10n**BigInt(h)+BigInt(o);return"-"===n?-a:a}async function main(r){if(!r||"object"!=typeof r)throw new Error("[carry-funding] missing args");for(const e of["chain","validatorWalletAddress"])if("string"!=typeof r[e]||0===r[e].length)throw new Error(`[carry-funding] missing "${e}"`);if(!r.carryVault||"object"!=typeof r.carryVault)throw new Error('[carry-funding] missing "carryVault"');const e=C(r.chain),n=function(r,e,n,t,i,o){if(!Number.isInteger(e.chainId)||e.chainId<=0)throw new Error(`[carry] invalid carryVault.chainId: ${e.chainId}`);const a=ethers.utils.getAddress(e.vault),s=ethers.utils.getAddress(n);if(r.pinContractAddresses){if(!t)throw new Error(`[carry] no pinned carry pairing for ${r.chain} (${r.chainId}) \u2014 the vault is not deployed/pinned there; refusing to sign`);if(e.chainId!==t.hyperEvmChainId||a!==ethers.utils.getAddress(t.vault))throw new Error(`[carry] requested domain (${e.chainId}, ${a}) is not the pinned pairing (${t.hyperEvmChainId}, ${t.vault}) for ${r.chain}; refusing to sign`);if(s!==ethers.utils.getAddress(t.signer))throw new Error(`[carry] signer ${s} is not the pinned carry signer ${t.signer}; refusing to sign`)}return{name:i,version:o,chainId:e.chainId,verifyingContract:a}}(e,r.carryVault,r.validatorWalletAddress,(t=e.chainId,I[t]??null),a,s);var t;let i;if(e.pinContractAddresses){const r=T[n.chainId];if(!r)throw new Error(`[carry-funding] no Hyperliquid Info API pinned for HyperEVM chain ${n.chainId}`);i=r}else{if(!r.devHyperliquidInfoUrl)throw new Error('[carry-funding] "devHyperliquidInfoUrl" is required on hardhat');i=r.devHyperliquidInfoUrl}const o=A(),c=function(r,e){if(!Number.isInteger(e)||e<1||e>8760)throw new Error(`[carry] invalid windowHours: ${e}`);const n=1e3*r-y,t=Math.floor(n/m)*m;return{firstTime:t-(e-1)*m,lastTime:t}}(o,r.windowHours),d=await async function(r,e,n,t){const i=[];let o=n;const a=Math.ceil((t-n)/m/p)+2;for(let n=0;n<a;n++){const n=new AbortController,a=setTimeout((()=>n.abort()),w),s=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"fundingHistory",coin:e,startTime:o,endTime:t}),signal:n.signal});if(clearTimeout(a),!s.ok)throw new Error(`[carry] fundingHistory HTTP ${s.status} from ${r}`);const c=await s.json();if(!Array.isArray(c))throw new Error(`[carry] fundingHistory returned a non-array from ${r}`);for(const r of c){if("string"!=typeof r?.coin||"string"!=typeof r?.fundingRate||"number"!=typeof r?.time)throw new Error(`[carry] malformed fundingHistory record: ${JSON.stringify(r)}`);i.push({coin:r.coin,fundingRate:r.fundingRate,time:r.time})}if(c.length<p)return i;if(o=i[i.length-1].time+1,o>t)return i}throw new Error(`[carry] fundingHistory did not finish within ${a} pages`)}(i,v,c.firstTime,c.lastTime+3599999),f=function(r,e,n){const t=new Map;for(const i of r){if(i.coin!==e)throw new Error(`[carry] funding record for ${i.coin}, expected ${e}`);if(!Number.isInteger(i.time))throw new Error(`[carry] funding record with non-integer time ${i.time}`);const r=Math.floor(i.time/m)*m;if(r<n.firstTime||r>n.lastTime)continue;if(t.has(r))throw new Error(`[carry] two funding records for hour ${r}`);const o=$(i.fundingRate);if(o>g||o<-g)throw new Error(`[carry] funding sample ${i.fundingRate} at ${r} exceeds the 4%/hour cap`);t.set(r,o)}const i=(n.lastTime-n.firstTime)/m+1;let o=0n;for(let r=n.firstTime;r<=n.lastTime;r+=m){const e=t.get(r);if(void 0===e)throw new Error(`[carry] no funding record for hour ${r}; refusing to average a gap`);o+=e}return{windowHours:i,avgFundingRate:o/BigInt(i),sampleCount:i,firstTime:n.firstTime,lastTime:n.lastTime}}(d,v,c),h={actionTag:ethers.utils.keccak256(ethers.utils.toUtf8Bytes(u)),windowHours:f.windowHours,avgFundingRate:f.avgFundingRate.toString(),sampleCount:f.sampleCount,firstTime:f.firstTime.toString(),lastTime:f.lastTime.toString(),quantumTimestamp:o.toString()},{signature:E,signer:b}=await async function(r,e,n,t){const i=await Lit.Actions.getPrivateKey({pkpId:r}),o="string"==typeof i?i.startsWith("0x")?i:`0x${i}`:String(i),a=new ethers.Wallet(o);if(a.address!==ethers.utils.getAddress(r))throw new Error(`[carry] key for ${r} derives ${a.address}; refusing to sign`);return{signature:await a._signTypedData(e,n,t),signer:a.address}}(r.validatorWalletAddress,n,l,h);return{attestation:h,signature:E,signer:b,domain:n}}return E=i,((i,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let c of n(o))t.call(i,c)||c===a||r(i,c,{get:()=>o[c],enumerable:!(s=e(o,c))||s.enumerable});return i})(r({},"__esModule",{value:!0}),E)})();if("object"==typeof _LIT_ACTION_)if("function"==typeof _LIT_ACTION_.main)var main=_LIT_ACTION_.main;else"function"==typeof _LIT_ACTION_.go&&_LIT_ACTION_.go();
@@ -0,0 +1 @@
1
+ 4944ada61610cf64b32e33b5be62087088dcf5e821040c69e67942e643ce74c9
@@ -0,0 +1,9 @@
1
+ {
2
+ "actionName": "carry-funding-attestation",
3
+ "originalSize": 14422,
4
+ "minifiedSize": 7193,
5
+ "compressionRatio": 0.5012480931909582,
6
+ "hash": "4944ada61610cf64b32e33b5be62087088dcf5e821040c69e67942e643ce74c9",
7
+ "buildTime": 1792165847153,
8
+ "version": "0.1.0"
9
+ }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 832,
5
5
  "compressionRatio": 0.5026897788404064,
6
6
  "hash": "700f8992a20357ac718df78f82a75641e892d24bcb925357087cf062cf521ae0",
7
- "buildTime": 1790432626413,
7
+ "buildTime": 1792165847157,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 82853,
5
5
  "compressionRatio": 0.604087522877035,
6
6
  "hash": "25d4887b7f646649db2bb7f2bfb77d039db83228a6c454377ca26c779b0903cc",
7
- "buildTime": 1790432626609,
7
+ "buildTime": 1792165847362,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 70308,
5
5
  "compressionRatio": 0.5769980506822612,
6
6
  "hash": "582ccf0ec7f715195e20fdc885996743cb42125b64173424e360ee63db62bbd8",
7
- "buildTime": 1790432627125,
7
+ "buildTime": 1792165847500,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 60046,
5
5
  "compressionRatio": 0.5874828249519098,
6
6
  "hash": "922e86c0a667fe0c0945771f84aa6b9fe08be9c96dd2f73a9c5cb257d24e22b0",
7
- "buildTime": 1790432627352,
7
+ "buildTime": 1792165847619,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 4140,
5
5
  "compressionRatio": 0.5104647037956722,
6
6
  "hash": "4c0d65bf1f33cdac22a78fd8c4764319cc3fe00650e0fe7fa8a6090d9a318a7b",
7
- "buildTime": 1790432627375,
7
+ "buildTime": 1792165847635,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 8695,
5
5
  "compressionRatio": 0.5565811617114591,
6
6
  "hash": "ba20ade60a7fa5acd80dadfafa179c507388cfe6ce48a22a672d70b317ffcc74",
7
- "buildTime": 1790432627409,
7
+ "buildTime": 1792165847655,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 85107,
5
5
  "compressionRatio": 0.5975495573882121,
6
6
  "hash": "25ecf952c4c44c40b0920b92d57906e7010ed9a38e2ba41ccdee6d3377c2b596",
7
- "buildTime": 1790432627723,
7
+ "buildTime": 1792165847813,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 48143,
5
5
  "compressionRatio": 0.5000571149672368,
6
6
  "hash": "ec9236bcbe0af24d3e1844791fc8fe37371bbecd8ce95d02e13f7c6e1fc7d94c",
7
- "buildTime": 1790432627869,
7
+ "buildTime": 1792165847906,
8
8
  "version": "0.1.0"
9
9
  }
@@ -4,6 +4,6 @@
4
4
  "minifiedSize": 90022,
5
5
  "compressionRatio": 0.5924928364168052,
6
6
  "hash": "65e8cb778c2b767ae6eb37cb5db7b4c5a3f2468d508463c847c83c1b6825fadd",
7
- "buildTime": 1790432628066,
7
+ "buildTime": 1792165848072,
8
8
  "version": "0.1.0"
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gvnrdao/dh-lit-actions",
3
- "version": "0.0.323",
3
+ "version": "0.0.324",
4
4
  "type": "commonjs",
5
5
  "description": "Diamond Hands Protocol LIT Actions - Deterministic, Auditable Builds",
6
6
  "main": "pkg-dist/pkg-src/index.js",
@@ -1 +1 @@
1
- {"version":3,"file":"lit-actions-registry.d.ts","sourceRoot":"","sources":["../../../../pkg-src/constants/chunks/lit-actions-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAAO,CAAC,sBAAsB,CAmSnE,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,sBAAsB,CAAC,CAGjC;AAED,eAAO,MAAM,oBAAoB,iCAA0B,CAAC"}
1
+ {"version":3,"file":"lit-actions-registry.d.ts","sourceRoot":"","sources":["../../../../pkg-src/constants/chunks/lit-actions-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,OAAO,CAAC,sBAAsB,CA+TnE,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,sBAAsB,CAAC,CAGjC;AAED,eAAO,MAAM,oBAAoB,iCAA0B,CAAC"}
@@ -911,6 +911,32 @@ var DH_LIT_ACTIONS_CHIPOTLE = {
911
911
  deployedAt: 1790246264563,
912
912
  size: 69219,
913
913
  hash: "bda048d8cd6b5a39c2774bcf1320e82d1eea935c2a521006fb8b887e13b6dd8d"
914
+ },
915
+ carryCollateralAttestation: {
916
+ cid: "QmYWULmXD9S5AmTdQqWqoZ28ctsZQNcXkAgre9G2Xo9dh8",
917
+ authorizedCidHex: cidToHex(
918
+ "QmYWULmXD9S5AmTdQqWqoZ28ctsZQNcXkAgre9G2Xo9dh8"
919
+ ),
920
+ name: "Carry Collateral Attestation",
921
+ description: "LoanCarryVault collateral attestation (borrower, BTC vault, confirmed BTC)",
922
+ version: "1.0.0",
923
+ deployed: true,
924
+ deployedAt: 1790927734070,
925
+ size: 21156,
926
+ hash: "05b177e0bb36b0483db4a42d33c1bbbf47eb9ef34ae278459397d51a7f8957ff"
927
+ },
928
+ carryFundingAttestation: {
929
+ cid: "QmWhox3xUZMNR5NpPZ9WLSPC5GoW4ms88GanVRKr8uuS3W",
930
+ authorizedCidHex: cidToHex(
931
+ "QmWhox3xUZMNR5NpPZ9WLSPC5GoW4ms88GanVRKr8uuS3W"
932
+ ),
933
+ name: "Carry Funding Attestation",
934
+ description: "LoanCarryVault funding attestation (Hyperliquid BTC windowed hourly average)",
935
+ version: "1.0.0",
936
+ deployed: true,
937
+ deployedAt: 1790925699980,
938
+ size: 7193,
939
+ hash: "4944ada61610cf64b32e33b5be62087088dcf5e821040c69e67942e643ce74c9"
914
940
  }
915
941
  };
916
942
  function getDeploymentsForNetwork(network) {