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

Commit

Permalink
Merge branch 'main' into db/update-en-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter authored May 13, 2024
2 parents b7c9273 + c322a99 commit e3495b2
Show file tree
Hide file tree
Showing 10 changed files with 361 additions and 8 deletions.
1 change: 1 addition & 0 deletions cspell-zksync.txt
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ psql
jemalloc
recid
plux
pipx

// ETC
gitter
Expand Down
4 changes: 4 additions & 0 deletions docs/.vuepress/sidebar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ export const enSidebar = sidebar({
text: "SubQuery",
link: "/build/tutorials/tooling-guides/subquery.md",
},
{
text: "DipDup",
link: "/build/tutorials/tooling-guides/dipdup.md",
},
],
},
{
Expand Down
Binary file added docs/assets/images/dipdupnew.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 docs/assets/images/dockerps.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 docs/assets/images/hasurarequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
164 changes: 164 additions & 0 deletions docs/build/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,170 @@ curl -X POST -H "Content-Type: application/json" \
}
```

### `zks_sendRawTransactionWithDetailedOutput`

Executes a transaction and returns its hash, storage logs, and events that would have been generated
if the transaction had already been included in the block. The API has a similar behaviour to
`eth_sendRawTransaction` but with some extra data returned from it.

With this API Consumer apps can apply "optimistic" events in their applications instantly without having to wait for
zkSync block confirmation time.

It’s expected that the optimistic logs of two uncommitted transactions that modify the same state will not have causal
relationships between each other.

#### Inputs

| Parameter | Type | Description |
| --------- | -------- | --------------------------------------------------------------------------- |
| `data` | `string` | The signed transaction. Typically, signed with a library such as ethers.js. |

#### curl example

```curl
curl -X POST -H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["Signed Transaction"],"id":1}' \
"https://mainnet.era.zksync.io"
```

#### Output

```json
{
"transactionHash": "0xd586a9381ac33a70d1c34704664209242ee90316878fc1695aa8e4cf553c8595",
"storageLogs": [
{
"address": "0x000000000000000000000000000000000000800b",
"key": "0x7",
"writtenValue": "0x40000000000000000000000006641f961"
},
{
"address": "0x000000000000000000000000000000000000800b",
"key": "0x6",
"writtenValue": "0x5f5e100"
},
{
"address": "0x000000000000000000000000000000000000800b",
"key": "0x9",
"writtenValue": "0xc0000000000000000000000006641f961"
},
{
"address": "0x000000000000000000000000000000000000800b",
"key": "0x16",
"writtenValue": "0xe1ef29fc6c51f74bbdef5bc1406e3c9925d89c5b1f79215648b82ac15419bcbe"
},
{
"address": "0x000000000000000000000000000000000000800b",
"key": "0xa",
"writtenValue": "0x0"
},
{
"address": "0x000000000000000000000000000000000000800b",
"key": "0x10c",
"writtenValue": "0xc0000000000000000000000006641f961"
},
{
"address": "0x000000000000000000000000000000000000800b",
"key": "0xa",
"writtenValue": "0xe3ed371c32f62f3b3a28d51b909b2668e293c6cbfa4b4fd549c8f00a9a93a296"
},
{
"address": "0x000000000000000000000000000000000000800b",
"key": "0x110",
"writtenValue": "0x0"
},
{
"address": "0x000000000000000000000000000000000000800b",
"key": "0x10f",
"writtenValue": "0x88"
},
{
"address": "0x000000000000000000000000000000000000800b",
"key": "0x1",
"writtenValue": "0x8001"
},
{
"address": "0x000000000000000000000000000000000000800b",
"key": "0x2",
"writtenValue": "0x5f5e100"
},
{
"address": "0x0000000000000000000000000000000000008003",
"key": "0xeaa2b2fbf0b42c559059e5e9510edc15755f1c1883f0e41d5ba5f9aea4ac201a",
"writtenValue": "0x4"
},
{
"address": "0x000000000000000000000000000000000000800a",
"key": "0xeaa2b2fbf0b42c559059e5e9510edc15755f1c1883f0e41d5ba5f9aea4ac201a",
"writtenValue": "0x55ce6fa97340"
},
{
"address": "0x000000000000000000000000000000000000800a",
"key": "0x31b66141c575a054316a84da9cf4aa6fe0abd373cab1bf4ac029ffc061aae0da",
"writtenValue": "0xb9b031bf400"
},
{
"address": "0x000000000000000000000000000000000000800b",
"key": "0x1",
"writtenValue": "0x36615cf349d7f6344891b1e7ca7c72883f5dc049"
},
{
"address": "0x000000000000000000000000000000000000800b",
"key": "0x1",
"writtenValue": "0x8001"
},
{
"address": "0x000000000000000000000000000000000000800a",
"key": "0x31b66141c575a054316a84da9cf4aa6fe0abd373cab1bf4ac029ffc061aae0da",
"writtenValue": "0xa7557c54f00"
},
{
"address": "0x000000000000000000000000000000000000800a",
"key": "0xeaa2b2fbf0b42c559059e5e9510edc15755f1c1883f0e41d5ba5f9aea4ac201a",
"writtenValue": "0x56f41b001840"
}
],
"events": [
{
"address": "0x000000000000000000000000000000000000800a",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x00000000000000000000000036615cf349d7f6344891b1e7ca7c72883f5dc049",
"0x0000000000000000000000000000000000000000000000000000000000008001"
],
"data": "0x00000000000000000000000000000000000000000000000000000b9b031bf400",
"blockHash": null,
"blockNumber": null,
"l1BatchNumber": "0x4",
"transactionHash": "0xd586a9381ac33a70d1c34704664209242ee90316878fc1695aa8e4cf553c8595",
"transactionIndex": "0x0",
"logIndex": null,
"transactionLogIndex": null,
"logType": null,
"removed": false
},
{
"address": "0x000000000000000000000000000000000000800a",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000000000000000000000000000000000008001",
"0x00000000000000000000000036615cf349d7f6344891b1e7ca7c72883f5dc049"
],
"data": "0x00000000000000000000000000000000000000000000000000000125ab56a500",
"blockHash": null,
"blockNumber": null,
"l1BatchNumber": "0x4",
"transactionHash": "0xd586a9381ac33a70d1c34704664209242ee90316878fc1695aa8e4cf553c8595",
"transactionIndex": "0x0",
"logIndex": null,
"transactionLogIndex": null,
"logType": null,
"removed": false
}
]
}
```

## PubSub API

zkSync is fully compatible with [Geth's pubsub API](https://geth.ethereum.org/docs/interacting-with-geth/rpc/pubsub), except for the `syncing` subscription. This is because nodes on the zkSync network are technically always synchronized.
Expand Down
6 changes: 0 additions & 6 deletions docs/build/developer-reference/account-abstraction.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ head:

# Account Abstraction

::: warning

- Please note that with the system update released in Feb 2023, the `ergs` concept is only used by the VM while the API layer operates with `gas`.
- For more information, read the [changelog].
:::

## Introduction

On Ethereum there are two types of accounts: [externally owned accounts (EOAs)](https://ethereum.org/en/developers/docs/accounts/#externally-owned-accounts-and-key-pairs) and [contracts accounts](https://ethereum.org/en/developers/docs/accounts/#contract-accounts).
Expand Down
1 change: 1 addition & 0 deletions docs/build/tooling/data-indexers.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Welcome to the Analytics page, a comprehensive hub dedicated to interacting with

- [the-graph](../tutorials/tooling-guides/the-graph.md)
- [subquery](../tutorials/tooling-guides/subquery.md)
- [dipdup](../tutorials/tooling-guides/dipdup.md)

### Contribute

Expand Down
4 changes: 2 additions & 2 deletions docs/build/tooling/nft-marketplaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ The following NFT marketplaces are specialized in facilitating the trade, creati
[Element](https://element.market/) is a community-driven aggregated marketplace where you can buy and sell NFTs across different platforms, save money, and earn rewards.\
**Specialty**: Aggregated Marketplace, Rewards

### Kreatorland
### Libera

[Kreatorland](https://kreatorland.com/) is a native NFT marketplace built specifically for the zkSync Era.\
[Libera](https://libera.xyz/) is a native NFT marketplace built specifically for the zkSync Era.\
**Specialty**: zkSync Era Native

### OKX NFT
Expand Down
Loading

0 comments on commit e3495b2

Please sign in to comment.