Skip to content

Commit 01722b9

Browse files
committed
shim: dock module
why not adapter? Well, adapter kinda fits, but if you think about it, not quite. What is adapter? First of all, the adapter came from sovereign. So it's a term from the rollup development kit. However, on the shim side it provides something else, specifically an infra supporting adapter implementation, not the adapter implementation itself. What it is, is kind of a port where the adapter could be inserted. A port is a good name, but it's already has a connotation of "--port 80". To avoid confusion, I picked "dock". A short concise name.
1 parent bfd146e commit 01722b9

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

sugondat-shim/src/cmd/serve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{
2-
adapters::sovereign::SovereignAdapter,
2+
dock::sovereign::SovereignAdapter,
33
cli::{serve::Params, AdapterServerParams},
44
key::Keypair,
55
sugondat_rpc::Client,
@@ -29,7 +29,7 @@ async fn connect_client(url: &str) -> anyhow::Result<Client> {
2929
}
3030

3131
fn init_adapters(
32-
client: Client,
32+
client: Client,
3333
adapter: &AdapterServerParams,
3434
maybe_key: Option<Keypair>,
3535
) -> Methods {
File renamed without changes.

sugondat-shim/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mod adapters;
1+
mod dock;
22
mod cli;
33
mod cmd;
44
mod key;

0 commit comments

Comments
 (0)