@ocap/sdk 1.13.37 → 1.13.41

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/index.d.ts +41 -243
  2. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -868,10 +868,11 @@ declare interface OcapSDK {
868
868
  listRollupBlocks(
869
869
  params: GraphQLClient.ListRollupBlocksParams
870
870
  ): GraphQLClient.QueryResult<GraphQLClient.ResponseListRollupBlocks>;
871
+ listRollupValidators(
872
+ params: GraphQLClient.ListRollupValidatorsParams
873
+ ): GraphQLClient.QueryResult<GraphQLClient.ResponseListRollupValidators>;
871
874
  search(params: GraphQLClient.SearchParams): GraphQLClient.QueryResult<GraphQLClient.ResponseSearch>;
872
875
  sendTx(params: GraphQLClient.SendTxParams): GraphQLClient.QueryResult<GraphQLClient.ResponseSendTx>;
873
- unsubscribe(params: GraphQLClient.UnsubscribeParams): GraphQLClient.QueryResult<GraphQLClient.ResponseUnsubscribe>;
874
- subscribe(params: GraphQLClient.SubscribeParams): GraphQLClient.SubscriptionResult<GraphQLClient.ResponseSubscribe>;
875
876
  }
876
877
 
877
878
  declare namespace GraphQLClient {
@@ -1137,6 +1138,8 @@ declare namespace GraphQLClient {
1137
1138
 
1138
1139
  export interface RequestListRollupBlocksInput {}
1139
1140
 
1141
+ export interface RequestListRollupValidatorsInput {}
1142
+
1140
1143
  export interface RequestListRollupsInput {}
1141
1144
 
1142
1145
  export interface RequestListStakesInput {}
@@ -1153,9 +1156,7 @@ declare namespace GraphQLClient {
1153
1156
 
1154
1157
  export interface RequestSendTxInput {}
1155
1158
 
1156
- export interface RequestSubscribeInput {}
1157
-
1158
- export interface RequestUnsubscribeInput {}
1159
+ export interface RollupFilterInput {}
1159
1160
 
1160
1161
  export interface TimeFilterInput {}
1161
1162
 
@@ -1657,25 +1658,6 @@ declare namespace GraphQLClient {
1657
1658
  longitude: number;
1658
1659
  }
1659
1660
 
1660
- export interface Header {
1661
- version: GraphQLClient.Version;
1662
- chainId: string;
1663
- height: number;
1664
- time: string;
1665
- numTxs: number;
1666
- totalTxs: number;
1667
- lastBlockId: GraphQLClient.BlockID;
1668
- lastCommitHash: string;
1669
- dataHash: string;
1670
- validatorsHash: string;
1671
- nextValidatorsHash: string;
1672
- consensusHash: string;
1673
- appHash: string;
1674
- lastResultsHash: string;
1675
- evidenceHash: string;
1676
- proposerAddress: string;
1677
- }
1678
-
1679
1661
  export interface HealthStatus {
1680
1662
  consensus: GraphQLClient.ConsensusStatus;
1681
1663
  network: GraphQLClient.NetworkStatus;
@@ -1803,6 +1785,26 @@ declare namespace GraphQLClient {
1803
1785
  data: GraphQLClient.Any;
1804
1786
  }
1805
1787
 
1788
+ export interface IndexedRollupValidator {
1789
+ pk: string;
1790
+ address: string;
1791
+ moniker: string;
1792
+ endpoint: string;
1793
+ joinTime: string;
1794
+ leaveTime: string;
1795
+ genesisTime: string;
1796
+ renaissanceTime: string;
1797
+ totalStake: string;
1798
+ revokedStake: string;
1799
+ availableStake: string;
1800
+ totalGain: string;
1801
+ proposedBlockCount: number;
1802
+ verifiedBlockCount: number;
1803
+ latestBlockHeight: number;
1804
+ latestBlockHash: string;
1805
+ rollup: string;
1806
+ }
1807
+
1806
1808
  export interface IndexedStakeState {
1807
1809
  address: string;
1808
1810
  sender: string;
@@ -1812,6 +1814,7 @@ declare namespace GraphQLClient {
1812
1814
  revocable: boolean;
1813
1815
  genesisTime: string;
1814
1816
  renaissanceTime: string;
1817
+ message: string;
1815
1818
  data: GraphQLClient.Any;
1816
1819
  }
1817
1820
 
@@ -1865,11 +1868,6 @@ declare namespace GraphQLClient {
1865
1868
  value: string;
1866
1869
  }
1867
1870
 
1868
- export interface LastCommitInfo {
1869
- round: number;
1870
- votes: Array<null>;
1871
- }
1872
-
1873
1871
  export interface LeaveRollupTx {
1874
1872
  rollup: string;
1875
1873
  evidence: GraphQLClient.Evidence;
@@ -1963,17 +1961,6 @@ declare namespace GraphQLClient {
1963
1961
  value: string;
1964
1962
  }
1965
1963
 
1966
- export interface RequestBeginBlock {
1967
- hash: string;
1968
- header: GraphQLClient.Header;
1969
- lastCommitInfo: GraphQLClient.LastCommitInfo;
1970
- byzantineValidators: Array<null>;
1971
- }
1972
-
1973
- export interface RequestEndBlock {
1974
- height: number;
1975
- }
1976
-
1977
1964
  export interface ResponseGetAccountState {
1978
1965
  code: string;
1979
1966
  state: GraphQLClient.AccountState;
@@ -2120,6 +2107,12 @@ declare namespace GraphQLClient {
2120
2107
  blocks: Array<null>;
2121
2108
  }
2122
2109
 
2110
+ export interface ResponseListRollupValidators {
2111
+ code: string;
2112
+ page: GraphQLClient.PageInfo;
2113
+ validators: Array<null>;
2114
+ }
2115
+
2123
2116
  export interface ResponseListRollups {
2124
2117
  code: string;
2125
2118
  page: GraphQLClient.PageInfo;
@@ -2167,147 +2160,6 @@ declare namespace GraphQLClient {
2167
2160
  hash: string;
2168
2161
  }
2169
2162
 
2170
- export interface ResponseSubscribe {
2171
- code: string;
2172
- value: GraphQLClient.ResponseSubscribeValue;
2173
- }
2174
-
2175
- export interface ResponseSubscribe_AccountMigrate {
2176
- accountMigrate: GraphQLClient.Transaction;
2177
- }
2178
-
2179
- export interface ResponseSubscribe_AccountState {
2180
- accountState: GraphQLClient.AccountState;
2181
- }
2182
-
2183
- export interface ResponseSubscribe_AcquireAsset {
2184
- acquireAsset: GraphQLClient.Transaction;
2185
- }
2186
-
2187
- export interface ResponseSubscribe_ApproveWithdraw {
2188
- approveWithdraw: GraphQLClient.Transaction;
2189
- }
2190
-
2191
- export interface ResponseSubscribe_AssetState {
2192
- assetState: GraphQLClient.AssetState;
2193
- }
2194
-
2195
- export interface ResponseSubscribe_BeginBlock {
2196
- beginBlock: GraphQLClient.RequestBeginBlock;
2197
- }
2198
-
2199
- export interface ResponseSubscribe_Confirm {
2200
- confirm: GraphQLClient.Transaction;
2201
- }
2202
-
2203
- export interface ResponseSubscribe_ConsensusUpgrade {
2204
- consensusUpgrade: GraphQLClient.Transaction;
2205
- }
2206
-
2207
- export interface ResponseSubscribe_ConsumeAsset {
2208
- consumeAsset: GraphQLClient.Transaction;
2209
- }
2210
-
2211
- export interface ResponseSubscribe_CreateAsset {
2212
- createAsset: GraphQLClient.Transaction;
2213
- }
2214
-
2215
- export interface ResponseSubscribe_CreateToken {
2216
- createToken: GraphQLClient.Transaction;
2217
- }
2218
-
2219
- export interface ResponseSubscribe_Declare {
2220
- declare: GraphQLClient.Transaction;
2221
- }
2222
-
2223
- export interface ResponseSubscribe_Delegate {
2224
- delegate: GraphQLClient.Transaction;
2225
- }
2226
-
2227
- export interface ResponseSubscribe_DelegateState {
2228
- delegateState: GraphQLClient.DelegateState;
2229
- }
2230
-
2231
- export interface ResponseSubscribe_DepositToken {
2232
- depositToken: GraphQLClient.Transaction;
2233
- }
2234
-
2235
- export interface ResponseSubscribe_EndBlock {
2236
- endBlock: GraphQLClient.RequestEndBlock;
2237
- }
2238
-
2239
- export interface ResponseSubscribe_Exchange {
2240
- exchange: GraphQLClient.Transaction;
2241
- }
2242
-
2243
- export interface ResponseSubscribe_ForgeState {
2244
- forgeState: GraphQLClient.ForgeState;
2245
- }
2246
-
2247
- export interface ResponseSubscribe_RetrieveSwap {
2248
- retrieveSwap: GraphQLClient.Transaction;
2249
- }
2250
-
2251
- export interface ResponseSubscribe_RevokeDelegate {
2252
- revokeDelegate: GraphQLClient.Transaction;
2253
- }
2254
-
2255
- export interface ResponseSubscribe_RevokeSwap {
2256
- revokeSwap: GraphQLClient.Transaction;
2257
- }
2258
-
2259
- export interface ResponseSubscribe_RevokeWithdraw {
2260
- revokeWithdraw: GraphQLClient.Transaction;
2261
- }
2262
-
2263
- export interface ResponseSubscribe_SetupSwap {
2264
- setupSwap: GraphQLClient.Transaction;
2265
- }
2266
-
2267
- export interface ResponseSubscribe_Stake {
2268
- stake: GraphQLClient.Transaction;
2269
- }
2270
-
2271
- export interface ResponseSubscribe_SwapState {
2272
- swapState: GraphQLClient.SwapState;
2273
- }
2274
-
2275
- export interface ResponseSubscribe_SysUpgrade {
2276
- sysUpgrade: GraphQLClient.Transaction;
2277
- }
2278
-
2279
- export interface ResponseSubscribe_Topic {
2280
- topic: string;
2281
- }
2282
-
2283
- export interface ResponseSubscribe_Transfer {
2284
- transfer: GraphQLClient.Transaction;
2285
- }
2286
-
2287
- export interface ResponseSubscribe_UpdateAsset {
2288
- updateAsset: GraphQLClient.Transaction;
2289
- }
2290
-
2291
- export interface ResponseSubscribe_UpdateConsensusParams {
2292
- updateConsensusParams: GraphQLClient.Transaction;
2293
- }
2294
-
2295
- export interface ResponseSubscribe_UpdateValidator {
2296
- updateValidator: GraphQLClient.Transaction;
2297
- }
2298
-
2299
- export interface ResponseSubscribe_UpgradeNode {
2300
- upgradeNode: GraphQLClient.Transaction;
2301
- }
2302
-
2303
- export interface ResponseSubscribe_WithdrawToken {
2304
- withdrawToken: GraphQLClient.Transaction;
2305
- }
2306
-
2307
- export interface ResponseUnsubscribe {
2308
- code: string;
2309
- }
2310
-
2311
2163
  export interface RevokeDelegateTx {
2312
2164
  address: string;
2313
2165
  to: string;
@@ -2400,6 +2252,7 @@ declare namespace GraphQLClient {
2400
2252
  tokens: Array<null>;
2401
2253
  assets: Array<null>;
2402
2254
  revocable: boolean;
2255
+ message: string;
2403
2256
  context: GraphQLClient.StateContext;
2404
2257
  data: GraphQLClient.Any;
2405
2258
  }
@@ -2415,6 +2268,7 @@ declare namespace GraphQLClient {
2415
2268
  receiver: string;
2416
2269
  inputs: Array<null>;
2417
2270
  locked: boolean;
2271
+ message: string;
2418
2272
  data: GraphQLClient.Any;
2419
2273
  }
2420
2274
 
@@ -2640,29 +2494,11 @@ declare namespace GraphQLClient {
2640
2494
  required: boolean;
2641
2495
  }
2642
2496
 
2643
- export interface Vendor_Evidence {
2644
- type: string;
2645
- validator: GraphQLClient.Vendor_Validator;
2646
- height: number;
2647
- time: string;
2648
- totalVotingPower: number;
2649
- }
2650
-
2651
- export interface Vendor_Validator {
2652
- address: string;
2653
- power: number;
2654
- }
2655
-
2656
2497
  export interface Version {
2657
2498
  block: number;
2658
2499
  app: number;
2659
2500
  }
2660
2501
 
2661
- export interface VoteInfo {
2662
- validator: GraphQLClient.Vendor_Validator;
2663
- signedLastBlock: boolean;
2664
- }
2665
-
2666
2502
  export interface WalletType {
2667
2503
  pk: GraphQLClient.KeyType;
2668
2504
  hash: GraphQLClient.HashType;
@@ -2677,41 +2513,6 @@ declare namespace GraphQLClient {
2677
2513
  data: GraphQLClient.Any;
2678
2514
  }
2679
2515
 
2680
- export type ResponseSubscribeValue =
2681
- | GraphQLClient.ResponseSubscribe_Topic
2682
- | GraphQLClient.ResponseSubscribe_Transfer
2683
- | GraphQLClient.ResponseSubscribe_AccountMigrate
2684
- | GraphQLClient.ResponseSubscribe_Confirm
2685
- | GraphQLClient.ResponseSubscribe_CreateAsset
2686
- | GraphQLClient.ResponseSubscribe_Exchange
2687
- | GraphQLClient.ResponseSubscribe_BeginBlock
2688
- | GraphQLClient.ResponseSubscribe_EndBlock
2689
- | GraphQLClient.ResponseSubscribe_Declare
2690
- | GraphQLClient.ResponseSubscribe_UpdateAsset
2691
- | GraphQLClient.ResponseSubscribe_ConsensusUpgrade
2692
- | GraphQLClient.ResponseSubscribe_SysUpgrade
2693
- | GraphQLClient.ResponseSubscribe_Stake
2694
- | GraphQLClient.ResponseSubscribe_Delegate
2695
- | GraphQLClient.ResponseSubscribe_RevokeDelegate
2696
- | GraphQLClient.ResponseSubscribe_DepositToken
2697
- | GraphQLClient.ResponseSubscribe_WithdrawToken
2698
- | GraphQLClient.ResponseSubscribe_ApproveWithdraw
2699
- | GraphQLClient.ResponseSubscribe_RevokeWithdraw
2700
- | GraphQLClient.ResponseSubscribe_SetupSwap
2701
- | GraphQLClient.ResponseSubscribe_RevokeSwap
2702
- | GraphQLClient.ResponseSubscribe_RetrieveSwap
2703
- | GraphQLClient.ResponseSubscribe_ConsumeAsset
2704
- | GraphQLClient.ResponseSubscribe_AcquireAsset
2705
- | GraphQLClient.ResponseSubscribe_UpgradeNode
2706
- | GraphQLClient.ResponseSubscribe_UpdateValidator
2707
- | GraphQLClient.ResponseSubscribe_UpdateConsensusParams
2708
- | GraphQLClient.ResponseSubscribe_AccountState
2709
- | GraphQLClient.ResponseSubscribe_AssetState
2710
- | GraphQLClient.ResponseSubscribe_ForgeState
2711
- | GraphQLClient.ResponseSubscribe_DelegateState
2712
- | GraphQLClient.ResponseSubscribe_SwapState
2713
- | GraphQLClient.ResponseSubscribe_CreateToken;
2714
-
2715
2516
  export interface GetAccountStateParams {
2716
2517
  address: string;
2717
2518
  height: string;
@@ -2828,6 +2629,7 @@ declare namespace GraphQLClient {
2828
2629
  assetFilter: undefined;
2829
2630
  accountFilter: undefined;
2830
2631
  txFilter: undefined;
2632
+ rollupFilter: undefined;
2831
2633
  }
2832
2634
 
2833
2635
  export interface ListTokensParams {
@@ -2886,6 +2688,11 @@ declare namespace GraphQLClient {
2886
2688
  txFilter: undefined;
2887
2689
  }
2888
2690
 
2691
+ export interface ListRollupValidatorsParams {
2692
+ paging: undefined;
2693
+ rollupAddress: string;
2694
+ }
2695
+
2889
2696
  export interface SearchParams {
2890
2697
  paging: undefined;
2891
2698
  keyword: string;
@@ -2897,15 +2704,6 @@ declare namespace GraphQLClient {
2897
2704
  tx: string;
2898
2705
  wallet: string;
2899
2706
  }
2900
-
2901
- export interface UnsubscribeParams {
2902
- topic: string;
2903
- }
2904
-
2905
- export interface SubscribeParams {
2906
- filter: string;
2907
- topic: string;
2908
- }
2909
2707
  }
2910
2708
 
2911
2709
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/sdk",
3
3
  "description": "Forge javascript SDK packages all-in-one",
4
- "version": "1.13.37",
4
+ "version": "1.13.41",
5
5
  "author": {
6
6
  "name": "wangshijun",
7
7
  "email": "shijun@arcblock.io",
@@ -15,11 +15,11 @@
15
15
  "access": "public"
16
16
  },
17
17
  "dependencies": {
18
- "@arcblock/did-util": "1.13.37",
19
- "@ocap/client": "1.13.37",
20
- "@ocap/message": "1.13.37",
21
- "@ocap/util": "1.13.37",
22
- "@ocap/wallet": "1.13.37",
18
+ "@arcblock/did-util": "1.13.41",
19
+ "@ocap/client": "1.13.41",
20
+ "@ocap/message": "1.13.41",
21
+ "@ocap/util": "1.13.41",
22
+ "@ocap/wallet": "1.13.41",
23
23
  "debug": "^4.3.2",
24
24
  "react-app-polyfill": "^1.0.1"
25
25
  },
@@ -78,5 +78,5 @@
78
78
  "test": "node tools/jest.js",
79
79
  "coverage": "yarn test -- --coverage"
80
80
  },
81
- "gitHead": "b3a281b973b671358f70a7e248519bc2c573e3ac"
81
+ "gitHead": "39077b2a2205cf8a3da29eaa8b89d73e4411c994"
82
82
  }