Skip to content

closing and merging #270 #276

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

Closed
wants to merge 3 commits into from
Closed

closing and merging #270 #276

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 14, 2025

#270 this is the solution that can help merge this PR.

@ghost ghost marked this pull request as draft February 14, 2025 22:10
Copy link
Author

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Learning: The Gravity Bridge SDK token bridging process requires the following steps:

  1. Initialize GravityBridgeClient with Ethereum RPC, Cosmos RPC, and private key
  2. Get ERC-20 contract instance for the token
  3. Approve Gravity Bridge contract to spend tokens
  4. Transfer tokens to Gravity Bridge contract
  5. Wait for Ethereum-side token lock
  6. Send tokens to recipient on Cosmos chain
    Learnt from: bearycool11
    URL: https://github.com/bearycool11/PiOS/pull/1

Timestamp: 2025-02-14T22:08:55.602Z
Learning: When implementing Gravity Bridge token transfers, environment variables should be used for sensitive data:

  • ETHEREUM_RPC_URL: Ethereum node RPC URL
  • COSMOS_RPC_URL: Cosmos node RPC URL
  • PRIVATE_KEY: Ethereum private key for signing
  • ETHEREUM_ADDRESS: Sender's Ethereum address
    Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

and yes I need to fix my typo.

@ghost
Copy link
Author

ghost commented Feb 14, 2025

@coderabbitai

@ghost ghost marked this pull request as ready for review February 14, 2025 22:12
@ghost ghost closed this by deleting the head repository May 15, 2025
This pull request was closed.
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.

0 participants