fyziktom / VirtualEconomyFramework

Framework for economy applications
https://veframework.com/
MIT License
24 stars 7 forks source link

130 separate ipfs drivers #150

Closed fyziktom closed 1 year ago

fyziktom commented 1 year ago

First level of separation of IPFS from the VEDriversLite to separated package VEDriversLite.StorageDriver.

Storage Driver

The driver contains [IStorageDriver] Interface which defines common functions of all kinds of storages such as:

Only IPFS and basic FileSystem drivers are available now. Other will be added later. Thats why the Issue #130 will be still open even after this merge request will be processed.

If you want to use this driver, you can create the instance of the StorageHandler or use the one in VEDLDataContext and call common functions such as AddDriver or some specific such as Write File to IPFS, etc.

There is not to many common functions. the main point of this issue was separation of the IPFS driver out of the NFTHelpers. Thats why we should specify more what functions should be added. For sure we need to add functions like: AddFile, GetFile, RemoveFile, etc.

The examples you can find in the TestVEDriversLite project. How to upload file to IPFS, How to get file from IPFS

Here is the example of use in VEBlazor component library

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 104 Code Smells

0.1% 0.1% Coverage
14.3% 14.3% Duplication