@gvnrdao/dh-lit-actions 0.0.279 → 0.0.280
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/address-probe-signer.meta.json +1 -1
- package/dist/address-probe.meta.json +1 -1
- package/dist/admin-liquidation-validator.meta.json +1 -1
- package/dist/always-signer.meta.json +1 -1
- package/dist/authorization-dummy-b.meta.json +1 -1
- package/dist/authorization-dummy.meta.json +1 -1
- package/dist/btc-transaction-signer.meta.json +1 -1
- package/dist/btc-withdrawal.meta.json +1 -1
- package/dist/encrypt-parameter.meta.json +1 -1
- package/dist/extend-position-validator.meta.json +1 -1
- package/dist/liquidation-validator.meta.json +1 -1
- package/dist/loan-vault-btc-balance.meta.json +1 -1
- package/dist/pkp-validator.action.js +1 -1
- package/dist/pkp-validator.hash +1 -1
- package/dist/pkp-validator.meta.json +5 -5
- package/dist/price-oracle.meta.json +1 -1
- package/dist/process-payment-sign-only.meta.json +1 -1
- package/dist/process-payment-validator.meta.json +1 -1
- package/dist/ucd-mint-validator.meta.json +1 -1
- package/package.json +17 -41
- package/pkg-dist/pkg-src/constants/chunks/lit-actions-registry.d.ts +2 -38
- package/pkg-dist/pkg-src/constants/chunks/lit-actions-registry.d.ts.map +1 -1
- package/pkg-dist/pkg-src/constants/chunks/package-registry.d.ts +0 -3
- package/pkg-dist/pkg-src/constants/chunks/package-registry.d.ts.map +1 -1
- package/pkg-dist/pkg-src/index.d.ts +1 -1
- package/pkg-dist/pkg-src/index.d.ts.map +1 -1
- package/pkg-dist/pkg-src/index.js +1587 -37
- package/pkg-dist/pkg-src/index.js.map +7 -1
- package/pkg-dist/pkg-src/interfaces/chunks/lit-action-registry.i.d.ts +1 -1
- package/pkg-dist/pkg-src/interfaces/chunks/lit-action-registry.i.d.ts.map +1 -1
- package/pkg-dist/pkg-src/utils/chunks/connection-helpers.d.ts +1 -13
- package/pkg-dist/pkg-src/utils/chunks/connection-helpers.d.ts.map +1 -1
- package/pkg-dist/pkg-src/utils/chunks/lit-action-helpers.d.ts.map +1 -1
- package/pkg-dist/pkg-src/utils/chunks/pkp-setup.d.ts.map +1 -1
- package/pkg-dist/pkg-src/utils/chunks/session-signature-cache.d.ts.map +1 -1
- package/pkg-dist/src/modules/lit-global-bootstrap.d.ts +5 -7
- package/pkg-dist/src/modules/lit-global-bootstrap.d.ts.map +1 -1
- package/pkg-dist/pkg-src/constants/chunks/lit-actions-registry.js +0 -946
- package/pkg-dist/pkg-src/constants/chunks/lit-actions-registry.js.map +0 -1
- package/pkg-dist/pkg-src/constants/chunks/package-registry.js +0 -15
- package/pkg-dist/pkg-src/constants/chunks/package-registry.js.map +0 -1
- package/pkg-dist/pkg-src/constants/index.js +0 -23
- package/pkg-dist/pkg-src/constants/index.js.map +0 -1
- package/pkg-dist/pkg-src/executors/chunks/price-oracle-executor.js +0 -77
- package/pkg-dist/pkg-src/executors/chunks/price-oracle-executor.js.map +0 -1
- package/pkg-dist/pkg-src/executors/chunks/vault-snapshot-executor.js +0 -104
- package/pkg-dist/pkg-src/executors/chunks/vault-snapshot-executor.js.map +0 -1
- package/pkg-dist/pkg-src/executors/index.js +0 -88
- package/pkg-dist/pkg-src/executors/index.js.map +0 -1
- package/pkg-dist/pkg-src/interfaces/chunks/diamond-hands-lit-actions.i.js +0 -3
- package/pkg-dist/pkg-src/interfaces/chunks/diamond-hands-lit-actions.i.js.map +0 -1
- package/pkg-dist/pkg-src/interfaces/chunks/lit-action-config.i.js +0 -3
- package/pkg-dist/pkg-src/interfaces/chunks/lit-action-config.i.js.map +0 -1
- package/pkg-dist/pkg-src/interfaces/chunks/lit-action-name.i.js +0 -3
- package/pkg-dist/pkg-src/interfaces/chunks/lit-action-name.i.js.map +0 -1
- package/pkg-dist/pkg-src/interfaces/chunks/lit-action-registry.i.js +0 -3
- package/pkg-dist/pkg-src/interfaces/chunks/lit-action-registry.i.js.map +0 -1
- package/pkg-dist/pkg-src/interfaces/chunks/pkp-info.i.js +0 -3
- package/pkg-dist/pkg-src/interfaces/chunks/pkp-info.i.js.map +0 -1
- package/pkg-dist/pkg-src/interfaces/index.js +0 -25
- package/pkg-dist/pkg-src/interfaces/index.js.map +0 -1
- package/pkg-dist/pkg-src/utils/chunks/cid-utils.js +0 -37
- package/pkg-dist/pkg-src/utils/chunks/cid-utils.js.map +0 -1
- package/pkg-dist/pkg-src/utils/chunks/connection-helpers.js +0 -362
- package/pkg-dist/pkg-src/utils/chunks/connection-helpers.js.map +0 -1
- package/pkg-dist/pkg-src/utils/chunks/debug-logger.js +0 -264
- package/pkg-dist/pkg-src/utils/chunks/debug-logger.js.map +0 -1
- package/pkg-dist/pkg-src/utils/chunks/error-classification.js +0 -385
- package/pkg-dist/pkg-src/utils/chunks/error-classification.js.map +0 -1
- package/pkg-dist/pkg-src/utils/chunks/lit-action-helpers.js +0 -62
- package/pkg-dist/pkg-src/utils/chunks/lit-action-helpers.js.map +0 -1
- package/pkg-dist/pkg-src/utils/chunks/pkp-setup.js +0 -21
- package/pkg-dist/pkg-src/utils/chunks/pkp-setup.js.map +0 -1
- package/pkg-dist/pkg-src/utils/chunks/session-signature-cache.js +0 -194
- package/pkg-dist/pkg-src/utils/chunks/session-signature-cache.js.map +0 -1
- package/pkg-dist/pkg-src/utils/index.js +0 -28
- package/pkg-dist/pkg-src/utils/index.js.map +0 -1
- package/pkg-dist/src/constants/chunks/bitcoin-network-config.js +0 -236
- package/pkg-dist/src/constants/chunks/bitcoin-network-config.js.map +0 -1
- package/pkg-dist/src/constants/chunks/bitcoin.js +0 -87
- package/pkg-dist/src/constants/chunks/bitcoin.js.map +0 -1
- package/pkg-dist/src/constants/chunks/decimals.js +0 -47
- package/pkg-dist/src/constants/chunks/decimals.js.map +0 -1
- package/pkg-dist/src/constants/chunks/liquidation.js +0 -46
- package/pkg-dist/src/constants/chunks/liquidation.js.map +0 -1
- package/pkg-dist/src/constants/chunks/lit-action-runtime.js +0 -10
- package/pkg-dist/src/constants/chunks/lit-action-runtime.js.map +0 -1
- package/pkg-dist/src/constants/chunks/loan-status.js +0 -95
- package/pkg-dist/src/constants/chunks/loan-status.js.map +0 -1
- package/pkg-dist/src/constants/chunks/price-oracle.js +0 -49
- package/pkg-dist/src/constants/chunks/price-oracle.js.map +0 -1
- package/pkg-dist/src/constants/chunks/quantum-time.js +0 -81
- package/pkg-dist/src/constants/chunks/quantum-time.js.map +0 -1
- package/pkg-dist/src/constants/chunks/time.js +0 -53
- package/pkg-dist/src/constants/chunks/time.js.map +0 -1
- package/pkg-dist/src/constants/index.js +0 -88
- package/pkg-dist/src/constants/index.js.map +0 -1
- package/pkg-dist/src/constants/message-hash-domains.js +0 -39
- package/pkg-dist/src/constants/message-hash-domains.js.map +0 -1
- package/pkg-dist/src/interfaces/chunks/authorization.i.js +0 -3
- package/pkg-dist/src/interfaces/chunks/authorization.i.js.map +0 -1
- package/pkg-dist/src/interfaces/chunks/bitcoin-data-provider.i.js +0 -3
- package/pkg-dist/src/interfaces/chunks/bitcoin-data-provider.i.js.map +0 -1
- package/pkg-dist/src/interfaces/chunks/circuit-breaker.i.js +0 -8
- package/pkg-dist/src/interfaces/chunks/circuit-breaker.i.js.map +0 -1
- package/pkg-dist/src/interfaces/chunks/mint-authorization.i.js +0 -5
- package/pkg-dist/src/interfaces/chunks/mint-authorization.i.js.map +0 -1
- package/pkg-dist/src/interfaces/chunks/owner-authorization.js +0 -8
- package/pkg-dist/src/interfaces/chunks/owner-authorization.js.map +0 -1
- package/pkg-dist/src/interfaces/chunks/price-oracle.i.js +0 -3
- package/pkg-dist/src/interfaces/chunks/price-oracle.i.js.map +0 -1
- package/pkg-dist/src/interfaces/chunks/vault-balance-module.i.js +0 -3
- package/pkg-dist/src/interfaces/chunks/vault-balance-module.i.js.map +0 -1
- package/pkg-dist/src/interfaces/chunks/vault-balance.i.js +0 -3
- package/pkg-dist/src/interfaces/chunks/vault-balance.i.js.map +0 -1
- package/pkg-dist/src/interfaces/chunks/vault-snapshot.i.js +0 -3
- package/pkg-dist/src/interfaces/chunks/vault-snapshot.i.js.map +0 -1
- package/pkg-dist/src/interfaces/index.js +0 -30
- package/pkg-dist/src/interfaces/index.js.map +0 -1
- package/pkg-dist/src/modules/authorization.module.js +0 -479
- package/pkg-dist/src/modules/authorization.module.js.map +0 -1
- package/pkg-dist/src/modules/bitcoin/address.js +0 -323
- package/pkg-dist/src/modules/bitcoin/address.js.map +0 -1
- package/pkg-dist/src/modules/bitcoin/provider.js +0 -67
- package/pkg-dist/src/modules/bitcoin/provider.js.map +0 -1
- package/pkg-dist/src/modules/bitcoin/signature.js +0 -64
- package/pkg-dist/src/modules/bitcoin/signature.js.map +0 -1
- package/pkg-dist/src/modules/bitcoin/transaction.js +0 -274
- package/pkg-dist/src/modules/bitcoin/transaction.js.map +0 -1
- package/pkg-dist/src/modules/bitcoin-data-provider.module.js +0 -486
- package/pkg-dist/src/modules/bitcoin-data-provider.module.js.map +0 -1
- package/pkg-dist/src/modules/bitcoin-provider-registry.js +0 -165
- package/pkg-dist/src/modules/bitcoin-provider-registry.js.map +0 -1
- package/pkg-dist/src/modules/business-rules-math.module.js +0 -316
- package/pkg-dist/src/modules/business-rules-math.module.js.map +0 -1
- package/pkg-dist/src/modules/chain-policy.js +0 -90
- package/pkg-dist/src/modules/chain-policy.js.map +0 -1
- package/pkg-dist/src/modules/dev-action-guard.js +0 -47
- package/pkg-dist/src/modules/dev-action-guard.js.map +0 -1
- package/pkg-dist/src/modules/lit-action-debug.js +0 -85
- package/pkg-dist/src/modules/lit-action-debug.js.map +0 -1
- package/pkg-dist/src/modules/lit-action-logger.module.js +0 -190
- package/pkg-dist/src/modules/lit-action-logger.module.js.map +0 -1
- package/pkg-dist/src/modules/lit-global-bootstrap.js +0 -67
- package/pkg-dist/src/modules/lit-global-bootstrap.js.map +0 -1
- package/pkg-dist/src/modules/position-id.js +0 -40
- package/pkg-dist/src/modules/position-id.js.map +0 -1
- package/pkg-dist/src/modules/price-oracle.module.js +0 -513
- package/pkg-dist/src/modules/price-oracle.module.js.map +0 -1
- package/pkg-dist/src/modules/pro-rata-fee.module.js +0 -66
- package/pkg-dist/src/modules/pro-rata-fee.module.js.map +0 -1
- package/pkg-dist/src/modules/protocol-parameters.module.js +0 -216
- package/pkg-dist/src/modules/protocol-parameters.module.js.map +0 -1
- package/pkg-dist/src/modules/protocol-pause.module.js +0 -227
- package/pkg-dist/src/modules/protocol-pause.module.js.map +0 -1
- package/pkg-dist/src/modules/quantum-time.module.js +0 -320
- package/pkg-dist/src/modules/quantum-time.module.js.map +0 -1
- package/pkg-dist/src/modules/vault-balance.module.js +0 -428
- package/pkg-dist/src/modules/vault-balance.module.js.map +0 -1
- package/pkg-dist/src/modules/vault-snapshot.js +0 -517
- package/pkg-dist/src/modules/vault-snapshot.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var _LIT_ACTION_=(()=>{var t,e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,i={};async function main(t){const e=t.pkpId,r=t.targetPkpTokenId,o=t.expectedCid,n=t.network,i=t.ipfsId,s=t.borrowerAddress,a=t.pkpValidationContract;if(!e)throw new Error("pkpId is required (Chipotle wallet ID for user PKP)");if(!o)throw new Error("expectedCid is required");if(!i)throw new Error("ipfsId is required to derive the validator signing key");if(!s)throw new Error("borrowerAddress is required for EIP-712 attestation");if(!a)throw new Error("pkpValidationContract is required for EIP-712 domain");let l=t.chainId;if(null==l&&
|
|
1
|
+
var _LIT_ACTION_=(()=>{var t,e=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,i={};async function main(t){const e=t.pkpId,r=t.targetPkpTokenId,o=t.expectedCid,n=t.network,i=t.ipfsId,s=t.borrowerAddress,a=t.pkpValidationContract;if(!e)throw new Error("pkpId is required (Chipotle wallet ID for user PKP)");if(!o)throw new Error("expectedCid is required");if(!i)throw new Error("ipfsId is required to derive the validator signing key");if(!s)throw new Error("borrowerAddress is required for EIP-712 attestation");if(!a)throw new Error("pkpValidationContract is required for EIP-712 domain");let l=t.chainId;if(null==l&&"chipotle"===n&&(l=11155111),null==l)throw new Error("chainId is required for EIP-712 domain");console.log("[PKP Validator] Step 1: Getting user PKP key...");const c=await Lit.Actions.getPrivateKey({pkpId:e}),d="string"==typeof c?c.startsWith("0x")?c:`0x${c}`:String(c);console.log("[PKP Validator] Step 2: Deriving public key...");const u=ethers.utils.computePublicKey(d,!1);function f(t,e){const r=t.startsWith("0x")?t.slice(2):t;if(130!==r.length)throw new Error(`Invalid public key length: ${r.length}`);const o=r.slice(2,66),n=r.slice(66,130),i=(BigInt("0x"+n)%2n===0n?"02":"03")+o,s=ethers.utils.sha256("0x"+i);let a;return a="mainnet"===e?"bc":"testnet"===e?"tb":"bcrt",function(t,e,r){const o="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n=[];for(let t=0;t<r.length;t+=2)n.push(parseInt(r.substr(t,2),16));const i=[e].concat(function(t,e,r,o){let n=0,i=0;const s=[],a=(1<<r)-1;for(const o of t){if(o<0||o>>e)throw new Error("Invalid data for bit conversion");for(n=n<<e|o,i+=e;i>=r;)i-=r,s.push(n>>i&a)}if(o)i>0&&s.push(n<<r-i&a);else if(i>=e||n<<r-i&a)throw new Error("Invalid padding in bit conversion");return s}(n,8,5,!0)),s=function(t,e){const r=function(t){const e=[];for(let r=0;r<t.length;r++)e.push(t.charCodeAt(r)>>5);e.push(0);for(let r=0;r<t.length;r++)e.push(31&t.charCodeAt(r));return e}(t).concat(e).concat([0,0,0,0,0,0]),o=1^function(t){const e=[996825010,642813549,513874426,1027748829,705979059];let r=1;for(const o of t){const t=r>>25;r=(33554431&r)<<5^o;for(let o=0;o<5;o++)t>>o&1&&(r^=e[o])}return r}(r),n=[];for(let t=0;t<6;t++)n.push(o>>5*(5-t)&31);return n}(t,i),a=i.concat(s);let l=t+"1";for(const t of a)l+=o[t];return l}(a,0,ethers.utils.ripemd160(s).slice(2))}console.log("[PKP Validator] Step 3: Deriving Bitcoin addresses...");const p=f(u,"mainnet"),g=f(u,"regtest");console.log(`[PKP Validator] Mainnet: ${p}`),console.log(`[PKP Validator] Regtest: ${g}`),console.log("[PKP Validator] Step 4: Signing attestation...");const h=`PKP::${r?ethers.BigNumber.from(r).toString():ethers.BigNumber.from(ethers.utils.keccak256(ethers.utils.toUtf8Bytes(e))).toString()}::CID::${o.toLowerCase()}::MAINNET::${p}::REGTEST::${g}::SECURE`,P=ethers.utils.toUtf8Bytes(h),w=ethers.utils.hashMessage(P);console.log(`[PKP Validator] Message: ${h}`),console.log(`[PKP Validator] Message hash: ${w}`);const I=t.validatorWalletAddress||globalThis.validatorWalletAddress;if(!I||!I.startsWith("0x"))throw new Error("validatorWalletAddress required \u2014 must be a createWallet-derived address");const b=await Lit.Actions.getPrivateKey({pkpId:I}),m="string"==typeof b?b.startsWith("0x")?b:`0x${b}`:String(b),y=new ethers.Wallet(m),v=await y.signMessage(P);return console.log("[PKP Validator] \u2705 Complete"),{success:!0,pkpPublicKey:u,bitcoinAddresses:{mainnet:p,regtest:g},validatorPkp:y.address,signature:v,timestamp:Date.now(),network:n,expectedCid:o}}return((t,r)=>{for(var o in r)e(t,o,{get:r[o],enumerable:!0})})(i,{main:()=>main}),t=i,((t,i,s,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let l of o(i))n.call(t,l)||l===s||e(t,l,{get:()=>i[l],enumerable:!(a=r(i,l))||a.enumerable});return t})(e({},"__esModule",{value:!0}),t)})();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();
|
package/dist/pkp-validator.hash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
baba8c31b73dbfe6425d8f9fd69c61f41a573e189a185962382b815a15fddb24
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"actionName": "pkp-validator",
|
|
3
|
-
"originalSize":
|
|
4
|
-
"minifiedSize":
|
|
5
|
-
"compressionRatio": 0.
|
|
6
|
-
"hash": "
|
|
7
|
-
"buildTime":
|
|
3
|
+
"originalSize": 8232,
|
|
4
|
+
"minifiedSize": 3999,
|
|
5
|
+
"compressionRatio": 0.5142128279883382,
|
|
6
|
+
"hash": "baba8c31b73dbfe6425d8f9fd69c61f41a573e189a185962382b815a15fddb24",
|
|
7
|
+
"buildTime": 1776942059463,
|
|
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.
|
|
3
|
+
"version": "0.0.280",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Diamond Hands Protocol LIT Actions - Deterministic, Auditable Builds",
|
|
6
6
|
"main": "pkg-dist/pkg-src/index.js",
|
|
@@ -13,12 +13,10 @@
|
|
|
13
13
|
"clean": "rm -rf out dist",
|
|
14
14
|
"clean:pkg": "rm -rf pkg-dist",
|
|
15
15
|
"clean:all": "npm run clean && npm run clean:pkg",
|
|
16
|
-
"build:lit-actions": "tsx scripts/
|
|
16
|
+
"build:lit-actions": "tsx scripts/build/build-actions-bundled.ts",
|
|
17
17
|
"build": "npm run build:lit-actions && npm run minify && npm run build:package",
|
|
18
|
-
"build:package": "
|
|
19
|
-
"minify": "tsx scripts/
|
|
20
|
-
"deploy:lit-action": "tsx scripts/naga/deploy-lit-action.ts",
|
|
21
|
-
"deploy:naga:changed": "tsx scripts/naga/deploy-naga-changed.ts",
|
|
18
|
+
"build:package": "tsx scripts/build/build-package.ts",
|
|
19
|
+
"minify": "tsx scripts/build/minify-actions.ts",
|
|
22
20
|
"deploy:chipotle:action": "tsx scripts/chipotle/deploy-lit-action-chipotle.ts",
|
|
23
21
|
"deploy:chipotle:changed": "tsx scripts/chipotle/deploy-chipotle-changed.ts",
|
|
24
22
|
"chipotle:refresh:encrypted-params": "tsx scripts/chipotle/refresh-encrypted-params-registry.ts",
|
|
@@ -27,54 +25,32 @@
|
|
|
27
25
|
"prepublishOnly": "npm run package",
|
|
28
26
|
"test": "jest",
|
|
29
27
|
"test:watch": "jest --watch",
|
|
30
|
-
"test:coverage": "jest --coverage --testPathPattern=\"extend-position-validator.hardhat.test.ts|process-payment-validator.integration.test.ts|loan-vault-btc-balance.integration.test.ts|btc-withdrawal.integration.test.ts|
|
|
28
|
+
"test:coverage": "jest --coverage --testPathPattern=\"extend-position-validator.hardhat.test.ts|process-payment-validator.integration.test.ts|loan-vault-btc-balance.integration.test.ts|btc-withdrawal.integration.test.ts|ucd-mint-validations.hardhat.test.ts|business-rules-math.test.ts|properties.test.ts|sdk-user-journeys.test.ts|state-consistency-framework.unit.test.ts|btc-transaction-signer.integration.test.ts\"",
|
|
31
29
|
"test:esm": "tsx tests/VAULT_LIQUIDATION/liquidation-validator-esm.test.ts",
|
|
32
30
|
"test:hardhat": "jest --testPathPattern=\"\\.hardhat\\.test\\.ts$\"",
|
|
33
31
|
"test:sepolia": "jest --testPathPattern=\"\\.sepolia\\.test\\.ts$\"",
|
|
34
|
-
"test:lit-actions:hardhat": "npm run test:hardhat -- --testPathIgnorePatterns=\"modules|integration|helpers|lib|
|
|
35
|
-
"test:lit-actions:sepolia": "npm run test:sepolia -- --testPathIgnorePatterns=\"modules|integration|helpers|lib|
|
|
32
|
+
"test:lit-actions:hardhat": "npm run test:hardhat -- --testPathIgnorePatterns=\"modules|integration|helpers|lib|executors|authorization-dummy|price-oracle|quantum-timestamp\"",
|
|
33
|
+
"test:lit-actions:sepolia": "npm run test:sepolia -- --testPathIgnorePatterns=\"modules|integration|helpers|lib|executors|authorization-dummy|price-oracle|quantum-timestamp\"",
|
|
36
34
|
"test:concurrent": "jest --testPathPattern=\"concurrent\"",
|
|
37
35
|
"test:load": "jest --testPathPattern=\"load.*test\"",
|
|
38
36
|
"test:contention": "jest --testPathPattern=\"contention.*test\"",
|
|
39
37
|
"test:scalability": "jest --testPathPattern=\"scalability.*test\"",
|
|
40
38
|
"test:performance": "jest --testPathPattern=\"performance.*test\"",
|
|
41
|
-
"
|
|
42
|
-
"verify:registry": "tsx scripts/naga/verify-registry-pkp-cid.ts",
|
|
43
|
-
"verify:hashes:naga": "tsx scripts/naga/compare-registry-hashes.ts",
|
|
44
|
-
"verify:registry:naga": "tsx scripts/naga/verify-registry-pkp-cid.ts",
|
|
45
|
-
"verify:authorizations": "tsx scripts/naga/verify-onchain-authorizations.ts",
|
|
46
|
-
"verify:all": "tsx scripts/naga/verify-all-lit-actions.ts",
|
|
47
|
-
"probe:btc-provider": "node scripts/probe-bitcoin-provider-latency.mjs",
|
|
48
|
-
"collect:cids": "tsx scripts/naga/collect-all-cids.ts",
|
|
49
|
-
"naga-testnet:create-pkp": "tsx scripts/naga-testnet/create-pkp-for-naga-testnet-action.ts",
|
|
50
|
-
"naga-testnet:create-all-pkps": "tsx scripts/naga-testnet/create-all-naga-testnet-pkps.ts",
|
|
51
|
-
"naga-testnet:update-registry": "tsx scripts/naga-testnet/update-naga-testnet-registry.ts"
|
|
39
|
+
"probe:btc-provider": "node scripts/probe-bitcoin-provider-latency.mjs"
|
|
52
40
|
},
|
|
53
41
|
"dependencies": {
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"@lit-protocol/networks": "^8.4.1",
|
|
59
|
-
"axios": "1.14.0",
|
|
60
|
-
"bs58": "^6.0.0",
|
|
61
|
-
"dotenv": "16.4.7",
|
|
62
|
-
"ethers": "^6.15.0",
|
|
42
|
+
"axios": "1.15.2",
|
|
43
|
+
"bs58": "6.0.0",
|
|
44
|
+
"dotenv": "17.4.2",
|
|
45
|
+
"ethers": "6.16.0",
|
|
63
46
|
"ethers5": "npm:ethers@5.8.0",
|
|
64
|
-
"ethers6": "npm:ethers@6.
|
|
65
|
-
"form-data": "4.0.
|
|
66
|
-
"fs-extra": "11.
|
|
67
|
-
"multiformats": "^13.4.0",
|
|
47
|
+
"ethers6": "npm:ethers@6.16.0",
|
|
48
|
+
"form-data": "4.0.5",
|
|
49
|
+
"fs-extra": "^11.3.4",
|
|
68
50
|
"viem": "2.38.3"
|
|
69
51
|
},
|
|
70
|
-
"overrides": {
|
|
71
|
-
"axios": "1.14.0",
|
|
72
|
-
"form-data": "4.0.4",
|
|
73
|
-
"typescript": "5.8.3"
|
|
74
|
-
},
|
|
75
52
|
"devDependencies": {
|
|
76
53
|
"@gvnrdao/adversarial-testing-framework": "file:../test-framework",
|
|
77
|
-
"@gvnrdao/dh-lit-ops": "^0.0.203",
|
|
78
54
|
"@types/bs58": "^5.0.0",
|
|
79
55
|
"@types/chai": "^5.2.3",
|
|
80
56
|
"@types/fs-extra": "11.0.4",
|
|
@@ -89,7 +65,7 @@
|
|
|
89
65
|
"terser": "5.36.0",
|
|
90
66
|
"ts-jest": "^29.4.1",
|
|
91
67
|
"ts-node": "10.9.2",
|
|
92
|
-
"typescript": "
|
|
68
|
+
"typescript": "^6.0.3"
|
|
93
69
|
},
|
|
94
70
|
"engines": {
|
|
95
71
|
"node": ">=18.0.0",
|
|
@@ -99,7 +75,7 @@
|
|
|
99
75
|
"license": "MIT",
|
|
100
76
|
"repository": {
|
|
101
77
|
"type": "git",
|
|
102
|
-
"url": "https://github.com/gvnrdao/diamond-hands.git",
|
|
78
|
+
"url": "git+https://github.com/gvnrdao/diamond-hands.git",
|
|
103
79
|
"directory": "lit-actions"
|
|
104
80
|
},
|
|
105
81
|
"optionalDependencies": {
|
|
@@ -1,46 +1,10 @@
|
|
|
1
1
|
import { DiamondHandsLitActions } from "../../interfaces";
|
|
2
|
-
export type SupportedLitNetwork = "
|
|
3
|
-
/**
|
|
4
|
-
* Diamond Hands LIT Actions Registry
|
|
5
|
-
* Contains all deployed LIT Actions with their IPFS CIDs and metadata
|
|
6
|
-
* Supports both datil (production) and datil-test (development) networks
|
|
7
|
-
*/
|
|
8
|
-
export declare const DH_LIT_ACTIONS_DATIL: DiamondHandsLitActions;
|
|
9
|
-
/**
|
|
10
|
-
* Naga Network LIT Actions Registry
|
|
11
|
-
* Contains LIT Actions deployed on the Naga (nagaDev) V8 network.
|
|
12
|
-
* Uses Partial<DiamondHandsLitActions> since not all actions are deployed yet.
|
|
13
|
-
*/
|
|
14
|
-
export declare const DH_LIT_ACTIONS_NAGA: Partial<DiamondHandsLitActions>;
|
|
15
|
-
/**
|
|
16
|
-
* naga-test network — deployments populated after `npm run deploy:lit-action <action> naga-test`
|
|
17
|
-
*/
|
|
18
|
-
export declare const DH_LIT_ACTIONS_NAGA_TEST: Partial<DiamondHandsLitActions>;
|
|
2
|
+
export type SupportedLitNetwork = "chipotle";
|
|
19
3
|
/**
|
|
20
4
|
* Diamond Hands LIT Actions Registry — Chipotle (new REST API)
|
|
21
5
|
* Contains all deployed LIT Actions with their IPFS CIDs and PKP metadata
|
|
22
6
|
*/
|
|
23
7
|
export declare const DH_LIT_ACTIONS_CHIPOTLE: Partial<DiamondHandsLitActions>;
|
|
24
|
-
|
|
25
|
-
* Get deployments for a specific network (runtime override)
|
|
26
|
-
*/
|
|
27
|
-
export declare function getDeploymentsForNetwork(network: SupportedLitNetwork): DiamondHandsLitActions | Partial<DiamondHandsLitActions>;
|
|
28
|
-
/**
|
|
29
|
-
* Network-specific exports for explicit access
|
|
30
|
-
*/
|
|
31
|
-
export declare const NAGA_DEPLOYMENTS: Partial<DiamondHandsLitActions>;
|
|
32
|
-
export declare const NAGA_TEST_DEPLOYMENTS: Partial<DiamondHandsLitActions>;
|
|
8
|
+
export declare function getDeploymentsForNetwork(network: SupportedLitNetwork): Partial<DiamondHandsLitActions>;
|
|
33
9
|
export declare const CHIPOTLE_DEPLOYMENTS: Partial<DiamondHandsLitActions>;
|
|
34
|
-
/**
|
|
35
|
-
* Production datil network constants
|
|
36
|
-
*/
|
|
37
|
-
export declare const DATIL_AUTHORIZATION_DUMMY_CID: string;
|
|
38
|
-
export declare const DATIL_AUTHORIZATION_DUMMY_B_CID: string;
|
|
39
|
-
export declare const DATIL_PKP_VALIDATOR_CID: string;
|
|
40
|
-
/**
|
|
41
|
-
* Production naga network constants
|
|
42
|
-
*/
|
|
43
|
-
export declare const NAGA_AUTHORIZATION_DUMMY_CID: string;
|
|
44
|
-
export declare const NAGA_AUTHORIZATION_DUMMY_B_CID: string;
|
|
45
|
-
export declare const NAGA_PKP_VALIDATOR_CID: string;
|
|
46
10
|
//# sourceMappingURL=lit-actions-registry.d.ts.map
|
|
@@ -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,
|
|
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,CAgOnE,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,sBAAsB,CAAC,CAGjC;AAED,eAAO,MAAM,oBAAoB,iCAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-registry.d.ts","sourceRoot":"","sources":["../../../../pkg-src/constants/chunks/package-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGrD
|
|
1
|
+
{"version":3,"file":"package-registry.d.ts","sourceRoot":"","sources":["../../../../pkg-src/constants/chunks/package-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGrD,eAAO,MAAM,uBAAuB,EAAE,iBAMrC,CAAC"}
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
export * from "./interfaces";
|
|
9
9
|
export * from "./constants/chunks/lit-actions-registry";
|
|
10
10
|
export * from "./utils";
|
|
11
|
-
export {
|
|
11
|
+
export { DH_LIT_ACTIONS_CHIPOTLE, CHIPOTLE_DEPLOYMENTS } from "./constants/chunks/lit-actions-registry";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../pkg-src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,cAAc,cAAc,CAAC;AAG7B,cAAc,yCAAyC,CAAC;AAGxD,cAAc,SAAS,CAAC;AAMxB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../pkg-src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,cAAc,cAAc,CAAC;AAG7B,cAAc,yCAAyC,CAAC;AAGxD,cAAc,SAAS,CAAC;AAMxB,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC"}
|