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
{ | |
"artist": "Paper Hawk", | |
"artworkName": "Buzz", | |
"description": "Paper collage, using salvaged and original watercolour papers" | |
} |
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
{ | |
"name": "Buzz", | |
"description": "Paper collage, using salvaged and original watercolour papers", | |
"image": "https://ipfs.infura.io/ipfs/QmWc6YHE815F8kExchG9kd2uSsv7ZF1iQNn23bt5iKC6K3/image", | |
"meta": "https://ipfs.infura.io/ipfs/QmWc6YHE815F8kExchG9kd2uSsv7ZF1iQNn23bt5iKC6K3/other" | |
} |
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
function mint(string _tokenURI, bytes16 _edition, uint256 _priceInWei, uint32 _auctionStartDate, address _artistAccount) external onlyKnownOrigin { | |
.... | |
} |
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
{ | |
"title": "Asset Metadata", | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "Identifies the asset to which this NFT represents", | |
}, | |
"description": { | |
"type": "string", |
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
{ | |
"attempt_number": 5, | |
"event": { | |
"created_at": "2018-02-16T08:50:20Z", | |
"data": { | |
"id": "xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", | |
"name": "Test", | |
"status": "NEW", | |
"pricing": { | |
"BCH": { |
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 functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
// Define a onRequest trigger - this will be invoked from every webhook | |
exports.coinbaseToFirebase = functions.https.onRequest((req, res) => { | |
// Simply log the headers & body (Debug only) | |
console.log(JSON.stringify(req.headers, null, 4)); | |
console.log(JSON.stringify(req.body, null, 4)); |
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 userId = session.message.message.user.id; | |
const channelId = session.message.address.channelId; | |
// Load the specified user | |
firebase.database().ref(`chat-users/${channelId}/${userId}`) | |
.once('value') | |
.then((snapshot) => { | |
// Get the ref data | |
let user = snapshot.val(); |
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
bot.on("contactRelationUpdate", (message) => { | |
const userId = message.user.id; | |
const username = message.user.name || "--"; | |
const channelId = message.address.channelId; | |
const address = message.address; | |
// When the users adds the bot | |
if (message.action === "add") { | |
// Persist the user to firebase |
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
'use strict'; | |
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
const functions = require('firebase-functions'); | |
exports.emailProcessor = functions.database.ref('/email/raw/{emailId}').onWrite(event => { | |
if (event.data.exists()) { | |
let rawEmail = event.data.val(); |
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
'use strict'; | |
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
const IncomingWebhook = require('@slack/client').IncomingWebhook; | |
const url = 'https://hooks.slack.com/services/${SLACK_API}'; | |
const functions = require('firebase-functions'); | |
/** | |
* Pushes from firebase ref /exception to slack chanel |