Skip to content

Commit ddd80c6

Browse files
authored
Merge branch 'main' into refresh-classic-guides
2 parents a4bdaeb + 14eae72 commit ddd80c6

File tree

202 files changed

+5415
-1890
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+5415
-1890
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ yarn-error.log*
2323

2424
*.info.mdx
2525

26+
.tool-versions
27+
2628
# non-production openrpc.json files
2729
/openrpc/*openrpc.json
2830

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Welcome to the official home repository for [Documentation][docs] for the [Stellar network][stellar].
44

5-
If you're here for the Deep Dive Docs Bounty, please navigate to the bottom of this page for all relevant information: [Deep Dive Docs Bounty](#welcome-to-the-deep-dive-docs-bounty-).
6-
75
## Table of Contents <!-- omit in toc -->
86

97
- [Contributing](#contributing)
@@ -234,7 +232,7 @@ const CODE_LANGS = {
234232
};
235233
```
236234

237-
**Remember that this is a community; we build together! 💪 Our code of conduct is [here](https://www.stellar.org/community/code-of-conduct) and our Privacy Policy is [here](https://www.stellar.org/privacy-policy).**
235+
**Remember that this is a community; we build together! 🫱🏻‍🫲🏽 Our code of conduct is [here](https://www.stellar.org/community/code-of-conduct) and our Privacy Policy is [here](https://www.stellar.org/privacy-policy).**
238236

239237
[docs]: https://developers.stellar.org/docs
240238
[api]: https://developers.stellar.org/api

ap_versioned_docs/version-2.10/admin-guide/events/getting-started.mdx

+22-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@ title: Getting Started
33
sidebar_position: 10
44
---
55

6-
Anchor Platform provides an event service that allows your business application and client applications such as wallets to receive updates about transaction updates via HTTP webhooks without the need to poll the transactions API.
6+
Anchor Platform provides an event service that sends HTTP webhook notifications to:
77

8-
By integrating with the event service, you or your clients will be able to receive updates about the status of transactions, including when they are submitted, completed, and failed as well as any quotes created.
8+
**Business Servers**
9+
10+
- Transaction status changes
11+
- Quote updates
12+
- Customer KYC status changes
13+
14+
Event schemas for business servers are defined in the [API reference](/platforms/anchor-platform/next/api-reference/callbacks/post-event).
15+
16+
**Client Applications**
17+
18+
- Transaction status changes affecting their users
19+
- Customer KYC status changes affecting their users
20+
21+
_Event schemas for client applications are defined in their respective SEPs:_
22+
23+
- [SEP-6 Transaction Events](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0006.md#single-historical-transaction)
24+
- [SEP-12 Customer Events](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0012.md#response)
25+
- [SEP-24 Transaction Events](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0024.md#single-historical-transaction)
26+
- [SEP-31 Transaction Events](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0031.md#get-transaction)
27+
28+
This eliminates the need for business servers and client applications to continuously poll the APIs for updates.

ap_versioned_docs/version-2.10/admin-guide/events/integration.mdx

+3-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ The event service can be used to send events to client and business server callb
6767

6868
### As a Client Application
6969

70-
Client applications can receive updates whenever the `status` of a SEP transaction changes.
70+
Client applications can receive updates about their users' transactions and customer information. The schema of the event data will depend on the type of event being sent.
7171

72-
To receive events as a client application, you will need to expose a callback URL that the event service can send events to. The event service will send a POST request to this endpoint with the event data in the request body.
72+
To receive events as a client application, you will need to expose callback URLs that the event service can send events to. The event service will send a POST request to this endpoint with the event data in the request body. The schema of the event data will depend on the type of event being sent. Anchor Platform allows unique endpoints to be configured by event type.
7373

7474
Anchor Platform will only send events to clients listed in the client configuration. See the [client configuration documentation][clients-config] for more information.
7575

@@ -78,6 +78,7 @@ Anchor Platform will only send events to clients listed in the client configurat
7878
Anchor Platform signs the callback requests it sends to client applications. The signature is included in the `Signature` header of the request. The callback URL signature specification can be found in the corresponding SEP protocol specifications.
7979

8080
- [SEP-0006](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0006.md#url-callback-signature)
81+
- [SEP-0012](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0012.md#callback-post-request)
8182
- [SEP-0024](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0024.md#url-callback-signature)
8283
- [SEP-0031](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0031.md#url-callback-signature)
8384

ap_versioned_docs/version-2.10/admin-guide/sep24/integration.mdx

+12
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,18 @@ This is done by making JSON-RPC requests to the Platform API's endpoint. JSON-RP
2929

3030
The Anchor Platform JSON-RPC API is designed to notify the platform about changes in the status of the transaction. Given that, the API will be called every time a user or the anchor takes any action that progresses the transaction status in the flow.
3131

32+
Communication from the Anchor Platform about transaction updates, customer updates, and quote creation is handled through the event service. This is an optional feature that needs to be configured separately from the SEP-6 integration. For more information, see [Event Handling][event-handling].
33+
3234
You can find out more about transaction flow and statuses in the [SEP-24 protocol document][sep-24]
3335

36+
## Callbacks
37+
38+
The Anchor Platform relies on the business server to provide and store information about quotes.
39+
40+
### Quotes and Fees
41+
42+
To support the exchange of non-equivalent assets, the Anchor Platform exposes a SEP-38 compliant API to provide quotes for the exchange. The quote API is used to provide the user with the expected amount of the asset they will receive in exchange for the asset they are sending. The quote API is also used to provide the user with the expected fees for the transaction. Therefore, your business server must implement the [rate API][rate-callback] to provide quotes to the Anchor Platform.
43+
3444
## Securing Platform API
3545

3646
<Security />
@@ -1006,4 +1016,6 @@ Works in the same manner as for the deposit flow. For more details, see [Transac
10061016

10071017
[sep-9]: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0009.md
10081018
[sep-24]: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0024.md
1019+
[event-handling]: /ap_versioned_docs/version-2.10/admin-guide/events/README.mdx
1020+
[rate-callback]: /ap_versioned_docs/version-2.10/api-reference/callbacks/README.mdx
10091021
[json-rpc-methods]: ../../api-reference/platform/rpc/methods/README.mdx

ap_versioned_docs/version-2.10/admin-guide/sep6/integration.mdx

+17-1
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,21 @@ This is done by making JSON-RPC requests to the Platform API's endpoint. JSON-RP
3030

3131
The Anchor Platform JSON-RPC API is designed to notify the platform about changes in the status of the transaction. Given that, the API will be called every time a user or the anchor takes any action that progresses the transaction status in the flow.
3232

33+
Communication from the Anchor Platform about transaction updates, customer updates, and quote creation is handled through the event service. This is an optional feature that needs to be configured separately from the SEP-6 integration. For more information, see [Event Handling][event-handling].
34+
3335
You can find out more about transaction flow and statuses in the [SEP-6 protocol document][sep-6].
3436

35-
[sep-6]: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0006.md
37+
## Callbacks
38+
39+
The Anchor Platform relies on the business server to provide and store information about customers and quotes.
40+
41+
### Customer Information
42+
43+
The Anchor Platform does not store customer information. Instead, it forwards all SEP-12 customer requests to the business server. The business server is responsible for storing and managing this information. Therefore, your business server must implement the [customer APIs][customer-callback] to handle KYC updates.
44+
45+
### Quotes and Fees
46+
47+
To support the exchange of non-equivalent assets, the Anchor Platform exposes a SEP-38 compliant API to provide quotes for the exchange. The quote API is used to provide the user with the expected amount of the asset they will receive in exchange for the asset they are sending. The quote API is also used to provide the user with the expected fees for the transaction. Therefore, your business server must implement the [rate API][rate-callback] to provide quotes to the Anchor Platform.
3648

3749
## Securing Platform API
3850

@@ -972,4 +984,8 @@ Works in the same manner as for the deposit flow. For more details, see [Transac
972984

973985
<Observer />
974986

987+
[sep-6]: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0006.md
988+
[event-handling]: /ap_versioned_docs/version-2.10/admin-guide/events/README.mdx
989+
[customer-callback]: /ap_versioned_docs/version-2.10/api-reference/callbacks/README.mdx
990+
[rate-callback]: /ap_versioned_docs/version-2.10/api-reference/callbacks/README.mdx
975991
[get-transactions]: ../../api-reference/platform/transactions/get-transactions.api.mdx

ap_versioned_docs/version-2.11/admin-guide/events/getting-started.mdx

+22-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@ title: Getting Started
33
sidebar_position: 10
44
---
55

6-
Anchor Platform provides an event service that allows your business application and client applications such as wallets to receive updates about transaction updates via HTTP webhooks without the need to poll the transactions API.
6+
Anchor Platform provides an event service that sends HTTP webhook notifications to:
77

8-
By integrating with the event service, you or your clients will be able to receive updates about the status of transactions, including when they are submitted, completed, and failed as well as any quotes created.
8+
**Business Servers**
9+
10+
- Transaction status changes
11+
- Quote updates
12+
- Customer KYC status changes
13+
14+
Event schemas for business servers are defined in the [API reference](/platforms/anchor-platform/next/api-reference/callbacks/post-event).
15+
16+
**Client Applications**
17+
18+
- Transaction status changes affecting their users
19+
- Customer KYC status changes affecting their users
20+
21+
_Event schemas for client applications are defined in their respective SEPs:_
22+
23+
- [SEP-6 Transaction Events](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0006.md#single-historical-transaction)
24+
- [SEP-12 Customer Events](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0012.md#response)
25+
- [SEP-24 Transaction Events](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0024.md#single-historical-transaction)
26+
- [SEP-31 Transaction Events](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0031.md#get-transaction)
27+
28+
This eliminates the need for business servers and client applications to continuously poll the APIs for updates.

ap_versioned_docs/version-2.11/admin-guide/events/integration.mdx

+3-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ The event service can be used to send events to client and business server callb
6767

6868
### As a Client Application
6969

70-
Client applications can receive updates whenever the `status` of a SEP transaction changes.
70+
Client applications can receive updates about their users' transactions and customer information. The schema of the event data will depend on the type of event being sent.
7171

72-
To receive events as a client application, you will need to expose a callback URL that the event service can send events to. The event service will send a POST request to this endpoint with the event data in the request body.
72+
To receive events as a client application, you will need to expose callback URLs that the event service can send events to. The event service will send a POST request to this endpoint with the event data in the request body. The schema of the event data will depend on the type of event being sent. Anchor Platform allows unique endpoints to be configured by event type.
7373

7474
Anchor Platform will only send events to clients listed in the client configuration. See the [client configuration documentation][clients-config] for more information.
7575

@@ -78,6 +78,7 @@ Anchor Platform will only send events to clients listed in the client configurat
7878
Anchor Platform signs the callback requests it sends to client applications. The signature is included in the `Signature` header of the request. The callback URL signature specification can be found in the corresponding SEP protocol specifications.
7979

8080
- [SEP-0006](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0006.md#url-callback-signature)
81+
- [SEP-0012](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0012.md#callback-post-request)
8182
- [SEP-0024](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0024.md#url-callback-signature)
8283
- [SEP-0031](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0031.md#url-callback-signature)
8384

ap_versioned_docs/version-2.11/admin-guide/sep24/integration.mdx

+12
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,18 @@ This is done by making JSON-RPC requests to the Platform API's endpoint. JSON-RP
2929

3030
The Anchor Platform JSON-RPC API is designed to notify the platform about changes in the status of the transaction. Given that, the API will be called every time a user or the anchor takes any action that progresses the transaction status in the flow.
3131

32+
Communication from the Anchor Platform about transaction updates, customer updates, and quote creation is handled through the event service. This is an optional feature that needs to be configured separately from the SEP-6 integration. For more information, see [Event Handling][event-handling].
33+
3234
You can find out more about transaction flow and statuses in the [SEP-24 protocol document][sep-24]
3335

36+
## Callbacks
37+
38+
The Anchor Platform relies on the business server to provide and store information about quotes.
39+
40+
### Quotes and Fees
41+
42+
To support the exchange of non-equivalent assets, the Anchor Platform exposes a SEP-38 compliant API to provide quotes for the exchange. The quote API is used to provide the user with the expected amount of the asset they will receive in exchange for the asset they are sending. The quote API is also used to provide the user with the expected fees for the transaction. Therefore, your business server must implement the [rate API][rate-callback] to provide quotes to the Anchor Platform.
43+
3444
## Securing Platform API
3545

3646
<Security />
@@ -1006,4 +1016,6 @@ Works in the same manner as for the deposit flow. For more details, see [Transac
10061016

10071017
[sep-9]: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0009.md
10081018
[sep-24]: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0024.md
1019+
[event-handling]: /ap_versioned_docs/version-2.11/admin-guide/events/README.mdx
1020+
[rate-callback]: /ap_versioned_docs/version-2.11/api-reference/callbacks/README.mdx
10091021
[json-rpc-methods]: ../../api-reference/platform/rpc/methods/README.mdx

ap_versioned_docs/version-2.11/admin-guide/sep6/integration.mdx

+17-1
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,21 @@ This is done by making JSON-RPC requests to the Platform API's endpoint. JSON-RP
3030

3131
The Anchor Platform JSON-RPC API is designed to notify the platform about changes in the status of the transaction. Given that, the API will be called every time a user or the anchor takes any action that progresses the transaction status in the flow.
3232

33+
Communication from the Anchor Platform about transaction updates, customer updates, and quote creation is handled through the event service. This is an optional feature that needs to be configured separately from the SEP-6 integration. For more information, see [Event Handling][event-handling].
34+
3335
You can find out more about transaction flow and statuses in the [SEP-6 protocol document][sep-6].
3436

35-
[sep-6]: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0006.md
37+
## Callbacks
38+
39+
The Anchor Platform relies on the business server to provide and store information about customers and quotes.
40+
41+
### Customer Information
42+
43+
The Anchor Platform does not store customer information. Instead, it forwards all SEP-12 customer requests to the business server. The business server is responsible for storing and managing this information. Therefore, your business server must implement the [customer APIs][customer-callback] to handle KYC updates.
44+
45+
### Quotes and Fees
46+
47+
To support the exchange of non-equivalent assets, the Anchor Platform exposes a SEP-38 compliant API to provide quotes for the exchange. The quote API is used to provide the user with the expected amount of the asset they will receive in exchange for the asset they are sending. The quote API is also used to provide the user with the expected fees for the transaction. Therefore, your business server must implement the [rate API][rate-callback] to provide quotes to the Anchor Platform.
3648

3749
## Securing Platform API
3850

@@ -972,4 +984,8 @@ Works in the same manner as for the deposit flow. For more details, see [Transac
972984

973985
<Observer />
974986

987+
[sep-6]: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0006.md
988+
[event-handling]: /ap_versioned_docs/version-2.11/admin-guide/events/README.mdx
989+
[customer-callback]: /ap_versioned_docs/version-2.11/api-reference/callbacks/README.mdx
990+
[rate-callback]: /ap_versioned_docs/version-2.11/api-reference/callbacks/README.mdx
975991
[get-transactions]: ../../api-reference/platform/transactions/get-transactions.api.mdx

ap_versioned_docs/version-2.8/admin-guide/events/getting-started.mdx

+22-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@ title: Getting Started
33
sidebar_position: 10
44
---
55

6-
Anchor Platform provides an event service that allows your business application and client applications such as wallets to receive updates about transaction updates via HTTP webhooks without the need to poll the transactions API.
6+
Anchor Platform provides an event service that sends HTTP webhook notifications to:
77

8-
By integrating with the event service, you or your clients will be able to receive updates about the status of transactions, including when they are submitted, completed, and failed as well as any quotes created.
8+
**Business Servers**
9+
10+
- Transaction status changes
11+
- Quote updates
12+
- Customer KYC status changes
13+
14+
Event schemas for business servers are defined in the [API reference](/ap_versioned_docs/version-2.8/api-reference/callbacks/post-event.api.mdx).
15+
16+
**Client Applications**
17+
18+
- Transaction status changes affecting their users
19+
- Customer KYC status changes affecting their users
20+
21+
_Event schemas for client applications are defined in their respective SEPs:_
22+
23+
- [SEP-6 Transaction Events](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0006.md#single-historical-transaction)
24+
- [SEP-12 Customer Events](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0012.md#response)
25+
- [SEP-24 Transaction Events](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0024.md#single-historical-transaction)
26+
- [SEP-31 Transaction Events](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0031.md#get-transaction)
27+
28+
This eliminates the need for business servers and client applications to continuously poll the APIs for updates.

0 commit comments

Comments
 (0)