turing-wallet-provider 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -314,12 +314,14 @@ interface RequestParam {
314
314
  poolNFT_version?: 1 | 2; // 强制为 2,若提供为别的值转为 2
315
315
  serviceFeeRate?: number;
316
316
  serverProvider_tag?: string;
317
- lpPlan?: 1 | 2; // 默认 1
317
+ lpPlan?: 1 | 2 | 3 | 4 | 5; // 默认 1
318
318
  domain?: string;
319
319
  isLockTime?: boolean;
320
320
  lockTime?: number | string; // 锁仓至指定区块高度(POOLNFT 相关),或冻结至指定 unix 时间戳(STABLECOIN_FREEZE),大数请使用 string
321
321
  broadcastEnabled?: boolean;
322
322
  mint_message?: string; // 铸造/增发跨链信息(STABLECOIN_CREATE / STABLECOIN_MINT 使用)
323
+ utxo_txid?: string; // 目标 UTXO 的交易 ID(STABLECOIN_FREEZE / STABLECOIN_UNFREEZE 使用)
324
+ utxo_index?: number; // 目标 UTXO 的输出索引(STABLECOIN_FREEZE / STABLECOIN_UNFREEZE 使用)
323
325
  }
324
326
 
325
327
  const params = [param: RequestParam];
@@ -479,12 +481,12 @@ const params = [
479
481
  ft_contract_address: "", // 必填,FT 合约地址
480
482
  serverProvider_tag: "", // 必填,服务提供商标签
481
483
  poolNFT_version: 2, // 可选,强制为 2
482
- serviceFeeRate: 25, // 可选,0-100 整数,默认 25
484
+ serviceFeeRate: 25, // 可选,正整数,默认 25
483
485
  with_lock: false, // 可选,默认 false;为 true 时创建带哈希锁的池子
484
486
  pubKeyLock: ["pubkey1", "pubkey2"], // with_lock 为 true 时必填
485
487
  lpCostAddress: "", // with_lock 为 true 时必填,扣除流动性添加成本的地址
486
488
  lpCostAmount: 0, // with_lock 为 true 时必填,扣除流动性添加成本的 TBC 数量
487
- lpPlan: 1, // 可选,1 或 2,默认 1
489
+ lpPlan: 1, // 可选,1-5,默认 1
488
490
  isLockTime: false, // 可选,默认 false
489
491
  broadcastEnabled: true, // 可选,默认 true
490
492
  domain: "", // 可选
@@ -598,7 +600,7 @@ const params = [
598
600
  address: "", // 必填,接收地址
599
601
  tbc_amount: 0, // 必填,用于交换的 TBC 数量
600
602
  poolNFT_version: 2, // 可选,强制为 2
601
- lpPlan: 1, // 可选,1 或 2,默认 1
603
+ lpPlan: 1, // 可选,1-5,默认 1
602
604
  broadcastEnabled: true, // 可选,默认 true
603
605
  domain: "", // 可选
604
606
  },
@@ -621,7 +623,7 @@ const params = [
621
623
  address: "", // 必填,接收地址
622
624
  ft_amount: 0, // 必填,用于交换的 FT 数量
623
625
  poolNFT_version: 2, // 可选,强制为 2
624
- lpPlan: 1, // 可选,1 或 2,默认 1
626
+ lpPlan: 1, // 可选,1-5,默认 1
625
627
  broadcastEnabled: true, // 可选,默认 true
626
628
  domain: "", // 可选
627
629
  },
@@ -750,6 +752,8 @@ const params = [
750
752
  flag: "STABLECOIN_FREEZE", // 必填
751
753
  ft_contract_address: "", // 必填,稳定币合约交易 ID(STABLECOIN_CREATE 返回的第一个 txid)
752
754
  address: "", // 必填,被冻结的目标地址
755
+ utxo_txid: "", // 必填,目标稳定币 UTXO 的交易 ID
756
+ utxo_index: 0, // 必填,目标稳定币 UTXO 的输出索引
753
757
  lockTime: 1774410989, // 必填,冻结至指定 unix 时间戳
754
758
  broadcastEnabled: true, // 可选,默认 true
755
759
  domain: "", // 可选
@@ -771,6 +775,8 @@ const params = [
771
775
  flag: "STABLECOIN_UNFREEZE", // 必填
772
776
  ft_contract_address: "", // 必填,稳定币合约交易 ID(STABLECOIN_CREATE 返回的第一个 txid)
773
777
  address: "", // 必填,被解冻的目标地址
778
+ utxo_txid: "", // 必填,目标稳定币 UTXO 的交易 ID
779
+ utxo_index: 0, // 必填,目标稳定币 UTXO 的输出索引
774
780
  broadcastEnabled: true, // 可选,默认 true
775
781
  domain: "", // 可选
776
782
  },
@@ -62,12 +62,14 @@ export type SendTransaction = {
62
62
  poolNFT_version?: 1 | 2;
63
63
  serviceFeeRate?: number;
64
64
  serviceProvider_flag?: string;
65
- lpPlan?: 1 | 2;
65
+ lpPlan?: 1 | 2 | 3 | 4 | 5;
66
66
  domain?: string;
67
67
  isLockTime?: boolean;
68
68
  lockTime?: number | string;
69
69
  broadcastEnabled?: boolean;
70
70
  mint_message?: string;
71
+ utxo_txid?: string;
72
+ utxo_index?: number;
71
73
  };
72
74
 
73
75
  export type SendTransactionResponse = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turing-wallet-provider",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [