turing-wallet-provider 1.2.3 → 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 +6 -5
- 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] //目前参数里只能放一个对象,有批量发送需求再扩展
|
|
@@ -234,7 +234,8 @@ const params = [{
|
|
|
234
234
|
flag:"FT_TRANSFER",
|
|
235
235
|
ft_contract_address:"",
|
|
236
236
|
ft_amount:0.1,
|
|
237
|
-
|
|
237
|
+
tbc_amount?: 1, //同时转ft和tbc时候可提供参数
|
|
238
|
+
address:"",
|
|
238
239
|
}];
|
|
239
240
|
const { txid } = await wallet.sendTransaction(params);
|
|
240
241
|
```
|
|
@@ -249,7 +250,7 @@ const params = [{
|
|
|
249
250
|
serverProvider_tag?:"",
|
|
250
251
|
serviceFeeRate?:25, // poolNFT_version为2时此参数有效,默认为25
|
|
251
252
|
with_lock?:false //默认值为false,为true则创建带哈希锁的poolNFT
|
|
252
|
-
lpPlan?:
|
|
253
|
+
lpPlan?:1 //默认值为1
|
|
253
254
|
}];
|
|
254
255
|
const { txid } = await wallet.sendTransaction(params);
|
|
255
256
|
```
|
|
@@ -303,7 +304,7 @@ const params = [{
|
|
|
303
304
|
address:"",
|
|
304
305
|
tbc_amount:10,
|
|
305
306
|
poolNFT_version?:2
|
|
306
|
-
lpPlan?:
|
|
307
|
+
lpPlan?:1 //默认值为1
|
|
307
308
|
}];
|
|
308
309
|
const { txid } = await wallet.sendTransaction(params);
|
|
309
310
|
```
|
|
@@ -317,7 +318,7 @@ const params = [{
|
|
|
317
318
|
address:"",
|
|
318
319
|
ft_amount:10,
|
|
319
320
|
poolNFT_version?:2
|
|
320
|
-
lpPlan?:
|
|
321
|
+
lpPlan?:1 //默认值为1
|
|
321
322
|
}];
|
|
322
323
|
const { txid } = await wallet.sendTransaction(params);
|
|
323
324
|
```
|