@tech-bureau/mijin-catapult-tools 0.2.0 → 0.2.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 +15 -13
- package/dist/main.js +1 -1
- package/dist/src/commands/namespace/namespace.d.ts.map +1 -1
- package/dist/src/commands/namespace/unlinkAddress.d.ts +4 -0
- package/dist/src/commands/namespace/unlinkAddress.d.ts.map +1 -0
- package/dist/src/commands/namespace/unlinkMosaic.d.ts +4 -0
- package/dist/src/commands/namespace/unlinkMosaic.d.ts.map +1 -0
- package/dist/src/infrastructure/namespace/unlinkAddress.d.ts +4 -0
- package/dist/src/infrastructure/namespace/unlinkAddress.d.ts.map +1 -0
- package/dist/src/infrastructure/namespace/unlinkMosaic.d.ts +4 -0
- package/dist/src/infrastructure/namespace/unlinkMosaic.d.ts.map +1 -0
- package/dist/src/service/NamespaceServices.d.ts +2 -0
- package/dist/src/service/NamespaceServices.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/service/NamespaceServices.spec.ts +16 -0
- package/src/commands/namespace/namespace.ts +4 -0
- package/src/commands/namespace/unlinkAddress.ts +17 -0
- package/src/commands/namespace/unlinkMosaic.ts +17 -0
- package/src/infrastructure/namespace/unlinkAddress.ts +126 -0
- package/src/infrastructure/namespace/unlinkMosaic.ts +126 -0
- package/src/service/NamespaceServices.ts +53 -0
package/README.md
CHANGED
|
@@ -78,6 +78,7 @@ Options:
|
|
|
78
78
|
-a, --address <privateKey> Specify the input of Address
|
|
79
79
|
-m, --message <message> Specify the input of Transaction Message(Plain Only)
|
|
80
80
|
-s, --service Specify the input Service Mode (default: false)
|
|
81
|
+
-b, --bod Specify the input of mijin BOD mode(use Cookie) (default: false)
|
|
81
82
|
-h, --help display help for command
|
|
82
83
|
```
|
|
83
84
|
|
|
@@ -394,7 +395,7 @@ $ mijin-catapult-tools account info -r config.json -t other -a MAVCWTMXHTWG5H63M
|
|
|
394
395
|
### 01. balance Account to work Account Currency 100.000000
|
|
395
396
|
|
|
396
397
|
```bash
|
|
397
|
-
$ mijin-catapult-tools transaction transfer -f balance -d work -a 100
|
|
398
|
+
$ mijin-catapult-tools transaction transfer -f balance -d work -a 100 -b
|
|
398
399
|
|
|
399
400
|
2023-01-14T02:04:54.801Z [info] : mijin URL: http://localhost:3000
|
|
400
401
|
2023-01-14T02:04:54.801Z [info] : Network: 96
|
|
@@ -430,7 +431,7 @@ $ mijin-catapult-tools account generate -r config.json
|
|
|
430
431
|
balance Account to New Generate Account
|
|
431
432
|
|
|
432
433
|
```bash
|
|
433
|
-
$ mijin-catapult-tools transaction transfer -f balance -d MDRVLLZHSVAZXS67WBWLHXBJDYFB26E6BYUMYGY -a 100
|
|
434
|
+
$ mijin-catapult-tools transaction transfer -f balance -d MDRVLLZHSVAZXS67WBWLHXBJDYFB26E6BYUMYGY -a 100 -b
|
|
434
435
|
|
|
435
436
|
2023-01-14T02:06:37.237Z [info] : mijin URL: http://localhost:3000
|
|
436
437
|
2023-01-14T02:06:37.238Z [info] : Network: 96
|
|
@@ -447,7 +448,7 @@ $ mijin-catapult-tools transaction transfer -f balance -d MDRVLLZHSVAZXS67WBWLHX
|
|
|
447
448
|
New Generate Account info
|
|
448
449
|
|
|
449
450
|
```bash
|
|
450
|
-
$ mijin-catapult-tools account info -r config.json -t other -a MDRVLLZHSVAZXS67WBWLHXBJDYFB26E6BYUMYGY
|
|
451
|
+
$ mijin-catapult-tools account info -r config.json -t other -a MDRVLLZHSVAZXS67WBWLHXBJDYFB26E6BYUMYGY -b
|
|
451
452
|
2023-01-14T02:07:41.456Z [info] : mijin URL: http://localhost:3000
|
|
452
453
|
2023-01-14T02:07:41.457Z [info] : Network: 96
|
|
453
454
|
2023-01-14T02:07:41.457Z [info] : Mosaic Currency Id: 268CF9B2D33FBD22
|
|
@@ -496,6 +497,7 @@ Options:
|
|
|
496
497
|
--revokable <revokable> Specify the input of Mosaic Flags option Revokable (default: false)
|
|
497
498
|
-r, --readfile <config.json> Specify the input of Read Config File
|
|
498
499
|
-p, --privatekey <privateKey> Specify the input of Mosaic Owener Account Private Key
|
|
500
|
+
-b, --bod Specify the input of mijin BOD mode(use Cookie) (default: false)
|
|
499
501
|
-h, --help display help for command
|
|
500
502
|
```
|
|
501
503
|
|
|
@@ -505,7 +507,7 @@ If you need to pay a fee, balance Account to work Account
|
|
|
505
507
|
Trasanction announcement fees are set automatically(min Multiplier).
|
|
506
508
|
|
|
507
509
|
```bash
|
|
508
|
-
$ mijin-catapult-tools transaction transfer -f balance -d work -a 1000
|
|
510
|
+
$ mijin-catapult-tools transaction transfer -f balance -d work -a 1000 -b
|
|
509
511
|
|
|
510
512
|
2023-01-14T02:08:28.776Z [info] : mijin URL: http://localhost:3000
|
|
511
513
|
2023-01-14T02:08:28.776Z [info] : Network: 96
|
|
@@ -522,7 +524,7 @@ $ mijin-catapult-tools transaction transfer -f balance -d work -a 1000
|
|
|
522
524
|
Create Mosaic
|
|
523
525
|
|
|
524
526
|
```bash
|
|
525
|
-
$ mijin-catapult-tools transaction mosaic create -r config.json -o work
|
|
527
|
+
$ mijin-catapult-tools transaction mosaic create -r config.json -o work -b
|
|
526
528
|
|
|
527
529
|
2023-01-14T02:09:46.550Z [info] : mijin URL: http://localhost:3000
|
|
528
530
|
2023-01-14T02:09:46.550Z [info] : Network: 96
|
|
@@ -563,7 +565,7 @@ Rrestrictable: true
|
|
|
563
565
|
Revokable: true
|
|
564
566
|
|
|
565
567
|
```bash
|
|
566
|
-
$ mijin-catapult-tools transaction mosaic create -r config.json -o work -s 1000 -d 6 --revokable true
|
|
568
|
+
$ mijin-catapult-tools transaction mosaic create -r config.json -o work -s 1000 -d 6 --revokable true -b
|
|
567
569
|
2023-01-16T06:28:31.289Z [info] : mijin URL: http://localhost:3000
|
|
568
570
|
2023-01-16T06:28:31.289Z [info] : Network: 96
|
|
569
571
|
2023-01-16T06:28:31.289Z [info] : Create Mosaic...
|
|
@@ -602,11 +604,11 @@ Commands:
|
|
|
602
604
|
### Namespace Example Commands
|
|
603
605
|
|
|
604
606
|
``` bash
|
|
605
|
-
|
|
606
|
-
$ mijin-catapult-tools transaction namespace create-sub -r config.json -o work -n sub -pn test
|
|
607
|
-
$ mijin-catapult-tools transaction namespace create-sub -r config.json -o work -n sub2 -pn test
|
|
608
|
-
$ mijin-catapult-tools transaction namespace link-mosaic -r config.json -o work -n test.sub -m 287CD558128F6C53
|
|
609
|
-
$ mijin-catapult-tools transaction namespace link-address -r config.json -o work -n test.sub2 -a MDLEKG5MKKAPFBM3XWZKYQEDYRJO67MUJXFDP6I
|
|
607
|
+
mijin-catapult-tools transaction namespace create-root -r config.json -o work -n test -d 1000 -b
|
|
608
|
+
$ mijin-catapult-tools transaction namespace create-sub -r config.json -o work -n sub -pn test -b
|
|
609
|
+
$ mijin-catapult-tools transaction namespace create-sub -r config.json -o work -n sub2 -pn test -b
|
|
610
|
+
$ mijin-catapult-tools transaction namespace link-mosaic -r config.json -o work -n test.sub -m 287CD558128F6C53 -b
|
|
611
|
+
$ mijin-catapult-tools transaction namespace link-address -r config.json -o work -n test.sub2 -a MDLEKG5MKKAPFBM3XWZKYQEDYRJO67MUJXFDP6I -b
|
|
610
612
|
$ mijin-catapult-tools transaction namespace info -r config.json -n test
|
|
611
613
|
```
|
|
612
614
|
|
|
@@ -616,7 +618,7 @@ Namespace Name: test
|
|
|
616
618
|
Duration: 1000
|
|
617
619
|
|
|
618
620
|
```bash
|
|
619
|
-
$ mijin-catapult-tools transaction namespace create-root -r config.json -o work -n test -d 1000
|
|
621
|
+
$ mijin-catapult-tools transaction namespace create-root -r config.json -o work -n test -d 1000 -b
|
|
620
622
|
2023-03-10T06:11:01.298Z [info] : mijin URL: http://localhost:3000
|
|
621
623
|
2023-03-10T06:11:01.299Z [info] : Network: 96
|
|
622
624
|
2023-03-10T06:11:01.300Z [info] : Create Root Namespace...
|
|
@@ -636,7 +638,7 @@ $ mijin-catapult-tools transaction namespace create-root -r config.json -o work
|
|
|
636
638
|
Namespace Name: test
|
|
637
639
|
|
|
638
640
|
```bash
|
|
639
|
-
$ mijin-catapult-tools transaction namespace info -r config.json -n test
|
|
641
|
+
$ mijin-catapult-tools transaction namespace info -r config.json -n test -b
|
|
640
642
|
2023-03-10T06:13:34.668Z [info] : mijin URL: http://localhost:3000
|
|
641
643
|
2023-03-10T06:13:34.669Z [info] : Network: 96
|
|
642
644
|
2023-03-10T06:13:34.670Z [info] : Namespace Id: test
|