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

feature/ipfs-lib-migration #15

Closed
wants to merge 4 commits into from

Conversation

Sorizen
Copy link
Collaborator

@Sorizen Sorizen commented Aug 15, 2023

No description provided.

Copy link
Contributor

@lukachi lukachi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after yarn apply-version you should run yarn build -> to build web-types for ui and toasts libraries

CHANGELOG.md Outdated
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.0-rc.19] - 2023-08-15
### Changed
- `@tokene/toolkit` - `IpfsUtil` class now is using `kubo-rpc-client`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replaced ipfs-http-client by kubo-rpc-client

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


import { toolkitConfig } from '@/globals'

const PREFIX = 'ipfs://'

export class IpfsUtil<T> {
private _rawData?: T
private _path?: string
private _paths = [] as string[]
private _cid?: string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id add and addAll returns path, should we use this.path instead of cid?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we can rename getters because we return a cid paths, but in class we're using cids, not cid paths.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add comment

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@Sorizen Sorizen changed the title feature/ipfs util dependencies update feature/ipfs-lib-migration Aug 17, 2023
@Sorizen Sorizen closed this Aug 17, 2023
@Sorizen Sorizen deleted the feature/dependencies-editing-in-ipfs-util branch August 17, 2023 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants