Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate text for Remote derive address #303

Merged
merged 3 commits into from
Mar 10, 2023
Merged

Conversation

Maar-io
Copy link
Member

@Maar-io Maar-io commented Mar 8, 2023

No description provided.

@Maar-io Maar-io requested a review from a team March 8, 2023 08:47
@Maar-io Maar-io requested a review from a team as a code owner March 8, 2023 08:47
@github-actions
Copy link

github-actions bot commented Mar 8, 2023

Visit the preview URL for this PR (updated for commit 353f45c):

https://astar-docs--pr303-remote-derive-05lc94z7.web.app

(expires Wed, 15 Mar 2023 09:39:48 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: f2f13e9b593d211faae6343d67a88fac3fd7268d

Comment on lines 124 to 137
### Remotely Derived Contract Address

For example, let's assume you have a contract deployed on Shibuya and are calling the XCM precompile `remote_transact` with the intention of sending an XCM sequence to a **sibling parachain**. This sibling parachain uses the same address derivation as do our runtimes (described above). The address derivation path will look like this:

| Name | Address |
| ---- | ------- |
| Contract H160 Address | `0x48DD0a20a199f96B56eCE7e994D83614A148aA63` |
| Contract Derived SS58 Address | `agn53DdEuRgQsvgxqj5M1AecxB6LpbXT7T1R1hjVcoEBR6M` |
| SS58 Address Public Key | `0xd219fe1b02545c7dd7e718b1530b4e32b23288351f61e5975c7dc49b004ff119` |
| Caller Multilocation | `{ parents: 1, interior: X2 ( Parachain(2000), AccountId32 {network: NetworkId::Any, id: 0xd219f...f119 } ) }` |
| Derived Account32Hash Address | `5FrhDFydxUwbWyXT1XDBhRUUYpQtiJJ6skB6n2XV4NubC9fP` |

This means that the instructions like `WithdrawAsset` and `Transact` will be executed on remote chain as if origin was the address `5FrhDFydxUwbWyXT1XDBhRUUYpQtiJJ6skB6n2XV4NubC9fP`.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one should be kept as it was.

@@ -101,6 +101,8 @@ To simplify the API via which EVM smart contracts send the `Transact` instructio

`DescendOrigin` will ensure that the origin is correctly set to be the smart contract's derived ss58 address.

### Remotely Derived Contract Address
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should remove content from line 104 up to line 116.

@Maar-io Maar-io requested a review from Dinonard March 8, 2023 09:22
@@ -133,7 +121,7 @@ For example, let's assume you have a contract deployed on Shibuya and are callin
| Caller Multilocation | `{ parents: 1, interior: X2 ( Parachain(2000), AccountId32 {network: NetworkId::Any, id: 0xd219f...f119 } ) }` |
| Derived Account32Hash Address | `5FrhDFydxUwbWyXT1XDBhRUUYpQtiJJ6skB6n2XV4NubC9fP` |

This means that the instructions like `WithdrawAsset` and `Transact` will be executed on remote chain as if origin was the address `5FrhDFydxUwbWyXT1XDBhRUUYpQtiJJ6skB6n2XV4NubC9fP`.
This means that the following instructions like `WithdrawAsset` and `Transact` will be executed as if origin was address `5FrhDFydxUwbWyXT1XDBhRUUYpQtiJJ6skB6n2XV4NubC9fP`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're not following, they have been covered in the previous chapter.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@Maar-io Maar-io requested a review from Dinonard March 8, 2023 09:38
Copy link
Member

@Dinonard Dinonard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@Maar-io Maar-io merged commit 5b39cb1 into main Mar 10, 2023
@Maar-io Maar-io deleted the remote-derive branch March 10, 2023 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants