Skip to content

Instantly share code, notes, and snippets.

View mhoangvslev's full-sized avatar
🎼
Interested in OMR, MIR

Minh-Hoang DANG mhoangvslev

🎼
Interested in OMR, MIR
View GitHub Profile
import { ethers } from "ethers";
export declare interface Strategies {
DataExtractionStrategy: DataExtractionStrategies;
PersistenceStrategy: PersistenceStrategies;
}
export interface DataExtractionStrategies { [iteration: number]: DataExtractionStrategy; }
export declare interface DataExtractionStrategy {
# Create a folder with shared folders
mkdir config models database strategies plugins
# Download neo4j plugins
echo "Downloading neo4j plugins"
curl -L "https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases/download/3.5.0.4/apoc-3.5.0.4-all.jar" > plugins/apoc-3.5.0.4-all.jar
curl -L "https://github.com/neo4j-contrib/neo4j-graph-algorithms/releases/download/3.5.4.0/graph-algorithms-algo-3.5.4.0.jar" > plugins/graph-algorithms-algo-3.5.4.0.jar
# Download prepared elements
echo "Setting up..."
module.exports = {
kittyId: {
type: 'number',
primary: true,
},
genes: {
type: 'string',
},
generation: {
type: 'number'
module.exports = {
providers: {
timeout: 0,
infura: {
network: "mainnet",
projectId: "YOUR_PROJECT_ID"
},
etherscan: {
network: 'homestead',
api: 'YOUR_API'