open-index/open-npm huggingface dataset:
npm package: @superdao/os
Description: Package consists of following features: - `artifacts/` folder with `json` of contracts that Superdao team develops  - `typechain-types/` folder with TypeScript typing classes of contracts in the Superdao OS project.
Latest version: 0.0.0-beta.a3bc67a5

# @superdao/os
Package consists of following features:
- `artifacts/` folder with `json` of contracts that Superdao team develops 
- `typechain-types/` folder with TypeScript typing classes of contracts in the Superdao OS project. 

# Install 
```bash
npm install --dev @superdao/os
```

# Use
```typescript
import { DAOConstructor } from "@superdao/os/dist/typechain-types";
import DAOConstructorArtifacts from "@superdao/os/dist/contracts/templates/DAOConstructor.sol/DAOConstructor.json";
```

## The Full Example
Typescript file (`index.ts`) example is below:
```typescript
import { DAOConstructor } from "@superdao/os/dist/typechain-types";
import { ethers } from "ethers";
import DAOConstructorArtifacts from "@superdao/os/dist/contracts/templates/DAOConstructor.sol/DAOConstructor.json";

const RPC = "rpc url here";
const DAOConstructorAddress = "address here";


async function main() {
    const provider = new ethers.providers.JsonRpcProvider(RPC);
    const DAOConstructor = new ethers.Contract(DAOConstructorAddress, DAOConstructorArtifacts.abi, provider) as DAOConstructor;

    const owner = await DAOConstructor.owner();
    console.log(owner);
}

main()
    .then(() => process.exit(0))
    .catch((error) => {
        console.error(error);
        process.exit(1);
    });
```

To run merely use
```bash
ts-node index.ts 
```

### Dependencies of The Full Example
```
"@types/node": "^18.0.0",
"typescript": "^4.7.4",
"@superdao/os": "^0.0.1",
"ethers": "^5.6.9",
"ts-node": "^10.8.1"
```

# Licence
todo
npm package: @superdao/os-hello-world
Description: // TODO add GitLab CI badge
Latest version: 1.1.16

# superdao-os

// TODO add GitLab CI badge

# Testnet Deployment Guide

Install project dependencies:
```bash
yarn
```

Deploy to Polygon Mumbai (testnet):
```bash
yarn deploy:testnet
```

Verify deployment:
```bash
yarn hardhat --network testnet etherscan-verify
```

# Local Deployment Guide

## Pre-requisites

- Clone this repository

- Install project dependencies
```bash
yarn
```


- Generate typings
```bash
yarn typechain
```

- Remove previous deployments (if neccessary)
```bash
rm -rf deployments
```

## Deploy on local network


- Run local node
```bash
yarn hardhat node
```


## Add local network to Metamask
- Just add a new network and set `http://localhost:8545` as RPC URL


## FAQ

- I didn't modify anything though I get `VM Exception while processing transaction: revert Initializable: contract is already initialized` (or similar) when attempting to deploy contracts

Restart ganache-cli. Most likely already deployed and initialized contracts are begin re-initialized.



- Where do I find contract addresses? 

All deployment data stored to `deploy/deployments/loalhost` at your $cwd.
npm package: @superdao/os-rm-me-pls
Description: Package consists of `artifacts/` folder with `json` of contracts that Superdao team develops  and `typechain-types/` with TypeScript typing classes of all **abi** files in the project.
Latest version: 0.0.0-beta.2df1c901

# @superdao/os
Package consists of `artifacts/` folder with `json` of contracts that Superdao team develops 
and `typechain-types/` with TypeScript typing classes of all **abi** files in the project. 

# Install 
```bash
npm install --dev @superdao/os
```

# Use
```typescript
import { ERC721Properties } from "@superdao/os/typechain-types";
```

# Licence
todo
npm package: @superdata/basic-data-service
Description: 前端基础数据服务。<br /> 用于对接基础模块的数据。<br /> 提供用户认证、角色权限、功能模块、字典、系统配置、埋点日志、消息管理等基础数据服务支持。<br /> 支持下载数据保存到不同数据源（localStorage、indexedDB、redux、mobx）的策略。<br /> 该服务仅依赖外部接口、数据管理器，不依赖任何UI组件库。<br />
Latest version: 0.2.3

前端基础数据服务。<br />
用于对接基础模块的数据。<br />
提供用户认证、角色权限、功能模块、字典、系统配置、埋点日志、消息管理等基础数据服务支持。<br />
支持下载数据保存到不同数据源（localStorage、indexedDB、redux、mobx）的策略。<br />
该服务仅依赖外部接口、数据管理器，不依赖任何UI组件库。<br />

## 可用脚本

在项目中，你可以使用下列脚本：

### `yarn start`

启动HTTP应用服务器。该服务器目前用于反向代理接口，测试数据<br />
打开 [http://localhost:3000](http://localhost:3000) 可以访问接口。

### `yarn test`
在node环境中模拟浏览器环境，运行测试脚本。需要接口的测试用例需要确保HTTP应用服务器已经打开，才可通过。

### `yarn build`
构建项目，打包成可以引用的压缩包。

## Learn More

TODO
npm package: @superdata/business-components
Description: This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
Latest version: 0.1.25

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br />
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `yarn eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).
npm package: @superdata/business-data-service
Description: 前端基础数据服务。<br /> 用于对接基础模块的数据。<br /> 提供用户认证、角色权限、功能模块、字典、系统配置、埋点日志、消息管理等基础数据服务支持。<br /> 支持下载数据保存到不同数据源（localStorage、indexedDB、redux、mobx）的策略。<br /> 该服务仅依赖外部接口、数据管理器，不依赖任何UI组件库。<br />
Latest version: 0.0.11

前端基础数据服务。<br />
用于对接基础模块的数据。<br />
提供用户认证、角色权限、功能模块、字典、系统配置、埋点日志、消息管理等基础数据服务支持。<br />
支持下载数据保存到不同数据源（localStorage、indexedDB、redux、mobx）的策略。<br />
该服务仅依赖外部接口、数据管理器，不依赖任何UI组件库。<br />

## 可用脚本

在项目中，你可以使用下列脚本：

### `yarn start`

启动HTTP应用服务器。该服务器目前用于反向代理接口，测试数据<br />
打开 [http://localhost:3000](http://localhost:3000) 可以访问接口。

### `yarn test`
在node环境中模拟浏览器环境，运行测试脚本。需要接口的测试用例需要确保HTTP应用服务器已经打开，才可通过。

### `yarn build`
构建项目，打包成可以引用的压缩包。

## Learn More

TODO
npm package: @superdata/micro-index-tools
Description: 首页工厂化组件库<br /> 用于首页展示<br /> 提供页头通知栏，快捷入口，我的关注，常用下载，外部链接，工作流指令/通知/线索相关，布控告警/预警订阅，日历日程，系统反馈，订阅推送，我的待办，重要警情等板块<br /> 组件支持布局自适应<br /> 该服务仅支持UI布局，不支持外部接口数据<br />
Latest version: 0.0.10

首页工厂化组件库<br />
用于首页展示<br />
提供页头通知栏，快捷入口，我的关注，常用下载，外部链接，工作流指令/通知/线索相关，布控告警/预警订阅，日历日程，系统反馈，订阅推送，我的待办，重要警情等板块<br />
组件支持布局自适应<br />
该服务仅支持UI布局，不支持外部接口数据<br />

## 可用脚本

在项目中，你可以使用下列脚本：

### `yarn start`

启动HTTP应用服务器。该服务器目前用于反向代理接口，测试数据<br />
打开 [http://localhost:6001](http://localhost:6001) 可以访问接口。

### `yarn test`
在node环境中模拟浏览器环境，运行测试脚本。需要接口的测试用例需要确保HTTP应用服务器已经打开，才可通过。

### `yarn build`
构建项目，打包成可以引用的压缩包。
npm package: @superdata/micro-login-tools
Description: 前端基础数据服务。<br /> 用于对接基础模块的数据。<br /> 提供用户认证、角色权限、功能模块、字典、系统配置、埋点日志、消息管理等基础数据服务支持。<br /> 支持下载数据保存到不同数据源（localStorage、indexedDB、redux、mobx）的策略。<br /> 该服务仅依赖外部接口、数据管理器，不依赖任何UI组件库。<br />
Latest version: 0.1.2

前端基础数据服务。<br />
用于对接基础模块的数据。<br />
提供用户认证、角色权限、功能模块、字典、系统配置、埋点日志、消息管理等基础数据服务支持。<br />
支持下载数据保存到不同数据源（localStorage、indexedDB、redux、mobx）的策略。<br />
该服务仅依赖外部接口、数据管理器，不依赖任何UI组件库。<br />

## 可用脚本

在项目中，你可以使用下列脚本：

### `yarn start`

启动HTTP应用服务器。该服务器目前用于反向代理接口，测试数据<br />
打开 [http://localhost:3000](http://localhost:3000) 可以访问接口。

### `yarn test`
在node环境中模拟浏览器环境，运行测试脚本。需要接口的测试用例需要确保HTTP应用服务器已经打开，才可通过。

### `yarn build`
构建项目，打包成可以引用的压缩包。

## Learn More

TODO
npm package: @superdata/utils
Description: ## Modules ### Image 在web应用中，图片资源可能以几种方式出现： 1. base64 2. uri 3. HTMLImageElement 4. File(Blob) 工具类提供了这几种格式之间相互转化的函数。 #### base642file [done] base64转file
Latest version: 0.0.11

# Utils 工具类

## Modules
### Image
在web应用中，图片资源可能以几种方式出现：
1. base64
2. uri
3. HTMLImageElement
4. File(Blob)
工具类提供了这几种格式之间相互转化的函数。
#### base642file [done]
base64转file

#### base642image [todo]

#### uri2base64 [done]
uri转base64

#### uri2image [done]

#### image2base64 [done]
HTMLImageElement转base64

#### image2file [todo]

#### file2base64 [done]
File转base64

#### file2image [todo]