Skip to content

Commit

Permalink
Merge pull request #650 from nevermined-io/fix/import_refactor
Browse files Browse the repository at this point in the history
Viem refactor
  • Loading branch information
aaitor authored May 2, 2024
2 parents 6794eaf + b4746e7 commit 948e307
Show file tree
Hide file tree
Showing 308 changed files with 12,140 additions and 10,918 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ dist
webpack*
plugins
scripts
test/mocks
test/mocks
coverage*
28 changes: 25 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,38 @@
{
// "extends": [
// "nevermined"
// ],
"extends": [
"nevermined"
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parserOptions": {
"project": "./tsconfig.eslint.json"
}
}, {
"files": ["tests/**/*", "integration/**/*"],
"plugins": ["jest"],
"env": {
"jest/globals": true
}
}
],
"rules": {
"rules": {
"@next/next/no-html-link-for-pages": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unnecessary-type-constraint": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/no-unused-vars": [
"error", {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}]
},
"ignorePatterns": ["test/resources/proxy-poc/*.js"]
"ignorePatterns": ["test/resources/proxy-poc/*"]
}
2 changes: 1 addition & 1 deletion .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
# Build process
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Set version to env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org/
- run: yarn install --frozen-lockfile --ignore-engines
- run: npm publish --access public
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/testing-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- uses: actions/checkout@v4
with:
repository: nevermined-io/node
path: node
# TODO: remove this when Node integrated with SDKv2 is integraged
ref: develop
ref: feat/integrate-new-sdk
token: ${{ secrets.API_TOKEN_GITHUB }}
- uses: nevermined-io/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ test/mocks
.nyc_output
artifacts
circuits
coverage
coverage
204 changes: 200 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,202 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v3.0.0-rc9](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc8...v3.0.0-rc9)

> 19 April 2024
- Fix/stric required [`#654`](https://github.com/nevermined-io/sdk-js/pull/654)
- fix: some error connecting [`212bde7`](https://github.com/nevermined-io/sdk-js/commit/212bde7e41cd12686d0a5bd553abe5bf3465bdb5)
- Automated CHANGELOG.md update [`a12d525`](https://github.com/nevermined-io/sdk-js/commit/a12d525e25a953951e40922f11333cd83c517418)
- test: longer duration [`6af0f07`](https://github.com/nevermined-io/sdk-js/commit/6af0f07315d597ebe03334bb978aae0258144245)

#### [v3.0.0-rc8](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc7...v3.0.0-rc8)

> 18 April 2024
- feat: remove unneded paths [`7c6c7cb`](https://github.com/nevermined-io/sdk-js/commit/7c6c7cb63ac857aed4f8bb183dfbf8579a269beb)
- Automated CHANGELOG.md update [`68d549e`](https://github.com/nevermined-io/sdk-js/commit/68d549efd222b9e5d7e934984a4ef637234a2787)
- fix: test with node [`2938893`](https://github.com/nevermined-io/sdk-js/commit/29388937ffd6422576e934f976efc1e1cde6bb5c)

#### [v3.0.0-rc7](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc6...v3.0.0-rc7)

> 18 April 2024
- fix: make strict required and fix initially some [`4972c2b`](https://github.com/nevermined-io/sdk-js/commit/4972c2bb4558013f67c4455c6abdb48d930244e4)
- fix: using strict null check [`aeeba5a`](https://github.com/nevermined-io/sdk-js/commit/aeeba5afcd4cc3bc358629a82c240fc53c35ce24)
- fix: integration test [`3c0902f`](https://github.com/nevermined-io/sdk-js/commit/3c0902f80b340b01d68616b751d788e57065f3da)

#### [v3.0.0-rc6](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc5...v3.0.0-rc6)

> 17 April 2024
- feat: set and get asset providers [`7888b3d`](https://github.com/nevermined-io/sdk-js/commit/7888b3ddb82f1a2b141df4df6a4d1d4da316c790)
- Automated CHANGELOG.md update [`de127e2`](https://github.com/nevermined-io/sdk-js/commit/de127e2f0c51d9f562e73054b82f8b80cb2f1363)

#### [v3.0.0-rc5](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc4...v3.0.0-rc5)

> 12 April 2024
- fix: tests related with amount not being a bigInt [`9f35815`](https://github.com/nevermined-io/sdk-js/commit/9f358157bbbcbcc993be45afb086e30344f79790)
- Automated CHANGELOG.md update [`e2f3e69`](https://github.com/nevermined-io/sdk-js/commit/e2f3e69c5cae31a959376eb68960129ea7282e2b)
- feat: test against new node [`1220347`](https://github.com/nevermined-io/sdk-js/commit/1220347ff11b610fbb699cb4cc17eba6c8d2a0ee)

#### [v3.0.0-rc4](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc3...v3.0.0-rc4)

> 12 April 2024
- fix: param in transferNFT721Condition [`1286b22`](https://github.com/nevermined-io/sdk-js/commit/1286b220414d26e41df1c33d751a678a5a2bd329)
- Automated CHANGELOG.md update [`a3fe47d`](https://github.com/nevermined-io/sdk-js/commit/a3fe47dcbf4aa97eef7bfc32dacdae54796b70be)

#### [v3.0.0-rc3](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc25...v3.0.0-rc3)

> 10 April 2024
#### [v3.0.0-rc25](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc24...v3.0.0-rc25)

> 2 May 2024
- feat: bump versions [`5bc1dbc`](https://github.com/nevermined-io/sdk-js/commit/5bc1dbc68f9c15f88de0e73f3e968904241b5d6f)
- Automated CHANGELOG.md update [`bba52ed`](https://github.com/nevermined-io/sdk-js/commit/bba52ed3ca627ec08b2523fa023789da162088a0)

#### [v3.0.0-rc24](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc23...v3.0.0-rc24)

> 26 April 2024
- fix: some method names [`368ab92`](https://github.com/nevermined-io/sdk-js/commit/368ab9206f2b2983810633fdd6f6f669d6631c57)
- Automated CHANGELOG.md update [`ce32429`](https://github.com/nevermined-io/sdk-js/commit/ce32429ac196245801cbb86dd1bfc0cb1795a2e6)

#### [v3.0.0-rc23](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc22...v3.0.0-rc23)

> 26 April 2024
- feat: integrate zeroDev sessionKeys [`1fbd87a`](https://github.com/nevermined-io/sdk-js/commit/1fbd87adc5f243a6e5a47a81347daf30be6aa62f)
- Automated CHANGELOG.md update [`d37da47`](https://github.com/nevermined-io/sdk-js/commit/d37da4717edd2131b17c24a336829b62776e6fbd)

#### [v3.0.0-rc22](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc21...v3.0.0-rc22)

> 25 April 2024
- Automated CHANGELOG.md update [`aa8c3b5`](https://github.com/nevermined-io/sdk-js/commit/aa8c3b592d91a9c60482dce850e3e2bfa0c29175)
- fix: exports [`5899421`](https://github.com/nevermined-io/sdk-js/commit/5899421c4f1cea3906ea46ad8098c153ea5234e5)

#### [v3.0.0-rc21](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc20...v3.0.0-rc21)

> 25 April 2024
- Automated CHANGELOG.md update [`b65bc3e`](https://github.com/nevermined-io/sdk-js/commit/b65bc3e57b4ed6121351d9cd5f66bfdf30f265dc)
- fix: export missed types [`2ecf88f`](https://github.com/nevermined-io/sdk-js/commit/2ecf88fbad3cf06bf8766fcb11930bcb485a3216)

#### [v3.0.0-rc20](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc2...v3.0.0-rc20)

> 25 April 2024
- Fix/stric required [`#654`](https://github.com/nevermined-io/sdk-js/pull/654)
- fix: param in transferNFT721Condition [`1286b22`](https://github.com/nevermined-io/sdk-js/commit/1286b220414d26e41df1c33d751a678a5a2bd329)
- fix: make strict required and fix initially some [`4972c2b`](https://github.com/nevermined-io/sdk-js/commit/4972c2bb4558013f67c4455c6abdb48d930244e4)
- feat: use kernel client for zerodev calls [`0dcff95`](https://github.com/nevermined-io/sdk-js/commit/0dcff953c66e0c2ef23b65dc21e0e069d405db52)

#### [v3.0.0-rc2](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc19...v3.0.0-rc2)

> 10 April 2024
#### [v3.0.0-rc19](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc18...v3.0.0-rc19)

> 24 April 2024
- feat: rename function [`44357c3`](https://github.com/nevermined-io/sdk-js/commit/44357c38125efb9db184a54947d54f26edc0c025)
- Automated CHANGELOG.md update [`b92588d`](https://github.com/nevermined-io/sdk-js/commit/b92588df695216d73b4b5bbdde403705a98270fe)

#### [v3.0.0-rc18](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc17...v3.0.0-rc18)

> 24 April 2024
- feat: export missed method [`e899601`](https://github.com/nevermined-io/sdk-js/commit/e899601a9f626767cb992ecc69bcac680899c8d6)
- Automated CHANGELOG.md update [`74e1149`](https://github.com/nevermined-io/sdk-js/commit/74e11499a4a7a897096be5ca5140c2ebc6896d4a)

#### [v3.0.0-rc17](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc16...v3.0.0-rc17)

> 23 April 2024
- feat: use ENTRYPOINT_ADDRESS_V06 [`3f85616`](https://github.com/nevermined-io/sdk-js/commit/3f856166cc4e47f3f1a3a45cc6f25f1f8d025937)
- Automated CHANGELOG.md update [`9abddf3`](https://github.com/nevermined-io/sdk-js/commit/9abddf364916641998602528c83825476fbecb1e)

#### [v3.0.0-rc16](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc15...v3.0.0-rc16)

> 23 April 2024
- feat: get kernel client from nvmAccount [`8e1a40e`](https://github.com/nevermined-io/sdk-js/commit/8e1a40eb637b16f1e628b71fb988500c5c04e756)
- Automated CHANGELOG.md update [`6aa65ac`](https://github.com/nevermined-io/sdk-js/commit/6aa65acae510d65836b57a08a09f3267d5a71d99)

#### [v3.0.0-rc15](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc14...v3.0.0-rc15)

> 23 April 2024
- feat: pass parameter correctly [`8effd6d`](https://github.com/nevermined-io/sdk-js/commit/8effd6d8e3a78c0f1e723326d94509541ce26ff3)
- Automated CHANGELOG.md update [`00df45e`](https://github.com/nevermined-io/sdk-js/commit/00df45e90a7b4909961d55154b4a6f50139416aa)

#### [v3.0.0-rc14](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc13...v3.0.0-rc14)

> 23 April 2024
- feat: use kernel client for zerodev calls [`0dcff95`](https://github.com/nevermined-io/sdk-js/commit/0dcff953c66e0c2ef23b65dc21e0e069d405db52)
- Automated CHANGELOG.md update [`091a88e`](https://github.com/nevermined-io/sdk-js/commit/091a88e6e0dc9a138937e1189c6dc39b97fc0c2b)

#### [v3.0.0-rc13](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc12...v3.0.0-rc13)

> 22 April 2024
- feat: try zerodev as a localaccount2 [`491b2a9`](https://github.com/nevermined-io/sdk-js/commit/491b2a94fffa877099b5d6a468c9a3222c49b63a)
- Automated CHANGELOG.md update [`c54b387`](https://github.com/nevermined-io/sdk-js/commit/c54b387c0260a0168c34b288d7daef4b9a45e292)

#### [v3.0.0-rc12](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc11...v3.0.0-rc12)

> 22 April 2024
- fix: to avoid reconnect [`8ce826d`](https://github.com/nevermined-io/sdk-js/commit/8ce826de3e349dd2728e9f25c57c4170a7c238fb)
- Automated CHANGELOG.md update [`b784485`](https://github.com/nevermined-io/sdk-js/commit/b784485ef2f8b06c201897e79a5c1d585e88610b)

#### [v3.0.0-rc11](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc10...v3.0.0-rc11)

> 22 April 2024
- Automated CHANGELOG.md update [`203ae98`](https://github.com/nevermined-io/sdk-js/commit/203ae983729bb0925c770a3a68281bb44237c669)
- feat: try passing signer address [`e84829a`](https://github.com/nevermined-io/sdk-js/commit/e84829aa31fecfe041b1a83fe9c071238f963178)

#### [v3.0.0-rc10](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc1...v3.0.0-rc10)

> 22 April 2024
- Fix/stric required [`#654`](https://github.com/nevermined-io/sdk-js/pull/654)
- fix: param in transferNFT721Condition [`1286b22`](https://github.com/nevermined-io/sdk-js/commit/1286b220414d26e41df1c33d751a678a5a2bd329)
- fix: make strict required and fix initially some [`4972c2b`](https://github.com/nevermined-io/sdk-js/commit/4972c2bb4558013f67c4455c6abdb48d930244e4)
- fix: using strict null check [`aeeba5a`](https://github.com/nevermined-io/sdk-js/commit/aeeba5afcd4cc3bc358629a82c240fc53c35ce24)

#### [v3.0.0-rc1](https://github.com/nevermined-io/sdk-js/compare/v3.0.0-rc0...v3.0.0-rc1)

> 9 April 2024
- feat: change imports [`#653`](https://github.com/nevermined-io/sdk-js/pull/653)
- fix: workaround for base deployemnt [`#652`](https://github.com/nevermined-io/sdk-js/pull/652)
- Fix: assistant encrypted attributes [`#651`](https://github.com/nevermined-io/sdk-js/pull/651)
- Feat/pending methods [`#649`](https://github.com/nevermined-io/sdk-js/pull/649)
- feat: support edit metadata in nvmApp# [`#647`](https://github.com/nevermined-io/sdk-js/pull/647)
- feat: support registration in nvmApp [`#646`](https://github.com/nevermined-io/sdk-js/pull/646)
- Bump: v2.2.13 [`#645`](https://github.com/nevermined-io/sdk-js/pull/645)
- Feat: new "assistant" type [`#644`](https://github.com/nevermined-io/sdk-js/pull/644)
- feat: tweaks to make it compatible with frontend app [`#643`](https://github.com/nevermined-io/sdk-js/pull/643)
- fix: commit yarn.lock [`88f55f6`](https://github.com/nevermined-io/sdk-js/commit/88f55f6a26cc598494595deeeff02b2f46090449)
- feat: removing ethers [`3e1578c`](https://github.com/nevermined-io/sdk-js/commit/3e1578cef51feac3891e4957cd784b00c5d66bb5)
- test: integration tests [`f09dc5c`](https://github.com/nevermined-io/sdk-js/commit/f09dc5cdf3a54b605468471f1d6f9b800fd16b6a)

#### [v3.0.0-rc0](https://github.com/nevermined-io/sdk-js/compare/v2.2.18...v3.0.0-rc0)

> 8 April 2024
- fix: compiling and linting [`3b970da`](https://github.com/nevermined-io/sdk-js/commit/3b970daa510eb33653f0fc2e89285315e6abfb7f)
- feat: internal refactor [`8579c7f`](https://github.com/nevermined-io/sdk-js/commit/8579c7f0e36038789c3628f06b1af1007c926e7e)
- fix: compilation and linting [`3faf8f1`](https://github.com/nevermined-io/sdk-js/commit/3faf8f119da3e90a94a9b8bbd3276122586a6243)

#### [v2.2.18](https://github.com/nevermined-io/sdk-js/compare/v2.2.17...v2.2.18)

> 1 April 2024
Expand Down Expand Up @@ -1621,7 +1817,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

> 2 May 2022
- add aave service agreement to ddo when creating nft721 asset [`#248`](https://github.com/nevermined-io/sdk-js/pull/248)
- add aave service agreement to ddo when creating nft721 asset [`#248`](https://github.com/nevermined-io/sdk-js/pull/248)
- Adding v0.19.21 Changelog updates [`c93cdc5`](https://github.com/nevermined-io/sdk-js/commit/c93cdc55f139a43db4130ccb0f80924d2645a931)

#### [v0.19.21](https://github.com/nevermined-io/sdk-js/compare/v0.19.20...v0.19.21)
Expand Down Expand Up @@ -1884,7 +2080,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

> 18 January 2022
- Removing not used parameter [`#186`](https://github.com/nevermined-io/sdk-js/pull/186)
- Removing not used parameter [`#186`](https://github.com/nevermined-io/sdk-js/pull/186)
- [wip] Create agreement+pay in one transaction [`#183`](https://github.com/nevermined-io/sdk-js/pull/183)
- Adapting to contracts `v1.3.3` [`#177`](https://github.com/nevermined-io/sdk-js/pull/177)
- Adding v0.17.2 Changelog updates [`5eddda4`](https://github.com/nevermined-io/sdk-js/commit/5eddda43954e013e6e6f7344c9a877d801aacb5c)
Expand Down Expand Up @@ -2390,7 +2586,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- Feature/sync develop [`#268`](https://github.com/nevermined-io/sdk-js/pull/268)
- Quick fix for non-eip1559 networks [`#266`](https://github.com/nevermined-io/sdk-js/pull/266)
- integrate Permissions and refactor search query [`#264`](https://github.com/nevermined-io/sdk-js/pull/264)
- add aave service agreement to ddo when creating nft721 asset [`#248`](https://github.com/nevermined-io/sdk-js/pull/248)
- add aave service agreement to ddo when creating nft721 asset [`#248`](https://github.com/nevermined-io/sdk-js/pull/248)
- Get the keeper version from the artifacts instead of package version [`#244`](https://github.com/nevermined-io/sdk-js/pull/244)
- replace `metadata-api` url by `marketplace-api` and sort type [`#243`](https://github.com/nevermined-io/sdk-js/pull/243)
- fixing issues with BigNumbers [`#246`](https://github.com/nevermined-io/sdk-js/pull/246)
Expand Down Expand Up @@ -2429,7 +2625,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- Feature/190 add did to sec markets [`#191`](https://github.com/nevermined-io/sdk-js/pull/191)
- Adding utility methods for getting nft token uri [`#189`](https://github.com/nevermined-io/sdk-js/pull/189)
- Lint ... [`#187`](https://github.com/nevermined-io/sdk-js/pull/187)
- Removing not used parameter [`#186`](https://github.com/nevermined-io/sdk-js/pull/186)
- Removing not used parameter [`#186`](https://github.com/nevermined-io/sdk-js/pull/186)
- [wip] Create agreement+pay in one transaction [`#183`](https://github.com/nevermined-io/sdk-js/pull/183)
- Adapting to contracts `v1.3.3` [`#177`](https://github.com/nevermined-io/sdk-js/pull/177)
- Correct typo in route [`#184`](https://github.com/nevermined-io/sdk-js/pull/184)
Expand Down
7 changes: 0 additions & 7 deletions aave_integration/.mocharc.json

This file was deleted.

21 changes: 0 additions & 21 deletions aave_integration/config.ts

This file was deleted.

Loading

0 comments on commit 948e307

Please sign in to comment.