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

fix: wait until tx #61

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

frolvanya
Copy link
Contributor

RpcBroadcastTxAsyncRequest which is used in change method always immediately returns a transaction hash even if transaction won't be included in a block

`RpcBroadcastTxAsyncRequest` which is used in `change` method always immediately returns a transaction hash and it's to avoid an extra check on relayer's side I rewrote all methods to wait until any transaction status
@kiseln
Copy link
Contributor

kiseln commented Dec 24, 2024

Nice

@frolvanya frolvanya merged commit ac8475f into refactor/solana-bridge-client Dec 25, 2024
1 of 5 checks passed
frolvanya added a commit that referenced this pull request Jan 9, 2025
* refactor: splitted solana methods to support sending tx by tx_hash or given event

* feat: made near bridge return only tx hash as a result

I had a bug with `sign_transfer` method if it returned timeout, sdk returned `UnknownError` and it's impossible to differintiate between real error and timeout

* Solana: fix finalize transfer (#60)

* Solana: fix finalize transfer

* chore: removed `unwrap`

* fix: `get_native_token_id` method arguments

* Fix determining native/bridged

* fix: applied same logic with vault/program_id to `finalize_transfer` method

* fix: used standard method `storage_balance_bounds`

---------

Co-authored-by: Ivan Frolov <[email protected]>

* fix: moved `solana_..._with_event` methods to omni-connector

* fix: check balance of token instead of locker

* fix: use `total` attribute while checking storage balance

* feat: decided which `finalize_transfer` to call based on token addr

* fix: created a new instruction for finalize_transfer_sol method

* fix: near sign transfer

* fix: wait until unknown status (#61)

`RpcBroadcastTxAsyncRequest` which is used in `change` method always immediately returns a transaction hash and it's to avoid an extra check on relayer's side I rewrote all methods to wait until any transaction status

* chore: removed unused deps

* fix: changed `deploy_token` gas/deposit consts after merging

---------

Co-authored-by: kiseln <[email protected]>
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.

3 participants