@gvnrdao/dh-sdk 0.0.235 → 0.0.243

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 (30) hide show
  1. package/dist/constants/chunks/deployment-addresses.d.ts +2 -0
  2. package/dist/constants/chunks/network-configs.d.ts +2 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +20474 -31322
  5. package/dist/index.mjs +20305 -31155
  6. package/dist/interfaces/chunks/config.i.d.ts +20 -10
  7. package/dist/interfaces/chunks/contract-interactions.i.d.ts +2 -2
  8. package/dist/interfaces/chunks/contract-types.i.d.ts +95 -91
  9. package/dist/interfaces/chunks/loan-operations.i.d.ts +2 -3
  10. package/dist/modules/bitcoin/bitcoin-operations.module.d.ts +37 -0
  11. package/dist/modules/cache/cache-manager.module.d.ts +8 -0
  12. package/dist/modules/contract/contract-manager.module.d.ts +5 -5
  13. package/dist/modules/diamond-hands-sdk.d.ts +103 -7
  14. package/dist/modules/loan/loan-creator.module.d.ts +1 -1
  15. package/dist/modules/loan/loan-query.module.d.ts +3 -3
  16. package/dist/modules/pkp/pkp-manager.module.d.ts +6 -2
  17. package/dist/protocol/protocol-pause.d.ts +2 -2
  18. package/dist/utils/address-conversion.utils.d.ts +39 -0
  19. package/dist/utils/bitcoin-provider.utils.d.ts +36 -0
  20. package/dist/utils/btc-withdrawal-message.d.ts +60 -0
  21. package/dist/utils/chunks/bitcoin-utils.d.ts +10 -0
  22. package/dist/utils/chunks/eip1559-broadcast.utils.d.ts +8 -9
  23. package/dist/utils/eip712-login.d.ts +27 -0
  24. package/dist/utils/extend-authorization.utils.d.ts +2 -2
  25. package/dist/utils/mint-authorization.utils.d.ts +9 -8
  26. package/dist/utils/position-delegate.utils.d.ts +41 -0
  27. package/dist/utils/server-session.d.ts +44 -0
  28. package/dist/utils/signature-tempering.utils.d.ts +6 -3
  29. package/package.json +6 -7
  30. package/dist/utils/bitcoin-signature.d.ts +0 -20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gvnrdao/dh-sdk",
3
- "version": "0.0.235",
3
+ "version": "0.0.243",
4
4
  "description": "TypeScript SDK for Diamond Hands Protocol - Bitcoin-backed lending with LIT Protocol PKPs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -70,17 +70,18 @@
70
70
  },
71
71
  "sideEffects": false,
72
72
  "dependencies": {
73
- "@gvnrdao/dh-lit-actions": "^0.0.287",
74
- "@gvnrdao/dh-lit-ops": "^0.0.265",
73
+ "@gvnrdao/dh-lit-actions": "file:../lit-actions/gvnrdao-dh-lit-actions-0.0.292.tgz",
74
+ "@gvnrdao/dh-lit-ops": "file:../lit-ops/gvnrdao-dh-lit-ops-0.0.272.tgz",
75
75
  "@noble/hashes": "^1.5.0",
76
76
  "axios": "^1.15.2",
77
77
  "bech32": "^2.0.0",
78
78
  "bip66": "^2.0.0",
79
79
  "bitcoinjs-lib": "^6.1.0",
80
+ "bs58check": "^3.0.1",
80
81
  "buffer": "^6.0.3",
81
82
  "crypto-js": "^4.2.0",
82
83
  "dotenv": "^17.4.2",
83
- "ethers": "5.8.0",
84
+ "ethers": "^6.16.0",
84
85
  "node-telegram-bot-api": "^0.67.0",
85
86
  "process": "^0.11.10",
86
87
  "valibot": "^1.1.0",
@@ -88,6 +89,7 @@
88
89
  },
89
90
  "devDependencies": {
90
91
  "@babel/preset-env": "7.29.0",
92
+ "@safe-global/protocol-kit": "^7.1.0",
91
93
  "@types/crypto-js": "^4.2.2",
92
94
  "@types/jest": "^29.0.0",
93
95
  "@types/node": "^20.0.0",
@@ -118,8 +120,5 @@
118
120
  "optionalDependencies": {
119
121
  "@esbuild/darwin-arm64": "^0.27.2",
120
122
  "esbuild": "^0.27.0"
121
- },
122
- "overrides": {
123
- "ethers": "5.8.0"
124
123
  }
125
124
  }
@@ -1,20 +0,0 @@
1
- /**
2
- * Bitcoin Signature Utilities
3
- *
4
- * Converts Ethereum ECDSA signatures to Bitcoin DER format
5
- *
6
- * Trusted implementation from btc-always-signer.test.ts
7
- */
8
- /**
9
- * Convert Ethereum signature to Bitcoin DER format
10
- *
11
- * Handles BIP 62 normalization (low-s requirement) and DER encoding
12
- *
13
- * @param signature - Ethereum signature (hex string or {r, s, v} object)
14
- * @returns DER-encoded signature as hex string
15
- */
16
- export declare function convertEthereumSignatureToBitcoinDER(signature: string | {
17
- r: string;
18
- s: string;
19
- v?: number;
20
- }): string;