From a7dbd08ba0d30cb3cb96f4d3df2980e1c04be227 Mon Sep 17 00:00:00 2001 From: Xi Zhang Date: Tue, 3 Oct 2023 12:45:34 -0500 Subject: [PATCH] Update content --- .../dapp/emerald/writing-dapps-on-emerald.mdx | 6 +++--- docs/dapp/sapphire/guide.mdx | 2 +- docs/dapp/sapphire/quickstart.mdx | 21 ++++++++++++++----- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/docs/dapp/emerald/writing-dapps-on-emerald.mdx b/docs/dapp/emerald/writing-dapps-on-emerald.mdx index 3c42197e12..95f30bd6bf 100644 --- a/docs/dapp/emerald/writing-dapps-on-emerald.mdx +++ b/docs/dapp/emerald/writing-dapps-on-emerald.mdx @@ -405,9 +405,9 @@ required gas price on Emerald. This value should already be propagated automatically by the web3 endpoint, but your deployment configuration might have ignored it. -Finally, consider increasing the `gasPrice` parameter in Hardhat config files -by a fraction (e.g. 10% or 20%). This will require more ROSE from your wallet -to deploy the contract, but you will also increase the chance of your +Finally, consider increasing the `gasPrice` parameter in the Hardhat config +file by a fraction (e.g. 10% or 20%). This will require more ROSE from your +wallet to deploy the contract, but you will also increase the chance of your transaction being included in the block. ### Execution of my contract failed. How do I debug what went wrong? diff --git a/docs/dapp/sapphire/guide.mdx b/docs/dapp/sapphire/guide.mdx index c16de7119a..e1bc50e82b 100644 --- a/docs/dapp/sapphire/guide.mdx +++ b/docs/dapp/sapphire/guide.mdx @@ -121,7 +121,7 @@ it'll work just fine. ### Languages & Frameworks Sapphire is programmable using any language that targets the EVM, such as Solidity -and Vyper. If you prefer to use an Ethereum framework like Hardhat or Foundry, you +or Vyper. If you prefer to use an Ethereum framework like Hardhat or Foundry, you can also use those with Sapphire; all you need to do is set your Web3 gateway URL. You can find the details of the Oasis Sapphire Web3 gateway [here](/dapp/sapphire#web3-gateway). diff --git a/docs/dapp/sapphire/quickstart.mdx b/docs/dapp/sapphire/quickstart.mdx index 6ee53ce9e7..e303fa3abd 100644 --- a/docs/dapp/sapphire/quickstart.mdx +++ b/docs/dapp/sapphire/quickstart.mdx @@ -91,15 +91,17 @@ index 414e974..49c95f9 100644 ``` By importing `@oasisprotocol/sapphire-hardhat` at the top of the config file, -any network config entry corresponding to the Sapphire's chain ID will +**any network config entry corresponding to the Sapphire's chain ID will automatically be wrapped with Sapphire specifics for encrypting and signing the -transactions. +transactions**. -#### Get some Sapphire Testnet tokens +### Get some Sapphire Testnet tokens Now for the fun part. We need to configure the Sapphire network and get some tokens. -Hit up the one and only [Oasis Testnet faucet] and this time select "Sapphire". -Submit the form and on your way. +Hit up the one and only [Oasis Testnet faucet] and select "Sapphire". +Submit the form and be on your way. + +[Oasis Testnet faucet]: https://faucet.testnet.oasis.dev ### Get the Contract @@ -184,6 +186,15 @@ example of this quickstart. ::: +:::info Example + +If your project involves building a web frontend, we recommend that you check +out the official [Oasis starter] files. + +[Oasis starter]: https://github.com/oasisprotocol/demo-starter + +::: + ## See also