@sec-block/secjs-randomdatagenerator

1.0.50 • Public • Published


SecRandomDataGenerator

JavaScript Style Guide

Definition: Modulation of generating and of acquiring random transaction data in both transactions- and token-chain.

Kind: global class

Install

npm install @sec-block/secjs-randomdatagenerator 

generateTokenBlock

A utility function of generating random token block in SEC transaction-chian. It is aviable to generate any involved data seperately.

Example

let randomGenerate = require('@sec-block/secjs-randomdatagenerator')
randomGenerate.generateTokenBlock()

generateTransactionBlock

A utility function of generating random transaction block for SEC transaction-chain. It is aviable to acquire any involved data seperately.

Example

let randomGenerate = require('@sec-block/secjs-randomdatagenerator')
randomGenerate.generateTransactionBlock()

generateTokenTransaction

A utility function of generating random token transaction data in SEC token-chian. It is aviable to generate any involved data seperately.

Example

let randomGenerate = require('@sec-block/secjs-randomdatagenerator')
randomGenerate.generateTokenTransaction()

generateTxTransaction

A utility function of generating random transaction data for SEC token-chain. It is aviable to acquire any involved data seperately.

Example

let randomGenerate = require('@sec-block/secjs-randomdatagenerator')
randomGenerate.generateTxTransaction()

SEC工具库-中文简介

  1. 模拟系统级智能合约产生的数据

目的:系统级智能合约拉出交易记录数据,该智能合约会为此次交易信息生成区块,并且开始对买家的分享行为进行监督,属于SEC基础库。主要的函数及其用途:

  1. 定义方法generateTokenBlock() 随机生成SEC-Token链所需要的交易信息

  2. 定义方法generateTransactionBlock() 随机生成SEC-交易链所需要的交易信息

  3. 定义方法generateTokenTransaction() 可获取SEC-Token链所需要的交易信息

  4. 定义方法generateTxTransaction() 可获取SEC-交易链所需要的交易信息

Package Sidebar

Install

npm i @sec-block/secjs-randomdatagenerator

Weekly Downloads

11

Version

1.0.50

License

ISC

Unpacked Size

12.3 MB

Total Files

7

Last publish

Collaborators

  • abysmli
  • bi7012xiao
  • feiminhao
  • g277321
  • tornadoming
  • xinnnnn
  • zuweihan1992