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

Commit

Permalink
Links and changelog (#302)
Browse files Browse the repository at this point in the history
* fix broken links

* changelog info

* typo

* test redirect

* test redirect 2

* test redirects 3

* fix redirects, again

* test again, again, again

* moves redirects to prod env
  • Loading branch information
uF4No authored Feb 17, 2023
1 parent c4f3eee commit 5253c36
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 115 deletions.
4 changes: 2 additions & 2 deletions docs/dev/building-on-zksync/fair-onboarding-alpha.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default async function (hre: HardhatRuntimeEnvironment) {
}
```

To run this script, make sure your `hardhat.config.ts` file is configured for zkSync ([find an example here](https://v2-docs.zksync.io/dev/developer-guides/hello-world.html). You can use `npx zksync-cli@latest create PROJECT_NAME` to scaffold a new project easily in case you don’t have one already.
To run this script, make sure your `hardhat.config.ts` file is configured for zkSync ([find an example here](https://era.zksync.io/docs/dev/building-on-zksync/hello-world.html). You can use `npx zksync-cli@latest create PROJECT_NAME` to scaffold a new project easily in case you don’t have one already.

Place the script files in the `deploy` folder and run:

Expand All @@ -142,7 +142,7 @@ Registered addresses are free to bridge tokens to zkSync by building a custom br

## How to deploy

If you need a general refresher on deploying to zkSync we recommend first reading [this section](https://v2-docs.zksync.io/dev/developer-guides/contracts/contract-deployment.html) of our documentation — otherwise you may refer to our [Quickstart Guide](https://v2-docs.zksync.io/dev/developer-guides/hello-world.html).
If you need a general refresher on deploying to zkSync we recommend first reading [this section](https://era.zksync.io/docs/dev/building-on-zksync/contracts/contract-deployment.html) of our documentation — otherwise you may refer to our [Quickstart Guide](https://era.zksync.io/docs/dev/building-on-zksync/hello-world.html).

To deploy your contracts to mainnet you need to include it in the `networks` section of your `hardhat.config.ts` file:

Expand Down
20 changes: 19 additions & 1 deletion docs/dev/troubleshooting/changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
# Changelog

## Compilers updated (Feb 14th 2023)

## Compiler & local-setup update (Feb 16th 2023)

Version `1.3.3` of `zksolc` has been released and the zksync docker image of the local-setup has been updated. Details:

- Fixes a bug that detected ERC20 `transfer` calls as ETH `transfer` and produced a compilation error.
- Detection of `transfer` and `send` methods in smart contracts now returns a warning message (similar to `1.3.1`). The new warning message reminds developers that using these methods to transfer ETH can cause issues and suggest replacing them with `payable(address).call[value: <X>]("")`.
- `transfer` can be used to transfer other tokens (e.g. ERC20) without any issues.
- Improvements in the zksync node error messages returned on estimate gas requests.

### How to update your project

This new version is optional, contracts compiled with `1.3.x` will still work.

- Update the compiler version in the `hardhat.config.ts` file to `1.3.3`.
- Re-compile contracts.
- Update the docker images of the local-setup with `docker-compose pull` and restart the its state by running the `./clear.sh` script.

## Compilers update (Feb 14th 2023)

Version `1.3.2` of both `zksolc` and `zkvyper` has been released. Changes include:

Expand Down
278 changes: 166 additions & 112 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,140 +1,194 @@
{
"hosting": [
"hosting": [
{
"target": "prod",
"public": "dist",
"ignore": [],
"rewrites": [],
"headers": [
{
"source": "**",
"headers": [
"target": "prod",
"public": "dist",
"ignore": [],
"rewrites": [],
"headers": [
{
"source": "**",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache, no-store, must-revalidate"
"key": "Cache-Control",
"value": "no-cache, no-store, must-revalidate"
},
{
"key": "Referrer-Policy",
"value": "no-referrer, strict-origin-when-cross-origin"
"key": "Referrer-Policy",
"value": "no-referrer, strict-origin-when-cross-origin"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "DENY"
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
"key": "X-XSS-Protection",
"value": "1; mode=block"
}
]
]
}
],
"redirects": [
{
"source": "/",
"destination": "/docs/",
"type": "302"
},
{
"source": "/docs/dev/developer-guides/contracts/system-contracts.html",
"destination": "/docs/dev/developer-guides/system-contracts.html",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/system-contracts.html",
"destination": "/dev/developer-guides/system-contracts.html",
"type": "302"
},
{
"source": "/dev/zksync-v2/aa.html",
"destination": "/dev/developer-guides/aa.html",
"type": "302"
},
{
"source": "/dev/developer-guides/hello-world.html",
"destination": "/dev/building-on-zksync/hello-world.html",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/contract-verification.html",
"destination": "/dev/building-on-zksync/contracts/contract-verification.html",
"type": "302"
},
{
"source": "/dev/developer-guides/building-on-zksync/events.html",
"destination": "/dev/building-on-zksync/events.html",
"type": "302"
},
{
"source": "/dev/developer-guides/building-on-zksync/events.html",
"destination": "/dev/building-on-zksync/events.html",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/contracts.html",
"destination": "/dev/building-on-zksync/contracts/contracts.html",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/contract-deployment.html",
"destination": "/dev/building-on-zksync/contracts/contract-deployment.html",
"type": "302"
},
{
"source": "/dev/building-on-zksync/bridging/l1-l2-interop.html",
"destination": "/dev/developer-guides/bridging/l1-l2-interop.html",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/contract-deployment.html",
"destination": "/dev/building-on-zksync/contracts/contract-deployment.html",
"type": "302"
}
],
"redirects": [
{
"source": "/",
"destination": "/docs/",
"type": "302"
}
]
]
},
{
"target": "staging",
"public": "dist",
"ignore": [],
"rewrites": [],
"headers": [
{
"source": "**",
"headers": [
"target": "staging",
"public": "dist",
"ignore": [],
"rewrites": [],
"headers": [
{
"source": "**",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache, no-store, must-revalidate"
"key": "Cache-Control",
"value": "no-cache, no-store, must-revalidate"
},
{
"key": "Referrer-Policy",
"value": "no-referrer, strict-origin-when-cross-origin"
"key": "Referrer-Policy",
"value": "no-referrer, strict-origin-when-cross-origin"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "DENY"
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
"key": "X-XSS-Protection",
"value": "1; mode=block"
}
]
]
}
],
"redirects": [
{
"source": "/",
"destination": "/docs/",
"type": "302"
},
{
"source": "/docs/dev/developer-guides/contracts/system-contracts.html",
"destination": "/docs/dev/developer-guides/system-contracts.html",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/system-contracts.html",
"destination": "/dev/developer-guides/system-contracts.html",
"type": "302"
},
{
"source": "/dev/zksync-v2/aa.html",
"destination": "/dev/developer-guides/aa.html",
"type": "302"
},
{
"source": "/dev/developer-guides/hello-world.html",
"destination": "/dev/building-on-zksync/hello-world.html",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/contract-verification.html",
"destination": "/dev/building-on-zksync/contracts/contract-verification.html",
"type": "302"
},
{
"source": "/dev/developer-guides/building-on-zksync/events.html",
"destination": "/dev/building-on-zksync/events.html",
"type": "302"
},
{
"source": "/dev/developer-guides/building-on-zksync/events.html",
"destination": "/dev/building-on-zksync/events.html",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/contracts.html",
"destination": "/dev/building-on-zksync/contracts/contracts.html",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/contract-deployment.html",
"destination": "/dev/building-on-zksync/contracts/contract-deployment.html",
"type": "302"
},
{
"source": "/dev/building-on-zksync/bridging/l1-l2-interop.html",
"destination": "/dev/developer-guides/bridging/l1-l2-interop.html",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/contract-deployment.html",
"destination": "/dev/building-on-zksync/contracts/contract-deployment.html",
"type": "302"
}
],
"redirects": [
{
"source": "/",
"destination": "/docs/",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/system-contracts.html",
"destination": "/dev/building-on-zksync/contracts/system-contracts.html",
"type": "302"
},

{
"source": "/dev/developer-guides/contracts/system-contracts.html",
"destination": "/dev/building-on-zksync/contracts/system-contracts.html",
"type": "302"
},
{
"source": "/dev/zksync-v2/aa.html",
"destination": "/dev/developer-guides/aa.html",
"type": "302"
},
{
"source": "/dev/developer-guides/hello-world.html",
"destination": "/dev/building-on-zksync/hello-world.html",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/contract-verification.html",
"destination": "/dev/building-on-zksync/contracts/contract-verification.html",
"type": "302"
},
{
"source": "/dev/developer-guides/building-on-zksync/events.html",
"destination": "/dev/building-on-zksync/events.html",
"type": "302"
},
{
"source": "/dev/developer-guides/building-on-zksync/events.html",
"destination": "/dev/building-on-zksync/events.html",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/contracts.html",
"destination": "/dev/building-on-zksync/contracts/contracts.html",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/contract-deployment.html",
"destination": "/dev/building-on-zksync/contracts/contract-deployment.html",
"type": "302"
},
{
"source": "/dev/building-on-zksync/bridging/l1-l2-interop.html",
"destination": "/dev/developer-guides/bridging/l1-l2-interop.html",
"type": "302"
},
{
"source": "/dev/developer-guides/contracts/contract-deployment.html",
"destination": "/dev/building-on-zksync/contracts/contract-deployment.html",
"type": "302"
}
]
]
}
]
]
}

0 comments on commit 5253c36

Please sign in to comment.