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/ArcBlockSDK/ABSDKCoreKit/DidHelper.swift b/ArcBlockSDK/ABSDKCoreKit/DidHelper.swift index a2027f5c..657a3456 100644 --- a/ArcBlockSDK/ABSDKCoreKit/DidHelper.swift +++ b/ArcBlockSDK/ABSDKCoreKit/DidHelper.swift @@ -97,6 +97,55 @@ public enum RoleType: Int8 { return .any } } + + public func name() -> 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 { 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