@@ -5,7 +5,6 @@ class ProtocolParser
55
66 # Protocol name to parser class mapping
77 PROTOCOL_PARSERS = {
8- 'word-domains' => WordDomainsParser ,
98 'erc-20' => Erc20FixedDenominationParser ,
109 'erc-20-fixed-denomination' => Erc20FixedDenominationParser ,
1110 'erc-721-ethscriptions-collection' => Erc721EthscriptionsCollectionParser
@@ -15,7 +14,6 @@ def self.extract(content_uri, eth_transaction: nil, ethscription_id: nil)
1514 # Parse data URI and extract protocol info
1615 parsed = parse_data_uri_and_protocol ( content_uri )
1716
18- # Special case: plain word-domains registration (data:,word) has no protocol markers
1917 if parsed . nil?
2018 # If we have an ethscription_id, try import fallback for collections regardless of content
2119 if ethscription_id
@@ -49,7 +47,7 @@ def self.extract(content_uri, eth_transaction: nil, ethscription_id: nil)
4947 end
5048 end
5149
52- return try_plain_word_domains ( content_uri )
50+ return nil
5351 end
5452
5553 # Direct routing - no "try" needed since we know the protocol
@@ -215,40 +213,4 @@ def self.parse_parameters(parameters)
215213 map
216214 end
217215
218- def self . try_plain_word_domains ( content_uri )
219- # Try to parse as plain word-domains registration (data:,word)
220- return nil unless content_uri . is_a? ( String )
221- return nil unless DataUri . valid? ( content_uri )
222-
223- data_uri = DataUri . new ( content_uri )
224- decoded_content = data_uri . decoded_data
225- return nil unless decoded_content . is_a? ( String )
226-
227- # For plain word-domains: must have blank mimetype and no parameters
228- # Also reject empty content (like 'data:,')
229- return nil if decoded_content . strip . empty?
230- mt = data_uri . mimetype . to_s
231- return nil unless ( mt . empty? || mt == 'text/plain' ) && data_uri . parameters . empty?
232-
233- # Special handling for plain word-domains
234- encoded = WordDomainsParser . validate_and_encode (
235- decoded_content : decoded_content ,
236- operation : nil , # No operation for plain text
237- params : { } ,
238- source : :plain ,
239- ethscription_id : nil
240- )
241-
242- return nil if encoded == DEFAULT_PARAMS
243-
244- protocol , operation , encoded_data = encoded
245-
246- {
247- type : :word_domains ,
248- protocol : protocol ,
249- operation : operation ,
250- params : nil ,
251- encoded_params : encoded_data
252- }
253- end
254- end
216+ end
0 commit comments