This file contains hidden or 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
| import React from "react"; | |
| import classes from './App.scss'; | |
| const App = () => { | |
| return <div className={classes.app}>Hello React!</div>; | |
| }; | |
| export default App; |
This file contains hidden or 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
| This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
| โ did:3:bafyreigvarwlqf4ascor2rolrm2tmtenf6x6jtrgiksmlfjkbo6ctvqweu โ | |
| Create your profile today to start building social connection and trust online at https://3Box.io/ |
This file contains hidden or 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.4.22 <0.9.0; | |
| contract Address { | |
| event OwnerChanged( address indexed oldOwner, address indexed newOwner, uint256 value); | |
| event Received(address indexed sender, uint value); | |
This file contains hidden or 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.4.22 <0.7.0; | |
| contract Address { | |
| // address addressA = 0x111122223333444455556666777788889999AAAABBBBCCCCDDDDEEEEFFFFCCCC; notimplicity convertible | |
| address addressA; | |
| function compressAddressSize() external pure returns(address ) { |
This file contains hidden or 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.5.0 <0.9.0; | |
| import "github/OpenZeppelin/openzeppelin-contracts/contracts/math/SafeMath.sol"; | |
| contract Scoin { | |
| using SafeMath for uint256; | |
| address public minter; | |
| mapping (address => uint256) public balances; |
This file contains hidden or 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
| const Registration = artifacts.require("Registration"); | |
| const fs = require('fs'); | |
| const path = '/../src/metaData.js'; // need to create src folder first | |
| module.exports = async function (deployer) { | |
| await deployer.deploy(Registration); | |
| const instance = await Registration.deployed(); | |
| fs.writeFile( | |
| __dirname + path, |
This file contains hidden or 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
| specVersion: 0.0.5 | |
| schema: | |
| file: ./schema.graphql | |
| features: | |
| - fullTextSearch | |
| - ipfsOnEthereumContracts | |
| dataSources: | |
| - kind: ethereum | |
| name: baycToken | |
| network: mainnet |
This file contains hidden or 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
| # fulltext query: searchable keywords | |
| type _Schema_ | |
| @fulltext( | |
| name: "apeFilter" | |
| language: en | |
| algorithm: rank | |
| include: [ | |
| { | |
| entity: "BoredApeToken" | |
| fields: [{ name: "eyes" }, { name: "background" }] |
This file contains hidden or 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
| import { log, ipfs, json, JSONValue } from "@graphprotocol/graph-ts"; | |
| import { | |
| Transfer as TransferEvent, | |
| baycToken as BaycTokenContract, | |
| } from "../generated/baycToken/baycToken"; | |
| import { BoredApeToken, BoredApeUser } from "../generated/schema"; | |
| export function handleTransfer(event: TransferEvent): void { | |
| /** | |
| * load ipfs of bayc |
This file contains hidden or 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: MIT | |
| pragma solidity ^0.8.7; | |
| /// @title A simple contract named MerkleTrie | |
| /// @author 0xAnon101 | |
| /// @notice Shows you the functioning of Merkle Trie. Not meant to be used in Production environment | |
| /// due to high gas cost in this demo methodology. It is here just to understand the underlining | |
| /// structure of Merkle Trie. | |
| /// @dev Implementaion using custom string based array which includes sample transactions. | |
| contract MerkleTrie { |