Spaces:
Sleeping
Sleeping
Commit
·
3cf2443
1
Parent(s):
6d80ed9
Add application file
Browse files- .DS_Store +0 -0
- data/.DS_Store +0 -0
- data/eths_data.db +0 -0
- data/ethscriptions_data.db +2 -2
- data/name_set.db +1 -1
- pages/1_🔍_批量查询铭文状态.py +1 -1
- pages/7_ℹ️️_关于 EthPen.com.py +1 -1
- 🖊️EthPen-以太之笔.py +15 -5
.DS_Store
CHANGED
|
Binary files a/.DS_Store and b/.DS_Store differ
|
|
|
data/.DS_Store
CHANGED
|
Binary files a/data/.DS_Store and b/data/.DS_Store differ
|
|
|
data/eths_data.db
CHANGED
|
Binary files a/data/eths_data.db and b/data/eths_data.db differ
|
|
|
data/ethscriptions_data.db
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9257b26b4bf241d7e75aa8133174f131e0133e09e3bd50fc96c5973f202d39f
|
| 3 |
+
size 400207872
|
data/name_set.db
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2383872
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c6df1a5d9ca13bfbbf154928baf0602f1103010dcbfb6601d3c511eff1fece7
|
| 3 |
size 2383872
|
pages/1_🔍_批量查询铭文状态.py
CHANGED
|
@@ -21,7 +21,7 @@ check_type = ''
|
|
| 21 |
|
| 22 |
# 把文字转换成 16 进制
|
| 23 |
def text_to_hex(text):
|
| 24 |
-
return '0x' + ''.join(format(
|
| 25 |
|
| 26 |
|
| 27 |
st.set_page_config(page_title="EthPen - 批量查询铭文状态", page_icon="🔍", layout='centered', initial_sidebar_state='auto')
|
|
|
|
| 21 |
|
| 22 |
# 把文字转换成 16 进制
|
| 23 |
def text_to_hex(text):
|
| 24 |
+
return '0x' + ''.join(format(byte, '02x') for byte in text.encode('utf-8'))
|
| 25 |
|
| 26 |
|
| 27 |
st.set_page_config(page_title="EthPen - 批量查询铭文状态", page_icon="🔍", layout='centered', initial_sidebar_state='auto')
|
pages/7_ℹ️️_关于 EthPen.com.py
CHANGED
|
@@ -33,7 +33,7 @@ def image_to_base64(img_path):
|
|
| 33 |
|
| 34 |
# Streamlit app layout
|
| 35 |
st.set_page_config(page_title="EthPen - 关于 EthPen.com", page_icon="ℹ️", layout='centered', initial_sidebar_state='auto')
|
| 36 |
-
st.subheader(r'
|
| 37 |
|
| 38 |
st.markdown(
|
| 39 |
f'欢迎踏足 EthPen - 以太之笔!这里汇聚了一系列关于 Ethscriptions 的精细工具集,无论是单一查询、铭文题写,还是批量检索、编码题写,乃至深入的教程导引,以太之笔都将助您铭文题写如飞。我们立志推广 Ethscriptions 的宏大理念,期望 $eths 翱翔于星空,与月相伴!若您携手建议或创意,我们热切期待您的声音。',
|
|
|
|
| 33 |
|
| 34 |
# Streamlit app layout
|
| 35 |
st.set_page_config(page_title="EthPen - 关于 EthPen.com", page_icon="ℹ️", layout='centered', initial_sidebar_state='auto')
|
| 36 |
+
st.subheader(r'ℹ️ :rainbow[EthPen - 关于 EthPen.com]', anchor=False, divider='rainbow')
|
| 37 |
|
| 38 |
st.markdown(
|
| 39 |
f'欢迎踏足 EthPen - 以太之笔!这里汇聚了一系列关于 Ethscriptions 的精细工具集,无论是单一查询、铭文题写,还是批量检索、编码题写,乃至深入的教程导引,以太之笔都将助您铭文题写如飞。我们立志推广 Ethscriptions 的宏大理念,期望 $eths 翱翔于星空,与月相伴!若您携手建议或创意,我们热切期待您的声音。',
|
🖊️EthPen-以太之笔.py
CHANGED
|
@@ -988,7 +988,7 @@ def is_valid_eths(data, p, tick, id, amt):
|
|
| 988 |
|
| 989 |
# 文本转换到十六进制
|
| 990 |
def text_to_hex(text):
|
| 991 |
-
return ''.join(format(
|
| 992 |
|
| 993 |
|
| 994 |
# str SHA256
|
|
@@ -1136,22 +1136,30 @@ st.subheader('', anchor=False, divider='rainbow')
|
|
| 1136 |
|
| 1137 |
# 最近新闻
|
| 1138 |
st.markdown(f'#### 最近新闻')
|
|
|
|
| 1139 |
st.markdown(
|
| 1140 |
-
f'<a href="https://twitter.com/dumbnamenumbers/status/1696989307871826137" target="_blank"><img src="data:image/jpeg;base64,{image_to_base64(os.path.join("img", "news.jpeg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block;"/></a>',
|
| 1141 |
unsafe_allow_html=True)
|
|
|
|
|
|
|
| 1142 |
st.markdown(f'> 3 周前,我们提出了 Ethscriptions 虚拟机的构想——一种通过将其解释为计算机指令来显著增强 Ethscriptions 功能的方法。今天,我们宣布了该虚拟机的首个实现。已在 Goerli 网络上线,并已在 GitHub 上完全开源!👆')
|
| 1143 |
|
| 1144 |
# 广告位图片
|
| 1145 |
st.markdown(f'#### 广告位')
|
|
|
|
|
|
|
| 1146 |
st.markdown(
|
| 1147 |
-
f'<a href="https://twitter.com/EtchMarket/status/1694024108672245953" target="_blank"><img src="data:image/jpeg;base64,{image_to_base64(os.path.join("img", "ad.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block;"/></a>',
|
| 1148 |
unsafe_allow_html=True)
|
|
|
|
| 1149 |
st.markdown(f'> 拆分方案现在面向所有人推出!让我们一起加入权益挖矿的浪潮,并分享50%的月度服务费。')
|
| 1150 |
|
| 1151 |
|
| 1152 |
st.markdown(f'#### 什么是 Ethscriptions?', unsafe_allow_html=True)
|
| 1153 |
st.markdown(f'{my_style}<span class="tag"><a href="https://ethscriptions.com/" target="_blank" style="text-decoration: none;"><img src="data:image/jpeg;base64,{image_to_base64(os.path.join("img", "ethscriptions_logo_litto.png"))}" alt="Image" width="20px" height="20px" style="border-radius: 3px;"/> Ethscriptions</span></a> 是一种新的在以太坊上创建和分享数字资产的方法,它通过使用交易 calldata 存储数据而不是智能合约来实现,这使其比 NFT 更为经济。它们是完全在链上、无需许可、抗审查的,并且其成本只是 NFT 的一小部分。', unsafe_allow_html=True)
|
| 1154 |
-
|
|
|
|
|
|
|
| 1155 |
st.markdown('#### 谁创造了 Ethscriptions?')
|
| 1156 |
st.markdown(f'首个 [Ethscription](https://ethscriptions.com/ethscriptions/0) 是在 2016 年创建的,但正式的协议是由 Tom Lehman,又名 <span class="tag"><a href="https://twitter.com/dumbnamenumbers" target="_blank" style="text-decoration: none;"><img src="data:image/jpeg;base64,{image_to_base64(os.path.join("img", "Middlemarch.jpg"))}" alt="Image" width="20px" height="20px" style="border-radius: 10px;"/> @Middlemarch</span></a> 开发的。除了比特币的铭文,他还受到了来自 Poly Network 黑客的著名的 “原型 - Ethscription” 的启发,你可以在[这笔交易](https://etherscan.io/tx/0x0ae3d3ce3630b5162484db5f3bdfacdfba33724ffb195ea92a6056beaa169490)中看到它。', unsafe_allow_html=True)
|
| 1157 |
st.markdown(f'- 快来加入 <span class="tag"><a href="https://discord.gg/ethscriptions" target="_blank" style="text-decoration: none;"><img src="data:image/svg+xml;base64,{image_to_base64(os.path.join("img", "discord.svg"))}" alt="Image" width="20px" height="20px" style="border-radius: 3px;" /> @ethscriptions</span></a>,一起讨论 Ethscriptions 的未来!', unsafe_allow_html=True)
|
|
@@ -1192,7 +1200,9 @@ st.markdown(f'2. 接收地址填写 <span class="tag"><img src="data:image/svg+x
|
|
| 1192 |
st.markdown(f'3. 填写 <span class="tag"><img src="data:image/svg+xml;base64,{image_to_base64(os.path.join("img", "0x.svg"))}" alt="Image" width="20px" height="20px" style="border-radius: 3px;" /> 十六进制数据</span> ,也就是我们刚才复制的文本;', unsafe_allow_html=True)
|
| 1193 |
st.markdown(f'4. 检查确认无误后发送交易。', unsafe_allow_html=True)
|
| 1194 |
st.markdown(f'稍等片刻,我们就可以在 <span class="tag"><a href="https://etherscan.io" target="_blank" style="text-decoration: none;"><img src="data:image/svg+xml;base64,{image_to_base64(os.path.join("img", "etherscan-logo.svg"))}" alt="Image" width="20px" height="20px" style="border-radius: 3px;" /> Etherscan</span></a> 区块浏览器看到成功的交易。', unsafe_allow_html=True)
|
| 1195 |
-
st.markdown(f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("img", "etherscan_input_data.png"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block;"/>', unsafe_allow_html=True)
|
|
|
|
|
|
|
| 1196 |
st.markdown(f'同时我们也可以前往 <span class="tag"><a href="https://ethscriptions.com/" target="_blank" style="text-decoration: none;"><img src="data:image/jpeg;base64,{image_to_base64(os.path.join("img", "ethscriptions_logo_litto.png"))}" alt="Image" width="20px" height="20px" style="border-radius: 3px;"/> Ethscriptions</span></a> 官方网站查看我们的铭文。', unsafe_allow_html=True)
|
| 1197 |
st.markdown(f'如果你觉得上述的方法步骤繁琐,我们建议你使用 Ethscriptions 官方推荐的 [EthScriber](https://ethscriber.xyz/) 还有 [Etherscan IDM](https://etherscan.io/idm),其他题写工具须在你确保安全的情况下使用,因为你不能确定它要发送什么铭文的交易。', unsafe_allow_html=True)
|
| 1198 |
st.markdown(f'EthPen.com 不仅为你提供优质的工具,还有详尽的教程供你参考。欢迎你前来探索!', unsafe_allow_html=True)
|
|
|
|
| 988 |
|
| 989 |
# 文本转换到十六进制
|
| 990 |
def text_to_hex(text):
|
| 991 |
+
return '0x' + ''.join(format(byte, '02x') for byte in text.encode('utf-8'))
|
| 992 |
|
| 993 |
|
| 994 |
# str SHA256
|
|
|
|
| 1136 |
|
| 1137 |
# 最近新闻
|
| 1138 |
st.markdown(f'#### 最近新闻')
|
| 1139 |
+
|
| 1140 |
st.markdown(
|
| 1141 |
+
f'<a href="https://twitter.com/dumbnamenumbers/status/1696989307871826137" target="_blank"><img src="data:image/jpeg;base64,{image_to_base64(os.path.join("img", "news.jpeg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/></a>',
|
| 1142 |
unsafe_allow_html=True)
|
| 1143 |
+
|
| 1144 |
+
|
| 1145 |
st.markdown(f'> 3 周前,我们提出了 Ethscriptions 虚拟机的构想——一种通过将其解释为计算机指令来显著增强 Ethscriptions 功能的方法。今天,我们宣布了该虚拟机的首个实现。已在 Goerli 网络上线,并已在 GitHub 上完全开源!👆')
|
| 1146 |
|
| 1147 |
# 广告位图片
|
| 1148 |
st.markdown(f'#### 广告位')
|
| 1149 |
+
|
| 1150 |
+
|
| 1151 |
st.markdown(
|
| 1152 |
+
f'<a href="https://twitter.com/EtchMarket/status/1694024108672245953" target="_blank"><img src="data:image/jpeg;base64,{image_to_base64(os.path.join("img", "ad.jpg"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);"/></a>',
|
| 1153 |
unsafe_allow_html=True)
|
| 1154 |
+
|
| 1155 |
st.markdown(f'> 拆分方案现在面向所有人推出!让我们一起加入权益挖矿的浪潮,并分享50%的月度服务费。')
|
| 1156 |
|
| 1157 |
|
| 1158 |
st.markdown(f'#### 什么是 Ethscriptions?', unsafe_allow_html=True)
|
| 1159 |
st.markdown(f'{my_style}<span class="tag"><a href="https://ethscriptions.com/" target="_blank" style="text-decoration: none;"><img src="data:image/jpeg;base64,{image_to_base64(os.path.join("img", "ethscriptions_logo_litto.png"))}" alt="Image" width="20px" height="20px" style="border-radius: 3px;"/> Ethscriptions</span></a> 是一种新的在以太坊上创建和分享数字资产的方法,它通过使用交易 calldata 存储数据而不是智能合约来实现,这使其比 NFT 更为经济。它们是完全在链上、无需许可、抗审查的,并且其成本只是 NFT 的一小部分。', unsafe_allow_html=True)
|
| 1160 |
+
|
| 1161 |
+
st.markdown(f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("img", "input_data.png"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 3px 3px 10px rgba(0,0,0,0.1);"/>', unsafe_allow_html=True)
|
| 1162 |
+
st.markdown('')
|
| 1163 |
st.markdown('#### 谁创造了 Ethscriptions?')
|
| 1164 |
st.markdown(f'首个 [Ethscription](https://ethscriptions.com/ethscriptions/0) 是在 2016 年创建的,但正式的协议是由 Tom Lehman,又名 <span class="tag"><a href="https://twitter.com/dumbnamenumbers" target="_blank" style="text-decoration: none;"><img src="data:image/jpeg;base64,{image_to_base64(os.path.join("img", "Middlemarch.jpg"))}" alt="Image" width="20px" height="20px" style="border-radius: 10px;"/> @Middlemarch</span></a> 开发的。除了比特币的铭文,他还受到了来自 Poly Network 黑客的著名的 “原型 - Ethscription” 的启发,你可以在[这笔交易](https://etherscan.io/tx/0x0ae3d3ce3630b5162484db5f3bdfacdfba33724ffb195ea92a6056beaa169490)中看到它。', unsafe_allow_html=True)
|
| 1165 |
st.markdown(f'- 快来加入 <span class="tag"><a href="https://discord.gg/ethscriptions" target="_blank" style="text-decoration: none;"><img src="data:image/svg+xml;base64,{image_to_base64(os.path.join("img", "discord.svg"))}" alt="Image" width="20px" height="20px" style="border-radius: 3px;" /> @ethscriptions</span></a>,一起讨论 Ethscriptions 的未来!', unsafe_allow_html=True)
|
|
|
|
| 1200 |
st.markdown(f'3. 填写 <span class="tag"><img src="data:image/svg+xml;base64,{image_to_base64(os.path.join("img", "0x.svg"))}" alt="Image" width="20px" height="20px" style="border-radius: 3px;" /> 十六进制数据</span> ,也就是我们刚才复制的文本;', unsafe_allow_html=True)
|
| 1201 |
st.markdown(f'4. 检查确认无误后发送交易。', unsafe_allow_html=True)
|
| 1202 |
st.markdown(f'稍等片刻,我们就可以在 <span class="tag"><a href="https://etherscan.io" target="_blank" style="text-decoration: none;"><img src="data:image/svg+xml;base64,{image_to_base64(os.path.join("img", "etherscan-logo.svg"))}" alt="Image" width="20px" height="20px" style="border-radius: 3px;" /> Etherscan</span></a> 区块浏览器看到成功的交易。', unsafe_allow_html=True)
|
| 1203 |
+
st.markdown(f'<img src="data:image/jpeg;base64,{image_to_base64(os.path.join("img", "etherscan_input_data.png"))}" alt="Image" style="max-width: 100%; width: 100%; height: auto; border-radius: 10px; display: block; box-shadow: 3px 3px 10px rgba(0,0,0,0.1);"/>', unsafe_allow_html=True)
|
| 1204 |
+
st.markdown('')
|
| 1205 |
+
|
| 1206 |
st.markdown(f'同时我们也可以前往 <span class="tag"><a href="https://ethscriptions.com/" target="_blank" style="text-decoration: none;"><img src="data:image/jpeg;base64,{image_to_base64(os.path.join("img", "ethscriptions_logo_litto.png"))}" alt="Image" width="20px" height="20px" style="border-radius: 3px;"/> Ethscriptions</span></a> 官方网站查看我们的铭文。', unsafe_allow_html=True)
|
| 1207 |
st.markdown(f'如果你觉得上述的方法步骤繁琐,我们建议你使用 Ethscriptions 官方推荐的 [EthScriber](https://ethscriber.xyz/) 还有 [Etherscan IDM](https://etherscan.io/idm),其他题写工具须在你确保安全的情况下使用,因为你不能确定它要发送什么铭文的交易。', unsafe_allow_html=True)
|
| 1208 |
st.markdown(f'EthPen.com 不仅为你提供优质的工具,还有详尽的教程供你参考。欢迎你前来探索!', unsafe_allow_html=True)
|