From 160f230e55d2ae5f47588fe3709c0ab4761e40f0 Mon Sep 17 00:00:00 2001 From: Jamie Li Date: Mon, 26 Aug 2024 10:21:15 -0700 Subject: [PATCH 1/5] Add SEP-38 validation rules --- openapi/anchor-platform/main-callbacks.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/openapi/anchor-platform/main-callbacks.yaml b/openapi/anchor-platform/main-callbacks.yaml index bb3f7697f..9c778a0de 100644 --- a/openapi/anchor-platform/main-callbacks.yaml +++ b/openapi/anchor-platform/main-callbacks.yaml @@ -208,6 +208,26 @@ paths: Either `sell_amount` or `buy_amount` will be included in requests as parameters, but never both. In the same way, either `sell_delivery_method` and `buy_delivery_method` may be included in requests, but never both, since either `sell_asset` or `buy_asset` is a Stellar asset. + + + Upon receiving the response, the Anchor Platform will validate the amount and price of the response. + + If the validation fails, the Platform will respond to the client application's request with a HTTP status + code of `502 Bad Gateway`. + + The `sell_mount`, `buy_amount`, `price`, and `fee` are validated as follows: + + - if `rate.fee` exists, + - `rate.fee.asset` must be defined with proper `significant_decimals` in the asset configuration. + - `rate.fee.total` must equal to the sum of `rate.fee.details.amount`. + - if the `rate.fee.asset == rate.sell_asset`, `sell_amount ~= price * buy_amount + fee` must hold true. + - if the `rate.fee.asset == rate.buy_asset`, `sell_amount ~= price * (buy_amount + fee)` must hold true. + - if `rate.fee` does not exist, `sell_amount ~= price * buy_amount` must hold true. + + The `~=` is defined as equality within rounding error. + The rounding error is defined as `10^(-significant_decimals)` + + tags: - Rates x-seps: From c6b96f26211ce90f22eea9e43d7c27916c3a7458 Mon Sep 17 00:00:00 2001 From: Jamie Li Date: Mon, 26 Aug 2024 11:27:10 -0700 Subject: [PATCH 2/5] Fix typo --- openapi/anchor-platform/main-callbacks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi/anchor-platform/main-callbacks.yaml b/openapi/anchor-platform/main-callbacks.yaml index 9c778a0de..3cc031b0e 100644 --- a/openapi/anchor-platform/main-callbacks.yaml +++ b/openapi/anchor-platform/main-callbacks.yaml @@ -215,7 +215,7 @@ paths: If the validation fails, the Platform will respond to the client application's request with a HTTP status code of `502 Bad Gateway`. - The `sell_mount`, `buy_amount`, `price`, and `fee` are validated as follows: + The `sell_amount`, `buy_amount`, `price`, and `fee` are validated as follows: - if `rate.fee` exists, - `rate.fee.asset` must be defined with proper `significant_decimals` in the asset configuration. From 8e5b4d1eaae5b45c162bb687c0cfb3057c3c25a5 Mon Sep 17 00:00:00 2001 From: Jamie Li Date: Mon, 26 Aug 2024 11:34:56 -0700 Subject: [PATCH 3/5] Generate mdx --- .../anchor-platform/bundled-callbacks.yaml | 18 +++++++++++++++ openapi/anchor-platform/main-callbacks.yaml | 2 +- .../api-reference/callbacks/get-rates.api.mdx | 22 +++++++++++++++++-- .../callbacks/post-event.api.mdx | 2 +- .../callbacks/put-customer.api.mdx | 2 +- .../list-all-disbursement-receivers.api.mdx | 2 +- .../api-reference/list-all-payments.api.mdx | 2 +- .../api-reference/retrieve-a-payment.api.mdx | 2 +- 8 files changed, 44 insertions(+), 8 deletions(-) diff --git a/openapi/anchor-platform/bundled-callbacks.yaml b/openapi/anchor-platform/bundled-callbacks.yaml index 802ef6ca8..6f9d01457 100644 --- a/openapi/anchor-platform/bundled-callbacks.yaml +++ b/openapi/anchor-platform/bundled-callbacks.yaml @@ -200,6 +200,24 @@ paths: Either `sell_amount` or `buy_amount` will be included in requests as parameters, but never both. In the same way, either `sell_delivery_method` and `buy_delivery_method` may be included in requests, but never both, since either `sell_asset` or `buy_asset` is a Stellar asset. + + + Upon receiving the response, the Anchor Platform will validate the amount and price of the response. + + If the validation fails, the Platform will respond to the client application's request with a HTTP status + code of `502 Bad Gateway`. + + The `sell_amount`, `buy_amount`, `price`, and `fee` are validated as follows: + + - if `rate.fee` exists, + - `rate.fee.asset` must have a positive value of `significant_decimals` defined in the asset configuration. + - `rate.fee.total` must equal to the sum of `rate.fee.details.amount`. + - if the `rate.fee.asset == rate.sell_asset`, `sell_amount ~= price * buy_amount + fee` must hold true. + - if the `rate.fee.asset == rate.buy_asset`, `sell_amount ~= price * (buy_amount + fee)` must hold true. + - if `rate.fee` does not exist, `sell_amount ~= price * buy_amount` must hold true. + + The `~=` is defined as equality within rounding error. + The rounding error is defined as `10^(-significant_decimals)` tags: - Rates x-seps: diff --git a/openapi/anchor-platform/main-callbacks.yaml b/openapi/anchor-platform/main-callbacks.yaml index 3cc031b0e..fc6bcf3df 100644 --- a/openapi/anchor-platform/main-callbacks.yaml +++ b/openapi/anchor-platform/main-callbacks.yaml @@ -218,7 +218,7 @@ paths: The `sell_amount`, `buy_amount`, `price`, and `fee` are validated as follows: - if `rate.fee` exists, - - `rate.fee.asset` must be defined with proper `significant_decimals` in the asset configuration. + - `rate.fee.asset` must have a positive value of `significant_decimals` defined in the asset configuration. - `rate.fee.total` must equal to the sum of `rate.fee.details.amount`. - if the `rate.fee.asset == rate.sell_asset`, `sell_amount ~= price * buy_amount + fee` must hold true. - if the `rate.fee.asset == rate.buy_asset`, `sell_amount ~= price * (buy_amount + fee)` must hold true. diff --git a/platforms/anchor-platform/api-reference/callbacks/get-rates.api.mdx b/platforms/anchor-platform/api-reference/callbacks/get-rates.api.mdx index bdc0b353f..4d3e15b39 100644 --- a/platforms/anchor-platform/api-reference/callbacks/get-rates.api.mdx +++ b/platforms/anchor-platform/api-reference/callbacks/get-rates.api.mdx @@ -5,7 +5,7 @@ description: "Transactions that involve two non-equivalent on & off-chain assets sidebar_label: "Retrieve Rates" hide_title: true hide_table_of_contents: true -api: eJztWm1vHLcR/isDFqitYu9OttMgOCAfFFtpBbRJYNnIB52g4+3OahntkmuSe+eroP9ezJD7ci/WKbLbJqk+SbfL5XCGM888M+StyNClVtVeGS2m4p2V2smUfjnwhfSg9NKUSwS/MqCNHuGHRi1lidqD0fBnMHk+SgupNEjn0Dt47pq0AOng/fmb1zTm3GNZSgtSZ5Ar6eH0/dsjqBrnZ7pxCPgxLaS+RrDSY5QqLUJqqqr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0G5fR/rvqOBPfm/pnlRwlxYu6MFIUkM0Oad/tChQZGgGJxGHaYr1MJNsnaOsHUR8d3Qa3dz8B08O754= sidebar_class_name: "get api-method" info_path: platforms/anchor-platform/api-reference/callbacks/callbacks-server custom_edit_url: null @@ -62,6 +62,24 @@ either `sell_delivery_method` and `buy_delivery_method` may be included in reque `sell_asset` or `buy_asset` is a Stellar asset. +Upon receiving the response, the Anchor Platform will validate the amount and price of the response. + +If the validation fails, the Platform will respond to the client application's request with a HTTP status +code of `502 Bad Gateway`. + +The `sell_amount`, `buy_amount`, `price`, and `fee` are validated as follows: + +- if `rate.fee` exists, + - `rate.fee.asset` must have a positive value of `significant_decimals` defined in the asset configuration. + - `rate.fee.total` must equal to the sum of `rate.fee.details.amount`. + - if the `rate.fee.asset == rate.sell_asset`, `sell_amount ~= price * buy_amount + fee` must hold true. + - if the `rate.fee.asset == rate.buy_asset`, `sell_amount ~= price * (buy_amount + fee)` must hold true. +- if `rate.fee` does not exist, `sell_amount ~= price * buy_amount` must hold true. + +The `~=` is defined as equality within rounding error. + The rounding error is defined as `10^(-significant_decimals)` + + diff --git a/platforms/anchor-platform/api-reference/callbacks/post-event.api.mdx b/platforms/anchor-platform/api-reference/callbacks/post-event.api.mdx index cb99cbb9d..361cce91c 100644 --- a/platforms/anchor-platform/api-reference/callbacks/post-event.api.mdx +++ b/platforms/anchor-platform/api-reference/callbacks/post-event.api.mdx @@ -5,7 +5,7 @@ description: "Receive a JSON object representing an event." sidebar_label: "Receive an Event" hide_title: true hide_table_of_contents: true -api: eJylWFtv47YS/isEX/ZFthMnWLR62wY5wBZtN61zXk4SOLQ4srgrkVoOFccw/N+LISlLsp2Lc/ISi8O5cDiXb7jhTiyRp3f8+gm0Q/6Q8OcRQu3XZtc3o8888f+nl/HHxTltMjVY4ZTRXyVPeW3QeQE84RIws6omGk/5P5CBegIm2O+zb38xs/gOmWMWagsI2im9ZEIzIN7xveYJt/CzAXS/Gbnm6YZnRjuSm264qOtSZV7p5D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n3VJnKEBICuEd8rwMlo5uAm6P+PPwyXQAO6+/zW4o7eNTa2Uk8VixosIlVjzlnB56Y9/ZhLUNL4VeNqH5B5n0939tl6DO sidebar_class_name: "post api-method" info_path: platforms/anchor-platform/api-reference/callbacks/callbacks-server custom_edit_url: null diff --git a/platforms/anchor-platform/api-reference/callbacks/put-customer.api.mdx b/platforms/anchor-platform/api-reference/callbacks/put-customer.api.mdx index 4a02831e9..846997aed 100644 --- a/platforms/anchor-platform/api-reference/callbacks/put-customer.api.mdx +++ b/platforms/anchor-platform/api-reference/callbacks/put-customer.api.mdx @@ -5,7 +5,7 @@ description: "**The Anchor Platform does not persist any customer KYC data.**" sidebar_label: "Create or Update Customer Info" hide_title: true hide_table_of_contents: true -api: eJztWm1v4zYS/isE70O7C1v2usHh4G9pugWCXougSXAo4kCmpFHELkWyJJXECPLfD0NK1oslJwX2gFvAXxKZM5o3zgwfkXyhjj1Yur6jF5V1qgRj6f2MPs8taD98/flq/k868/8/reqH1Vn98MMn5M7ApoZrx5Wka/rx400B5FymhTLkSjCXK1OSTIElUjmiwVhuHWFyR9JaJ/nljwuSMceijx83ciNRgIG/KvB8GTFgtZIWSK4McQW3BGSmFZeOMAOEZyAdT5kgThFXwEbeba9ub8iikb+9/75wTtv1YvHAXVElUarKhXUgBDPN/7k2yqlUiUUiVLIomXVgFpAqu7MOyoUFPV8uP62iMvtHI3iuK/dhI0dtzSDnEjLCJQnBi9C1C8EBzdZa8JRhyCwp2Ze9v5Y8cVegFyRXQqgnLh/2sUhUtpuRp4KnBeEWo/HETAZZ7TdhPuhRHXy7kWVlHXlkgmfMgTevCT+yY8SJZtZCNqttd5WRntZ4+J0lW55tI/J7Y1+qpGNcol1Kih2xzuBzzkFkaL0QG5nAlHGEdTzcdsKw+NMqufXSMUBup2FU6UYmXDKz6yok79VXVsJxzYxbYFLOMQADlRtJZ1RpMN6oy4yuqa5cUxx0Ruu5+FFlO7p+ofXL+Dh0BsdsWkDJ8Aml0zVVyZ+QOj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vjtpp3kuVES960u6i5pyfnVJentLdR3HdrtqeGNCm0ULi9Rc2FiWm7YKbDtFYOSpUCSXX836ykXBRDh95K0UQgvwqZUc/vAn1Uxwg9uMETkBk+qQkv/zu436Wx9FG87txtYlgF3fc1D/jEVYRujXvJa9679ooJZKjggJFm/0Dq5zzXjOZCVn4Z2cVovFk9PTxHz1EiZh0X9ql38+/Li82/Xn+eraBnlriz82osNuGSyI/jCAN6mUIbcan+vosFF5BLTYDDnnSsCp6sxp6sx3/rVmLrj407uQhdMSGx/vrpeaoB4R/cA8X5Gc2Udjr28JMzCrSleX3H4rwrMjq7v7hGUGsESrOs73BrOgflVco9eL4INc9zgbTHs6DHE66x56Zxz0K7DfgDYewD36vYGsUN9p6cMSxfK9WJn7SPa+Pr6N5WB57o= sidebar_class_name: "put api-method" info_path: platforms/anchor-platform/api-reference/callbacks/callbacks-server custom_edit_url: null diff --git a/platforms/stellar-disbursement-platform/api-reference/list-all-disbursement-receivers.api.mdx b/platforms/stellar-disbursement-platform/api-reference/list-all-disbursement-receivers.api.mdx index 5bb70a709..c5fe998b1 100644 --- a/platforms/stellar-disbursement-platform/api-reference/list-all-disbursement-receivers.api.mdx +++ b/platforms/stellar-disbursement-platform/api-reference/list-all-disbursement-receivers.api.mdx @@ -718,7 +718,7 @@ Fetches a list of receivers within a specific disbursement using the disbursemen required={false} schemaName={"string"} qualifierMessage={undefined} - schema={{"type":"string","description":"The ID of the transaction in the Stellar network. It can be used tio track the payment in the Stellar network using [Stellar Lab](https://lab.stellar.org/), or [StellarExpert](https://stellar.expert/).","example":"0b339d1c89d314186b8147c2af4c9a9ed5bbdbcd7ada8d138633907649b"}} + schema={{"type":"string","description":"The ID of the transaction in the Stellar network. It can be used tio track the payment in the Stellar network using [Stellar Laboratory](https://laboratory.stellar.org/), or [StellarExpert](https://stellar.expert/).","example":"0b339d1c89d314186b8147c2af4c9a9ed5bbdbcd7ada8d138633907649b"}} > Date: Tue, 27 Aug 2024 08:26:52 -0700 Subject: [PATCH 4/5] revert dispersment changes --- .../api-reference/list-all-disbursement-receivers.api.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/stellar-disbursement-platform/api-reference/list-all-disbursement-receivers.api.mdx b/platforms/stellar-disbursement-platform/api-reference/list-all-disbursement-receivers.api.mdx index c5fe998b1..9dda4abfd 100644 --- a/platforms/stellar-disbursement-platform/api-reference/list-all-disbursement-receivers.api.mdx +++ b/platforms/stellar-disbursement-platform/api-reference/list-all-disbursement-receivers.api.mdx @@ -1577,4 +1577,4 @@ Fetches a list of receivers within a specific disbursement using the disbursemen - + \ No newline at end of file From b7a4063d5c0390971450c6a7afd2945ed74f4b5a Mon Sep 17 00:00:00 2001 From: Jamie Li Date: Tue, 27 Aug 2024 08:30:41 -0700 Subject: [PATCH 5/5] Revert sdp changes --- .../api-reference/list-all-disbursement-receivers.api.mdx | 4 ++-- .../api-reference/list-all-payments.api.mdx | 2 +- .../api-reference/retrieve-a-payment.api.mdx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platforms/stellar-disbursement-platform/api-reference/list-all-disbursement-receivers.api.mdx b/platforms/stellar-disbursement-platform/api-reference/list-all-disbursement-receivers.api.mdx index 9dda4abfd..5bb70a709 100644 --- a/platforms/stellar-disbursement-platform/api-reference/list-all-disbursement-receivers.api.mdx +++ b/platforms/stellar-disbursement-platform/api-reference/list-all-disbursement-receivers.api.mdx @@ -718,7 +718,7 @@ Fetches a list of receivers within a specific disbursement using the disbursemen required={false} schemaName={"string"} qualifierMessage={undefined} - schema={{"type":"string","description":"The ID of the transaction in the Stellar network. It can be used tio track the payment in the Stellar network using [Stellar Laboratory](https://laboratory.stellar.org/), or [StellarExpert](https://stellar.expert/).","example":"0b339d1c89d314186b8147c2af4c9a9ed5bbdbcd7ada8d138633907649b"}} + schema={{"type":"string","description":"The ID of the transaction in the Stellar network. It can be used tio track the payment in the Stellar network using [Stellar Lab](https://lab.stellar.org/), or [StellarExpert](https://stellar.expert/).","example":"0b339d1c89d314186b8147c2af4c9a9ed5bbdbcd7ada8d138633907649b"}} > - \ No newline at end of file + diff --git a/platforms/stellar-disbursement-platform/api-reference/list-all-payments.api.mdx b/platforms/stellar-disbursement-platform/api-reference/list-all-payments.api.mdx index 67e7e67dc..1404cd626 100644 --- a/platforms/stellar-disbursement-platform/api-reference/list-all-payments.api.mdx +++ b/platforms/stellar-disbursement-platform/api-reference/list-all-payments.api.mdx @@ -289,7 +289,7 @@ Returns all individual payments matching the request criteria. This endpoint sup required={false} schemaName={"string"} qualifierMessage={undefined} - schema={{"type":"string","description":"The ID of the transaction in the Stellar network. It can be used tio track the payment in the Stellar network using [Stellar Laboratory](https://laboratory.stellar.org/), or [StellarExpert](https://stellar.expert/).","example":"0b339d1c89d314186b8147c2af4c9a9ed5bbdbcd7ada8d138633907649b"}} + schema={{"type":"string","description":"The ID of the transaction in the Stellar network. It can be used tio track the payment in the Stellar network using [Stellar Lab](https://lab.stellar.org/), or [StellarExpert](https://stellar.expert/).","example":"0b339d1c89d314186b8147c2af4c9a9ed5bbdbcd7ada8d138633907649b"}} >