Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate and Mint messages #16

Merged
merged 4 commits into from
Apr 15, 2024
Merged

Validate and Mint messages #16

merged 4 commits into from
Apr 15, 2024

Conversation

havan
Copy link
Member

@havan havan commented Apr 13, 2024

This PR adds validate and mint messages.

Also introduces multiple changes to be used by those messages:

  • credit_card.proto: Message definition to represent a credit card.
  • payment.proto: Message definition to represent a payment. Options of a oneof field are on_chain and off_chain_invoice with Empty message type. And a third option of off_chain_vcc with a CreditCard message type.
  • pubkey.proto: Message definition to represent a public key. Type of `string'.
  • traveller.proto: ExtensiveTraveller message type is updated with TravellerType field. I think this field was forgotten in previous updates. BasicTraveller has it but ExtensiveTraveller was missing.

@havan havan requested a review from SamJaarsma as a code owner April 13, 2024 16:11
@havan havan requested review from Noctunus and knikos April 13, 2024 16:14
proto/cmp/types/v1alpha/traveller.proto Outdated Show resolved Hide resolved
proto/cmp/services/book/v1alpha/mint.proto Show resolved Hide resolved
proto/cmp/types/v1alpha/credit_card.proto Show resolved Hide resolved
proto/cmp/services/book/v1alpha/validate.proto Outdated Show resolved Hide resolved
proto/cmp/services/book/v1alpha/mint.proto Outdated Show resolved Hide resolved
proto/cmp/services/book/v1alpha/mint.proto Outdated Show resolved Hide resolved
proto/cmp/services/book/v1alpha/mint.proto Outdated Show resolved Hide resolved
proto/cmp/services/book/v1alpha/mint.proto Outdated Show resolved Hide resolved
proto/cmp/services/book/v1alpha/validate.proto Outdated Show resolved Hide resolved
* remove currency field
* remove status fields
* mv digital asset into a separate message
* mv txn id to mint txn id
* make result_id a single field instead of a list
* rm key field
* remove TravellerType from ExtensiveTraveller message
* make tags incrementing (fix one missing tag number in ExtensiveTraveller)
Copy link
Contributor

@SamJaarsma SamJaarsma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking great!

Copy link
Member

@Noctunus Noctunus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@havan havan merged commit 549aa25 into dev Apr 15, 2024
3 checks passed
@havan havan deleted the validate-mint branch April 15, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants