Commit Graph

115 Commits

Author SHA1 Message Date
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 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 a79a86ef3c
Remove unused terra contracts (#109)
- Note: Terra contract addresses are changed by this PR due to deterministic ordering.
- Removed unused nft and token bridge, and migration contracts in Terra
- Modified documentation to remove info regarding removed contracts.(docs/devnet.md)
2022-03-23 13:14:17 +01:00
Ali Behjati e55f33da63
Terra contract public api (#79)
* Use pyth-sdk in terra contract
* Update terra contract according to agreed API
- Also adds v2 suffix to price_info key because this migration is breaking.
2022-03-18 12:39:28 +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
Ali Behjati 7d41fb1ea1
Pyth terra bridge: add contract deployment script (#88)
* Add pyth deployment script

- Also updates build.sh to build pyth completely
- Add a readme for deployment guide
2022-03-16 18:21:02 +01:00
Ali Behjati 0435820c29
Pyth terra remove wormhole governance (#87)
* Pyth in terra: remove wormhole governance
2022-03-15 13:06:01 +01:00
Ali Behjati 3199015c7d
Abehjati/update p2w sdk to pyth sdk (#83)
* Make p2w-sdk use pyth-sdk
2022-03-14 12:36:12 +01:00
Ali Behjati da564392db
Pyth bridge terra contract support batch attestation + use p2w sdk (#72)
* Make terra contract to use pyth2wormhole-sdk and support batch attestation

* Update packages + code format

* Move terra dockerfile out to support third-party dependency
2022-03-09 20:14:35 +01:00
Leopold Schabel 870d15d483
*: bump pyth-client to 0.2.2 (#873)
The v2 branch on the Git origin disappeared. Use the crate instead.
Updated lockfiles using `cargo update -w`.

commit-id:d2655ef8
2022-02-18 00:01:13 -06:00
Evan Gray 075defa634 feat: improve bridge_ui tilt
properly cache npm ci in Docker container image
support hotloading outside ci
2022-02-14 07:56:38 -05:00
Evan Gray bb1402367c fix: terra-contracts readiness 2022-02-14 07:56:38 -05:00
Kevin Peters 27e8952c8b sdk/js: Updated terra dependencies
Changed devnet terra tax rate to zero to reflect mainnet and testnet
2022-02-10 16:15:06 -05:00
Csongor Kiss 3fc065846e Add terra migrate instructions 2022-02-10 15:37:19 -05:00
Csongor Kiss 99e2d4ac09 Add terra build & deploy instructions 2022-02-10 15:37:19 -05:00
Csongor Kiss 0044bb5e44 terra/token_bridge: remove migration code
This migration handler has successfuly completed (txn:
67E8FCFF48EEFE11BF6A975E621B6866BA930F9D2A85BC9AC5A70F009EE354C7) so
we can remove it.
2022-01-28 10:44:10 +00:00
Csongor Kiss 52562cacb0 terra/token_bridge: reentrancy protection
commit-id:2c0bdfaf
2022-01-28 10:44:10 +00:00
Csongor Kiss 5d90af5195
terra/token_bridge: fix cw20 migrations (#745)
commit-id:c8aac03a
2022-01-20 19:06:34 +00:00
Reisen e561d6de02 sdk: fixes to types and builds
Change-Id: I10b753450445cc021dbeb9f28ddb0384070e9635
2022-01-14 13:09:12 +00:00
Reisen d21f08d2cb rust: rename wormhole libraries
Change-Id: I9bf5255c13b13d3724d7f8809489b04612b90747
2022-01-14 13:09:12 +00:00
Csongor Kiss 7e212fa739
terra/nft_bridge: Implement nft-bridge for terra (#698)
commit-id:0b547fa5
2022-01-07 16:47:33 +01:00
Csongor Kiss 089d7cde97
terra/nft_bridge: Implement cw721-wrapped (#697)
Wrapped NFT contract

commit-id:42e63984
2022-01-07 16:46:06 +01:00
Csongor Kiss 40837778a7
terra/nft_bridge: vendor cw721 and cw721-base (#696)
The most recent released versions of these libraries use a different
version of the cosmwasm than the rest of the wormhole projects, which
leads to a linker error. So we vendor these libraries and downgrade
their cosmwasm-std dependency to match the rest.

commit-id:a1a5c20b
2022-01-07 16:43:53 +01:00
Hendrik Hofstadt 91b58d7b64 fix: Use price id instead of product id in pyth on terra
Change-Id: Ic567803fd2bf798e0e4150c2a123bbc4788535f0
2021-12-29 20:57:54 -05:00
Evan Gray 98cb787512 terra: fix tax calculation on withdraw_tokens 2021-12-23 15:03:04 -05:00
Hendrik Hofstadt a91fe7797d
Pyth to Wormhole on Terra (#629)
* More checks in P2W on Terra

Change-Id: Icbe5d75504f947b741cee1c797740b71456964fe

* Auto-deploy P2W on Terra

Change-Id: I202536fd278aca938e3b8b3cb0a4ceeca314158f

* Don't do replay protection on price updates

We already use the sequence number for replay and rollback protection and can save storage this way

Change-Id: I9e655956aab1ed8dd86b9d821ece2f57900f6c78
2021-12-22 12:22:08 +01:00
Hendrik Hofstadt 0c747199ab Implement pyth2wormhole for Terra
Change-Id: I3c206cf9850818c1fc012a593ad057e07b5dfa3e
2021-12-02 14:56:02 +00:00
Evan Gray 92aa657630 terra: remove tiltfile
Change-Id: I320a6f4501492acde39c193b8623bc083537f3b6
2021-11-23 01:11:02 +00:00
Reisen 7415fda312 terra/token_bridge: migration prep
Change-Id: I3bc054265e6296ce2fa4191c0395ca8531b0f4a8
2021-10-29 16:51:34 +00:00
Reisen c832b123fc terra: cw20 migrations
Change-Id: I3c75291a0d3016a197a15d9ee0717b16b3b479d3
2021-10-27 19:55:42 +00:00
Reisen 17ba6b12d0 terra: post migration fee change
Change-Id: I9e1517cf3038f80836b58810e11bddc1b58e6fbf
2021-10-19 15:25:01 +00:00
Reisen fc1c91a4b4 terra/token_bridge: set code_id to deployed cw20_wrapped
Change-Id: I275cb38a049290e8399f3fdc5f304c3fc12551f6
2021-10-11 16:53:07 +00:00
Reisen 2a63d08b88 terra: test token_bridge migrate
Change-Id: I4baa721d4aa506a84c8b3ad80e1e9aa35633f975
2021-10-11 16:38:19 +00:00
Reisen ddf43b85d7 terra: migrations for lower bridge fee
Change-Id: Ic83b321d42c9148f3915a365d195298ff052eda2
2021-10-11 16:32:56 +00:00
Reisen 91087bdb66 terra/token_bridge: allow newer sequenced vaa metadata
Change-Id: Ie81584abe6671595118082796df57bcea75a8fd3
2021-10-11 16:24:36 +00:00
Reisen e2a16b6756 terra: migrations for cw20
Change-Id: I201021ed763e8b94a2d029d79ba5ce7e3d3868e3
2021-10-11 16:21:33 +00:00
Reisen b9a61a152e terra/token_bridge: remove tax from native transfers
Change-Id: Ia40808508c08b13a2f1bd1b43c0102eabb2c54f6
2021-10-05 14:57:16 +00:00
Reisen 3607884556 terra/token_bridge: upgradability
Change-Id: Ib41583c0d99aad0e77fb970bc9ee0f7be56f6b4e
2021-10-05 10:41:09 +00:00
Reisen b662de4efb terra: columbus-5 contracts by default
Change-Id: I007689b032c6182e35421b47b56787a657a6919c
2021-10-04 16:41:31 +00:00
Reisen 4933f35213 terra: add columbus-5 deploy script
Change-Id: I33eead9ed1fd818dc8d6ff6e71230bda4b3d3c64
2021-10-04 16:41:31 +00:00
Reisen 2163f420c9 terra/devnet: update to bombay network
Change-Id: I2169adc1b0df9103b10dc50ba6e7470e38ad8fe9
2021-10-04 16:41:31 +00:00
Reisen d2c976b04c terra/token_bridge: subtract tax from deposited tokens
Change-Id: Ib1647a4b3757054fc91fe4dd51317a5095a526a2
2021-10-04 16:41:31 +00:00
Reisen 56c1b43280 bridge_ui: deposit tokens in terra flow
Change-Id: If64963644e638dbb24c1334eebbc207b415e5a3a
2021-10-04 16:41:31 +00:00
Reisen a9e98247bc terra/token_bridge: transfer native
Change-Id: I53fb27b467c96474f2980d495232ac955187775a
2021-10-04 16:41:31 +00:00
Hendrik Hofstadt 18f3262b89 Add second eth devnet to emulate bsc
Change-Id: Ia28078cdd843540bc6d5d2a3db4787637c752245
2021-09-30 15:00:27 +00:00
chase-45 a79ef81721 fixed non-deterministic terra dev environment items
Change-Id: Ie97c43a4f6fb562e9b546793d216a1be2ba302eb
2021-09-07 16:17:30 -04:00
Reisen c04fe95859 terra/contracts: columbus-5 migration for wormhole
Change-Id: I6772a49d3d667633b27d74eb7f349e01c849f505
2021-09-07 03:02:49 +00:00
Reisen c92442e3ce terra/contracts: columbus-5 migration for token-bridge
Change-Id: I5b2466d72c8dd98a14729125ddc3495589871d9f
2021-09-07 02:55:57 +00:00
Reisen 3cbbc6f2b8 terra/contracts: columbus-5 migration for cw20-wrapped
Change-Id: I32a703cdeb60dcf288907df6318ae504171fc5f0
2021-09-06 14:58:48 +00:00