Skip to content

Commit

Permalink
feat(hyperliquid): add new vendor hyperliquid (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thrimbda authored Feb 19, 2025
1 parent abff37c commit 01e58d0
Show file tree
Hide file tree
Showing 14 changed files with 1,204 additions and 0 deletions.
411 changes: 411 additions & 0 deletions apps/vendor-hyperliquid/api-extractor.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions apps/vendor-hyperliquid/config/jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json"
}
18 changes: 18 additions & 0 deletions apps/vendor-hyperliquid/config/rig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// The "rig.json" file directs tools to look for their config files in an external package.
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package
{
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",

/**
* (Required) The name of the rig package to inherit from.
* It should be an NPM package name with the "-rig" suffix.
*/
"rigPackageName": "@rushstack/heft-node-rig"

/**
* (Optional) Selects a config profile from the rig package. The name must consist of
* lowercase alphanumeric words separated by hyphens, for example "sample-profile".
* If omitted, then the "default" profile will be used."
*/
// "rigProfile": "your-profile-name"
}
87 changes: 87 additions & 0 deletions apps/vendor-hyperliquid/config/typescript.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/**
* Configures the TypeScript plugin for Heft. This plugin also manages linting.
*/
{
"$schema": "https://developer.microsoft.com/json-schemas/heft/typescript.schema.json",

/**
* Optionally specifies another JSON config file that this file extends from. This provides a way for standard
* settings to be shared across multiple projects.
*/
// "extends": "base-project/config/typescript.json",

/**
* Can be set to "copy" or "hardlink". If set to "copy", copy files from cache.
* If set to "hardlink", files will be hardlinked to the cache location.
* This option is useful when producing a tarball of build output as TAR files don't
* handle these hardlinks correctly. "hardlink" is the default behavior.
*/
// "copyFromCacheMode": "copy",

/**
* If provided, emit these module kinds in addition to the modules specified in the tsconfig.
* Note that this option only applies to the main tsconfig.json configuration.
*/
"additionalModuleKindsToEmit": [
{
"moduleKind": "esnext",
"outFolderName": "dist"
}
// {
// /**
// * (Required) Must be one of "commonjs", "amd", "umd", "system", "es2015", "esnext"
// */
// "moduleKind": "amd",
//
// /**
// * (Required) The name of the folder where the output will be written.
// */
// "outFolderName": "lib-amd"
// }
],

/**
* Specifies the intermediary folder that tests will use. Because Jest uses the
* Node.js runtime to execute tests, the module format must be CommonJS.
*
* The default value is "lib".
*/
// "emitFolderNameForTests": "lib-commonjs",

/**
* If set to "true", the TSlint task will not be invoked.
*/
// "disableTslint": true,

/**
* Set this to change the maximum number of file handles that will be opened concurrently for writing.
* The default is 50.
*/
// "maxWriteParallelism": 50,

/**
* Configures additional file types that should be copied into the TypeScript compiler's emit folders, for example
* so that these files can be resolved by import statements.
*/
"staticAssetsToCopy": {
/**
* File extensions that should be copied from the src folder to the destination folder(s).
*/
// "fileExtensions": [
// ".json", ".css"
// ],
/**
* Glob patterns that should be explicitly included.
*/
// "includeGlobs": [
// "some/path/*.js"
// ],
/**
* Glob patterns that should be explicitly excluded. This takes precedence over globs listed
* in "includeGlobs" and files that match the file extensions provided in "fileExtensions".
*/
// "excludeGlobs": [
// "some/path/*.css"
// ]
}
}
9 changes: 9 additions & 0 deletions apps/vendor-hyperliquid/etc/vendor-hyperliquid.api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## API Report File for "@yuants/vendor-hyperliquid"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts

// (No @packageDocumentation comment for this package)

```
44 changes: 44 additions & 0 deletions apps/vendor-hyperliquid/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "@yuants/vendor-hyperliquid",
"version": "0.0.0",
"files": [
"dist/extension.bundle.js"
],
"scripts": {
"dev": "ts-node src/index.ts",
"build": "heft test --clean && api-extractor run --local && yuan-toolkit post-build"
},
"dependencies": {
"@yuants/protocol": "workspace:*",
"@yuants/data-model": "workspace:*",
"@yuants/utils": "workspace:*",
"@yuants/data-series": "workspace:*",
"rxjs": "~7.5.6",
"crypto-js": "^4.2.0",
"hyperliquid": "~1.6.2",
"ethers": "~6.13.5"
},
"devDependencies": {
"@microsoft/api-extractor": "~7.30.0",
"@rushstack/heft": "~0.47.5",
"@rushstack/heft-jest-plugin": "~0.3.30",
"@rushstack/heft-node-rig": "~1.10.7",
"@types/heft-jest": "1.0.3",
"@types/node": "18",
"@yuants/extension": "workspace:*",
"@yuants/tool-kit": "workspace:*",
"typescript": "~4.7.4",
"ts-node": "~10.9.2"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
},
"io_ntnl": {
"deploy_files": [
"dist",
"lib",
"temp"
]
}
}
Loading

0 comments on commit 01e58d0

Please sign in to comment.