dipcoin-cli 0.5.0

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 (50) hide show
  1. package/LICENSE +203 -0
  2. package/README.md +736 -0
  3. package/dist/cli/commands/account.d.ts +3 -0
  4. package/dist/cli/commands/account.d.ts.map +1 -0
  5. package/dist/cli/commands/balance.d.ts +3 -0
  6. package/dist/cli/commands/balance.d.ts.map +1 -0
  7. package/dist/cli/commands/history.d.ts +3 -0
  8. package/dist/cli/commands/history.d.ts.map +1 -0
  9. package/dist/cli/commands/market.d.ts +3 -0
  10. package/dist/cli/commands/market.d.ts.map +1 -0
  11. package/dist/cli/commands/position.d.ts +3 -0
  12. package/dist/cli/commands/position.d.ts.map +1 -0
  13. package/dist/cli/commands/trade.d.ts +3 -0
  14. package/dist/cli/commands/trade.d.ts.map +1 -0
  15. package/dist/cli/commands/vault.d.ts +4 -0
  16. package/dist/cli/commands/vault.d.ts.map +1 -0
  17. package/dist/cli/index.d.ts +2 -0
  18. package/dist/cli/index.d.ts.map +1 -0
  19. package/dist/cli/utils/output.d.ts +7 -0
  20. package/dist/cli/utils/output.d.ts.map +1 -0
  21. package/dist/cli/utils/sdk-factory.d.ts +5 -0
  22. package/dist/cli/utils/sdk-factory.d.ts.map +1 -0
  23. package/dist/cli.cjs +19252 -0
  24. package/dist/config/deployed/mainnet/main_contract.json +550 -0
  25. package/dist/config/deployed/testnet/main_contract.json +550 -0
  26. package/dist/index.cjs.js +4 -0
  27. package/dist/index.cjs.js.map +1 -0
  28. package/dist/index.esm.js +4 -0
  29. package/dist/index.esm.js.map +1 -0
  30. package/dist/index.mjs +4 -0
  31. package/dist/index.mjs.map +1 -0
  32. package/dist/src/__tests__/sdk.test.d.ts +2 -0
  33. package/dist/src/__tests__/sdk.test.d.ts.map +1 -0
  34. package/dist/src/config/index.d.ts +15 -0
  35. package/dist/src/config/index.d.ts.map +1 -0
  36. package/dist/src/constants/index.d.ts +55 -0
  37. package/dist/src/constants/index.d.ts.map +1 -0
  38. package/dist/src/index.d.ts +20 -0
  39. package/dist/src/index.d.ts.map +1 -0
  40. package/dist/src/sdk/index.d.ts +2 -0
  41. package/dist/src/sdk/index.d.ts.map +1 -0
  42. package/dist/src/sdk/sdk.d.ts +300 -0
  43. package/dist/src/sdk/sdk.d.ts.map +1 -0
  44. package/dist/src/services/httpClient.d.ts +25 -0
  45. package/dist/src/services/httpClient.d.ts.map +1 -0
  46. package/dist/src/types/index.d.ts +603 -0
  47. package/dist/src/types/index.d.ts.map +1 -0
  48. package/dist/src/utils/index.d.ts +62 -0
  49. package/dist/src/utils/index.d.ts.map +1 -0
  50. package/package.json +78 -0
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function registerAccountCommands(program: Command): void;
3
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../cli/commands/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,QA6EvD"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function registerBalanceCommand(program: Command): void;
3
+ //# sourceMappingURL=balance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../cli/commands/balance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,QA2BtD"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function registerHistoryCommands(program: Command): void;
3
+ //# sourceMappingURL=history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history.d.ts","sourceRoot":"","sources":["../../../cli/commands/history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,QAyHvD"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function registerMarketCommands(program: Command): void;
3
+ //# sourceMappingURL=market.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"market.d.ts","sourceRoot":"","sources":["../../../cli/commands/market.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,QAiGtD"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function registerPositionCommands(program: Command): void;
3
+ //# sourceMappingURL=position.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../cli/commands/position.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,QAuIxD"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function registerTradeCommands(program: Command): void;
3
+ //# sourceMappingURL=trade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trade.d.ts","sourceRoot":"","sources":["../../../cli/commands/trade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+EpC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,QAqDrD"}
@@ -0,0 +1,4 @@
1
+ import { Command } from "commander";
2
+ export declare function registerVaultCommands(program: Command): void;
3
+ export declare function registerOrdersCommand(program: Command): void;
4
+ //# sourceMappingURL=vault.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vault.d.ts","sourceRoot":"","sources":["../../../cli/commands/vault.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,QAkDrD;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,QAuCrD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../cli/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { Command } from "commander";
2
+ export declare function isJson(cmd: Command): boolean;
3
+ export declare function printJson(data: any): void;
4
+ export declare function printTable(headers: string[], rows: string[][]): void;
5
+ export declare function formatWei(value: string | number | null | undefined): string;
6
+ export declare function handleError(error: any): void;
7
+ //# sourceMappingURL=output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../cli/utils/output.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,wBAAgB,MAAM,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAE5C;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAEzC;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,IAAI,CAIpE;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAK3E;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI,CAG5C"}
@@ -0,0 +1,5 @@
1
+ import { DipCoinPerpSDK } from "../../src";
2
+ export declare function getSDK(): DipCoinPerpSDK;
3
+ export declare function getVaultAddress(cmdVault?: string): string | undefined;
4
+ export declare function ensureAuth(sdk: DipCoinPerpSDK): Promise<void>;
5
+ //# sourceMappingURL=sdk-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk-factory.d.ts","sourceRoot":"","sources":["../../../cli/utils/sdk-factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,cAAc,EAAE,MAAM,WAAW,CAAC;AAI/D,wBAAgB,MAAM,IAAI,cAAc,CAkBvC;AAED,wBAAgB,eAAe,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAErE;AAED,wBAAsB,UAAU,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAMnE"}