-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08ad89d
commit 3d7d351
Showing
107 changed files
with
1,413 additions
and
301 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "sargon" | ||
version = "0.7.10" | ||
version = "0.7.12" | ||
edition = "2021" | ||
build = "build.rs" | ||
|
||
|
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
9 changes: 9 additions & 0 deletions
9
apple/Sources/Sargon/Extensions/Methods/Prelude/DisplayName+Wrap+Functions.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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import Foundation | ||
import SargonUniFFI | ||
|
||
extension DisplayName { | ||
public init(validating name: String) throws { | ||
self = try newDisplayName(name: name) | ||
} | ||
|
||
public init(jsonStringLiteral: String) throws { | ||
self = try newDisplayNameFromJsonString(jsonString: jsonStringLiteral) | ||
} | ||
|
||
public func jsonStringLiteral() -> String { | ||
displayNameToJsonString(displayName: self) | ||
} | ||
} |
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
12 changes: 12 additions & 0 deletions
12
...Sargon/Extensions/Methods/RadixConnect/P2PLinks/LinkConnectionQRData+Wrap+Functions.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,12 @@ | ||
import Foundation | ||
import SargonUniFFI | ||
|
||
extension LinkConnectionQrData { | ||
public init(jsonData: some DataProtocol) throws { | ||
self = try newLinkConnectionQRDataFromJsonBytes(jsonBytes: Data(jsonData)) | ||
} | ||
|
||
public func jsonData() -> Data { | ||
linkConnectionQRDataToJsonBytes(linkConnectionQRData: self) | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
apple/Sources/Sargon/Extensions/Methods/RadixConnect/P2PLinks/P2PLink+Wrap+Functions.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,16 @@ | ||
import Foundation | ||
import SargonUniFFI | ||
|
||
extension P2pLink { | ||
public init(jsonData: some DataProtocol) throws { | ||
self = try newP2PLinkFromJsonBytes(jsonBytes: Data(jsonData)) | ||
} | ||
|
||
public func jsonData() -> Data { | ||
p2PLinkToJsonBytes(p2PLink: self) | ||
} | ||
|
||
public var id: ID { | ||
p2pLinkId(link: self) | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...Sargon/Extensions/Methods/RadixConnect/P2PLinks/RadixConnectPassword+Wrap+Functions.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,12 @@ | ||
import Foundation | ||
import SargonUniFFI | ||
|
||
extension RadixConnectPassword { | ||
public init(jsonStringLiteral: String) throws { | ||
self = try newRadixConnectPasswordFromJsonString(jsonString: jsonStringLiteral) | ||
} | ||
|
||
public func jsonStringLiteral() -> String { | ||
radixConnectPasswordToJsonString(radixConnectPassword: self) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
.../Sargon/Extensions/Methods/RadixConnect/P2PLinks/RadixConnectPurpose+Wrap+Functions.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,17 @@ | ||
import Foundation | ||
import SargonUniFFI | ||
|
||
extension RadixConnectPurpose { | ||
|
||
public init(string: String) { | ||
self = newRadixConnectPurposeFromString(string: string) | ||
} | ||
|
||
public init(jsonStringLiteral: String) throws { | ||
self = try newRadixConnectPurposeFromJsonString(jsonString: jsonStringLiteral) | ||
} | ||
|
||
public func jsonStringLiteral() -> String { | ||
radixConnectPurposeToJsonString(radixConnectPurpose: self) | ||
} | ||
} |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...gon/Extensions/SampleValues/RadixConnect/P2PLinks/LinkConnectionQRData+SampleValues.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,9 @@ | ||
import Foundation | ||
import SargonUniFFI | ||
|
||
#if DEBUG | ||
extension LinkConnectionQrData { | ||
public static let sample: Self = newLinkConnectionQrDataSample() | ||
public static let sampleOther: Self = newLinkConnectionQrDataSampleOther() | ||
} | ||
#endif // DEBUG |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
...gon/Extensions/SampleValues/RadixConnect/P2PLinks/RadixConnectPassword+SampleValues.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,9 @@ | ||
import Foundation | ||
import SargonUniFFI | ||
|
||
#if DEBUG | ||
extension RadixConnectPassword { | ||
public static let sample: Self = newRadixConnectPasswordSample() | ||
public static let sampleOther: Self = newRadixConnectPasswordSampleOther() | ||
} | ||
#endif // DEBUG |
9 changes: 9 additions & 0 deletions
9
...rgon/Extensions/SampleValues/RadixConnect/P2PLinks/RadixConnectPurpose+SampleValues.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,9 @@ | ||
import Foundation | ||
import SargonUniFFI | ||
|
||
#if DEBUG | ||
extension RadixConnectPurpose { | ||
public static let sample: Self = newRadixConnectPurposeSample() | ||
public static let sampleOther: Self = newRadixConnectPurposeSampleOther() | ||
} | ||
#endif // DEBUG |
2 changes: 2 additions & 0 deletions
2
apple/Sources/Sargon/Extensions/Swiftified/Crypto/Keys/Ed25519PublicKey+Swiftified.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
2 changes: 2 additions & 0 deletions
2
.../Sources/Sargon/Extensions/Swiftified/Crypto/Signatures/Ed25519Signature+Swiftified.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
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
7 changes: 7 additions & 0 deletions
7
.../Sargon/Extensions/Swiftified/RadixConnect/P2PLinks/LinkConnectionQRData+Swiftified.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,7 @@ | ||
import Foundation | ||
import SargonUniFFI | ||
|
||
public typealias LinkConnectionQRData = LinkConnectionQrData | ||
|
||
extension LinkConnectionQrData: SargonModel {} | ||
extension LinkConnectionQrData: SargonObjectCodable {} |
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
5 changes: 5 additions & 0 deletions
5
.../Sargon/Extensions/Swiftified/RadixConnect/P2PLinks/RadixConnectPassword+Swiftified.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,5 @@ | ||
import Foundation | ||
import SargonUniFFI | ||
|
||
extension RadixConnectPassword: SargonModel {} | ||
extension RadixConnectPassword: SargonStringCodable {} |
13 changes: 13 additions & 0 deletions
13
...s/Sargon/Extensions/Swiftified/RadixConnect/P2PLinks/RadixConnectPurpose+Swiftified.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,13 @@ | ||
import Foundation | ||
import SargonUniFFI | ||
|
||
extension RadixConnectPurpose: SargonModel {} | ||
extension RadixConnectPurpose: SargonStringCodable {} | ||
|
||
extension RadixConnectPurpose { | ||
|
||
public init(rawValue: String) { | ||
self.init(string: rawValue) | ||
} | ||
} | ||
|
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
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.