Skip to content

Commit

Permalink
docs: show where makeFollower() comes from
Browse files Browse the repository at this point in the history
where does makeDefaultLeader come from?
  • Loading branch information
dckc committed Apr 11, 2023
1 parent eb071fe commit 50c8e26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/inter-protocol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ To maintain that the keys of vaults to liquidate are stable requires that its ke

VaultFactory publishes data using StoredPublishKit which tees writes to off-chain storage. These can then be followed off-chain like so,
```js
import { makeFollower } from '@agoric/casting';

const key = `published.vaultFactory.metrics`; // or whatever the stream of interest is
const leader = makeDefaultLeader();
const follower = makeFollower(storeKey, leader);
Expand Down

0 comments on commit 50c8e26

Please sign in to comment.