From b9f7f3d215d85abeb36c0ab3377f1eaf34a9461c Mon Sep 17 00:00:00 2001 From: yu23ki14 Date: Thu, 12 Dec 2024 22:42:42 +0900 Subject: [PATCH 1/2] get started for admin --- .../docs/getstarted/admin/assign-role.md | 9 ++ .../docs/getstarted/admin/create-role.md | 10 ++ .../docs/getstarted/admin/create-splitter.md | 47 +++++++ .../docs/getstarted/admin/create-workspace.md | 11 ++ .../getstarted/admin/distribute-rewards.md | 8 ++ pkgs/document/docs/getstarted/admin/index.md | 13 ++ pkgs/document/docs/getstarted/index.md | 7 + pkgs/document/docs/{about.md => welcome.md} | 5 +- pkgs/document/docusaurus.config.ts | 24 +++- pkgs/document/package.json | 4 +- pkgs/document/src/pages/index.tsx | 9 +- pkgs/document/static/img/toban-logo.svg | 6 + yarn.lock | 127 +++++++++++++++++- 13 files changed, 265 insertions(+), 15 deletions(-) create mode 100644 pkgs/document/docs/getstarted/admin/assign-role.md create mode 100644 pkgs/document/docs/getstarted/admin/create-role.md create mode 100644 pkgs/document/docs/getstarted/admin/create-splitter.md create mode 100644 pkgs/document/docs/getstarted/admin/create-workspace.md create mode 100644 pkgs/document/docs/getstarted/admin/distribute-rewards.md create mode 100644 pkgs/document/docs/getstarted/admin/index.md create mode 100644 pkgs/document/docs/getstarted/index.md rename pkgs/document/docs/{about.md => welcome.md} (97%) create mode 100644 pkgs/document/static/img/toban-logo.svg diff --git a/pkgs/document/docs/getstarted/admin/assign-role.md b/pkgs/document/docs/getstarted/admin/assign-role.md new file mode 100644 index 0000000..656aab7 --- /dev/null +++ b/pkgs/document/docs/getstarted/admin/assign-role.md @@ -0,0 +1,9 @@ +--- +title: 役割を付与 +sidebar_position: 3 +--- + +# 役割を付与 + +活動に参加しているメンバーに役割を付与していきます。 +付与した役割はユーザーごとに一時休止と削除ができます。 diff --git a/pkgs/document/docs/getstarted/admin/create-role.md b/pkgs/document/docs/getstarted/admin/create-role.md new file mode 100644 index 0000000..c94c452 --- /dev/null +++ b/pkgs/document/docs/getstarted/admin/create-role.md @@ -0,0 +1,10 @@ +--- +title: 役割を作成 +sidebar_position: 2 +--- + +# 役割を作成 + +ワークスペースを作成したら役割を作成します。 + +役割の詳細はあとからでも変更できます。 diff --git a/pkgs/document/docs/getstarted/admin/create-splitter.md b/pkgs/document/docs/getstarted/admin/create-splitter.md new file mode 100644 index 0000000..6514bc8 --- /dev/null +++ b/pkgs/document/docs/getstarted/admin/create-splitter.md @@ -0,0 +1,47 @@ +--- +title: トークン(報酬)分配コントラクトを作成 +sidebar_position: 4 +--- + +# トークン(報酬)分配コントラクトを作成 + +報酬を分配する役割・メンバーを選択して分配スマートコントラクトを作成します。 + +## 分配率の計算 + +分配率は以下の変数と式によって算出される個人ごとのスコアに基づきます。 + +- 役割の従事期間 +- 役割ごとの係数 +- アシストクレジットの保有率 + +### 個人のスコア + +個人 \(i\) が持つすべての役割についてスコアを合計します: + +$$ +\text{個人のスコア}_i = \sum_{j=1}^{m_i} \left( \sqrt{\text{従事期間}_{i,j}} \times \text{役割係数}_{i,j} \times \text{アシストクレジット保有率}_{i,j} \right) +$$ + +- mi: 個人 \(i\) が持つ役割の数 +- j: 役割を表すインデックス + +※役割を直接持たず、アシストクレジットのみ持っているメンバーの場合は、アシストクレジットをもらったメンバーの従事期間が適用されます。 + +### 全員のスコアの合計 + +すべての個人のスコアを合計します: + +$$ +\text{全員のスコア合計} = \sum_{i=1}^{n} \text{個人のスコア}_i +$$ + +- n: 全体の人数 + +### 各人の分配率の計算 + +個人 \(i\) の分配率: + +$$ +\text{分配率}_i = \frac{\text{個人のスコア}_i}{\text{全員のスコア合計}} +$$ diff --git a/pkgs/document/docs/getstarted/admin/create-workspace.md b/pkgs/document/docs/getstarted/admin/create-workspace.md new file mode 100644 index 0000000..e7dced8 --- /dev/null +++ b/pkgs/document/docs/getstarted/admin/create-workspace.md @@ -0,0 +1,11 @@ +--- +title: ワークスペースを作成 +sidebar_position: 1 +--- + +# ワークスペースを作成 + +まず、ワークスペースを作成します。ここで作成するワークスペースは組織やプロジェクト単位のものになります。 +ワークスペースを作成すると、Toban を扱うために必要な各スマートコントラクトが自動的に作成されます。 + +ワークスペースの詳細はあとからでも変更できます。 diff --git a/pkgs/document/docs/getstarted/admin/distribute-rewards.md b/pkgs/document/docs/getstarted/admin/distribute-rewards.md new file mode 100644 index 0000000..2ec920e --- /dev/null +++ b/pkgs/document/docs/getstarted/admin/distribute-rewards.md @@ -0,0 +1,8 @@ +--- +title: 報酬(トークン)を分配 +sidebar_position: 5 +--- + +# 報酬(トークン)を分配 + +任意のトークン(ネイティブトークンまたは ERC20 トークン)をまとめて分配コントラクトに送金することで、分配率に応じて自動的に分配されます。 diff --git a/pkgs/document/docs/getstarted/admin/index.md b/pkgs/document/docs/getstarted/admin/index.md new file mode 100644 index 0000000..9e93fed --- /dev/null +++ b/pkgs/document/docs/getstarted/admin/index.md @@ -0,0 +1,13 @@ +--- +title: 始める(管理者) +--- + +# 始める (管理者) + +Toban をつかうにあたってのステップ + +1. ワークスペースを作成 +2. 役割を作成 +3. 役割を付与 +4. 分配コントラクトを作成 +5. 報酬(トークン)を分配 diff --git a/pkgs/document/docs/getstarted/index.md b/pkgs/document/docs/getstarted/index.md new file mode 100644 index 0000000..e8e6138 --- /dev/null +++ b/pkgs/document/docs/getstarted/index.md @@ -0,0 +1,7 @@ +--- +title: Tobanを始める +--- + +# Toban を始める + +## ユーザー作成 diff --git a/pkgs/document/docs/about.md b/pkgs/document/docs/welcome.md similarity index 97% rename from pkgs/document/docs/about.md rename to pkgs/document/docs/welcome.md index ae513c2..659b75c 100644 --- a/pkgs/document/docs/about.md +++ b/pkgs/document/docs/welcome.md @@ -1,8 +1,9 @@ --- -title: About Toban +title: Welcome +sidebar_position: 1 --- -# Concept +# Welcome Toban is a simplest way to record contribution and distribute rewards. diff --git a/pkgs/document/docusaurus.config.ts b/pkgs/document/docusaurus.config.ts index 317eada..e3ca01c 100644 --- a/pkgs/document/docusaurus.config.ts +++ b/pkgs/document/docusaurus.config.ts @@ -1,13 +1,15 @@ import type * as Preset from "@docusaurus/preset-classic"; import type { Config } from "@docusaurus/types"; import { themes as prismThemes } from "prism-react-renderer"; +import rehypeKatex from "rehype-katex"; +import remarkMath from "remark-math"; // This runs in Node.js - Don't use client-side code here (browser APIs, JSX...) const config: Config = { title: "Toban", tagline: "Toban", - favicon: "img/favicon.ico", + favicon: "img/toban-logo.svg", // Set the production url of your site here url: "https://hackdays-io.github.io", @@ -40,6 +42,8 @@ const config: Config = { // Please change this to your repo. // Remove this to remove the "edit this page" links. editUrl: "https://github.com/hackdays-io/toban", + remarkPlugins: [remarkMath], + rehypePlugins: [rehypeKatex], }, theme: { customCss: "./src/css/custom.css", @@ -47,19 +51,27 @@ const config: Config = { } satisfies Preset.Options, ], ], - + stylesheets: [ + { + href: "https://cdn.jsdelivr.net/npm/katex@0.13.24/dist/katex.min.css", + type: "text/css", + integrity: + "sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM", + crossorigin: "anonymous", + }, + ], themeConfig: { // Replace with your project's social card - image: "img/logo.png", + image: "img/toban-logo.svg", navbar: { title: "Toban", logo: { alt: "Toban Logo", - src: "img/logo.png", + src: "img/toban-logo.svg", }, items: [ { - to: "/docs/about", + to: "/docs/welcome", label: "Docs", position: "left", }, @@ -78,7 +90,7 @@ const config: Config = { items: [ { label: "Docs", - to: "/docs/about", + to: "/docs/welcome", }, ], }, diff --git a/pkgs/document/package.json b/pkgs/document/package.json index 730e0ca..4bf9f14 100644 --- a/pkgs/document/package.json +++ b/pkgs/document/package.json @@ -21,7 +21,9 @@ "clsx": "^2.0.0", "prism-react-renderer": "^2.3.0", "react": "^18.0.0", - "react-dom": "^18.0.0" + "react-dom": "^18.0.0", + "rehype-katex": "7", + "remark-math": "6" }, "devDependencies": { "@docusaurus/module-type-aliases": "3.6.1", diff --git a/pkgs/document/src/pages/index.tsx b/pkgs/document/src/pages/index.tsx index 5a2d78c..6e0e027 100644 --- a/pkgs/document/src/pages/index.tsx +++ b/pkgs/document/src/pages/index.tsx @@ -8,12 +8,11 @@ import Layout from "@theme/Layout"; export default function Home(): JSX.Element { const { siteConfig } = useDocusaurusContext(); return ( - +
- +
+ +
); diff --git a/pkgs/document/static/img/toban-logo.svg b/pkgs/document/static/img/toban-logo.svg new file mode 100644 index 0000000..3adb2ba --- /dev/null +++ b/pkgs/document/static/img/toban-logo.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/yarn.lock b/yarn.lock index 3addbee..180966b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4969,6 +4969,11 @@ resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== +"@types/katex@^0.16.0": + version "0.16.7" + resolved "https://registry.yarnpkg.com/@types/katex/-/katex-0.16.7.tgz#03ab680ab4fa4fbc6cb46ecf987ecad5d8019868" + integrity sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ== + "@types/lru-cache@^5.1.0": version "5.1.1" resolved "https://registry.yarnpkg.com/@types/lru-cache/-/lru-cache-5.1.1.tgz#c48c2e27b65d2a153b19bfc1a317e30872e01eef" @@ -10840,6 +10845,37 @@ hasown@^2.0.0, hasown@^2.0.1, hasown@^2.0.2: dependencies: function-bind "^1.1.2" +hast-util-from-dom@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/hast-util-from-dom/-/hast-util-from-dom-5.0.1.tgz#c3c92fbd8d4e1c1625edeb3a773952b9e4ad64a8" + integrity sha512-N+LqofjR2zuzTjCPzyDUdSshy4Ma6li7p/c3pA78uTwzFgENbgbUrm2ugwsOdcjI1muO+o6Dgzp9p8WHtn/39Q== + dependencies: + "@types/hast" "^3.0.0" + hastscript "^9.0.0" + web-namespaces "^2.0.0" + +hast-util-from-html-isomorphic@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/hast-util-from-html-isomorphic/-/hast-util-from-html-isomorphic-2.0.0.tgz#b31baee386a899a2472326a3c5692f29f86d1d3c" + integrity sha512-zJfpXq44yff2hmE0XmwEOzdWin5xwH+QIhMLOScpX91e/NSGPsAzNCvLQDIEPyO2TXi+lBmU6hjLIhV8MwP2kw== + dependencies: + "@types/hast" "^3.0.0" + hast-util-from-dom "^5.0.0" + hast-util-from-html "^2.0.0" + unist-util-remove-position "^5.0.0" + +hast-util-from-html@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/hast-util-from-html/-/hast-util-from-html-2.0.3.tgz#485c74785358beb80c4ba6346299311ac4c49c82" + integrity sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw== + dependencies: + "@types/hast" "^3.0.0" + devlop "^1.1.0" + hast-util-from-parse5 "^8.0.0" + parse5 "^7.0.0" + vfile "^6.0.0" + vfile-message "^4.0.0" + hast-util-from-parse5@^8.0.0: version "8.0.2" resolved "https://registry.yarnpkg.com/hast-util-from-parse5/-/hast-util-from-parse5-8.0.2.tgz#29b42758ba96535fd6021f0f533c000886c0f00f" @@ -10854,6 +10890,13 @@ hast-util-from-parse5@^8.0.0: vfile-location "^5.0.0" web-namespaces "^2.0.0" +hast-util-is-element@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/hast-util-is-element/-/hast-util-is-element-3.0.0.tgz#6e31a6532c217e5b533848c7e52c9d9369ca0932" + integrity sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g== + dependencies: + "@types/hast" "^3.0.0" + hast-util-parse-selector@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz#352879fa86e25616036037dd8931fb5f34cb4a27" @@ -10957,6 +11000,16 @@ hast-util-to-parse5@^8.0.0: web-namespaces "^2.0.0" zwitch "^2.0.0" +hast-util-to-text@^4.0.0: + version "4.0.2" + resolved "https://registry.yarnpkg.com/hast-util-to-text/-/hast-util-to-text-4.0.2.tgz#57b676931e71bf9cb852453678495b3080bfae3e" + integrity sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A== + dependencies: + "@types/hast" "^3.0.0" + "@types/unist" "^3.0.0" + hast-util-is-element "^3.0.0" + unist-util-find-after "^5.0.0" + hast-util-whitespace@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/hast-util-whitespace/-/hast-util-whitespace-2.0.1.tgz#0ec64e257e6fc216c7d14c8a1b74d27d650b4557" @@ -12115,6 +12168,13 @@ jsonschema@^1.2.4: object.assign "^4.1.4" object.values "^1.1.6" +katex@^0.16.0: + version "0.16.15" + resolved "https://registry.yarnpkg.com/katex/-/katex-0.16.15.tgz#16b0d235aae8dfa3b2d5d63fd9874bfa394abfab" + integrity sha512-yE9YJIEAk2aZ+FL/G8r+UGw0CTUzEA8ZFy6E+8tc3spHUKq3qBnzCkI1CQwGoI9atJhVyFPEypQsTY7mJ1Pi9w== + dependencies: + commander "^8.3.0" + keccak@^3.0.0, keccak@^3.0.2, keccak@^3.0.3: version "3.0.4" resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.4.tgz#edc09b89e633c0549da444432ecf062ffadee86d" @@ -12645,6 +12705,19 @@ mdast-util-gfm@^3.0.0: mdast-util-gfm-task-list-item "^2.0.0" mdast-util-to-markdown "^2.0.0" +mdast-util-math@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/mdast-util-math/-/mdast-util-math-3.0.0.tgz#8d79dd3baf8ab8ac781f62b8853768190b9a00b0" + integrity sha512-Tl9GBNeG/AhJnQM221bJR2HPvLOSnLE/T9cJI9tlc6zwQk2nPk/4f0cHkOdEixQPC/j8UtKDdITswvLAy1OZ1w== + dependencies: + "@types/hast" "^3.0.0" + "@types/mdast" "^4.0.0" + devlop "^1.0.0" + longest-streak "^3.0.0" + mdast-util-from-markdown "^2.0.0" + mdast-util-to-markdown "^2.1.0" + unist-util-remove-position "^5.0.0" + mdast-util-mdx-expression@^1.0.0: version "1.3.2" resolved "https://registry.yarnpkg.com/mdast-util-mdx-expression/-/mdast-util-mdx-expression-1.3.2.tgz#d027789e67524d541d6de543f36d51ae2586f220" @@ -12808,7 +12881,7 @@ mdast-util-to-markdown@^1.0.0, mdast-util-to-markdown@^1.3.0: unist-util-visit "^4.0.0" zwitch "^2.0.0" -mdast-util-to-markdown@^2.0.0: +mdast-util-to-markdown@^2.0.0, mdast-util-to-markdown@^2.1.0: version "2.1.2" resolved "https://registry.yarnpkg.com/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz#f910ffe60897f04bb4b7e7ee434486f76288361b" integrity sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA== @@ -13052,6 +13125,19 @@ micromark-extension-gfm@^3.0.0: micromark-util-combine-extensions "^2.0.0" micromark-util-types "^2.0.0" +micromark-extension-math@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/micromark-extension-math/-/micromark-extension-math-3.1.0.tgz#c42ee3b1dd5a9a03584e83dd8f08e3de510212c1" + integrity sha512-lvEqd+fHjATVs+2v/8kg9i5Q0AP2k85H0WUOwpIVvUML8BapsMvh1XAogmQjOCsLpoKRCVQqEkQBB3NhVBcsOg== + dependencies: + "@types/katex" "^0.16.0" + devlop "^1.0.0" + katex "^0.16.0" + micromark-factory-space "^2.0.0" + micromark-util-character "^2.0.0" + micromark-util-symbol "^2.0.0" + micromark-util-types "^2.0.0" + micromark-extension-mdx-expression@^1.0.0: version "1.0.8" resolved "https://registry.yarnpkg.com/micromark-extension-mdx-expression/-/micromark-extension-mdx-expression-1.0.8.tgz#5bc1f5fd90388e8293b3ef4f7c6f06c24aff6314" @@ -15819,6 +15905,19 @@ regjsparser@^0.12.0: dependencies: jsesc "~3.0.2" +rehype-katex@7: + version "7.0.1" + resolved "https://registry.yarnpkg.com/rehype-katex/-/rehype-katex-7.0.1.tgz#832e6d7af2744a228981d1b0fe89483a9e7c93a1" + integrity sha512-OiM2wrZ/wuhKkigASodFoo8wimG3H12LWQaH8qSPVJn9apWKFSH3YOCtbKpBorTVw/eI7cuT21XBbvwEswbIOA== + dependencies: + "@types/hast" "^3.0.0" + "@types/katex" "^0.16.0" + hast-util-from-html-isomorphic "^2.0.0" + hast-util-to-text "^4.0.0" + katex "^0.16.0" + unist-util-visit-parents "^6.0.0" + vfile "^6.0.0" + rehype-raw@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/rehype-raw/-/rehype-raw-7.0.0.tgz#59d7348fd5dbef3807bbaa1d443efd2dd85ecee4" @@ -15895,6 +15994,16 @@ remark-gfm@^4.0.0: remark-stringify "^11.0.0" unified "^11.0.0" +remark-math@6: + version "6.0.0" + resolved "https://registry.yarnpkg.com/remark-math/-/remark-math-6.0.0.tgz#0acdf74675f1c195fea6efffa78582f7ed7fc0d7" + integrity sha512-MMqgnP74Igy+S3WwnhQ7kqGlEerTETXMvJhrUzDikVZ2/uogJCb+WHUg97hK9/jcfc0dkD73s3LN8zU49cTEtA== + dependencies: + "@types/mdast" "^4.0.0" + mdast-util-math "^3.0.0" + micromark-extension-math "^3.0.0" + unified "^11.0.0" + remark-mdx-frontmatter@^1.0.1: version "1.1.1" resolved "https://registry.yarnpkg.com/remark-mdx-frontmatter/-/remark-mdx-frontmatter-1.1.1.tgz#54cfb3821fbb9cb6057673e0570ae2d645f6fe32" @@ -17821,6 +17930,14 @@ unique-string@^3.0.0: dependencies: crypto-random-string "^4.0.0" +unist-util-find-after@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/unist-util-find-after/-/unist-util-find-after-5.0.0.tgz#3fccc1b086b56f34c8b798e1ff90b5c54468e896" + integrity sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ== + dependencies: + "@types/unist" "^3.0.0" + unist-util-is "^6.0.0" + unist-util-generated@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/unist-util-generated/-/unist-util-generated-2.0.1.tgz#e37c50af35d3ed185ac6ceacb6ca0afb28a85cae" @@ -17876,6 +17993,14 @@ unist-util-remove-position@^4.0.0: "@types/unist" "^2.0.0" unist-util-visit "^4.0.0" +unist-util-remove-position@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/unist-util-remove-position/-/unist-util-remove-position-5.0.0.tgz#fea68a25658409c9460408bc6b4991b965b52163" + integrity sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q== + dependencies: + "@types/unist" "^3.0.0" + unist-util-visit "^5.0.0" + unist-util-stringify-position@^3.0.0: version "3.0.3" resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz#03ad3348210c2d930772d64b489580c13a7db39d" From 482f1bff582e4a9e9c70c62c07a82b328c256880 Mon Sep 17 00:00:00 2001 From: yu23ki14 Date: Tue, 17 Dec 2024 14:09:14 +0900 Subject: [PATCH 2/2] add member --- pkgs/document/docs/getstarted/admin/assign-role.md | 2 +- pkgs/document/docs/getstarted/member/assist-token.md | 11 +++++++++++ pkgs/document/docs/getstarted/member/check-role.md | 9 +++++++++ pkgs/document/docs/getstarted/member/get-rewards.md | 11 +++++++++++ pkgs/document/docs/getstarted/member/get-role.md | 9 +++++++++ pkgs/document/docs/getstarted/member/index.md | 12 ++++++++++++ 6 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 pkgs/document/docs/getstarted/member/assist-token.md create mode 100644 pkgs/document/docs/getstarted/member/check-role.md create mode 100644 pkgs/document/docs/getstarted/member/get-rewards.md create mode 100644 pkgs/document/docs/getstarted/member/get-role.md create mode 100644 pkgs/document/docs/getstarted/member/index.md diff --git a/pkgs/document/docs/getstarted/admin/assign-role.md b/pkgs/document/docs/getstarted/admin/assign-role.md index 656aab7..f38f132 100644 --- a/pkgs/document/docs/getstarted/admin/assign-role.md +++ b/pkgs/document/docs/getstarted/admin/assign-role.md @@ -5,5 +5,5 @@ sidebar_position: 3 # 役割を付与 -活動に参加しているメンバーに役割を付与していきます。 +ユーザー名もしくはウォレットアドレスを指定して、活動に参加しているメンバーに役割を付与していきます。 付与した役割はユーザーごとに一時休止と削除ができます。 diff --git a/pkgs/document/docs/getstarted/member/assist-token.md b/pkgs/document/docs/getstarted/member/assist-token.md new file mode 100644 index 0000000..28c3d9f --- /dev/null +++ b/pkgs/document/docs/getstarted/member/assist-token.md @@ -0,0 +1,11 @@ +--- +title: アシストトークン +sidebar_position: 3 +--- + +# アシストトークン + +アシストトークンはすこし手伝ってくれた他のメンバーや、ふらっと現れて助けてくれた人に対してお礼としてわたすことができるトークンです。 +ユーザー名もしくはウォレットアドレスをつかって送付しあうことができます。 + +アシストトークンをわたすと、受け取る報酬の一部が渡した相手にも分配されるようになります。 diff --git a/pkgs/document/docs/getstarted/member/check-role.md b/pkgs/document/docs/getstarted/member/check-role.md new file mode 100644 index 0000000..79c8ad4 --- /dev/null +++ b/pkgs/document/docs/getstarted/member/check-role.md @@ -0,0 +1,9 @@ +--- +title: 役割を確認する +sidebar_position: 2 +--- + +# 役割を確認する + +役割のページには、やらなければならないことや与えられている権限などを確認することができます。 +役割を一時休止したり、やめたりすることもできます。 diff --git a/pkgs/document/docs/getstarted/member/get-rewards.md b/pkgs/document/docs/getstarted/member/get-rewards.md new file mode 100644 index 0000000..1ad4cd2 --- /dev/null +++ b/pkgs/document/docs/getstarted/member/get-rewards.md @@ -0,0 +1,11 @@ +--- +title: 報酬を受け取る +sidebar_position: 4 +--- + +# 報酬を受け取る + +Toban ではネイティブトークン、ERC20 トークンを分配する機能があります。 +分配を自動的に処理するスマートコントラクトにトークンが送付されるたびに、自動的に受け取ることができます。 + +分配率の計算式は[こちらを参照してください](/docs/getstarted/admin/create-splitter)。 diff --git a/pkgs/document/docs/getstarted/member/get-role.md b/pkgs/document/docs/getstarted/member/get-role.md new file mode 100644 index 0000000..1f13f2f --- /dev/null +++ b/pkgs/document/docs/getstarted/member/get-role.md @@ -0,0 +1,9 @@ +--- +title: 役割をもらう +sidebar_position: 1 +--- + +# 役割をもらう + +ユーザー名もしくはウォレットアドレスを管理者に伝えて、役割を付与してもらいましょう。 +付与された役割はワークスペースのホーム画面などから確認することができます。 diff --git a/pkgs/document/docs/getstarted/member/index.md b/pkgs/document/docs/getstarted/member/index.md new file mode 100644 index 0000000..42d581e --- /dev/null +++ b/pkgs/document/docs/getstarted/member/index.md @@ -0,0 +1,12 @@ +--- +title: 始める(メンバー) +--- + +# 始める (メンバー) + +Toban をつかうにあたってのステップ + +1. 役割をもらう +2. 役割を確認する +3. アシストトークンをわたす・もらう +4. 報酬(トークン)を受け取る