Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with wormhole master repo #1

Merged
merged 70 commits into from
Dec 11, 2024
Merged

Conversation

hernandp
Copy link
Collaborator

No description provided.

scnale and others added 30 commits July 30, 2024 09:21
The InReview transfer state is currently set when a token bridge
transfer is enqueued in the Governor.

Added Governor warnings to token bridge quotes.

Fixed an issue where the token price wasn't being looked up by its
origin chain.
The eta tells us the estimated transfer time in milliseconds
(essentially finality time).
* contracts: update acala and karura testnet core contracts

* contracts: update acala and karura testnet token bridge contracts

* contracts: remove acala and karura testnet nft bridge contracts
- use wormhole circle relayer instead of token bridge relayer to compute
max swap and gas drop-off amounts
- the connect interface specifies a percentage that is applied to the
the max swap amount to get the gas drop-off amount
* tokenBridge protocol: add token address conversion methods

- Added getTokenUniversalAddress and getTokenNativeAddress methods to each platform's token bridge protocol implementation.
- Some chains like Aptos and Sui require fetching on-chain data for token address conversions (universal to native and vice versa).
- Fixed issue where lookupDestinationToken would return a universal address, causing issues in functions expecting a native address.
- lookupDestinationToken now consistently returns a native address.
- Resolved issues with transferring native Sui and Aptos tokens back to their origin chains.

* check not a wrapped asset error
* sui: explicitly set SuiAddress platform

There is an issue with vite/rollup where the platform is being set
to undefined when running an app built with the SDK on the local dev server.

A similar issue was fixed here: #615

It's not clear what the root cause is and if it's an actual bug in vite/rollup
or in the SDK.

* 0.9.1 version bump
We were not passing the config, which may contain overrides, to the
platform constructors in the Wormhole class. This was causing the default
RPCs to get used even if they were overridden in the config.
We were not resolving the address lookup table accounts
* add 5 sec of padding to ETAs for guardian network

* raise Ethereum finality threshold
kev1n-peters and others added 29 commits September 27, 2024 10:43
* Added Portico Bridge USDT support

USDT uses PancakeSwap if available on the chain

* Added native USDT tokens

* removed unused portico api

* add missing wstETHbsc token

* removed wstETHbsc token (no portico pool)

* progress

* more progress

* working

* revert router example changes

* added celo usdt

* Revert "added celo usdt"

This reverts commit 24a386e.

* Reapply "added celo usdt"

This reverts commit a0ad1e8.

* added comment on decimals scaling

* bump version to 0.12.0
* Add Monad Devnet support

* Code review rework
* 0.14.0 version bump

* rebase

---------

Co-authored-by: Artur Sapek <art@wormholelabs.xyz>
* disable Sui CCTP

* ignore sui cctp package for now

* bump versions
* Include Spl Token 2022 in getBalances

* Review change
* use 72 blocks for eth finality which should cover p75

finality is somewhere between 64 and 95 blocks

* fix tests
* sui: getCoinType native token address fix

Fixes #730

* change error msg
* removed comment

* removed isAvailable method

* removed imports
* add excludeIndexes function implementation to array utils

* tighten up type programming parts

* fix: remove readonly for array function return types

* further type hardening and fixing comment
* make sure both chains are supported

(this is useful in case supportedDestinationTokens doesn't verify this)

* verify network too
* fix potential inifinite loop

* simple example file showing how to parse addresses

* toNative can handle a UniversalAddress value

* add unit tests to document and test this behavior

* handle Uint8Array too

* check it starts with 0x

* test
@scnale scnale merged commit 8a20789 into XLabs:main Dec 11, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.