Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
update requiredClaims type to PresentationDefinitionV2 (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirahsapong authored Mar 25, 2024
1 parent e0a018d commit 60de73e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/Frizlab/swift-typeid.git", from: "0.3.0"),
.package(url: "https://github.com/flight-school/anycodable.git", from: "0.6.7"),
.package(url: "https://github.com/TBD54566975/web5-swift", exact: "0.0.4"),
.package(url: "https://github.com/TBD54566975/web5-swift", exact: "0.1.2"),
.package(url: "https://github.com/allegro/swift-junit.git", from: "2.1.0"),
.package(url: "https://github.com/pointfreeco/swift-custom-dump.git", from: "1.1.2"),
],
Expand Down
4 changes: 2 additions & 2 deletions Sources/tbDEX/Protocol/Models/Resources/Offering.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import AnyCodable
import Foundation
import TypeID
import Web5

public typealias Offering = Resource<OfferingData>

Expand Down Expand Up @@ -29,9 +30,8 @@ public struct OfferingData: ResourceData {
/// from the PFI in order to qualify for this offering.
public let payoutMethods: [PaymentMethod]

// TODO: amika - Update to PresentationDefinitionV2, requires third-party or custom implementation
/// Articulates the claim(s) required when submitting an RFQ for this offering.
public let requiredClaims: AnyCodable
public let requiredClaims: PresentationDefinitionV2?

/// Returns the MessageKind of offering
public func kind() -> ResourceKind {
Expand Down

0 comments on commit 60de73e

Please sign in to comment.