@@ -789,7 +789,7 @@ paths:
789
789
content :
790
790
application/json :
791
791
schema :
792
- $ref : ' #/components/schemas/CatapultConfigDTO '
792
+ $ref : ' #/components/schemas/NetworkConfigDTO '
793
793
' 404 ' :
794
794
description : resource not found
795
795
' 409 ' :
@@ -1438,7 +1438,7 @@ paths:
1438
1438
content :
1439
1439
application/json :
1440
1440
schema :
1441
- $ref : ' #/components/schemas/CatapultUpgradeDTO '
1441
+ $ref : ' #/components/schemas/BlockchainUpgradeDTO '
1442
1442
' 404 ' :
1443
1443
description : resource not found
1444
1444
' 409 ' :
@@ -1555,6 +1555,11 @@ components:
1555
1555
EntityTypeEnum :
1556
1556
type : integer
1557
1557
enum :
1558
+ - 16728
1559
+ - 16729
1560
+ - 16701
1561
+ - 16957
1562
+ - 17213
1558
1563
- 16717
1559
1564
- 16973
1560
1565
- 16718
@@ -1575,6 +1580,11 @@ components:
1575
1580
- 33091
1576
1581
description : |
1577
1582
The entity type:
1583
+ * 0x4158 (16728 decimal) - Blockchain Upgrade Transaction.
1584
+ * 0x4159 (16729 decimal) - Network Config Transaction.
1585
+ * 0x413D (16701 decimal) - Address Metadata Transaction.
1586
+ * 0x423D (16957 decimal) - Mosaic Metadata Transaction.
1587
+ * 0x433D (17213 decimal) - Namespace Metadata Transaction.
1578
1588
* 0x414D (16717 decimal) - Mosaic Definition Transaction.
1579
1589
* 0x424D (16973 decimal) - Mosaic Supply Change Transaction.
1580
1590
* 0x414E (16718 decimal) - Register Namespace Transaction.
@@ -1615,6 +1625,28 @@ components:
1615
1625
The type of the action:
1616
1626
* 0 - Link.
1617
1627
* 1 - Unlink.
1628
+ MetadataTypeEnum :
1629
+ type : integer
1630
+ enum :
1631
+ - 1
1632
+ - 2
1633
+ - 3
1634
+ description : |
1635
+ The type of the metadata:
1636
+ * 1 - Address metadata.
1637
+ * 2 - Mosaic metadata.
1638
+ * 3 - Namespace metadata.
1639
+ example : 0
1640
+ MetadataModificationTypeEnum :
1641
+ type : integer
1642
+ enum :
1643
+ - 0
1644
+ - 1
1645
+ description : |
1646
+ The type of the metadata modification:
1647
+ * 0 - Add metadata.
1648
+ * 1 - Remove metadata.
1649
+ example : 0
1618
1650
MessageTypeEnum :
1619
1651
type : integer
1620
1652
enum :
@@ -1872,44 +1904,44 @@ components:
1872
1904
- type : string
1873
1905
- $ref : " #/components/schemas/UInt64DTO"
1874
1906
- type : integer
1875
- CatapultConfigDTO :
1907
+ NetworkConfigDTO :
1876
1908
type : object
1877
1909
required :
1878
- - catapultConfig
1910
+ - networkConfig
1879
1911
properties :
1880
- catapultConfig :
1912
+ networkConfig :
1881
1913
$ref : ' #/components/schemas/ConfigDTO'
1882
1914
ConfigDTO :
1883
1915
type : object
1884
1916
required :
1885
1917
- height
1886
- - blockChainConfig
1918
+ - networkConfig
1887
1919
- supportedEntityVersions
1888
1920
properties :
1889
1921
height :
1890
1922
$ref : ' #/components/schemas/UInt64DTO'
1891
- blockChainConfig :
1923
+ networkConfig :
1892
1924
type : string
1893
1925
example : " [network]\n\n identifier = mijin-test\n publicKey = B4F12E7C9F6946091E2CB8B6D3A12B50D17CCBBF646386EA27CE2946A7423DCF\n generationHash = 7B631D803F912B00DC0CBED3014BBD17A302BA50B99D233B9C2D9533B842ABDF\n\n "
1894
1926
supportedEntityVersions :
1895
1927
type : string
1896
1928
example : " {\n\t\" entities\" : [\n\t\t {\n\t\t\t\" name\" : \" Block\" ,\n\t\t\t\" type\" : \" 33091\" ,\n\t\t\t\" supportedVersions\" : [3]\n\t\t }]}"
1897
- CatapultUpgradeDTO :
1929
+ BlockchainUpgradeDTO :
1898
1930
type : object
1899
1931
required :
1900
- - catapultUpgrade
1932
+ - blockchainUpgrade
1901
1933
properties :
1902
- catapultConfig :
1934
+ blockchainUpgrade :
1903
1935
$ref : ' #/components/schemas/UpgradeDTO'
1904
1936
UpgradeDTO :
1905
1937
type : object
1906
1938
required :
1907
1939
- height
1908
- - catapultVersion
1940
+ - blockChainVersion
1909
1941
properties :
1910
1942
height :
1911
1943
$ref : ' #/components/schemas/UInt64DTO'
1912
- catapultVersion :
1944
+ blockChainVersion :
1913
1945
$ref : ' #/components/schemas/UInt64DTO'
1914
1946
ContractInfoDTO :
1915
1947
type : object
@@ -1958,6 +1990,21 @@ components:
1958
1990
items :
1959
1991
type : string
1960
1992
example : " 3DCB6E5EFF4D63A38902EF948E895B01D6EA497EBF84B1460C14CA5BEDCAD9F3"
1993
+ MetadataModificationDTO :
1994
+ type : object
1995
+ required :
1996
+ - modificationType
1997
+ - key
1998
+ - value
1999
+ properties :
2000
+ modificationType :
2001
+ $ref : " #/components/schemas/MetadataModificationTypeEnum"
2002
+ key :
2003
+ type : string
2004
+ description : The key of metadata modification.
2005
+ value :
2006
+ type : string
2007
+ description : The value of metadata modification.
1961
2008
MultisigAccountGraphInfoDTO :
1962
2009
type : object
1963
2010
required :
@@ -2696,6 +2743,11 @@ components:
2696
2743
$ref : " #/components/schemas/TransactionMetaDTO"
2697
2744
transaction :
2698
2745
anyOf :
2746
+ - $ref : " #/components/schemas/BlockchainUpgradeTransactionDTO"
2747
+ - $ref : " #/components/schemas/NetworkConfigTransactionDTO"
2748
+ - $ref : " #/components/schemas/AddressMetadataTransactionDTO"
2749
+ - $ref : " #/components/schemas/MosaicMetadataTransactionDTO"
2750
+ - $ref : " #/components/schemas/NamespaceMetadataTransactionDTO"
2699
2751
- $ref : " #/components/schemas/MosaicDefinitionTransactionDTO"
2700
2752
- $ref : " #/components/schemas/MosaicSupplyChangeTransactionDTO"
2701
2753
- $ref : " #/components/schemas/RegisterNamespaceTransactionDTO"
@@ -2738,6 +2790,11 @@ components:
2738
2790
$ref : " #/components/schemas/EmbeddedTransactionMetaDTO"
2739
2791
transaction :
2740
2792
anyOf :
2793
+ - $ref : " #/components/schemas/EmbeddedBlockchainUpgradeTransactionDTO"
2794
+ - $ref : " #/components/schemas/EmbeddedNetworkConfigTransactionDTO"
2795
+ - $ref : " #/components/schemas/EmbeddedAddressMetadataTransactionDTO"
2796
+ - $ref : " #/components/schemas/EmbeddedMosaicMetadataTransactionDTO"
2797
+ - $ref : " #/components/schemas/EmbeddedNamespaceMetadataTransactionDTO"
2741
2798
- $ref : " #/components/schemas/EmbeddedMosaicDefinitionTransactionDTO"
2742
2799
- $ref : " #/components/schemas/EmbeddedMosaicSupplyChangeTransactionDTO"
2743
2800
- $ref : " #/components/schemas/EmbeddedRegisterNamespaceTransactionDTO"
@@ -2771,6 +2828,137 @@ components:
2771
2828
allOf :
2772
2829
- $ref : " #/components/schemas/EntityDTO"
2773
2830
- $ref : " #/components/schemas/TransactionBodyDTO"
2831
+ BlockchainUpgradeBodyDTO :
2832
+ type : object
2833
+ required :
2834
+ - upgradePeriod
2835
+ - newBlockChainVersion
2836
+ properties :
2837
+ upgradePeriod :
2838
+ $ref : " #/components/schemas/UInt64DTO"
2839
+ newBlockChainVersion :
2840
+ $ref : " #/components/schemas/UInt64DTO"
2841
+ BlockchainUpgradeTransactionDTO :
2842
+ type : object
2843
+ description : Transaction that change version of blockchain.
2844
+ allOf :
2845
+ - $ref : " #/components/schemas/TransactionDTO"
2846
+ - $ref : " #/components/schemas/BlockchainUpgradeBodyDTO"
2847
+ EmbeddedBlockchainUpgradeTransactionDTO :
2848
+ type : object
2849
+ allOf :
2850
+ - $ref : " #/components/schemas/EmbeddedTransactionDTO"
2851
+ - $ref : " #/components/schemas/BlockchainUpgradeBodyDTO"
2852
+ NetworkConfigBodyDTO :
2853
+ type : object
2854
+ required :
2855
+ - applyHeightDelta
2856
+ - networkConfig
2857
+ - supportedEntityVersions
2858
+ properties :
2859
+ applyHeightDelta :
2860
+ $ref : " #/components/schemas/UInt64DTO"
2861
+ networkConfig :
2862
+ type : string
2863
+ description : Network config like a raw text.
2864
+ supportedEntityVersions :
2865
+ type : string
2866
+ description : Allowed versions of transaction in json format.
2867
+ NetworkConfigTransactionDTO :
2868
+ type : object
2869
+ description : Transaction that updates config.
2870
+ allOf :
2871
+ - $ref : " #/components/schemas/TransactionDTO"
2872
+ - $ref : " #/components/schemas/NetworkConfigBodyDTO"
2873
+ EmbeddedNetworkConfigTransactionDTO :
2874
+ type : object
2875
+ allOf :
2876
+ - $ref : " #/components/schemas/EmbeddedTransactionDTO"
2877
+ - $ref : " #/components/schemas/NetworkConfigBodyDTO"
2878
+ AddressMetadataBodyDTO :
2879
+ type : object
2880
+ required :
2881
+ - metadataId
2882
+ - metadataType
2883
+ - modifications
2884
+ properties :
2885
+ metadataId :
2886
+ type : string
2887
+ description : The address in hexadecimal.
2888
+ metadataType :
2889
+ $ref : " #/components/schemas/MetadataTypeEnum"
2890
+ modifications :
2891
+ type : array
2892
+ description : The array of metadata modifications.
2893
+ items :
2894
+ $ref : " #/components/schemas/MetadataModificationDTO"
2895
+ AddressMetadataTransactionDTO :
2896
+ type : object
2897
+ description : Transaction that addes metadata to account.
2898
+ allOf :
2899
+ - $ref : " #/components/schemas/TransactionDTO"
2900
+ - $ref : " #/components/schemas/AddressMetadataBodyDTO"
2901
+ EmbeddedAddressMetadataTransactionDTO :
2902
+ type : object
2903
+ allOf :
2904
+ - $ref : " #/components/schemas/EmbeddedTransactionDTO"
2905
+ - $ref : " #/components/schemas/AddressMetadataBodyDTO"
2906
+ MosaicMetadataBodyDTO :
2907
+ type : object
2908
+ required :
2909
+ - metadataId
2910
+ - metadataType
2911
+ - modifications
2912
+ properties :
2913
+ metadataId :
2914
+ $ref : " #/components/schemas/UInt64DTO"
2915
+ description : Mosaic id.
2916
+ metadataType :
2917
+ $ref : " #/components/schemas/MetadataTypeEnum"
2918
+ modifications :
2919
+ type : array
2920
+ description : The array of metadata modifications.
2921
+ items :
2922
+ $ref : " #/components/schemas/MetadataModificationDTO"
2923
+ MosaicMetadataTransactionDTO :
2924
+ type : object
2925
+ description : Transaction that addes metadata to mosaic.
2926
+ allOf :
2927
+ - $ref : " #/components/schemas/TransactionDTO"
2928
+ - $ref : " #/components/schemas/MosaicMetadataBodyDTO"
2929
+ EmbeddedMosaicMetadataTransactionDTO :
2930
+ type : object
2931
+ allOf :
2932
+ - $ref : " #/components/schemas/EmbeddedTransactionDTO"
2933
+ - $ref : " #/components/schemas/MosaicMetadataBodyDTO"
2934
+ NamespaceMetadataBodyDTO :
2935
+ type : object
2936
+ required :
2937
+ - metadataId
2938
+ - metadataType
2939
+ - modifications
2940
+ properties :
2941
+ metadataId :
2942
+ $ref : " #/components/schemas/UInt64DTO"
2943
+ description : Namespace id.
2944
+ metadataType :
2945
+ $ref : " #/components/schemas/MetadataTypeEnum"
2946
+ modifications :
2947
+ type : array
2948
+ description : The array of metadata modifications.
2949
+ items :
2950
+ $ref : " #/components/schemas/MetadataModificationDTO"
2951
+ NamespaceMetadataTransactionDTO :
2952
+ type : object
2953
+ description : Transaction that addes metadata to namespace.
2954
+ allOf :
2955
+ - $ref : " #/components/schemas/TransactionDTO"
2956
+ - $ref : " #/components/schemas/NamespaceMetadataBodyDTO"
2957
+ EmbeddedNamespaceMetadataTransactionDTO :
2958
+ type : object
2959
+ allOf :
2960
+ - $ref : " #/components/schemas/EmbeddedTransactionDTO"
2961
+ - $ref : " #/components/schemas/NamespaceMetadataBodyDTO"
2774
2962
MosaicDefinitionTransactionBodyDTO :
2775
2963
type : object
2776
2964
required :
@@ -3144,12 +3332,12 @@ components:
3144
3332
type : object
3145
3333
required :
3146
3334
- remoteAccountKey
3147
- - linkAction
3335
+ - action
3148
3336
properties :
3149
3337
remoteAccountKey :
3150
3338
type : string
3151
3339
description : The public key of the remote account.
3152
- linkAction :
3340
+ action :
3153
3341
$ref : " #/components/schemas/LinkActionEnum"
3154
3342
AccountLinkTransactionDTO :
3155
3343
type : object
0 commit comments