@gvnrdao/dh-sdk 0.0.217 → 0.0.219
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/browser/dist/397.browser.js +2 -0
- package/browser/dist/397.browser.js.LICENSE.txt +1 -0
- package/browser/dist/833.browser.js +2 -0
- package/browser/dist/833.browser.js.LICENSE.txt +1 -0
- package/browser/dist/browser.js +2 -0
- package/browser/dist/browser.js.LICENSE.txt +23 -0
- package/browser/dist/index.js +24 -5
- package/dist/index.js +1052 -1180
- package/dist/index.mjs +1052 -1180
- package/dist/modules/bitcoin/bitcoin-operations.module.d.ts +10 -2
- package/dist/modules/cache/cache-manager.module.d.ts +41 -200
- package/dist/modules/diamond-hands-sdk.d.ts +5 -1
- package/dist/modules/loan/loan-query.module.d.ts +5 -1
- package/dist/modules/pkp/pkp-manager.module.d.ts +5 -1
- package/package.json +6 -6
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*! Axios v1.15.2 Copyright (c) 2026 Matt Zabriskie and contributors */
|
|
9
|
+
|
|
10
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
11
|
+
|
|
12
|
+
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
13
|
+
|
|
14
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
|
18
|
+
*
|
|
19
|
+
* @version 0.8.0
|
|
20
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
21
|
+
* @copyright Chen, Yi-Cyuan 2015-2018
|
|
22
|
+
* @license MIT
|
|
23
|
+
*/
|
package/browser/dist/index.js
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
// Browser ESM entry point for Diamond Hands SDK
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
// Converts CommonJS exports to ES module imports for browser compatibility
|
|
3
|
+
// Uses the proven wrapper pattern from test-app/src/lib/lit-ops-wrapper.ts
|
|
4
|
+
// Import from the original built SDK (CommonJS module)
|
|
5
|
+
const SDKModule = require("../dist/index.js");
|
|
6
|
+
// Import lit-ops and lit-actions (using the wrapper pattern)
|
|
7
|
+
// TODO: Re-enable when these modules have proper ES module builds
|
|
8
|
+
// import * as LitOpsModule from "../../lit-ops/dist/index.js";
|
|
9
|
+
// import * as LitActionsModule from "../../lit-actions/dist/index.js";
|
|
10
|
+
// ========================================
|
|
11
|
+
// MAIN SDK EXPORTS
|
|
12
|
+
// ========================================
|
|
13
|
+
// Export main SDK classes (based on actual SDK exports)
|
|
14
|
+
export const DiamondHandsSDK = SDKModule.DiamondHandsSDK;
|
|
15
|
+
// ========================================
|
|
16
|
+
// RE-EXPORT CORE SDK ONLY
|
|
17
|
+
// ========================================
|
|
18
|
+
// Re-export core SDK exports only to avoid conflicts
|
|
19
|
+
// Note: CommonJS module, so we export specific items
|
|
20
|
+
export const { AuthParamsValidation, BPSConversions, BitcoinOperations, CacheManager, ContractManager, DiamondHandsSDK: SDKClass, ErrorCategory, ErrorSeverity, EventHelpers, LoanCreator, LoanQuery, LoanStatus, PaymentType, PositionStatus, SDKError, SatoshisConversions, UCDConversions, WeiConversions, createBitcoinOperations, createCacheManager, createContractManager, createLoanCreator, createLoanQuery, createPKPManager, failure, success, tryCatch, tryCatchAsync, unwrap, unwrapOr, validateSDKConfig, } = SDKModule;
|
|
21
|
+
// ========================================
|
|
22
|
+
// DEFAULT EXPORT
|
|
23
|
+
// ========================================
|
|
24
|
+
// Default export (main SDK class)
|
|
25
|
+
export default SDKModule.DiamondHandsSDK;
|