Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.
Merged
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
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@ 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).

#### [v1.7.3](https://github.com/nevermined-io/components-catalog/compare/v1.7.2...v1.7.3)

> 30 June 2023

- Feature/support auth message user profile [`#309`](https://github.com/nevermined-io/components-catalog/pull/309)
- Adding v1.7.0 Changelog updates [`43bf6b8`](https://github.com/nevermined-io/components-catalog/commit/43bf6b83da634421a6477b1820810c558e77e16c)
- add sign message to user profile [`6bbdbaf`](https://github.com/nevermined-io/components-catalog/commit/6bbdbafa2e6134c4e56eaf13133c40d797a1a4cc)

#### [v1.7.2](https://github.com/nevermined-io/components-catalog/compare/v1.7.1...v1.7.2)

> 29 June 2023

- feat: added ability to add a message when asking the user to sign [`#308`](https://github.com/nevermined-io/components-catalog/pull/308)
- fix: documentation [`87b4993`](https://github.com/nevermined-io/components-catalog/commit/87b4993dbb7d33d247803ea3fb558deefdc10b7d)
- fix: dependencies [`565c661`](https://github.com/nevermined-io/components-catalog/commit/565c661c86d276ee2a31bea026359261d1b8a91b)

#### [v1.7.1](https://github.com/nevermined-io/components-catalog/compare/v1.7.0...v1.7.1)

> 22 June 2023

- feat: update sdk to version 1.5.2 [`#307`](https://github.com/nevermined-io/components-catalog/pull/307)

#### [v1.7.0](https://github.com/nevermined-io/components-catalog/compare/v1.7.0-rc1...v1.7.0)

> 13 June 2023
Expand Down
6 changes: 3 additions & 3 deletions catalog/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@nevermined-io/catalog",
"version": "1.7.3",
"version": "1.8.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"dependencies": {
"@nevermined-io/sdk": "^1.5.3",
"@nevermined-io/sdk-dtp": "^0.5.1",
"@nevermined-io/sdk": "^1.5.4",
"@nevermined-io/sdk-dtp": "^0.5.2",
"@types/jsonwebtoken": "^8.5.8",
"axios": "^0.27.2",
"axios-retry": "^3.3.1",
Expand Down
12 changes: 4 additions & 8 deletions catalog/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,12 @@ import axiosRetry from 'axios-retry'
export const isEmptyObject = (i: any) => !i || Object.keys(i).length < 1

/**
* Returns current account registered in SDK
* Returns account object by passing an account address
* @param sdk Instance of SDK object
* @param accountAddress Account address
*/
export const getCurrentAccount = async (sdk: Nevermined, index = 0) => {
let accounts: Account[] = []
if (sdk.accounts) {
accounts = await sdk.accounts.list()
}

return accounts[index]
export const getAccountObject = async (sdk: Nevermined, accountAddress: string) => {
return sdk.accounts.getAccount(accountAddress)
}

type Template = 'accessTemplate' | 'nft721AccessTemplate' | 'nftAccessTemplate' | 'nftSalesTemplate'
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
]
},
"dependencies": {
"@nevermined-io/sdk": "^1.5.3",
"@nevermined-io/sdk-dtp": "^0.5.1",
"@nevermined-io/sdk": "^1.5.4",
"@nevermined-io/sdk-dtp": "^0.5.2",
"@types/jsonwebtoken": "^8.5.8",
"@wagmi/core": "^0.8.15",
"axios": "^0.27.2",
Expand Down
2 changes: 1 addition & 1 deletion providers/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nevermined-io/providers",
"private": false,
"version": "1.7.3",
"version": "1.8.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"dependencies": {
Expand Down