Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into smol-squid-hacks
Browse files Browse the repository at this point in the history
# Conflicts:
#	metasquid/package.json
  • Loading branch information
vikiival committed Dec 28, 2023
2 parents 115e461 + ce251ed commit 5f077ed
Show file tree
Hide file tree
Showing 65 changed files with 4,412 additions and 4,677 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.minimark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish minimark package to npmjs

on:
push:
branches:
- main
- master
paths:
- 'minimark/**'

defaults:
run:
working-directory: minimark

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

Monorepository of npm packages we use in our projects.

## 📦 hyperdata

[![hyperdata version][hyperdata-version-src]][hyperdata-version-href]

Library for working with NFT metadata.

## 📦 if-that

[![if-that version][if-that-version-src]][if-that-version-href]
Expand Down Expand Up @@ -34,16 +40,11 @@ Fetching data from IPFS has never been easier.

Logical and friendly wrapper for Substrate API (@polkadot).

## 📦 vuex-options

> ⚠️ package was deprecated, proceed with care
[![vuex-options version][vuex-options-version-src]][vuex-options-version-href]

Vuex options for KodaDot NFT Gallery.


<!-- Badges -->
[hyperdata-version-src]: https://img.shields.io/npm/v/@kodadot1/hyperdata/latest.svg?style=flat&colorA=18181B&colorB=FF7AC3
[hyperdata-version-href]: https://npmjs.com/package/@kodadot1/hyperdata

[if-that-version-src]: https://img.shields.io/npm/v/@kodadot1/if-that/latest.svg?style=flat&colorA=18181B&colorB=FF7AC3
[if-that-version-href]: https://npmjs.com/package/@kodadot1/if-that

Expand All @@ -58,6 +59,3 @@ Vuex options for KodaDot NFT Gallery.

[sub-api-version-src]: https://img.shields.io/npm/v/@kodadot1/sub-api/latest.svg?style=flat&colorA=18181B&colorB=FF7AC3
[sub-api-version-href]: https://npmjs.com/package/@kodadot1/sub-api

[vuex-options-version-src]: https://img.shields.io/npm/v/@kodadot1/vuex-options/latest.svg?style=flat&colorA=18181B&colorB=FF7AC3
[vuex-options-version-href]: https://npmjs.com/package/@kodadot1/vuex-options
File renamed without changes.
3 changes: 2 additions & 1 deletion vuex-options/.eslintignore → hyperdata/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist
node_modules
coverage
dist
4 changes: 4 additions & 0 deletions hyperdata/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": ["plugin:vue/recommended", "prettier"],
"rules": {}
}
10 changes: 10 additions & 0 deletions hyperdata/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
coverage
dist
types
.vscode
.DS_Store
.eslintcache
*.log*
*.conf*
*.env*
5 changes: 5 additions & 0 deletions hyperdata/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"trailingComma": "es5",
"semi": false
}
21 changes: 21 additions & 0 deletions hyperdata/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
75 changes: 75 additions & 0 deletions hyperdata/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# @kodadot1/hyperdata

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions][github-actions-src]][github-actions-href]
[![Codecov][codecov-src]][codecov-href]

> Magic static void main

## Usage

Install package:

```sh
# npm
npm install @kodadot1/hyperdata

# yarn
yarn add @kodadot1/hyperdata

# pnpm
pnpm install @kodadot1/hyperdata
```

Import:

```js
// ESM
import * as static from "@kodadot1/hyperdata";

// CommonJS
const static = require("@kodadot1/hyperdata");
```

## Available files

### 🔧 normalize

Unifying data structure into one format

- attributeFrom - unify attribute to one format
- contentFrom - unify metadata to one format
- normalize - sanitize content fields to one format

### 🔧 utils

Misc utils for manipulating with data

### 🔧 types

Misc types for metadata namely:

- OpenSea
- FxHash
- Tezos (TZIP-16)
- ERC-5773
- [NFT Metadata CheatSheet](https://www.pob.studio/learn/metadata-cheat-sheet)

## License

Made with 💛

Published under [MIT License](./LICENSE).

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/@kodadot1/hyperdata?style=flat-square
[npm-version-href]: https://npmjs.com/package/@kodadot1/hyperdata
[npm-downloads-src]: https://img.shields.io/npm/dm/@kodadot1/hyperdata?style=flat-square
[npm-downloads-href]: https://npmjs.com/package/@kodadot1/hyperdata
[github-actions-src]: https://img.shields.io/github/actions/workflow/status/@kodadot1/hyperdata/ci.yml?branch=main&style=flat-square
[github-actions-href]: https://github.com/@kodadot1/hyperdata/actions?query=workflow%3Aci
[codecov-src]: https://img.shields.io/codecov/c/gh/@kodadot1/hyperdata/main?style=flat-square
[codecov-href]: https://codecov.io/gh/@kodadot1/hyperdata
11 changes: 11 additions & 0 deletions hyperdata/justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
pnpm build

test:
pnpm test

publish:
pnpm publish --access public

c VERSION:
git commit -am ":bookmark: hyperdata@{{VERSION}}"
42 changes: 42 additions & 0 deletions hyperdata/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "@kodadot1/hyperdata",
"version": "0.0.1-rc.3",
"description": "Get unified NFT content",
"repository": "kodadot/nft-gallery",
"license": "MIT",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "unbuild",
"dev": "vitest dev",
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test",
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w",
"prepack": "pnpm run build",
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
"test": "vitest run"
},
"devDependencies": {
"@kodadot1/minipfs": "0.4.1-rc.0",
"@vitest/coverage-v8": "^0.34.6",
"changelogen": "^0.5.5",
"eslint": "^8.50.0",
"eslint-config-unjs": "^0.2.1",
"prettier": "^3.0.3",
"typescript": "^5.2.2",
"unbuild": "^2.0.0",
"vitest": "^0.34.6"
}
}
Loading

0 comments on commit 5f077ed

Please sign in to comment.