Skip to content

Merc 6849 llo benchmarking on staging mainnet don #481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ runs:
node-version: 22.14
registry-url: https://registry.npmjs.org
always-auth: true
cache: yarn
- name: Enable Corepack
run: corepack enable
shell: bash
- name: Check Yarn version and path after Corepack enable
run: |
which yarn
yarn --version
shell: bash
- run: yarn install --frozen-lockfile
shell: bash
9 changes: 9 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
nodeLinker: node-modules

packageExtensions:
"[email protected]":
peerDependencies:
"@types/node": "18.11.18"
"[email protected]":
peerDependencies:
"@types/node": "18.11.18"
279 changes: 152 additions & 127 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,142 +1,167 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsdoc from "eslint-plugin-tsdoc";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
import typescriptEslint from '@typescript-eslint/eslint-plugin'
import tsdoc from 'eslint-plugin-tsdoc'
import tsParser from '@typescript-eslint/parser'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

export default [{
export default [
{
ignores: [
"**/node_modules",
"**/dist",
"**/coverage",
"scripts/generator-adapter",
"**/.yarn",
"**/.vscode",
'**/node_modules',
'**/dist',
'**/coverage',
'scripts/generator-adapter',
'**/.yarn',
'**/.vscode',
],
}, ...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"), {
},
...compat.extends('eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'),
{
plugins: {
"@typescript-eslint": typescriptEslint,
tsdoc,
'@typescript-eslint': typescriptEslint,
tsdoc,
},

languageOptions: {
parser: tsParser,
parser: tsParser,
},

rules: {
"tsdoc/syntax": "warn",

"array-callback-return": ["error", {
allowImplicit: false,
checkForEach: true,
}],

"no-constant-binary-expression": "error",
"no-constructor-return": "error",
"no-duplicate-imports": "error",
"no-promise-executor-return": "error",
"no-self-compare": "error",
"no-template-curly-in-string": "error",
"no-unmodified-loop-condition": "error",
"no-unreachable-loop": "error",
"no-unused-private-class-members": "error",
"require-atomic-updates": "error",

"@typescript-eslint/no-unused-vars": ["warn", {
argsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_"
}],

"capitalized-comments": ["error", "always", {
ignoreConsecutiveComments: true,
}],

complexity: ["error", 25],
curly: "error",
"default-case-last": "error",
"default-param-last": "error",
eqeqeq: ["error", "smart"],
"func-names": "error",

"func-style": ["error", "declaration", {
allowArrowFunctions: true,
}],

"grouped-accessor-pairs": ["error", "getBeforeSet"],
"max-depth": ["error", 4],
"max-nested-callbacks": ["error", 3],
"max-params": ["error", 4],

"new-cap": ["error", {
newIsCapExceptions: ["ctor"],
}],

"no-caller": "error",

"no-confusing-arrow": ["error", {
allowParens: true,
}],

"no-console": ["warn"],
"no-div-regex": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-extra-semi": "error",
"no-floating-decimal": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-labels": "error",
"no-lonely-if": "error",
"no-multi-assign": "error",
"no-multi-str": "error",
"no-nested-ternary": "error",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-param-reassign": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-sequences": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"no-unneeded-ternary": "error",
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-rename": "error",
"no-var": "error",
"operator-assignment": ["error", "always"],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-exponentiation-operator": "error",
"prefer-object-spread": "error",
"prefer-promise-reject-errors": "error",
"prefer-regex-literals": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"spaced-comment": ["error", "always"],
"symbol-description": "error",
yoda: "error",
'tsdoc/syntax': 'warn',

'array-callback-return': [
'error',
{
allowImplicit: false,
checkForEach: true,
},
],

'no-constant-binary-expression': 'error',
'no-constructor-return': 'error',
'no-duplicate-imports': 'error',
'no-promise-executor-return': 'error',
'no-self-compare': 'error',
'no-template-curly-in-string': 'error',
'no-unmodified-loop-condition': 'error',
'no-unreachable-loop': 'error',
'no-unused-private-class-members': 'error',
'require-atomic-updates': 'error',

'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],

'capitalized-comments': [
'error',
'always',
{
ignoreConsecutiveComments: true,
},
],

complexity: ['error', 25],
curly: 'error',
'default-case-last': 'error',
'default-param-last': 'error',
eqeqeq: ['error', 'smart'],
'func-names': 'error',

'func-style': [
'error',
'declaration',
{
allowArrowFunctions: true,
},
],

'grouped-accessor-pairs': ['error', 'getBeforeSet'],
'max-depth': ['error', 4],
'max-nested-callbacks': ['error', 3],
'max-params': ['error', 4],

'new-cap': [
'error',
{
newIsCapExceptions: ['ctor'],
},
],

'no-caller': 'error',

'no-confusing-arrow': [
'error',
{
allowParens: true,
},
],

'no-console': ['warn'],
'no-div-regex': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-extra-label': 'error',
'no-extra-semi': 'error',
'no-floating-decimal': 'error',
'no-implied-eval': 'error',
'no-invalid-this': 'error',
'no-labels': 'error',
'no-lonely-if': 'error',
'no-multi-assign': 'error',
'no-multi-str': 'error',
'no-nested-ternary': 'error',
'no-new': 'error',
'no-new-func': 'error',
'no-new-object': 'error',
'no-new-wrappers': 'error',
'no-param-reassign': 'error',
'no-proto': 'error',
'no-return-assign': 'error',
'no-return-await': 'error',
'no-sequences': 'error',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
'no-unneeded-ternary': 'error',
'no-useless-call': 'error',
'no-useless-computed-key': 'error',
'no-useless-concat': 'error',
'no-useless-rename': 'error',
'no-var': 'error',
'operator-assignment': ['error', 'always'],
'prefer-arrow-callback': 'error',
'prefer-const': 'error',
'prefer-exponentiation-operator': 'error',
'prefer-object-spread': 'error',
'prefer-promise-reject-errors': 'error',
'prefer-regex-literals': 'error',
'prefer-rest-params': 'error',
'prefer-spread': 'error',
'prefer-template': 'error',
'spaced-comment': ['error', 'always'],
'symbol-description': 'error',
yoda: 'error',
},
}, {
files: ["test/**/*.ts"],
},
{
files: ['test/**/*.ts'],

rules: {
"require-atomic-updates": "off",
'require-atomic-updates': 'off',
},
}];
},
]
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"ajv": "8.17.1",
"axios": "1.9.0",
"eventsource": "2.0.2",
"farmhash": "4.0.1",
"fastify": "5.3.2",
"ioredis": "5.6.1",
"mock-socket": "9.3.1",
Expand Down Expand Up @@ -38,6 +39,7 @@
"@sinonjs/fake-timers": "14.0.0",
"@types/eventsource": "1.1.15",
"@types/node": "22.15.3",
"@types/sinon": "17.0.4",
"@types/sinonjs__fake-timers": "8.1.5",
"@types/ws": "8.18.1",
"@typescript-eslint/eslint-plugin": "8.30.1",
Expand All @@ -50,6 +52,7 @@
"eslint-plugin-tsdoc": "0.4.0",
"mocksse": "1.0.4",
"prettier": "3.5.3",
"sinon": "20.0.0",
"ts-node": "10.9.2",
"ts-node-dev": "2.0.0",
"typedoc": "0.28.3",
Expand Down Expand Up @@ -80,5 +83,6 @@
"METRICS_ENABLED": "false"
},
"timeout": "20s"
}
},
"packageManager": "[email protected]+sha512.5a0afa1d4c1d844b3447ee3319633797bcd6385d9a44be07993ae52ff4facabccafb4af5dcd1c2f9a94ac113e5e9ff56f6130431905884414229e284e37bb7c9"
}
Loading
Loading