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

Make RFQ.PrivateData generic #50

@jiyoonie9

Description

@jiyoonie9

something like this, so we can pass in the types in scrubbedRfq, privateData, err := rfq.Scrub(PayinType, PayoutType) and get back strongly typed privatedata in the returned privateData struct

type PrivateData[I, O] struct {
	Salt   string                `json:"salt,omitempty"`
	Claims []string              `json:"claims,omitempty"`
	Payin  PrivatePaymentDetails `json:"payin,omitempty"`
	Payout PrivatePaymentDetails `json:"payout,omitempty"`
}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions