File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ pub(crate) use governance_api::GovernanceReadApi;
7
7
pub ( crate ) use indexer_api:: IndexerApi ;
8
8
pub ( crate ) use indexer_api_v2:: IndexerApiV2 ;
9
9
pub ( crate ) use move_utils:: MoveUtilsApi ;
10
+ pub ( crate ) use move_utils_v2:: MoveUtilsApiV2 ;
10
11
pub ( crate ) use read_api:: ReadApi ;
11
12
pub ( crate ) use transaction_builder_api:: TransactionBuilderApi ;
12
13
pub ( crate ) use transaction_builder_api_v2:: TransactionBuilderApiV2 ;
Original file line number Diff line number Diff line change @@ -22,20 +22,18 @@ use sui_types::move_package::normalize_modules;
22
22
23
23
use crate :: indexer_reader:: IndexerReader ;
24
24
25
- pub struct MoveUtilsApi {
25
+ pub struct MoveUtilsApiV2 {
26
26
inner : IndexerReader ,
27
27
}
28
28
29
- impl MoveUtilsApi {
30
- // TODO remove this after integration is done
31
- #[ allow( dead_code) ]
29
+ impl MoveUtilsApiV2 {
32
30
pub fn new ( inner : IndexerReader ) -> Self {
33
31
Self { inner }
34
32
}
35
33
}
36
34
37
35
#[ async_trait]
38
- impl MoveUtilsServer for MoveUtilsApi {
36
+ impl MoveUtilsServer for MoveUtilsApiV2 {
39
37
async fn get_normalized_move_modules_by_package (
40
38
& self ,
41
39
package_id : ObjectID ,
@@ -151,7 +149,7 @@ impl MoveUtilsServer for MoveUtilsApi {
151
149
}
152
150
}
153
151
154
- impl SuiRpcModule for MoveUtilsApi {
152
+ impl SuiRpcModule for MoveUtilsApiV2 {
155
153
fn rpc ( self ) -> RpcModule < Self > {
156
154
self . into_rpc ( )
157
155
}
Original file line number Diff line number Diff line change 1
1
// Copyright (c) Mysten Labs, Inc.
2
2
// SPDX-License-Identifier: Apache-2.0
3
3
4
- use crate :: apis:: { IndexerApiV2 , TransactionBuilderApiV2 } ;
4
+ use crate :: apis:: { IndexerApiV2 , MoveUtilsApiV2 , TransactionBuilderApiV2 } ;
5
5
use crate :: errors:: IndexerError ;
6
6
use crate :: indexer_reader:: IndexerReader ;
7
7
use crate :: metrics:: IndexerMetrics ;
@@ -104,6 +104,7 @@ pub async fn build_json_rpc_server(
104
104
105
105
builder. register_module ( IndexerApiV2 :: new ( reader. clone ( ) ) ) ?;
106
106
builder. register_module ( TransactionBuilderApiV2 :: new ( reader. clone ( ) ) ) ?;
107
+ builder. register_module ( MoveUtilsApiV2 :: new ( reader. clone ( ) ) ) ?;
107
108
// builder.register_module()...
108
109
109
110
let default_socket_addr: SocketAddr = SocketAddr :: new (
You can’t perform that action at this time.
0 commit comments