turing-wallet-provider 1.2.4 → 1.2.5
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 +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -168,7 +168,7 @@ interface RequestParam = {
|
|
|
168
168
|
poolNFT_version?: number; // 1或2 不提供默认为2
|
|
169
169
|
serviceFeeRate?: number; // 0-100 poolNFT_version为2有效 不提供默认为25
|
|
170
170
|
serverProvider_tag?:string; //poolNFT_version为2时为必需字段 poolNFT_version为1无效
|
|
171
|
-
lpPlan?:number //1或2 不提供默认为
|
|
171
|
+
lpPlan?:number //1或2 不提供默认为1 lp手续费方案, 方案1: LP 0.25% swap服务商 0.09% 协议0.01%; 方案2: LP 0.05% swap服务商 0.29% 协议0.01%
|
|
172
172
|
};
|
|
173
173
|
|
|
174
174
|
const params = [param:RequestParam] //目前参数里只能放一个对象,有批量发送需求再扩展
|
|
@@ -250,7 +250,7 @@ const params = [{
|
|
|
250
250
|
serverProvider_tag?:"",
|
|
251
251
|
serviceFeeRate?:25, // poolNFT_version为2时此参数有效,默认为25
|
|
252
252
|
with_lock?:false //默认值为false,为true则创建带哈希锁的poolNFT
|
|
253
|
-
lpPlan?:
|
|
253
|
+
lpPlan?:1 //默认值为1
|
|
254
254
|
}];
|
|
255
255
|
const { txid } = await wallet.sendTransaction(params);
|
|
256
256
|
```
|
|
@@ -304,7 +304,7 @@ const params = [{
|
|
|
304
304
|
address:"",
|
|
305
305
|
tbc_amount:10,
|
|
306
306
|
poolNFT_version?:2
|
|
307
|
-
lpPlan?:
|
|
307
|
+
lpPlan?:1 //默认值为1
|
|
308
308
|
}];
|
|
309
309
|
const { txid } = await wallet.sendTransaction(params);
|
|
310
310
|
```
|
|
@@ -318,7 +318,7 @@ const params = [{
|
|
|
318
318
|
address:"",
|
|
319
319
|
ft_amount:10,
|
|
320
320
|
poolNFT_version?:2
|
|
321
|
-
lpPlan?:
|
|
321
|
+
lpPlan?:1 //默认值为1
|
|
322
322
|
}];
|
|
323
323
|
const { txid } = await wallet.sendTransaction(params);
|
|
324
324
|
```
|