From 7a7d7861e9a2cd65874c1d123a98eebc7942da04 Mon Sep 17 00:00:00 2001 From: Fabio Tea Date: Wed, 16 Mar 2022 19:34:57 +0100 Subject: [PATCH 1/3] corrected mnemonic namespaces --- .gitignore | 243 ++++++++++++++++++ src/base58.php | 7 +- .../chinese_simplified.php} | 12 +- .../dutch.ws.php => mnemonic/dutch.php} | 14 +- .../english.ws.php => mnemonic/english.php} | 14 +- .../english_old.php} | 12 +- .../esperanto.php} | 14 +- .../french.ws.php => mnemonic/french.php} | 14 +- .../german.ws.php => mnemonic/german.php} | 16 +- .../italian.ws.php => mnemonic/italian.php} | 14 +- .../japanese.ws.php => mnemonic/japanese.php} | 14 +- .../lojban.ws.php => mnemonic/lojban.php} | 16 +- .../portuguese.php} | 12 +- .../russian.ws.php => mnemonic/russian.php} | 16 +- .../spanish.ws.php => mnemonic/spanish.php} | 16 +- 15 files changed, 352 insertions(+), 82 deletions(-) create mode 100644 .gitignore rename src/{wordsets/chinese_simplified.ws.php => mnemonic/chinese_simplified.php} (99%) rename src/{wordsets/dutch.ws.php => mnemonic/dutch.php} (99%) rename src/{wordsets/english.ws.php => mnemonic/english.php} (99%) rename src/{wordsets/english_old.ws.php => mnemonic/english_old.php} (99%) rename src/{wordsets/esperanto.ws.php => mnemonic/esperanto.php} (99%) rename src/{wordsets/french.ws.php => mnemonic/french.php} (99%) rename src/{wordsets/german.ws.php => mnemonic/german.php} (99%) rename src/{wordsets/italian.ws.php => mnemonic/italian.php} (99%) rename src/{wordsets/japanese.ws.php => mnemonic/japanese.php} (99%) rename src/{wordsets/lojban.ws.php => mnemonic/lojban.php} (99%) rename src/{wordsets/portuguese.ws.php => mnemonic/portuguese.php} (99%) rename src/{wordsets/russian.ws.php => mnemonic/russian.php} (99%) rename src/{wordsets/spanish.ws.php => mnemonic/spanish.php} (99%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1a8f357 --- /dev/null +++ b/.gitignore @@ -0,0 +1,243 @@ + +# Created by https://www.toptal.com/developers/gitignore/api/linux,macos,dotenv,laravel,windows,composer,intellij,visualstudiocode +# Edit at https://www.toptal.com/developers/gitignore?templates=linux,macos,dotenv,laravel,windows,composer,intellij,visualstudiocode + +### Composer ### +composer.phar +/vendor/ + +# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control +# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file +composer.lock + +### dotenv ### +.env + +### Intellij ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### Intellij Patch ### +# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 + +# *.iml +# modules.xml +# .idea/misc.xml +# *.ipr + +# Sonarlint plugin +# https://plugins.jetbrains.com/plugin/7973-sonarlint +.idea/**/sonarlint/ + +# SonarQube Plugin +# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin +.idea/**/sonarIssues.xml + +# Markdown Navigator plugin +# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced +.idea/**/markdown-navigator.xml +.idea/**/markdown-navigator-enh.xml +.idea/**/markdown-navigator/ + +# Cache file creation bug +# See https://youtrack.jetbrains.com/issue/JBR-2257 +.idea/$CACHE_FILE$ + +# CodeStream plugin +# https://plugins.jetbrains.com/plugin/12206-codestream +.idea/codestream.xml + +### Laravel ### +node_modules/ +npm-debug.log +yarn-error.log + +# Laravel 4 specific +bootstrap/compiled.php +app/storage/ + +# Laravel 5 & Lumen specific +public/storage +public/hot + +# Laravel 5 & Lumen specific with changed public path +public_html/storage +public_html/hot + +storage/*.key +Homestead.yaml +Homestead.json +/.vagrant +.phpunit.result.cache + +### Linux ### +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +# Support for Project snippet scope + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# End of https://www.toptal.com/developers/gitignore/api/linux,macos,dotenv,laravel,windows,composer,intellij,visualstudiocode + +/.php-version + +!.gitkeep diff --git a/src/base58.php b/src/base58.php index 1f0ef53..948b6d5 100644 --- a/src/base58.php +++ b/src/base58.php @@ -41,12 +41,13 @@ class base58 * * Convert a hexadecimal string to a binary array * - * @param string $hex A hexadecimal string to convert to a binary array + * @param string $hex A hexadecimal string to convert to a binary array * * @return array * + * @throws Exception */ - private function hex_to_bin($hex) + private function hex_to_bin($hex): array { if (!is_string($hex)) { throw new Exception('base58->hex_to_bin(): Invalid input type (must be a string)'); @@ -320,7 +321,7 @@ private function decode_block($data, $buf, $index) if ($res_size < self::$full_block_size && bcpow(2, 8 * $res_size) <= 0) { throw new Exception('base58->decode_block(): Integer overflow (bcpow(2, 8 * $res_size) exceeds the maximum 64bit integer)'); } - + $tmp_buf = self::uint64_to_8_be($res_num, $res_size); for ($i = 0, $iMax = count($tmp_buf); $i < $iMax; $i++) { $buf[$i + $index] = $tmp_buf[$i]; diff --git a/src/wordsets/chinese_simplified.ws.php b/src/mnemonic/chinese_simplified.php similarity index 99% rename from src/wordsets/chinese_simplified.ws.php rename to src/mnemonic/chinese_simplified.php index bb0c943..209eff2 100644 --- a/src/wordsets/chinese_simplified.ws.php +++ b/src/mnemonic/chinese_simplified.php @@ -2,6 +2,8 @@ namespace MoneroIntegrations\MoneroPhp\mnemonic; +use MoneroIntegrations\MoneroPhp\wordset; + class chinese_simplified implements wordset { /* Returns name of wordset in the wordset's native language. @@ -12,7 +14,7 @@ static public function name() : string { return "简体中文 (中国)"; } - /* Returns name of wordset in english. + /* Returns name of wordset in english. * This is a human-readable string, and should be capitalized */ static public function english_name() : string { @@ -25,13 +27,13 @@ static public function english_name() : string { * * A value of 0 indicates that there is no unique prefix * and the entire word must be used instead. - */ + */ static public function prefix_length() : int { return 1; // first letter of each word in wordset is unique. } - + /* Returns an array of all words in the wordset. - */ + */ static public function words() : array { return [ "的", @@ -1662,4 +1664,4 @@ static public function words() : array { "貌", ]; } -} \ No newline at end of file +} diff --git a/src/wordsets/dutch.ws.php b/src/mnemonic/dutch.php similarity index 99% rename from src/wordsets/dutch.ws.php rename to src/mnemonic/dutch.php index 6005986..54500f7 100644 --- a/src/wordsets/dutch.ws.php +++ b/src/mnemonic/dutch.php @@ -2,6 +2,8 @@ namespace MoneroIntegrations\MoneroPhp\mnemonic; +use MoneroIntegrations\MoneroPhp\wordset; + class dutch implements wordset { /* Returns name of wordset in the wordset's native language. @@ -12,7 +14,7 @@ static public function name() : string { return "Nederlands"; } - /* Returns name of wordset in english. + /* Returns name of wordset in english. * This is a human-readable string, and should be capitalized */ static public function english_name() : string { @@ -25,13 +27,13 @@ static public function english_name() : string { * * A value of 0 indicates that there is no unique prefix * and the entire word must be used instead. - */ + */ static public function prefix_length() : int { return 4; // first 4 letters of each word in wordset is unique. } - + /* Returns an array of all words in the wordset. - */ + */ static public function words() : array { return [ "aalglad", @@ -1659,7 +1661,7 @@ static public function words() : array { "zwepen", "zwiep", "zwijmel", - "zworen" + "zworen" ]; } -} \ No newline at end of file +} diff --git a/src/wordsets/english.ws.php b/src/mnemonic/english.php similarity index 99% rename from src/wordsets/english.ws.php rename to src/mnemonic/english.php index 9f96360..fcc0f49 100644 --- a/src/wordsets/english.ws.php +++ b/src/mnemonic/english.php @@ -2,6 +2,8 @@ namespace MoneroIntegrations\MoneroPhp\mnemonic; +use MoneroIntegrations\MoneroPhp\wordset; + class english implements wordset { /* Returns name of wordset in the wordset's native language. @@ -12,11 +14,11 @@ static public function name() : string { return "English"; } - /* Returns name of wordset in english. + /* Returns name of wordset in english. * This is a human-readable string, and should be capitalized */ static public function english_name() : string { - return "English"; + return "English"; } /* Returns integer indicating length of unique prefix, @@ -25,13 +27,13 @@ static public function english_name() : string { * * A value of 0 indicates that there is no unique prefix * and the entire word must be used instead. - */ + */ static public function prefix_length() : int { return 3; // first 3 letters of each word in wordset is unique. } - + /* Returns an array of all words in the wordset. - */ + */ static public function words() : array { return [ "abbey", @@ -1662,4 +1664,4 @@ static public function words() : array { "zoom", ]; } -} \ No newline at end of file +} diff --git a/src/wordsets/english_old.ws.php b/src/mnemonic/english_old.php similarity index 99% rename from src/wordsets/english_old.ws.php rename to src/mnemonic/english_old.php index 419a067..ad0783c 100644 --- a/src/wordsets/english_old.ws.php +++ b/src/mnemonic/english_old.php @@ -7,6 +7,8 @@ */ +use MoneroIntegrations\MoneroPhp\wordset; + class english_old implements wordset { /* Returns name of wordset in the wordset's native language. @@ -17,7 +19,7 @@ static public function name() : string { return "EnglishOld"; } - /* Returns name of wordset in english. + /* Returns name of wordset in english. * This is a human-readable string, and should be capitalized */ static public function english_name() : string { @@ -30,13 +32,13 @@ static public function english_name() : string { * * A value of 0 indicates that there is no unique prefix * and the entire word must be used instead. - */ + */ static public function prefix_length() : int { return 0; // require entire word. } - + /* Returns an array of all words in the wordset. - */ + */ static public function words() : array { return [ "like", @@ -1667,4 +1669,4 @@ static public function words() : array { "weary", ]; } -} \ No newline at end of file +} diff --git a/src/wordsets/esperanto.ws.php b/src/mnemonic/esperanto.php similarity index 99% rename from src/wordsets/esperanto.ws.php rename to src/mnemonic/esperanto.php index de33c2d..874bea0 100644 --- a/src/wordsets/esperanto.ws.php +++ b/src/mnemonic/esperanto.php @@ -2,6 +2,8 @@ namespace MoneroIntegrations\MoneroPhp\mnemonic; +use MoneroIntegrations\MoneroPhp\wordset; + class esperanto implements wordset { /* Returns name of wordset in the wordset's native language. @@ -12,7 +14,7 @@ static public function name() : string { return "Esperanto"; } - /* Returns name of wordset in english. + /* Returns name of wordset in english. * This is a human-readable string, and should be capitalized */ static public function english_name() : string { @@ -25,13 +27,13 @@ static public function english_name() : string { * * A value of 0 indicates that there is no unique prefix * and the entire word must be used instead. - */ + */ static public function prefix_length() : int { return 4; // first 4 letters of each word in wordset is unique. } - + /* Returns an array of all words in the wordset. - */ + */ static public function words() : array { return [ "abako", @@ -1659,7 +1661,7 @@ static public function words() : array { "zoologio", "zorgi", "zukino", - "zumilo", + "zumilo", ]; } -} \ No newline at end of file +} diff --git a/src/wordsets/french.ws.php b/src/mnemonic/french.php similarity index 99% rename from src/wordsets/french.ws.php rename to src/mnemonic/french.php index 658c40d..505260c 100644 --- a/src/wordsets/french.ws.php +++ b/src/mnemonic/french.php @@ -2,6 +2,8 @@ namespace MoneroIntegrations\MoneroPhp\mnemonic; +use MoneroIntegrations\MoneroPhp\wordset; + class french implements wordset { /* Returns name of wordset in the wordset's native language. @@ -9,10 +11,10 @@ class french implements wordset { * if the language supports it. */ static public function name() : string { - return "Français"; + return "Français"; } - /* Returns name of wordset in english. + /* Returns name of wordset in english. * This is a human-readable string, and should be capitalized */ static public function english_name() : string { @@ -25,13 +27,13 @@ static public function english_name() : string { * * A value of 0 indicates that there is no unique prefix * and the entire word must be used instead. - */ + */ static public function prefix_length() : int { return 4; // first 4 letters of each word in wordset is unique. } - + /* Returns an array of all words in the wordset. - */ + */ static public function words() : array { return [ "abandon", @@ -1662,4 +1664,4 @@ static public function words() : array { "zoom", ]; } -} \ No newline at end of file +} diff --git a/src/wordsets/german.ws.php b/src/mnemonic/german.php similarity index 99% rename from src/wordsets/german.ws.php rename to src/mnemonic/german.php index 9805987..96c711b 100644 --- a/src/wordsets/german.ws.php +++ b/src/mnemonic/german.php @@ -2,6 +2,8 @@ namespace MoneroIntegrations\MoneroPhp\mnemonic; +use MoneroIntegrations\MoneroPhp\wordset; + class german implements wordset { /* Returns name of wordset in the wordset's native language. @@ -9,10 +11,10 @@ class german implements wordset { * if the language supports it. */ static public function name() : string { - return "Deutsch"; + return "Deutsch"; } - /* Returns name of wordset in english. + /* Returns name of wordset in english. * This is a human-readable string, and should be capitalized */ static public function english_name() : string { @@ -26,13 +28,13 @@ static public function english_name() : string { * * A value of 0 indicates that there is no unique prefix * and the entire word must be used instead. - */ + */ static public function prefix_length() : int { return 4; // first 4 letters of each word in wordset is unique. } - + /* Returns an array of all words in the wordset. - */ + */ static public function words() : array { return [ "Abakus", @@ -1660,7 +1662,7 @@ static public function words() : array { "Zugvogel", "Zündung", "Zweck", - "Zyklop" + "Zyklop" ]; } -} \ No newline at end of file +} diff --git a/src/wordsets/italian.ws.php b/src/mnemonic/italian.php similarity index 99% rename from src/wordsets/italian.ws.php rename to src/mnemonic/italian.php index f730449..1d70c14 100644 --- a/src/wordsets/italian.ws.php +++ b/src/mnemonic/italian.php @@ -2,6 +2,8 @@ namespace MoneroIntegrations\MoneroPhp\mnemonic; +use MoneroIntegrations\MoneroPhp\wordset; + class italian implements wordset { /* Returns name of wordset in the wordset's native language. @@ -12,7 +14,7 @@ static public function name() : string { return "Italiano"; } - /* Returns name of wordset in english. + /* Returns name of wordset in english. * This is a human-readable string, and should be capitalized */ static public function english_name() : string { @@ -25,13 +27,13 @@ static public function english_name() : string { * * A value of 0 indicates that there is no unique prefix * and the entire word must be used instead. - */ + */ static public function prefix_length() : int { return 4; // first 4 letters of each word in wordset is unique. } - + /* Returns an array of all words in the wordset. - */ + */ static public function words() : array { return [ "abbinare", @@ -1659,7 +1661,7 @@ static public function words() : array { "zoccolo", "zolfo", "zombie", - "zucchero" + "zucchero" ]; } -} \ No newline at end of file +} diff --git a/src/wordsets/japanese.ws.php b/src/mnemonic/japanese.php similarity index 99% rename from src/wordsets/japanese.ws.php rename to src/mnemonic/japanese.php index 6e63d70..0627d18 100644 --- a/src/wordsets/japanese.ws.php +++ b/src/mnemonic/japanese.php @@ -2,6 +2,8 @@ namespace MoneroIntegrations\MoneroPhp\mnemonic; +use MoneroIntegrations\MoneroPhp\wordset; + class japanese implements wordset { /* Returns name of wordset in the wordset's native language. @@ -12,7 +14,7 @@ static public function name() : string { return "日本語"; } - /* Returns name of wordset in english. + /* Returns name of wordset in english. * This is a human-readable string, and should be capitalized */ static public function english_name() : string { @@ -25,13 +27,13 @@ static public function english_name() : string { * * A value of 0 indicates that there is no unique prefix * and the entire word must be used instead. - */ + */ static public function prefix_length() : int { return 3; // first 3 letters of each word in wordset is unique. } - + /* Returns an array of all words in the wordset. - */ + */ static public function words() : array { return [ "あいこくしん", @@ -1659,7 +1661,7 @@ static public function words() : array { "ひさしぶり", "ひさん", "びじゅつかん", - "ひしょ" + "ひしょ" ]; } -} \ No newline at end of file +} diff --git a/src/wordsets/lojban.ws.php b/src/mnemonic/lojban.php similarity index 99% rename from src/wordsets/lojban.ws.php rename to src/mnemonic/lojban.php index 2219125..c286e36 100644 --- a/src/wordsets/lojban.ws.php +++ b/src/mnemonic/lojban.php @@ -2,6 +2,8 @@ namespace MoneroIntegrations\MoneroPhp\mnemonic; +use MoneroIntegrations\MoneroPhp\wordset; + class lojban implements wordset { /* Returns name of wordset in the wordset's native language. @@ -9,14 +11,14 @@ class lojban implements wordset { * if the language supports it. */ static public function name() : string { - return "Lojban"; + return "Lojban"; } - /* Returns name of wordset in english. + /* Returns name of wordset in english. * This is a human-readable string, and should be capitalized */ static public function english_name() : string { - return "Lojban"; + return "Lojban"; } /* Returns integer indicating length of unique prefix, @@ -25,13 +27,13 @@ static public function english_name() : string { * * A value of 0 indicates that there is no unique prefix * and the entire word must be used instead. - */ + */ static public function prefix_length() : int { return 4; // first 4 letters of each word in wordset is unique. } - + /* Returns an array of all words in the wordset. - */ + */ static public function words() : array { return [ "backi", @@ -1662,4 +1664,4 @@ static public function words() : array { "snaxa'a", ]; } -} \ No newline at end of file +} diff --git a/src/wordsets/portuguese.ws.php b/src/mnemonic/portuguese.php similarity index 99% rename from src/wordsets/portuguese.ws.php rename to src/mnemonic/portuguese.php index cee713d..7ef3c96 100644 --- a/src/wordsets/portuguese.ws.php +++ b/src/mnemonic/portuguese.php @@ -2,6 +2,8 @@ namespace MoneroIntegrations\MoneroPhp\mnemonic; +use MoneroIntegrations\MoneroPhp\wordset; + class portuguese implements wordset { /* Returns name of wordset in the wordset's native language. @@ -12,7 +14,7 @@ static public function name() : string { return "Português"; } - /* Returns name of wordset in english. + /* Returns name of wordset in english. * This is a human-readable string, and should be capitalized */ static public function english_name() : string { @@ -26,13 +28,13 @@ static public function english_name() : string { * * A value of 0 indicates that there is no unique prefix * and the entire word must be used instead. - */ + */ static public function prefix_length() : int { return 4; // first 4 letters of each word in wordset is unique. } - + /* Returns an array of all words in the wordset. - */ + */ static public function words() : array { return [ "abaular", @@ -1663,4 +1665,4 @@ static public function words() : array { "zumbi" ]; } -} \ No newline at end of file +} diff --git a/src/wordsets/russian.ws.php b/src/mnemonic/russian.php similarity index 99% rename from src/wordsets/russian.ws.php rename to src/mnemonic/russian.php index 5c6a02d..14b57d1 100644 --- a/src/wordsets/russian.ws.php +++ b/src/mnemonic/russian.php @@ -2,6 +2,8 @@ namespace MoneroIntegrations\MoneroPhp\mnemonic; +use MoneroIntegrations\MoneroPhp\wordset; + class russian implements wordset { /* Returns name of wordset in the wordset's native language. @@ -10,10 +12,10 @@ class russian implements wordset { */ static public function name() : string { return "русский язык"; - + } - /* Returns name of wordset in english. + /* Returns name of wordset in english. * This is a human-readable string, and should be capitalized */ static public function english_name() : string { @@ -26,13 +28,13 @@ static public function english_name() : string { * * A value of 0 indicates that there is no unique prefix * and the entire word must be used instead. - */ + */ static public function prefix_length() : int { return 3; // first 3 letters of each word in wordset is unique. } - + /* Returns an array of all words in the wordset. - */ + */ static public function words() : array { return [ "абажур", @@ -1660,7 +1662,7 @@ static public function words() : array { "ясный", "яхта", "ячейка", - "ящик" + "ящик" ]; } -} \ No newline at end of file +} diff --git a/src/wordsets/spanish.ws.php b/src/mnemonic/spanish.php similarity index 99% rename from src/wordsets/spanish.ws.php rename to src/mnemonic/spanish.php index f5854b1..8d42bac 100644 --- a/src/wordsets/spanish.ws.php +++ b/src/mnemonic/spanish.php @@ -2,6 +2,8 @@ namespace MoneroIntegrations\MoneroPhp\mnemonic; +use MoneroIntegrations\MoneroPhp\wordset; + class spanish implements wordset { /* Returns name of wordset in the wordset's native language. @@ -10,10 +12,10 @@ class spanish implements wordset { */ static public function name() : string { return "Español"; - + } - /* Returns name of wordset in english. + /* Returns name of wordset in english. * This is a human-readable string, and should be capitalized */ static public function english_name() : string { @@ -27,13 +29,13 @@ static public function english_name() : string { * * A value of 0 indicates that there is no unique prefix * and the entire word must be used instead. - */ + */ static public function prefix_length() : int { return 4; // first 4 letters of each word in wordset is unique. } - + /* Returns an array of all words in the wordset. - */ + */ static public function words() : array { return [ "ábaco", @@ -1661,7 +1663,7 @@ static public function words() : array { "riqueza", "risa", "ritmo", - "rito" + "rito" ]; } -} \ No newline at end of file +} From 76138105cb1372e3974696f07c6815aa204b45e1 Mon Sep 17 00:00:00 2001 From: Fabio Tea Date: Mon, 27 Mar 2023 14:09:07 +0000 Subject: [PATCH 2/3] removed gitignore; fetched latest changes --- .gitignore | 243 ------------- vendor/autoload.php | 7 + vendor/composer/ClassLoader.php | 445 ++++++++++++++++++++++++ vendor/composer/InstalledVersions.php | 219 ++++++++++++ vendor/composer/LICENSE | 21 ++ vendor/composer/autoload_classmap.php | 10 + vendor/composer/autoload_namespaces.php | 9 + vendor/composer/autoload_psr4.php | 10 + vendor/composer/autoload_real.php | 55 +++ vendor/composer/autoload_static.php | 36 ++ vendor/composer/installed.json | 5 + vendor/composer/installed.php | 24 ++ 12 files changed, 841 insertions(+), 243 deletions(-) delete mode 100644 .gitignore create mode 100644 vendor/autoload.php create mode 100644 vendor/composer/ClassLoader.php create mode 100644 vendor/composer/InstalledVersions.php create mode 100644 vendor/composer/LICENSE create mode 100644 vendor/composer/autoload_classmap.php create mode 100644 vendor/composer/autoload_namespaces.php create mode 100644 vendor/composer/autoload_psr4.php create mode 100644 vendor/composer/autoload_real.php create mode 100644 vendor/composer/autoload_static.php create mode 100644 vendor/composer/installed.json create mode 100644 vendor/composer/installed.php diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 1a8f357..0000000 --- a/.gitignore +++ /dev/null @@ -1,243 +0,0 @@ - -# Created by https://www.toptal.com/developers/gitignore/api/linux,macos,dotenv,laravel,windows,composer,intellij,visualstudiocode -# Edit at https://www.toptal.com/developers/gitignore?templates=linux,macos,dotenv,laravel,windows,composer,intellij,visualstudiocode - -### Composer ### -composer.phar -/vendor/ - -# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control -# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file -composer.lock - -### dotenv ### -.env - -### Intellij ### -# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider -# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 - -# User-specific stuff -.idea/**/workspace.xml -.idea/**/tasks.xml -.idea/**/usage.statistics.xml -.idea/**/dictionaries -.idea/**/shelf - -# AWS User-specific -.idea/**/aws.xml - -# Generated files -.idea/**/contentModel.xml - -# Sensitive or high-churn files -.idea/**/dataSources/ -.idea/**/dataSources.ids -.idea/**/dataSources.local.xml -.idea/**/sqlDataSources.xml -.idea/**/dynamic.xml -.idea/**/uiDesigner.xml -.idea/**/dbnavigator.xml - -# Gradle -.idea/**/gradle.xml -.idea/**/libraries - -# Gradle and Maven with auto-import -# When using Gradle or Maven with auto-import, you should exclude module files, -# since they will be recreated, and may cause churn. Uncomment if using -# auto-import. -# .idea/artifacts -# .idea/compiler.xml -# .idea/jarRepositories.xml -# .idea/modules.xml -# .idea/*.iml -# .idea/modules -# *.iml -# *.ipr - -# CMake -cmake-build-*/ - -# Mongo Explorer plugin -.idea/**/mongoSettings.xml - -# File-based project format -*.iws - -# IntelliJ -out/ - -# mpeltonen/sbt-idea plugin -.idea_modules/ - -# JIRA plugin -atlassian-ide-plugin.xml - -# Cursive Clojure plugin -.idea/replstate.xml - -# SonarLint plugin -.idea/sonarlint/ - -# Crashlytics plugin (for Android Studio and IntelliJ) -com_crashlytics_export_strings.xml -crashlytics.properties -crashlytics-build.properties -fabric.properties - -# Editor-based Rest Client -.idea/httpRequests - -# Android studio 3.1+ serialized cache file -.idea/caches/build_file_checksums.ser - -### Intellij Patch ### -# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 - -# *.iml -# modules.xml -# .idea/misc.xml -# *.ipr - -# Sonarlint plugin -# https://plugins.jetbrains.com/plugin/7973-sonarlint -.idea/**/sonarlint/ - -# SonarQube Plugin -# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin -.idea/**/sonarIssues.xml - -# Markdown Navigator plugin -# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced -.idea/**/markdown-navigator.xml -.idea/**/markdown-navigator-enh.xml -.idea/**/markdown-navigator/ - -# Cache file creation bug -# See https://youtrack.jetbrains.com/issue/JBR-2257 -.idea/$CACHE_FILE$ - -# CodeStream plugin -# https://plugins.jetbrains.com/plugin/12206-codestream -.idea/codestream.xml - -### Laravel ### -node_modules/ -npm-debug.log -yarn-error.log - -# Laravel 4 specific -bootstrap/compiled.php -app/storage/ - -# Laravel 5 & Lumen specific -public/storage -public/hot - -# Laravel 5 & Lumen specific with changed public path -public_html/storage -public_html/hot - -storage/*.key -Homestead.yaml -Homestead.json -/.vagrant -.phpunit.result.cache - -### Linux ### -*~ - -# temporary files which can be created if a process still has a handle open of a deleted file -.fuse_hidden* - -# KDE directory preferences -.directory - -# Linux trash folder which might appear on any partition or disk -.Trash-* - -# .nfs files are created when an open file is removed but is still being accessed -.nfs* - -### macOS ### -# General -.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - -### VisualStudioCode ### -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -!.vscode/*.code-snippets - -# Local History for Visual Studio Code -.history/ - -# Built Visual Studio Code Extensions -*.vsix - -### VisualStudioCode Patch ### -# Ignore all local history of files -.history -.ionide - -# Support for Project snippet scope - -### Windows ### -# Windows thumbnail cache files -Thumbs.db -Thumbs.db:encryptable -ehthumbs.db -ehthumbs_vista.db - -# Dump file -*.stackdump - -# Folder config file -[Dd]esktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msix -*.msm -*.msp - -# Windows shortcuts -*.lnk - -# End of https://www.toptal.com/developers/gitignore/api/linux,macos,dotenv,laravel,windows,composer,intellij,visualstudiocode - -/.php-version - -!.gitkeep diff --git a/vendor/autoload.php b/vendor/autoload.php new file mode 100644 index 0000000..9175768 --- /dev/null +++ b/vendor/autoload.php @@ -0,0 +1,7 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer\Autoload; + +/** + * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. + * + * $loader = new \Composer\Autoload\ClassLoader(); + * + * // register classes with namespaces + * $loader->add('Symfony\Component', __DIR__.'/component'); + * $loader->add('Symfony', __DIR__.'/framework'); + * + * // activate the autoloader + * $loader->register(); + * + * // to enable searching the include path (eg. for PEAR packages) + * $loader->setUseIncludePath(true); + * + * In this example, if you try to use a class in the Symfony\Component + * namespace or one of its children (Symfony\Component\Console for instance), + * the autoloader will first look for the class under the component/ + * directory, and it will then fallback to the framework/ directory if not + * found before giving up. + * + * This class is loosely based on the Symfony UniversalClassLoader. + * + * @author Fabien Potencier + * @author Jordi Boggiano + * @see https://www.php-fig.org/psr/psr-0/ + * @see https://www.php-fig.org/psr/psr-4/ + */ +class ClassLoader +{ + // PSR-4 + private $prefixLengthsPsr4 = array(); + private $prefixDirsPsr4 = array(); + private $fallbackDirsPsr4 = array(); + + // PSR-0 + private $prefixesPsr0 = array(); + private $fallbackDirsPsr0 = array(); + + private $useIncludePath = false; + private $classMap = array(); + private $classMapAuthoritative = false; + private $missingClasses = array(); + private $apcuPrefix; + + public function getPrefixes() + { + if (!empty($this->prefixesPsr0)) { + return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); + } + + return array(); + } + + public function getPrefixesPsr4() + { + return $this->prefixDirsPsr4; + } + + public function getFallbackDirs() + { + return $this->fallbackDirsPsr0; + } + + public function getFallbackDirsPsr4() + { + return $this->fallbackDirsPsr4; + } + + public function getClassMap() + { + return $this->classMap; + } + + /** + * @param array $classMap Class to filename map + */ + public function addClassMap(array $classMap) + { + if ($this->classMap) { + $this->classMap = array_merge($this->classMap, $classMap); + } else { + $this->classMap = $classMap; + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, either + * appending or prepending to the ones previously set for this prefix. + * + * @param string $prefix The prefix + * @param array|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories + */ + public function add($prefix, $paths, $prepend = false) + { + if (!$prefix) { + if ($prepend) { + $this->fallbackDirsPsr0 = array_merge( + (array) $paths, + $this->fallbackDirsPsr0 + ); + } else { + $this->fallbackDirsPsr0 = array_merge( + $this->fallbackDirsPsr0, + (array) $paths + ); + } + + return; + } + + $first = $prefix[0]; + if (!isset($this->prefixesPsr0[$first][$prefix])) { + $this->prefixesPsr0[$first][$prefix] = (array) $paths; + + return; + } + if ($prepend) { + $this->prefixesPsr0[$first][$prefix] = array_merge( + (array) $paths, + $this->prefixesPsr0[$first][$prefix] + ); + } else { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $this->prefixesPsr0[$first][$prefix], + (array) $paths + ); + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, either + * appending or prepending to the ones previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param array|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories + * + * @throws \InvalidArgumentException + */ + public function addPsr4($prefix, $paths, $prepend = false) + { + if (!$prefix) { + // Register directories for the root namespace. + if ($prepend) { + $this->fallbackDirsPsr4 = array_merge( + (array) $paths, + $this->fallbackDirsPsr4 + ); + } else { + $this->fallbackDirsPsr4 = array_merge( + $this->fallbackDirsPsr4, + (array) $paths + ); + } + } elseif (!isset($this->prefixDirsPsr4[$prefix])) { + // Register directories for a new namespace. + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } elseif ($prepend) { + // Prepend directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + (array) $paths, + $this->prefixDirsPsr4[$prefix] + ); + } else { + // Append directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $this->prefixDirsPsr4[$prefix], + (array) $paths + ); + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, + * replacing any others previously set for this prefix. + * + * @param string $prefix The prefix + * @param array|string $paths The PSR-0 base directories + */ + public function set($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr0 = (array) $paths; + } else { + $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, + * replacing any others previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param array|string $paths The PSR-4 base directories + * + * @throws \InvalidArgumentException + */ + public function setPsr4($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr4 = (array) $paths; + } else { + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } + } + + /** + * Turns on searching the include path for class files. + * + * @param bool $useIncludePath + */ + public function setUseIncludePath($useIncludePath) + { + $this->useIncludePath = $useIncludePath; + } + + /** + * Can be used to check if the autoloader uses the include path to check + * for classes. + * + * @return bool + */ + public function getUseIncludePath() + { + return $this->useIncludePath; + } + + /** + * Turns off searching the prefix and fallback directories for classes + * that have not been registered with the class map. + * + * @param bool $classMapAuthoritative + */ + public function setClassMapAuthoritative($classMapAuthoritative) + { + $this->classMapAuthoritative = $classMapAuthoritative; + } + + /** + * Should class lookup fail if not found in the current class map? + * + * @return bool + */ + public function isClassMapAuthoritative() + { + return $this->classMapAuthoritative; + } + + /** + * APCu prefix to use to cache found/not-found classes, if the extension is enabled. + * + * @param string|null $apcuPrefix + */ + public function setApcuPrefix($apcuPrefix) + { + $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; + } + + /** + * The APCu prefix in use, or null if APCu caching is not enabled. + * + * @return string|null + */ + public function getApcuPrefix() + { + return $this->apcuPrefix; + } + + /** + * Registers this instance as an autoloader. + * + * @param bool $prepend Whether to prepend the autoloader or not + */ + public function register($prepend = false) + { + spl_autoload_register(array($this, 'loadClass'), true, $prepend); + } + + /** + * Unregisters this instance as an autoloader. + */ + public function unregister() + { + spl_autoload_unregister(array($this, 'loadClass')); + } + + /** + * Loads the given class or interface. + * + * @param string $class The name of the class + * @return bool|null True if loaded, null otherwise + */ + public function loadClass($class) + { + if ($file = $this->findFile($class)) { + includeFile($file); + + return true; + } + } + + /** + * Finds the path to the file where the class is defined. + * + * @param string $class The name of the class + * + * @return string|false The path if found, false otherwise + */ + public function findFile($class) + { + // class map lookup + if (isset($this->classMap[$class])) { + return $this->classMap[$class]; + } + if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { + return false; + } + if (null !== $this->apcuPrefix) { + $file = apcu_fetch($this->apcuPrefix.$class, $hit); + if ($hit) { + return $file; + } + } + + $file = $this->findFileWithExtension($class, '.php'); + + // Search for Hack files if we are running on HHVM + if (false === $file && defined('HHVM_VERSION')) { + $file = $this->findFileWithExtension($class, '.hh'); + } + + if (null !== $this->apcuPrefix) { + apcu_add($this->apcuPrefix.$class, $file); + } + + if (false === $file) { + // Remember that this class does not exist. + $this->missingClasses[$class] = true; + } + + return $file; + } + + private function findFileWithExtension($class, $ext) + { + // PSR-4 lookup + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; + + $first = $class[0]; + if (isset($this->prefixLengthsPsr4[$first])) { + $subPath = $class; + while (false !== $lastPos = strrpos($subPath, '\\')) { + $subPath = substr($subPath, 0, $lastPos); + $search = $subPath . '\\'; + if (isset($this->prefixDirsPsr4[$search])) { + $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); + foreach ($this->prefixDirsPsr4[$search] as $dir) { + if (file_exists($file = $dir . $pathEnd)) { + return $file; + } + } + } + } + } + + // PSR-4 fallback dirs + foreach ($this->fallbackDirsPsr4 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { + return $file; + } + } + + // PSR-0 lookup + if (false !== $pos = strrpos($class, '\\')) { + // namespaced class name + $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) + . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); + } else { + // PEAR-like class name + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; + } + + if (isset($this->prefixesPsr0[$first])) { + foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { + if (0 === strpos($class, $prefix)) { + foreach ($dirs as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + } + } + } + + // PSR-0 fallback dirs + foreach ($this->fallbackDirsPsr0 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + + // PSR-0 include paths. + if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { + return $file; + } + + return false; + } +} + +/** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + */ +function includeFile($file) +{ + include $file; +} diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php new file mode 100644 index 0000000..fe45b9a --- /dev/null +++ b/vendor/composer/InstalledVersions.php @@ -0,0 +1,219 @@ + + array ( + 'pretty_version' => '1.0.1', + 'version' => '1.0.1.0', + 'aliases' => + array ( + ), + 'reference' => NULL, + 'name' => 'monero-integrations/monerophp', + ), + 'versions' => + array ( + 'monero-integrations/monerophp' => + array ( + 'pretty_version' => '1.0.1', + 'version' => '1.0.1.0', + 'aliases' => + array ( + ), + 'reference' => NULL, + ), + ), +); + + + + + + + +public static function getInstalledPackages() +{ +return array_keys(self::$installed['versions']); +} + + + + + + + + + +public static function isInstalled($packageName) +{ +return isset(self::$installed['versions'][$packageName]); +} + + + + + + + + + + + + + + +public static function satisfies(VersionParser $parser, $packageName, $constraint) +{ +$constraint = $parser->parseConstraints($constraint); +$provided = $parser->parseConstraints(self::getVersionRanges($packageName)); + +return $provided->matches($constraint); +} + + + + + + + + + + +public static function getVersionRanges($packageName) +{ +if (!isset(self::$installed['versions'][$packageName])) { +throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); +} + +$ranges = array(); +if (isset(self::$installed['versions'][$packageName]['pretty_version'])) { +$ranges[] = self::$installed['versions'][$packageName]['pretty_version']; +} +if (array_key_exists('aliases', self::$installed['versions'][$packageName])) { +$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']); +} +if (array_key_exists('replaced', self::$installed['versions'][$packageName])) { +$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']); +} +if (array_key_exists('provided', self::$installed['versions'][$packageName])) { +$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']); +} + +return implode(' || ', $ranges); +} + + + + + +public static function getVersion($packageName) +{ +if (!isset(self::$installed['versions'][$packageName])) { +throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); +} + +if (!isset(self::$installed['versions'][$packageName]['version'])) { +return null; +} + +return self::$installed['versions'][$packageName]['version']; +} + + + + + +public static function getPrettyVersion($packageName) +{ +if (!isset(self::$installed['versions'][$packageName])) { +throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); +} + +if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) { +return null; +} + +return self::$installed['versions'][$packageName]['pretty_version']; +} + + + + + +public static function getReference($packageName) +{ +if (!isset(self::$installed['versions'][$packageName])) { +throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); +} + +if (!isset(self::$installed['versions'][$packageName]['reference'])) { +return null; +} + +return self::$installed['versions'][$packageName]['reference']; +} + + + + + +public static function getRootPackage() +{ +return self::$installed['root']; +} + + + + + + + +public static function getRawData() +{ +return self::$installed; +} + + + + + + + + + + + + + + + + + + + +public static function reload($data) +{ +self::$installed = $data; +} +} diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE new file mode 100644 index 0000000..f27399a --- /dev/null +++ b/vendor/composer/LICENSE @@ -0,0 +1,21 @@ + +Copyright (c) Nils Adermann, Jordi Boggiano + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php new file mode 100644 index 0000000..b26f1b1 --- /dev/null +++ b/vendor/composer/autoload_classmap.php @@ -0,0 +1,10 @@ + $vendorDir . '/composer/InstalledVersions.php', +); diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php new file mode 100644 index 0000000..b7fc012 --- /dev/null +++ b/vendor/composer/autoload_namespaces.php @@ -0,0 +1,9 @@ + array($baseDir . '/src'), +); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php new file mode 100644 index 0000000..c70df06 --- /dev/null +++ b/vendor/composer/autoload_real.php @@ -0,0 +1,55 @@ += 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); + if ($useStaticLoader) { + require __DIR__ . '/autoload_static.php'; + + call_user_func(\Composer\Autoload\ComposerStaticInitd619402d7c2ad56cb9c4bb09ff6ea60d::getInitializer($loader)); + } else { + $map = require __DIR__ . '/autoload_namespaces.php'; + foreach ($map as $namespace => $path) { + $loader->set($namespace, $path); + } + + $map = require __DIR__ . '/autoload_psr4.php'; + foreach ($map as $namespace => $path) { + $loader->setPsr4($namespace, $path); + } + + $classMap = require __DIR__ . '/autoload_classmap.php'; + if ($classMap) { + $loader->addClassMap($classMap); + } + } + + $loader->register(true); + + return $loader; + } +} diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php new file mode 100644 index 0000000..d3c9012 --- /dev/null +++ b/vendor/composer/autoload_static.php @@ -0,0 +1,36 @@ + + array ( + 'MoneroIntegrations\\MoneroPhp\\' => 29, + ), + ); + + public static $prefixDirsPsr4 = array ( + 'MoneroIntegrations\\MoneroPhp\\' => + array ( + 0 => __DIR__ . '/../..' . '/src', + ), + ); + + public static $classMap = array ( + 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', + ); + + public static function getInitializer(ClassLoader $loader) + { + return \Closure::bind(function () use ($loader) { + $loader->prefixLengthsPsr4 = ComposerStaticInitd619402d7c2ad56cb9c4bb09ff6ea60d::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitd619402d7c2ad56cb9c4bb09ff6ea60d::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitd619402d7c2ad56cb9c4bb09ff6ea60d::$classMap; + + }, null, ClassLoader::class); + } +} diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json new file mode 100644 index 0000000..87fda74 --- /dev/null +++ b/vendor/composer/installed.json @@ -0,0 +1,5 @@ +{ + "packages": [], + "dev": true, + "dev-package-names": [] +} diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php new file mode 100644 index 0000000..2098b91 --- /dev/null +++ b/vendor/composer/installed.php @@ -0,0 +1,24 @@ + + array ( + 'pretty_version' => '1.0.1', + 'version' => '1.0.1.0', + 'aliases' => + array ( + ), + 'reference' => NULL, + 'name' => 'monero-integrations/monerophp', + ), + 'versions' => + array ( + 'monero-integrations/monerophp' => + array ( + 'pretty_version' => '1.0.1', + 'version' => '1.0.1.0', + 'aliases' => + array ( + ), + 'reference' => NULL, + ), + ), +); From add4837849c3fffe04cc3a668987240d28ab3738 Mon Sep 17 00:00:00 2001 From: Fabio Tea Date: Mon, 27 Mar 2023 14:09:14 +0000 Subject: [PATCH 3/3] updates --- vendor/autoload.php | 7 - vendor/composer/ClassLoader.php | 445 ------------------------ vendor/composer/InstalledVersions.php | 219 ------------ vendor/composer/LICENSE | 21 -- vendor/composer/autoload_classmap.php | 10 - vendor/composer/autoload_namespaces.php | 9 - vendor/composer/autoload_psr4.php | 10 - vendor/composer/autoload_real.php | 55 --- vendor/composer/autoload_static.php | 36 -- vendor/composer/installed.json | 5 - vendor/composer/installed.php | 24 -- 11 files changed, 841 deletions(-) delete mode 100644 vendor/autoload.php delete mode 100644 vendor/composer/ClassLoader.php delete mode 100644 vendor/composer/InstalledVersions.php delete mode 100644 vendor/composer/LICENSE delete mode 100644 vendor/composer/autoload_classmap.php delete mode 100644 vendor/composer/autoload_namespaces.php delete mode 100644 vendor/composer/autoload_psr4.php delete mode 100644 vendor/composer/autoload_real.php delete mode 100644 vendor/composer/autoload_static.php delete mode 100644 vendor/composer/installed.json delete mode 100644 vendor/composer/installed.php diff --git a/vendor/autoload.php b/vendor/autoload.php deleted file mode 100644 index 9175768..0000000 --- a/vendor/autoload.php +++ /dev/null @@ -1,7 +0,0 @@ - - * Jordi Boggiano - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Composer\Autoload; - -/** - * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. - * - * $loader = new \Composer\Autoload\ClassLoader(); - * - * // register classes with namespaces - * $loader->add('Symfony\Component', __DIR__.'/component'); - * $loader->add('Symfony', __DIR__.'/framework'); - * - * // activate the autoloader - * $loader->register(); - * - * // to enable searching the include path (eg. for PEAR packages) - * $loader->setUseIncludePath(true); - * - * In this example, if you try to use a class in the Symfony\Component - * namespace or one of its children (Symfony\Component\Console for instance), - * the autoloader will first look for the class under the component/ - * directory, and it will then fallback to the framework/ directory if not - * found before giving up. - * - * This class is loosely based on the Symfony UniversalClassLoader. - * - * @author Fabien Potencier - * @author Jordi Boggiano - * @see https://www.php-fig.org/psr/psr-0/ - * @see https://www.php-fig.org/psr/psr-4/ - */ -class ClassLoader -{ - // PSR-4 - private $prefixLengthsPsr4 = array(); - private $prefixDirsPsr4 = array(); - private $fallbackDirsPsr4 = array(); - - // PSR-0 - private $prefixesPsr0 = array(); - private $fallbackDirsPsr0 = array(); - - private $useIncludePath = false; - private $classMap = array(); - private $classMapAuthoritative = false; - private $missingClasses = array(); - private $apcuPrefix; - - public function getPrefixes() - { - if (!empty($this->prefixesPsr0)) { - return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); - } - - return array(); - } - - public function getPrefixesPsr4() - { - return $this->prefixDirsPsr4; - } - - public function getFallbackDirs() - { - return $this->fallbackDirsPsr0; - } - - public function getFallbackDirsPsr4() - { - return $this->fallbackDirsPsr4; - } - - public function getClassMap() - { - return $this->classMap; - } - - /** - * @param array $classMap Class to filename map - */ - public function addClassMap(array $classMap) - { - if ($this->classMap) { - $this->classMap = array_merge($this->classMap, $classMap); - } else { - $this->classMap = $classMap; - } - } - - /** - * Registers a set of PSR-0 directories for a given prefix, either - * appending or prepending to the ones previously set for this prefix. - * - * @param string $prefix The prefix - * @param array|string $paths The PSR-0 root directories - * @param bool $prepend Whether to prepend the directories - */ - public function add($prefix, $paths, $prepend = false) - { - if (!$prefix) { - if ($prepend) { - $this->fallbackDirsPsr0 = array_merge( - (array) $paths, - $this->fallbackDirsPsr0 - ); - } else { - $this->fallbackDirsPsr0 = array_merge( - $this->fallbackDirsPsr0, - (array) $paths - ); - } - - return; - } - - $first = $prefix[0]; - if (!isset($this->prefixesPsr0[$first][$prefix])) { - $this->prefixesPsr0[$first][$prefix] = (array) $paths; - - return; - } - if ($prepend) { - $this->prefixesPsr0[$first][$prefix] = array_merge( - (array) $paths, - $this->prefixesPsr0[$first][$prefix] - ); - } else { - $this->prefixesPsr0[$first][$prefix] = array_merge( - $this->prefixesPsr0[$first][$prefix], - (array) $paths - ); - } - } - - /** - * Registers a set of PSR-4 directories for a given namespace, either - * appending or prepending to the ones previously set for this namespace. - * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param array|string $paths The PSR-4 base directories - * @param bool $prepend Whether to prepend the directories - * - * @throws \InvalidArgumentException - */ - public function addPsr4($prefix, $paths, $prepend = false) - { - if (!$prefix) { - // Register directories for the root namespace. - if ($prepend) { - $this->fallbackDirsPsr4 = array_merge( - (array) $paths, - $this->fallbackDirsPsr4 - ); - } else { - $this->fallbackDirsPsr4 = array_merge( - $this->fallbackDirsPsr4, - (array) $paths - ); - } - } elseif (!isset($this->prefixDirsPsr4[$prefix])) { - // Register directories for a new namespace. - $length = strlen($prefix); - if ('\\' !== $prefix[$length - 1]) { - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); - } - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = (array) $paths; - } elseif ($prepend) { - // Prepend directories for an already registered namespace. - $this->prefixDirsPsr4[$prefix] = array_merge( - (array) $paths, - $this->prefixDirsPsr4[$prefix] - ); - } else { - // Append directories for an already registered namespace. - $this->prefixDirsPsr4[$prefix] = array_merge( - $this->prefixDirsPsr4[$prefix], - (array) $paths - ); - } - } - - /** - * Registers a set of PSR-0 directories for a given prefix, - * replacing any others previously set for this prefix. - * - * @param string $prefix The prefix - * @param array|string $paths The PSR-0 base directories - */ - public function set($prefix, $paths) - { - if (!$prefix) { - $this->fallbackDirsPsr0 = (array) $paths; - } else { - $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; - } - } - - /** - * Registers a set of PSR-4 directories for a given namespace, - * replacing any others previously set for this namespace. - * - * @param string $prefix The prefix/namespace, with trailing '\\' - * @param array|string $paths The PSR-4 base directories - * - * @throws \InvalidArgumentException - */ - public function setPsr4($prefix, $paths) - { - if (!$prefix) { - $this->fallbackDirsPsr4 = (array) $paths; - } else { - $length = strlen($prefix); - if ('\\' !== $prefix[$length - 1]) { - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); - } - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; - $this->prefixDirsPsr4[$prefix] = (array) $paths; - } - } - - /** - * Turns on searching the include path for class files. - * - * @param bool $useIncludePath - */ - public function setUseIncludePath($useIncludePath) - { - $this->useIncludePath = $useIncludePath; - } - - /** - * Can be used to check if the autoloader uses the include path to check - * for classes. - * - * @return bool - */ - public function getUseIncludePath() - { - return $this->useIncludePath; - } - - /** - * Turns off searching the prefix and fallback directories for classes - * that have not been registered with the class map. - * - * @param bool $classMapAuthoritative - */ - public function setClassMapAuthoritative($classMapAuthoritative) - { - $this->classMapAuthoritative = $classMapAuthoritative; - } - - /** - * Should class lookup fail if not found in the current class map? - * - * @return bool - */ - public function isClassMapAuthoritative() - { - return $this->classMapAuthoritative; - } - - /** - * APCu prefix to use to cache found/not-found classes, if the extension is enabled. - * - * @param string|null $apcuPrefix - */ - public function setApcuPrefix($apcuPrefix) - { - $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; - } - - /** - * The APCu prefix in use, or null if APCu caching is not enabled. - * - * @return string|null - */ - public function getApcuPrefix() - { - return $this->apcuPrefix; - } - - /** - * Registers this instance as an autoloader. - * - * @param bool $prepend Whether to prepend the autoloader or not - */ - public function register($prepend = false) - { - spl_autoload_register(array($this, 'loadClass'), true, $prepend); - } - - /** - * Unregisters this instance as an autoloader. - */ - public function unregister() - { - spl_autoload_unregister(array($this, 'loadClass')); - } - - /** - * Loads the given class or interface. - * - * @param string $class The name of the class - * @return bool|null True if loaded, null otherwise - */ - public function loadClass($class) - { - if ($file = $this->findFile($class)) { - includeFile($file); - - return true; - } - } - - /** - * Finds the path to the file where the class is defined. - * - * @param string $class The name of the class - * - * @return string|false The path if found, false otherwise - */ - public function findFile($class) - { - // class map lookup - if (isset($this->classMap[$class])) { - return $this->classMap[$class]; - } - if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { - return false; - } - if (null !== $this->apcuPrefix) { - $file = apcu_fetch($this->apcuPrefix.$class, $hit); - if ($hit) { - return $file; - } - } - - $file = $this->findFileWithExtension($class, '.php'); - - // Search for Hack files if we are running on HHVM - if (false === $file && defined('HHVM_VERSION')) { - $file = $this->findFileWithExtension($class, '.hh'); - } - - if (null !== $this->apcuPrefix) { - apcu_add($this->apcuPrefix.$class, $file); - } - - if (false === $file) { - // Remember that this class does not exist. - $this->missingClasses[$class] = true; - } - - return $file; - } - - private function findFileWithExtension($class, $ext) - { - // PSR-4 lookup - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; - - $first = $class[0]; - if (isset($this->prefixLengthsPsr4[$first])) { - $subPath = $class; - while (false !== $lastPos = strrpos($subPath, '\\')) { - $subPath = substr($subPath, 0, $lastPos); - $search = $subPath . '\\'; - if (isset($this->prefixDirsPsr4[$search])) { - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); - foreach ($this->prefixDirsPsr4[$search] as $dir) { - if (file_exists($file = $dir . $pathEnd)) { - return $file; - } - } - } - } - } - - // PSR-4 fallback dirs - foreach ($this->fallbackDirsPsr4 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { - return $file; - } - } - - // PSR-0 lookup - if (false !== $pos = strrpos($class, '\\')) { - // namespaced class name - $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) - . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); - } else { - // PEAR-like class name - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; - } - - if (isset($this->prefixesPsr0[$first])) { - foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { - if (0 === strpos($class, $prefix)) { - foreach ($dirs as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { - return $file; - } - } - } - } - } - - // PSR-0 fallback dirs - foreach ($this->fallbackDirsPsr0 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { - return $file; - } - } - - // PSR-0 include paths. - if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { - return $file; - } - - return false; - } -} - -/** - * Scope isolated include. - * - * Prevents access to $this/self from included files. - */ -function includeFile($file) -{ - include $file; -} diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php deleted file mode 100644 index fe45b9a..0000000 --- a/vendor/composer/InstalledVersions.php +++ /dev/null @@ -1,219 +0,0 @@ - - array ( - 'pretty_version' => '1.0.1', - 'version' => '1.0.1.0', - 'aliases' => - array ( - ), - 'reference' => NULL, - 'name' => 'monero-integrations/monerophp', - ), - 'versions' => - array ( - 'monero-integrations/monerophp' => - array ( - 'pretty_version' => '1.0.1', - 'version' => '1.0.1.0', - 'aliases' => - array ( - ), - 'reference' => NULL, - ), - ), -); - - - - - - - -public static function getInstalledPackages() -{ -return array_keys(self::$installed['versions']); -} - - - - - - - - - -public static function isInstalled($packageName) -{ -return isset(self::$installed['versions'][$packageName]); -} - - - - - - - - - - - - - - -public static function satisfies(VersionParser $parser, $packageName, $constraint) -{ -$constraint = $parser->parseConstraints($constraint); -$provided = $parser->parseConstraints(self::getVersionRanges($packageName)); - -return $provided->matches($constraint); -} - - - - - - - - - - -public static function getVersionRanges($packageName) -{ -if (!isset(self::$installed['versions'][$packageName])) { -throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); -} - -$ranges = array(); -if (isset(self::$installed['versions'][$packageName]['pretty_version'])) { -$ranges[] = self::$installed['versions'][$packageName]['pretty_version']; -} -if (array_key_exists('aliases', self::$installed['versions'][$packageName])) { -$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']); -} -if (array_key_exists('replaced', self::$installed['versions'][$packageName])) { -$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']); -} -if (array_key_exists('provided', self::$installed['versions'][$packageName])) { -$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']); -} - -return implode(' || ', $ranges); -} - - - - - -public static function getVersion($packageName) -{ -if (!isset(self::$installed['versions'][$packageName])) { -throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); -} - -if (!isset(self::$installed['versions'][$packageName]['version'])) { -return null; -} - -return self::$installed['versions'][$packageName]['version']; -} - - - - - -public static function getPrettyVersion($packageName) -{ -if (!isset(self::$installed['versions'][$packageName])) { -throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); -} - -if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) { -return null; -} - -return self::$installed['versions'][$packageName]['pretty_version']; -} - - - - - -public static function getReference($packageName) -{ -if (!isset(self::$installed['versions'][$packageName])) { -throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); -} - -if (!isset(self::$installed['versions'][$packageName]['reference'])) { -return null; -} - -return self::$installed['versions'][$packageName]['reference']; -} - - - - - -public static function getRootPackage() -{ -return self::$installed['root']; -} - - - - - - - -public static function getRawData() -{ -return self::$installed; -} - - - - - - - - - - - - - - - - - - - -public static function reload($data) -{ -self::$installed = $data; -} -} diff --git a/vendor/composer/LICENSE b/vendor/composer/LICENSE deleted file mode 100644 index f27399a..0000000 --- a/vendor/composer/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - -Copyright (c) Nils Adermann, Jordi Boggiano - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is furnished -to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php deleted file mode 100644 index b26f1b1..0000000 --- a/vendor/composer/autoload_classmap.php +++ /dev/null @@ -1,10 +0,0 @@ - $vendorDir . '/composer/InstalledVersions.php', -); diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php deleted file mode 100644 index b7fc012..0000000 --- a/vendor/composer/autoload_namespaces.php +++ /dev/null @@ -1,9 +0,0 @@ - array($baseDir . '/src'), -); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php deleted file mode 100644 index c70df06..0000000 --- a/vendor/composer/autoload_real.php +++ /dev/null @@ -1,55 +0,0 @@ -= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); - if ($useStaticLoader) { - require __DIR__ . '/autoload_static.php'; - - call_user_func(\Composer\Autoload\ComposerStaticInitd619402d7c2ad56cb9c4bb09ff6ea60d::getInitializer($loader)); - } else { - $map = require __DIR__ . '/autoload_namespaces.php'; - foreach ($map as $namespace => $path) { - $loader->set($namespace, $path); - } - - $map = require __DIR__ . '/autoload_psr4.php'; - foreach ($map as $namespace => $path) { - $loader->setPsr4($namespace, $path); - } - - $classMap = require __DIR__ . '/autoload_classmap.php'; - if ($classMap) { - $loader->addClassMap($classMap); - } - } - - $loader->register(true); - - return $loader; - } -} diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php deleted file mode 100644 index d3c9012..0000000 --- a/vendor/composer/autoload_static.php +++ /dev/null @@ -1,36 +0,0 @@ - - array ( - 'MoneroIntegrations\\MoneroPhp\\' => 29, - ), - ); - - public static $prefixDirsPsr4 = array ( - 'MoneroIntegrations\\MoneroPhp\\' => - array ( - 0 => __DIR__ . '/../..' . '/src', - ), - ); - - public static $classMap = array ( - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', - ); - - public static function getInitializer(ClassLoader $loader) - { - return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitd619402d7c2ad56cb9c4bb09ff6ea60d::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitd619402d7c2ad56cb9c4bb09ff6ea60d::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInitd619402d7c2ad56cb9c4bb09ff6ea60d::$classMap; - - }, null, ClassLoader::class); - } -} diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json deleted file mode 100644 index 87fda74..0000000 --- a/vendor/composer/installed.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "packages": [], - "dev": true, - "dev-package-names": [] -} diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php deleted file mode 100644 index 2098b91..0000000 --- a/vendor/composer/installed.php +++ /dev/null @@ -1,24 +0,0 @@ - - array ( - 'pretty_version' => '1.0.1', - 'version' => '1.0.1.0', - 'aliases' => - array ( - ), - 'reference' => NULL, - 'name' => 'monero-integrations/monerophp', - ), - 'versions' => - array ( - 'monero-integrations/monerophp' => - array ( - 'pretty_version' => '1.0.1', - 'version' => '1.0.1.0', - 'aliases' => - array ( - ), - 'reference' => NULL, - ), - ), -);