You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/using-platform/11_middleware.md
+22-26Lines changed: 22 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,45 +6,41 @@ SettleMint offers two Middleware solutions: **The Graph Middleware (for all EVM-
6
6
7
7
## Adding a middleware
8
8
9
-
Before adding a middleware make sure that you have installed**smart contract sets**and **IPFS (decentralized)** storage
9
+
Before adding a middleware make sure that you have a**blockchain node**running.
10
10
11
11
Navigate to the **application** where you want to add a middleware. Click **Middleware** in the left navigation, and then click **Add a middleware**. This opens a form.
12
12
13
13
Follow these steps to add the middleware:
14
14
15
-
1. Select to which of your **smart contract sets** the middleware needs to connect, and click **Continue**.
16
-
2. Choose [Graph Middleware](#the-graph-middleware) or [Smart Contract Portal Middleware](#the-smart-contract-portal-middleware)
17
-
3. Choose a **Middleware name**. Choose one that will be easily recognizable in your dashboards.
18
-
4. Select the **storage provider** if needed.
19
-
5. Choose a **deployment plan**. Select the type, cloud provider, region and resource pack. [More about deployment plans.](../launch-platform/managed-cloud-deployment/13_deployment-plans.md)
20
-
6. You see the **resource cost** for this middleware displayed at the bottom of the form. Click **Confirm** to add the smart contract set.
15
+
1. Choose [Graph Middleware](#the-graph-middleware) or [Smart Contract Portal Middleware](#the-smart-contract-portal-middleware)
16
+
2. Choose a **Middleware name**. Choose one that will be easily recognizable in your dashboards.
17
+
3. Select the **blockchain node** you want to connect to. This is the blockchain node that will be used to index the blockchain data.
18
+
4. Choose a **deployment plan**. Select the type, cloud provider, region and resource pack. [More about deployment plans.](../launch-platform/managed-cloud-deployment/13_deployment-plans.md)
19
+
5. You see the **resource cost** for this middleware displayed at the bottom of the form. Click **Confirm** to add the smart contract set.
21
20
22
21
When the middleware is deployed, click it from the list and start using it.
23
22
24
23
## The Graph Middleware
25
24
26
-
[The Graph](https://thegraph.com/en/) is a protocol for indexing and querying blockchain data from networks. It can be used with all EVM-compatible chains like Ethereum, Hyperledger Besu, Polygon, Avalanche, etc. You can run it on your own blockchain nodes (both public and permissioned) and IPFS nodes.
25
+
[The Graph](https://thegraph.com/en/) is a protocol for indexing and querying blockchain data from networks. It can be used with all EVM-compatible chains like Ethereum, Hyperledger Besu, Polygon, Avalanche, etc. You can run it on your own blockchain nodes (both public and permissioned).
27
26
28
-
Using the Graph protocol, you can create **subgraphs** that define which blockchain data will be indexed. These subgraphs are **defined in the smart contract set** and deployed to the middleware. The middleware will then use these subgraphs to correctly index your smart contracts and expose a developer-friendly and efficient **GraphQL API**, allowing you to query the data you need.
27
+
Using the Graph protocol, you can create **subgraphs** that define which blockchain data will be indexed. The middleware will then use these subgraphs to correctly index your smart contracts and expose a developer-friendly and efficient **GraphQL API**, allowing you to query the data you need.
29
28
30
-
The middleware is fully preconfigured and integrated with the smart contract sets. We have some prebuild subgraph indexing modules, but you can build your own modules if you have a custom smart contract set.
29
+
We have some prebuilt subgraph indexing modules included in the smart contract set IDE, and you can build your own modules if you have a custom smart contract set.
31
30
32
31
:::warning Warning
33
32
34
33
Before you start, make sure you are running:
35
34
36
-
- An EVM-compatible network (Ethereum, Polygon, Hyperleder Besu, Avalanche, etc.)
37
-
- A smart contract set with a deployed smart contract
38
-
- An IPFS node
39
-
- A private key
35
+
- An EVM-compatible network (Ethereum, Polygon, Hyperledger Besu, Avalanche, etc.)
40
36
41
37
:::
42
38
43
39
When the middleware is deployed, follow these steps to start using it:
44
40
45
41
### Define and deploy a subgraph
46
42
47
-
Navigate to the **smart contract set**that you connected to the middleware, go the **details** and open the **IDE**. Here you will define the subgraph to set the indexing specifications, and deploy it so it can be loaded into the middleware.
43
+
Navigate to the **smart contract set**which you want to index, go the **details** and open the **IDE**. Here you will define the subgraph to set the indexing specifications, and deploy it so it can be loaded into the middleware. There are instructions included in the IDE to help you.
48
44
49
45
#### Subgraph raw configuration
50
46
@@ -117,7 +113,7 @@ Benefits of using the smart contract portal:
117
113
118
114
Before you start, make sure you are running:
119
115
120
-
- An EVM-compatible network (Ethereum, Polygon, Hyperleder Besu, Avalanche, etc.)
116
+
- An EVM-compatible network (Ethereum, Polygon, Hyperledger Besu, Avalanche, etc.)
121
117
- A private key
122
118
123
119
:::
@@ -161,25 +157,25 @@ Standard Webhooks has built [SDKs and useful tools](https://www.standardwebhooks
161
157
An example using Typescript, [Elysia](https://elysiajs.com/) and [standard webhooks](https://www.standardwebhooks.com/).
0 commit comments