1.3.34 • Published 19 days ago

@uma/contract-notifier v1.3.34

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
github
Last release
19 days ago

UMA Contracts Notifier

This app continuously monitors UMA financial contracts and sends notifications based on predefined conditions. Currently the app implements only expiration notifications on EMP and LSP contracts..

Contract expiration notifier

Contract notifier uses UMA API to fetch all known financial contracts, filters soon to expire contracts and notifies them through logging mechanism that can forward it to Slack or any other configured transport mechanism. Notified contracts are stored on Google Datastore, so on repeated runs the application does not notify the same contracts.

Environment variables

The expiring contracts notifier uses following environment variables:

  • NOTIFIER_CONFIG is a JSON object containing application specific parameters:
    • maxTimeTillExpiration is maximum time in seconds till expiration for the contract to be included in the notification, defaulting to 1 week.
    • chainId indicates on which chain the monitored contracts are deployed, defaulting to 1 (Ethereum Mainnet).
    • apiEndpoint sets API to fetch contract information, defaulting to https://prod.api.umaproject.org. As each API endpoint serves its own network this parameter should be consistent with chainId above.
  • POLLING_DELAY is value in seconds for delay between consecutive runs, defaults to 1h. If set to 0 then running in serverless mode will exit after the loop.
  • BOT_IDENTIFIER identifies the application name in the logs.
  • ERROR_RETRIES is number of times to retry failed operation (e.g. due to API not responding). It defaults to 3 re-tries on error within the execution loop.
  • ERROR_RETRIES_TIMEOUT is time in seconds between re-tries, defaulting to 1 second.
  • SLACK_CONFIG is a JSON object containing defaultWebHookUrl for the default Slack webhook URL and escalationPathWebhookUrls being an object with webhook URLs for particular Slack channel routing.
  • GOOGLE_APPLICATION_CREDENTIALS points to Google Cloud Platform service account key file to access Google Datastore. This is only required when running the application locally.

Running expiring contracts notifier

From UMA protocol repository run:

yarn contract-notifier --network mainnet_mnemonic
1.3.34

19 days ago

1.3.33

2 months ago

1.3.29

10 months ago

1.3.31

7 months ago

1.3.32

6 months ago

1.3.30

7 months ago

1.3.25

1 year ago

1.3.28

1 year ago

1.3.26

1 year ago

1.3.27

1 year ago

1.3.24

1 year ago

1.3.18

1 year ago

1.3.19

1 year ago

1.3.20

1 year ago

1.3.21

1 year ago

1.3.22

1 year ago

1.3.23

1 year ago

1.3.17

1 year ago

1.3.10

2 years ago

1.3.14

1 year ago

1.3.11

1 year ago

1.3.12

1 year ago

1.3.15

1 year ago

1.3.16

1 year ago

1.3.9

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.8

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.2.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.1.0

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.12

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago