Skip to content

Instantly share code, notes, and snippets.

View merlox's full-sized avatar
😄
Building great things together!

merlox merlox

😄
Building great things together!
View GitHub Profile
{
"$evidence": "https://raw.githubusercontent.com/merlox/art-marketplace/master/evidence.json",
"$schema": "http://json-schema.org/draft-07/schema",
"$name": "Lighthouse Watercolor",
"$image": "https://upload.wikimedia.org/wikipedia/commons/a/a3/Taran_Lighthouse_Kalinigrad_Oblast_Tatiana_Yagunova_Watercolor_painting.jpg"
}
[
{
"path":[
],
"nodes":[
{
"index":1,
"hash":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
import React from 'react'
import ReactDOM from 'react-dom'
import { MetamaskProvider } from '@0xcert/ethereum-metamask-provider'
import { schema88 } from '@0xcert/conventions'
import { Cert } from '@0xcert/cert'
// Assets Ledgers are groups of tokens that are managed by certain users just like mods in a chat to do what's required
// The Capabilities determine what those mods can do with the assets they are managing
// The Ethereum address that deploys this ledger has full powers to do whatever he wants as the administrator
import { AssetLedger, AssetLedgerCapability } from '@0xcert/ethereum-asset-ledger'
import './index.css'
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import { MetamaskProvider } from '@0xcert/ethereum-metamask-provider'
import { schema88 } from '@0xcert/conventions'
import { Cert } from '@0xcert/cert'
import { AssetLedger, AssetLedgerCapability } from '@0xcert/ethereum-asset-ledger'
// Assets Ledgers are groups of tokens that are managed by certain users just like mods in a chat to do what's required
// The Capabilities determine what those mods can do with the assets they are managing
// To configure new ERC721 assets
async displayBlueprint() {
const cert = new Cert({
schema: schema88
})
const asset = {
description: 'A lighthouse watercolor picture',
image: 'https://upload.wikimedia.org/wikipedia/commons/a/a3/Taran_Lighthouse_Kalinigrad_Oblast_Tatiana_Yagunova_Watercolor_painting.jpg',
name: 'Lighthouse Watercolor'
}
body {
margin: 0;
font-family: sans-serif;
text-align: center;
}
button {
border-radius: 10px;
padding: 20px;
color: white;
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
class Main extends React.Component {
constructor() {
super()
}
render() {
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
class Main extends React.Component {
constructor() {
super()
}
render() {
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<div id="root"></div>
</body>
</html>