refactor checkpoint

This commit is contained in:
John Smith
2022-06-07 21:31:05 -04:00
parent 182af30b97
commit 1d8c63786a
28 changed files with 822 additions and 626 deletions

View File

@@ -1,55 +1,20 @@
@0xd29582d26b2fb073;
enum AttachmentState {
detached @0;
attaching @1;
attachedWeak @2;
attachedGood @3;
attachedStrong @4;
fullyAttached @5;
overAttached @6;
detaching @7;
}
struct VeilidStateAttachment {
state @0 :AttachmentState;
}
struct VeilidStateNetwork {
started @0 :Bool;
bpsDown @1 :UInt64;
bpsUp @2 :UInt64;
}
struct VeilidUpdate {
union {
attachment @0 :VeilidStateAttachment;
network @1 :VeilidStateNetwork;
shutdown @2 :Void;
}
}
struct VeilidState {
attachment @0 :VeilidStateAttachment;
network @1 :VeilidStateNetwork;
}
interface Registration {}
interface VeilidServer {
register @0 (veilidClient: VeilidClient) -> (registration: Registration, state: VeilidState);
register @0 (veilidClient: VeilidClient) -> (registration: Registration, state: Text);
debug @1 (what: Text) -> (output: Text);
attach @2 ();
detach @3 ();
shutdown @4 ();
getState @5 () -> (state: VeilidState);
getState @5 () -> (state: Text);
}
interface VeilidClient {
update @0 (veilidUpdate: VeilidUpdate);
logMessage @1 (message: Text);
update @0 (veilidUpdate: Text);
}