mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
Code samples: update includes for moved samples
This commit is contained in:
@@ -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/)
|
||||
|
||||
これらのすべての実装には、一般利用が可能なオープンソースライセンスが提供されているので、学習のためにドキュメントと合わせて使用するだけでなく、必要に応じてコードをインポート、使用、または変更することができます。
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user