Skip to content

Commit

Permalink
[#] add platform enum(ud,bnb,.bit)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongFuze committed Oct 24, 2024
1 parent f301b3a commit e9f5a21
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
28 changes: 28 additions & 0 deletions src/resolver/unstoppabledomains.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Author: Zella Zhong
Date: 2024-10-24 17:34:05
LastEditors: Zella Zhong
LastEditTime: 2024-10-24 17:34:08
FilePath: /data_service/src/resolver/unstoppabledomains.py
Description:
'''
import logging
from datetime import datetime
from sqlalchemy.inspection import inspect
from sqlalchemy import select, update, and_, or_
from sqlalchemy.orm import load_only
from urllib.parse import unquote

from session import get_session
from model import EnsnameModel

from utils import check_evm_address, convert_camel_case, compute_namehash_nowrapped

from scalar.platform import Platform
from scalar.network import Network, Address, CoinTypeMap
from scalar.identity_graph import IdentityRecordSimplified
from scalar.identity_record import IdentityRecord
from scalar.profile import Profile
from scalar.error import DomainNotFound, EmptyInput, EvmAddressInvalid, ExceedRangeInput
6 changes: 5 additions & 1 deletion src/scalar/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Author: Zella Zhong
Date: 2024-10-06 17:45:51
LastEditors: Zella Zhong
LastEditTime: 2024-10-21 15:33:12
LastEditTime: 2024-10-24 17:34:34
FilePath: /data_service/src/scalar/platform.py
Description:
'''
Expand All @@ -16,10 +16,14 @@ class Platform(Enum):
ethereum = "ethereum"
solana = "solana"
ens = "ens"
sns = "sns"
farcaster = "farcaster"
lens = "lens"
clusters = "clusters"
basenames = "basenames"
unstoppabledomains = "unstoppabledomains"
space_id = "space_id"
dotbit = "dotbit"

bitcoin = "bitcoin"
litecoin = "litecoin"
Expand Down

0 comments on commit e9f5a21

Please sign in to comment.