1- interface hypermap- binding-cacher {
1+ interface binding-cacher {
22 // Metadata associated with a batch of Ethereum logs.
3- record logs-metadata {
3+ record binding- logs-metadata {
44 chain-id : string ,
55 from-block : string ,
66 to-block : string ,
@@ -10,47 +10,47 @@ interface hypermap-binding-cacher {
1010 }
1111
1212 // Represents an item in the manifest, detailing a single log cache file.
13- record manifest-item {
14- metadata : logs-metadata ,
13+ record binding- manifest-item {
14+ metadata : binding- logs-metadata ,
1515 is-empty : bool ,
1616 file-hash : string ,
1717 file-name : string ,
1818 }
1919
2020 // The main manifest structure, listing all available log cache files.
2121 // WIT does not support direct map types, so a list of key-value tuples is used.
22- record manifest {
22+ record binding- manifest {
2323 // The key is the filename of the log cache.
24- items : list <tuple <string , manifest-item >>,
24+ items : list <tuple <string , binding- manifest-item >>,
2525 manifest-filename : string ,
2626 chain-id : string ,
2727 protocol-version : string ,
2828 }
2929
30- record get-logs-by-range-request {
30+ record binding- get-logs-by-range-request {
3131 from-block : u64 ,
3232 to-block : option <u64 >, // If None, signifies to the latest available/relevant cached block.
3333 }
3434
35- variant get-logs-by-range-ok-response {
35+ variant binding- get-logs-by-range-ok-response {
3636 logs (tuple <u64 , string >),
3737 latest (u64 ),
3838 }
3939
40- // Defines the types of requests that can be sent to the Hypermap Binding Cacher process.
41- variant cacher-request {
40+ // Defines the types of requests that can be sent to the Hypermap Cacher process.
41+ variant binding- cacher-request {
4242 get-manifest ,
4343 get-log-cache-content (string ),
4444 get-status ,
45- get-logs-by-range (get-logs-by-range-request ),
45+ get-logs-by-range (binding- get-logs-by-range-request ),
4646 reset (option <list <string >>),
4747 start-providing ,
4848 stop-providing ,
4949 set-nodes (list <string >),
5050 }
5151
5252 // Represents the operational status of the cacher.
53- record cacher-status {
53+ record binding- cacher-status {
5454 last-cached-block : u64 ,
5555 chain-id : string ,
5656 protocol-version : string ,
@@ -61,12 +61,12 @@ interface hypermap-binding-cacher {
6161 is-providing : bool ,
6262 }
6363
64- // Defines the types of responses the Hypermap Binding Cacher process can send.
65- variant cacher-response {
66- get-manifest (option <manifest >),
64+ // Defines the types of responses the Hypermap Cacher process can send.
65+ variant binding- cacher-response {
66+ get-manifest (option <binding- manifest >),
6767 get-log-cache-content (result <option <string >, string >),
68- get-status (cacher-status ),
69- get-logs-by-range (result <get-logs-by-range-ok-response , string >),
68+ get-status (binding- cacher-status ),
69+ get-logs-by-range (result <binding- get-logs-by-range-ok-response , string >),
7070 start-providing (result <string , string >),
7171 stop-providing (result <string , string >),
7272 set-nodes (result <string , string >),
@@ -156,7 +156,7 @@ interface hypermap-cacher {
156156
157157world hypermap-cacher-sys-v1 {
158158 import sign ;
159- import hypermap- binding-cacher ;
159+ import binding-cacher ;
160160 import hypermap-cacher ;
161161 include process-v1 ;
162162}
0 commit comments