From 4a7080661af0459bfab01385e700ca08f55b034a Mon Sep 17 00:00:00 2001 From: kathuszY <675377091@qq.com> Date: Mon, 25 Mar 2024 20:04:06 +0800 Subject: [PATCH 1/3] add type to name function --- ArcBlockSDK/ABSDKCoreKit/DidHelper.swift | 49 ++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/ArcBlockSDK/ABSDKCoreKit/DidHelper.swift b/ArcBlockSDK/ABSDKCoreKit/DidHelper.swift index a2027f5c..ce2eff97 100644 --- a/ArcBlockSDK/ABSDKCoreKit/DidHelper.swift +++ b/ArcBlockSDK/ABSDKCoreKit/DidHelper.swift @@ -97,6 +97,55 @@ public enum RoleType: Int8 { return .any } } + + public func roleTypeString() -> String { + switch self { + case .account: + return "account" + case .node: + return "node" + case .device: + return "device" + case .application: + return "application" + case .smartContract: + return "smartContract" + case .bot: + return "bot" + case .asset: + return "asset" + case .stake: + return "stake" + case .validator: + return "validator" + case .group: + return "group" + case .tx: + return "tx" + case .tether: + return "tether" + case .swap: + return "swap" + case .delegate: + return "delegate" + case .vc: + return "vc" + case .blocklet: + return "blocklet" + case .store: + return "store" + case .token: + return "token" + case .factory: + return "factory" + case .rollup: + return "rollup" + case .storage: + return "storage" + case .any: + return "any" + } + } } public enum KeyType: Int8 { From 981fa7e1005e328d72c863bf9266d25be39fd7b0 Mon Sep 17 00:00:00 2001 From: kathuszY <675377091@qq.com> Date: Mon, 25 Mar 2024 20:05:28 +0800 Subject: [PATCH 2/3] change func name --- ArcBlockSDK/ABSDKCoreKit/DidHelper.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcBlockSDK/ABSDKCoreKit/DidHelper.swift b/ArcBlockSDK/ABSDKCoreKit/DidHelper.swift index ce2eff97..657a3456 100644 --- a/ArcBlockSDK/ABSDKCoreKit/DidHelper.swift +++ b/ArcBlockSDK/ABSDKCoreKit/DidHelper.swift @@ -98,7 +98,7 @@ public enum RoleType: Int8 { } } - public func roleTypeString() -> String { + public func name() -> String { switch self { case .account: return "account" From fb2ab9f9d6acfa19c433a7454eb8f8de5844b2ba Mon Sep 17 00:00:00 2001 From: kathuszY <675377091@qq.com> Date: Tue, 26 Mar 2024 15:32:08 +0800 Subject: [PATCH 3/3] bump version --- .jazzy.yaml | 2 +- ArcBlockSDK.podspec | 2 +- CHANGELOG.md | 4 ++++ version | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.jazzy.yaml b/.jazzy.yaml index cc2bb546..8bbabedf 100644 --- a/.jazzy.yaml +++ b/.jazzy.yaml @@ -10,4 +10,4 @@ github_url: https://github.com/ArcBlock/arcblock-ios-sdk github_file_prefix: https://github.com/ArcBlock/arcblock-ios-sdk/tree/master exclude: - ArcBlockSDK/ABSDKCoreKit/Network/ABSDKPagination.swift -module_version: 0.11.43 +module_version: 0.11.44 diff --git a/ArcBlockSDK.podspec b/ArcBlockSDK.podspec index 8d24f2b2..3aed5cd9 100644 --- a/ArcBlockSDK.podspec +++ b/ArcBlockSDK.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'ArcBlockSDK' - s.version = '0.11.43' + s.version = '0.11.44' s.summary = 'Used to integrate iOS apps with ArcBlock Platform.' # This description is used to generate tags and improve search results. diff --git a/CHANGELOG.md b/CHANGELOG.md index d8cb48f1..1eb919e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.11.44 (March 26, 2024) + - change func name + - add type to name function + ## 0.11.43 (December 04, 2023) - update prottobuf diff --git a/version b/version index ce157ad3..5eaaa989 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.11.43 +0.11.44