turing-wallet-provider 1.4.0 → 1.4.1
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 +0 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -293,13 +293,10 @@ const params = [
|
|
|
293
293
|
{
|
|
294
294
|
flag: "FT_MINT",
|
|
295
295
|
ft_data: "",
|
|
296
|
-
broadcastEnabled?:true,
|
|
297
296
|
domain?: "",
|
|
298
297
|
},
|
|
299
298
|
];
|
|
300
299
|
const { txid } = await wallet.sendTransaction(params);
|
|
301
|
-
//const { txraw } = await wallet.sendTransaction(params);broadcastEnabled为false
|
|
302
|
-
//const { error } = await wallet.sendTransaction(params);构建或广播交易时出现错误
|
|
303
300
|
```
|
|
304
301
|
|
|
305
302
|
### FT_TRANSFER
|
|
@@ -337,13 +334,10 @@ const params = [
|
|
|
337
334
|
lpCostAmount?: 5, //设置添加流动性扣款TBC数量
|
|
338
335
|
lpPlan?: 1, //默认值为1
|
|
339
336
|
isLockTime?: false, //是否具备锁仓功能 默认为false
|
|
340
|
-
broadcastEnabled?:true,
|
|
341
337
|
domain?: "",
|
|
342
338
|
},
|
|
343
339
|
];
|
|
344
340
|
const { txid } = await wallet.sendTransaction(params);
|
|
345
|
-
//const { txraw } = await wallet.sendTransaction(params);broadcastEnabled为false
|
|
346
|
-
//const { error } = await wallet.sendTransaction(params);构建或广播交易时出现错误
|
|
347
341
|
```
|
|
348
342
|
|
|
349
343
|
### POOLNFT_INIT
|
|
@@ -471,7 +465,6 @@ const params = [
|
|
|
471
465
|
nft_contract_address: "",
|
|
472
466
|
poolNFT_version?: 2,
|
|
473
467
|
merge_times?: 10, //1-10次 默认为10次 不足10次会提前终止
|
|
474
|
-
broadcastEnabled?:true,
|
|
475
468
|
domain?: "",
|
|
476
469
|
},
|
|
477
470
|
];
|
|
@@ -489,7 +482,6 @@ const params = [
|
|
|
489
482
|
nft_contract_address: "",
|
|
490
483
|
poolNFT_version?: 2,
|
|
491
484
|
lockTime?: 900000, //用于手动设置解锁参数,设置为可解锁的最大高度。若不带此参数情况下若带有锁仓,会自动设置解锁参数为 (当前区块高度 - 2)
|
|
492
|
-
broadcastEnabled?:true,
|
|
493
485
|
domain?: "",
|
|
494
486
|
},
|
|
495
487
|
];
|