Skip to content

Commit

Permalink
incude buy/sell delivery method in sep38 quote schema (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiahuiWho authored Sep 27, 2024
1 parent 7f72985 commit 3b76e2e
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions @stellar/anchor-tests/src/schemas/sep38.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,32 +80,32 @@ const rateFeeSchema = {
type: "object",
properties: {
total: {
type: "string"
type: "string",
},
asset: {
type: "string"
type: "string",
},
details: {
type: "array",
items: {
type: "object",
properties: {
name: {
type: "string"
type: "string",
},
description: {
type: "string"
type: "string",
},
amount: {
type: "string"
type: "string",
},
},
required: ["name", "amount"],
}
}
},
},
},
required: ["total", "asset"]
}
required: ["total", "asset"],
};

export const priceSchema = {
type: "object",
Expand Down Expand Up @@ -157,6 +157,12 @@ export const quoteSchema = {
buy_amount: {
type: "string",
},
buy_delivery_method: {
type: "string",
},
sell_delivery_method: {
type: "string",
},
},
additionalProperties: false,
required: [
Expand Down

0 comments on commit 3b76e2e

Please sign in to comment.