Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makerdao/starknet-teleport-keeper
https://github.com/makerdao/starknet-teleport-keeper
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/makerdao/starknet-teleport-keeper
- Owner: makerdao
- Created: 2022-05-09T12:51:35.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T09:58:33.000Z (almost 2 years ago)
- Last Synced: 2023-04-04T02:07:03.670Z (almost 2 years ago)
- Language: TypeScript
- Size: 1.59 MB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Starknet DAI Keeper
## Config
Keeper settings:
* `FLUSH_DELAY` - minimum time in milliseconds between flushes
* `FLUSH_DELAY_MULTIPLIER` - number of `FLUSH_DELAY`'s to look back for flush l2->l1 messages
* `FLUSH_MINIMUM` - minimum amount of debt required to flush
* `TARGET_DOMAINS` - comma separated strings determining the target domains to flushSetup local config
* Run `cp .env.local.example .env.local`
* Set `INFURA_API_KEY` as well as the secrets for L1 and L2 signers.## Functions
Both functions only require output of `getConfig`
* `flush` - checks the amount of debt on each domain and calls sends `flush` tx to l2 if above `FLUSH_MINIMUM`
* `finalizeFlush` - checks for l2->l1 `flush` messages and sends `finalizeFlush` tx to l1## Running
`yarn keeper` will call the `flush` function and then the `finalizeFlush` function