diff --git a/crates/rooch-open-rpc-spec/schemas/openrpc.json b/crates/rooch-open-rpc-spec/schemas/openrpc.json index fbfd5438dc..7d7efbd388 100644 --- a/crates/rooch-open-rpc-spec/schemas/openrpc.json +++ b/crates/rooch-open-rpc-spec/schemas/openrpc.json @@ -1418,9 +1418,12 @@ "bitcoin_txid", "body", "index", + "inscription_number", + "is_curse", "metadata", "offset", "parents", + "sequence_number", "txid" ], "properties": { @@ -1455,6 +1458,14 @@ "format": "uint32", "minimum": 0.0 }, + "inscription_number": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + }, + "is_curse": { + "type": "boolean" + }, "metadata": { "$ref": "#/components/schemas/alloc::vec::Vec" }, @@ -1484,6 +1495,11 @@ "format": "uint64", "minimum": 0.0 }, + "sequence_number": { + "type": "integer", + "format": "uint32", + "minimum": 0.0 + }, "txid": { "$ref": "#/components/schemas/primitive_types::H256" } diff --git a/crates/rooch-rpc-api/src/jsonrpc_types/btc/ord.rs b/crates/rooch-rpc-api/src/jsonrpc_types/btc/ord.rs index d89a8cfc6c..3cd1eae392 100644 --- a/crates/rooch-rpc-api/src/jsonrpc_types/btc/ord.rs +++ b/crates/rooch-rpc-api/src/jsonrpc_types/btc/ord.rs @@ -86,6 +86,9 @@ pub struct InscriptionView { pub bitcoin_txid: TxidView, pub index: u32, pub offset: u64, + pub sequence_number: u32, + pub inscription_number: u32, + pub is_curse: bool, pub body: BytesView, pub content_encoding: Option, pub content_type: Option, @@ -102,6 +105,9 @@ impl From for InscriptionView { bitcoin_txid: StrView(Txid::from_byte_array(inscription.txid.into_bytes())), index: inscription.index, offset: inscription.offset, + sequence_number: inscription.sequence_number, + inscription_number: inscription.inscription_number, + is_curse: inscription.is_curse, body: StrView(inscription.body), content_encoding: Option::::from(inscription.content_encoding).map(StrView), content_type: Option::::from(inscription.content_type).map(StrView),