Skip to content

Commit

Permalink
[ANCHOR-809] Add funding_method to SEP-6/31 infoSchema (#164)
Browse files Browse the repository at this point in the history
* update sep31 info response to include delivery methods

* add funding_method to info schema
  • Loading branch information
JiahuiWho authored Nov 1, 2024
1 parent 9d8fbe7 commit b9b98dc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion @stellar/anchor-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stellar/anchor-tests",
"version": "0.6.16",
"version": "0.6.17",
"description": "stellar-anchor-tests is a library and command line interface for testing Stellar anchors.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
3 changes: 3 additions & 0 deletions @stellar/anchor-tests/src/schemas/sep31.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ export const infoSchema = {
max_amount: {
type: "number",
},
funding_method: {
type: "array",
},
sep12: {
type: "object",
properties: {
Expand Down
2 changes: 2 additions & 0 deletions @stellar/anchor-tests/src/schemas/sep6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const depositInfoSchema = {
min_amount: { type: "number" },
max_amount: { type: "number" },
authentication_required: { type: "boolean" },
funding_method: { type: "array" },
fields: fieldsSchema,
},
required: ["enabled"],
Expand All @@ -50,6 +51,7 @@ const withdrawInfoSchema = {
min_amount: { type: "number" },
max_amount: { type: "number" },
authentication_required: { type: "boolean" },
funding_method: { type: "array" },
types: {
additionalProperties: {
type: "object",
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"winston": "^3.3.3"
},
"peerDependencies": {
"@stellar/anchor-tests": "0.6.16"
"@stellar/anchor-tests": "0.6.17"
}
}

0 comments on commit b9b98dc

Please sign in to comment.