mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 03:35:51 +00:00
Migrate old callout syntax
This commit is contained in:
@@ -13,7 +13,7 @@ theme:
|
||||
|
||||
The Ripple Data API v2 was deprecated in 2021 with no additional support; it will be shut down on October 15, 2023.
|
||||
|
||||
**Note:** The [XRP Distribution endpoint](https://data.ripple.com/v2/network/xrp_distribution) will remain.
|
||||
{% admonition type="info" name="Note" %}The [XRP Distribution endpoint](https://data.ripple.com/v2/network/xrp_distribution) will remain.{% /admonition %}
|
||||
|
||||
If you need information on the old Data API, see the [rippled-historical-database repository](https://github.com/ripple/rippled-historical-database).
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ We plan to reset Devnet so that it has all the following amemdments enabled:
|
||||
|
||||
- Amendments currently enabled on Mainnet.
|
||||
|
||||
**Note:** For retired amendments, the Devnet will follow the amended behavior but the retired amendment's ID will not appear enabled in the on-ledger `Amendments` entry or the `feature` API method.
|
||||
{% admonition type="info" name="Note" %}For retired amendments, the Devnet will follow the amended behavior but the retired amendment's ID will not appear enabled in the on-ledger `Amendments` entry or the `feature` API method.{% /admonition %}
|
||||
|
||||
- Amendments that are "open for voting" as of version 1.11.0, including FixNFTokenRemint and XRPFees.
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ response = send_reliable_submission(signed_tx, client)
|
||||
response = submit_and_wait(tx, client, test_wallet)
|
||||
```
|
||||
|
||||
**Tip:** You can also use `submit_and_wait` as a direct replacement for `send_reliable_submission` if you want to handle autofill and signing separately from transaction submission.
|
||||
{% admonition type="success" name="Tip" %}You can also use `submit_and_wait` as a direct replacement for `send_reliable_submission` if you want to handle autofill and signing separately from transaction submission. {% /admonition %}
|
||||
|
||||
#### `submit_transaction` -> `submit`
|
||||
|
||||
@@ -205,7 +205,7 @@ Payment(
|
||||
)
|
||||
```
|
||||
|
||||
**Tip:** You can also omit the `sequence` field and use `autofill` before signing your transaction. The `submit_and_wait` method does this automatically when you give it an unsigned transaction.
|
||||
{% admonition type="success" name="Tip" %}You can also omit the `sequence` field and use `autofill` before signing your transaction. The `submit_and_wait` method does this automatically when you give it an unsigned transaction.{% /admonition %}
|
||||
|
||||
|
||||
#### `Wallet.classic_address` -> `Wallet.address`
|
||||
@@ -227,7 +227,9 @@ Payment(
|
||||
amount="10",
|
||||
)
|
||||
```
|
||||
**Tip:** `classic_address` still exists as an alias, and both are now also read-only since they should never change.
|
||||
{% admonition type="success" name="Tip" %}
|
||||
`classic_address` still exists as an alias, and both are now also read-only since they should never change.
|
||||
{% /admonition %}
|
||||
|
||||
### Other changes
|
||||
|
||||
@@ -262,7 +264,7 @@ DUMMY_BYTES = b"\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10"
|
||||
seed = generate_seed(DUMMY_BYTES.hex())
|
||||
```
|
||||
|
||||
**Note:** If your string is longer than 16 bytes, you must truncate it before passing it into `generate_seed()`. Previously, the method would quietly truncate it for you, but now it is explicit in order to raise errors when the wrong data type is provided.
|
||||
{% admonition type="info" name="Note" %}If your string is longer than 16 bytes, you must truncate it before passing it into `generate_seed()`. Previously, the method would quietly truncate it for you, but now it is explicit in order to raise errors when the wrong data type is provided.{% /admonition %}
|
||||
|
||||
#### Sign (async -> sync)
|
||||
|
||||
@@ -362,7 +364,7 @@ You can install this version of xrpl-py using pip:
|
||||
pip install xrpl-py
|
||||
```
|
||||
|
||||
**Note:** The xrpl-py 2.0 release does not include Automated Market-Maker (AMM) or Sidechains functionality. Those are on separate beta branches.
|
||||
{% admonition type="info" name="Note" %}The xrpl-py 2.0 release does not include Automated Market-Maker (AMM) or Sidechains functionality. Those are on separate beta branches.{% /admonition %}
|
||||
|
||||
If you're just getting started using xrpl-py, see [Get Started Using Python](https://xrpl.org/get-started-using-python.html), the [xrpl-py source code repository](https://github.com/XRPLF/xrpl-py), or [reference documentation](https://xrpl-py.readthedocs.io/en/stable/).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user