From 5395e8116198fb7750472ca868614324dbd9984a Mon Sep 17 00:00:00 2001 From: Jimmy Date: Sun, 21 Jun 2026 20:34:50 +0800 Subject: [PATCH 1/2] feat(assets): add custom NEP-17 token by contract hash Tokens were a static embedded list, so any NEP-17 not in tokens.json was invisible and unaddable. Add an Add-token popup (wallet toolbar) that resolves a pasted contract hash via the existing GetTokenInfo and persists it; TokenManager merges user tokens with the embedded list. Builds for net10.0-android (0 errors). --- OneGateApp/Controls/Popups/AddTokenPopup.xaml | 26 +++++++++ .../Controls/Popups/AddTokenPopup.xaml.cs | 48 +++++++++++++++++ OneGateApp/Pages/WalletPage.xaml | 1 + OneGateApp/Pages/WalletPage.xaml.cs | 14 ++++- OneGateApp/Properties/Strings.Designer.cs | 54 +++++++++++++++++++ OneGateApp/Properties/Strings.resx | 18 +++++++ OneGateApp/Properties/Strings.zh-Hans.resx | 18 +++++++ OneGateApp/Properties/Strings.zh-Hant.resx | 18 +++++++ OneGateApp/Services/TokenManager.cs | 20 +++++++ 9 files changed, 216 insertions(+), 1 deletion(-) create mode 100644 OneGateApp/Controls/Popups/AddTokenPopup.xaml create mode 100644 OneGateApp/Controls/Popups/AddTokenPopup.xaml.cs diff --git a/OneGateApp/Controls/Popups/AddTokenPopup.xaml b/OneGateApp/Controls/Popups/AddTokenPopup.xaml new file mode 100644 index 0000000..083ba76 --- /dev/null +++ b/OneGateApp/Controls/Popups/AddTokenPopup.xaml @@ -0,0 +1,26 @@ + + + + +