turing-wallet-provider 1.3.3 → 1.3.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.
Files changed (2) hide show
  1. package/README.md +56 -46
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -233,7 +233,7 @@ const params = [
233
233
  flag: "P2PKH",
234
234
  satoshis: 1000,
235
235
  address: "",
236
- domain: "",
236
+ domain?: "",
237
237
  },
238
238
  ];
239
239
  const { txid } = await wallet.sendTransaction(params);
@@ -246,7 +246,7 @@ const params = [
246
246
  {
247
247
  flag: "COLLECTION_CREATE",
248
248
  collection_data: "",
249
- domain: "",
249
+ domain?: "",
250
250
  },
251
251
  ];
252
252
  const { txid } = await wallet.sendTransaction(params);
@@ -260,7 +260,7 @@ const params = [
260
260
  flag: "NFT_CREATE",
261
261
  nft_data: "",
262
262
  collection_id: "",
263
- domain: "",
263
+ domain?: "",
264
264
  },
265
265
  ];
266
266
  const { txid } = await wallet.sendTransaction(params);
@@ -274,7 +274,7 @@ const params = [
274
274
  flag: "NFT_TRANSFER",
275
275
  nft_contract_address: "",
276
276
  address: "",
277
- domain: "",
277
+ domain?: "",
278
278
  },
279
279
  ];
280
280
  const { txid } = await wallet.sendTransaction(params);
@@ -287,7 +287,7 @@ const params = [
287
287
  {
288
288
  flag: "FT_MINT",
289
289
  ft_data: "",
290
- domain: "",
290
+ domain?: "",
291
291
  },
292
292
  ];
293
293
  const { txid } = await wallet.sendTransaction(params);
@@ -301,9 +301,9 @@ const params = [
301
301
  flag: "FT_TRANSFER",
302
302
  ft_contract_address: "",
303
303
  ft_amount: 0.1,
304
- tbc_amount: 1, //同时转ft和tbc时候可提供参数
304
+ tbc_amount?: 1, //同时转ft和tbc时候可提供参数
305
305
  address: "",
306
- domain: "",
306
+ domain?: "",
307
307
  },
308
308
  ];
309
309
  const { txid } = await wallet.sendTransaction(params);
@@ -312,20 +312,22 @@ const { txid } = await wallet.sendTransaction(params);
312
312
  ### POOLNFT_MINT
313
313
 
314
314
  ```ts
315
- const params = [{
316
- flag:"POOLNFT_MINT",
317
- ft_contract_address:"",
318
- poolNFT_version?: 2,
319
- serverProvider_tag?:"",
320
- serviceFeeRate?:25, // poolNFT_version为2时此参数有效,默认为25
321
- with_lock?:false //默认值为false,为true则创建带哈希锁的poolNFT
322
- pubKeyLock?:["pubkey1","pubkey2"];
323
- lpCostAddress?:"",//设置添加流动性扣款地址
324
- lpCostAmount?:5,//设置添加流动性扣款TBC数量
325
- lpPlan?:1 //默认值为1
326
- isLockTime: false //是否具备锁仓功能 默认为false
315
+ const params = [
316
+ {
317
+ flag: "POOLNFT_MINT",
318
+ ft_contract_address: "",
319
+ poolNFT_version: 2,
320
+ serverProvider_tag: "",
321
+ serviceFeeRate: 25, // poolNFT_version为2时此参数有效,默认为25
322
+ with_lock: false, //默认值为false,为true则创建带哈希锁的poolNFT
323
+ pubKeyLock: ["pubkey1", "pubkey2"],
324
+ lpCostAddress: "", //设置添加流动性扣款地址
325
+ lpCostAmount: 5, //设置添加流动性扣款TBC数量
326
+ lpPlan: 1, //默认值为1
327
+ isLockTime: false, //是否具备锁仓功能 默认为false
327
328
  domain?: "",
328
- }];
329
+ },
330
+ ];
329
331
  const { txid } = await wallet.sendTransaction(params);
330
332
  ```
331
333
 
@@ -363,29 +365,33 @@ const { txid } = await wallet.sendTransaction(params);
363
365
  ### POOLNFT_LP_CONSUME
364
366
 
365
367
  ```ts
366
- const params = [{
367
- flag:"POOLNFT_LP_CONSUME",
368
- nft_contract_address:"",
369
- address:"",
370
- ft_amount:100,
371
- poolNFT_version?: 2,
368
+ const params = [
369
+ {
370
+ flag: "POOLNFT_LP_CONSUME",
371
+ nft_contract_address: "",
372
+ address: "",
373
+ ft_amount: 100,
374
+ poolNFT_version: 2,
372
375
  domain?: "",
373
- }];
376
+ },
377
+ ];
374
378
  const { txid } = await wallet.sendTransaction(params);
375
379
  ```
376
380
 
377
381
  ### POOLNFT_SWAP_TO_TOKEN
378
382
 
379
383
  ```ts
380
- const params = [{
381
- flag:"POOLNFT_SWAP_TO_TOKEN",
382
- nft_contract_address:"",
383
- address:"",
384
- tbc_amount:10,
385
- poolNFT_version?: 2,
386
- lpPlan?:1, //默认值为1
384
+ const params = [
385
+ {
386
+ flag: "POOLNFT_SWAP_TO_TOKEN",
387
+ nft_contract_address: "",
388
+ address: "",
389
+ tbc_amount: 10,
390
+ poolNFT_version: 2,
391
+ lpPlan: 1, //默认值为1
387
392
  domain?: "",
388
- }];
393
+ },
394
+ ];
389
395
  const { txid } = await wallet.sendTransaction(params);
390
396
  ```
391
397
 
@@ -407,24 +413,28 @@ const { txid } = await wallet.sendTransaction(params);
407
413
  ### POOLNFT_MERGE
408
414
 
409
415
  ```ts
410
- const params = [{
411
- flag:"POOLNFT_MERGE",
412
- nft_contract_address:"",
413
- poolNFT_version?: 2,
414
- merge_times?:1, //1-10次 默认为10次 不足10次会提前终止
416
+ const params = [
417
+ {
418
+ flag: "POOLNFT_MERGE",
419
+ nft_contract_address: "",
420
+ poolNFT_version: 2,
421
+ merge_times: 1, //1-10次 默认为10次 不足10次会提前终止
415
422
  domain?: "",
416
- }];
423
+ },
424
+ ];
417
425
  const { txid } = await wallet.sendTransaction(params);
418
426
  ```
419
427
 
420
428
  ### FTLP_MERGE
421
429
 
422
430
  ```ts
423
- const params = [{
424
- flag:"FTLP_MERGE",
425
- nft_contract_address:"",
426
- poolNFT_version?: 2,
431
+ const params = [
432
+ {
433
+ flag: "FTLP_MERGE",
434
+ nft_contract_address: "",
435
+ poolNFT_version: 2,
427
436
  domain?: "",
428
- }];
437
+ },
438
+ ];
429
439
  const { txid } = await wallet.sendTransaction(params);
430
440
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turing-wallet-provider",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [