Commit Graph

415 Commits

Author SHA1 Message Date
justinschuldt 220a869b7b wormchain - contract deploy + test 2023-01-23 15:10:22 -06:00
Josh Siegel 04b0018cfe sui/guardian: more informative error messages 2023-01-23 11:00:09 -06:00
Josh Siegel bf70827fe7 sui: guardian watcher updates 2023-01-23 11:00:09 -06:00
Jeff Schroeder cd93c57d66 node: strip leading 0x for send-observation-request
This allows copying and pasting transactions from montioring tools or
an explorer to be reobserved.
2023-01-23 10:32:15 -05:00
tbjump 5323453b81
node: add channel read/write type constraints (#1931) 2023-01-20 13:15:13 -08:00
bruce-riley 53d554d93b
Node/Acct: batch requests (#2266)
* Node/Acct: batch requests

Change-Id: I3f950c73265f40b2542a9b1222b2df67cb1964b0

* Node/Acct: use vaa.Address in response

Change-Id: If20f2f75f81c616f30d3b0e1c250c5fb1351f3f2

* Node/Acct: Fix issues with defer

Change-Id: I9370458455da422985516e98f6047d85db822ca0

* Node/Acct: More PR rework

Change-Id: I6d4f549218c25976b7f312d45a2ad53cdeb9ca67

* Node/Acct: use Observation event in watcher

Change-Id: Id0bb7575569a75ef83f97d1297022672d2e693a9
2023-01-20 08:15:36 -06:00
Josh Siegel 588d7e629a node: ether block pollers need to wrap their supervisor runs 2023-01-19 07:18:59 -06:00
jumpsiegel 3580f51ccf
node/pythnet: websocket subscription (#2219)
* node/pythnet: websocket subscription
2023-01-18 11:24:55 -05:00
Kevin Peters 0a7f0dabf5 node: New default current guardian set index (3) 2023-01-17 11:12:58 -06:00
bruce-riley 09aee3cfde
Node/Acct: Renaming (#2245)
Change-Id: I20783b4ae4e445a54d45280e19332af87336a92a
2023-01-17 07:30:50 -06:00
bruce-riley 499c8424e4
Node: Initial guardiand changes for accounting (#2181)
* node: guardiand support for accounting

Change-Id: I97fe1f6d6d71a5803881ff4c793e3c30f22b14d8

* Node: Tie accounting into the guardian

Change-Id: I31600d18176f516b75b3eb046fd7ac6e54e1b133

* Node: accounting tests and metrics

Change-Id: Ieb139772edf464ed1ab202861babeaf0f857ad6b

* Node: minor tweak to accounting metrics

Change-Id: Iad2b7e34870734f0c5e5d538c0ac86269a9a4728

* Node: load accounting key

Change-Id: I228ce23e63b556d751000b97097202eda48650aa

* More work in progress

Change-Id: I85088d26c05cf02d26043cf6ee8c67efd13f2ea4

* Node: send observations to accounting contract

Change-Id: Ib90909c2ee705d5e2a7e6cf3a6ec4ba7519e2eb1

* Node: Fix lint error in accounting tests

Change-Id: Id73397cf45107243a9f68ba82bed3ccf2b0299b5

* Node: Need to copy libwasmvm.so

Change-Id: I2856c8964ca082f1f4014d6db9fb1b2dc4e64409

* Node: Rename wormchain to wormconn

Change-Id: I6782be733ebdd92b908228d3984a906aa4c795f7

* Node: moving accounting check after governor

Change-Id: I064c77d30514715c6f8b6b5da50806a5e1adf657

* Node: Add accounting status to heartbeat

Change-Id: I0ae3e476386cfaccc5c877ee1351dbe41c0358c7

* Node: start of accounting integration work

Change-Id: I8ad206eb7fc07aa9e1a2ebc321f2c490ec36b51e

* Node: More broadcast tx stuff

Change-Id: Id2cc83df859310c013665eaa9c6ce3033bb1d9c5

* Node: Can actually send a request to accounting

Change-Id: I6af5d59c53939f58b2f13ae501914bef260592f2

* Node: More accounting tx broadcast stuff

Change-Id: If758e49f8928807e87053320e9330c7208aad490

* Node: config changes for accounting

Change-Id: I2803cceb188d04c557a52aa9aa8ba7296da8879f

* Node: More accounting changes

Change-Id: Id979af0ec6ab8484bc094072f3febf39355351ca

* Node/Acct: Use new observation request format

* Node/acct: use new contract interface

* Node/acct: fix minor copy/paste error

* Node: Clean up comments and lint errors

* Node: disable accounting in dev by default

* Node: Fix test failure

* Remove test code

* Switch messages to debug, rename Run()

* check for "out of gas"

* Use worker routine to submit observations

* Rename mutex to reflect what it protects

* Create handleEvents func

* Remove FinalizeObservation

* Node/Acct: Trying to use tm library for watcher

* Node/acct: switch watcher to use tm library

* Node/Acct: Need separate WS parm for accounting

* Node/Acct: Fix compile error in tests

* Node/Acct: Minor rework

* Node: add wormchain as a dep to remove stale code

* Node/Acct: GS index is not correct in requests

* Node/Acct: Peg connection error metric

* Node/Acct: Add wormchain to node docker file

* Node/Acct: Fix for double base64 decode

* Node/Acct: Change public key to sender address

* Node/Acct: Fix lint error

* Node/Acct: key pass phrase change

* Node/Acct: Pass guardian index in obs req

* Node/Acct: No go on submit observation

* Node/Acct: Don't double encode tx_hash

* Node/Acct: Remove unneeded base64 encoding

* Node/Acct: handle submit channel overflow

* Node/Acct: Added a TODO to document a review issue

* Node/Acct: Fix for checking if channel is full

Co-authored-by: Conor Patrick <conorpp94@gmail.com>
2023-01-16 06:33:01 -06:00
tbjump 5c41d343ca node: add logging for public rpc requests 2023-01-14 15:07:30 -05:00
Josh Siegel 3de4f875dc node/cosmwasm: restructure a little
node/cosmwasm: convert from gorilla to nhooyr
2023-01-13 07:33:50 -06:00
Josh Siegel 1178f6ed6c node/ether: scissors updates 2023-01-12 14:46:45 -06:00
Hendrik Hofstadt fc64658ce8
node: add admin command to sign existing VAAs (#2183)
* node: add admin command to sign existing VAAs

Change-Id: Ia59c077db1817a3f35ec30544c307448e01455ca

* node: add tests for signing of existing VAAs

Change-Id: I16fca1181fc9d96abb4ebdfad91bc686da517090
2023-01-10 17:54:35 +01:00
bruce-riley f41eebe0b3
Node: EVM watcher tests, phase1 (#1915)
* Node: EVM watcher tests, phase1

Change-Id: I8bbcebc52e3a4e70dda8ea5b53001a2b913c7f9a

* Update optimism tests to match latest code

Change-Id: Ib19c815e80d821c2df7ffc416ab3b8b6f2b91b18

* Clean up poller test

Change-Id: I4176ceacefe781d22174e91815309188b31ccf6a

* Node: rework for evm watcher tests

Change-Id: Idc7bbe4a95402e8af536cef53a4dd2daaa181de1

* Node: More evm watcher test rework

Change-Id: Ibb6466cf425b07bb771a51a3d2131bce73e0dd97

* Node: fix lint errors in evm watcher tests

Change-Id: I6d62cb35c43b20d36c72824fb17a0b4c912fe504

* Node: Fix lint errors in evm tests

Change-Id: Iadd08bd294dc2c6206e04217ef06836507edf1ec
2023-01-05 07:39:33 -06:00
Josh Siegel 0872f4ff16 algorand/recover: format fix 2023-01-05 05:05:40 -06:00
Josh Siegel b3d2f838cd algorand/recover: Address #2192 2023-01-05 05:05:40 -06:00
Josh Siegel 04ed27cb3f node: Simplify WrapWithScissors and make AlgorandWatcher use it 2023-01-05 05:05:40 -06:00
Josh Siegel 4ddeca4dbd node: switch to use recovery and cleanly restart watcher 2023-01-04 13:49:32 -06:00
Jonathan Claudius 98c843e85d
sdk: Add unit-tests for quorum calculation (#2127)
* sdk: Add unit-tests for quorum calculation

* sdk: fix go imports error

* node: remove duplicate sdk unit-test
2022-12-27 13:27:47 -05:00
heyitaki b7d870efcb docker: reorganize dockerfiles 2022-12-21 10:58:22 -08:00
kev1n-peters f39acdbe1c
node: Terra Classic Governor Limits Change (#2090)
See discussion: https://github.com/wormhole-foundation/wormhole/discussions/2087
2022-12-08 11:46:09 -06:00
kev1n-peters c94ad13c8c
node: Injective mainnet support (#2084) 2022-12-07 13:43:44 -06:00
Nikhil Suri 0e7c085d71
node: inject wormchain cosmwasm governance messages (#2057)
* node: inject wormchain cosmwasm governance messages

* Use nested hash for defense in depth

* Use keccak.Reset() instead of creating new hash objects

* fix msg_server_wasmd_test

* Updated based on jynnantonix comments

* Check return value of binary.Write

* Include actual error in binary.Write panic case
2022-12-06 11:10:32 -08:00
jumpsiegel 759550715a
near/fix-stats: Fix network stats for near (#2077)
* near/fix-stats: Fix network stats for near
2022-12-05 07:24:44 -06:00
Bruce Riley 16e8bb347e Node: Polygon checkpoint logging
Change-Id: I31305812cc784845aa98497ada24b2a2041cad71
2022-12-02 10:18:06 -05:00
Josh Siegel 3e0cabc70f algo/fix: go mod tidy 2022-12-02 09:51:51 -05:00
Josh Siegel 133523bd57 algo/fix: switch to using last round 2022-12-02 09:51:51 -05:00
Paul Noel 976d8430c6
Optimism finality (#2037)
* node/pkg: update optimism finality

* node/pkg: fix tilt test

* node/pkg: CI changes
2022-12-02 07:38:45 -06:00
Conor Patrick 63a5654c02 wormchain: add admin-sign command to continue wormchain validator enrollment 2022-11-30 09:23:19 -06:00
Hendrik Hofstadt 56645faaad watcher: fix near typos / docs
Change-Id: I7e271945e8d636b08e384f09359ad8aebf708103
2022-11-30 09:36:07 -05:00
Hendrik Hofstadt 97f302e7d8 watcher: simplify near watcher
Change-Id: If1f646de29c04ab58f5b5ae90b8cbb1f2803fcc0
2022-11-30 09:36:07 -05:00
Hendrik Hofstadt ff186e441a rename dev.v2 to main
Change-Id: Idfc6f88de7ee3c190a01c2196dc0bc4da91cbe4c
2022-11-29 10:43:07 -05:00
tbjump e2f3f69e2b
node/p2p: separate governor config and status message prefix (#1956)
Co-authored-by: tbjump <unknown>
2022-11-28 10:58:26 -06:00
tbjump 17e732c741
node/p2p: enforce ObservationRequest signature payload >= 34 bytes (#1992)
Co-authored-by: tbjump <>
2022-11-28 10:42:39 -06:00
tbjump 200fee61a8
node/p2p: enforce minimum heartbeat message length (#1958)
Co-authored-by: tbjump
2022-11-28 10:23:34 -06:00
bruce-riley 95fd892bec
Node: Support for EVM watcher safe blocks (#1727)
* Node: Support for EVM watcher safe blocks

* Fix merge error

* Add check of publishSafeBlocks if not useFinalized
2022-11-28 07:55:35 -06:00
jumpsiegel 091ee0877d
WH-1934: upgrade golang to 1.19 (#1941)
* upgrade to golang 1.19.3

Co-authored-by: tbjump <>
Co-authored-by: tbjump <unknown>
2022-11-28 07:48:27 -06:00
tbjump cddfe74b67
node: forward public REST requests to public gRPC (#1695)
* forward public REST requests to public gRPC

* handle publicPRC address differently

* add config flag publicGRPCSocketPath

* start publicrpcsocket and forward publicweb to publicrpcsocket

* clarify error message

* add --publicGRPCSocket to testnet

Co-authored-by: tbjump <>
2022-11-18 07:36:22 -08:00
jumpsiegel 402a2d1a30
Basic Sui watcher support (#1951) 2022-11-18 08:14:22 -06:00
Josh Siegel 3413f09b8f WH-1921: stub out btc chain @ Closes #1921 2022-11-15 14:45:55 -06:00
bruce-riley ee1868205d
Node: Rework min/max confs for EVM watchers (#1849)
* Node: Rework max/min confs for EVM

* Increase maxWaitConfirmations
2022-11-14 20:38:04 -05:00
bruce-riley 6de97de242
Node: Neon Watcher Redesign (#1899)
* Node: Neon Watcher Redesign: Issue #1898

* Minor code tweaks

* Get rid of log message

* Updated a comment
2022-11-14 08:07:45 -06:00
tbjump 29e764d013
node: NEAR watcher rewrite (#1673)
add unit tests
make the code more readable
make it more robust to various error conditions
report errors and performance metrics appropriately
Co-authored-by: tbjump jumpsiegel
2022-11-11 07:24:55 -08:00
bruce-riley ce1ca0b155
Node: Polygon watcher redesign (#1858) 2022-11-11 08:12:16 -06:00
bruce-riley 9ae4186e68
Node: Simplify unsafeDevMode testing (#1892)
Change-Id: Ieca0f5d2765ee55b716bc4015900fd52f79d1dfe
2022-11-10 16:27:39 -06:00
bruce-riley 074c98a952
Optimism mainnet deploy (#1869)
* Optimism mainnet deploy

* node: added OP token to manual_tokens

* Add to readiness

* File should not have been committed

* Remove readiness since it goes with watcher

* Allow optimism watcher in mainnet

* Add to devnet config

Co-authored-by: Christine Eun <ceun@jumptrading.com>
2022-11-10 13:56:38 -06:00
bruce-riley cea87d344c
Node: Increase bigtable writer channel size (#1889)
* Node: Increase bigtable writer channel

Change-Id: I981e80b771a68aee744ff5109be2d299004fd1a9

* Change message wording

Change-Id: I4af6dbc3b77c6133c8a129e0b20b6aebbbe39ab3
2022-11-10 12:41:47 -06:00
bruce-riley bc1a740cfa
node: optimism watcher support (#1746) 2022-11-10 07:50:08 -06:00