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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

bearycool11
Copy link

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

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

@bearycool11 bearycool11 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: Update gravitbridge.js bearycool11/PiOS#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.

@bearycool11
Copy link
Author

@coderabbitai

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.

2 participants