-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'original/main'
- Loading branch information
Showing
934 changed files
with
239,599 additions
and
17,854 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
v4-client-cpp/ @asnefedovv @dydxprotocol/eng | ||
v4-client-py/ @kaloureyes3 @dydxprotocol/eng | ||
v4-client-py-v2/ @samtin0x @therustmonk @piwonskp @dydxprotocol/eng | ||
# Order is important. The last matching pattern has the most precedence. | ||
|
||
* @dydxprotocol/eng | ||
* @dydxprotocol/engineering | ||
|
||
/v4-client-py-deprecated/ @dydxprotocol/engineering @dydxprotocol/foundation @dydxprotocol/nethermind | ||
/v4-client-py-v2/ @dydxprotocol/engineering @dydxprotocol/foundation @dydxprotocol/nethermind | ||
/v4-client-rs/ @dydxprotocol/engineering @dydxprotocol/foundation @dydxprotocol/nethermind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: "Conventional PR Title" | ||
on: | ||
pull_request: | ||
types: ['opened', 'edited', 'reopened', 'synchronize'] | ||
paths: | ||
- 'v4-client-js/**' | ||
- 'v4-client-rs/**' | ||
jobs: | ||
conventional-pr-title: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./v4-client-js | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 20.8.1 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.8.1 | ||
registry-url: https://registry.npmjs.org | ||
cache: "npm" | ||
cache-dependency-path: '**/package-lock.json' | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm install @commitlint/config-conventional | ||
- name: Lint PR Title | ||
run: | | ||
echo "${PR_TITLE}" | npx commitlint --config commitlint.config.js | ||
env: | ||
PR_TITLE: '${{ github.event.pull_request.title }}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: "[v4-client-rs] Build, Fmt, Clippy, Audit, & Test" | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'v4-client-rs/**' | ||
push: | ||
paths: | ||
- 'v4-client-rs/**' | ||
branches: | ||
- main | ||
- "release/*" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./v4-client-rs | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Install protoc # for dev dependencies only | ||
run: sudo apt install -y protobuf-compiler | ||
|
||
- name: Build | ||
run: cargo build | ||
|
||
- name: Check formatting | ||
run: cargo fmt -- --check | ||
|
||
- name: Linter | ||
shell: bash | ||
run: cargo clippy -- -D warnings | ||
|
||
- name: Install audit | ||
shell: bash | ||
run: cargo install cargo-deny | ||
|
||
- name: Security audit, licenses | ||
shell: bash | ||
run: cargo deny check licenses advisories sources | ||
|
||
- name: Test | ||
run: cargo test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea | ||
**/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
[submodule "v4-client-cpp"] | ||
path = v4-client-cpp | ||
url = https://github.com/asnefedovv/dydx-v4-client-cpp | ||
[submodule "dydxprotocol"] | ||
path = dydxjs/packages/dydxjs/proto/dydxprotocol-src | ||
url = [email protected]:dydxprotocol/v4-chain.git | ||
[submodule "noble-cctp"] | ||
path = dydxjs/packages/dydxjs/proto/noble-cctp-src | ||
url = [email protected]:circlefin/noble-cctp.git | ||
[submodule "slinky"] | ||
path = dydxjs/packages/dydxjs/proto/slinky-src | ||
url = [email protected]:skip-mev/slinky.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/ | ||
dist/ | ||
main/ | ||
module/ | ||
coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
module.exports = { | ||
plugins: ['prettier'], | ||
extends: ['eslint:recommended', 'prettier'], | ||
parserOptions: { | ||
ecmaVersion: 11, | ||
requireConfigFile: false, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
}, | ||
env: { | ||
es6: true, | ||
browser: true, | ||
node: true, | ||
jest: true | ||
}, | ||
rules: { | ||
'no-debugger': 2, | ||
'no-alert': 2, | ||
'no-await-in-loop': 0, | ||
'no-prototype-builtins': 0, | ||
'no-return-assign': ['error', 'except-parens'], | ||
'no-restricted-syntax': [ | ||
2, | ||
'ForInStatement', | ||
'LabeledStatement', | ||
'WithStatement' | ||
], | ||
'no-unused-vars': [ | ||
0, | ||
{ | ||
ignoreSiblings: true, | ||
argsIgnorePattern: 'React|res|next|^_' | ||
} | ||
], | ||
'prefer-const': [ | ||
'error', | ||
{ | ||
destructuring: 'all' | ||
} | ||
], | ||
'no-unused-expressions': [ | ||
2, | ||
{ | ||
allowTaggedTemplates: true | ||
} | ||
], | ||
'no-console': 1, | ||
'comma-dangle': 2, | ||
'jsx-quotes': [2, 'prefer-double'], | ||
'linebreak-style': ['error', 'unix'], | ||
quotes: [ | ||
2, | ||
'single', | ||
{ | ||
avoidEscape: true, | ||
allowTemplateLiterals: true | ||
} | ||
], | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
trailingComma: 'none', | ||
singleQuote: true, | ||
printWidth: 80 | ||
} | ||
] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# out | ||
dist | ||
mjs | ||
main | ||
module | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules | ||
jspm_packages | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Editors | ||
.idea | ||
|
||
# Lib | ||
lib | ||
|
||
# npm package lock | ||
package-lock.json | ||
yarn.lock | ||
|
||
# others | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
*.log | ||
npm-debug.log* | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
.nyc_output | ||
|
||
# Dependency directories | ||
node_modules | ||
|
||
# npm package lock | ||
package-lock.json | ||
yarn.lock | ||
|
||
# project files | ||
__fixtures__ | ||
__tests__ | ||
.babelrc | ||
.babelrc.js | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc | ||
.eslintrc.js | ||
.gitignore | ||
.travis.yml | ||
.vscode | ||
CHANGELOG.md | ||
examples | ||
jest.config.js | ||
package.json | ||
src | ||
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
scripts-prepend-node-path=true |
Oops, something went wrong.