Jeff Schroeder
cb73b7b718
node/pkg/ethereum: fix a bug discovered in testnet
2022-06-24 23:40:24 -04:00
bruce-riley
cdc6edd425
Guardian eth nil event check ( #1300 )
...
* Guardian eth nil event check
* Check for number being nil in watcher
2022-06-23 09:40:04 -05:00
tbjump
4575fe05d9
Better lint and formatting ( #1263 )
...
Enforce goimports, add tooling and documentation, and run it on the repo.
2022-06-21 12:18:16 -07:00
bruce-riley
24c5b17267
Neon to testnet ( #1262 )
...
* WIP: neon
* Watcher support
* Use eth_getLogs for Neon
* bridge_ui: update sdk version
* Setting WETH address for Neon
* Portal bridge support for WNEON
* relayer: update sdk
Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-06-14 10:22:49 -04:00
Bruce Riley
cf8c97082b
Minor tweak to finalized check
2022-06-07 10:36:12 -04:00
Bruce Riley
0ac89c3c06
Move polygon stuff to a different branch
2022-06-07 10:36:12 -04:00
Bruce Riley
cf4722a546
Refactor to generalize polling
...
Change-Id: Ie30056486ec86f6dceffed231ac227fa9c3499a7
2022-06-07 10:36:12 -04:00
Bruce Riley
bc7834448e
Enhance error handling
...
Change-Id: Ied2521c0ebfc6bc8cf76ea90be6bc40dc0d811a3
2022-06-07 10:36:12 -04:00
Bruce Riley
9d423422c4
Rework the code
...
Change-Id: Id0aed3e3bce8f1e5332479132fab9437252909db
2022-06-07 10:36:12 -04:00
Bruce Riley
80512c0350
Initial rough draft
...
Change-Id: Ic2c8b15438162fd097e866f9a0ca1f6adf6a3f55
2022-06-07 10:36:12 -04:00
Leo
2a83ea406b
node/pkg/ethereum: move up nil check for TransactionReceipt
...
This fixes a null pointer dereference for a nil tx.
commit-id:a6a356b8
2022-05-05 09:04:54 -04:00
bruce-riley
a94a3cf2fb
Karura mainnet deploy ( #1142 )
...
* Start of move to mainnet
* Rework to safe mode check
* Update truffle-config
* Should not check safe mode in dev mode
2022-05-02 14:28:17 -04:00
bruce-riley
d04328b858
Celo testnet support ( #1051 )
...
* Initial Celo support
Change-Id: Iee98ee29a8b09af9ca76945792b750d96a170702
* Watcher support
* Fix high level make file
* Remove node binary committed by mistake
* Port change from EthWatcher to CeloWatcher
* Use docker to build ABIs
* Refactor watcher to eliminate massive redunancy
* Fix lint-and-tests to handle multiple defs on link
* Minor code cleanup
* Celo should use ganache in devnet
* Prep for mainnet deploy
* Code review rework
* Remove celo from sdk package.json
2022-04-28 12:20:38 -04:00
bruce-riley
87b36399d3
Add safe mode check ( #1108 )
...
Change-Id: Ida10e1ab0c056b4ed1ce2317800235843763a7ac
2022-04-26 07:51:10 -05:00
Leopold Schabel
1fd6e14885
node/pkg/ethereum: fix unreachable nil check
...
The program would've crashed on `l.Address` before it
could reach the nilness check.
commit-id:17b64899
2022-04-11 17:10:14 -04:00
Leopold Schabel
97aedff9f0
node/pkg/ethereum: restart watcher if guardian set update fails ( #1010 )
2022-04-11 21:07:19 +02:00
Jonathan Claudius
5921150f93
Add unit-test for ethereum utils ( #1022 )
2022-03-29 12:24:16 -04:00
bruce-riley
b718225e45
Testnet support for Aurora ( #947 )
...
* Testnet support
* Upgrade contract for 1conf
* Formatting changes
Change-Id: Id06481d77d770a04eb200aadb82574e23cddcd36
2022-03-15 10:41:10 -04:00
Leo
011987867a
pkg/ethereum: check receipt status code
...
commit-id:0b2539be
2022-03-07 17:53:42 -05:00
Leopold Schabel
d40a70a37f
node/pkg/ethereum: log blockhash for new message publications ( #910 )
2022-03-03 21:31:15 +01:00
Leo
c28b492e03
node: add reobservation requests for Eth chains
...
commit-id:e4fa6adf
2022-02-12 01:06:06 +01:00
Leo
8f63e123a5
node/pkg/ethereum: add MessageEventsForTransaction
...
This retrieves a single transaction's MessagePublication events. This
has the same security assumptions than listening to the log events -
namely, ensuring the right contract has emitted them.
Tested locally with a mainnet transaction.
commit-id:64347ecc
2022-02-12 01:06:06 +01:00
Leo
1c0815e107
node/pkg/ethereum: increase log levels
...
commit-id:8ec48eb6
2022-01-11 15:10:12 +01:00
Leo
870afc5193
node/pkg/ethereum: do not override outer scope's cancel function
...
Otherwise, we might end up cancelling the root context by accident.
commit-id:09a5287e
2022-01-11 15:10:12 +01:00
Leo
a5223c074a
node/pkg/ethereum: reduce timeout for TransactionReceipt
...
We should spend as little time holding pendingMu as possible.
Ideally, we would refactor the component to do non-blocking I/O.
commit-id:b464c384
2022-01-11 15:10:12 +01:00
Leo
146c08d5af
node/pkg/ethereum: correctly log "not found" error
...
commit-id:23a5fd80
2022-01-11 15:10:12 +01:00
Leo
81d1e821c0
node/pkg/ethereum: minimum confirmations for Polygon
...
commit-id:0d95a63c
2022-01-11 15:10:12 +01:00
Leo
33717ebcc9
node/pkg/ethereum: check for rpc.ErrNoResult with non-nil tx
...
This cannot currently happen the way TransactionReceipt is implemented,
but make sure to check the tx != nil case anyway in case the API
is changed in future releases of go-ethereum.
commit-id:b721f0be
2022-01-11 15:10:12 +01:00
Leo
5de9d11b51
node/pkg/ethereum: improve confirmation logging
...
Makes the log slightly nicer to grep when looking for a tx.
commit-id:dc7cd00a
2022-01-11 15:10:12 +01:00
Hendrik Hofstadt
409b5ca5bf
Properly check for orphaned txs
...
Change-Id: I2c3d1f638f6e6ab22c4dfcbbe0a0f5f6fd62f730
2022-01-07 10:31:37 -05:00
Evan Gray
e1257f123a
node: eth watcher multi-message fix
2022-01-04 10:44:46 -05:00
Leo
4ac19518bd
node: remove remaining "bridge" mentions
...
Ensure there's no core vs. token bridge ambiguity.
Breaking changes to the CLI:
* "guardiand bridge" CLI is now "guardiand node"
* --solanaBridgeAddress is now --solanaContract
* --bridgeKey is now --guardianKey
The Heartbeat proto message had one of its fields renamed from
BridgeAddress to ContractAddress, but this won't break the wire
format and the only consumer appears to be the CLI.
Change includes a "go mod tidy" - it insisted.
Change-Id: Id8b312827737f07f2d5f3944ebce469d946e7f51
2021-08-31 08:58:17 +00:00
Leo
e98463cfe3
node: rename bridge/ to node/
...
Calling guardiand a bridge dates back to v1 and no longer makes sense.
Change-Id: I27d24a5d7a64c3e37d6a5ce9c402c6248ad9c59e
2021-08-26 11:36:36 +02:00