-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from LIT-Protocol/multinetwork-auto-top-up-final
Multi-network Auto-top up documentation
- Loading branch information
Showing
5 changed files
with
25 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const DEFAULT_RECIPIENT_LIST_URL = | ||
'https://raw.githubusercontent.com/LIT-Protocol/lit-scheduled-tasks/blob/main/worker/recipient_list.json'; | ||
'https://raw.githubusercontent.com/LIT-Protocol/lit-scheduled-tasks/main/worker/recipient_list_habanero.json'; | ||
export const taskName = 'top-up capacity credits'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 🔥 LIT Scheduled Tasks Worker 🔧 | ||
|
||
Adding a recipient for auto-top-up is done by opening a pull request that adds your account and token details to the appropriate file in this directory. | ||
There is 1 file per supported network: | ||
|
||
### [Habanero](./recipient_list_habanero.json) | ||
|
||
### [Manzano](./recipient_list_manzano.json) | ||
|
||
Note that entries must match the following shape: | ||
|
||
```json | ||
{ | ||
"daysUntilExpires": 10, | ||
"recipientAddress": "<your PKP address here>", | ||
"requestsPerSecond": 10 | ||
} | ||
``` | ||
|
||
`recipientAddress` is required. `daysUntilExpires` and `requestsPerSecond` are optional, and will default to `10` if you do not provide them. |
This file was deleted.
Oops, something went wrong.