@ocap/proto 1.14.0 → 1.14.4

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/lib/gen/spec.json CHANGED
@@ -354,18 +354,6 @@
354
354
  }
355
355
  }
356
356
  },
357
- "ResponseGetSwapState": {
358
- "fields": {
359
- "code": {
360
- "type": "StatusCode",
361
- "id": 1
362
- },
363
- "state": {
364
- "type": "SwapState",
365
- "id": 2
366
- }
367
- }
368
- },
369
357
  "ResponseGetDelegateState": {
370
358
  "fields": {
371
359
  "code": {
@@ -462,38 +450,6 @@
462
450
  }
463
451
  }
464
452
  },
465
- "RequestGetForgeStats": {
466
- "oneofs": {
467
- "value": {
468
- "oneof": [
469
- "dayInfo",
470
- "date"
471
- ]
472
- }
473
- },
474
- "fields": {
475
- "dayInfo": {
476
- "type": "ByDay",
477
- "id": 1
478
- },
479
- "date": {
480
- "type": "ByHour",
481
- "id": 2
482
- }
483
- }
484
- },
485
- "ResponseGetForgeStats": {
486
- "fields": {
487
- "code": {
488
- "type": "StatusCode",
489
- "id": 1
490
- },
491
- "forgeStats": {
492
- "type": "ForgeStats",
493
- "id": 2
494
- }
495
- }
496
- },
497
453
  "RequestListTransactions": {
498
454
  "fields": {
499
455
  "paging": {
@@ -699,75 +655,6 @@
699
655
  }
700
656
  }
701
657
  },
702
- "RequestListSwap": {
703
- "fields": {
704
- "paging": {
705
- "type": "Page",
706
- "id": 1
707
- },
708
- "sender": {
709
- "type": "string",
710
- "id": 2
711
- },
712
- "receiver": {
713
- "type": "string",
714
- "id": 3
715
- },
716
- "available": {
717
- "type": "bool",
718
- "id": 4
719
- }
720
- }
721
- },
722
- "ResponseListSwap": {
723
- "fields": {
724
- "code": {
725
- "type": "StatusCode",
726
- "id": 1
727
- },
728
- "page": {
729
- "type": "PageInfo",
730
- "id": 2
731
- },
732
- "swap": {
733
- "rule": "repeated",
734
- "type": "SwapState",
735
- "id": 3
736
- }
737
- }
738
- },
739
- "RequestGetSwapStatistics": {
740
- "fields": {
741
- "address": {
742
- "type": "string",
743
- "id": 1
744
- }
745
- }
746
- },
747
- "ResponseGetSwapStatistics": {
748
- "fields": {
749
- "code": {
750
- "type": "StatusCode",
751
- "id": 1
752
- },
753
- "statistics": {
754
- "type": "SwapStatistics",
755
- "id": 2
756
- }
757
- }
758
- },
759
- "ResponseGetHealthStatus": {
760
- "fields": {
761
- "code": {
762
- "type": "StatusCode",
763
- "id": 1
764
- },
765
- "healthStatus": {
766
- "type": "HealthStatus",
767
- "id": 2
768
- }
769
- }
770
- },
771
658
  "ResponseGetTokenState": {
772
659
  "fields": {
773
660
  "code": {
@@ -1844,43 +1731,6 @@
1844
1731
  }
1845
1732
  }
1846
1733
  },
1847
- "TxStatus": {
1848
- "fields": {
1849
- "code": {
1850
- "type": "StatusCode",
1851
- "id": 1
1852
- },
1853
- "hash": {
1854
- "type": "string",
1855
- "id": 2
1856
- }
1857
- }
1858
- },
1859
- "CircularQueue": {
1860
- "fields": {
1861
- "items": {
1862
- "rule": "repeated",
1863
- "type": "bytes",
1864
- "id": 1
1865
- },
1866
- "typeUrl": {
1867
- "type": "string",
1868
- "id": 2
1869
- },
1870
- "maxItems": {
1871
- "type": "uint32",
1872
- "id": 3
1873
- },
1874
- "circular": {
1875
- "type": "bool",
1876
- "id": 4
1877
- },
1878
- "fifo": {
1879
- "type": "bool",
1880
- "id": 5
1881
- }
1882
- }
1883
- },
1884
1734
  "StateContext": {
1885
1735
  "fields": {
1886
1736
  "genesisTx": {
@@ -1901,30 +1751,6 @@
1901
1751
  }
1902
1752
  }
1903
1753
  },
1904
- "StakeContext": {
1905
- "fields": {
1906
- "totalStakes": {
1907
- "type": "BigUint",
1908
- "id": 1
1909
- },
1910
- "totalUnstakes": {
1911
- "type": "BigUint",
1912
- "id": 2
1913
- },
1914
- "totalReceivedStakes": {
1915
- "type": "BigUint",
1916
- "id": 3
1917
- },
1918
- "recentStakes": {
1919
- "type": "CircularQueue",
1920
- "id": 4
1921
- },
1922
- "recentReceivedStakes": {
1923
- "type": "CircularQueue",
1924
- "id": 15
1925
- }
1926
- }
1927
- },
1928
1754
  "StakeSummary": {
1929
1755
  "fields": {
1930
1756
  "totalStakes": {
@@ -2065,175 +1891,6 @@
2065
1891
  }
2066
1892
  }
2067
1893
  },
2068
- "GenesisInfo": {
2069
- "fields": {
2070
- "genesisTime": {
2071
- "type": "string",
2072
- "id": 1
2073
- },
2074
- "chainId": {
2075
- "type": "string",
2076
- "id": 2
2077
- },
2078
- "consensusParams": {
2079
- "type": "vendor.ConsensusParams",
2080
- "id": 3
2081
- },
2082
- "validators": {
2083
- "rule": "repeated",
2084
- "type": "ValidatorInfo",
2085
- "id": 4
2086
- },
2087
- "appHash": {
2088
- "type": "string",
2089
- "id": 5
2090
- }
2091
- }
2092
- },
2093
- "ForgeStats": {
2094
- "fields": {
2095
- "numBlocks": {
2096
- "rule": "repeated",
2097
- "type": "string",
2098
- "id": 1
2099
- },
2100
- "numTxs": {
2101
- "rule": "repeated",
2102
- "type": "string",
2103
- "id": 2
2104
- },
2105
- "numStakes": {
2106
- "rule": "repeated",
2107
- "type": "BigUint",
2108
- "id": 3
2109
- },
2110
- "numValidators": {
2111
- "rule": "repeated",
2112
- "type": "uint32",
2113
- "id": 4
2114
- },
2115
- "numAccountMigrateTxs": {
2116
- "rule": "repeated",
2117
- "type": "string",
2118
- "id": 5
2119
- },
2120
- "numCreateAssetTxs": {
2121
- "rule": "repeated",
2122
- "type": "string",
2123
- "id": 6
2124
- },
2125
- "numConsensusUpgradeTxs": {
2126
- "rule": "repeated",
2127
- "type": "uint32",
2128
- "id": 7
2129
- },
2130
- "numDeclareTxs": {
2131
- "rule": "repeated",
2132
- "type": "string",
2133
- "id": 8
2134
- },
2135
- "numDeclareFileTxs": {
2136
- "rule": "repeated",
2137
- "type": "string",
2138
- "id": 9
2139
- },
2140
- "numExchangeTxs": {
2141
- "rule": "repeated",
2142
- "type": "string",
2143
- "id": 10
2144
- },
2145
- "numStakeTxs": {
2146
- "rule": "repeated",
2147
- "type": "string",
2148
- "id": 11
2149
- },
2150
- "numSysUpgradeTxs": {
2151
- "rule": "repeated",
2152
- "type": "uint32",
2153
- "id": 12
2154
- },
2155
- "numTransferTxs": {
2156
- "rule": "repeated",
2157
- "type": "string",
2158
- "id": 13
2159
- },
2160
- "numUpdateAssetTxs": {
2161
- "rule": "repeated",
2162
- "type": "string",
2163
- "id": 14
2164
- },
2165
- "numConsumeAssetTxs": {
2166
- "rule": "repeated",
2167
- "type": "string",
2168
- "id": 15
2169
- },
2170
- "tps": {
2171
- "rule": "repeated",
2172
- "type": "uint32",
2173
- "id": 16
2174
- },
2175
- "maxTps": {
2176
- "type": "uint32",
2177
- "id": 17
2178
- },
2179
- "avgTps": {
2180
- "type": "uint32",
2181
- "id": 18
2182
- },
2183
- "avgBlockTime": {
2184
- "type": "float",
2185
- "id": 19
2186
- }
2187
- }
2188
- },
2189
- "TxStatistics": {
2190
- "fields": {
2191
- "numAccountMigrateTxs": {
2192
- "type": "string",
2193
- "id": 1
2194
- },
2195
- "numCreateAssetTxs": {
2196
- "type": "string",
2197
- "id": 2
2198
- },
2199
- "numConsensusUpgradeTxs": {
2200
- "type": "uint32",
2201
- "id": 3
2202
- },
2203
- "numDeclareTxs": {
2204
- "type": "string",
2205
- "id": 4
2206
- },
2207
- "numDeclareFileTxs": {
2208
- "type": "string",
2209
- "id": 5
2210
- },
2211
- "numExchangeTxs": {
2212
- "type": "string",
2213
- "id": 6
2214
- },
2215
- "numStakeTxs": {
2216
- "type": "string",
2217
- "id": 7
2218
- },
2219
- "numSysUpgradeTxs": {
2220
- "type": "uint32",
2221
- "id": 8
2222
- },
2223
- "numTransferTxs": {
2224
- "type": "string",
2225
- "id": 9
2226
- },
2227
- "numUpdateAssetTxs": {
2228
- "type": "string",
2229
- "id": 10
2230
- },
2231
- "numConsumeAssetTxs": {
2232
- "type": "string",
2233
- "id": 11
2234
- }
2235
- }
2236
- },
2237
1894
  "ForgeToken": {
2238
1895
  "fields": {
2239
1896
  "name": {
@@ -2326,7 +1983,19 @@
2326
1983
  }
2327
1984
  }
2328
1985
  },
2329
- "AssetDisplay": {
1986
+ "NFTEndpoint": {
1987
+ "fields": {
1988
+ "id": {
1989
+ "type": "string",
1990
+ "id": 1
1991
+ },
1992
+ "scope": {
1993
+ "type": "string",
1994
+ "id": 2
1995
+ }
1996
+ }
1997
+ },
1998
+ "NFTDisplay": {
2330
1999
  "fields": {
2331
2000
  "type": {
2332
2001
  "type": "string",
@@ -2338,7 +2007,7 @@
2338
2007
  }
2339
2008
  }
2340
2009
  },
2341
- "AssetIssuer": {
2010
+ "NFTIssuer": {
2342
2011
  "fields": {
2343
2012
  "id": {
2344
2013
  "type": "string",
@@ -2545,34 +2214,6 @@
2545
2214
  "deprecated": true
2546
2215
  }
2547
2216
  },
2548
- "stake": {
2549
- "type": "StakeContext",
2550
- "id": 16,
2551
- "options": {
2552
- "deprecated": true
2553
- }
2554
- },
2555
- "pinnedFiles": {
2556
- "type": "CircularQueue",
2557
- "id": 17,
2558
- "options": {
2559
- "deprecated": true
2560
- }
2561
- },
2562
- "depositReceived": {
2563
- "type": "BigUint",
2564
- "id": 19,
2565
- "options": {
2566
- "deprecated": true
2567
- }
2568
- },
2569
- "withdrawItems": {
2570
- "type": "CircularQueue",
2571
- "id": 20,
2572
- "options": {
2573
- "deprecated": true
2574
- }
2575
- },
2576
2217
  "tokens": {
2577
2218
  "rule": "repeated",
2578
2219
  "type": "IndexedTokenInput",
@@ -2622,12 +2263,18 @@
2622
2263
  "type": "string",
2623
2264
  "id": 9
2624
2265
  },
2625
- "stake": {
2626
- "type": "StakeContext",
2627
- "id": 13,
2628
- "options": {
2629
- "deprecated": true
2630
- }
2266
+ "endpoint": {
2267
+ "type": "NFTEndpoint",
2268
+ "id": 10
2269
+ },
2270
+ "display": {
2271
+ "type": "NFTDisplay",
2272
+ "id": 11
2273
+ },
2274
+ "tags": {
2275
+ "rule": "repeated",
2276
+ "type": "string",
2277
+ "id": 12
2631
2278
  },
2632
2279
  "context": {
2633
2280
  "type": "StateContext",
@@ -2713,103 +2360,6 @@
2713
2360
  }
2714
2361
  }
2715
2362
  },
2716
- "StatisticsState": {
2717
- "fields": {
2718
- "address": {
2719
- "type": "string",
2720
- "id": 1
2721
- },
2722
- "numBlocks": {
2723
- "type": "uint64",
2724
- "id": 2
2725
- },
2726
- "numTxs": {
2727
- "type": "uint64",
2728
- "id": 3
2729
- },
2730
- "numStakes": {
2731
- "type": "BigUint",
2732
- "id": 4
2733
- },
2734
- "numValidators": {
2735
- "type": "uint32",
2736
- "id": 5
2737
- },
2738
- "txStatistics": {
2739
- "type": "TxStatistics",
2740
- "id": 6
2741
- }
2742
- }
2743
- },
2744
- "SwapState": {
2745
- "fields": {
2746
- "hash": {
2747
- "type": "string",
2748
- "id": 1
2749
- },
2750
- "address": {
2751
- "type": "string",
2752
- "id": 2
2753
- },
2754
- "hashkey": {
2755
- "type": "bytes",
2756
- "id": 3
2757
- },
2758
- "sender": {
2759
- "type": "string",
2760
- "id": 4
2761
- },
2762
- "receiver": {
2763
- "type": "string",
2764
- "id": 5
2765
- },
2766
- "value": {
2767
- "type": "BigUint",
2768
- "id": 6
2769
- },
2770
- "assets": {
2771
- "rule": "repeated",
2772
- "type": "string",
2773
- "id": 7
2774
- },
2775
- "locktime": {
2776
- "type": "uint32",
2777
- "id": 8
2778
- },
2779
- "hashlock": {
2780
- "type": "bytes",
2781
- "id": 9
2782
- },
2783
- "context": {
2784
- "type": "StateContext",
2785
- "id": 10
2786
- }
2787
- }
2788
- },
2789
- "SwapStatistics": {
2790
- "fields": {
2791
- "address": {
2792
- "type": "string",
2793
- "id": 1
2794
- },
2795
- "lockedValueOut": {
2796
- "type": "BigUint",
2797
- "id": 2
2798
- },
2799
- "lockedValueIn": {
2800
- "type": "BigUint",
2801
- "id": 3
2802
- },
2803
- "lockedAssetsOut": {
2804
- "type": "uint32",
2805
- "id": 4
2806
- },
2807
- "lockedAssetsIn": {
2808
- "type": "uint32",
2809
- "id": 5
2810
- }
2811
- }
2812
- },
2813
2363
  "DelegateOpState": {
2814
2364
  "fields": {
2815
2365
  "rule": {
@@ -2973,7 +2523,7 @@
2973
2523
  "id": 15
2974
2524
  },
2975
2525
  "display": {
2976
- "type": "AssetDisplay",
2526
+ "type": "NFTDisplay",
2977
2527
  "id": 16
2978
2528
  },
2979
2529
  "lastSettlement": {
@@ -3629,7 +3179,7 @@
3629
3179
  "id": 4
3630
3180
  },
3631
3181
  "issuer": {
3632
- "type": "AssetIssuer",
3182
+ "type": "NFTIssuer",
3633
3183
  "id": 5
3634
3184
  },
3635
3185
  "data": {
@@ -3663,7 +3213,7 @@
3663
3213
  "id": 5
3664
3214
  },
3665
3215
  "issuer": {
3666
- "type": "AssetIssuer",
3216
+ "type": "NFTIssuer",
3667
3217
  "id": 6
3668
3218
  },
3669
3219
  "data": {
@@ -3735,6 +3285,19 @@
3735
3285
  "issuer": {
3736
3286
  "type": "string",
3737
3287
  "id": 8
3288
+ },
3289
+ "endpoint": {
3290
+ "type": "NFTEndpoint",
3291
+ "id": 9
3292
+ },
3293
+ "display": {
3294
+ "type": "NFTDisplay",
3295
+ "id": 10
3296
+ },
3297
+ "tags": {
3298
+ "rule": "repeated",
3299
+ "type": "string",
3300
+ "id": 11
3738
3301
  }
3739
3302
  }
3740
3303
  },
@@ -3795,7 +3358,7 @@
3795
3358
  "id": 9
3796
3359
  },
3797
3360
  "display": {
3798
- "type": "AssetDisplay",
3361
+ "type": "NFTDisplay",
3799
3362
  "id": 10
3800
3363
  },
3801
3364
  "data": {
@@ -4705,118 +4268,6 @@
4705
4268
  }
4706
4269
  }
4707
4270
  },
4708
- "HealthStatus": {
4709
- "fields": {
4710
- "consensus": {
4711
- "type": "ConsensusStatus",
4712
- "id": 1
4713
- },
4714
- "network": {
4715
- "type": "NetworkStatus",
4716
- "id": 2
4717
- },
4718
- "storage": {
4719
- "type": "StorageStatus",
4720
- "id": 3
4721
- },
4722
- "forge": {
4723
- "type": "ForgeStatus",
4724
- "id": 4
4725
- }
4726
- }
4727
- },
4728
- "ConsensusStatus": {
4729
- "fields": {
4730
- "health": {
4731
- "type": "bool",
4732
- "id": 1
4733
- },
4734
- "synced": {
4735
- "type": "bool",
4736
- "id": 2
4737
- },
4738
- "blockHeight": {
4739
- "type": "string",
4740
- "id": 3
4741
- }
4742
- }
4743
- },
4744
- "NetworkStatus": {
4745
- "fields": {
4746
- "health": {
4747
- "type": "bool",
4748
- "id": 1
4749
- },
4750
- "numPeers": {
4751
- "type": "uint32",
4752
- "id": 2
4753
- }
4754
- }
4755
- },
4756
- "StorageStatus": {
4757
- "fields": {
4758
- "health": {
4759
- "type": "bool",
4760
- "id": 1
4761
- },
4762
- "indexerServer": {
4763
- "type": "string",
4764
- "id": 2
4765
- },
4766
- "stateDb": {
4767
- "type": "string",
4768
- "id": 3
4769
- },
4770
- "diskSpace": {
4771
- "type": "DiskSpaceStatus",
4772
- "id": 4
4773
- }
4774
- }
4775
- },
4776
- "DiskSpaceStatus": {
4777
- "fields": {
4778
- "forgeUsage": {
4779
- "type": "string",
4780
- "id": 1
4781
- },
4782
- "total": {
4783
- "type": "string",
4784
- "id": 2
4785
- }
4786
- }
4787
- },
4788
- "ForgeStatus": {
4789
- "fields": {
4790
- "health": {
4791
- "type": "bool",
4792
- "id": 1
4793
- },
4794
- "abiServer": {
4795
- "type": "string",
4796
- "id": 2
4797
- },
4798
- "forgeWeb": {
4799
- "type": "string",
4800
- "id": 3
4801
- },
4802
- "abciServer": {
4803
- "type": "AbciServerStatus",
4804
- "id": 4
4805
- }
4806
- }
4807
- },
4808
- "AbciServerStatus": {
4809
- "fields": {
4810
- "abciConsensus": {
4811
- "type": "string",
4812
- "id": 1
4813
- },
4814
- "abciInfo": {
4815
- "type": "string",
4816
- "id": 2
4817
- }
4818
- }
4819
- },
4820
4271
  "Validity": {
4821
4272
  "values": {
4822
4273
  "BOTH": 0,
@@ -5202,7 +4653,7 @@
5202
4653
  "id": 18
5203
4654
  },
5204
4655
  "display": {
5205
- "type": "AssetDisplay",
4656
+ "type": "NFTDisplay",
5206
4657
  "id": 19
5207
4658
  }
5208
4659
  }
@@ -5630,10 +5081,6 @@
5630
5081
  "requestType": "RequestGetConfig",
5631
5082
  "responseType": "ResponseGetConfig"
5632
5083
  },
5633
- "getHealthStatus": {
5634
- "requestType": "RequestEmpty",
5635
- "responseType": "ResponseGetHealthStatus"
5636
- },
5637
5084
  "getAccountState": {
5638
5085
  "requestType": "RequestGetState",
5639
5086
  "requestStream": true,
@@ -5656,12 +5103,6 @@
5656
5103
  "requestType": "RequestGetState",
5657
5104
  "responseType": "ResponseGetForgeState"
5658
5105
  },
5659
- "getSwapState": {
5660
- "requestType": "RequestGetState",
5661
- "requestStream": true,
5662
- "responseType": "ResponseGetSwapState",
5663
- "responseStream": true
5664
- },
5665
5106
  "getDelegateState": {
5666
5107
  "requestType": "RequestGetState",
5667
5108
  "requestStream": true,
@@ -5686,14 +5127,6 @@
5686
5127
  "responseType": "ResponseGetAccountTokens",
5687
5128
  "responseStream": true
5688
5129
  },
5689
- "getForgeStats": {
5690
- "requestType": "RequestGetForgeStats",
5691
- "responseType": "ResponseGetForgeStats"
5692
- },
5693
- "getSwapStatistics": {
5694
- "requestType": "RequestGetSwapStatistics",
5695
- "responseType": "ResponseGetSwapStatistics"
5696
- },
5697
5130
  "listTransactions": {
5698
5131
  "requestType": "RequestListTransactions",
5699
5132
  "responseType": "ResponseListTransactions"
@@ -5722,10 +5155,6 @@
5722
5155
  "requestType": "RequestListTokens",
5723
5156
  "responseType": "ResponseListTokens"
5724
5157
  },
5725
- "listSwap": {
5726
- "requestType": "RequestListSwap",
5727
- "responseType": "ResponseListSwap"
5728
- },
5729
5158
  "itxSub": {
5730
5159
  "requestType": "RequestGetConfig",
5731
5160
  "responseType": "ItxStub"