Skip to content

Commit

Permalink
Create cross_chain_bridge_interface.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 7, 2024
1 parent 5020d4b commit 980dda5
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from abc import ABC, abstractmethod
from typing import List

class CrossChainBridgeInterface(ABC):
@abstractmethod
def bridge_tokens(self, tokens: List[str], amount: float) -> str:
"""Bridge tokens from one chain to another"""
pass

@abstractmethod
def get_bridge_fee(self, tokens: List[str], amount: float) -> float:
"""Get the bridge fee for a given token and amount"""
pass

@abstractmethod
def get_supported_chains(self) -> List[str]:
"""Get the list of supported chains"""
pass

@abstractmethod
def get_supported_tokens(self) -> List[str]:
"""Get the list of supported tokens"""
pass

0 comments on commit 980dda5

Please sign in to comment.