wormhole/node/hack/governor
bruce-riley bfeaa93716
node: governor auto release (#1452)
* Initial code

* Add test cases

* Get rid of excessive logging of price updates

* Add big tx size to available notional query

* Add tool to verify  price query still works

* Fix lint error

* Rename check_query.go

* Set big transaction sizes

* More rework

* Add unit-test for big transfer config

* Fix unit tests after updates for Near

* Add a couple more test cases

Co-authored-by: claudijd <jclaudius@jumptrading.com>
2022-08-30 11:28:18 -05:00
..
src node: governor auto release (#1452) 2022-08-30 11:28:18 -05:00
.gitignore Chain governor (#1277) 2022-07-19 14:08:06 -04:00
README.md node: governor auto release (#1452) 2022-08-30 11:28:18 -05:00
check_query.go node: governor auto release (#1452) 2022-08-30 11:28:18 -05:00
include_list.csv node: governor tweaks (#1422) 2022-08-16 15:22:24 -05:00
package-lock.json Chain governor (#1277) 2022-07-19 14:08:06 -04:00
package.json node: governor tweaks (#1422) 2022-08-16 15:22:24 -05:00
tsconfig.json Chain governor (#1277) 2022-07-19 14:08:06 -04:00

README.md

This tool can be used to generate the list of tokens to be monitored by the chain governor. It works by querying the notional TVL data from Portal and populating the tokens.go file in the governor package with everything over the hard coded minimal notional value.

To update the minimal notional value, edit src/index.ts and change the value of MinNotional.

Additionally, you can create an include_list.csv file in this directory where the contents are of the form ",", and all tokens listed there will be included in the generated token list, regardless of their notional value.

To run this tool, do:

npm ci
npm run start

To verify that the Coin Gecko query still works with the new token list, do:

go run check_query.go

You can then commit the updated version of node/pkg/governor/tokens.go.