Friday, March 24, 2023

118: Remix Editor

 Today I've been working with the Remix editor to create the smart contracts for a Hedera dApp I want to make. Stay tuned. 

Wednesday, March 22, 2023

117: Wordpress Migratons and PHP MyAdmin

 Today I took a Wordpress site I built using Local and migrated it onto a live server with a domain name. In order to do this I used the Duplicator plugin to create an archive of my local site and a PHP installer script. From there I navigated to CPANEL on my host and went into the database for the website, and uploaded the script and archive. From there I went to the URL and navigated to the file on the live domain. I also had to add a user to access the database from within the CPANEL backend, and give this users credentials to the installation page to build the website. The navigation was successful and everything works well. 

Tuesday, March 7, 2023

116: Tuples

 In Solidity, tuples can be used to return multiple data types from a function. A tuple is an ordered collection of values, similar to a list or an array. However, tuples are immutable, meaning that once they are created, their values cannot be changed.


Using tuples in Solidity can be useful when a function needs to return multiple pieces of information. For example, a function that calculates the average of an array might return both the average and the total sum of the array elements.


To declare a tuple in Solidity, use parentheses and separate the values with commas. To return a tuple from a function, list the values in the return statement, separated by commas.


Overall, tuples in Solidity provide a flexible and efficient way to return multiple values from a single function.

Monday, March 6, 2023

115: Chainlink

 Smart contracts rely on external data to execute their logic and perform their intended functions. However, getting reliable and secure data from off-chain sources can be challenging. This is where Chainlink comes in. Chainlink is a decentralized oracle network that provides reliable and tamper-proof data to smart contracts on the blockchain. It connects smart contracts with off-chain data sources in a decentralized manner, ensuring that data is accurate, trustworthy, and secure. By using Chainlink, smart contracts can become more powerful and versatile, with the ability to perform more complex functions and interact with real-world data in a secure and decentralized way.

Sunday, March 5, 2023

114: Web3 Provider

 The Injected Web3 Provider is a powerful tool used to establish a connection between web-based decentralized applications (dApps) and the Ethereum network via a browser extension, like MetaMask. By utilizing this provider, developers can enable users to interact with their dApps and the blockchain directly from their Ethereum accounts, without the need for additional software or hardware. This makes it simple for users to sign transactions, monitor account balances, and interact with smart contracts from within the dApp. Through the use of the Injected Web3 Provider, developers can provide an intuitive and secure user experience that is key to widespread adoption of decentralized technologies. Your dApp has access to the web3 variable, and from there can interact with smart contracts on the blockchain. 

Friday, March 3, 2023

113: ABI

 The ABI (Application Binary Interface) of a smart contract is a standardized format for describing the functions and variables of a contract in a way that can be easily understood and used by other applications. It defines the types of parameters and return values for each function, as well as the function names and their unique identifiers. The ABI is an important component of smart contract development, as it enables developers to interface with contracts from other applications and languages, making it possible to create decentralized applications that are interoperable with each other. All the methods of the smart contract are stored in JSON, allowing web apps to interact with the blockchain given the ABI and the contract address. 

Thursday, March 2, 2023

112: Web3.js

 Web3.js is a JavaScript library that enables developers to interact with the Ethereum blockchain and build decentralized applications (dApps) on top of it. It provides a simple and comprehensive API for handling tasks such as sending and receiving transactions, querying blockchain data, and managing smart contracts. With Web3.js, developers can create web-based dApps that leverage the decentralized and trustless nature of the Ethereum network. The library is actively maintained and widely used in the Ethereum development community, making it a valuable tool for anyone looking to build on top of the blockchain.

Wednesday, March 1, 2023

111: Natspec Comments

 The Solidity community has a standard for comments called natspec. Natspec comments provide a standard for writing human-readable documentation for Solidity smart contracts. By including natspec comments in code, developers can explain a contract's functions, parameters, and behavior, making it easier for others to understand and use the contract. Natspec comments use a consistent format including a brief description, parameter types, and a detailed explanation of a function's behavior. The natspec standard has been widely adopted in the Solidity community, and many popular tools support displaying natspec comments alongside contract code, improving the overall quality and usability of smart contracts on the Ethereum blockchain.

190: Sablier

 The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...