Code samples: update includes for moved samples

This commit is contained in:
mDuo13
2021-10-27 17:44:32 -07:00
parent 7c3ff821f0
commit 72c18f32e5
11 changed files with 117 additions and 212 deletions

View File

@@ -45,13 +45,13 @@ curated_anchors:
**JSON:**
```json
{% include '_code-samples/tx-serialization/test-cases/tx1.json' %}
{% include '_code-samples/tx-serialization/py/test-cases/tx1.json' %}
```
**バイナリ16進数として表現:**
```text
{% include '_code-samples/tx-serialization/test-cases/tx1-binary.txt' %}
{% include '_code-samples/tx-serialization/py/test-cases/tx1-binary.txt' %}
```
## サンプルコード
@@ -60,7 +60,7 @@ curated_anchors:
- C++: [`rippled`コードベース](https://github.com/ripple/rippled/blob/develop/src/ripple/protocol/impl/STObject.cpp)
- JavaScript: [`ripple-binary-codec`](https://github.com/ripple/ripple-binary-codec/)パッケージ
- Python 3: [このリポジトリのコードサンプルセクション]({{target.github_forkurl}}/blob/{{target.github_branch}}/content/_code-samples/tx-serialization/serialize.py)
- Python 3: [このリポジトリのコードサンプルセクション]({{target.github_forkurl}}/blob/{{target.github_branch}}/content/_code-samples/tx-serialization/)
これらのすべての実装には、一般利用が可能なオープンソースライセンスが提供されているので、学習のためにドキュメントと合わせて使用するだけでなく、必要に応じてコードをインポート、使用、または変更することができます。

View File

@@ -45,13 +45,13 @@ Both signed and unsigned transactions can be represented in both JSON and binary
**JSON:**
```json
{% include '_code-samples/tx-serialization/test-cases/tx1.json' %}
{% include '_code-samples/tx-serialization/py/test-cases/tx1.json' %}
```
**Binary (represented as hexadecimal):**
```text
{% include '_code-samples/tx-serialization/test-cases/tx1-binary.txt' %}
{% include '_code-samples/tx-serialization/py/test-cases/tx1-binary.txt' %}
```
## Sample Code
@@ -60,7 +60,7 @@ The serialization processes described here are implemented in multiple places an
- In C++ [in the `rippled` code base](https://github.com/ripple/rippled/blob/develop/src/ripple/protocol/impl/STObject.cpp).
- In JavaScript in the [`ripple-binary-codec`](https://github.com/ripple/ripple-binary-codec/) package.
- In Python 3 in [this repository's code samples section]({{target.github_forkurl}}/blob/{{target.github_branch}}/content/_code-samples/tx-serialization/serialize.py).
- In Python 3 in [this repository's code samples section]({{target.github_forkurl}}/blob/{{target.github_branch}}/content/_code-samples/tx-serialization/).
Additionally, many [client libraries](client-libraries.html) provide serialization support under permissive open-source licenses, so you can import, use, or adapt the code for your needs.

View File

@@ -20,7 +20,7 @@ Some fields that may appear in transaction metadata include:
The following JSON object shows the metadata for [a complex cross-currency payment](https://xrpcharts.ripple.com/#/transactions/8C55AFC2A2AA42B5CE624AEECDB3ACFDD1E5379D4E5BF74A8460C5E97EF8706B):
```json
{% include '_code-samples/metadata/cross-currency-payment.json' %}
{% include '_api-examples/metadata/cross-currency-payment.json' %}
```
## AffectedNodes