Skip to content

Commit

Permalink
update links
Browse files Browse the repository at this point in the history
  • Loading branch information
Envoy-VC committed Jul 21, 2022
1 parent c9e383e commit 29cdf0f
Show file tree
Hide file tree
Showing 88 changed files with 348 additions and 288 deletions.
Binary file removed Day 001 - Licenses and Pragma/cover.png
Binary file not shown.
Binary file removed Day 002 - Comments/cover.png
Binary file not shown.
Binary file removed Day 003 - Initializing Basic Contract/cover.png
Binary file not shown.
Binary file removed Day 004 - Variables and Scopes/cover.png
Binary file not shown.
Binary file removed Day 005 - Operators/cover.png
Binary file not shown.
119 changes: 0 additions & 119 deletions Day 005 - Operators/readme.md

This file was deleted.

Binary file removed Day 006 - Types/cover.png
Binary file not shown.
Binary file removed Day 007 - Functions/cover.png
Binary file not shown.
Binary file removed Day 008 - Loops/cover.png
Binary file not shown.
Binary file removed Day 009 - Decision Making/cover.png
Binary file not shown.
Binary file added Day 01 - Licenses and Pragma/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<h1> 100 Days Of Solidity: Licences and Pragma</h1>
<h1> 30 Days Of Solidity: Licenses and Pragma</h1>
<a class="header-badge" target="_blank" href="https://dev.to/envoy_">
<img src="https://img.shields.io/badge/dev.to-0A0A0A?style=for-the-badge&logo=devdotto&logoColor=white">
</a>
Expand All @@ -11,20 +11,21 @@
<a href="https://dev.to/envoy_" target="_blank">Vedant Chainani</a><br>
<small> June, 2022</small>
</sub>

</div>

[Day 2 >>](../Day%20002%20-%20Comments/readme.md)
[Day 2 >>](../Day%2002%20-%20Comments/readme.md)

![Day X](./cover.png)

---

# 📔 Day 1

## Licences
## Licenses

```solidity
// SPDX-Licence-Identifier: Licence Name
// SPDX-License-Identifier: License Name
```

SPDX license identifiers should be added to the top of contract files.
Expand All @@ -34,10 +35,10 @@ The license should be from one of the following: [https://spdx.org/licenses/](h

❗ If there are multiple license identifiers in the contract file the compiler will now show an error.

eg -
eg -

```solidity
// SPDX-Licence-Identifier: MIT
// SPDX-License-Identifier: MIT
```

---
Expand All @@ -61,4 +62,4 @@ pragma solidity 0.8.7;

---

[Day 2 >>](../Day%20002%20-%20Comments/readme.md)
[Day 2 >>](../Day%2002%20-%20Comments/readme.md)
Binary file removed Day 010 - Arrays/cover.png
Binary file not shown.
Binary file removed Day 011 - Array Operations/cover.png
Binary file not shown.
Binary file removed Day 012 - Enums/cover.png
Binary file not shown.
Binary file removed Day 013 - Structs/cover.png
Binary file not shown.
Binary file removed Day 014 - Mappings/cover.png
Binary file not shown.
Binary file removed Day 015 - Units/cover.png
Binary file not shown.
Binary file removed Day 016 - Require Statement/cover.png
Binary file not shown.
Binary file removed Day 017 - Assert Statement/cover.png
Binary file not shown.
Binary file removed Day 018 - Revert Statement/cover.png
Binary file not shown.
Binary file removed Day 019 - Function Modifiers/cover.png
Binary file not shown.
Binary file added Day 02 - Comments/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions Day 002 - Comments/readme.md → Day 02 - Comments/readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<h1> 100 Days Of Solidity: Comments and NatSpec</h1>
<h1> 30 Days Of Solidity: Comments and NatSpec</h1>
<a class="header-badge" target="_blank" href="https://dev.to/envoy_">
<img src="https://img.shields.io/badge/dev.to-0A0A0A?style=for-the-badge&logo=devdotto&logoColor=white">
</a>
Expand All @@ -11,9 +11,10 @@
<a href="https://dev.to/envoy_" target="_blank">Vedant Chainani</a><br>
<small> June, 2022</small>
</sub>

</div>

[<< Day 1](./../Day%20001%20-%20Licenses%20and%20Pragma/readme.md) | [Day 3 >>](./../Day%20003%20-%20Initializing%20Basic%20Contract/readme.md)
[<< Day 1](./../Day%2001%20-%20Licenses%20and%20Pragma/readme.md) | [Day 3 >>](./../Day%2003%20-%20Initializing%20Basic%20Contract/readme.md)

![Day X](./cover.png)

Expand All @@ -24,7 +25,7 @@
Solidity supports both C-style and C++-style comments, Thus −

- Any text between a // and the end of a line is treated as a comment and is ignored by Solidity Compiler.
- Any text between the characters /*and*/ is treated as a comment. This may span multiple lines.
- Any text between the characters /_and_/ is treated as a comment. This may span multiple lines.

```solidity
// This is a Single Line Comment
Expand All @@ -34,7 +35,7 @@ Solidity supports both C-style and C++-style comments, Thus −
```solidity
/*
This is A Multi-Line Comment
This is A Multi-Line Comment
It can also Include Emojis 😃
*/
Expand Down Expand Up @@ -64,4 +65,4 @@ More on NatSpec - [here](https://docs.soliditylang.org/en/latest/natspec-format.

---

[<< Day 1](./../Day%20001%20-%20Licenses%20and%20Pragma/readme.md) | [Day 3 >>](./../Day%20003%20-%20Initializing%20Basic%20Contract/readme.md)
[<< Day 1](./../Day%2001%20-%20Licenses%20and%20Pragma/readme.md) | [Day 3 >>](./../Day%2003%20-%20Initializing%20Basic%20Contract/readme.md)
Binary file removed Day 020 - Constructors/cover.png
Binary file not shown.
Binary file removed Day 021 - Single Inheritance/cover.png
Binary file not shown.
Binary file removed Day 022 - Multi-level Inheritance/cover.png
Binary file not shown.
Binary file removed Day 023 - Hierarchical Inheritance/cover.png
Binary file not shown.
Binary file removed Day 024 - Multiple Inheritance/cover.png
Diff not rendered.
Binary file removed Day 025 - Fallback and Receive Function/cover.png
Diff not rendered.
Binary file added Day 03 - Initializing Basic Contract/cover.png
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<h1> 100 Days Of Solidity: Initializing Basic Contract</h1>
<h1> 30 Days Of Solidity: Initializing Basic Contract</h1>
<a class="header-badge" target="_blank" href="https://dev.to/envoy_">
<img src="https://img.shields.io/badge/dev.to-0A0A0A?style=for-the-badge&logo=devdotto&logoColor=white">
</a>
Expand All @@ -11,9 +11,10 @@
<a href="https://dev.to/envoy_" target="_blank">Vedant Chainani</a><br>
<small> June, 2022</small>
</sub>

</div>

[<< Day 2](../Day%20002%20-%20Comments/readme.md) | [Day 4 >>](../Day%20004%20-%20Variables%20and%20Scopes/readme.md)
[<< Day 2](../Day%2002%20-%20Comments/readme.md) | [Day 4 >>](../Day%2004%20-%20Variables%20and%20Scopes/readme.md)

![Day X](./cover.png)

Expand All @@ -40,4 +41,4 @@ MintNft

---

[<< Day 2](../Day%20002%20-%20Comments/readme.md) | [Day 4 >>](../Day%20004%20-%20Variables%20and%20Scopes/readme.md)
[<< Day 2](../Day%2002%20-%20Comments/readme.md) | [Day 4 >>](../Day%2004%20-%20Variables%20and%20Scopes/readme.md)
Binary file added Day 04 - Variables and Scopes/cover.png
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<h1> 100 Days Of Solidity: Variables and Scopes</h1>
<h1> 30 Days Of Solidity: Variables and Scopes</h1>
<a class="header-badge" target="_blank" href="https://dev.to/envoy_">
<img src="https://img.shields.io/badge/dev.to-0A0A0A?style=for-the-badge&logo=devdotto&logoColor=white">
</a>
Expand All @@ -11,17 +11,17 @@
<a href="https://dev.to/envoy_" target="_blank">Vedant Chainani</a><br>
<small> June, 2022</small>
</sub>

</div>

[<< Day 3](../Day%20003%20-%20Initializing%20Basic%20Contract/readme.md) | [Day 5 >>](../Day%20005%20-%20Operators/readme.md)
[<< Day 3](../Day%2003%20-%20Initializing%20Basic%20Contract/readme.md) | [Day 5 >>](../Day%2005%20-%20Operators/readme.md)

![Day X](./cover.png)

---

# 📔 Day 4


# Variables

Solidity supports three types of variables.
Expand All @@ -37,7 +37,7 @@ Solidity supports three types of variables.
While naming your variables in Solidity, keep the following rules in mind.

- You should not use any of the Solidity reserved keywords as a variable name. For example, break or boolean variable names are not valid.
- Solidity variable names should not start with a numeral (0-9). They must begin with a letter or an underscore character. For example, 123test is an invalid variable name but _123test is a valid one.
- Solidity variable names should not start with a numeral (0-9). They must begin with a letter or an underscore character. For example, 123test is an invalid variable name but \_123test is a valid one.
- Solidity variable names are case-sensitive. For example, Name and name are two different variables.

---
Expand All @@ -56,6 +56,7 @@ contract SolidityTest {
}
}
```

---

## Local Variable
Expand All @@ -79,14 +80,15 @@ contract SolidityTest {
```

# Global Variables

These are special variables which exist in global workspace and provide information about the blockchain and transaction properties.

| Name | Returns |
--- | --- |
| blockhash(uint blockNumber) returns (bytes32) | Hash of the given block - only works for 256 most recent, excluding current, blocks |
| block.coinbase (address payable) | Current block miner's address |
| block.difficulty (uint) | Current block difficulty |
| block.gaslimit (uint) | Current block gaslimit |
| Name | Returns |
| --------------------------------------------- | ----------------------------------------------------------------------------------- |
| blockhash(uint blockNumber) returns (bytes32) | Hash of the given block - only works for 256 most recent, excluding current, blocks |
| block.coinbase (address payable) | Current block miner's address |
| block.difficulty (uint) | Current block difficulty |
| block.gaslimit (uint) | Current block gaslimit |

More on Global Variables [here](https://docs.soliditylang.org/en/v0.8.10/units-and-global-variables.html#block-and-transaction-properties)

Expand All @@ -100,14 +102,14 @@ Scope of local variables is limited to function in which they are defined but St
- `Internal` − Internal state variables can be accessed only internally from the current contract or contract deriving from it without using this.
- `Private` − Private state variables can be accessed only internally from the current contract they are defined not in the derived contract from it.

eg-
eg-

```solidity
pragma solidity ^0.8.6;
contract C {
uint public data = 30;
uint internal iData= 10;
function x() public returns (uint) {
data = 3; // internal access
return data;
Expand Down Expand Up @@ -135,4 +137,4 @@ contract D is C {

---

[<< Day 3](../Day%20003%20-%20Initializing%20Basic%20Contract/readme.md) | [Day 5 >>](../Day%20005%20-%20Operators/readme.md)
[<< Day 3](../Day%2003%20-%20Initializing%20Basic%20Contract/readme.md) | [Day 5 >>](../Day%2005%20-%20Operators/readme.md)
File renamed without changes.
Binary file added Day 05 - Operators/cover.png
Loading

0 comments on commit 29cdf0f

Please sign in to comment.