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
Stanisław Drozd
c093c29566
Merge pull request #70 from pyth-network/drozdziak1/p2w-unit-testing
...
pyth2wormhole-client: unit testing boilerplate + working happy path scenario
2022-04-07 10:56:18 +01:00
Stan Drozd
615c95c87f
pyth2wormhole: Add contract testing boilerplate for attest()
...
commit-id:51949fbe
2022-04-06 21:30:33 +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
Stanisław Drozd
ad916cf21c
Merge pull request #161 from pyth-network/drozdziak1/p2w-metadata
...
p2w [max_]num_publishers metadata
2022-04-06 14:24:23 +01: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
Ali Behjati
ce177b7038
Remove wormhole contract from wasm generation ( #160 )
2022-04-04 14:53:13 +02:00
Ali Behjati
ec7746b3d5
Remove sdk/spydk from wasm and remove buf gen web yaml ( #145 )
2022-04-01 19:22:47 +02:00
Ali Behjati
57a6b5f56d
Modify proto docker and tiltfile to stop creating unnecessary files ( #144 )
2022-04-01 18:00:24 +02:00
Stanisław Drozd
a2400bc209
Merge pull request #140 from pyth-network/drozdziak1/p2w-relay-uncaught-exceptions
...
p2w-relay: harden uncaught exceptions
2022-03-30 16:53:02 +01: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
Tom Pointon
d68ad1fa4b
Merge pull request #118 from pyth-network/tompntn-evm-configurable-migrations-directory
...
Make truffle migrations directory configurable
2022-03-30 11:46:45 +01:00
Ali Behjati
ce5d7c7122
Add unit test to Pyth Terra Contract ( #123 )
...
* Add unit test to the terra contract
- Refactors the code into multiple functions to make unit testing easier
- Adds build and test of terra contract to CI according to #73
2022-03-30 12:45:00 +02: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
Stanisław Drozd
fbec1ff673
Merge pull request #115 from pyth-network/drozdziak1/p2w-evm-relay
...
p2w EVM implementation, p2w-terra-relay -> p2w-relay,
2022-03-30 11:50:14 +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
86932f1068
Merge remote-tracking branch 'origin/dev.v2' into drozdziak1/p2w-evm-relay
...
commit-id:7d66d205
2022-03-25 15:23:48 +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
Tom Pointon
7824587d0f
Make truffle migrations directory configurable
2022-03-25 13:20:45 +00:00
Tom Pointon
148034a4d6
Merge pull request #117 from pyth-network/tompntn-pyth-chain-id-metadata
...
Remove unused Pyth Chain ID metadata
2022-03-25 13:15:38 +00:00
Stanisław Drozd
872202d0d4
Merge pull request #119 from pyth-network/drozdziak1/p2w-relay-fix-rename
...
Fix dev.v2 after premature merge
2022-03-25 13:38:59 +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
Tom Pointon
d8b927d6ce
Remove unused Pyth Chain ID metadata
2022-03-24 17:33:43 +00:00
Stan Drozd
4d9e1fbb20
p2w-relay: PythImplementation -> PythUpgradable
...
commit-id:bfea7eb5
2022-03-24 17:41:59 +01:00
Stan Drozd
6a5e10829a
Merge remote-tracking branch 'origin/dev.v2' into drozdziak1/p2w-evm-relay
...
commit-id:ef71ecc3
2022-03-24 17:13:23 +01:00
Stan Drozd
b41b1a1945
Tiltfile: Fix port forwards for p2w-evm-relay
...
commit-id:6e5e9c14
2022-03-24 17:13:08 +01:00
Stanisław Drozd
889d4f12c6
Merge pull request #114 from pyth-network/tompntn-evm-api
...
Re-work EVM proxy setup and make API follow target chain guidelines
2022-03-24 17:11:18 +01:00
Tom Pointon
be15230d9f
Trigger Build
2022-03-24 16:08:03 +00:00
Tom Pointon
bd88ce308d
Update comment on time check
2022-03-24 15:52:44 +00:00
Tom Pointon
7bbbf56fdd
Rename attestPriceBatch to updatePriceBatchFromVm
2022-03-24 15:43:16 +00:00
Tom Pointon
508013089b
Add build folder to dockerignore
2022-03-24 15:41:07 +00:00
Stan Drozd
cf04759132
p2w-evm-relay.yaml: typo 2: electric boogaloo
...
commit-id:40892265
2022-03-24 16:12:53 +01:00
Stan Drozd
ea5fe5e887
p2w-evm-relay.yaml: typo
...
commit-id:35c87c79
2022-03-24 15:47:56 +01:00
Stan Drozd
5147d28642
Tiltfile: typo
...
commit-id:3bbba986
2022-03-24 15:07:04 +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