Skip to content

Commit

Permalink
Merge pull request #120 from ArcBlock/role-type-name
Browse files Browse the repository at this point in the history
chore: add role type name func
  • Loading branch information
karthuszY authored Mar 26, 2024
2 parents 7105003 + fb2ab9f commit 7381e48
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .jazzy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion ArcBlockSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
49 changes: 49 additions & 0 deletions ArcBlockSDK/ABSDKCoreKit/DidHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.11.43
0.11.44

0 comments on commit 7381e48

Please sign in to comment.