-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create cross_chain_bridge_interface.py
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
blockchain_integration/pi_network/pinnacle/src/interface/cross_chain_bridge_interface.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |