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
7
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.14 to 1.5.15

30

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

@@ -506,3 +506,3 @@ * @description 封装chain33 API

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

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

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

@@ -521,2 +521,26 @@ * @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>;
/**pass

@@ -523,0 +547,0 @@ * @description 创建多重签名账户(未签名)

@@ -218,1 +218,67 @@ /**

}
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;
}

2

package.json
{
"name": "@33cn/chain33-rpc-api",
"version": "1.5.14",
"version": "1.5.15",
"description": "chain33 rpc 接口封装",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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