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
// FINAL SCRIPT | |
let skull_trigger = 0 | |
// set length of timer for art changing | |
let numSecs=30 | |
// read in all features to overwrite URLs | |
let w1 = parcel.getFeatureById('w1') | |
let w1i = parcel.getFeatureById('w1i')//finger icon for interactive objkt |
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
name: Automated Backups Cryptovoxels | |
on: | |
schedule: | |
- cron: '0 10 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 |
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://wiki.cryptovoxels.com/en/External-API | |
# Pull data from opensea using vox tokenIDs pulled in grt_vox_pull_tokenID.R | |
library(jsonlite) | |
library(httr) | |
library(tidyverse) | |
# example | |
url <- 'https://www.cryptovoxels.com/api/parcels.json' | |
# Get the data from the url |
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
// add script to a button inside Cryptovoxels to return a response | |
feature.on('click',e=>{ | |
// Use GraphQL endpoint to pull data and make model that takes x,y Decentraland coordinates and returns prediction based on the latest 10 sales! | |
fetch('https://api.thegraph.com/subgraphs/name/decentraland/marketplace', { | |
method: 'POST', | |
headers: { | |
'Content-Type': 'application/json', |
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
name: Automated Backups Cryptovoxels | |
on: | |
schedule: | |
- cron: '0 10 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 |
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
library(ghql) | |
library(jsonlite) | |
library(tidyverse) | |
# connect to endpoint | |
con = GraphqlClient$new( | |
url = "https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-analytics" | |
) | |
# initialize a new query | |
graphql_request = Query$new() |
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 image_show = parcel.getFeatureById('image_show_delegation') | |
feature.on('click',e=>{ | |
image_show.set({'url':"http://r-cv-api.org/delegation/delegations_unrealized_rewards?delegator="+e.player.wallet}) | |
console.log(e.player.wallet) | |
}) |
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 * as ethUtil from 'ethereumjs-util'; | |
console.log('got here'); | |
window.ethUtil = ethUtil; |
OlderNewer