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

Development #1031

Merged
merged 4 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/developers/transactions/tx-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The data field can hold arbitrary data, but for practical purposes, it is normal
We can always give this data in raw form, however, we usually prefer using a proper type system, for safety.

:::caution
Always use [proxies](tx-proxies) when the target contract ABI is known. A contract proxy is a Rust equivalent of its ABI, and using adds invaluable type safety to your calls.
Always use [proxies](./tx-proxies.md) when the target contract ABI is known. A contract proxy is a Rust equivalent of its ABI, and using adds invaluable type safety to your calls.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that the .md suffix was required. can stay as it is, tho

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If browser's storage & cookies are cleared, links without *.md will not work

Copy link
Contributor

Choose a reason for hiding this comment

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

it could have been [proxies](/developers/transactions/tx-proxies)


Using raw data is acceptable only when we are forwarding calls to unknown contracts, for instance in contracts like the multisig, governance of other forwarders.
:::
Expand Down Expand Up @@ -76,7 +76,7 @@ graph LR
```

:::info
These are diagrams for the raw calls, without proxies. You can find the one involving proxies [here](tx-proxies#diagram)
These are diagrams for the raw calls, without proxies. You can find the one involving proxies [here](./tx-proxies.md#diagram).
:::

[comment]: # (mx-context-auto)
Expand Down Expand Up @@ -105,7 +105,7 @@ Transactions with no data are classified as simple transfers. These simple trans

## Untyped function call

**`.raw_call(...)`** starts a contract call serialised by hand. It is used in proxy functions. It is safe to use [proxies](tx-proxies) instead since manual serialisation is not type-safe.
**`.raw_call(...)`** starts a contract call serialised by hand. It is used in proxy functions. It is safe to use [proxies](./tx-proxies.md) instead since manual serialisation is not type-safe.

[comment]: # (mx-context-auto)

Expand All @@ -119,7 +119,7 @@ Can be called multiple times, once for each argument.
tx().raw_call("example").argument(&arg1).argument(&arg2)
```

It is safe to user [proxies](tx-proxies) instead, whenever possible.
It is safe to user [proxies](./tx-proxies.md) instead, whenever possible.

[comment]: # (mx-context-auto)

Expand All @@ -144,7 +144,7 @@ tx().raw_call("example").code_metadata(code_metadata)

## Untyped deploy

**`.raw_deploy()`** starts a contract deploy call serialised by hand. It is used in proxy deployment functions. It is safe to use [proxies](tx-proxies) instead since manual serialisation is not type-safe.
**`.raw_deploy()`** starts a contract deploy call serialised by hand. It is used in proxy deployment functions. It is safe to use [proxies](./tx-proxies.md) instead since manual serialisation is not type-safe.

Deployment calls needs to set:

Expand Down Expand Up @@ -221,7 +221,7 @@ fn deploy(&mut self) {

## Untyped upgrade

`.raw_upgrade()` starts a contract deployment upgrade serialised by hand. It is used in a proxy upgrade call. It is safe to use [proxies](tx-proxies) instead since manual serialisation is not type-safe. All upgrade calls require:
`.raw_upgrade()` starts a contract deployment upgrade serialised by hand. It is used in a proxy upgrade call. It is safe to use [proxies](./tx-proxies.md) instead since manual serialisation is not type-safe. All upgrade calls require:

[comment]: # (mx-context-auto)

Expand Down
314 changes: 183 additions & 131 deletions docs/developers/tutorials/your-first-dapp.md

Large diffs are not rendered by default.

Binary file added static/developers/tutorial/dapp_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/developers/tutorial/pong_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/developers/tutorial/pong_tx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/developers/tutorial/success_tx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/developers/tutorial/wallet_connect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/developers/tutorial/wallet_login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading