Skip to content

Commit

Permalink
fix: postgres-str init, settlement in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Sterling committed Sep 13, 2022
1 parent 6d22e88 commit 3fc8a01
Show file tree
Hide file tree
Showing 4 changed files with 116,526 additions and 116,507 deletions.
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ services:
- POSTGRES_DB=oracle
ports:
- '5434:5432'
volumes:
- './charts/forge-platform/init-data/defaults/default-str-postgres-init.sql:/docker-entrypoint-initdb.d/init.sql'
fro:
container_name: fro
image: 'node:16.9.1-alpine3.14'
Expand Down
8 changes: 8 additions & 0 deletions mkdocs/docs/js/bondEmission.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,12 @@ const createBondMutationVariables = `{
"registrarId": "LEI_REGISTRAR",
"settlementAgentId": "LEI_SETTLEMENT_AGENT"
}
}`;
const getSettlementTransactionQuery = `query GetSettlementTransaction($getSettlementTransactionId: String!) {
getSettlementTransaction(id: $getSettlementTransactionId) {
settlementStatus
movements {
paymentReference
}
}
}`;
13 changes: 13 additions & 0 deletions mkdocs/docs/tutorials/bondEmission/settlement.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@ The result shows the `movements`, which are the payments made between the buyer,
Keep in mind that the buyer sends <ins>cash</ins> to the escrow, but a <ins>token</ins> to the seller.
The escrow then sends the buyer's cash to the seller. The status of the settlement transaction becomes `ACKNOWLEDGED`.

<script src="./../../../js/bondEmission.js" type="application/javascript"></script>
<script>
const fsoEndPoint = 'http://localhost:6663/graphql';

ReactDOM.render(
React.createElement(GraphiQL, {
fetcher: GraphiQL.createFetcher({
url: fsoEndPoint,
}),
defaultEditorToolsVisibility: true,
query: getSettlementTransactionQuery,
variables: '{ "getSettlementTransactionId": "MY_SETTLEMENT_TRANSACTION_ID" }',
}),
document.getElementById('fsoGetSettlementTransaction'),
);
</script>
Loading

0 comments on commit 3fc8a01

Please sign in to comment.