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 ethers = require("ethers"); | |
| const provider = new ethers.providers.WebSocketProvider( | |
| "wss://mainnet.infura.io/ws/v3/<RPC-KEY-HERE>" | |
| ) | |
| const swapHistory = {} | |
| filter = { | |
| address: ["0xE1De07566cEb19D2e45B60B491776aB74C9b8d7A"], //token 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
    
  
  
    
  | // This script can be used to deploy the "Storage" contract using ethers.js library. | |
| // Please make sure to compile "./contracts/1_Storage.sol" file before running this script. | |
| // And use Right click -> "Run" from context menu of the file to run the script. Shortcut: Ctrl+Shift+S | |
| import { deploy } from './ethers-lib' | |
| (async () => { | |
| try { | |
| const result = await deploy('Storage', []) | |
| console.log(`address: ${result.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
    
  
  
    
  | // File: @openzeppelin/contracts/utils/math/SafeMath.sol | |
| // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) | |
| pragma solidity ^0.8.0; | |
| // CAUTION | |
| // This version of SafeMath should only be used with Solidity 0.8 or later, | 
  
    
      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
    
  
  
    
  | // File: @openzeppelin/contracts/utils/math/SafeMath.sol | |
| // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) | |
| pragma solidity ^0.8.0; | |
| // CAUTION | |
| // This version of SafeMath should only be used with Solidity 0.8 or later, | 
  
    
      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
    
  
  
    
  | pragma solidity >=0.7.0 <0.9.0; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Counters.sol"; | |
| import "contracts/utils.sol"; | |
| contract Bundle is ERC721Full { | |
| using Counters for Counters.Counter; | 
  
    
      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
    
  
  
    
  | //Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721) | |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/release-v4.4/contracts/token/ERC721/ERC721Upgradeable.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/release-v4.4/contracts/utils/CountersUpgradeable.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/release-v4.4/contracts/access/OwnableUpgradeable.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/release-v4.4/contracts/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/release-v4.4/contracts/proxy/utils/Initializable.sol"; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/release-v4.4/contracts/utils/ContextUpgradeable.sol"; | 
  
    
      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 Amplify, { Auth } from 'aws-amplify'; | |
| Amplify.configure({ | |
| Auth: { | |
| region: 'us-east-1', | |
| userPoolId: '**********', | |
| userPoolWebClientId: '******************', | |
| } | |
| }); | 
  
    
      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
    
  
  
    
  | # Original Matlab code https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html | |
| # | |
| # | |
| # Python port of depth filling code from NYU toolbox | |
| # Speed needs to be improved | |
| # | |
| # Uses 'pypardiso' solver | |
| # | |
| import scipy | |
| import skimage | 
  
    
      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
    
  
  
    
  | /* | |
| * @author vishal / https://github.com/10dimensions | |
| * @author zz85 / https://github.com/zz85 | |
| * @author mrdoob / http://mrdoob.com | |
| * Running this will allow you to drag three.js objects around the screen. | |
| */ | |
| import { | |
| Camera, | |
| EventDispatcher, | 
  
    
      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
    
  
  
    
  | using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using System.IO.Ports; | |
| using System; | |
| using System.Threading; | |
| public class SerialPortComm : MonoBehaviour | |
| { | |
| public static SerialPortComm Instance; | 
NewerOlder