Join our
Discord!
LogoLogo
SupraScan ExplorerStarKey WalletDiscord
  • Network
  • Oracles
  • Automation
  • SupraNova
  • Guides
  • SupraNova Bridge - Bridging ETH to Supra
  • Bridging Flow
  • Supra’s Interoperability Model (HyperNova vs HyperLoop)
  • Standard Two-Layer Approach in SupraNova
  • Workflow of Hypernova Bridging within SupraNova
  • Proof Validation Structure in HyperNova
  • Ethereum to Supra Security
  • Fee Structure in SupraNova
  • Modular Relayer Architecture
  • Token Bridge Smart Contract Interface
  • Token Bridging Model - Lock-Mint
  • Future Roadmap
Powered by GitBook
On this page
Edit on GitHub

Token Bridge Smart Contract Interface

SupraNova’s Token Bridge contract is a service layer contract integrated within Supranova. It exposes key functions that allow users and developers to interact with the bridge directly. The functions are as follows:

  • sendNative(): Locks native ETH on Ethereum and emits a bridge event for Supra to process.

  • sendTokens(address tokenAddress, uint256 amount): Locks an approved ERC20 token for cross-chain bridging.

  • calculateTokenBridgeFee(address token, uint256 amount): Returns the service fee applicable for a given asset and amount.

  • isRegistered(address tokenAddress): Checks if a token is approved for bridging.

  • isChainIdRegistered(uint256 chainId): Checks if a destination chain is supported.

These methods provide a flexible, decentralized interface for both end-users and cross-chain applications interacting with SupraNova.

PreviousModular Relayer ArchitectureNextToken Bridging Model - Lock-Mint

Last updated 3 days ago