{{ title }}
6 |├── .nojekyll
├── CNAME
├── public
├── favicon.ico
├── index.html
└── hicdex.css
├── babel.config.js
├── vue.config.js
├── jsconfig.json
├── src
├── components
│ ├── Nav.vue
│ ├── charts
│ │ ├── LineChart.js
│ │ ├── EarningsContainer.vue
│ │ ├── EarningsPerObjkt.vue
│ │ ├── ArtistVsSecondary.vue
│ │ ├── ActiveUsers.vue
│ │ ├── Secondary.vue
│ │ ├── Cumulative.vue
│ │ └── TradeAvg.vue
│ ├── Tile.vue
│ ├── Foot.vue
│ ├── Timestamp.vue
│ ├── SwapFilters.vue
│ ├── BuyersList.vue
│ ├── HistoryItem.vue
│ ├── Subjkt.vue
│ ├── SwapItem.vue
│ ├── SoldItem.vue
│ ├── FlipItem.vue
│ ├── Gallery.vue
│ └── Objkt.vue
├── main.js
├── views
│ ├── Charts.vue
│ ├── Docs.vue
│ ├── CreatorGallery.vue
│ ├── CollectorGallery.vue
│ ├── PriceHistory.vue
│ ├── CreatorCollectors.vue
│ ├── Sold.vue
│ ├── SwapsOfMyWork.vue
│ ├── SwapsOfMyCollection.vue
│ ├── Objkt.vue
│ ├── Flip.vue
│ └── Home.vue
├── App.vue
├── utils.js
└── router.js
├── .gitignore
├── README.md
├── .eslintrc.js
├── LICENSE
└── package.json
/.nojekyll:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/CNAME:
--------------------------------------------------------------------------------
1 | hicdex.com
2 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hicdex/hicdex-hen-graphql-samples/HEAD/public/favicon.ico
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset',
4 | ],
5 | };
6 |
--------------------------------------------------------------------------------
/vue.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | pages: {
3 | index: {
4 | title: 'hicdex',
5 | entry: 'src/main.js',
6 | },
7 | },
8 | };
9 |
--------------------------------------------------------------------------------
/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "include": [
3 | "./src/**/*"
4 | ],
5 | "compilerOptions": {
6 | "baseUrl": ".",
7 | "paths": {
8 | "public": [
9 | "public/*"
10 | ],
11 | "@": [
12 | "src/*"
13 | ]
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/components/Nav.vue:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
--------------------------------------------------------------------------------
/src/components/charts/LineChart.js:
--------------------------------------------------------------------------------
1 | import { Line, mixins } from 'vue-chartjs';
2 |
3 | const { reactiveProp } = mixins;
4 |
5 | export default {
6 | extends: Line,
7 | mixins: [reactiveProp],
8 | props: ['options'],
9 | mounted() {
10 | this.renderChart(this.chartData, this.options);
11 | },
12 | };
13 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 |
6 | # local env files
7 | .env.local
8 | .env.*.local
9 |
10 | # Log files
11 | npm-debug.log*
12 | yarn-debug.log*
13 | yarn-error.log*
14 | pnpm-debug.log*
15 |
16 | # Editor directories and files
17 | .idea
18 | .vscode
19 | *.suo
20 | *.ntvs*
21 | *.njsproj
22 | *.sln
23 | *.sw?
24 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # hicdex-hen-graphql-samples
2 |
3 | ## Project setup
4 | ```
5 | npm install
6 | ```
7 |
8 | ### Compiles and hot-reloads for development
9 | ```
10 | npm run serve
11 | ```
12 |
13 | ### Compiles and minifies for production
14 | ```
15 | npm run build
16 | ```
17 |
18 | ### Lints and fixes files
19 | ```
20 | npm run lint
21 | ```
22 |
23 | ### Customize configuration
24 | See [Configuration Reference](https://cli.vuejs.org/config/).
25 |
--------------------------------------------------------------------------------
/src/components/Tile.vue:
--------------------------------------------------------------------------------
1 |
2 | {{ title }}
10 | A wallet is considered active if it either minted, swapped, or bought an objkt on that day. 11 |
12 |24 | Big thanks to __orderandchaos 25 | (HEN) 26 | for helping with these charts! 27 |
28 |
6 | The main entities of the schema are listed below.
7 |
8 | Rely on introspection / graphiql to discover what fields and relations are available.
9 |
hic_et_nunc_token13 | The OBJKTs table. 14 |
15 | 16 |hic_et_nunc_holder18 | Wallets / HEN users. 19 |
20 | 21 |hic_et_nunc_swap
23 | Swaps are OBJKTs put up for sale.
24 | A swap has an amount and a price.
25 | Putting 10 editions objkt #123 for sale at 1 xtz means a swap with
26 | amount=10, price=1000000.
27 |
28 | status can have one of three values describing the lifecycle of a swap:
29 |
0, active swap, something can be bought from this swap,
32 | 1, finished swap, everything from this swap has been sold,
35 | 2, canceled swap, the swap has been canceled, parts of it might have been sold but not all of it, otherwise it would be 1 (finished).
38 | hic_et_nunc_tag44 | OBJKT tags 45 |
46 | 47 |hic_et_nunc_token_holder
49 | Which wallet (see hic_et_nunc_holder) own what
50 |
hic_et_nunc_token_tag54 | OBJKT <-> tag relationship 55 |
56 | 57 |hic_et_nunc_trade
59 | A trade represents an OBJKT being sold.
60 |
61 | It has a relationship to the buyer, the seller, the token being sold/bought, the swap being acted upon.
62 |
{{ graphqlTemplate(query, {address}) }}
21 | {{ graphqlTemplate(query, {address}) }}
21 | {{ graphqlTemplate(query, {token: objkt}) }}
21 | 50 | by 51 | {{ props.row.token.creator.name }} 52 | {{ props.row.token.creator_id }} 53 |
54 |{{ graphqlTemplate(query, {address}) }}
21 |
24 | {{ graphqlTemplate(query, {address}) }}
21 | {{ graphqlTemplate(query, {address}) }}
21 | {{ graphqlTemplate(query, {address}) }}
21 | 35 | {{ objkt.title }} 36 |
37 |{{ objkt.description }}51 | 52 |
{{ objkt.mime }}
53 |
54 |
55 |
56 |
57 | {{ graphqlTemplate(query, {id: objkt}) }}
30 | {{ graphqlTemplate(query, {address}) }}
13 | 16 | hicdex is a Tezos indexers focused on indexing hicetnunc.xyz's 17 | smart contracts activity. The indexed data is made available by exposing a public GraphQL endpoint. 18 |
19 | 20 |
23 | Write queries on the GraphiQL explorer
24 | or use the endpoint https://api.hicdex.com/v1/graphql
25 |
29 | Below are some sample tools built to showcase hicdex and to help you build your own tools based on H=N's data. 30 | Each tool also prints usable JavaScript code that shows how to achieve the same result as the tool. 31 |
32 |40 | Audit a single objkt. 41 |
42 |46 | Explore the price history of an OBJKT. 47 |
48 |52 | Some charts showing what's happening on HEN over time. 53 |
54 |64 | What you sold and when, primary and secondary. 65 |
66 |70 | What you have bought and are either trying to sell on the secondary market 71 | or have sold on the secondary market. 72 |
73 |77 | All your artworks in a single call. Some artists might want to display their creations on their website. 78 |
79 |83 | Why not show your collection on your website, build a nice exhibition as if you were an actuall gallery (hint: you are.) 84 |
85 |help hicdex
100 |102 | If you value this tool, please support my effort and the time I spend developing it and maintaining it. 103 |
104 | 105 |118 | to hicdex.tez 119 |
120 |123 | You can also 124 | 125 | buy some generative art, 126 | although my artistic output dropped dramatically with all the time dedicated to hicdex. 127 |
128 | 129 |
130 |
131 | {{ list[n].url }}
132 | (by @{{ list[n].twitter }})
133 |
134 |
135 | {{ list[n].description }}
136 |
137 |
138 |
139 |
146 | Which artworks of yours are either on sale on the secondary market 147 | or have been sold on the secondary market. 148 |
149 |153 | A list of your biggest fans: everyone who bought one of your piece on the primary market and how many they bought total. 154 |
155 || timestamp | 13 |14 | {{ objkt.timestamp }} 15 | | 16 |
| creator | 20 |
21 | |
23 |
| title | 27 |{{ objkt.title }} | 28 |
| description | 32 |{{ objkt.description }} | 33 |
| token_tags | 37 |38 | 43 | | 44 |
| metadata | 48 |{{ objkt.metadata }} | 49 |
| supply | 53 |{{ objkt.supply }} | 54 |
| royalties | 58 |{{ objkt.royalties }} | 59 |
| mime | 63 |{{ objkt.mime }} | 64 |
| artifact_uri | 68 |{{ objkt.artifact_uri }} | 69 |
| thumbnail_uri | 73 |{{ objkt.thumbnail_uri }} | 74 |
| display_uri | 78 |{{ objkt.display_uri }} | 79 |
| extra | 83 | |
84 |
| hdao_balance | 88 |{{ (objkt.hdao_balance / 1e6).toFixed(5) }} | 89 |