-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e658d08
commit 1efa6f1
Showing
7 changed files
with
124 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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,113 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import enum | ||
import typing | ||
|
||
T_Result = typing.TypeVar("T_Result") | ||
|
||
|
||
class WalletDetailsNetwork(str, enum.Enum): | ||
""" | ||
Network of the wallet | ||
""" | ||
|
||
BITCOIN = "BITCOIN" | ||
ETHEREUM = "ETHEREUM" | ||
POLYGON = "POLYGON" | ||
BNB_SMART_CHAIN = "BNB_SMART_CHAIN" | ||
BNB_BEACON_CHAIN = "BNB_BEACON_CHAIN" | ||
ARBITRUM_L_2 = "ARBITRUM_L2" | ||
SOLANA = "SOLANA" | ||
AVALANCHE_C_CHAIN = "AVALANCHE_C_CHAIN" | ||
LITECOIN = "LITECOIN" | ||
BITCOIN_CASH = "BITCOIN_CASH" | ||
RIPPLE = "RIPPLE" | ||
STELLAR = "STELLAR" | ||
EOS_PUBLIC = "EOS_PUBLIC" | ||
TRON = "TRON" | ||
CARDANO = "CARDANO" | ||
POLKADOT = "POLKADOT" | ||
NEAR_PROTOCOL = "NEAR_PROTOCOL" | ||
COSMOS = "COSMOS" | ||
DOGECOIN = "DOGECOIN" | ||
OPTIMISM_MAINNET = "OPTIMISM_MAINNET" | ||
FANTOM = "FANTOM" | ||
HEDERA = "HEDERA" | ||
ALGORAND = "ALGORAND" | ||
CELESTIA = "CELESTIA" | ||
|
||
def visit( | ||
self, | ||
bitcoin: typing.Callable[[], T_Result], | ||
ethereum: typing.Callable[[], T_Result], | ||
polygon: typing.Callable[[], T_Result], | ||
bnb_smart_chain: typing.Callable[[], T_Result], | ||
bnb_beacon_chain: typing.Callable[[], T_Result], | ||
arbitrum_l_2: typing.Callable[[], T_Result], | ||
solana: typing.Callable[[], T_Result], | ||
avalanche_c_chain: typing.Callable[[], T_Result], | ||
litecoin: typing.Callable[[], T_Result], | ||
bitcoin_cash: typing.Callable[[], T_Result], | ||
ripple: typing.Callable[[], T_Result], | ||
stellar: typing.Callable[[], T_Result], | ||
eos_public: typing.Callable[[], T_Result], | ||
tron: typing.Callable[[], T_Result], | ||
cardano: typing.Callable[[], T_Result], | ||
polkadot: typing.Callable[[], T_Result], | ||
near_protocol: typing.Callable[[], T_Result], | ||
cosmos: typing.Callable[[], T_Result], | ||
dogecoin: typing.Callable[[], T_Result], | ||
optimism_mainnet: typing.Callable[[], T_Result], | ||
fantom: typing.Callable[[], T_Result], | ||
hedera: typing.Callable[[], T_Result], | ||
algorand: typing.Callable[[], T_Result], | ||
celestia: typing.Callable[[], T_Result], | ||
) -> T_Result: | ||
if self is WalletDetailsNetwork.BITCOIN: | ||
return bitcoin() | ||
if self is WalletDetailsNetwork.ETHEREUM: | ||
return ethereum() | ||
if self is WalletDetailsNetwork.POLYGON: | ||
return polygon() | ||
if self is WalletDetailsNetwork.BNB_SMART_CHAIN: | ||
return bnb_smart_chain() | ||
if self is WalletDetailsNetwork.BNB_BEACON_CHAIN: | ||
return bnb_beacon_chain() | ||
if self is WalletDetailsNetwork.ARBITRUM_L_2: | ||
return arbitrum_l_2() | ||
if self is WalletDetailsNetwork.SOLANA: | ||
return solana() | ||
if self is WalletDetailsNetwork.AVALANCHE_C_CHAIN: | ||
return avalanche_c_chain() | ||
if self is WalletDetailsNetwork.LITECOIN: | ||
return litecoin() | ||
if self is WalletDetailsNetwork.BITCOIN_CASH: | ||
return bitcoin_cash() | ||
if self is WalletDetailsNetwork.RIPPLE: | ||
return ripple() | ||
if self is WalletDetailsNetwork.STELLAR: | ||
return stellar() | ||
if self is WalletDetailsNetwork.EOS_PUBLIC: | ||
return eos_public() | ||
if self is WalletDetailsNetwork.TRON: | ||
return tron() | ||
if self is WalletDetailsNetwork.CARDANO: | ||
return cardano() | ||
if self is WalletDetailsNetwork.POLKADOT: | ||
return polkadot() | ||
if self is WalletDetailsNetwork.NEAR_PROTOCOL: | ||
return near_protocol() | ||
if self is WalletDetailsNetwork.COSMOS: | ||
return cosmos() | ||
if self is WalletDetailsNetwork.DOGECOIN: | ||
return dogecoin() | ||
if self is WalletDetailsNetwork.OPTIMISM_MAINNET: | ||
return optimism_mainnet() | ||
if self is WalletDetailsNetwork.FANTOM: | ||
return fantom() | ||
if self is WalletDetailsNetwork.HEDERA: | ||
return hedera() | ||
if self is WalletDetailsNetwork.ALGORAND: | ||
return algorand() | ||
if self is WalletDetailsNetwork.CELESTIA: | ||
return celestia() |