diff --git a/.snippets/code/builders/ethereum/dev-env/waffle-mars/terminal/build-1.md b/.snippets/code/builders/ethereum/dev-env/waffle-mars/terminal/build-1.md new file mode 100644 index 000000000..79acfdcb9 --- /dev/null +++ b/.snippets/code/builders/ethereum/dev-env/waffle-mars/terminal/build-1.md @@ -0,0 +1,8 @@ +
+ npm run build + >waffle-mars@1.0.0 build + >waffle + Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: «SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. + --> contracts/MyToken.sol + +
\ No newline at end of file diff --git a/.snippets/code/builders/ethereum/dev-env/waffle-mars/terminal/build-2.md b/.snippets/code/builders/ethereum/dev-env/waffle-mars/terminal/build-2.md new file mode 100644 index 000000000..5513037f8 --- /dev/null +++ b/.snippets/code/builders/ethereum/dev-env/waffle-mars/terminal/build-2.md @@ -0,0 +1,11 @@ +
+ npm run build +
+ > waffle-mars@1.0.0 build + > waffle && mars +
+ Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. + --> contracts/MyToken.sol +
+ +
\ No newline at end of file diff --git a/.snippets/code/builders/ethereum/dev-env/waffle-mars/terminal/deploy-1.md b/.snippets/code/builders/ethereum/dev-env/waffle-mars/terminal/deploy-1.md new file mode 100644 index 000000000..63117b0f1 --- /dev/null +++ b/.snippets/code/builders/ethereum/dev-env/waffle-mars/terminal/deploy-1.md @@ -0,0 +1,11 @@ +
+ npm run deploy +
+ > waffle-mars@1.0.0 deploy + > ts-node src/deploy.ts +
+ Transaction: Deploy myToken + Fee: $0.00, Ξ0.0 + Balance: $4142380208.17,Ξ1207925.819614629174706176 + ENTER to submit, Ctrl+C to exit... +
\ No newline at end of file diff --git a/.snippets/code/builders/ethereum/dev-env/waffle-mars/terminal/deploy-2.md b/.snippets/code/builders/ethereum/dev-env/waffle-mars/terminal/deploy-2.md new file mode 100644 index 000000000..e6dc0806a --- /dev/null +++ b/.snippets/code/builders/ethereum/dev-env/waffle-mars/terminal/deploy-2.md @@ -0,0 +1,17 @@ +
+ npm run deploy +
+ > waffle-mars@1.0.0 deploy + > ts-node src/deploy.ts +
+ Transaction: Deploy myToken + Fee: $0.00,Ξ0.0 + Balance: + Sending + Block: 1 + $4142380208.17, Ξ1207925.819614629174706176 + Hash: Oxfa8bcad89cb8efdabfc@e5575dbe7151ce1c38f8aa67229fd5122bbdafe8b2f9 + Address: 0xC2Bf5F29a4384b1aB0C063e1c666f02121B6084a +
+ +
\ No newline at end of file diff --git a/builders/ethereum/dev-env/waffle-mars.md b/builders/ethereum/dev-env/waffle-mars.md index 5c911b680..344375a5d 100644 --- a/builders/ethereum/dev-env/waffle-mars.md +++ b/builders/ethereum/dev-env/waffle-mars.md @@ -161,7 +161,7 @@ That is all you need to do to configure Waffle, now you're all set to compile th npm run build ``` -![Waffle compiler output](/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-1.webp) +--8<-- 'code/builders/ethereum/dev-env/waffle-mars/terminal/build-1.md' After compiling your contracts, Waffle stores the JSON output in the `build` directory. Since the contract in this guide is based on OpenZeppelin's ERC-20 template, relevant ERC-20 JSON files will appear in the `build` directory too. @@ -375,7 +375,7 @@ Artifacts need to be generated for Mars so that typechecks are enabled within de npm run build ``` -![Waffle and Mars compiler output](/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-2.webp) +--8<-- 'code/builders/ethereum/dev-env/waffle-mars/terminal/build-2.md' If you open the `build` directory, you should now see an `artifacts.ts` file containing the artifact data needed for deployments. To continue on with the deployment process, you'll need to write a deployment script. The deployment script will be used to tell Mars which contract to deploy, to what network, and which account is to be used to trigger the deployment. @@ -443,11 +443,11 @@ You've configured the deployment, now it's time to actually deploy to Moonbase A 2. In your Terminal, Mars will prompt you to press `ENTER` to send your transaction - ![Mars confirm deployment](/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-3.webp) + --8<-- 'code/builders/ethereum/dev-env/waffle-mars/terminal/deploy-1.md' If successful, you should see details about your transaction including it's hash, the block it was included in, and it's address. -![Mars deployment output](/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-4.webp) +--8<-- 'code/builders/ethereum/dev-env/waffle-mars/terminal/deploy-2.md' Congratulations! You've deployed a contract to Moonbase Alpha using Waffle and Mars! diff --git a/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-1.webp b/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-1.webp deleted file mode 100644 index 0e4c33774..000000000 Binary files a/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-1.webp and /dev/null differ diff --git a/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-2.webp b/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-2.webp deleted file mode 100644 index e3f1f11a2..000000000 Binary files a/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-2.webp and /dev/null differ diff --git a/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-3.webp b/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-3.webp deleted file mode 100644 index 70d09e87a..000000000 Binary files a/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-3.webp and /dev/null differ diff --git a/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-4.webp b/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-4.webp deleted file mode 100644 index 31134c156..000000000 Binary files a/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-4.webp and /dev/null differ diff --git a/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-5.webp b/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-5.webp deleted file mode 100644 index 5a0cd3270..000000000 Binary files a/images/builders/ethereum/dev-env/waffle-mars/waffle-mars-5.webp and /dev/null differ