transfer100.pizza#71,261,020brc-20mint1,000.bome#64,575,078brc-20mint1,000.bome#64,575,046brc-20mint1,000.bome#64,575,034brc-20mint1,000.bome#64,574,831brc-20mint1,000.bome#64,574,827brc-20mint1,000.bome#64,574,815brc-20mint1,000.bome#64,574,785brc-20mint1,000.bome#64,574,705brc-20mint1,000.bome#64,574,687brc-20mint1,000.bome#64,574,613brc-20mint1,000.bome#64,574,493brc-20mint1,000.bome#64,574,399brc-20mint1,000.bome#64,574,218brc-20mint1,000.bome#64,574,068brc-20mint1,000.bome#64,573,944brc-20mint1,000.bome#64,573,869brc-20mint1,000.bome#64,573,832brc-20mint1,000.bome#64,573,724brc-20mint1,000.bome#64,572,991brc-20mint1,000.bome#64,572,874brc-20mint1,000.bome#64,572,854brc-20mint1,000.bome#64,572,779brc-20Inscription #64519732#64,519,732htmlInscription #64519731#64,519,731htmlInscription #64519730#64,519,730htmlInscription #64519729#64,519,729htmlInscription #64519728#64,519,728htmlInscription #64519727#64,519,727htmlInscription #64519726#64,519,726htmlInscription #64519725#64,519,725htmlInscription #64519724#64,519,724htmlInscription #64519723#64,519,723htmlInscription #64519656#64,519,656htmlInscription #64519655#64,519,655htmlInscription #64519654#64,519,654htmlInscription #64519653#64,519,653htmlInscription #64519652#64,519,652htmlInscription #64519651#64,519,651htmlInscription #64519650#64,519,650htmlInscription #64519649#64,519,649htmlInscription #64519648#64,519,648htmlInscription #64519647#64,519,647htmlInscription #50389961#50,389,961htmlInscription #50389960#50,389,960htmlInscription #50389959#50,389,959html #[test] fn unknown_preview() { let server = TestServer::new_with_regtest(); server.mine_blocks(1); let txid = server.bitcoin_rpc_server.broadcast_tx(TransactionTemplate { inputs: &[(1, 0, 0, inscription("text/foo", "hello").to_witness())], ..Default::default() }); server.mine_blocks(1); server.assert_response_csp( format!("/preview/{}", InscriptionId { txid, index: 0 }), StatusCode::OK, "default-src 'self'", fs::read_to_string("templates/preview-unknown.html").unwrap(), ); } #[test] fn video_preview() { let server = TestServer::new_with_regtest(); server.mine_blocks(1); let txid = server.bitcoin_rpc_server.broadcast_tx(TransactionTemplate { inputs: &[(1, 0, 0, inscription("video/webm", "hello").to_witness())], ..Default::default() }); let inscription_id = InscriptionId { txid, index: 0 }; server.mine_blocks(1); server.assert_response_regex( format!("/preview/{inscription_id}"), StatusCode::OK,#45,022,627text server.assert_response_regex( format!("/preview/{inscription_id}"), StatusCode::OK, format!(r".*<audio .*>\s*<source src=/content/{inscription_id}>.*"), ); } #[test] fn font_preview() { let server = TestServer::new_with_regtest(); server.mine_blocks(1); let txid = server.bitcoin_rpc_server.broadcast_tx(TransactionTemplate { inputs: &[(1, 0, 0, inscription("font/ttf", "hello").to_witness())], ..Default::default() }); let inscription_id = InscriptionId { txid, index: 0 }; server.mine_blocks(1); server.assert_response_regex( format!("/preview/{inscription_id}"), StatusCode::OK, format!(r".*src: url\(/content/{inscription_id}\).*"), ); } #[test] fn pdf_preview() { let server = TestServer::new_with_regtest(); server.mine_blocks(1); let txid = server.bitcoin_rpc_server.broadcast_tx(TransactionTemplate { inputs: &[( 1, 0, 0, inscription("application/pdf", "hello").to_witness(),#45,022,566text