-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* development: removed internal handling (#565) MOB-2043 - Handle email in activate mpc wallet deep link event (#568) MOB-2043 - Handle ud.me/wallet deep link (#567) MOB-2042 - Added feature flags (#566) MOB-1955 - Added support & feedback for all mail clients (#563) MOB-1808 - Improved badges API usage (#564) MOB-1764 - Disable AI search for domain name (#562) Fixed preview and tests targets
- Loading branch information
Showing
50 changed files
with
489 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
unstoppable-ios-app/domains-manager-ios-preview/Entities/PreviewEIP712TypedData.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// PreviewEIP712TypedData.swift | ||
// unstoppable-preview | ||
// | ||
// Created by Oleg Kuplin on 24.05.2024. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct EIP712TypedData: Codable { | ||
public let domain: JSON | ||
public let message: JSON | ||
} | ||
|
||
public enum JSON: Equatable, Codable { | ||
case string(String) | ||
case number(Float) | ||
case object([String: JSON]) | ||
case array([JSON]) | ||
case bool(Bool) | ||
case null | ||
} | ||
|
||
public extension JSON { | ||
public var debugDescription: String { "" } | ||
|
||
subscript(index: Int) -> JSON? { | ||
if case .array(let arr) = self, arr.indices.contains(index) { | ||
return arr[index] | ||
} | ||
return nil | ||
} | ||
|
||
subscript(key: String) -> JSON? { | ||
if case .object(let dict) = self { | ||
return dict[key] | ||
} | ||
return nil | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.