@tech-bureau/mijin-catapult-tools 0.1.4 → 0.1.6
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 +76 -1
- package/dist/main.js +1 -1
- package/dist/src/__tests__/service/NamespaceServices.spec.d.ts +2 -0
- package/dist/src/__tests__/service/NamespaceServices.spec.d.ts.map +1 -0
- package/dist/src/commands/namespace/linkAddress.d.ts +4 -0
- package/dist/src/commands/namespace/linkAddress.d.ts.map +1 -0
- package/dist/src/commands/namespace/linkMosaic.d.ts +4 -0
- package/dist/src/commands/namespace/linkMosaic.d.ts.map +1 -0
- package/dist/src/commands/namespace/namespace.d.ts +4 -0
- package/dist/src/commands/namespace/namespace.d.ts.map +1 -0
- package/dist/src/commands/namespace/namespaceInfo.d.ts +4 -0
- package/dist/src/commands/namespace/namespaceInfo.d.ts.map +1 -0
- package/dist/src/commands/namespace/rootNamespaceCreate.d.ts +4 -0
- package/dist/src/commands/namespace/rootNamespaceCreate.d.ts.map +1 -0
- package/dist/src/commands/namespace/subNamespaceCreate.d.ts +4 -0
- package/dist/src/commands/namespace/subNamespaceCreate.d.ts.map +1 -0
- package/dist/src/commands/transaction/transaction.d.ts +2 -2
- package/dist/src/commands/transaction/transaction.d.ts.map +1 -1
- package/dist/src/infrastructure/namespace/linkAddress.d.ts +4 -0
- package/dist/src/infrastructure/namespace/linkAddress.d.ts.map +1 -0
- package/dist/src/infrastructure/namespace/linkMosaic.d.ts +4 -0
- package/dist/src/infrastructure/namespace/linkMosaic.d.ts.map +1 -0
- package/dist/src/infrastructure/namespace/namespaceInfo.d.ts +4 -0
- package/dist/src/infrastructure/namespace/namespaceInfo.d.ts.map +1 -0
- package/dist/src/infrastructure/namespace/rootNamespaceCreate.d.ts +4 -0
- package/dist/src/infrastructure/namespace/rootNamespaceCreate.d.ts.map +1 -0
- package/dist/src/infrastructure/namespace/subNamespaceCreate.d.ts +4 -0
- package/dist/src/infrastructure/namespace/subNamespaceCreate.d.ts.map +1 -0
- package/dist/src/service/NamespaceServices.d.ts +19 -0
- package/dist/src/service/NamespaceServices.d.ts.map +1 -0
- package/dist/src/types/INamespaceOption.d.ts +17 -0
- package/dist/src/types/INamespaceOption.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +1 -0
- package/dist/src/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/service/NamespaceServices.spec.ts +97 -0
- package/src/cli.ts +1 -1
- package/src/commands/namespace/linkAddress.ts +16 -0
- package/src/commands/namespace/linkMosaic.ts +16 -0
- package/src/commands/namespace/namespace.ts +22 -0
- package/src/commands/namespace/namespaceInfo.ts +13 -0
- package/src/commands/namespace/rootNamespaceCreate.ts +16 -0
- package/src/commands/namespace/subNamespaceCreate.ts +16 -0
- package/src/commands/transaction/transaction.ts +4 -2
- package/src/infrastructure/namespace/linkAddress.ts +126 -0
- package/src/infrastructure/namespace/linkMosaic.ts +126 -0
- package/src/infrastructure/namespace/namespaceInfo.ts +44 -0
- package/src/infrastructure/namespace/rootNamespaceCreate.ts +134 -0
- package/src/infrastructure/namespace/subNamespaceCreate.ts +135 -0
- package/src/service/NamespaceServices.ts +145 -0
- package/src/types/INamespaceOption.ts +17 -0
- package/src/types/index.ts +1 -0
package/README.md
CHANGED
|
@@ -12,7 +12,13 @@ This tool is for easy operation of mijin Catapult(v.2)
|
|
|
12
12
|
* Transaction
|
|
13
13
|
* Mosaic
|
|
14
14
|
* Create
|
|
15
|
-
*
|
|
15
|
+
* Info
|
|
16
|
+
* Namespace
|
|
17
|
+
* Create Root
|
|
18
|
+
* Create Sub
|
|
19
|
+
* Link Mosaic
|
|
20
|
+
* Link Address
|
|
21
|
+
* Info
|
|
16
22
|
* Voting
|
|
17
23
|
* Create
|
|
18
24
|
* Info
|
|
@@ -573,6 +579,75 @@ $ mijin-catapult-tools transaction mosaic create -r config.json -o work -s 1000
|
|
|
573
579
|
2023-01-16T06:28:34.464Z [info] : http://localhost:3000/transactions/confirmed/733BA25FECEECC334CAD0E4B86F80676661EA34DC1781E205C0034536A5A330A
|
|
574
580
|
```
|
|
575
581
|
|
|
582
|
+
## Namespace
|
|
583
|
+
|
|
584
|
+
```bash
|
|
585
|
+
$ mijin-catapult-tools transaction namespace -h
|
|
586
|
+
Usage: mijin-catapult-tools transaction namespace [options] [command]
|
|
587
|
+
|
|
588
|
+
Namespace Transaction Announce or Info
|
|
589
|
+
|
|
590
|
+
Options:
|
|
591
|
+
-h, --help display help for command
|
|
592
|
+
|
|
593
|
+
Commands:
|
|
594
|
+
create-root [options] Create Root Namespace and Announce Mosaic Transaction
|
|
595
|
+
create-sub [options] Create Sub Namespace and Announce Mosaic Transaction
|
|
596
|
+
link-mosaic [options] Link Mosaic and Announce Transaction
|
|
597
|
+
link-address [options] Link Address and Announce Transaction
|
|
598
|
+
info [options] Get Namespace Info
|
|
599
|
+
help [command] display help for command
|
|
600
|
+
```
|
|
601
|
+
|
|
602
|
+
### Namespace Example Commands
|
|
603
|
+
|
|
604
|
+
``` bash
|
|
605
|
+
$ mijin-catapult-tools transaction namespace create-root -r config.json -o work -n test -d 1000
|
|
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
|
|
610
|
+
$ mijin-catapult-tools transaction namespace info -r config.json -n test
|
|
611
|
+
```
|
|
612
|
+
|
|
613
|
+
### Create Root Namespace (Owner work Account)
|
|
614
|
+
|
|
615
|
+
Namespace Name: test
|
|
616
|
+
Duration: 1000
|
|
617
|
+
|
|
618
|
+
```bash
|
|
619
|
+
$ mijin-catapult-tools transaction namespace create-root -r config.json -o work -n test -d 1000
|
|
620
|
+
2023-03-10T06:11:01.298Z [info] : mijin URL: http://localhost:3000
|
|
621
|
+
2023-03-10T06:11:01.299Z [info] : Network: 96
|
|
622
|
+
2023-03-10T06:11:01.300Z [info] : Create Root Namespace...
|
|
623
|
+
2023-03-10T06:11:01.345Z [info] : Root Namespace Owner Account: MDLEKG5MKKAPFBM3XWZKYQEDYRJO67MUJXFDP6I
|
|
624
|
+
2023-03-10T06:11:01.346Z [info] : Namespace Name: test
|
|
625
|
+
2023-03-10T06:11:01.348Z [info] : Namespace Transaction: {"transaction":{"type":16718,"network":96,"version":1,"maxFee":"0","deadline":"118141861343","signature":"","registrationType":0,"name":"test","id":"D401054C1965C26E","duration":"1000"}}
|
|
626
|
+
2023-03-10T06:11:01.378Z [info] : Transaction Fee: 0
|
|
627
|
+
2023-03-10T06:11:01.378Z [info] : Namespace Rental Fee Per Block: 1
|
|
628
|
+
2023-03-10T06:11:01.378Z [info] : Start Announce Transaction...
|
|
629
|
+
2023-03-10T06:11:06.415Z [info] : End Transaction
|
|
630
|
+
2023-03-10T06:11:06.415Z [info] : http://localhost:3000/transactionStatus/57275DF8349C3FB582BA5B1B854FA8C270C467B8A48EB9B9E24EC6F3F7A1786B
|
|
631
|
+
2023-03-10T06:11:06.415Z [info] : http://localhost:3000/transactions/confirmed/57275DF8349C3FB582BA5B1B854FA8C270C467B8A48EB9B9E24EC6F3F7A1786B
|
|
632
|
+
```
|
|
633
|
+
|
|
634
|
+
### Namespace Info
|
|
635
|
+
|
|
636
|
+
Namespace Name: test
|
|
637
|
+
|
|
638
|
+
```bash
|
|
639
|
+
$ mijin-catapult-tools transaction namespace info -r config.json -n test
|
|
640
|
+
2023-03-10T06:13:34.668Z [info] : mijin URL: http://localhost:3000
|
|
641
|
+
2023-03-10T06:13:34.669Z [info] : Network: 96
|
|
642
|
+
2023-03-10T06:13:34.670Z [info] : Namespace Id: test
|
|
643
|
+
2023-03-10T06:13:34.749Z [info] : Namespace Info: {
|
|
644
|
+
"active": true,
|
|
645
|
+
"ownerAddress": "MDLEKG5MKKAPFBM3XWZKYQEDYRJO67MUJXFDP6I",
|
|
646
|
+
"namespaceId": "D401054C1965C26E",
|
|
647
|
+
"parentId": "0000000000000000"
|
|
648
|
+
}
|
|
649
|
+
```
|
|
650
|
+
|
|
576
651
|
## Create Votingkey Dat file(for main Account)
|
|
577
652
|
|
|
578
653
|
```bash
|