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

Commit

Permalink
fix(go-sdk): remove examples (#891)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Villanueva <[email protected]>
  • Loading branch information
danijelTxFusion and MexicanAce authored Feb 8, 2024
1 parent a442e6d commit a11412f
Show file tree
Hide file tree
Showing 15 changed files with 173 additions and 2,200 deletions.
39 changes: 12 additions & 27 deletions docs/.vuepress/sidebar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ export const enSidebar = sidebar({
children: [
{
text: "Getting Started",
link: "/build/tooling/zksync-cli/getting-started.md",
},
link: "/build/tooling/zksync-cli/getting-started.md",
},
"/build/tooling/zksync-cli/commands.md",
"/build/tooling/zksync-cli/examples/contract-interaction.md"
]
Expand Down Expand Up @@ -304,7 +304,7 @@ export const enSidebar = sidebar({
},
]
},

],
},
{
Expand Down Expand Up @@ -396,22 +396,7 @@ export const enSidebar = sidebar({
text: "Go",
collapsible: true,
children: [
{
text: "Getting Started",
collapsible: true,
children: [
"/build/sdks/go/getting-started",
"/build/sdks/go/examples/deposit",
"/build/sdks/go/examples/transfer",
"/build/sdks/go/examples/withdraw",
"/build/sdks/go/examples/get-confirmed-tokens",
"/build/sdks/go/examples/create",
"/build/sdks/go/examples/create2",
"/build/sdks/go/examples/custom-paymaster/deploy-token",
"/build/sdks/go/examples/custom-paymaster/deploy-account",
"/build/sdks/go/examples/custom-paymaster/use-paymaster",
],
},
"/build/sdks/go/getting-started",
"/build/sdks/go/clients",
"/build/sdks/go/accounts",
"/build/sdks/go/accounts-l1-l2",
Expand Down Expand Up @@ -596,7 +581,7 @@ export const enSidebar = sidebar({
{
text: "Components",
collapsible: true,
children: [
children: [
{
text: "Overview",
link: "/zk-stack/components/overview.md",
Expand All @@ -609,21 +594,21 @@ export const enSidebar = sidebar({
text: "Smart Contracts",
link: "/zk-stack/components/smart-contracts/smart-contracts.md",
},
{
{
text: "System Contracts",
link: "/zk-stack/components/smart-contracts/system-contracts.md",
}
}
]
},
{
text: "Shared Bridge",
link: "/zk-stack/components/shared-bridges.md"

},
{
text: "Sequencer / Server",
link: "/zk-stack/components/sequencer-server.md"

},
{
text: "zkEVM",
Expand Down Expand Up @@ -889,15 +874,15 @@ export const enSidebar = sidebar({
}
],
},
{
{
text: "Fee Withdrawer",
link: "/zk-stack/components/fee-withdrawer.md"
},
{
{
text: "Portal - Wallet + Bridge",
link: "/zk-stack/components/portal-wallet-bridge.md"
},
{
{
text: "Block Explorer",
link: "/zk-stack/components/block-explorer.md"
},
Expand Down
10 changes: 8 additions & 2 deletions docs/build/sdks/go/accounts-l1-l2.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ Full examples of actions below are available on the [getting started](./getting-

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

For a complete example of how to execute the deposit workflow, take a look at the following: [Deposit ETH and ERC20 token](examples/deposit.md).
For a comprehensive example demonstrating the deposit workflow, refer to the following:

- [Deposit ETH](https://github.com/zksync-sdk/zksync2-examples/blob/main/go/01_deposit.go).
- [Deposit ERC20 tokens](https://github.com/zksync-sdk/zksync2-examples/blob/main/go/05_deposit_token.go).

## Request execute

Expand All @@ -43,4 +46,7 @@ method specification [`BaseCost`](accounts.md#basecost).

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

For a complete example of how to execute the deposit workflow, take a look at the following: [Withdraw ETH and ERC20 token](examples/withdraw.md).
For a complete example of how to execute the deposit workflow, take a look at the following:

- [Withdraw ETH](https://github.com/zksync-sdk/zksync2-examples/blob/main/go/03_withdraw.go).
- [Withdraw ERC20 token](https://github.com/zksync-sdk/zksync2-examples/blob/main/go/07_withdraw_token.go).
7 changes: 4 additions & 3 deletions docs/build/sdks/go/contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ contracts and smart accounts. There are the following objects that implement the
Contract instantiation is the same as in the [`geth`](https://geth.ethereum.org/docs/developers/dapp-developer/native-bindings) library. For
examples of how to deploy and instantiate contracts and accounts, refer to the following:

- [Deploy smart contracts using CREATE opcode](examples/create.md).
- [Deploy smart contracts using CREATE2 opcode](examples/create2.md).
- [Deploy smart accounts using CREATE and CREATE2 opcode](examples/custom-paymaster/deploy-account.md)
- [Deploy smart contracts using CREATE opcode](https://github.com/zksync-sdk/zksync2-examples/blob/main/go/09_deploy_create.go).
- [Deploy smart contracts using CREATE2 opcode](https://github.com/zksync-sdk/zksync2-examples/blob/main/go/12_deploy_create2.go).
- [Deploy smart accounts using CREATE opcode](https://github.com/zksync-sdk/zksync2-examples/blob/main/go/17_deploy_create_account.go).
- [Deploy smart accounts using CREATE2 opcode](https://github.com/zksync-sdk/zksync2-examples/blob/main/go/18_deploy_create2_account.go).

## Contracts interfaces

Expand Down
Loading

0 comments on commit a11412f

Please sign in to comment.