├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── actions │ ├── ci │ │ └── action.yml │ └── dependencies │ │ └── action.yml ├── pull_request_template.md └── workflows │ ├── ci.yml │ ├── publish.yml │ ├── release_dapp_android.yml │ ├── release_dapp_android_internal.yml │ ├── release_dapp_ios.yml │ ├── release_dapp_ios_internal.yml │ ├── release_wallet_android.yml │ ├── release_wallet_android_internal.yml │ ├── release_wallet_ios.yml │ └── release_wallet_ios_internal.yml ├── .gitignore ├── .metadata ├── CHANGELOG.md ├── LICENSE ├── README.md ├── analysis_options.yaml ├── build.yaml ├── example ├── README.md ├── dapp │ ├── .gitignore │ ├── .metadata │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── Gemfile │ │ ├── Gemfile.lock │ │ ├── app │ │ │ ├── build.gradle │ │ │ └── src │ │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ │ ├── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── ic_launcher-playstore.png │ │ │ │ ├── ic_launcher_internal-playstore.png │ │ │ │ ├── kotlin │ │ │ │ │ └── com │ │ │ │ │ │ └── example │ │ │ │ │ │ └── dapp │ │ │ │ │ │ └── MainActivity.kt │ │ │ │ └── res │ │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── drawable │ │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ │ ├── ic_launcher_internal_background.xml │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ ├── ic_launcher_internal.xml │ │ │ │ │ ├── ic_launcher_internal_round.xml │ │ │ │ │ └── ic_launcher_round.xml │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.webp │ │ │ │ │ ├── ic_launcher_foreground.webp │ │ │ │ │ ├── ic_launcher_internal.webp │ │ │ │ │ ├── ic_launcher_internal_foreground.webp │ │ │ │ │ ├── ic_launcher_internal_round.webp │ │ │ │ │ └── ic_launcher_round.webp │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.webp │ │ │ │ │ ├── ic_launcher_foreground.webp │ │ │ │ │ ├── ic_launcher_internal.webp │ │ │ │ │ ├── ic_launcher_internal_foreground.webp │ │ │ │ │ ├── ic_launcher_internal_round.webp │ │ │ │ │ └── ic_launcher_round.webp │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.webp │ │ │ │ │ ├── ic_launcher_foreground.webp │ │ │ │ │ ├── ic_launcher_internal.webp │ │ │ │ │ ├── ic_launcher_internal_foreground.webp │ │ │ │ │ ├── ic_launcher_internal_round.webp │ │ │ │ │ └── ic_launcher_round.webp │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.webp │ │ │ │ │ ├── ic_launcher_foreground.webp │ │ │ │ │ ├── ic_launcher_internal.webp │ │ │ │ │ ├── ic_launcher_internal_foreground.webp │ │ │ │ │ ├── ic_launcher_internal_round.webp │ │ │ │ │ └── ic_launcher_round.webp │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.webp │ │ │ │ │ ├── ic_launcher_foreground.webp │ │ │ │ │ ├── ic_launcher_internal.webp │ │ │ │ │ ├── ic_launcher_internal_foreground.webp │ │ │ │ │ ├── ic_launcher_internal_round.webp │ │ │ │ │ └── ic_launcher_round.webp │ │ │ │ │ ├── values-night │ │ │ │ │ └── styles.xml │ │ │ │ │ └── values │ │ │ │ │ └── styles.xml │ │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ ├── build.gradle │ │ ├── fastlane │ │ │ ├── Appfile │ │ │ ├── Fastfile │ │ │ └── Pluginfile │ │ ├── gradle.properties │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.properties │ │ └── settings.gradle │ ├── ios │ │ ├── .gitignore │ │ ├── Flutter │ │ │ ├── AppFrameworkInfo.plist │ │ │ ├── Debug-internal.xcconfig │ │ │ ├── Debug-production.xcconfig │ │ │ ├── Debug.xcconfig │ │ │ ├── Release-internal.xcconfig │ │ │ ├── Release-production.xcconfig │ │ │ └── Release.xcconfig │ │ ├── Gemfile │ │ ├── Gemfile.lock │ │ ├── Podfile │ │ ├── Podfile.lock │ │ ├── Runner.xcodeproj │ │ │ ├── project.pbxproj │ │ │ ├── project.xcworkspace │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ │ └── WorkspaceSettings.xcsettings │ │ │ └── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ ├── internal.xcscheme │ │ │ │ └── production.xcscheme │ │ ├── Runner.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ └── WorkspaceSettings.xcsettings │ │ ├── Runner │ │ │ ├── AppDelegate.swift │ │ │ ├── Assets.xcassets │ │ │ │ ├── AppIcon-internal.appiconset │ │ │ │ │ ├── 100.png │ │ │ │ │ ├── 1024.png │ │ │ │ │ ├── 114.png │ │ │ │ │ ├── 120.png │ │ │ │ │ ├── 144.png │ │ │ │ │ ├── 152.png │ │ │ │ │ ├── 167.png │ │ │ │ │ ├── 180.png │ │ │ │ │ ├── 20.png │ │ │ │ │ ├── 29.png │ │ │ │ │ ├── 40.png │ │ │ │ │ ├── 50.png │ │ │ │ │ ├── 57.png │ │ │ │ │ ├── 58.png │ │ │ │ │ ├── 60.png │ │ │ │ │ ├── 72.png │ │ │ │ │ ├── 76.png │ │ │ │ │ ├── 80.png │ │ │ │ │ ├── 87.png │ │ │ │ │ └── Contents.json │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ │ │ ├── Icon-App-20x20@1x.png │ │ │ │ │ ├── Icon-App-20x20@2x.png │ │ │ │ │ ├── Icon-App-20x20@3x.png │ │ │ │ │ ├── Icon-App-29x29@1x.png │ │ │ │ │ ├── Icon-App-29x29@2x.png │ │ │ │ │ ├── Icon-App-29x29@3x.png │ │ │ │ │ ├── Icon-App-40x40@1x.png │ │ │ │ │ ├── Icon-App-40x40@2x.png │ │ │ │ │ ├── Icon-App-40x40@3x.png │ │ │ │ │ ├── Icon-App-60x60@2x.png │ │ │ │ │ ├── Icon-App-60x60@3x.png │ │ │ │ │ ├── Icon-App-76x76@1x.png │ │ │ │ │ ├── Icon-App-76x76@2x.png │ │ │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ │ │ ├── Contents.json │ │ │ │ └── LaunchImage.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── LaunchImage.png │ │ │ │ │ ├── LaunchImage@2x.png │ │ │ │ │ ├── LaunchImage@3x.png │ │ │ │ │ └── README.md │ │ │ ├── Base.lproj │ │ │ │ ├── LaunchScreen.storyboard │ │ │ │ └── Main.storyboard │ │ │ ├── Info-internal.plist │ │ │ ├── Info.plist │ │ │ ├── Runner-Bridging-Header.h │ │ │ ├── Runner.entitlements │ │ │ └── RunnerProfile-internal.entitlements │ │ └── fastlane │ │ │ ├── Appfile │ │ │ ├── Fastfile │ │ │ ├── README.md │ │ │ └── report.xml │ ├── lib │ │ ├── imports.dart │ │ ├── main.dart │ │ ├── models │ │ │ ├── accounts.dart │ │ │ ├── chain_metadata.dart │ │ │ ├── eth │ │ │ │ └── ethereum_sign_message.dart │ │ │ ├── page_data.dart │ │ │ └── solana │ │ │ │ ├── solana_sign_transaction.dart │ │ │ │ └── solana_sign_transaction.g.dart │ │ ├── pages │ │ │ ├── auth_page.dart │ │ │ ├── connect_page.dart │ │ │ ├── pairings_page.dart │ │ │ └── sessions_page.dart │ │ ├── utils │ │ │ ├── constants.dart │ │ │ ├── crypto │ │ │ │ ├── chain_data.dart │ │ │ │ ├── eip155.dart │ │ │ │ ├── helpers.dart │ │ │ │ ├── kadena.dart │ │ │ │ ├── polkadot.dart │ │ │ │ └── solana.dart │ │ │ ├── dart_defines.dart │ │ │ ├── deep_link_handler.dart │ │ │ ├── sample_wallets.dart │ │ │ ├── smart_contracts.dart │ │ │ ├── string_constants.dart │ │ │ └── test_data.dart │ │ └── widgets │ │ │ ├── auth_item.dart │ │ │ ├── chain_button.dart │ │ │ ├── event_widget.dart │ │ │ ├── method_dialog.dart │ │ │ ├── pairing_item.dart │ │ │ ├── session_item.dart │ │ │ └── session_widget.dart │ ├── linux │ │ ├── .gitignore │ │ ├── CMakeLists.txt │ │ ├── flutter │ │ │ ├── CMakeLists.txt │ │ │ ├── generated_plugin_registrant.cc │ │ │ ├── generated_plugin_registrant.h │ │ │ └── generated_plugins.cmake │ │ ├── main.cc │ │ ├── my_application.cc │ │ └── my_application.h │ ├── macos │ │ ├── .gitignore │ │ ├── Flutter │ │ │ ├── Flutter-Debug.xcconfig │ │ │ ├── Flutter-Release.xcconfig │ │ │ └── GeneratedPluginRegistrant.swift │ │ ├── Podfile │ │ ├── Podfile.lock │ │ ├── Runner.xcodeproj │ │ │ ├── project.pbxproj │ │ │ ├── project.xcworkspace │ │ │ │ └── xcshareddata │ │ │ │ │ └── IDEWorkspaceChecks.plist │ │ │ └── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ └── Runner.xcscheme │ │ ├── Runner.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── Runner │ │ │ ├── AppDelegate.swift │ │ │ ├── Assets.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── app_icon_1024.png │ │ │ │ ├── app_icon_128.png │ │ │ │ ├── app_icon_16.png │ │ │ │ ├── app_icon_256.png │ │ │ │ ├── app_icon_32.png │ │ │ │ ├── app_icon_512.png │ │ │ │ └── app_icon_64.png │ │ │ ├── Base.lproj │ │ │ └── MainMenu.xib │ │ │ ├── Configs │ │ │ ├── AppInfo.xcconfig │ │ │ ├── Debug.xcconfig │ │ │ ├── Release.xcconfig │ │ │ └── Warnings.xcconfig │ │ │ ├── DebugProfile.entitlements │ │ │ ├── Info.plist │ │ │ ├── MainFlutterWindow.swift │ │ │ └── Release.entitlements │ ├── netlify.toml │ ├── pubspec.yaml │ ├── test │ │ └── widget_test.dart │ ├── web │ │ ├── favicon.png │ │ ├── icons │ │ │ ├── Icon-192.png │ │ │ ├── Icon-512.png │ │ │ ├── Icon-maskable-192.png │ │ │ └── Icon-maskable-512.png │ │ ├── index.html │ │ └── manifest.json │ └── windows │ │ ├── .gitignore │ │ ├── CMakeLists.txt │ │ ├── flutter │ │ ├── CMakeLists.txt │ │ ├── generated_plugin_registrant.cc │ │ ├── generated_plugin_registrant.h │ │ └── generated_plugins.cmake │ │ └── runner │ │ ├── CMakeLists.txt │ │ ├── Runner.rc │ │ ├── flutter_window.cpp │ │ ├── flutter_window.h │ │ ├── main.cpp │ │ ├── resource.h │ │ ├── resources │ │ └── app_icon.ico │ │ ├── runner.exe.manifest │ │ ├── utils.cpp │ │ ├── utils.h │ │ ├── win32_window.cpp │ │ └── win32_window.h └── wallet │ ├── .gitignore │ ├── .metadata │ ├── AppIcon.png │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ ├── .gitignore │ ├── Gemfile │ ├── Gemfile.lock │ ├── app │ │ ├── build.gradle │ │ └── src │ │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ │ ├── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── ic_launcher-playstore.png │ │ │ ├── ic_launcher_internal-playstore.png │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── wallet │ │ │ │ │ └── MainActivity.kt │ │ │ └── res │ │ │ │ ├── drawable-v21 │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable │ │ │ │ └── launch_background.xml │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ ├── ic_launcher_internal.xml │ │ │ │ ├── ic_launcher_internal_round.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.webp │ │ │ │ ├── ic_launcher_foreground.webp │ │ │ │ ├── ic_launcher_internal.webp │ │ │ │ ├── ic_launcher_internal_foreground.webp │ │ │ │ ├── ic_launcher_internal_round.webp │ │ │ │ └── ic_launcher_round.webp │ │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.webp │ │ │ │ ├── ic_launcher_foreground.webp │ │ │ │ ├── ic_launcher_internal.webp │ │ │ │ ├── ic_launcher_internal_foreground.webp │ │ │ │ ├── ic_launcher_internal_round.webp │ │ │ │ └── ic_launcher_round.webp │ │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.webp │ │ │ │ ├── ic_launcher_foreground.webp │ │ │ │ ├── ic_launcher_internal.webp │ │ │ │ ├── ic_launcher_internal_foreground.webp │ │ │ │ ├── ic_launcher_internal_round.webp │ │ │ │ └── ic_launcher_round.webp │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.webp │ │ │ │ ├── ic_launcher_foreground.webp │ │ │ │ ├── ic_launcher_internal.webp │ │ │ │ ├── ic_launcher_internal_foreground.webp │ │ │ │ ├── ic_launcher_internal_round.webp │ │ │ │ └── ic_launcher_round.webp │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.webp │ │ │ │ ├── ic_launcher_foreground.webp │ │ │ │ ├── ic_launcher_internal.webp │ │ │ │ ├── ic_launcher_internal_foreground.webp │ │ │ │ ├── ic_launcher_internal_round.webp │ │ │ │ └── ic_launcher_round.webp │ │ │ │ ├── values-night │ │ │ │ └── styles.xml │ │ │ │ └── values │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ ├── ic_launcher_internal_background.xml │ │ │ │ └── styles.xml │ │ │ └── profile │ │ │ └── AndroidManifest.xml │ ├── build.gradle │ ├── fastlane │ │ ├── Appfile │ │ ├── Fastfile │ │ └── Pluginfile │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ └── settings.gradle │ ├── ios │ ├── .gitignore │ ├── Flutter │ │ ├── AppFrameworkInfo.plist │ │ ├── Debug.xcconfig │ │ └── Release.xcconfig │ ├── Gemfile │ ├── Gemfile.lock │ ├── Podfile │ ├── Podfile.lock │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ └── WorkspaceSettings.xcsettings │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── internal.xcscheme │ │ │ └── production.xcscheme │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ ├── Runner │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets │ │ │ ├── AppIcon-internal.appiconset │ │ │ │ ├── 100.png │ │ │ │ ├── 1024.png │ │ │ │ ├── 114.png │ │ │ │ ├── 120.png │ │ │ │ ├── 144.png │ │ │ │ ├── 152.png │ │ │ │ ├── 167.png │ │ │ │ ├── 180.png │ │ │ │ ├── 20.png │ │ │ │ ├── 29.png │ │ │ │ ├── 40.png │ │ │ │ ├── 50.png │ │ │ │ ├── 57.png │ │ │ │ ├── 58.png │ │ │ │ ├── 60.png │ │ │ │ ├── 72.png │ │ │ │ ├── 76.png │ │ │ │ ├── 80.png │ │ │ │ ├── 87.png │ │ │ │ └── Contents.json │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── 100.png │ │ │ │ ├── 1024.png │ │ │ │ ├── 114.png │ │ │ │ ├── 120.png │ │ │ │ ├── 144.png │ │ │ │ ├── 152.png │ │ │ │ ├── 167.png │ │ │ │ ├── 180.png │ │ │ │ ├── 20.png │ │ │ │ ├── 29.png │ │ │ │ ├── 40.png │ │ │ │ ├── 50.png │ │ │ │ ├── 57.png │ │ │ │ ├── 58.png │ │ │ │ ├── 60.png │ │ │ │ ├── 72.png │ │ │ │ ├── 76.png │ │ │ │ ├── 80.png │ │ │ │ ├── 87.png │ │ │ │ └── Contents.json │ │ │ ├── Contents.json │ │ │ └── LaunchImage.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── README.md │ │ │ │ ├── appstore.png │ │ │ │ ├── appstore@2x.png │ │ │ │ └── appstore@3x.png │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ │ ├── Info-internal.plist │ │ ├── Info.plist │ │ ├── Runner-Bridging-Header.h │ │ └── Runner.entitlements │ └── fastlane │ │ ├── Appfile │ │ └── Fastfile │ ├── lib │ ├── dependencies │ │ ├── bip32 │ │ │ ├── bip32_base.dart │ │ │ └── utils │ │ │ │ ├── crypto.dart │ │ │ │ ├── ecurve.dart │ │ │ │ └── wif.dart │ │ ├── bip39 │ │ │ ├── bip39_base.dart │ │ │ ├── utils │ │ │ │ └── pbkdf2.dart │ │ │ └── wordlists │ │ │ │ └── english.dart │ │ ├── bottom_sheet │ │ │ ├── bottom_sheet_listener.dart │ │ │ ├── bottom_sheet_service.dart │ │ │ └── i_bottom_sheet_service.dart │ │ ├── chain_services │ │ │ ├── cosmos_service.dart │ │ │ ├── evm_service.dart │ │ │ ├── kadena_service.dart │ │ │ ├── polkadot_service.dart │ │ │ └── solana_service.dart │ │ ├── deep_link_handler.dart │ │ ├── i_web3wallet_service.dart │ │ ├── key_service │ │ │ ├── chain_key.dart │ │ │ ├── i_key_service.dart │ │ │ └── key_service.dart │ │ └── web3wallet_service.dart │ ├── main.dart │ ├── models │ │ ├── accounts.dart │ │ ├── chain_data.dart │ │ ├── chain_metadata.dart │ │ ├── eth │ │ │ ├── ethereum_sign_message.dart │ │ │ ├── ethereum_transaction.dart │ │ │ └── ethereum_transaction.g.dart │ │ ├── page_data.dart │ │ └── solana │ │ │ ├── solana_sign_transaction.dart │ │ │ └── solana_sign_transaction.g.dart │ ├── pages │ │ ├── app_detail_page.dart │ │ ├── apps_page.dart │ │ └── settings_page.dart │ ├── utils │ │ ├── constants.dart │ │ ├── dart_defines.dart │ │ ├── eth_utils.dart │ │ ├── methods_utils.dart │ │ ├── namespace_model_builder.dart │ │ └── string_constants.dart │ └── widgets │ │ ├── custom_button.dart │ │ ├── kadena_request_widget │ │ └── kadena_request_widget.dart │ │ ├── pairing_item.dart │ │ ├── recover_from_seed.dart │ │ ├── uri_input_popup.dart │ │ ├── wc_connection_request │ │ └── wc_connection_request_widget.dart │ │ ├── wc_connection_widget │ │ ├── wc_connection_model.dart │ │ ├── wc_connection_widget.dart │ │ └── wc_connection_widget_info.dart │ │ ├── wc_request_widget.dart │ │ ├── wc_request_widget.dart │ │ └── wc_session_auth_request_widget.dart │ │ └── web3_wallet_handler.dart │ ├── linux │ ├── .gitignore │ ├── CMakeLists.txt │ ├── flutter │ │ ├── CMakeLists.txt │ │ ├── generated_plugin_registrant.cc │ │ ├── generated_plugin_registrant.h │ │ └── generated_plugins.cmake │ ├── main.cc │ ├── my_application.cc │ └── my_application.h │ ├── macos │ ├── .gitignore │ ├── Flutter │ │ ├── Flutter-Debug.xcconfig │ │ ├── Flutter-Release.xcconfig │ │ └── GeneratedPluginRegistrant.swift │ ├── Podfile │ ├── Podfile.lock │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── Runner │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── app_icon_1024.png │ │ │ ├── app_icon_128.png │ │ │ ├── app_icon_16.png │ │ │ ├── app_icon_256.png │ │ │ ├── app_icon_32.png │ │ │ ├── app_icon_512.png │ │ │ └── app_icon_64.png │ │ ├── Base.lproj │ │ └── MainMenu.xib │ │ ├── Configs │ │ ├── AppInfo.xcconfig │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ └── Warnings.xcconfig │ │ ├── DebugProfile.entitlements │ │ ├── Info.plist │ │ ├── MainFlutterWindow.swift │ │ └── Release.entitlements │ ├── netlify.toml │ ├── packages │ └── qr-bar-code-scanner-dialog │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── analysis_options.yaml │ │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── kotlin │ │ │ └── com │ │ │ └── northladder │ │ │ └── qr_bar_code_scanner_dialog │ │ │ └── QrBarCodeScannerDialogPlugin.kt │ │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── QrBarCodeScannerDialogPlugin.h │ │ │ ├── QrBarCodeScannerDialogPlugin.m │ │ │ └── SwiftQrBarCodeScannerDialogPlugin.swift │ │ └── qr_bar_code_scanner_dialog.podspec │ │ ├── lib │ │ ├── qr_bar_code_scanner_dialog.dart │ │ ├── qr_bar_code_scanner_dialog_method_channel.dart │ │ ├── qr_bar_code_scanner_dialog_platform_interface.dart │ │ └── qr_bar_code_scanner_dialog_web.dart │ │ ├── packages │ │ └── qr_code_scanner │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── analysis_options.yaml │ │ │ ├── android │ │ │ ├── .gitignore │ │ │ ├── build.gradle │ │ │ ├── gradle.properties │ │ │ ├── gradle │ │ │ │ └── wrapper │ │ │ │ │ └── gradle-wrapper.properties │ │ │ ├── settings.gradle │ │ │ └── src │ │ │ │ └── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── kotlin │ │ │ │ └── net │ │ │ │ └── touchcapture │ │ │ │ └── qr │ │ │ │ └── flutterqr │ │ │ │ ├── CustomFramingRectBarcodeView.kt │ │ │ │ ├── FlutterQrPlugin.kt │ │ │ │ ├── QRView.kt │ │ │ │ ├── QRViewFactory.kt │ │ │ │ ├── QrActivityLifecycleCallbacks.kt │ │ │ │ └── QrShared.kt │ │ │ ├── ios │ │ │ ├── .gitignore │ │ │ ├── Assets │ │ │ │ └── .gitkeep │ │ │ ├── Classes │ │ │ │ ├── FlutterQrPlugin.h │ │ │ │ ├── FlutterQrPlugin.m │ │ │ │ ├── QRView.swift │ │ │ │ ├── QRViewFactory.swift │ │ │ │ └── SwiftFlutterQrPlugin.swift │ │ │ └── qr_code_scanner.podspec │ │ │ ├── lib │ │ │ ├── qr_code_scanner.dart │ │ │ └── src │ │ │ │ ├── lifecycle_event_handler.dart │ │ │ │ ├── qr_code_scanner.dart │ │ │ │ ├── qr_scanner_overlay_shape.dart │ │ │ │ ├── types │ │ │ │ ├── barcode.dart │ │ │ │ ├── barcode_format.dart │ │ │ │ ├── camera.dart │ │ │ │ ├── camera_exception.dart │ │ │ │ └── features.dart │ │ │ │ └── web │ │ │ │ ├── flutter_qr_stub.dart │ │ │ │ ├── flutter_qr_web.dart │ │ │ │ ├── jsqr.dart │ │ │ │ └── media.dart │ │ │ └── pubspec.yaml │ │ ├── pubspec.yaml │ │ └── test │ │ ├── qr_bar_code_scanner_dialog_method_channel_test.dart │ │ └── qr_bar_code_scanner_dialog_test.dart │ ├── pubspec.yaml │ ├── test │ └── widget_test.dart │ ├── web │ ├── favicon.png │ ├── icons │ │ ├── Icon-192.png │ │ ├── Icon-512.png │ │ ├── Icon-maskable-192.png │ │ └── Icon-maskable-512.png │ ├── index.html │ └── manifest.json │ └── windows │ ├── .gitignore │ ├── CMakeLists.txt │ ├── flutter │ ├── CMakeLists.txt │ ├── generated_plugin_registrant.cc │ ├── generated_plugin_registrant.h │ └── generated_plugins.cmake │ └── runner │ ├── CMakeLists.txt │ ├── Runner.rc │ ├── flutter_window.cpp │ ├── flutter_window.h │ ├── main.cpp │ ├── resource.h │ ├── resources │ └── app_icon.ico │ ├── runner.exe.manifest │ ├── utils.cpp │ ├── utils.h │ ├── win32_window.cpp │ └── win32_window.h ├── lib ├── apis │ ├── auth_api │ │ ├── auth_client.dart │ │ ├── auth_engine.dart │ │ ├── i_auth_client.dart │ │ ├── i_auth_engine.dart │ │ ├── i_auth_engine_app.dart │ │ ├── i_auth_engine_common.dart │ │ ├── i_auth_engine_wallet.dart │ │ ├── models │ │ │ ├── auth_client_events.dart │ │ │ ├── auth_client_models.dart │ │ │ └── json_rpc_models.dart │ │ └── utils │ │ │ ├── address_utils.dart │ │ │ ├── auth_api_validators.dart │ │ │ ├── auth_constants.dart │ │ │ ├── auth_signature.dart │ │ │ ├── auth_utils.dart │ │ │ └── secp256k1 │ │ │ ├── LICENSE │ │ │ └── auth_secp256k1.dart │ ├── core │ │ ├── connectivity │ │ │ ├── connectivity.dart │ │ │ ├── connectivity_models.dart │ │ │ └── i_connectivity.dart │ │ ├── core.dart │ │ ├── crypto │ │ │ ├── crypto.dart │ │ │ ├── crypto_models.dart │ │ │ ├── crypto_utils.dart │ │ │ ├── i_crypto.dart │ │ │ └── i_crypto_utils.dart │ │ ├── echo │ │ │ ├── echo.dart │ │ │ ├── echo_client.dart │ │ │ ├── i_echo.dart │ │ │ ├── i_echo_client.dart │ │ │ └── models │ │ │ │ ├── echo_body.dart │ │ │ │ ├── echo_body.g.dart │ │ │ │ ├── echo_response.dart │ │ │ │ └── echo_response.g.dart │ │ ├── heartbit │ │ │ ├── heartbeat.dart │ │ │ └── i_heartbeat.dart │ │ ├── i_core.dart │ │ ├── pairing │ │ │ ├── expirer.dart │ │ │ ├── i_expirer.dart │ │ │ ├── i_json_rpc_history.dart │ │ │ ├── i_pairing.dart │ │ │ ├── i_pairing_store.dart │ │ │ ├── json_rpc_history.dart │ │ │ ├── pairing.dart │ │ │ ├── pairing_store.dart │ │ │ └── utils │ │ │ │ ├── json_rpc_utils.dart │ │ │ │ ├── pairing_models.dart │ │ │ │ ├── pairing_models.freezed.dart │ │ │ │ └── pairing_models.g.dart │ │ ├── relay_auth │ │ │ ├── i_relay_auth.dart │ │ │ ├── relay_auth.dart │ │ │ ├── relay_auth_models.dart │ │ │ └── relay_auth_models.g.dart │ │ ├── relay_client │ │ │ ├── i_message_tracker.dart │ │ │ ├── i_relay_client.dart │ │ │ ├── json_rpc_2 │ │ │ │ ├── LICENSE │ │ │ │ ├── error_code.dart │ │ │ │ └── src │ │ │ │ │ ├── client.dart │ │ │ │ │ ├── exception.dart │ │ │ │ │ ├── parameters.dart │ │ │ │ │ ├── peer.dart │ │ │ │ │ ├── server.dart │ │ │ │ │ └── utils.dart │ │ │ ├── message_tracker.dart │ │ │ ├── relay_client.dart │ │ │ ├── relay_client_models.dart │ │ │ ├── relay_client_models.g.dart │ │ │ ├── topic_map.dart │ │ │ └── websocket │ │ │ │ ├── http_client.dart │ │ │ │ ├── i_http_client.dart │ │ │ │ ├── i_websocket_handler.dart │ │ │ │ └── websocket_handler.dart │ │ ├── store │ │ │ ├── generic_store.dart │ │ │ ├── i_generic_store.dart │ │ │ ├── i_store.dart │ │ │ ├── shared_prefs_store.dart │ │ │ ├── store_models.dart │ │ │ └── supported_linkmode_store.dart │ │ └── verify │ │ │ ├── i_verify.dart │ │ │ ├── models │ │ │ ├── verify_context.dart │ │ │ ├── verify_context.freezed.dart │ │ │ └── verify_context.g.dart │ │ │ └── verify.dart │ ├── models │ │ ├── basic_models.dart │ │ ├── basic_models.freezed.dart │ │ ├── basic_models.g.dart │ │ ├── json_rpc_error.dart │ │ ├── json_rpc_error.freezed.dart │ │ ├── json_rpc_error.g.dart │ │ ├── json_rpc_request.dart │ │ ├── json_rpc_request.freezed.dart │ │ ├── json_rpc_request.g.dart │ │ ├── json_rpc_response.dart │ │ ├── json_rpc_response.freezed.dart │ │ ├── json_rpc_response.g.dart │ │ └── uri_parse_result.dart │ ├── sign_api │ │ ├── i_sessions.dart │ │ ├── i_sign_client.dart │ │ ├── i_sign_engine.dart │ │ ├── i_sign_engine_app.dart │ │ ├── i_sign_engine_common.dart │ │ ├── i_sign_engine_wallet.dart │ │ ├── models │ │ │ ├── auth │ │ │ │ ├── auth_client_events.dart │ │ │ │ ├── auth_client_models.dart │ │ │ │ ├── auth_client_models.freezed.dart │ │ │ │ ├── auth_client_models.g.dart │ │ │ │ ├── common_auth_models.dart │ │ │ │ ├── common_auth_models.freezed.dart │ │ │ │ ├── common_auth_models.g.dart │ │ │ │ ├── session_auth_events.dart │ │ │ │ ├── session_auth_models.dart │ │ │ │ ├── session_auth_models.freezed.dart │ │ │ │ └── session_auth_models.g.dart │ │ │ ├── json_rpc_models.dart │ │ │ ├── json_rpc_models.freezed.dart │ │ │ ├── json_rpc_models.g.dart │ │ │ ├── proposal_models.dart │ │ │ ├── proposal_models.freezed.dart │ │ │ ├── proposal_models.g.dart │ │ │ ├── session_models.dart │ │ │ ├── session_models.freezed.dart │ │ │ ├── session_models.g.dart │ │ │ ├── sign_client_events.dart │ │ │ └── sign_client_models.dart │ │ ├── sessions.dart │ │ ├── sign_client.dart │ │ ├── sign_engine.dart │ │ └── utils │ │ │ ├── auth │ │ │ ├── address_utils.dart │ │ │ ├── auth_api_validators.dart │ │ │ ├── auth_constants.dart │ │ │ ├── auth_signature.dart │ │ │ ├── auth_utils.dart │ │ │ ├── recaps_utils.dart │ │ │ └── secp256k1 │ │ │ │ ├── LICENSE │ │ │ │ └── auth_secp256k1.dart │ │ │ └── sign_api_validator_utils.dart │ ├── utils │ │ ├── constants.dart │ │ ├── errors.dart │ │ ├── extensions.dart │ │ ├── log_level.dart │ │ ├── method_constants.dart │ │ ├── namespace_utils.dart │ │ └── walletconnect_utils.dart │ ├── web3app │ │ ├── i_web3app.dart │ │ └── web3app.dart │ └── web3wallet │ │ ├── i_web3wallet.dart │ │ └── web3wallet.dart ├── src │ └── version.dart └── walletconnect_flutter_v2.dart ├── pubspec.yaml └── test ├── auth_api ├── address_utils_test.dart ├── auth_client_test.dart ├── signature_test.dart ├── utils │ ├── auth_client_test_wrapper.dart │ ├── engine_constants.dart │ └── signature_constants.dart └── validation_test.dart ├── core_api ├── core_test.dart ├── crypto_test.dart ├── echo_test.dart ├── pairing_store_test.dart ├── pairing_test.dart ├── relay_auth_test.dart ├── relay_client_test.dart └── store_test.dart ├── shared ├── namespace_utils_test.dart ├── shared_test_utils.dart ├── shared_test_utils.mocks.dart ├── shared_test_values.dart └── uri_parse_test.dart ├── sign_api ├── sign_client_test.dart ├── sign_engine_test.dart ├── store_test.dart ├── tests │ ├── sign_approve_session.dart │ ├── sign_approve_session_authenticate.dart │ ├── sign_authenticate.dart │ ├── sign_client_helpers.dart │ ├── sign_common.dart │ ├── sign_connect.dart │ ├── sign_disconnect.dart │ ├── sign_emit_session_event.dart │ ├── sign_expiration.dart │ ├── sign_extend_session.dart │ ├── sign_happy_path.dart │ ├── sign_pair.dart │ ├── sign_ping.dart │ ├── sign_reject_session.dart │ ├── sign_request_and_handler.dart │ └── sign_update_session.dart ├── utils │ ├── engine_constants.dart │ ├── sign_client_constants.dart │ └── sign_client_test_wrapper.dart ├── validation_test.dart └── web3wallet_sign_test.dart └── web3wallet ├── web3wallet_helpers.dart └── web3wallet_test.dart /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Reproducible code** 24 | If applicable, add a minimum reproducible code snippet. 25 | 26 | **Screenshots** 27 | If applicable, add screenshots to help explain your problem. 28 | 29 | **Desktop (please complete the following information):** 30 | - OS: [e.g. iOS] 31 | - Browser [e.g. chrome, safari] 32 | - Version [e.g. 22] 33 | 34 | **Smartphone (please complete the following information):** 35 | - Device: [e.g. iPhone6] 36 | - OS: [e.g. iOS8.1] 37 | - Browser [e.g. stock browser, safari] 38 | - Version [e.g. 22] 39 | 40 | **Additional context** 41 | Add any other context about the problem here. 42 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/actions/ci/action.yml: -------------------------------------------------------------------------------- 1 | name: ci 2 | description: Executes Dart specific CI steps. 3 | 4 | inputs: 5 | type: 6 | description: The type of CI to run. 7 | required: true 8 | relay-endpoint: 9 | description: 'The endpoint of the relay e.g. relay.walletconnect.com' 10 | required: false 11 | default: 'wss://relay.walletconnect.com' 12 | project-id: 13 | description: 'WalletConnect project id' 14 | required: true 15 | 16 | runs: 17 | using: composite 18 | steps: 19 | # Setup Dependencies 20 | - uses: ./.github/actions/dependencies 21 | 22 | # Unit and Integration Tests 23 | - name: Run tests 24 | if: inputs.type == 'integration-tests' 25 | shell: bash 26 | env: 27 | RELAY_ENDPOINT: ${{ inputs.relay-endpoint }} 28 | PROJECT_ID: ${{ inputs.project-id }} 29 | run: flutter test --dart-define=RELAY_ENDPOINT=$RELAY_ENDPOINT --dart-define=PROJECT_ID=$PROJECT_ID 30 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | # Description 2 | 3 | 8 | 9 | Resolves # (issue) 10 | 11 | ## How Has This Been Tested? 12 | 13 | 18 | 19 | 20 | 21 | ## Due Dilligence 22 | 23 | * [ ] Breaking change 24 | * [ ] Requires a documentation update -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: "db7ef5bf9f59442b0e200a90587e8fa5e0c6336a" 8 | channel: "stable" 9 | 10 | project_type: plugin 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a 17 | base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a 18 | - platform: web 19 | create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a 20 | base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a 21 | 22 | # User provided section 23 | 24 | # List of Local paths (relative to this file) that should be 25 | # ignored by the migrate tool. 26 | # 27 | # Files that are not part of the templates will be ignored by default. 28 | unmanaged_files: 29 | - 'lib/main.dart' 30 | - 'ios/Runner.xcodeproj/project.pbxproj' 31 | -------------------------------------------------------------------------------- /build.yaml: -------------------------------------------------------------------------------- 1 | targets: 2 | $default: 3 | builders: 4 | freezed: 5 | generate_for: 6 | - lib/**.dart 7 | - test/shared/shared_test_utils.dart 8 | json_serializable: 9 | options: 10 | explicit_to_json: true 11 | generate_for: 12 | - lib/**.dart 13 | - test/shared/shared_test_utils.dart 14 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # Examples 2 | 3 | You can find a wallet and a dapp example in this folder. 4 | 5 | Please enjoy them and leverage them to your hearts content! -------------------------------------------------------------------------------- /example/dapp/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Symbolication related 36 | app.*.symbols 37 | 38 | # Obfuscation related 39 | app.*.map.json 40 | 41 | # Android Studio will place build artifacts here 42 | /android/app/debug 43 | /android/app/profile 44 | /android/app/release 45 | 46 | # Run scripts 47 | *.sh -------------------------------------------------------------------------------- /example/dapp/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: "db7ef5bf9f59442b0e200a90587e8fa5e0c6336a" 8 | channel: "stable" 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a 17 | base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a 18 | - platform: web 19 | create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a 20 | base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a 21 | 22 | # User provided section 23 | 24 | # List of Local paths (relative to this file) that should be 25 | # ignored by the migrate tool. 26 | # 27 | # Files that are not part of the templates will be ignored by default. 28 | unmanaged_files: 29 | - 'lib/main.dart' 30 | - 'ios/Runner.xcodeproj/project.pbxproj' 31 | -------------------------------------------------------------------------------- /example/dapp/README.md: -------------------------------------------------------------------------------- 1 | # dapp 2 | 3 | An example dApp built using flutter. 4 | 5 | ## To Run 6 | 7 | `flutter run --dart-define=PROJECT_ID=xxx` -------------------------------------------------------------------------------- /example/dapp/android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /example/dapp/android/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem "fastlane" 4 | 5 | plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') 6 | eval_gemfile(plugins_path) if File.exist?(plugins_path) 7 | -------------------------------------------------------------------------------- /example/dapp/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/ic_launcher_internal-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/ic_launcher_internal-playstore.png -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_internal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_internal_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-hdpi/ic_launcher_internal.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-hdpi/ic_launcher_internal.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-hdpi/ic_launcher_internal_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-hdpi/ic_launcher_internal_foreground.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-hdpi/ic_launcher_internal_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-hdpi/ic_launcher_internal_round.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-mdpi/ic_launcher_internal.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-mdpi/ic_launcher_internal.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-mdpi/ic_launcher_internal_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-mdpi/ic_launcher_internal_foreground.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-mdpi/ic_launcher_internal_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-mdpi/ic_launcher_internal_round.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_internal.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_internal.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_internal_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_internal_foreground.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_internal_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_internal_round.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_internal.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_internal.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_internal_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_internal_foreground.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_internal_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_internal_round.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_internal.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_internal.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_internal_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_internal_foreground.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_internal_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_internal_round.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /example/dapp/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /example/dapp/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/dapp/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.9.0' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:8.7.2' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | tasks.register("clean", Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /example/dapp/android/fastlane/Appfile: -------------------------------------------------------------------------------- 1 | json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one 2 | package_name("com.walletconnect.flutterdapp") # e.g. com.krausefx.app 3 | -------------------------------------------------------------------------------- /example/dapp/android/fastlane/Pluginfile: -------------------------------------------------------------------------------- 1 | # Autogenerated by fastlane 2 | # 3 | # Ensure this file is checked in to source control! 4 | 5 | gem 'fastlane-plugin-firebase_app_distribution' 6 | -------------------------------------------------------------------------------- /example/dapp/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | android.defaults.buildfeatures.buildconfig=true 5 | android.nonTransitiveRClass=false 6 | android.nonFinalResIds=false 7 | -------------------------------------------------------------------------------- /example/dapp/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Dec 17 10:48:23 CET 2024 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip 5 | networkTimeout=10000 6 | validateDistributionUrl=true 7 | zipStoreBase=GRADLE_USER_HOME 8 | zipStorePath=wrapper/dists 9 | -------------------------------------------------------------------------------- /example/dapp/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /example/dapp/ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /example/dapp/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 12.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/dapp/ios/Flutter/Debug-internal.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug-internal.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/dapp/ios/Flutter/Debug-production.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug-production.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/dapp/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug-internal.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/dapp/ios/Flutter/Release-internal.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release-internal.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/dapp/ios/Flutter/Release-production.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release-production.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/dapp/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release-internal.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/dapp/ios/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem "fastlane" 4 | -------------------------------------------------------------------------------- /example/dapp/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/dapp/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/dapp/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/dapp/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/dapp/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/dapp/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/100.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/1024.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/114.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/120.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/144.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/152.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/167.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/180.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/20.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/29.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/40.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/50.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/57.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/58.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/60.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/72.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/76.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/80.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/87.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /example/dapp/ios/Runner/Runner.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.developer.associated-domains 6 | 7 | applinks:lab.web3modal.com 8 | applinks:dev.lab.web3modal.com 9 | applinks:web3modal-laboratory-git-chores-addedmore-3e0f2b-walletconnect1.vercel.app 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /example/dapp/ios/Runner/RunnerProfile-internal.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /example/dapp/ios/fastlane/Appfile: -------------------------------------------------------------------------------- 1 | itc_team_id("123564616") # App Store Connect Team ID 2 | team_id("W5R8AG9K22") # Developer Portal Team ID 3 | 4 | # For more information about the Appfile, see: 5 | # https://docs.fastlane.tools/advanced/#appfile 6 | -------------------------------------------------------------------------------- /example/dapp/ios/fastlane/README.md: -------------------------------------------------------------------------------- 1 | fastlane documentation 2 | ---- 3 | 4 | # Installation 5 | 6 | Make sure you have the latest version of the Xcode command line tools installed: 7 | 8 | ```sh 9 | xcode-select --install 10 | ``` 11 | 12 | For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane) 13 | 14 | # Available Actions 15 | 16 | ## iOS 17 | 18 | ### ios release_testflight 19 | 20 | ```sh 21 | [bundle exec] fastlane ios release_testflight 22 | ``` 23 | 24 | 25 | 26 | ---- 27 | 28 | This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run. 29 | 30 | More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools). 31 | 32 | The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools). 33 | -------------------------------------------------------------------------------- /example/dapp/lib/imports.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: depend_on_referenced_packages 2 | 3 | export 'package:walletconnect_flutter_v2/walletconnect_flutter_v2.dart'; 4 | export 'package:intl/intl.dart'; 5 | -------------------------------------------------------------------------------- /example/dapp/lib/models/eth/ethereum_sign_message.dart: -------------------------------------------------------------------------------- 1 | enum WCSignType { 2 | message, 3 | personalMessage, 4 | typedMessageV2, 5 | typedMessageV3, 6 | typedMessageV4, 7 | } 8 | 9 | class EthereumSignMessage { 10 | final String data; 11 | final String address; 12 | final WCSignType type; 13 | 14 | const EthereumSignMessage({ 15 | required this.data, 16 | required this.address, 17 | required this.type, 18 | }); 19 | } 20 | -------------------------------------------------------------------------------- /example/dapp/lib/models/page_data.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class PageData { 4 | Widget page; 5 | String title; 6 | IconData icon; 7 | 8 | PageData({ 9 | required this.page, 10 | required this.title, 11 | required this.icon, 12 | }); 13 | } 14 | -------------------------------------------------------------------------------- /example/dapp/lib/utils/dart_defines.dart: -------------------------------------------------------------------------------- 1 | class DartDefines { 2 | static const String projectId = String.fromEnvironment( 3 | 'PROJECT_ID', 4 | ); 5 | } 6 | -------------------------------------------------------------------------------- /example/dapp/lib/widgets/auth_item.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'package:walletconnect_flutter_v2_dapp/utils/constants.dart'; 4 | import 'package:walletconnect_flutter_v2_dapp/imports.dart'; 5 | 6 | class AuthItem extends StatelessWidget { 7 | const AuthItem({ 8 | required Key key, 9 | required this.auth, 10 | required this.onTap, 11 | }) : super(key: key); 12 | 13 | final StoredCacao auth; 14 | final void Function() onTap; 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return InkWell( 19 | onTap: onTap, 20 | child: Container( 21 | padding: const EdgeInsets.all(12.0), 22 | color: Colors.blue.withOpacity(0.2), 23 | child: Column( 24 | crossAxisAlignment: CrossAxisAlignment.start, 25 | children: [ 26 | Text( 27 | auth.p.domain, 28 | style: StyleConstants.paragraph, 29 | ), 30 | Text(auth.p.iss), 31 | Text('iat: ${auth.p.iat}'), 32 | ], 33 | ), 34 | ), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /example/dapp/lib/widgets/event_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:walletconnect_flutter_v2_dapp/utils/constants.dart'; 3 | import 'package:walletconnect_flutter_v2_dapp/utils/string_constants.dart'; 4 | 5 | class EventWidget extends StatelessWidget { 6 | const EventWidget({ 7 | super.key, 8 | required this.title, 9 | required this.content, 10 | }); 11 | 12 | final String title; 13 | final String content; 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return AlertDialog( 18 | title: Text( 19 | title, 20 | style: StyleConstants.titleText, 21 | ), 22 | content: Text(content), 23 | actions: [ 24 | TextButton( 25 | child: const Text( 26 | StringConstants.ok, 27 | ), 28 | onPressed: () { 29 | Navigator.of(context).pop(); 30 | }, 31 | ), 32 | ], 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /example/dapp/linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /example/dapp/linux/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | 11 | void fl_register_plugins(FlPluginRegistry* registry) { 12 | g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = 13 | fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); 14 | url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); 15 | } 16 | -------------------------------------------------------------------------------- /example/dapp/linux/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void fl_register_plugins(FlPluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /example/dapp/linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | url_launcher_linux 7 | ) 8 | 9 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 10 | ) 11 | 12 | set(PLUGIN_BUNDLED_LIBRARIES) 13 | 14 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 15 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) 16 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 19 | endforeach(plugin) 20 | 21 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 22 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) 23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 24 | endforeach(ffi_plugin) 25 | -------------------------------------------------------------------------------- /example/dapp/linux/main.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | int main(int argc, char** argv) { 4 | g_autoptr(MyApplication) app = my_application_new(); 5 | return g_application_run(G_APPLICATION(app), argc, argv); 6 | } 7 | -------------------------------------------------------------------------------- /example/dapp/linux/my_application.h: -------------------------------------------------------------------------------- 1 | #ifndef FLUTTER_MY_APPLICATION_H_ 2 | #define FLUTTER_MY_APPLICATION_H_ 3 | 4 | #include 5 | 6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, 7 | GtkApplication) 8 | 9 | /** 10 | * my_application_new: 11 | * 12 | * Creates a new Flutter-based application. 13 | * 14 | * Returns: a new #MyApplication. 15 | */ 16 | MyApplication* my_application_new(); 17 | 18 | #endif // FLUTTER_MY_APPLICATION_H_ 19 | -------------------------------------------------------------------------------- /example/dapp/macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /example/dapp/macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/dapp/macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/dapp/macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import connectivity_plus 9 | import package_info_plus 10 | import shared_preferences_foundation 11 | import url_launcher_macos 12 | 13 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 14 | ConnectivityPlusPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlusPlugin")) 15 | FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) 16 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) 17 | UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) 18 | } 19 | -------------------------------------------------------------------------------- /example/dapp/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/dapp/macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/dapp/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/dapp/macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /example/dapp/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /example/dapp/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /example/dapp/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /example/dapp/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /example/dapp/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /example/dapp/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /example/dapp/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /example/dapp/macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = dapp 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.walletconnect.flutterdapp 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2023 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /example/dapp/macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /example/dapp/macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /example/dapp/macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /example/dapp/macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.network.server 10 | 11 | com.apple.security.network.client 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /example/dapp/macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController.init() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /example/dapp/macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.network.client 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/dapp/netlify.toml: -------------------------------------------------------------------------------- 1 | [[plugins]] 2 | 3 | package = "netlify-plugin-flutter" 4 | 5 | [plugins.inputs] 6 | channel = "stable" 7 | 8 | [build] 9 | 10 | command = "flutter build web --release" 11 | publish = "build/web" -------------------------------------------------------------------------------- /example/dapp/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: walletconnect_flutter_v2_dapp 2 | description: An example dApp for WalletConnect v2 built with Flutter. 3 | 4 | publish_to: "none" 5 | 6 | version: 1.0.0+1 7 | 8 | environment: 9 | sdk: ">=2.18.6 <3.0.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | 15 | cupertino_icons: ^1.0.2 16 | qr_flutter: ^4.0.0 17 | json_annotation: ^4.8.1 18 | fl_toast: ^3.1.0 19 | package_info_plus: ^7.0.0 20 | walletconnect_modal_flutter: ^2.1.20 21 | 22 | dependency_overrides: 23 | walletconnect_flutter_v2: 24 | path: ../.. 25 | 26 | dev_dependencies: 27 | flutter_test: 28 | sdk: flutter 29 | build_runner: ^2.0.0 30 | json_serializable: ^6.5.3 31 | dependency_validator: ^3.2.2 32 | 33 | flutter_lints: ^2.0.0 34 | 35 | flutter: 36 | uses-material-design: true 37 | -------------------------------------------------------------------------------- /example/dapp/web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/web/favicon.png -------------------------------------------------------------------------------- /example/dapp/web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/web/icons/Icon-192.png -------------------------------------------------------------------------------- /example/dapp/web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/web/icons/Icon-512.png -------------------------------------------------------------------------------- /example/dapp/web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /example/dapp/web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /example/dapp/web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Flutter Dapp", 3 | "short_name": "Flutter Dapp", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /example/dapp/windows/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral/ 2 | 3 | # Visual Studio user-specific files. 4 | *.suo 5 | *.user 6 | *.userosscache 7 | *.sln.docstates 8 | 9 | # Visual Studio build-related files. 10 | x64/ 11 | x86/ 12 | 13 | # Visual Studio cache files 14 | # files ending in .cache can be ignored 15 | *.[Cc]ache 16 | # but keep track of directories ending in .cache 17 | !*.[Cc]ache/ 18 | -------------------------------------------------------------------------------- /example/dapp/windows/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | #include 11 | 12 | void RegisterPlugins(flutter::PluginRegistry* registry) { 13 | ConnectivityPlusWindowsPluginRegisterWithRegistrar( 14 | registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin")); 15 | UrlLauncherWindowsRegisterWithRegistrar( 16 | registry->GetRegistrarForPlugin("UrlLauncherWindows")); 17 | } 18 | -------------------------------------------------------------------------------- /example/dapp/windows/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void RegisterPlugins(flutter::PluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /example/dapp/windows/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | connectivity_plus 7 | url_launcher_windows 8 | ) 9 | 10 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 11 | ) 12 | 13 | set(PLUGIN_BUNDLED_LIBRARIES) 14 | 15 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 16 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) 17 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 19 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 20 | endforeach(plugin) 21 | 22 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 23 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) 24 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 25 | endforeach(ffi_plugin) 26 | -------------------------------------------------------------------------------- /example/dapp/windows/runner/flutter_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_FLUTTER_WINDOW_H_ 2 | #define RUNNER_FLUTTER_WINDOW_H_ 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | #include "win32_window.h" 10 | 11 | // A window that does nothing but host a Flutter view. 12 | class FlutterWindow : public Win32Window { 13 | public: 14 | // Creates a new FlutterWindow hosting a Flutter view running |project|. 15 | explicit FlutterWindow(const flutter::DartProject& project); 16 | virtual ~FlutterWindow(); 17 | 18 | protected: 19 | // Win32Window: 20 | bool OnCreate() override; 21 | void OnDestroy() override; 22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, 23 | LPARAM const lparam) noexcept override; 24 | 25 | private: 26 | // The project to run. 27 | flutter::DartProject project_; 28 | 29 | // The Flutter instance hosted by this window. 30 | std::unique_ptr flutter_controller_; 31 | }; 32 | 33 | #endif // RUNNER_FLUTTER_WINDOW_H_ 34 | -------------------------------------------------------------------------------- /example/dapp/windows/runner/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Runner.rc 4 | // 5 | #define IDI_APP_ICON 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /example/dapp/windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/dapp/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /example/dapp/windows/runner/runner.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PerMonitorV2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /example/dapp/windows/runner/utils.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_UTILS_H_ 2 | #define RUNNER_UTILS_H_ 3 | 4 | #include 5 | #include 6 | 7 | // Creates a console for the process, and redirects stdout and stderr to 8 | // it for both the runner and the Flutter library. 9 | void CreateAndAttachConsole(); 10 | 11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string 12 | // encoded in UTF-8. Returns an empty std::string on failure. 13 | std::string Utf8FromUtf16(const wchar_t* utf16_string); 14 | 15 | // Gets the command line arguments passed in as a std::vector, 16 | // encoded in UTF-8. Returns an empty std::vector on failure. 17 | std::vector GetCommandLineArguments(); 18 | 19 | #endif // RUNNER_UTILS_H_ 20 | -------------------------------------------------------------------------------- /example/wallet/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Symbolication related 36 | app.*.symbols 37 | 38 | # Obfuscation related 39 | app.*.map.json 40 | 41 | # Android Studio will place build artifacts here 42 | /android/app/debug 43 | /android/app/profile 44 | /android/app/release 45 | 46 | # Run scripts 47 | *.sh -------------------------------------------------------------------------------- /example/wallet/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: "db7ef5bf9f59442b0e200a90587e8fa5e0c6336a" 8 | channel: "stable" 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a 17 | base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a 18 | - platform: web 19 | create_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a 20 | base_revision: db7ef5bf9f59442b0e200a90587e8fa5e0c6336a 21 | 22 | # User provided section 23 | 24 | # List of Local paths (relative to this file) that should be 25 | # ignored by the migrate tool. 26 | # 27 | # Files that are not part of the templates will be ignored by default. 28 | unmanaged_files: 29 | - 'lib/main.dart' 30 | - 'ios/Runner.xcodeproj/project.pbxproj' 31 | -------------------------------------------------------------------------------- /example/wallet/AppIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/AppIcon.png -------------------------------------------------------------------------------- /example/wallet/README.md: -------------------------------------------------------------------------------- 1 | # dapp 2 | 3 | An example wallet built using flutter. 4 | 5 | ## To Run 6 | 7 | `flutter run --dart-define=PROJECT_ID=xxx` -------------------------------------------------------------------------------- /example/wallet/android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /example/wallet/android/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem "fastlane" 4 | 5 | plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') 6 | eval_gemfile(plugins_path) if File.exist?(plugins_path) 7 | -------------------------------------------------------------------------------- /example/wallet/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/ic_launcher_internal-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/ic_launcher_internal-playstore.png -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_internal.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_internal_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-hdpi/ic_launcher_internal.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-hdpi/ic_launcher_internal.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-hdpi/ic_launcher_internal_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-hdpi/ic_launcher_internal_foreground.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-hdpi/ic_launcher_internal_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-hdpi/ic_launcher_internal_round.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-mdpi/ic_launcher_internal.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-mdpi/ic_launcher_internal.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-mdpi/ic_launcher_internal_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-mdpi/ic_launcher_internal_foreground.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-mdpi/ic_launcher_internal_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-mdpi/ic_launcher_internal_round.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xhdpi/ic_launcher_internal.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xhdpi/ic_launcher_internal.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xhdpi/ic_launcher_internal_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xhdpi/ic_launcher_internal_foreground.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xhdpi/ic_launcher_internal_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xhdpi/ic_launcher_internal_round.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_internal.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_internal.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_internal_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_internal_foreground.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_internal_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_internal_round.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_internal.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_internal.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_internal_foreground.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_internal_foreground.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_internal_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_internal_round.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5EDFF 4 | -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/values/ic_launcher_internal_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5EDFF 4 | -------------------------------------------------------------------------------- /example/wallet/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /example/wallet/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/wallet/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.9.0' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:8.1.1' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | tasks.register("clean", Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /example/wallet/android/fastlane/Appfile: -------------------------------------------------------------------------------- 1 | json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one 2 | package_name("com.walletconnect.flutterwallet") # e.g. com.krausefx.app 3 | -------------------------------------------------------------------------------- /example/wallet/android/fastlane/Pluginfile: -------------------------------------------------------------------------------- 1 | # Autogenerated by fastlane 2 | # 3 | # Ensure this file is checked in to source control! 4 | 5 | gem 'fastlane-plugin-firebase_app_distribution' 6 | -------------------------------------------------------------------------------- /example/wallet/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | android.defaults.buildfeatures.buildconfig=true 5 | android.nonTransitiveRClass=false 6 | android.nonFinalResIds=false 7 | -------------------------------------------------------------------------------- /example/wallet/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip 6 | -------------------------------------------------------------------------------- /example/wallet/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /example/wallet/ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /example/wallet/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 13.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/wallet/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug-internal.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/wallet/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release-internal.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/wallet/ios/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem "fastlane" 4 | -------------------------------------------------------------------------------- /example/wallet/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/wallet/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/wallet/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/wallet/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/wallet/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/wallet/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/100.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/1024.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/114.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/120.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/144.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/152.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/167.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/180.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/20.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/29.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/40.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/50.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/57.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/58.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/60.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/72.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/76.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/80.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon-internal.appiconset/87.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/100.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/114.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/120.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/144.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/144.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/152.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/167.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/180.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/20.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/29.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/40.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/50.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/57.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/58.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/60.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/72.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/76.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/80.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/AppIcon.appiconset/87.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "appstore.png", 5 | "idiom" : "universal", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "filename" : "appstore@2x.png", 10 | "idiom" : "universal", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "filename" : "appstore@3x.png", 15 | "idiom" : "universal", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "author" : "xcode", 21 | "version" : 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/LaunchImage.imageset/appstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/LaunchImage.imageset/appstore.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/LaunchImage.imageset/appstore@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/LaunchImage.imageset/appstore@2x.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Assets.xcassets/LaunchImage.imageset/appstore@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/ios/Runner/Assets.xcassets/LaunchImage.imageset/appstore@3x.png -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /example/wallet/ios/Runner/Runner.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.developer.associated-domains 6 | 7 | applinks:lab.web3modal.com 8 | applinks:dev.lab.web3modal.com 9 | applinks:web3modal-laboratory-git-chores-addedmore-3e0f2b-walletconnect1.vercel.app 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /example/wallet/ios/fastlane/Appfile: -------------------------------------------------------------------------------- 1 | itc_team_id("123564616") # App Store Connect Team ID 2 | team_id("W5R8AG9K22") # Developer Portal Team ID 3 | 4 | # For more information about the Appfile, see: 5 | # https://docs.fastlane.tools/advanced/#appfile 6 | -------------------------------------------------------------------------------- /example/wallet/lib/dependencies/bip32/utils/crypto.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: depend_on_referenced_packages, non_constant_identifier_names 2 | 3 | import 'dart:typed_data'; 4 | import 'package:pointycastle/digests/sha512.dart'; 5 | import 'package:pointycastle/api.dart'; 6 | import 'package:pointycastle/macs/hmac.dart'; 7 | import 'package:pointycastle/digests/ripemd160.dart'; 8 | import 'package:pointycastle/digests/sha256.dart'; 9 | 10 | final ONE1 = Uint8List.fromList([1]); 11 | final ZERO1 = Uint8List.fromList([0]); 12 | 13 | Uint8List hash160(Uint8List buffer) { 14 | Uint8List tmp = SHA256Digest().process(buffer); 15 | return RIPEMD160Digest().process(tmp); 16 | } 17 | 18 | Uint8List hmacSHA512(Uint8List key, Uint8List data) { 19 | final tmp = HMac(SHA512Digest(), 128)..init(KeyParameter(key)); 20 | return tmp.process(data); 21 | } 22 | -------------------------------------------------------------------------------- /example/wallet/lib/dependencies/bottom_sheet/i_bottom_sheet_service.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/material.dart'; 4 | 5 | enum WCBottomSheetResult { 6 | reject, 7 | one, 8 | all, 9 | } 10 | 11 | class BottomSheetQueueItem { 12 | final Widget widget; 13 | final Completer completer; 14 | final int closeAfter; 15 | 16 | BottomSheetQueueItem({ 17 | required this.widget, 18 | required this.completer, 19 | this.closeAfter = 0, 20 | }); 21 | } 22 | 23 | abstract class IBottomSheetService { 24 | abstract final ValueNotifier currentSheet; 25 | 26 | Future queueBottomSheet({ 27 | required Widget widget, 28 | int closeAfter = 0, 29 | }); 30 | 31 | void showNext(); 32 | } 33 | -------------------------------------------------------------------------------- /example/wallet/lib/dependencies/i_web3wallet_service.dart: -------------------------------------------------------------------------------- 1 | import 'package:get_it/get_it.dart'; 2 | import 'package:walletconnect_flutter_v2/walletconnect_flutter_v2.dart'; 3 | 4 | class UpdateEvent extends EventArgs { 5 | final bool loading; 6 | 7 | UpdateEvent({required this.loading}); 8 | } 9 | 10 | abstract class IWeb3WalletService extends Disposable { 11 | Future create(); 12 | Future init(); 13 | 14 | Web3Wallet get web3wallet; 15 | } 16 | -------------------------------------------------------------------------------- /example/wallet/lib/dependencies/key_service/chain_key.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | class ChainKey { 4 | final List chains; 5 | final String privateKey; 6 | final String publicKey; 7 | final String address; 8 | 9 | ChainKey({ 10 | required this.chains, 11 | required this.privateKey, 12 | required this.publicKey, 13 | required this.address, 14 | }); 15 | 16 | String get namespace { 17 | if (chains.isNotEmpty) { 18 | return chains.first.split(':').first; 19 | } 20 | return ''; 21 | } 22 | 23 | Map toJson() => { 24 | 'chains': chains, 25 | 'privateKey': privateKey, 26 | 'publicKey': privateKey, 27 | 'address': address, 28 | }; 29 | 30 | factory ChainKey.fromJson(Map json) { 31 | return ChainKey( 32 | chains: (json['chains'] as List).map((e) => '$e').toList(), 33 | privateKey: json['privateKey'], 34 | publicKey: json['publicKey'], 35 | address: json['address'], 36 | ); 37 | } 38 | 39 | @override 40 | String toString() => jsonEncode(toJson()); 41 | } 42 | -------------------------------------------------------------------------------- /example/wallet/lib/dependencies/key_service/i_key_service.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2_wallet/dependencies/key_service/chain_key.dart'; 2 | 3 | abstract class IKeyService { 4 | Future clearAll(); 5 | 6 | /// Returns a list of all the keys. 7 | Future> loadKeys(); 8 | 9 | /// Returns a list of all the chain ids. 10 | List getChains(); 11 | 12 | /// Returns a list of all the keys for a given chain id. 13 | /// If the chain is not found, returns an empty list. 14 | /// - [chain]: The chain to get the keys for. 15 | List getKeysForChain(String value); 16 | 17 | /// Returns a list of all the accounts in namespace:chainId:address format. 18 | List getAllAccounts(); 19 | 20 | Future createAddressFromSeed(); 21 | 22 | Future loadDefaultWallet(); 23 | 24 | Future getMnemonic(); 25 | 26 | Future restoreWalletFromSeed({required String mnemonic}); 27 | } 28 | -------------------------------------------------------------------------------- /example/wallet/lib/models/eth/ethereum_sign_message.dart: -------------------------------------------------------------------------------- 1 | enum WCSignType { 2 | message, 3 | personalMessage, 4 | typedMessageV2, 5 | typedMessageV3, 6 | typedMessageV4, 7 | } 8 | 9 | class EthereumSignMessage { 10 | final String data; 11 | final String address; 12 | final WCSignType type; 13 | 14 | const EthereumSignMessage({ 15 | required this.data, 16 | required this.address, 17 | required this.type, 18 | }); 19 | } 20 | -------------------------------------------------------------------------------- /example/wallet/lib/models/page_data.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class PageData { 4 | Widget page; 5 | String title; 6 | IconData icon; 7 | 8 | PageData({ 9 | required this.page, 10 | required this.title, 11 | required this.icon, 12 | }); 13 | } 14 | -------------------------------------------------------------------------------- /example/wallet/lib/widgets/wc_connection_widget/wc_connection_model.dart: -------------------------------------------------------------------------------- 1 | class WCConnectionModel { 2 | final String? title; 3 | final String? text; 4 | final List? elements; 5 | final Map? elementActions; 6 | 7 | WCConnectionModel({ 8 | this.title, 9 | this.text, 10 | this.elements, 11 | this.elementActions, 12 | }); 13 | 14 | @override 15 | String toString() { 16 | return 'WalletConnectRequestModel(title: $title, text: $text, elements: $elements, elementActions: $elementActions)'; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /example/wallet/linux/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral 2 | -------------------------------------------------------------------------------- /example/wallet/linux/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | 11 | void fl_register_plugins(FlPluginRegistry* registry) { 12 | g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = 13 | fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); 14 | url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); 15 | } 16 | -------------------------------------------------------------------------------- /example/wallet/linux/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void fl_register_plugins(FlPluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /example/wallet/linux/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | url_launcher_linux 7 | ) 8 | 9 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 10 | ) 11 | 12 | set(PLUGIN_BUNDLED_LIBRARIES) 13 | 14 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 15 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) 16 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 19 | endforeach(plugin) 20 | 21 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 22 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) 23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 24 | endforeach(ffi_plugin) 25 | -------------------------------------------------------------------------------- /example/wallet/linux/main.cc: -------------------------------------------------------------------------------- 1 | #include "my_application.h" 2 | 3 | int main(int argc, char** argv) { 4 | g_autoptr(MyApplication) app = my_application_new(); 5 | return g_application_run(G_APPLICATION(app), argc, argv); 6 | } 7 | -------------------------------------------------------------------------------- /example/wallet/linux/my_application.h: -------------------------------------------------------------------------------- 1 | #ifndef FLUTTER_MY_APPLICATION_H_ 2 | #define FLUTTER_MY_APPLICATION_H_ 3 | 4 | #include 5 | 6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION, 7 | GtkApplication) 8 | 9 | /** 10 | * my_application_new: 11 | * 12 | * Creates a new Flutter-based application. 13 | * 14 | * Returns: a new #MyApplication. 15 | */ 16 | MyApplication* my_application_new(); 17 | 18 | #endif // FLUTTER_MY_APPLICATION_H_ 19 | -------------------------------------------------------------------------------- /example/wallet/macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/dgph 7 | **/xcuserdata/ 8 | -------------------------------------------------------------------------------- /example/wallet/macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/wallet/macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/wallet/macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import connectivity_plus 9 | import package_info_plus 10 | import shared_preferences_foundation 11 | import url_launcher_macos 12 | 13 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 14 | ConnectivityPlusPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlusPlugin")) 15 | FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) 16 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) 17 | UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) 18 | } 19 | -------------------------------------------------------------------------------- /example/wallet/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/wallet/macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/wallet/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/wallet/macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /example/wallet/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /example/wallet/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /example/wallet/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /example/wallet/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /example/wallet/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /example/wallet/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /example/wallet/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /example/wallet/macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = Flutter Wallet 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.wallet 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2023 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /example/wallet/macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /example/wallet/macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /example/wallet/macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /example/wallet/macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.device.camera 10 | 11 | com.apple.security.network.server 12 | 13 | com.apple.security.network.client 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /example/wallet/macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController.init() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /example/wallet/macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.network.client 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/wallet/netlify.toml: -------------------------------------------------------------------------------- 1 | [[plugins]] 2 | 3 | package = "netlify-plugin-flutter" 4 | 5 | [plugins.inputs] 6 | channel = "stable" 7 | 8 | [build] 9 | 10 | command = "flutter build web --release" 11 | publish = "build/web" -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | pubspec.lock 33 | /build/ 34 | 35 | # Web related 36 | lib/generated_plugin_registrant.dart 37 | 38 | # Symbolication related 39 | app.*.symbols 40 | 41 | # Obfuscation related 42 | app.*.map.json 43 | 44 | # Android Studio will place build artifacts here 45 | /android/app/debug 46 | /android/app/profile 47 | /android/app/release 48 | 49 | # fvm 50 | .fvm/ 51 | 52 | # vscode 53 | .vscode/ 54 | 55 | # Run scripts 56 | *.sh 57 | *.env.secret 58 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:flutter_lints/flutter.yaml 2 | 3 | # Additional information about this file can be found at 4 | # https://dart.dev/guides/language/analysis-options 5 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/packages/qr-bar-code-scanner-dialog/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'qr_bar_code_scanner_dialog' 2 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/packages/qr-bar-code-scanner-dialog/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/ios/Classes/QrBarCodeScannerDialogPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface QrBarCodeScannerDialogPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/ios/Classes/QrBarCodeScannerDialogPlugin.m: -------------------------------------------------------------------------------- 1 | #import "QrBarCodeScannerDialogPlugin.h" 2 | #if __has_include() 3 | #import 4 | #else 5 | // Support project import fallback if the generated compatibility header 6 | // is not copied when this plugin is created as a library. 7 | // https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816 8 | #import "qr_bar_code_scanner_dialog-Swift.h" 9 | #endif 10 | 11 | @implementation QrBarCodeScannerDialogPlugin 12 | + (void)registerWithRegistrar:(NSObject*)registrar { 13 | [SwiftQrBarCodeScannerDialogPlugin registerWithRegistrar:registrar]; 14 | } 15 | @end 16 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/ios/Classes/SwiftQrBarCodeScannerDialogPlugin.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | 4 | public class SwiftQrBarCodeScannerDialogPlugin: NSObject, FlutterPlugin { 5 | public static func register(with registrar: FlutterPluginRegistrar) { 6 | let channel = FlutterMethodChannel(name: "qr_bar_code_scanner_dialog", binaryMessenger: registrar.messenger()) 7 | let instance = SwiftQrBarCodeScannerDialogPlugin() 8 | registrar.addMethodCallDelegate(instance, channel: channel) 9 | } 10 | 11 | public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) { 12 | result("iOS " + UIDevice.current.systemVersion) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/ios/qr_bar_code_scanner_dialog.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. 3 | # Run `pod lib lint qr_bar_code_scanner_dialog.podspec` to validate before publishing. 4 | # 5 | Pod::Spec.new do |s| 6 | s.name = 'qr_bar_code_scanner_dialog' 7 | s.version = '0.0.1' 8 | s.summary = 'Plugin to scan Bar/QR code easly with Flutter.' 9 | s.description = <<-DESC 10 | Plugin to scan Bar/QR code easly with Flutter. 11 | DESC 12 | s.homepage = 'http://example.com' 13 | s.license = { :file => '../LICENSE' } 14 | s.author = { 'Your Company' => 'email@example.com' } 15 | s.source = { :path => '.' } 16 | s.source_files = 'Classes/**/*' 17 | s.dependency 'Flutter' 18 | s.platform = :ios, '9.0' 19 | 20 | # Flutter.framework does not contain a i386 slice. 21 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 22 | s.swift_version = '5.0' 23 | end 24 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/lib/qr_bar_code_scanner_dialog.dart: -------------------------------------------------------------------------------- 1 | import 'qr_bar_code_scanner_dialog_platform_interface.dart'; 2 | 3 | import 'package:flutter/widgets.dart'; 4 | 5 | class QrBarCodeScannerDialog { 6 | Future getPlatformVersion() { 7 | return QrBarCodeScannerDialogPlatform.instance.getPlatformVersion(); 8 | } 9 | 10 | void getScannedQrBarCode( 11 | {BuildContext? context, required Function(String?) onCode}) { 12 | QrBarCodeScannerDialogPlatform.instance 13 | .scanBarOrQrCode(context: context, onScanSuccess: onCode); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:flutter_lints/flutter.yaml -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableJetifier=true 3 | android.useAndroidX=true 4 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Jul 22 12:15:07 CEST 2024 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip 5 | zipStoreBase=GRADLE_USER_HOME 6 | zipStorePath=wrapper/dists 7 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'flutter_qr' 2 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QRViewFactory.kt: -------------------------------------------------------------------------------- 1 | package net.touchcapture.qr.flutterqr 2 | 3 | import android.content.Context 4 | import io.flutter.plugin.common.BinaryMessenger 5 | import io.flutter.plugin.common.StandardMessageCodec 6 | import io.flutter.plugin.platform.PlatformView 7 | import io.flutter.plugin.platform.PlatformViewFactory 8 | 9 | 10 | class QRViewFactory( 11 | private val messenger: BinaryMessenger 12 | ) : PlatformViewFactory(StandardMessageCodec.INSTANCE) { 13 | 14 | override fun create( 15 | context: Context?, 16 | viewId: Int, 17 | args: Any? 18 | ): PlatformView { 19 | 20 | @Suppress("UNCHECKED_CAST") 21 | val params = args as HashMap 22 | 23 | return QRView( 24 | context = requireNotNull(context), 25 | id = viewId, 26 | messenger = messenger, 27 | params = params 28 | ) 29 | } 30 | } -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/android/src/main/kotlin/net/touchcapture/qr/flutterqr/QrShared.kt: -------------------------------------------------------------------------------- 1 | package net.touchcapture.qr.flutterqr 2 | 3 | import android.annotation.SuppressLint 4 | import android.app.Activity 5 | import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding 6 | 7 | @SuppressLint("StaticFieldLeak") 8 | object QrShared { 9 | const val CAMERA_REQUEST_ID = 513469796 10 | 11 | var activity: Activity? = null 12 | 13 | var binding: ActivityPluginBinding? = null 14 | 15 | } -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/ios/Classes/FlutterQrPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface FlutterQrPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/ios/Classes/FlutterQrPlugin.m: -------------------------------------------------------------------------------- 1 | #import "FlutterQrPlugin.h" 2 | 3 | #if __has_include() 4 | #import 5 | #else 6 | #import "qr_code_scanner-Swift.h" 7 | #endif 8 | 9 | @implementation FlutterQrPlugin 10 | + (void)registerWithRegistrar:(NSObject*)registrar { 11 | [SwiftFlutterQrPlugin registerWithRegistrar:registrar]; 12 | } 13 | @end 14 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/ios/Classes/QRViewFactory.swift: -------------------------------------------------------------------------------- 1 | // 2 | // QRViewFactory.swift 3 | // flutter_qr 4 | // 5 | // Created by Julius Canute on 21/12/18. 6 | // 7 | 8 | import Foundation 9 | 10 | public class QRViewFactory: NSObject, FlutterPlatformViewFactory { 11 | 12 | var registrar: FlutterPluginRegistrar? 13 | 14 | public init(withRegistrar registrar: FlutterPluginRegistrar){ 15 | super.init() 16 | self.registrar = registrar 17 | } 18 | 19 | public func create(withFrame frame: CGRect, viewIdentifier viewId: Int64, arguments args: Any?) -> FlutterPlatformView { 20 | let params = args as! Dictionary 21 | return QRView(withFrame: frame, withRegistrar: registrar!,withId: viewId, params: params) 22 | } 23 | 24 | public func createArgsCodec() -> FlutterMessageCodec & NSObjectProtocol { 25 | return FlutterStandardMessageCodec(readerWriter: FlutterStandardReaderWriter()) 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/ios/Classes/SwiftFlutterQrPlugin.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | 4 | public class SwiftFlutterQrPlugin: NSObject, FlutterPlugin { 5 | 6 | var factory: QRViewFactory 7 | public init(with registrar: FlutterPluginRegistrar) { 8 | self.factory = QRViewFactory(withRegistrar: registrar) 9 | registrar.register(factory, withId: "net.touchcapture.qr.flutterqr/qrview") 10 | } 11 | 12 | public static func register(with registrar: FlutterPluginRegistrar) { 13 | registrar.addApplicationDelegate(SwiftFlutterQrPlugin(with: registrar)) 14 | } 15 | 16 | public func applicationDidEnterBackground(_ application: UIApplication) { 17 | } 18 | 19 | public func applicationWillTerminate(_ application: UIApplication) { 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/ios/qr_code_scanner.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 3 | # 4 | 5 | Pod::Spec.new do |s| 6 | s.name = 'qr_code_scanner' 7 | s.version = '0.2.0' 8 | s.summary = 'QR Code Scanner for flutter.' 9 | s.description = <<-DESC 10 | A new Flutter project. 11 | DESC 12 | s.homepage = 'https://github.com/juliuscanute/qr_code_scanner' 13 | s.license = { :file => '../LICENSE' } 14 | s.author = { 'Your Company' => 'juliuscanute[*]touchcapture.net' } 15 | s.source = { :path => '.' } 16 | s.source_files = 'Classes/**/*' 17 | s.public_header_files = 'Classes/**/*.h' 18 | s.dependency 'Flutter' 19 | s.dependency 'MTBBarcodeScanner' 20 | s.ios.deployment_target = '8.0' 21 | s.swift_version = '4.0' 22 | end 23 | 24 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/lib/qr_code_scanner.dart: -------------------------------------------------------------------------------- 1 | export 'src/qr_code_scanner.dart'; 2 | export 'src/qr_scanner_overlay_shape.dart'; 3 | export 'src/types/barcode.dart'; 4 | export 'src/types/barcode_format.dart'; 5 | export 'src/types/camera.dart'; 6 | export 'src/types/camera_exception.dart'; 7 | export 'src/types/features.dart'; 8 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/lib/src/lifecycle_event_handler.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/foundation.dart'; 3 | 4 | class LifecycleEventHandler extends WidgetsBindingObserver { 5 | LifecycleEventHandler({ 6 | required this.resumeCallBack, 7 | }); 8 | 9 | late final AsyncCallback resumeCallBack; 10 | 11 | @override 12 | Future didChangeAppLifecycleState(AppLifecycleState state) async { 13 | switch (state) { 14 | case AppLifecycleState.resumed: 15 | await resumeCallBack(); 16 | break; 17 | case AppLifecycleState.inactive: 18 | case AppLifecycleState.paused: 19 | case AppLifecycleState.detached: 20 | case AppLifecycleState.hidden: 21 | break; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/lib/src/types/barcode.dart: -------------------------------------------------------------------------------- 1 | import 'barcode_format.dart'; 2 | 3 | /// The [Barcode] object holds information about the barcode or qr code. 4 | /// 5 | /// [code] is the string-content of the barcode. 6 | /// [format] displays which type the code is. 7 | /// Only for Android and iOS, [rawBytes] gives a list of bytes of the result. 8 | class Barcode { 9 | Barcode(this.code, this.format, this.rawBytes); 10 | 11 | final String? code; 12 | final BarcodeFormat format; 13 | 14 | /// Raw bytes are only supported by Android and iOS. 15 | final List? rawBytes; 16 | } 17 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/lib/src/types/camera.dart: -------------------------------------------------------------------------------- 1 | enum CameraFacing { 2 | /// Shows back facing camera. 3 | back, 4 | 5 | /// Shows front facing camera. 6 | front, 7 | 8 | /// Unknown camera 9 | unknown 10 | } 11 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/lib/src/types/camera_exception.dart: -------------------------------------------------------------------------------- 1 | /// This is thrown when the plugin reports an error. 2 | class CameraException implements Exception { 3 | /// Creates a new camera exception with the given error code and description. 4 | CameraException(this.code, this.description); 5 | 6 | /// Error code. 7 | String code; 8 | 9 | /// Textual description of the error. 10 | String? description; 11 | 12 | @override 13 | String toString() => 'CameraException($code, $description)'; 14 | } 15 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/lib/src/types/features.dart: -------------------------------------------------------------------------------- 1 | class SystemFeatures { 2 | SystemFeatures(this.hasFlash, this.hasBackCamera, this.hasFrontCamera); 3 | 4 | factory SystemFeatures.fromJson(Map features) => 5 | SystemFeatures( 6 | features['hasFlash'] ?? false, 7 | features['hasBackCamera'] ?? false, 8 | features['hasFrontCamera'] ?? false); 9 | 10 | final bool hasFlash; 11 | final bool hasFrontCamera; 12 | final bool hasBackCamera; 13 | } 14 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/lib/src/web/flutter_qr_stub.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:qr_code_scanner/src/types/camera.dart'; 3 | 4 | Widget createWebQrView( 5 | {onPlatformViewCreated, onPermissionSet, CameraFacing? cameraFacing}) => 6 | const SizedBox(); 7 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/lib/src/web/jsqr.dart: -------------------------------------------------------------------------------- 1 | @JS() 2 | library jsqr; 3 | 4 | import 'package:js/js.dart'; 5 | 6 | @JS('jsQR') 7 | external Code jsQR(var data, int? width, int? height); 8 | 9 | @JS() 10 | class Code { 11 | external String get data; 12 | } 13 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/lib/src/web/media.dart: -------------------------------------------------------------------------------- 1 | // This is here because dart doesn't seem to support this properly 2 | // https://stackoverflow.com/questions/61161135/adding-support-for-navigator-mediadevices-getusermedia-to-dart 3 | 4 | @JS('navigator.mediaDevices') 5 | library media_devices; 6 | 7 | import 'package:js/js.dart'; 8 | 9 | @JS('getUserMedia') 10 | external Future getUserMedia(UserMediaOptions constraints); 11 | 12 | @JS() 13 | @anonymous 14 | class UserMediaOptions { 15 | external VideoOptions get video; 16 | 17 | external factory UserMediaOptions({VideoOptions? video}); 18 | } 19 | 20 | @JS() 21 | @anonymous 22 | class VideoOptions { 23 | external String get facingMode; 24 | // external DeviceIdOptions get deviceId; 25 | 26 | external factory VideoOptions( 27 | {String? facingMode, DeviceIdOptions? deviceId}); 28 | } 29 | 30 | @JS() 31 | @anonymous 32 | class DeviceIdOptions { 33 | external String get exact; 34 | 35 | external factory DeviceIdOptions({String? exact}); 36 | } 37 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/packages/qr_code_scanner/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: qr_code_scanner 2 | description: QR code scanner that can be embedded inside flutter. It uses zxing in Android and MTBBarcode scanner in iOS. 3 | version: 1.0.0 4 | homepage: https://juliuscanute.com 5 | repository: https://github.com/juliuscanute/qr_code_scanner 6 | 7 | environment: 8 | sdk: '>=2.17.0 <3.0.0' 9 | flutter: ">=1.12.0" 10 | 11 | dependencies: 12 | js: ^0.6.3 13 | flutter: 14 | sdk: flutter 15 | flutter_web_plugins: 16 | sdk: flutter 17 | 18 | dev_dependencies: 19 | flutter_lints: ^1.0.4 20 | 21 | flutter: 22 | plugin: 23 | platforms: 24 | android: 25 | package: net.touchcapture.qr.flutterqr 26 | pluginClass: FlutterQrPlugin 27 | ios: 28 | pluginClass: FlutterQrPlugin 29 | # web: 30 | # pluginClass: FlutterQrPlugin 31 | # fileName: flutter_qr_web.dart 32 | -------------------------------------------------------------------------------- /example/wallet/packages/qr-bar-code-scanner-dialog/test/qr_bar_code_scanner_dialog_method_channel_test.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: deprecated_member_use 2 | 3 | import 'package:flutter/services.dart'; 4 | import 'package:flutter_test/flutter_test.dart'; 5 | import 'package:qr_bar_code_scanner_dialog/qr_bar_code_scanner_dialog_method_channel.dart'; 6 | 7 | void main() { 8 | MethodChannelQrBarCodeScannerDialog platform = 9 | MethodChannelQrBarCodeScannerDialog(); 10 | const MethodChannel channel = MethodChannel('qr_bar_code_scanner_dialog'); 11 | 12 | TestWidgetsFlutterBinding.ensureInitialized(); 13 | 14 | setUp(() { 15 | channel.setMockMethodCallHandler((MethodCall methodCall) async { 16 | return '42'; 17 | }); 18 | }); 19 | 20 | tearDown(() { 21 | channel.setMockMethodCallHandler(null); 22 | }); 23 | 24 | test('getPlatformVersion', () async { 25 | expect(await platform.getPlatformVersion(), '42'); 26 | }); 27 | } 28 | -------------------------------------------------------------------------------- /example/wallet/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: walletconnect_flutter_v2_wallet 2 | description: An example wallet for WalletConnect v2 built with Flutter 3 | 4 | publish_to: "none" 5 | 6 | version: 1.0.0+1 7 | 8 | environment: 9 | sdk: ">=2.19.0 <4.0.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | 15 | cupertino_icons: ^1.0.2 16 | json_annotation: ^4.8.1 17 | fl_toast: ^3.1.0 18 | qr_bar_code_scanner_dialog: 19 | path: packages/qr-bar-code-scanner-dialog 20 | get_it: ^7.2.0 21 | eth_sig_util: ^0.0.9 22 | get_it_mixin: ^4.0.0 23 | package_info_plus: ^7.0.0 24 | convert: ^3.0.1 25 | 26 | # CHECK WEB SUPPORT 27 | kadena_dart_sdk: ^2.3.2 28 | solana: ^0.30.4 29 | polkadart_keyring: ^0.4.3 30 | polkadart: ^0.4.6 31 | # 32 | walletconnect_flutter_v2: 33 | path: ../.. 34 | 35 | dev_dependencies: 36 | flutter_test: 37 | sdk: flutter 38 | build_runner: ^2.0.0 39 | json_serializable: ^6.5.3 40 | dependency_validator: ^3.2.2 41 | 42 | flutter_lints: ^2.0.0 43 | 44 | flutter: 45 | uses-material-design: true 46 | -------------------------------------------------------------------------------- /example/wallet/web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/web/favicon.png -------------------------------------------------------------------------------- /example/wallet/web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/web/icons/Icon-192.png -------------------------------------------------------------------------------- /example/wallet/web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/web/icons/Icon-512.png -------------------------------------------------------------------------------- /example/wallet/web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /example/wallet/web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /example/wallet/web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wallet", 3 | "short_name": "wallet", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /example/wallet/windows/.gitignore: -------------------------------------------------------------------------------- 1 | flutter/ephemeral/ 2 | 3 | # Visual Studio user-specific files. 4 | *.suo 5 | *.user 6 | *.userosscache 7 | *.sln.docstates 8 | 9 | # Visual Studio build-related files. 10 | x64/ 11 | x86/ 12 | 13 | # Visual Studio cache files 14 | # files ending in .cache can be ignored 15 | *.[Cc]ache 16 | # but keep track of directories ending in .cache 17 | !*.[Cc]ache/ 18 | -------------------------------------------------------------------------------- /example/wallet/windows/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #include "generated_plugin_registrant.h" 8 | 9 | #include 10 | #include 11 | 12 | void RegisterPlugins(flutter::PluginRegistry* registry) { 13 | ConnectivityPlusWindowsPluginRegisterWithRegistrar( 14 | registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin")); 15 | UrlLauncherWindowsRegisterWithRegistrar( 16 | registry->GetRegistrarForPlugin("UrlLauncherWindows")); 17 | } 18 | -------------------------------------------------------------------------------- /example/wallet/windows/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | // clang-format off 6 | 7 | #ifndef GENERATED_PLUGIN_REGISTRANT_ 8 | #define GENERATED_PLUGIN_REGISTRANT_ 9 | 10 | #include 11 | 12 | // Registers Flutter plugins. 13 | void RegisterPlugins(flutter::PluginRegistry* registry); 14 | 15 | #endif // GENERATED_PLUGIN_REGISTRANT_ 16 | -------------------------------------------------------------------------------- /example/wallet/windows/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- 1 | # 2 | # Generated file, do not edit. 3 | # 4 | 5 | list(APPEND FLUTTER_PLUGIN_LIST 6 | connectivity_plus 7 | url_launcher_windows 8 | ) 9 | 10 | list(APPEND FLUTTER_FFI_PLUGIN_LIST 11 | ) 12 | 13 | set(PLUGIN_BUNDLED_LIBRARIES) 14 | 15 | foreach(plugin ${FLUTTER_PLUGIN_LIST}) 16 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) 17 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) 18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $) 19 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) 20 | endforeach(plugin) 21 | 22 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) 23 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) 24 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) 25 | endforeach(ffi_plugin) 26 | -------------------------------------------------------------------------------- /example/wallet/windows/runner/flutter_window.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_FLUTTER_WINDOW_H_ 2 | #define RUNNER_FLUTTER_WINDOW_H_ 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | #include "win32_window.h" 10 | 11 | // A window that does nothing but host a Flutter view. 12 | class FlutterWindow : public Win32Window { 13 | public: 14 | // Creates a new FlutterWindow hosting a Flutter view running |project|. 15 | explicit FlutterWindow(const flutter::DartProject& project); 16 | virtual ~FlutterWindow(); 17 | 18 | protected: 19 | // Win32Window: 20 | bool OnCreate() override; 21 | void OnDestroy() override; 22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, 23 | LPARAM const lparam) noexcept override; 24 | 25 | private: 26 | // The project to run. 27 | flutter::DartProject project_; 28 | 29 | // The Flutter instance hosted by this window. 30 | std::unique_ptr flutter_controller_; 31 | }; 32 | 33 | #endif // RUNNER_FLUTTER_WINDOW_H_ 34 | -------------------------------------------------------------------------------- /example/wallet/windows/runner/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Runner.rc 4 | // 5 | #define IDI_APP_ICON 101 6 | 7 | // Next default values for new objects 8 | // 9 | #ifdef APSTUDIO_INVOKED 10 | #ifndef APSTUDIO_READONLY_SYMBOLS 11 | #define _APS_NEXT_RESOURCE_VALUE 102 12 | #define _APS_NEXT_COMMAND_VALUE 40001 13 | #define _APS_NEXT_CONTROL_VALUE 1001 14 | #define _APS_NEXT_SYMED_VALUE 101 15 | #endif 16 | #endif 17 | -------------------------------------------------------------------------------- /example/wallet/windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/WalletConnect/WalletConnectFlutterV2/9cbaf289ec51bcc72c256d7bfc221276492cd1e5/example/wallet/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /example/wallet/windows/runner/runner.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PerMonitorV2 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /example/wallet/windows/runner/utils.h: -------------------------------------------------------------------------------- 1 | #ifndef RUNNER_UTILS_H_ 2 | #define RUNNER_UTILS_H_ 3 | 4 | #include 5 | #include 6 | 7 | // Creates a console for the process, and redirects stdout and stderr to 8 | // it for both the runner and the Flutter library. 9 | void CreateAndAttachConsole(); 10 | 11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string 12 | // encoded in UTF-8. Returns an empty std::string on failure. 13 | std::string Utf8FromUtf16(const wchar_t* utf16_string); 14 | 15 | // Gets the command line arguments passed in as a std::vector, 16 | // encoded in UTF-8. Returns an empty std::vector on failure. 17 | std::vector GetCommandLineArguments(); 18 | 19 | #endif // RUNNER_UTILS_H_ 20 | -------------------------------------------------------------------------------- /lib/apis/auth_api/i_auth_engine.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2/apis/auth_api/i_auth_engine_app.dart'; 2 | import 'package:walletconnect_flutter_v2/apis/auth_api/i_auth_engine_wallet.dart'; 3 | 4 | abstract class IAuthEngine implements IAuthEngineWallet, IAuthEngineApp {} 5 | -------------------------------------------------------------------------------- /lib/apis/auth_api/i_auth_engine_app.dart: -------------------------------------------------------------------------------- 1 | import 'package:event/event.dart'; 2 | import 'package:walletconnect_flutter_v2/apis/auth_api/i_auth_engine_common.dart'; 3 | import 'package:walletconnect_flutter_v2/apis/sign_api/models/auth/auth_client_events.dart'; 4 | import 'package:walletconnect_flutter_v2/apis/sign_api/models/auth/auth_client_models.dart'; 5 | 6 | abstract class IAuthEngineApp extends IAuthEngineCommon { 7 | abstract final Event onAuthResponse; 8 | 9 | Future requestAuth({ 10 | required AuthRequestParams params, 11 | String? pairingTopic, 12 | List>? methods, 13 | }); 14 | } 15 | -------------------------------------------------------------------------------- /lib/apis/auth_api/i_auth_engine_common.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2/apis/sign_api/models/auth/common_auth_models.dart'; 2 | import 'package:walletconnect_flutter_v2/apis/core/store/i_generic_store.dart'; 3 | import 'package:walletconnect_flutter_v2/apis/core/i_core.dart'; 4 | import 'package:walletconnect_flutter_v2/apis/core/pairing/utils/pairing_models.dart'; 5 | 6 | abstract class IAuthEngineCommon { 7 | abstract final ICore core; 8 | abstract final PairingMetadata metadata; 9 | 10 | abstract final IGenericStore authKeys; 11 | abstract final IGenericStore pairingTopics; 12 | abstract final IGenericStore completeRequests; 13 | 14 | // initializes the client with persisted storage and a network connection 15 | Future init(); 16 | 17 | /// format payload to message string 18 | String formatAuthMessage({ 19 | required String iss, 20 | required CacaoRequestPayload cacaoPayload, 21 | }); 22 | 23 | Map getCompletedRequestsForPairing({ 24 | required String pairingTopic, 25 | }); 26 | } 27 | -------------------------------------------------------------------------------- /lib/apis/auth_api/utils/address_utils.dart: -------------------------------------------------------------------------------- 1 | // class AddressUtils { 2 | // static String getDidAddress(String iss) { 3 | // return iss.split(':').last; 4 | // } 5 | 6 | // static String getDidChainId(String iss) { 7 | // return iss.split(':')[3]; 8 | // } 9 | 10 | // static String getNamespaceDidChainId(String iss) { 11 | // return iss.substring(iss.indexOf(RegExp(r':')) + 1); 12 | // } 13 | // } 14 | -------------------------------------------------------------------------------- /lib/apis/auth_api/utils/auth_constants.dart: -------------------------------------------------------------------------------- 1 | // import 'package:walletconnect_flutter_v2/apis/utils/constants.dart'; 2 | 3 | // class AuthConstants { 4 | // static const AUTH_REQUEST_EXPIRY_MIN = WalletConnectConstants.FIVE_MINUTES; 5 | // static const AUTH_REQUEST_EXPIRY_MAX = WalletConnectConstants.SEVEN_DAYS; 6 | 7 | // static const AUTH_DEFAULT_URL = 'https://rpc.walletconnect.com/v1'; 8 | 9 | // static const AUTH_CLIENT_PUBLIC_KEY_NAME = 'PUB_KEY'; 10 | // } 11 | -------------------------------------------------------------------------------- /lib/apis/auth_api/utils/auth_utils.dart: -------------------------------------------------------------------------------- 1 | // class AuthUtils { 2 | // static String generateNonce() { 3 | // return DateTime.now().millisecondsSinceEpoch.toString(); 4 | // } 5 | // } 6 | -------------------------------------------------------------------------------- /lib/apis/auth_api/utils/secp256k1/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2021 Wakumo Vietnam 2 | 3 | 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: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | 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. -------------------------------------------------------------------------------- /lib/apis/core/connectivity/connectivity_models.dart: -------------------------------------------------------------------------------- 1 | import 'package:event/event.dart'; 2 | 3 | class ConnectivityEvent extends EventArgs { 4 | final bool connected; 5 | 6 | ConnectivityEvent( 7 | this.connected, 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /lib/apis/core/connectivity/i_connectivity.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | 3 | abstract class IConnectivity { 4 | ValueNotifier get isOnline; 5 | Future init(); 6 | } 7 | -------------------------------------------------------------------------------- /lib/apis/core/echo/i_echo.dart: -------------------------------------------------------------------------------- 1 | abstract class IEcho { 2 | Future register(String firebaseAccessToken); 3 | Future unregister(); 4 | } 5 | -------------------------------------------------------------------------------- /lib/apis/core/echo/i_echo_client.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2/apis/core/echo/models/echo_response.dart'; 2 | 3 | abstract class IEchoClient { 4 | Future register({ 5 | required String projectId, 6 | required String clientId, 7 | required String firebaseAccessToken, 8 | }); 9 | 10 | Future unregister({ 11 | required String projectId, 12 | required String clientId, 13 | }); 14 | } 15 | -------------------------------------------------------------------------------- /lib/apis/core/echo/models/echo_body.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | 3 | part 'echo_body.g.dart'; 4 | 5 | @JsonSerializable(fieldRename: FieldRename.snake) 6 | class EchoBody { 7 | final String clientId; 8 | final String token; 9 | final String type; 10 | 11 | EchoBody({ 12 | required this.clientId, 13 | required this.token, 14 | this.type = 'fcm', 15 | }); 16 | 17 | factory EchoBody.fromJson(Map json) => 18 | _$EchoBodyFromJson(json); 19 | 20 | Map toJson() => _$EchoBodyToJson(this); 21 | } 22 | -------------------------------------------------------------------------------- /lib/apis/core/echo/models/echo_body.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'echo_body.dart'; 4 | 5 | // ************************************************************************** 6 | // JsonSerializableGenerator 7 | // ************************************************************************** 8 | 9 | EchoBody _$EchoBodyFromJson(Map json) => EchoBody( 10 | clientId: json['client_id'] as String, 11 | token: json['token'] as String, 12 | type: json['type'] as String? ?? 'fcm', 13 | ); 14 | 15 | Map _$EchoBodyToJson(EchoBody instance) => { 16 | 'client_id': instance.clientId, 17 | 'token': instance.token, 18 | 'type': instance.type, 19 | }; 20 | -------------------------------------------------------------------------------- /lib/apis/core/heartbit/heartbeat.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:event/event.dart'; 4 | import 'package:walletconnect_flutter_v2/apis/core/heartbit/i_heartbeat.dart'; 5 | 6 | class HeartBeat implements IHeartBeat { 7 | Timer? _heartbeatTimer; 8 | 9 | @override 10 | int interval; 11 | 12 | HeartBeat({this.interval = 5}); 13 | 14 | @override 15 | void init() { 16 | if (_heartbeatTimer != null) return; 17 | _heartbeatTimer = Timer.periodic( 18 | Duration(seconds: interval), 19 | (timer) => onPulse.broadcast(), 20 | ); 21 | } 22 | 23 | @override 24 | void stop() { 25 | _heartbeatTimer?.cancel(); 26 | _heartbeatTimer = null; 27 | } 28 | 29 | @override 30 | final Event onPulse = Event(); 31 | } 32 | -------------------------------------------------------------------------------- /lib/apis/core/heartbit/i_heartbeat.dart: -------------------------------------------------------------------------------- 1 | import 'package:event/event.dart'; 2 | 3 | abstract class IHeartBeat { 4 | abstract int interval; 5 | abstract final Event onPulse; 6 | 7 | void init(); 8 | void stop(); 9 | } 10 | -------------------------------------------------------------------------------- /lib/apis/core/pairing/i_expirer.dart: -------------------------------------------------------------------------------- 1 | import 'package:event/event.dart'; 2 | import 'package:walletconnect_flutter_v2/apis/core/pairing/utils/pairing_models.dart'; 3 | import 'package:walletconnect_flutter_v2/apis/core/store/i_generic_store.dart'; 4 | 5 | abstract class IExpirer extends IGenericStore { 6 | abstract final Event onExpire; 7 | 8 | Future checkExpiry(String key, int expiry); 9 | Future checkAndExpire(String key); 10 | Future expire(String key); 11 | } 12 | -------------------------------------------------------------------------------- /lib/apis/core/pairing/i_json_rpc_history.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2/apis/core/pairing/utils/pairing_models.dart'; 2 | import 'package:walletconnect_flutter_v2/apis/core/store/i_generic_store.dart'; 3 | 4 | abstract class IJsonRpcHistory extends IGenericStore { 5 | Future resolve(Map response); 6 | } 7 | -------------------------------------------------------------------------------- /lib/apis/core/pairing/i_pairing_store.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2/apis/core/pairing/utils/pairing_models.dart'; 2 | import 'package:walletconnect_flutter_v2/apis/core/store/i_generic_store.dart'; 3 | 4 | abstract class IPairingStore extends IGenericStore { 5 | Future update( 6 | String topic, { 7 | int? expiry, 8 | bool? active, 9 | PairingMetadata? metadata, 10 | }); 11 | } 12 | -------------------------------------------------------------------------------- /lib/apis/core/relay_auth/i_relay_auth.dart: -------------------------------------------------------------------------------- 1 | import 'dart:typed_data'; 2 | 3 | import 'package:walletconnect_flutter_v2/apis/core/relay_auth/relay_auth_models.dart'; 4 | 5 | abstract class IRelayAuth { 6 | // API 7 | Future generateKeyPair([Uint8List? seed]); 8 | Future signJWT({ 9 | required String sub, 10 | required String aud, 11 | required int ttl, 12 | required RelayAuthKeyPair keyPair, 13 | int? iat, 14 | }); 15 | Future verifyJWT(String jwt); 16 | 17 | // Auth 18 | Map decodeJson(String s); 19 | String encodeJson(Map value); 20 | 21 | String encodeIss(Uint8List publicKey); 22 | Uint8List decodeIss(String issuer); 23 | 24 | String encodeSig(Uint8List bytes); 25 | Uint8List decodeSig(String encoded); 26 | 27 | Uint8List encodeData(JWTData params); 28 | JWTData decodeData(Uint8List data); 29 | 30 | String encodeJWT(JWTSigned params); 31 | JWTDecoded decodeJWT(String encoded); 32 | } 33 | -------------------------------------------------------------------------------- /lib/apis/core/relay_client/i_message_tracker.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2/apis/core/store/i_generic_store.dart'; 2 | 3 | abstract class IMessageTracker extends IGenericStore> { 4 | Future recordMessageEvent(String topic, String message); 5 | bool messageIsRecorded(String topic, String message); 6 | } 7 | -------------------------------------------------------------------------------- /lib/apis/core/relay_client/relay_client_models.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'relay_client_models.dart'; 4 | 5 | // ************************************************************************** 6 | // JsonSerializableGenerator 7 | // ************************************************************************** 8 | 9 | Relay _$RelayFromJson(Map json) => Relay( 10 | json['protocol'] as String, 11 | data: json['data'] as String?, 12 | ); 13 | 14 | Map _$RelayToJson(Relay instance) => { 15 | 'protocol': instance.protocol, 16 | 'data': instance.data, 17 | }; 18 | -------------------------------------------------------------------------------- /lib/apis/core/relay_client/websocket/http_client.dart: -------------------------------------------------------------------------------- 1 | import 'package:http/http.dart' as http; 2 | import 'package:walletconnect_flutter_v2/apis/core/relay_client/websocket/i_http_client.dart'; 3 | 4 | class HttpWrapper extends IHttpClient { 5 | const HttpWrapper(); 6 | 7 | @override 8 | Future get( 9 | Uri url, { 10 | Map? headers, 11 | }) async { 12 | return await http.get(url, headers: headers); 13 | } 14 | 15 | @override 16 | Future delete(Uri url, {Map? headers}) async { 17 | return await http.delete(url, headers: headers); 18 | } 19 | 20 | @override 21 | Future post( 22 | Uri url, { 23 | Map? headers, 24 | Object? body, 25 | }) async { 26 | return await http.post(url, headers: headers, body: body); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/apis/core/relay_client/websocket/i_http_client.dart: -------------------------------------------------------------------------------- 1 | import 'package:http/http.dart' as http; 2 | 3 | abstract class IHttpClient { 4 | const IHttpClient(); 5 | 6 | Future get( 7 | Uri url, { 8 | Map? headers, 9 | }); 10 | 11 | Future post( 12 | Uri url, { 13 | Map? headers, 14 | Object? body, 15 | }); 16 | 17 | Future delete( 18 | Uri url, { 19 | Map? headers, 20 | }); 21 | } 22 | -------------------------------------------------------------------------------- /lib/apis/core/relay_client/websocket/i_websocket_handler.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:stream_channel/stream_channel.dart'; 4 | 5 | abstract class IWebSocketHandler { 6 | String? get url; 7 | 8 | int? get closeCode; 9 | String? get closeReason; 10 | 11 | StreamChannel? get channel; 12 | 13 | Future get ready; 14 | 15 | Future setup({required String url}); 16 | 17 | Future connect(); 18 | 19 | Future close(); 20 | } 21 | -------------------------------------------------------------------------------- /lib/apis/core/store/i_store.dart: -------------------------------------------------------------------------------- 1 | abstract class IStore { 2 | abstract final Map map; 3 | abstract final List keys; 4 | abstract final List values; 5 | abstract final String storagePrefix; 6 | 7 | Future init(); 8 | Future set(String key, T value); 9 | T? get(String key); 10 | bool has(String key); 11 | List getAll(); 12 | Future update(String key, T value); 13 | Future delete(String key); 14 | } 15 | -------------------------------------------------------------------------------- /lib/apis/core/store/store_models.dart: -------------------------------------------------------------------------------- 1 | import 'package:event/event.dart'; 2 | 3 | class StoreCreateEvent extends EventArgs { 4 | final String key; 5 | final T value; 6 | 7 | StoreCreateEvent( 8 | this.key, 9 | this.value, 10 | ); 11 | } 12 | 13 | class StoreUpdateEvent extends EventArgs { 14 | final String key; 15 | final T value; 16 | 17 | StoreUpdateEvent( 18 | this.key, 19 | this.value, 20 | ); 21 | } 22 | 23 | class StoreDeleteEvent extends EventArgs { 24 | final String key; 25 | final T value; 26 | 27 | StoreDeleteEvent( 28 | this.key, 29 | this.value, 30 | ); 31 | } 32 | 33 | class StoreSyncEvent extends EventArgs { 34 | StoreSyncEvent(); 35 | } 36 | -------------------------------------------------------------------------------- /lib/apis/core/verify/i_verify.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2/apis/core/verify/models/verify_context.dart'; 2 | 3 | abstract class IVerify { 4 | Future init({String? verifyUrl}); 5 | 6 | Future resolve({required String attestationId}); 7 | 8 | Validation getValidation( 9 | AttestationResponse? attestation, 10 | Uri? metadataUri, 11 | ); 12 | } 13 | -------------------------------------------------------------------------------- /lib/apis/models/json_rpc_error.dart: -------------------------------------------------------------------------------- 1 | import 'package:freezed_annotation/freezed_annotation.dart'; 2 | 3 | part 'json_rpc_error.g.dart'; 4 | part 'json_rpc_error.freezed.dart'; 5 | 6 | @freezed 7 | class JsonRpcError with _$JsonRpcError { 8 | @JsonSerializable(includeIfNull: false) 9 | const factory JsonRpcError({ 10 | int? code, 11 | String? message, 12 | }) = _JsonRpcError; 13 | 14 | factory JsonRpcError.serverError(String message) => 15 | JsonRpcError(code: -32000, message: message); 16 | factory JsonRpcError.invalidParams(String message) => 17 | JsonRpcError(code: -32602, message: message); 18 | factory JsonRpcError.invalidRequest(String message) => 19 | JsonRpcError(code: -32600, message: message); 20 | factory JsonRpcError.parseError(String message) => 21 | JsonRpcError(code: -32700, message: message); 22 | factory JsonRpcError.methodNotFound(String message) => 23 | JsonRpcError(code: -32601, message: message); 24 | 25 | factory JsonRpcError.fromJson(Map json) => 26 | _$JsonRpcErrorFromJson(json); 27 | } 28 | -------------------------------------------------------------------------------- /lib/apis/models/json_rpc_error.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'json_rpc_error.dart'; 4 | 5 | // ************************************************************************** 6 | // JsonSerializableGenerator 7 | // ************************************************************************** 8 | 9 | _$JsonRpcErrorImpl _$$JsonRpcErrorImplFromJson(Map json) => 10 | _$JsonRpcErrorImpl( 11 | code: (json['code'] as num?)?.toInt(), 12 | message: json['message'] as String?, 13 | ); 14 | 15 | Map _$$JsonRpcErrorImplToJson(_$JsonRpcErrorImpl instance) { 16 | final val = {}; 17 | 18 | void writeNotNull(String key, dynamic value) { 19 | if (value != null) { 20 | val[key] = value; 21 | } 22 | } 23 | 24 | writeNotNull('code', instance.code); 25 | writeNotNull('message', instance.message); 26 | return val; 27 | } 28 | -------------------------------------------------------------------------------- /lib/apis/models/json_rpc_request.dart: -------------------------------------------------------------------------------- 1 | import 'package:freezed_annotation/freezed_annotation.dart'; 2 | 3 | part 'json_rpc_request.g.dart'; 4 | part 'json_rpc_request.freezed.dart'; 5 | 6 | @freezed 7 | class JsonRpcRequest with _$JsonRpcRequest { 8 | @JsonSerializable() 9 | const factory JsonRpcRequest({ 10 | required int id, 11 | @Default('2.0') String jsonrpc, 12 | required String method, 13 | dynamic params, 14 | }) = _JsonRpcRequest; 15 | 16 | factory JsonRpcRequest.fromJson(Map json) => 17 | _$JsonRpcRequestFromJson(json); 18 | } 19 | -------------------------------------------------------------------------------- /lib/apis/models/json_rpc_request.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'json_rpc_request.dart'; 4 | 5 | // ************************************************************************** 6 | // JsonSerializableGenerator 7 | // ************************************************************************** 8 | 9 | _$JsonRpcRequestImpl _$$JsonRpcRequestImplFromJson(Map json) => 10 | _$JsonRpcRequestImpl( 11 | id: (json['id'] as num).toInt(), 12 | jsonrpc: json['jsonrpc'] as String? ?? '2.0', 13 | method: json['method'] as String, 14 | params: json['params'], 15 | ); 16 | 17 | Map _$$JsonRpcRequestImplToJson( 18 | _$JsonRpcRequestImpl instance) => 19 | { 20 | 'id': instance.id, 21 | 'jsonrpc': instance.jsonrpc, 22 | 'method': instance.method, 23 | 'params': instance.params, 24 | }; 25 | -------------------------------------------------------------------------------- /lib/apis/models/json_rpc_response.dart: -------------------------------------------------------------------------------- 1 | import 'package:freezed_annotation/freezed_annotation.dart'; 2 | import 'package:walletconnect_flutter_v2/apis/models/json_rpc_error.dart'; 3 | 4 | part 'json_rpc_response.g.dart'; 5 | part 'json_rpc_response.freezed.dart'; 6 | 7 | @Freezed(genericArgumentFactories: true) 8 | class JsonRpcResponse with _$JsonRpcResponse { 9 | // @JsonSerializable(genericArgumentFactories: true) 10 | const factory JsonRpcResponse({ 11 | required int id, 12 | @Default('2.0') String jsonrpc, 13 | JsonRpcError? error, 14 | T? result, 15 | }) = _JsonRpcResponse; 16 | 17 | factory JsonRpcResponse.fromJson(Map json) => 18 | _$JsonRpcResponseFromJson(json, (object) => object as T); 19 | } 20 | -------------------------------------------------------------------------------- /lib/apis/models/uri_parse_result.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2/apis/core/relay_client/relay_client_models.dart'; 2 | 3 | enum URIVersion { 4 | v1, 5 | v2, 6 | } 7 | 8 | class URIParseResult { 9 | final String protocol; 10 | final String topic; 11 | final URIVersion? version; 12 | final URIV1ParsedData? v1Data; 13 | final URIV2ParsedData? v2Data; 14 | 15 | URIParseResult({ 16 | required this.protocol, 17 | required this.version, 18 | required this.topic, 19 | this.v1Data, 20 | this.v2Data, 21 | }); 22 | } 23 | 24 | class URIV1ParsedData { 25 | final String key; 26 | final String bridge; 27 | 28 | URIV1ParsedData({ 29 | required this.key, 30 | required this.bridge, 31 | }); 32 | } 33 | 34 | class URIV2ParsedData { 35 | final String symKey; 36 | final Relay relay; 37 | final List methods; 38 | 39 | URIV2ParsedData({ 40 | required this.symKey, 41 | required this.relay, 42 | required this.methods, 43 | }); 44 | } 45 | -------------------------------------------------------------------------------- /lib/apis/sign_api/i_sessions.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2/apis/core/relay_client/relay_client_models.dart'; 2 | import 'package:walletconnect_flutter_v2/apis/core/store/i_generic_store.dart'; 3 | import 'package:walletconnect_flutter_v2/apis/sign_api/models/session_models.dart'; 4 | 5 | abstract class ISessions extends IGenericStore { 6 | Future update( 7 | String topic, { 8 | int? expiry, 9 | Map? namespaces, 10 | TransportType? transportType, 11 | }); 12 | } 13 | -------------------------------------------------------------------------------- /lib/apis/sign_api/i_sign_engine.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2/apis/sign_api/i_sign_engine_app.dart'; 2 | import 'package:walletconnect_flutter_v2/apis/sign_api/i_sign_engine_wallet.dart'; 3 | 4 | abstract class ISignEngine implements ISignEngineWallet, ISignEngineApp { 5 | Future checkAndExpire(); 6 | } 7 | -------------------------------------------------------------------------------- /lib/apis/sign_api/models/sign_client_models.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:walletconnect_flutter_v2/apis/sign_api/models/session_models.dart'; 4 | 5 | class ConnectResponse { 6 | final String pairingTopic; 7 | final Completer session; 8 | final Uri? uri; 9 | 10 | ConnectResponse({ 11 | required this.pairingTopic, 12 | required this.session, 13 | this.uri, 14 | }); 15 | 16 | @override 17 | String toString() { 18 | return 'ConnectResponse(pairingTopic: $pairingTopic, session: $session, uri: $uri)'; 19 | } 20 | } 21 | 22 | class ApproveResponse { 23 | final String topic; 24 | final SessionData? session; 25 | 26 | ApproveResponse({ 27 | required this.topic, 28 | required this.session, 29 | }); 30 | 31 | @override 32 | String toString() { 33 | return 'ApproveResponse(topic: $topic, session: $session)'; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /lib/apis/sign_api/utils/auth/address_utils.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2/walletconnect_flutter_v2.dart'; 2 | 3 | class AddressUtils { 4 | static String getDidAddress(String iss) { 5 | return iss.split(':').last; 6 | } 7 | 8 | static String getDidChainId(String iss) { 9 | return iss.split(':')[3]; 10 | } 11 | 12 | static String getNamespaceDidChainId(String iss) { 13 | return iss.substring(iss.indexOf(RegExp(r':')) + 1); 14 | } 15 | } 16 | 17 | extension AddressUtilsExtension on String { 18 | String toEIP55() { 19 | return EthereumAddress.fromHex(this).hexEip55; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/apis/sign_api/utils/auth/auth_constants.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2/apis/utils/constants.dart'; 2 | 3 | class StringConstants { 4 | static const AUTH_REQUEST_EXPIRY_MIN = WalletConnectConstants.FIVE_MINUTES; 5 | static const AUTH_REQUEST_EXPIRY_MAX = WalletConnectConstants.SEVEN_DAYS; 6 | 7 | static const AUTH_DEFAULT_URL = 'https://rpc.walletconnect.org/v1'; 8 | 9 | static const AUTH_PROTOCOL = 'wc'; 10 | static const AUTH_VERSION = 1.5; 11 | static const AUTH_CONTEXT = 'auth'; 12 | static const AUTH_STORAGE_PREFIX = 13 | '$AUTH_PROTOCOL@$AUTH_VERSION:$AUTH_CONTEXT:'; 14 | 15 | static const AUTH_CLIENT_PUBLIC_KEY_NAME = 'PUB_KEY'; 16 | 17 | static const OCAUTH_CLIENT_PUBLIC_KEY_NAME = 18 | '$AUTH_STORAGE_PREFIX:$AUTH_CLIENT_PUBLIC_KEY_NAME'; 19 | } 20 | -------------------------------------------------------------------------------- /lib/apis/sign_api/utils/auth/auth_utils.dart: -------------------------------------------------------------------------------- 1 | class AuthUtils { 2 | static String generateNonce() { 3 | return DateTime.now().millisecondsSinceEpoch.toString(); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /lib/apis/sign_api/utils/auth/secp256k1/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2021 Wakumo Vietnam 2 | 3 | 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: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | 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. -------------------------------------------------------------------------------- /lib/apis/utils/log_level.dart: -------------------------------------------------------------------------------- 1 | import 'package:logger/logger.dart'; 2 | 3 | enum LogLevel { 4 | verbose, 5 | debug, 6 | info, 7 | warning, 8 | error, 9 | wtf, 10 | nothing; 11 | 12 | Level toLevel() { 13 | switch (this) { 14 | case LogLevel.verbose: 15 | return Level.trace; 16 | case LogLevel.debug: 17 | return Level.debug; 18 | case LogLevel.info: 19 | return Level.info; 20 | case LogLevel.warning: 21 | return Level.warning; 22 | case LogLevel.error: 23 | return Level.error; 24 | case LogLevel.wtf: 25 | return Level.fatal; 26 | default: 27 | return Level.off; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/apis/web3app/i_web3app.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2/apis/sign_api/i_sign_engine_app.dart'; 2 | import 'package:walletconnect_flutter_v2/walletconnect_flutter_v2.dart'; 3 | 4 | import 'package:walletconnect_flutter_v2/apis/auth_api/i_auth_engine_app.dart'; 5 | 6 | abstract class IWeb3App implements ISignEngineApp, IAuthEngineApp { 7 | final String protocol = 'wc'; 8 | final int version = 2; 9 | 10 | abstract final ISignEngine signEngine; 11 | abstract final IAuthEngine authEngine; 12 | } 13 | -------------------------------------------------------------------------------- /lib/apis/web3wallet/i_web3wallet.dart: -------------------------------------------------------------------------------- 1 | import 'package:walletconnect_flutter_v2/apis/sign_api/i_sign_engine_wallet.dart'; 2 | import 'package:walletconnect_flutter_v2/walletconnect_flutter_v2.dart'; 3 | 4 | import 'package:walletconnect_flutter_v2/apis/auth_api/i_auth_engine_wallet.dart'; 5 | 6 | abstract class IWeb3Wallet implements ISignEngineWallet, IAuthEngineWallet { 7 | final String protocol = 'wc'; 8 | final int version = 2; 9 | 10 | abstract final ISignEngine signEngine; 11 | abstract final IAuthEngine authEngine; 12 | } 13 | -------------------------------------------------------------------------------- /lib/src/version.dart: -------------------------------------------------------------------------------- 1 | // Generated code. Do not modify. 2 | const packageVersion = '2.4.1'; 3 | -------------------------------------------------------------------------------- /test/auth_api/address_utils_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter_test/flutter_test.dart'; 2 | import 'package:walletconnect_flutter_v2/walletconnect_flutter_v2.dart'; 3 | 4 | import '../shared/shared_test_values.dart'; 5 | import 'utils/signature_constants.dart'; 6 | 7 | void main() { 8 | TestWidgetsFlutterBinding.ensureInitialized(); 9 | 10 | group('AddressUtils', () { 11 | test('getDidAddress', () async { 12 | expect( 13 | AddressUtils.getDidAddress(TEST_ISSUER_EIP191), 14 | TEST_ADDRESS_EIP191, 15 | ); 16 | }); 17 | 18 | test('getDidChainId', () async { 19 | expect( 20 | AddressUtils.getDidChainId(TEST_ISSUER_EIP191), 21 | TEST_ETHEREUM_CHAIN.split(':')[1], 22 | ); 23 | }); 24 | }); 25 | } 26 | --------------------------------------------------------------------------------