Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
feat: add swift documentation (#722)
Browse files Browse the repository at this point in the history
Co-authored-by: Bojan Nikitovic <[email protected]>
Co-authored-by: Dustin Brickwood <[email protected]>
Co-authored-by: Dennis <[email protected]>
Co-authored-by: MexicanAce <[email protected]>
  • Loading branch information
5 people authored Jan 18, 2024
1 parent a70a517 commit f333a65
Show file tree
Hide file tree
Showing 6 changed files with 871 additions and 3 deletions.
13 changes: 11 additions & 2 deletions docs/.vuepress/sidebar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,17 +413,26 @@ export const enSidebar = sidebar({
text: "Java",
collapsible: true,
children: [
"/build/sdks/java",
"/build/sdks/java/getting-started",
"/build/sdks/java/providers",
"/build/sdks/java/accounts",
"/build/sdks/java/accounts-l1-l2"
],
},
{
text: "Swift",
collapsible: true,
children: [
"/build/sdks/swift/getting-started",
"/build/sdks/swift/accounts",
"/build/sdks/swift/accounts-l1-l2",
"/build/sdks/swift/paymaster-utils"
],
},
{
text: "Rust",
collapsible: true,
children: [
"/build/sdks/rust",
"/build/sdks/rust/getting-started",
"/build/sdks/rust/contract-deployment-and-interaction"
],
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ $border-color: #e5e7eb;
max-width: calc(50vw - 50% - 6rem); // Fill right-side of content

.toc-wrapper {
max-height: 68vh;
max-height: 66vh;
}

.toc-list::before {
Expand Down
37 changes: 37 additions & 0 deletions docs/build/sdks/swift/accounts-l1-l2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
head:
- - meta
- name: "twitter:title"
content: Swift SDK L1/L2 Transactions | zkSync Docs
---

# Accounts: L1<->L2 Transactions

This section explores the methods which allow the [account](./accounts.md) to send transactions among both L1 to L2 networks.

If you want some background on how L1<->L2 interaction works on zkSync, go through the [introduction](../../developer-reference/l1-l2-interop.md).

Full examples of actions below are available on the [getting started](./getting-started.md) page.

## Deposit

`WalletL1` and `Wallet` objects provide a deposit workflow. For more information, please refer to the method specification [`Deposit`](accounts.md#deposit).

## Request execute

`WalletL1` and `Wallet` objects provide an option to request execution of L2 transaction from L1. For more information, please refer
to the method specification [`RequestExecute`](accounts.md#requestexecute).

## Base cost

`WalletL1` and `Wallet` objects provide an option to calculate base cost for L2 transaction. For more information, please refer to the
method specification [`BaseCost`](accounts.md#basecost).

## Claim failed deposit

`WalletL1` and `Wallet` objects provide a claim fail deposit workflow. For more information, please refer to the method specification
[`ClaimFailedDeposit`](accounts.md#claimfaileddeposit).

## Withdrawal

`WalletL2` and `Wallet` objects provide a withdrawal workflow. For more information, please refer to the method specification [`Withdraw`](accounts.md#withdraw).
Loading

0 comments on commit f333a65

Please sign in to comment.