-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bitcoin] Implement brc20 progress #1197
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
|
||
friend rooch_framework::genesis; | ||
|
||
//TODO should we register the BRC20 as a CoinInfo? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the Indexer extension, specific types of Objects can be parsed, including CoinInfo
and CoinStore
. At the same time, by linking the Account, we can get the Coin-dimensional Indexer.
If Bitcoin and Ethereum can reuse CoinInfo
, a full-chain Coin Indexer can be generated.
The generation of NFT Indexers may be more complicated.
|
||
fun progress_op(brc20_store: &mut BRC20Store, op: Op) { | ||
if(!is_brc20(&op)){ | ||
std::debug::print(&string::utf8(b"not brc20 op")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug info can be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part still needs to be finished; Print debug just to watch the log. Maybe I should use Event in the future.
Summary
json::from_json_option
andjson::to_map
do not abort when invalid json.part of #993 #997
TODO: