@33cn/chain33-rpc-api
Advanced tools
Comparing version 1.5.14 to 1.5.15
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; | ||
} |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155799
3151