Ali Behjati
f1d8d9cd50
Abehjati/price-service-add-rest-layer ( #167 )
...
* Add rest api for latest vaa
2022-04-11 17:46:42 +02:00
Ali Behjati
7e6750971d
Rename p2w to pyth price service ( #166 )
2022-04-08 17:29:13 +02:00
Ali Behjati
36d04d4e7b
Create p2w-api base (from p2w-relay) ( #142 )
...
* Create p2w-api base (from p2w-relay)
* Refactor project structure
2022-04-08 10:53:49 +02:00
Ali Behjati
60113cdac9
Move p2w relayer parsing to p2w sdk js ( #162 )
...
* Move Price Attestation parsing logic to the sdk
2022-04-06 17:15:42 +02:00
Stan Drozd
3bde2eed9a
pyth2wormhole: add max_num_publishers to cross-chain metadata
...
commit-id:7550fa50
2022-04-05 15:55:51 +02:00
Stan Drozd
830b001a78
pyth2wormhole: Add num_publishers to libraries and contracts
...
commit-id:f7263eed
2022-04-05 15:27:18 +02:00
Stan Drozd
1e947d77e4
p2w-evm-relay: s/async (e)/(e)/
...
commit-id:11b3a474
2022-03-30 15:56:07 +01:00
Stan Drozd
8d38f65278
p2w-relay: Correct outdated comment
...
commit-id:d0b57d33
2022-03-30 15:49:07 +01:00
Stan Drozd
b65598aad3
p2w-relay: harden exception handling, yell about uncaught stuff
...
commit-id:24e14835
2022-03-30 15:20:01 +01:00
Ali Behjati
862aa604df
Change websocket to json socket to support bsc testnet + improves env vars ( #139 )
...
* Change websocket to json socket to support bsc testnet + imporving env vars
2022-03-30 12:13:54 +02:00
Stan Drozd
21b78cdd4c
p2w-relay: typos and leftovers
...
commit-id:9b523b25
2022-03-30 10:44:26 +01:00
Stan Drozd
8974972f0a
p2w-relay: formatter, remove getcode() from relay(), add comments
...
commit-id:1a65c52c
2022-03-29 16:34:10 +01:00
Stan Drozd
645a84c758
p2w-relay: cache wormhole import
2022-03-25 21:26:55 +01:00
Stan Drozd
b1b964d326
p2w-evm-relay: make feed verification queries configurable
2022-03-25 21:10:33 +01:00
Stan Drozd
f927916613
p2w-relay: review nits
2022-03-25 20:55:50 +01:00
Stan Drozd
00c736d912
Merge remote-tracking branch 'origin/dev.v2' into drozdziak1/p2w-evm-relay
...
# Conflicts:
# third_party/pyth/p2w-relay/Dockerfile.pyth_relay
# third_party/pyth/p2w-relay/src/relay/terra.ts
2022-03-25 20:55:04 +01:00
Ali Behjati
e36218aca5
Update dockerfile to chown less files ( #121 )
...
* Update dockerfile to chown sooner
2022-03-25 17:54:12 +01:00
Ali Behjati
aaa44adef1
Make terra relayer more resillient ( #120 )
...
- Increase retry attempts (4 to 6) and retry_delay (250ms to 1s) to be more resillient
- This is because when account sequence mismatch happens it might take some time be fixed
- Removed estimate fee because it's being done in wallet.createAndSignTx (less requests)
- Improved logging on when error happens
2022-03-25 17:53:42 +01:00
Stan Drozd
cfaa813352
evm.ts: Fix wording in changed/unchanged logs
...
commit-id:13c81625
2022-03-25 16:11:41 +01:00
Stan Drozd
9efc7cd4e6
p2w-relay: Also implement the contract check in EVM relay()
...
commit-id:e28709e5
2022-03-25 15:39:47 +01:00
Stan Drozd
7860073c2d
p2w-evm-relay: Fix wrong EVM contract ID, add a check for it
...
This commit takes care of an outdated pyth2wormhole EVM contract
address and implements a contract/non-contract check using
web3.eth.getCode() (empty for non-contracts).
This problem cost us several hours of debugging and resulted from an
EVM gotcha - a contract call to a non-contract address will simply
ignore the call payload and make a plain transfer. Additionally, ETH
accounts don't have a notion of initialization - used and unused
addresses are equally valid tx recipients. Resulting from both
properties, any unused address could potentially yield wrongly
successful calls, wasting funds and debug time over p2w-relay. Thus
the heuristic to protect us from this is to see if the address' code
storage is populated.
commit-id:b655a720
2022-03-25 15:01:47 +01:00
Stan Drozd
19faedc7ab
p2w-terra-relay: Fix evm.ts after contract rename
...
commit-id:87381bec
2022-03-25 12:34:20 +01:00
Stan Drozd
b8697408a3
Add the query() call
...
commit-id:02966ce5
2022-03-24 18:43:54 +01:00
Stan Drozd
4d9e1fbb20
p2w-relay: PythImplementation -> PythUpgradable
...
commit-id:bfea7eb5
2022-03-24 17:41:59 +01:00
Stan Drozd
b9f73589d6
p2w-terra-relay -> p2w-relay, split EVM relay into new service
...
commit-id:36d0db6e
2022-03-24 15:04:54 +01:00
Stan Drozd
c961410b5d
Merge remote-tracking branch 'origin/dev.v2' into drozdziak1/p2w-evm-relay
...
commit-id:5f393900
2022-03-24 14:48:01 +01:00
Ali Behjati
2c37465618
Add health probe ( #107 )
2022-03-24 11:32:56 +01:00
Stan Drozd
4776ff30c7
p2w-terra-relay: Add a query() EVM call and Tilt boilerplate
...
commit-id:f97d0c16
2022-03-23 17:52:18 +01:00
Ali Behjati
637d529918
Add fee estimate for terra relay ( #112 )
2022-03-23 15:29:32 +01:00
Ali Behjati
80f90d66fa
Remove unused components from wormhole ( #108 )
...
* Remove unused components from wormhole
Removes the following:
- explorer
- e2e
- bridge_ui
- algorand stuff (teal dockerfile and third_party/algorand)
- ci_tests (testing directory) which are for JS/Bridge UI
2022-03-23 13:02:58 +01:00
Stan Drozd
a27c71126f
p2w-terra-relay: Admit loss against mkdir -p
...
commit-id:3abdb58d
2022-03-23 11:50:21 +01:00
Stan Drozd
9c533d583b
Merge remote-tracking branch 'origin/dev.v2' into drozdziak1/p2w-relay-evm
...
commit-id:d5b1a04d
2022-03-23 11:25:27 +01:00
Stan Drozd
3eeda53356
Dockerfile.pyth_relay: Fix lockfile issue in ethereum
...
This commit fixes a lockfile issue resulting from newer NPM in our
container.
Specifically, our Dockerfile is pinned, relaxes Ethereum's
lockfile (npm ci -> npm install) and hardens our lockfile (npm install
-> npm ci)
commit-id:3381c8ec
2022-03-23 11:22:45 +01:00
Ali Behjati
f07a223977
Remove dependency to wormhole sdk as path and cleanup wrong eth copies ( #104 )
2022-03-23 10:00:09 +01:00
Stan Drozd
5ec8cff437
p2w-terra-relay: EVM boilerplate
...
commit-id:8ad73ded
2022-03-22 17:58:06 +01:00
Stan Drozd
c7008e1b46
Run formatter to trigger CI
...
commit-id:7c643d79
2022-03-22 15:39:09 +01:00
Stan Drozd
08358da4df
p2w-terra-relay: apply review nits
...
commit-id:5034b061
2022-03-22 11:05:55 +01:00
Stan Drozd
53a73c5b67
Merge remote-tracking branch 'origin/dev.v2' into drozdziak1/p2w-relay-iface-integrate-terra
...
commit-id:0749da54
2022-03-22 10:19:35 +01:00
Stan Drozd
0ad479bcbb
p2w-terra-relay: run formatter
...
commit-id:df311e23
2022-03-22 10:17:38 +01:00
Ali Behjati
e601fdcfc9
Update worket to handle timeout in callback correctly ( #97 )
2022-03-21 18:36:08 +01:00
Stan Drozd
c502ed3684
terra.ts: add missing return statement
...
commit-id:ba0365e6
2022-03-21 14:37:05 +01:00
Stan Drozd
1be4c84bad
p2w-terra-relay: make worker.ts generic w.r.t. Relay interface
...
commit-id:5937a08c
2022-03-21 14:12:21 +01:00
Stan Drozd
0f445b3a75
p2w-terra-relay: apply review nits
...
commit-id:aec39c85
2022-03-18 13:36:45 +01:00
Stan Drozd
c8e87063c9
Merge remote-tracking branch 'origin/dev.v2' into drozdziak1/p2w-terra-relay-iface-impl
...
commit-id:324eae28
2022-03-18 13:19:18 +01:00
Stan Drozd
67c7e34809
p2w-terra-relay: iface.ts review nits, naive impl for Terra
...
commit-id:0ecbfdd6
2022-03-17 15:49:57 +01:00
Stan Drozd
d9cbde7255
p2w-terra-relay: ignore lib and node, own project dir in docker
...
commit-id:b084bc40
2022-03-17 15:07:02 +01:00
Ali Behjati
9ebcec4675
update p2w sdk to new pyth ( #91 )
...
* p2w-sdk/rust use pyth sdk solana v2
2022-03-17 10:49:51 +01:00
Stan Drozd
6916266fa7
p2w relay interface: remove config from Relay iface
...
commit-id:0359d886
2022-03-16 13:49:48 +01:00
Stan Drozd
e852fc5d89
p2w-relay-iface -> p2w-relay-terra/src/relay/iface.ts
...
commit-id:ed9846e3
2022-03-16 13:47:03 +01:00
Stan Drozd
6058ec33d5
[WIP] p2w-relay-iface: Add NPM package with relayer interface PoC
...
commit-id:efcb9b34
2022-03-15 18:20:12 +01:00