Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@33cn/chain33-rpc-api

Package Overview
Dependencies
Maintainers
9
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@33cn/chain33-rpc-api - npm Package Compare versions

Comparing version 1.5.18 to 1.5.19

dist/contracts/c2cCreator.d.ts

1

dist/HttpProvider.js

@@ -18,2 +18,3 @@ "use strict";

var json_bigint_1 = __importDefault(require("json-bigint"));
var fetch = require('node-fetch');
var HttpProvider = /** @class */ (function () {

@@ -20,0 +21,0 @@ function HttpProvider(url, errorHandler) {

71

dist/index.d.ts
import HttpProvider from './HttpProvider';
import { SignParams, CreateRawTransactionParams, TokenTxParams, CreateRawTokenParams, SendToAddressParams, SymbolDailyLimit, UnfreezeContact } from './interfaces';
import { SignParams, CreateRawTransactionParams, TokenTxParams, CreateRawTokenParams, SendToAddressParams, SymbolDailyLimit } from './interfaces';
/**

@@ -120,10 +120,2 @@ * @description 封装chain33 API

/**
* @description 获取地址相关摘要信息
* @param {number} txCount 预发送的交易个数,单个交易发送默认空即可
* @param {number} txSize 预发送交易的大小, 单位Byte, 字节
* @returns {Promise<any>}
* @memberof BtyBaseSdk
*/
getProperFee(txCount: number, txSize: number, url?: string): Promise<any>;
/**
* @description 根据地址获取交易哈希

@@ -377,32 +369,2 @@ * @param {{addr: string, flag: number, count: number, direction: number, height: number, index: number}}

/**
*
* @description 查询token的创建和增发,燃烧历史
* @param {string} symbol token标记符,最大长度是16个字符,且必须为大写字符
* @param {string} execer token 或者 user.p.xxx.token
* @param {string} [url='']
* @returns {Promise<any>}
* @memberof BtyBaseSdk
*/
getTokenHistory(symbol: string, execer?: string, url?: string): Promise<any>;
/**
* 增发token
*
* @param {string} symbol token的标记符
* @param {number} amount 增发token的数量, 需要 填写 数目* 1e8
* @param {string} [url='']
* @returns {Promise<any>}
* @memberof BtyBaseSdk
*/
createRawTokenMintTx(symbol: string, amount: number, url?: string): Promise<any>;
/**
* 燃烧token
*
* @param {string} symbol token的标记符
* @param {number} amount 燃烧token的数量, 需要 填写 数目* 1e8
* @param {string} [url='']
* @returns {Promise<any>}
* @memberof BtyBaseSdk
*/
createRawTokenBurnTx(symbol: string, amount: number, url?: string): Promise<any>;
/**
* @description 查询地址对应的买单

@@ -516,3 +478,3 @@ * @param {string} addr 买单持有人

/**
* @description 查询unfreeze合约状态
* @description 查询合约状态
* @param {string} hash 是对应创建合约的交易Hash

@@ -524,3 +486,3 @@ * @param {string} [url='']

/**
* @description 查询unfreeze合约可提币量
* @description 查询合约可提币量
* @param {string} hash 是对应创建合约的交易Hash

@@ -531,28 +493,2 @@ * @param {string} [url='']

searchTreatyWithdraw(hash: string, url?: string): Promise<any>;
/**
* @description 创建定期解冻合约
* @param {UnfreezeContact} contact
* @param {string} [url='']
* @returns {Promise<any>}
* @memberof BtyBaseSdk
*/
createRawUnfreezeCreate(contact: UnfreezeContact, url?: string): Promise<any>;
/**
* @description 受益人提取已解冻的币
* @param {string} unfreezeID
* @param {string} [url='']
* @returns {Promise<any>}
* @memberof BtyBaseSdk
*/
createRawUnfreezeWithdraw(unfreezeID: string, url?: string): Promise<any>;
/**
* @description 终止冻结合约
* @param {string} unfreezeID
* @param {string} [url='']
* @returns {Promise<any>}
* @memberof BtyBaseSdk
*/
createRawUnfreezeTerminate(unfreezeID: string, url?: string): Promise<any>;
listUnfreezeByCreator(address: string, url?: string): Promise<any>;
listUnfreezeByBeneficiary(address: string, url?: string): Promise<any>;
/**pass

@@ -885,3 +821,2 @@ * @description 创建多重签名账户(未签名)

callPromiseAPI(apiName: string, params?: any, url?: string, prefix?: string, method?: string): Promise<any>;
callAPIWithoutHandler(apiName: string, params?: any, url?: string, prefix?: string, method?: string): Promise<any>;
}

@@ -195,7 +195,2 @@ /**

owner: string;
/**
* @description token属性类别, 0 为普通token, 1 可增发和燃烧
* @type {number}
*/
category: number;
}

@@ -219,67 +214,1 @@ export interface SymbolDailyLimit {

}
export interface UnfreezeContact {
/**
* @description 要冻结的资产 eg: bty
* @type {string}
*/
assetSymbol: string;
/**
* @description 要冻结的资产类型 eg: coins token
* @type {string}
*/
assetExec: string;
/**
* @description 指定解冻算法, 有效值 FixAmount LeftProportion
* @type {string}
*/
means: string;
/**
* @description 冻结的资产数量, 单位是 1e-8
* @type {number}
*/
totalCount: number;
/**
* @description 受益人地址
* @type {string}
*/
beneficiary: string;
/**
* @description 开始解冻时间, UTC 秒, 默认为交易被打包时间
* @type {number}
*/
startTime?: number;
/**
* @description 开始解冻时间, UTC 秒, 默认为交易被打包时间
* @type {UnfreezeContactFixAmount}
*/
fixAmount?: UnfreezeContactFixAmount;
/**
* @description 开始解冻时间, UTC 秒, 默认为交易被打包时间
* @type {UnfreezeContactLeftProportion}
*/
leftProportion?: UnfreezeContactLeftProportion;
}
export interface UnfreezeContactFixAmount {
/**
* @description 按指定时间间隔,单位秒。
* @type {number}
*/
period: number;
/**
* @description 解冻指定的资产数量,单位 1e-8个币
* @type {number}
*/
amount: number;
}
export interface UnfreezeContactLeftProportion {
/**
* @description 按指定时间间隔,单位秒。
* @type {number}
*/
period: number;
/**
* @description 固定比例,单位万分之一。
* @type {number}
*/
tenThousandth: number;
}
{
"name": "@33cn/chain33-rpc-api",
"version": "1.5.18",
"version": "1.5.19",
"description": "chain33 rpc 接口封装",

@@ -25,7 +25,9 @@ "main": "dist/index.js",

"devDependencies": {
"@33cn/wallet-base": "^1.0.10",
"@types/lodash": "^4.14.149",
"@types/mocha": "^5.2.5",
"@types/node": "^10.12.17",
"@types/should": "^13.0.0",
"isomorphic-fetch": "^2.2.1",
"mocha": "^5.2.0",
"node-fetch": "^2.6.0",
"ts-node": "^7.0.1",

@@ -32,0 +34,0 @@ "tslint": "^5.11.0",

@@ -46,3 +46,3 @@ {

// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */

@@ -59,2 +59,3 @@

// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
"lib": [ "es2015" ]
},

@@ -61,0 +62,0 @@ "include": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc