open-index/open-npm huggingface dataset:
npm package: @jccdex/cert-lib
Description: cert lib
Author: JCCDex
Latest version: 1.0.3

# cert-lib

基于井通链的存证验真开发包

## Usage

```javascript
import JccCert from "@jccdex/cert-lib";

const rpcNodes = await JccCert.fetchNodes();
const jccCert = new JccCert({
  senderSecret: "Your Secret",
  receiverAddress: "Jingtum Address",
  nodes: rpcNodes,
  amount: "Amount Value",
  token: "Token Name",
  chain: "Chain Name"
});

// hash上链存证
const hashCert = await jccCert.saveHashCert("a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3");
console.log("saved hash cert: ", hashCert);

// buffer上链存证
const bufferCert = await jccCert.saveBufferCert(Buffer.from("test", "utf-8"));
console.log("saved buffer cert: ", bufferCert);

// 校验存证hash
const isValid = await jccCert.checkCert(bufferCert.cid, bufferCert.txHash);
console.log("cert is valid: ", isValid);
```
npm package: @jccdex/common
Description: common util
Author: JCCDex
Latest version: 1.0.0

# common

common util

[![build](https://github.com/GinMu/common/actions/workflows/node.js.yml/badge.svg)](https://github.com/GinMu/common/actions/workflows/node.js.yml)
[![Coverage Status](https://coveralls.io/repos/github/GinMu/common/badge.svg?branch=main)](https://coveralls.io/github/GinMu/common?branch=main)

## Install

```javascript
npm install @jccdex/common
```
npm package: @jccdex/ethereum-contract
Description: ethereum contract js sdk
Author: JCCDex
Latest version: 0.1.1

# ETHEREUM-CONTRACT

## 初始化

```javascript
import { NFTDao } from "@jccdex/ethereum-contract";

const options = {
  account: ethereum.selectedAddress,
  chainId: "以太坊chain id",
  web3: this.web3,
  nftDaoContract: "以太坊nft dao合约地址",
  multicallAddress: "以太坊multicall合约地址"
};
const nftDao = new NFTDao(options);

const nft = "NFT合约地址";
const id = "NFT id";
const jingtum = "井通地址";
const fee = "手续费，默认为0";

// 充币，从以太坊到井通

// 充币前需检查nft是否授权给nft dao合约，调用erc-721.ts isApprovedForAll方法
// 如果未授权，调用setApprovalForAll方法
const result = await nftDao.deposit(nft, id, jingtum, fee);
```
npm package: @jccdex/jingtum-lib
Description: jingtum lib
Author: JCCDex
Latest version: 1.0.2

# jcc-jingtum-lib

## Installtion

```shell
npm install @jccdex/jingtum-lib
```

## Example

```javascript
import { Transaction } from "@jccdex/jingtum-lib";

// create new tx object by chainid, nodes, retry times
let tx = new Transaction("jingtum", ["https://xxx.xxx.xxx.xxx"], 0);

// set token issuer
const hash1 = await tx.setTokenIssue(
  issuerAdminAddress,
  issuerAdminSecret,
  publisherAddress,
  amount,
  nftTokenName,
  transferSetFlag /**  default set 0, other means owner can not transfer to other */
);

// publisher mint 721 token
const hash2 = await tx.publish721(publisherAddress, publisherSecret, reciverAddress, tokenName, tokenId, tokenInfos);
// tokenInfos is json array like [{type: "uri", data: "https://xxx"}, {type: "color", data: "red"}]

// transfer 721
const hash3 = await tx.transfer721(senderAddress, senderSecret, reciverAddress, tokenId);

// delete 721
const hash4 = await tx.delete721(publisherAddress, publisherSecret, tokenId);

// request token info
const info = await tx.requestTokenInfo("https://xxx.xxx", tokenId);

// request token in account
const result = await tx.requestAccountToken("https://xxx.xxx", address);
```
npm package: @jccdex/multi-sign-protocol
Description: multi sign protocol
Author: JCCDex
Latest version: 0.3.2

# multi-sign-protocol

multi sign protocol

[![build](https://github.com/GinMu/multi-sign-protocol/actions/workflows/node.js.yml/badge.svg)](https://github.com/GinMu/multi-sign-protocol/actions/workflows/node.js.yml)
[![Coverage Status](https://coveralls.io/repos/github/GinMu/multi-sign-protocol/badge.svg?branch=main)](https://coveralls.io/github/GinMu/multi-sign-protocol?branch=main)


## Install

```javascript
npm install @jccdex/multi-sign-protocol
```