Skip to content
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

v3.0.0 #584

Merged
merged 33 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a67b013
bumps dependencies
netbonus Jul 30, 2024
be6db5c
update integration test
netbonus Jul 30, 2024
3566474
bump node in test
netbonus Aug 2, 2024
daaf000
revert eip712 `v` change
netbonus Aug 2, 2024
900d226
bumps node version to 18
netbonus Aug 2, 2024
0b010ff
update getMessageToSign to latest ethers version
netbonus Aug 2, 2024
7dca29f
Merge pull request #565 from GridPlus/nb/eip155
netbonus Aug 5, 2024
1a1f9da
Merge pull request #564 from GridPlus/nb/deps
netbonus Aug 5, 2024
54d4807
adds iteration index and test
netbonus Aug 15, 2024
047c230
update iteration
netbonus Aug 19, 2024
3850591
Merge branch 'dev' into nb/addr-fetch
netbonus Aug 19, 2024
694ff50
remove eslint
netbonus Aug 26, 2024
4e7f4eb
remove unused imports
netbonus Aug 26, 2024
a0a1ede
updates snapshot
netbonus Aug 28, 2024
6738d46
Merge pull request #567 from GridPlus/nb/addr-fetch
netbonus Aug 28, 2024
4d9095c
bumps upload artifacts
netbonus Sep 30, 2024
3e16c32
Merge pull request #569 from GridPlus/nb/bump-workflow
netbonus Oct 1, 2024
101d26b
fix parse derivation path (#568)
netbonus Oct 1, 2024
007ba3b
bumps to v2.7.0 (#570)
netbonus Oct 1, 2024
330a192
remove extra test files
netbonus Oct 3, 2024
bc83a13
fixes issue with fetching addrs by derivation path (#572)
netbonus Oct 9, 2024
fe4f8cd
bump to 2.7.1
netbonus Oct 9, 2024
3522a99
Merge branch 'main' into dev
netbonus Oct 9, 2024
66581f9
Merge branch 'main' into dev
netbonus Oct 9, 2024
ca6c981
adds client interoperability for apis (#577)
netbonus Oct 16, 2024
790c3a6
Feat/async client state (#576)
mrcnk Oct 16, 2024
f24fbd1
swaps out .d.ts files .ts files (#578)
netbonus Oct 18, 2024
dab6cf5
automatically fetches calldata from `sign()` (#579)
netbonus Oct 22, 2024
0c31f37
updates build system (#580)
netbonus Oct 25, 2024
021d87d
adds a test for long primary types like hyperliquid (#558)
netbonus Oct 25, 2024
214b2ff
swaps cbor lib for bignumber handling (#582)
netbonus Nov 5, 2024
9914804
v2.7.1 (#575) (#583)
netbonus Nov 6, 2024
48b6818
Merge branch 'main' into dev
netbonus Nov 6, 2024
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
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

34 changes: 0 additions & 34 deletions .eslintrc

This file was deleted.

21 changes: 13 additions & 8 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,26 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x

- name: Install NPM packages
run: npm ci
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies
run: pnpm install

- name: Run linter
run: npm run lint
run: pnpm run lint

- name: Run tests
run: npm run test
run: pnpm run test

- name: Build project
run: npm run build
run: pnpm run build
21 changes: 13 additions & 8 deletions .github/workflows/docs-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,27 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x

- name: Install NPM packages for SDK
run: npm ci
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies for SDK
run: pnpm install

- name: Install NPM packages for Docs
- name: Install dependencies for Docs
run: npm ci
working-directory: ./docs

- name: Build project
run: npm run build
run: pnpm run build
working-directory: ./docs

- name: Upload production-ready build files
Expand All @@ -41,7 +46,7 @@ jobs:

steps:
- name: Download artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: production-files
path: docs/build
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 20.x
registry-url: 'https://registry.npmjs.org'

- name: Install NPM packages
run: npm ci
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies
run: pnpm install

- name: Build project
run: npm run build
run: pnpm run build

- name: Publish to NPM
run: npm publish
run: pnpm publish --no-git-checks

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
93 changes: 93 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import js from '@eslint/js';
import tsPlugin from '@typescript-eslint/eslint-plugin';
import tsParser from '@typescript-eslint/parser';
import prettierConfig from 'eslint-config-prettier';
import prettierPlugin from 'eslint-plugin-prettier';

export default [
js.configs.recommended,
{
files: ['src/**/*.ts', 'src/**/*.tsx'],
plugins: {
'@typescript-eslint': tsPlugin,
prettier: prettierPlugin,
},
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
globals: {
Buffer: 'readonly',
URL: 'readonly',
fetch: 'readonly',
Response: 'readonly',
Request: 'readonly',
RequestInit: 'readonly',
AbortController: 'readonly',
caches: 'readonly',
setTimeout: 'readonly',
clearTimeout: 'readonly',
// Test globals
describe: 'readonly',
it: 'readonly',
test: 'readonly',
expect: 'readonly',
beforeAll: 'readonly',
afterAll: 'readonly',
beforeEach: 'readonly',
afterEach: 'readonly',
// Node.js globals
process: 'readonly',
__dirname: 'readonly',
__filename: 'readonly',
module: 'readonly',
require: 'readonly',
// Browser globals
window: 'readonly',
document: 'readonly',
console: 'readonly',
},
},
rules: {
...tsPlugin.configs.recommended.rules,
...prettierPlugin.configs.recommended.rules,
'prettier/prettier': 'error',
eqeqeq: ['error'],
'no-var': ['warn'],
'no-duplicate-imports': ['error'],
'prefer-const': ['error'],
'prefer-spread': ['error'],
'no-console': ['off'],
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_' },
],
quotes: [
'warn',
'single',
{ avoidEscape: true, allowTemplateLiterals: true },
],
},
},
prettierConfig,
{
ignores: [
'dist/**',
'node_modules/**',
'coverage/**',
'*.js',
'*.cjs',
'*.mjs',
'build/**',
'docs/**',
'patches/**',
'src/__test__/e2e/**',
'src/__test__/integration/**',
'src/__test__/utils/**',
],
},
];
1 change: 0 additions & 1 deletion forge/lib/openzeppelin-contracts
Submodule openzeppelin-contracts deleted from dbb610
Loading
Loading