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

feat/solana tbtc canonical #298

Merged
merged 19 commits into from
Aug 14, 2023
Merged

Conversation

sebastianscatularo
Copy link
Collaborator

No description provided.

@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Preview August 11, 2023 14:06 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Testnet August 11, 2023 14:06 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Testnet August 11, 2023 14:06 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Preview August 11, 2023 14:06 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Testnet August 11, 2023 14:17 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Preview August 11, 2023 14:18 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Testnet August 11, 2023 14:20 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Preview August 11, 2023 14:20 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Preview August 11, 2023 14:37 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Testnet August 11, 2023 14:37 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Testnet August 11, 2023 14:43 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Preview August 11, 2023 14:43 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Testnet August 11, 2023 17:45 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Preview August 12, 2023 02:54 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Testnet August 12, 2023 10:43 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Preview August 12, 2023 10:43 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Testnet August 12, 2023 10:43 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Preview August 12, 2023 10:43 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Preview August 12, 2023 10:53 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Testnet August 12, 2023 10:53 — with GitHub Actions Inactive
})
);
return;
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this else should be redundant if you're returning above, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but due to the nature of this code, we want to interrupt the execution here, to avoid checking the other ifs like the

if (isTerraChain(sourceChain) && sourceAsset) {

@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Testnet August 13, 2023 02:06 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Preview August 13, 2023 02:06 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Testnet August 13, 2023 02:06 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Preview August 13, 2023 02:06 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Preview August 13, 2023 02:17 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo temporarily deployed to Cloudflare-Testnet August 13, 2023 02:19 — with GitHub Actions Inactive
@sebastianscatularo sebastianscatularo merged commit 33ee065 into main Aug 14, 2023
10 checks passed
sebastianscatularo added a commit that referenced this pull request Aug 18, 2023
* create associated account works

* fix base58 address convertion for Solana gateway program

* pull accounts from custodia account

* implement send< btct

* update tokenBridgeWrappedAsset account derivation to send tbtc to solana

* setup sender arguments

* [skip ci] - run prettier

* remove unecesary console.log

* remove unecesary console.log

* fix parameters to send back to L1

* create ata for the redeem process

* handle case for sending from non L1 to a non L1 evm chain

* cosmetic changes

* initialize associate token account if not exist

* call the gateway if the asset is tBtc v2

* [skip ci] - run prettier

* add mainnet address

* [skip ci] - bump version

* code review observation
@sebastianscatularo sebastianscatularo deleted the feat/solana-tbtc-canonical branch September 8, 2023 13:54
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