Skip to content

Commit a11412f

Browse files
fix(go-sdk): remove examples (matter-labs#891)
Co-authored-by: Nicolas Villanueva <[email protected]>
1 parent a442e6d commit a11412f

File tree

15 files changed

+173
-2200
lines changed

15 files changed

+173
-2200
lines changed

docs/.vuepress/sidebar/en.ts

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ export const enSidebar = sidebar({
218218
children: [
219219
{
220220
text: "Getting Started",
221-
link: "/build/tooling/zksync-cli/getting-started.md",
222-
},
221+
link: "/build/tooling/zksync-cli/getting-started.md",
222+
},
223223
"/build/tooling/zksync-cli/commands.md",
224224
"/build/tooling/zksync-cli/examples/contract-interaction.md"
225225
]
@@ -304,7 +304,7 @@ export const enSidebar = sidebar({
304304
},
305305
]
306306
},
307-
307+
308308
],
309309
},
310310
{
@@ -396,22 +396,7 @@ export const enSidebar = sidebar({
396396
text: "Go",
397397
collapsible: true,
398398
children: [
399-
{
400-
text: "Getting Started",
401-
collapsible: true,
402-
children: [
403-
"/build/sdks/go/getting-started",
404-
"/build/sdks/go/examples/deposit",
405-
"/build/sdks/go/examples/transfer",
406-
"/build/sdks/go/examples/withdraw",
407-
"/build/sdks/go/examples/get-confirmed-tokens",
408-
"/build/sdks/go/examples/create",
409-
"/build/sdks/go/examples/create2",
410-
"/build/sdks/go/examples/custom-paymaster/deploy-token",
411-
"/build/sdks/go/examples/custom-paymaster/deploy-account",
412-
"/build/sdks/go/examples/custom-paymaster/use-paymaster",
413-
],
414-
},
399+
"/build/sdks/go/getting-started",
415400
"/build/sdks/go/clients",
416401
"/build/sdks/go/accounts",
417402
"/build/sdks/go/accounts-l1-l2",
@@ -596,7 +581,7 @@ export const enSidebar = sidebar({
596581
{
597582
text: "Components",
598583
collapsible: true,
599-
children: [
584+
children: [
600585
{
601586
text: "Overview",
602587
link: "/zk-stack/components/overview.md",
@@ -609,21 +594,21 @@ export const enSidebar = sidebar({
609594
text: "Smart Contracts",
610595
link: "/zk-stack/components/smart-contracts/smart-contracts.md",
611596
},
612-
{
597+
{
613598
text: "System Contracts",
614599
link: "/zk-stack/components/smart-contracts/system-contracts.md",
615-
}
600+
}
616601
]
617602
},
618603
{
619604
text: "Shared Bridge",
620605
link: "/zk-stack/components/shared-bridges.md"
621-
606+
622607
},
623608
{
624609
text: "Sequencer / Server",
625610
link: "/zk-stack/components/sequencer-server.md"
626-
611+
627612
},
628613
{
629614
text: "zkEVM",
@@ -889,15 +874,15 @@ export const enSidebar = sidebar({
889874
}
890875
],
891876
},
892-
{
877+
{
893878
text: "Fee Withdrawer",
894879
link: "/zk-stack/components/fee-withdrawer.md"
895880
},
896-
{
881+
{
897882
text: "Portal - Wallet + Bridge",
898883
link: "/zk-stack/components/portal-wallet-bridge.md"
899884
},
900-
{
885+
{
901886
text: "Block Explorer",
902887
link: "/zk-stack/components/block-explorer.md"
903888
},

docs/build/sdks/go/accounts-l1-l2.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ Full examples of actions below are available on the [getting started](./getting-
1717

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

20-
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).
20+
For a comprehensive example demonstrating the deposit workflow, refer to the following:
21+
22+
- [Deposit ETH](https://github.com/zksync-sdk/zksync2-examples/blob/main/go/01_deposit.go).
23+
- [Deposit ERC20 tokens](https://github.com/zksync-sdk/zksync2-examples/blob/main/go/05_deposit_token.go).
2124

2225
## Request execute
2326

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

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

46-
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).
49+
For a complete example of how to execute the deposit workflow, take a look at the following:
50+
51+
- [Withdraw ETH](https://github.com/zksync-sdk/zksync2-examples/blob/main/go/03_withdraw.go).
52+
- [Withdraw ERC20 token](https://github.com/zksync-sdk/zksync2-examples/blob/main/go/07_withdraw_token.go).

docs/build/sdks/go/contracts.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ contracts and smart accounts. There are the following objects that implement the
1818
Contract instantiation is the same as in the [`geth`](https://geth.ethereum.org/docs/developers/dapp-developer/native-bindings) library. For
1919
examples of how to deploy and instantiate contracts and accounts, refer to the following:
2020

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

2526
## Contracts interfaces
2627

0 commit comments

Comments
 (0)