This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let transaction = { | |
to: "0x4e59b44847b379578588920cA78FbF26c0B4956C", | |
data: "0x7b2a534017df7c8e60cae826ded173059515be961317969b93d9d47b01ab042a60e06040523480156200001157600080fd5b50604051620097e1380380620097e1833981016040819052620000349162000ffc565b808230604051620000459062000c23565b6001600160a01b03928316815291166020820152604001604051809103906000f08015801562000079573d6000803e3d6000fd5b506001600160a01b03908116608052831660a052805160009015620000d357620000a3826200013a565b620000d082604051602001620000ba91906200116e565b60408051601f19818403018152919052620001ee565b90505b6001600160a01b031660c05250620000ea62000259565b620000f7600084620002ac565b7f55add213c41f3851b4506717b8af695a4256979dff496dcaae7789f6121331aa620001248185620002ac565b620001308180620002c4565b505050506200147f565b8051600160005b82811015620001955762000177848281518110620001635762000163620011d6565b60200260200101516200032b60201b60201c565b9150811562000195576200018d60018262001202565b905062000141565b5080620001e95760405162461bcd60e51b8152602060048201526 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function (data) { | |
// No Data found | |
if (!data) return 0; | |
let { transactions } = data; | |
// User has not performed any transactions | |
if (!transactions || transactions.length == 0) return 0; | |
let validTransactions = transactions.filter((transaction) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: Unlicensed | |
pragma solidity ^0.8.0; | |
contract Todo { | |
struct Task { | |
bool isComplete; | |
string description; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REMIX DEFAULT WORKSPACE | |
Remix default workspace is present when: | |
i. Remix loads for the very first time | |
ii. A new workspace is created with 'Default' template | |
iii. There are no files existing in the File Explorer | |
This workspace contains 3 directories: | |
1. 'contracts': Holds three contracts with increasing levels of complexity. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: Unlicensed | |
pragma solidity ^0.8.0; | |
contract Todo { | |
struct Task { | |
bool isComplete; | |
string description; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
/** | |
* @title Ballot | |
* @dev Implements voting process along with vote delegation | |
*/ | |
contract Ballot { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
/** | |
* @title Storage | |
* @dev Store & retrieve value in a variable | |
* @custom:dev-run-script ./scripts/deploy_with_ethers.ts | |
*/ | |
contract HelloWorld { |