use {super::*, ord::subcommand::parse::Output, ord::Object}; #[test] fn name() { assert_eq!( CommandBuilder::new("parse a").run_and_deserialize_output::<Output>(), Output { object: Object::Integer(2099999997689999), } ); } #[test] fn hash() { assert_eq!( CommandBuilder::new("parse 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef") .run_and_deserialize_output::<Output>(), Output { object: "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" .parse::<Object>() .unwrap(), } ); } #[test] fn unrecognized_object() { CommandBuilder::new("parse A") .stderr_regex(r"error: .*: unrecognized object\n.*") .expected_exit_code(2) .run_and_extract_stdout(); } #45,000,561text #: src/guides/reindexing.md:17 msgid "/home/alice/.local/share/ord" msgstr "/home/alice/.local/share/ord" #: src/guides/reindexing.md:18 msgid "macOS" msgstr "macOS" #: src/guides/reindexing.md:18 msgid "`$HOME`/Library/Application Support/ord" msgstr "`$HOME`/Library/Application Support/ord" #: src/guides/reindexing.md:18 msgid "/Users/Alice/Library/Application Support/ord" msgstr "/Users/Alice/Library/Application Support/ord" #: src/guides/reindexing.md:19 msgid "Windows" msgstr "Windows" #: src/guides/reindexing.md:19 msgid "`{FOLDERID_RoamingAppData}`\\\\ord" msgstr "`{FOLDERID_RoamingAppData}`\\\\ord" #: src/guides/reindexing.md:19 msgid "C:\\Users\\Alice\\AppData\\Roaming\\ord" msgstr "C:\\Users\\Alice\\AppData\\Roaming\\ord" #: src/guides/reindexing.md:21 msgid "" "So to delete the database and reindex on MacOS you would have to run the " "following commands in the terminal:" msgstr "" "Portanto, para deletar o banco de dados e reindexar no MacOS você teria que executar os seguintes comandos no terminal:" #44,990,560text"they are included, and can be combined with any other locking script." msgstr "" "O conteúdo da inscrição é serializado usando envios (pushes) de dados em condicionais " "não executados, chamadas \"envelopes\". Os envelopes consistem em um `OP_FALSE OP_IF " "… OP_ENDIF` envolvendo qualquer quantidade de envios de dados. Porque os envelopes são " "efetivamente autônomos, eles não alteram a semântica do script em que " "eles estão incluídos, e podem ser combinados com qualquer outro script de bloqueio." #: src/inscriptions.md:39 msgid "" "A text inscription containing the string \"Hello, world!\" is serialized as " "follows:" msgstr "" "Uma inscrição de texto contendo a string \"Hello, world!\" é serializada como " "segue:" #: src/inscriptions.md:42 msgid "" "```\n" "OP_FALSE\n" "OP_IF\n" " OP_PUSH \"ord\"\n" " OP_PUSH 1\n" " OP_PUSH \"text/plain;charset=utf-8\"\n" " OP_PUSH 0\n" " OP_PUSH \"Hello, world!\"\n" "OP_ENDIF\n" "```" msgstr "" "```\n" "OP_FALSE\n" "OP_IF\n" " OP_PUSH \"ord\"\n" " OP_PUSH 1\n" #44,989,004text #: src/guides/reindexing.md:17 msgid "/home/alice/.local/share/ord" msgstr "/home/alice/.local/share/ord" #: src/guides/reindexing.md:18 msgid "macOS" msgstr "macOS" #: src/guides/reindexing.md:18 msgid "`$HOME`/Library/Application Support/ord" msgstr "`$HOME`/Library/Application Support/ord" #: src/guides/reindexing.md:18 msgid "/Users/Alice/Library/Application Support/ord" msgstr "/Users/Alice/Library/Application Support/ord" #: src/guides/reindexing.md:19 msgid "Windows" msgstr "Windows" #: src/guides/reindexing.md:19 msgid "`{FOLDERID_RoamingAppData}`\\\\ord" msgstr "`{FOLDERID_RoamingAppData}`\\\\ord" #: src/guides/reindexing.md:19 msgid "C:\\Users\\Alice\\AppData\\Roaming\\ord" msgstr "C:\\Users\\Alice\\AppData\\Roaming\\ord" #: src/guides/reindexing.md:21 msgid "" "So to delete the database and reindex on MacOS you would have to run the " "following commands in the terminal:" msgstr "" "Portanto, para deletar o banco de dados e reindexar no MacOS você teria que executar os seguintes comandos no terminal:" #44,988,867text"```" msgstr "" "```sh\n" "bitcoin-cli getdescriptorinfo \\\n" " " "'wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)'\n" "```" #: src/guides/sat-hunting.md:170 msgid "" "```json\n" "{\n" " \"descriptor\": " "\"wpkh([bf1dd55e/84'/0'/0']xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)#csvefu29\",\n" " \"checksum\": \"tpnxnxax\",\n" " \"isrange\": true,\n" " \"issolvable\": true,\n" " \"hasprivatekeys\": false\n" "}\n" "```" msgstr "" "```json\n" "{\n" " \"descriptor\": " "\"wpkh([bf1dd55e/84'/0'/0']xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)#csvefu29\",\n" " \"checksum\": \"tpnxnxax\",\n" " \"isrange\": true,\n" " \"issolvable\": true,\n" " \"hasprivatekeys\": false\n" "}\n" "```" #: src/guides/sat-hunting.md:180 msgid "And for the change address descriptor, in this case `64k8wnd7`:"#44,985,653text