dipcoin-cli 0.8.2 → 0.8.3

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 (63) hide show
  1. package/dist/cli.cjs +21 -23
  2. package/dist/cli.cjs.map +1 -1
  3. package/package.json +3 -24
  4. package/dist/cli/commands/account.d.ts +0 -3
  5. package/dist/cli/commands/account.d.ts.map +0 -1
  6. package/dist/cli/commands/balance.d.ts +0 -3
  7. package/dist/cli/commands/balance.d.ts.map +0 -1
  8. package/dist/cli/commands/history.d.ts +0 -3
  9. package/dist/cli/commands/history.d.ts.map +0 -1
  10. package/dist/cli/commands/market.d.ts +0 -3
  11. package/dist/cli/commands/market.d.ts.map +0 -1
  12. package/dist/cli/commands/orders.d.ts +0 -3
  13. package/dist/cli/commands/orders.d.ts.map +0 -1
  14. package/dist/cli/commands/position.d.ts +0 -3
  15. package/dist/cli/commands/position.d.ts.map +0 -1
  16. package/dist/cli/commands/sub-account.d.ts +0 -3
  17. package/dist/cli/commands/sub-account.d.ts.map +0 -1
  18. package/dist/cli/commands/trade.d.ts +0 -3
  19. package/dist/cli/commands/trade.d.ts.map +0 -1
  20. package/dist/cli/commands/vault.d.ts +0 -3
  21. package/dist/cli/commands/vault.d.ts.map +0 -1
  22. package/dist/cli/index.d.ts +0 -2
  23. package/dist/cli/index.d.ts.map +0 -1
  24. package/dist/cli/utils/output.d.ts +0 -15
  25. package/dist/cli/utils/output.d.ts.map +0 -1
  26. package/dist/cli/utils/sdk-factory.d.ts +0 -38
  27. package/dist/cli/utils/sdk-factory.d.ts.map +0 -1
  28. package/dist/cli/utils/vault-index.d.ts +0 -6
  29. package/dist/cli/utils/vault-index.d.ts.map +0 -1
  30. package/dist/index.cjs.js +0 -4
  31. package/dist/index.cjs.js.map +0 -1
  32. package/dist/index.esm.js +0 -4
  33. package/dist/index.esm.js.map +0 -1
  34. package/dist/index.mjs +0 -4
  35. package/dist/index.mjs.map +0 -1
  36. package/dist/src/__tests__/sdk.test.d.ts +0 -2
  37. package/dist/src/__tests__/sdk.test.d.ts.map +0 -1
  38. package/dist/src/config/index.d.ts +0 -15
  39. package/dist/src/config/index.d.ts.map +0 -1
  40. package/dist/src/constants/index.d.ts +0 -56
  41. package/dist/src/constants/index.d.ts.map +0 -1
  42. package/dist/src/index.d.ts +0 -20
  43. package/dist/src/index.d.ts.map +0 -1
  44. package/dist/src/onchain/exchange.d.ts +0 -41
  45. package/dist/src/onchain/exchange.d.ts.map +0 -1
  46. package/dist/src/onchain/index.d.ts +0 -5
  47. package/dist/src/onchain/index.d.ts.map +0 -1
  48. package/dist/src/onchain/order-signer.d.ts +0 -17
  49. package/dist/src/onchain/order-signer.d.ts.map +0 -1
  50. package/dist/src/onchain/transaction-builder.d.ts +0 -46
  51. package/dist/src/onchain/transaction-builder.d.ts.map +0 -1
  52. package/dist/src/sdk/index.d.ts +0 -2
  53. package/dist/src/sdk/index.d.ts.map +0 -1
  54. package/dist/src/sdk/sdk.d.ts +0 -413
  55. package/dist/src/sdk/sdk.d.ts.map +0 -1
  56. package/dist/src/services/httpClient.d.ts +0 -25
  57. package/dist/src/services/httpClient.d.ts.map +0 -1
  58. package/dist/src/types/index.d.ts +0 -608
  59. package/dist/src/types/index.d.ts.map +0 -1
  60. package/dist/src/utils/index.d.ts +0 -62
  61. package/dist/src/utils/index.d.ts.map +0 -1
  62. package/dist/src/utils/jwt-cache.d.ts +0 -14
  63. package/dist/src/utils/jwt-cache.d.ts.map +0 -1
package/dist/cli.cjs CHANGED
@@ -27,27 +27,6 @@ var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
27
27
  var BigNumber__default = /*#__PURE__*/_interopDefaultLegacy(BigNumber);
28
28
  var Table__default = /*#__PURE__*/_interopDefaultLegacy(Table);
29
29
 
30
- // Copyright (c) 2025 Dipcoin LLC
31
- // SPDX-License-Identifier: Apache-2.0
32
- /**
33
- * Default API base URLs
34
- */
35
- const DEFAULT_API_URLS = {
36
- mainnet: "https://gray-api.dipcoin.io",
37
- testnet: "https://demoapi.dipcoin.io/exchange",
38
- };
39
- /**
40
- * Initialize SDK options with defaults
41
- */
42
- function initSDKOptions(options) {
43
- return {
44
- apiBaseUrl: options.apiBaseUrl || DEFAULT_API_URLS[options.network],
45
- network: options.network,
46
- customRpc: options.customRpc,
47
- subAccountKey: options.subAccountKey,
48
- };
49
- }
50
-
51
30
  const PACKAGE_VERSION = "1.45.2";
52
31
  const TARGETED_RPC_VERSION = "1.62.0";
53
32
 
@@ -9479,6 +9458,27 @@ class SuiJsonRpcClient extends Experimental_BaseClient {
9479
9458
  }
9480
9459
  }
9481
9460
 
9461
+ // Copyright (c) 2025 Dipcoin LLC
9462
+ // SPDX-License-Identifier: Apache-2.0
9463
+ /**
9464
+ * Default API base URLs
9465
+ */
9466
+ const DEFAULT_API_URLS = {
9467
+ mainnet: "https://gray-api.dipcoin.io",
9468
+ testnet: "https://demoapi.dipcoin.io/exchange",
9469
+ };
9470
+ /**
9471
+ * Initialize SDK options with defaults
9472
+ */
9473
+ function initSDKOptions(options) {
9474
+ return {
9475
+ apiBaseUrl: options.apiBaseUrl || DEFAULT_API_URLS[options.network],
9476
+ network: options.network,
9477
+ customRpc: options.customRpc,
9478
+ subAccountKey: options.subAccountKey,
9479
+ };
9480
+ }
9481
+
9482
9482
  // Copyright (c) 2025 Dipcoin LLC
9483
9483
  /**
9484
9484
  * API endpoints
@@ -19388,8 +19388,6 @@ class DipCoinPerpSDK {
19388
19388
  }
19389
19389
  }
19390
19390
  }
19391
-
19392
- // Copyright (c) 2025 Dipcoin LLC
19393
19391
  /**
19394
19392
  * Initialize DipCoin Perpetual Trading SDK
19395
19393
  * @param privateKey Private key string or Keypair instance