@@ -22,35 +22,35 @@ use std::sync::Arc;
2222//TODO: build_rpc_trait! do not surppot trait bounds
2323build_rpc_trait ! {
2424 pub trait IntegrationTestRpc {
25- // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"submit_solution","params": [1]}' -H 'content-type:application/json' 'http://localhost:3030 '
25+ // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"submit_solution","params": [1]}' -H 'content-type:application/json' 'http://localhost:8114 '
2626 #[ rpc( name = "submit_pow_solution" ) ]
2727 fn submit_pow_solution( & self , u64 ) -> Result <( ) >;
2828
29- // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"send_transaction","params": [{"version":2, "deps":[], "inputs":[], "outputs":[]}]}' -H 'content-type:application/json' 'http://localhost:3030 '
29+ // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"send_transaction","params": [{"version":2, "deps":[], "inputs":[], "outputs":[]}]}' -H 'content-type:application/json' 'http://localhost:8114 '
3030 #[ rpc( name = "send_transaction" ) ]
3131 fn send_transaction( & self , Transaction ) -> Result <H256 >;
3232
33- // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"get_block","params": ["0x0f9da6db98d0acd1ae0cf7ae3ee0b2b5ad2855d93c18d27c0961f985a62a93c3"]}' -H 'content-type:application/json' 'http://localhost:3030 '
33+ // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"get_block","params": ["0x0f9da6db98d0acd1ae0cf7ae3ee0b2b5ad2855d93c18d27c0961f985a62a93c3"]}' -H 'content-type:application/json' 'http://localhost:8114 '
3434 #[ rpc( name = "get_block" ) ]
3535 fn get_block( & self , H256 ) -> Result <Option <BlockWithHash >>;
3636
37- // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"get_transaction","params": ["0x0f9da6db98d0acd1ae0cf7ae3ee0b2b5ad2855d93c18d27c0961f985a62a93c3"]}' -H 'content-type:application/json' 'http://localhost:3030 '
37+ // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"get_transaction","params": ["0x0f9da6db98d0acd1ae0cf7ae3ee0b2b5ad2855d93c18d27c0961f985a62a93c3"]}' -H 'content-type:application/json' 'http://localhost:8114 '
3838 #[ rpc( name = "get_transaction" ) ]
3939 fn get_transaction( & self , H256 ) -> Result <Option <TransactionWithHash >>;
4040
41- // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"get_block_hash","params": [1]}' -H 'content-type:application/json' 'http://localhost:3030 '
41+ // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"get_block_hash","params": [1]}' -H 'content-type:application/json' 'http://localhost:8114 '
4242 #[ rpc( name = "get_block_hash" ) ]
4343 fn get_block_hash( & self , u64 ) -> Result <Option <H256 >>;
4444
45- // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"get_tip_header","params": []}' -H 'content-type:application/json' 'http://localhost:3030 '
45+ // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"get_tip_header","params": []}' -H 'content-type:application/json' 'http://localhost:8114 '
4646 #[ rpc( name = "get_tip_header" ) ]
4747 fn get_tip_header( & self ) -> Result <Header >;
4848
49- // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"get_block_template","params": []}' -H 'content-type:application/json' 'http://localhost:3030 '
49+ // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"get_block_template","params": []}' -H 'content-type:application/json' 'http://localhost:8114 '
5050 #[ rpc( name = "get_block_template" ) ]
5151 fn get_block_template( & self ) -> Result <BlockTemplate >;
5252
53- // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"get_cells_by_type_hash","params": ["0x1b1c832d02fdb4339f9868c8a8636c3d9dd10bd53ac7ce99595825bd6beeffb3", 1, 10]}' -H 'content-type:application/json' 'http://localhost:3030 '
53+ // curl -d '{"id": 2, "jsonrpc": "2.0", "method":"get_cells_by_type_hash","params": ["0x1b1c832d02fdb4339f9868c8a8636c3d9dd10bd53ac7ce99595825bd6beeffb3", 1, 10]}' -H 'content-type:application/json' 'http://localhost:8114 '
5454 #[ rpc( name = "get_cells_by_type_hash" ) ]
5555 fn get_cells_by_type_hash( & self , H256 , u64 , u64 ) -> Result <Vec <CellOutputWithOutPoint >>;
5656
0 commit comments