@OKXchinese · Post #735 · 22.04.2023 г., 14:52
🏁欧易 Web3 钱包已支持 #Aptos !现可以使用欧易 Web3 钱包查看和收发自己的 Aptos 资产。 📌欧易 DEX & NFT 市场即将支持! 📌玩转 Aptos,就在欧易!https://twitter.com/OKXWeb3_CN/status/1582215469947564032
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #397 · 12 ное.
Использование Pydantic сегодня стало нормой, и это правильно. Но иногда на ревью вижу, что используют его не всегда корректно. Например, метод BaseModel.model_dump() по умолчанию не преобразует стандартные типы, такие как datetime, UUID или Decimal, в простой сериализуемый для JSON вид. Тогда пишут кастмоный сериализатор для этих типов чтобы функция json.dump() не падала с ошибкой. import uuid from datetime import datetime from decimal import Decimal from uuid import UUID from pydantic import BaseModel class MyModel(BaseModel): id: UUID date: datetime value: Decimal obj = MyModel( id=uuid.uuid4(), date=datetime.now(), value='1.23' ) print(obj.model_dump()) # не подходит для json.dump # { # 'id': UUID('4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1'), # 'date': datetime.datetime(2025, 12, 12, 12, 12, 12, 111111), # 'value': Decimal('1.23') # } # добавляем свой кастомный сериализатор json.dumps(obj.model_dump(), cls=MySerializer) # { # 'id': '4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1', # 'date': '2025-12-12T12:12:12.111111', # 'value': '1.23' # } В данном случае класс MySerializer обрабатывает datetime, UUID и Decimal. Например так: class MySerializer(json.JSONEncoder): def default(self, o): if isinstance(o, Decimal): return str(o) elif isinstance(o, datetime): return o.isoformat() elif isinstance(o, UUID): return str(o) return super().default(o) Специально для тех, кто всё еще так делает - в этом нет необходимости! Pydantic может это сделать сам, просто нужно добавить параметр mode="json". json.dumps(obj.model_dump(mode="json")) # { # 'id': '4f8c1bc4-25fd-40cd-9dbe-2c73639b0dc1', # 'date': '2012-12-12T12:12:12.111111', # 'value': '1.23' # } #pydantic#libs
Пребарај: #aptos
@OKXchinese · Post #735 · 22.04.2023 г., 14:52
🏁欧易 Web3 钱包已支持 #Aptos !现可以使用欧易 Web3 钱包查看和收发自己的 Aptos 资产。 📌欧易 DEX & NFT 市场即将支持! 📌玩转 Aptos,就在欧易!https://twitter.com/OKXWeb3_CN/status/1582215469947564032
Hashtags
@CetusProtocol · Post #106 · 07.03.2023 г., 08:02
We're excited to host the #Aptos themed AMA with our precious guest speakers from @AptosLabs, @osec_io, @martian_wallet, @NotifiNetwork Here's the recap of our AMA last week Click into the link below for more info 👇 https://medium.com/@CetusProtocol/cetus-aptos-themed-ama-recap-4f74f2007c33 https://twitter.com/CetusProtocol/status/1633014803143987201?s=20 @everyone
Hashtags
@CetusProtocol · Post #105 · 01.03.2023 г., 12:30
We’re glad to invite our precious guests from @AptosLabs@osec_io@martian_wallet@NotifiNetwork to join our #Aptos themed AMA this coming Thursday🎆 Get ready to get the latest updates and information in the ecosystem👀 Time: 17:00 PM UTC March 2 Location: Cetus’s Twitter Space https://twitter.com/cetusprotocol/status/1630906290129207296?s=46&t=IGmcaONplcp1gMkr2LWkng @everyone
Hashtags
@CetusProtocol · Post #100 · 23.02.2023 г., 12:01
We are excited to announce that $MEE - $APT pool powered by @Meeiro_xyz is now LIVE on #Aptos mainnet:fireworks:Add liquidity & Earn fees at the early stage 👉https://app.cetus.zone/pools https://twitter.com/CetusProtocol/status/1628726443399323649?s=20 @everyone
Hashtags
@CetusProtocol · Post #81 · 01.02.2023 г., 07:53
Welcome @usddio to be live on Aptos 🔥 The first USDD pool on #Aptos is supported by #Cetus now. Come on here and be the first one to provide liquidity to $APT - $USDD and $USDD - $USDC pools. Start earning high organic fee income from today. @justinsuntron https://twitter.com/CetusProtocol/status/1620691494863769600?s=20&t=RwlaJ6wi-vEHEN3w04nw2w @everyone
@CetusProtocol · Post #79 · 31.01.2023 г., 08:42
We are excited to announce that Cetus has passed the second Aptos smart contract audit by @MoveBit_ , one of the leading audit firms on #Aptos🔥 With their ultimate security solution, #Cetus will further raise reliability and robustness to the highest level. https://twitter.com/CetusProtocol/status/1620341216004169729?s=20&t=sPTm60xl5ifH0cuaykxwnw @everyone
@CetusProtocol · Post #78 · 30.01.2023 г., 08:12
We are excited to announce that @MomentumSafe - a multi-sig, non-custodial digital assets management solution built on Move has now integrated to #Cetus on #Aptos mainnet🎉 With this partnership, we will further enhance security and develop full Interoperability🎆 https://twitter.com/CetusProtocol/status/1619971534373945345?s=20&t=nYKrfeAnnv84QgWS8FhbJQ @everyone
@CetusProtocol · Post #73 · 21.01.2023 г., 07:32
Glad to announce that our #Aptos smart contract has been fully audited by OtterSec, our audit partner & one of the leading audit firms on Aptos #Cetus will continue to make efforts on security protection. Feel free to interact with our product and give us your valuable feedback https://twitter.com/CetusProtocol/status/1616699861524709376?s=20&t=2DErJKv4tghLXzVK1p0T2g @everyone
@CetusProtocol · Post #67 · 09.01.2023 г., 05:34
We are excited to announce that #Cetus has been integrated into @OpenBlockWallet and listed on the dapp recommend page 🎉🎉You will be able to access Cetus dapp in very few steps!! https://twitter.com/CetusProtocol/status/1612320424377057287?s=20&t=vteQL5PX5lSHXuEbrM_kRg Let me give our users a quick tutorial about How to access Cetus through @OpenBlockWallet🔽 https://twitter.com/CetusProtocol/status/1612320427703169026?s=20&t=vteQL5PX5lSHXuEbrM_kRg 1. Register OpenBlock Wallet with your email address 2. After registration, switch to the #Aptos mainnet network and you can start your journey on #Cetus with one click! 3. You've successfully connected to Cetus dapp with your OpenBlock Wallet ☑️ @everyone
@CetusProtocol · Post #54 · 05.12.2022 г., 17:11
We're delighted to announce our integration to @rise_wallet🎆🎆With this integration, users will be able to quickly access #Cetus from within their rise wallet on #Aptos mainnet. https://twitter.com/CetusProtocol/status/1599813466596184064?s=20&t=b968QAyrV599tSs5q2dn1g @everyone
@USDT178888 · Post #1014 · 29.07.2022 г., 07:57
本是同根生,Meta 系 Aptos 和 Sui 之间的较量才刚刚开始 大约 2 周前,媒体报道 Mysten Labs 即将进行 B 轮融资,这一引发了诸多兴趣。这导致产生了大量围绕 Mysten Labs 的 Sui 原生 L1 区块链的推特讨论。 从表面上看,#Sui 与 #Aptos 二者之间有着惊人的相似之处——因此,很容易在两者之间进行比较👇 https://www.defidaonews.com/article/6767952 Z8哈希简介Z8哈希玩法Z8哈希官网纸飞机中文语言 👉🏼Z8哈希官方招商 👉🏼Z8哈希招商助理 👉🏼Z8哈希官方注册
@geniusairdropsss · Post #505 · 27.01.2024 г., 13:26
Testnet campaign is now live on Cellana ✅ Let's MOVE with us and learn more about the Ve(3,3) model. Duration: 26th Jan - 21st Feb Prize Pool: 10,000,000 $veCELL airdrop tokens JOIN NOW ➡️testnet.cellana.finance Read more all details in this 👇 https://cellana.substack.com/p/cellana-testnet-campaign #Cellana#Aptos Disclaimer: Please do your own research before joining to any airdrops project, also airdrop is 100% free. Don't send any fee or penny for receiving airdrop tokens. Just join airdrop free!