Skip to content

Commit

Permalink
state snapshot.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhammer committed Aug 4, 2023
1 parent 5f7d472 commit 44b6f8e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion canisters/backend/Main.mo
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import State "State";

import System "System";
import History "History";
import Snapshot "Snapshot";

shared ({ caller = installer }) actor class Main() {

Expand Down Expand Up @@ -39,6 +40,10 @@ shared ({ caller = installer }) actor class Main() {

public shared ({ caller }) func getHistory() : async ?[History.Event] {
core.getHistory(caller);
}
};

public shared ({ caller }) func getState() : async ?[Snapshot.Entry] {
core.getState(caller);
};

};

0 comments on commit 44b6f8e

Please sign in to comment.