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
//on rinkeby test network | |
//contract address--0x9A48831A220c793ed4CcF0dCbD5390fB56EF9B91 | |
//symbol:gtx | |
pragma solidity ^0.4.16; | |
contract owned { | |
address public owner; | |
function owned() public { |
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
pragma solidity ^0.4.18; | |
contract UploadDetails { | |
struct Product { | |
uint amount; | |
string Name; | |
uint date; | |
string userName; | |
} |
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
pragma solidity ^0.4.21; | |
contract Escrow { | |
address buyer; | |
address seller; | |
uint amount; | |
function Escrow() public{ | |
// setBuyer | |
buyer = msg.sender; | |
} |
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
pragma solidity ^0.5.0; | |
// ---------------------------------------------------------------------------- | |
// | |
// Symbol : BOA | |
// Name : BOA token | |
// Total supply: 1,000,000.000000000000000000 | |
// Decimals : 18 | |
// ---------------------------------------------------------------------------- |
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
pragma solidity = 0.4.25; | |
contract IdentityRegistration { | |
struct UserDetails | |
{ | |
uint256 userId; | |
bytes32 Name; | |
bytes32 city; | |
bytes32 college; | |
bytes32 university; |
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
https://medium.com/@malliksarvepalli/hyperledger-fabric-1-4-on-multiple-hosts-using-docker-swarm-and-compose-ec668db0bad5 | |
https://usuarioperu.com/2019/11/18/hyperledger-fabric-docker-swarm-multiples-hosts/ | |
HOST 1 --->[email protected] | |
HOST 2 ---> ip-172.31.35.202 | |
HOST 3 ---> ip-172.31.23.92 | |
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
sendEmail = async (orgId: string): Promise<void> => { | |
const transporter = nodemailer.createTransport({ | |
host: 'smtp.office365.com', | |
port: 587, | |
secure: false, | |
auth: { | |
user: '***', | |
pass: '***', | |
}, | |
}); |
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
const { MongoClient } = require('mongodb'); | |
const { fetchDuneData } = require('./duneAPI'); | |
const queryConfig = require('./queryConfig.json'); | |
const uri = 'mongodb+srv://<username>:<password>@cluster0.11spvpz.mongodb.net/?retryWrites=true&w=majority'; | |
const client = new MongoClient(uri); | |
async function connectToDB() { | |
try { | |
await client.connect(); |
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
const axios = require('axios'); | |
async function fetchDuneData(queryId, apiKey) { | |
const apiUrl = `https://api.dune.com/api/v1/query/${queryId}/results`; | |
const response = await axios.get(apiUrl,{ headers: { 'X-Dune-API-Key': apiKey } }); | |
return response.data.result.rows; | |
} | |
module.exports = { | |
fetchDuneData |
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
import argparse | |
import time | |
import json | |
import csv | |
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
from bs4 import BeautifulSoup as bs | |
OlderNewer