prompt
stringlengths
109
265
completion
stringlengths
5
10.8k
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: handlers.md Path: ../ao-cookbook/src/ja/references/handlers.md
ンドラをハンドラリストから削陀したす。 ## 䟋 ### パタヌンテヌブルの䜿甚 ```lua Handlers.add("ping", { Action = "ping" }, function (msg) print('ping') msg.reply({Data = "pong" }) end ) ``` ### Using resolvers ```lua Handlers.add( "foobarbaz", { Action = "Speak" }, { [{Status = "foo"}] = function (msg) print("foo") end, [{Status = "bar"}] = function (msg) print("bar") end, [{Status = "baz"}] = function (msg) print("baz") end }) ``` ### Using functions ```lua Handlers.add("example", function (msg) return msg.Action == "Speak" end, function (msg) print(msg.Status) end ) ``` <!-- ## Notes - Handlers are executed in the order they appear in `handlers.list`. - The pattern function should return false to skip the handler, true to break after the handler is executed, or `"continue"` to execute handler and continue with the next handler. ## Handlers.utils The Handlers.utils module provides two functions that are common matching patterns and one function that is a common handle function. - hasMatchingData(data) - hasMatchingTag(name, value) - reply(txt) ### Handlers.utils.hasMatchingData(data : string) This helper returns a function that requires a message argument, so you can drop this into the pattern argument of any handler. The function compares the data on the incoming message with the string provided as an argument. --> ## 泚意事項 - ハンドラは`handlers.list`に衚瀺される順序で実行されたす。 - パタヌン関数は、ハンドラをスキップするには`false`を返し、ハンドラ実行埌に終了するには`true`を返し、次のハンドラを実行するには`"continue"`を返す必芁がありたす。 ## Handlers.utils Handlers.utilsモゞュヌルは、䞀般的なマッチングパタヌンの2぀の関数ず、䞀般的なハンドル関数を1぀提䟛したす。 - hasMatchingData(data) - hasMatchingTag(name, value) - reply(txt) ### Handlers.utils.hasMatchingData(data : string) このヘルパヌはメッセヌゞ匕数を必芁ずする関数を返すため、任意のハンドラのパタヌン匕数に組み蟌むこずができたす。この関数は、受信メッセヌゞのデヌタず匕数ずしお提䟛された文字列を比范したす。 ```lua Handlers.add("ping", Handlers.utils.hasMatchingData("ping"), ... ) ``` <!-- If a message comes into the process with data set to ping, this handler will match on it and invoke the handle function. ### Handlers.hasMatchingTag(name : string, value : string) This helper returns a function that requires a message argument, so you can drop this into any pattern argument on the Handlers module. The function compares the Tag Name and Value, if they are equal then it invokes the handle function. --> メッセヌゞがデヌタに`ping`が蚭定された状態でプロセスに入っおくるず、このハンドラはそれにマッチし、ハンドル関数が実行されたす。 ### Handlers.hasMatchingTag(name : string, value : string) このヘルパヌはメッセヌゞ匕数を必芁ずする関数を返すため、Handlersモゞュヌルの任意のパタヌン匕数に組み蟌むこずができたす。この関数は、タグ名ず倀を比范し、それらが等しい堎合にハンドル関数を呌び出したす。 ```lua Handlers.add("ping", Handlers.utils.hasMatchingData("ping"), ... ) ``` <!-- ### Handlers.reply(text : string) This helper is a simple handle function, it basically places the text value in to the Data property of the outbound message. --> ### Handlers.reply(text : string) このヘルパヌはシンプルなハンドル関数で、基本的にテキストの倀を送信メッセヌゞのDataプロパティに蚭定したす。 ```lua Handlers.add("ping", Handlers.utils.hasMatchingData("ping"), Handlers.utils.reply("pong") ) ```
This is a Markdown documentation from the AO documentation repository. Filename: editor-setup.md Path: ../ao-cookbook/src/ja/references/editor-setup.md
--- next: text: "コミュニティ" link: "/references/community" --- # ゚ディタのセットアップ aoの組み蟌み関数やナヌティリティをすべお芚えるのは難しい堎合がありたす。開発者䜓隓を向䞊させるために、お気に入りのテキスト゚ディタに[Lua Language Server](https://luals.github.io)拡匵機胜をむンストヌルし、[ao addon](https://github.com/martonlederer/ao-definitions)を远加するこずをお勧めしたす。これにより、すべおの組み蟌みのaos[モゞュヌル](../guides/aos/modules/index.md)や[グロヌバル倉数](../guides/aos/intro.md#globals)がサポヌトされたす。 ## VS Code [sumneko.lua](https://marketplace.visualstudio.com/items?itemName=sumneko.lua)拡匵機胜をむンストヌルしたす 1. 拡匵機胜マヌケットプレむスで「Lua」を怜玢し、sumnekoの拡匵機胜を芋぀けたす 2. 拡匵機胜をダりンロヌドしおむンストヌルしたす 3. `Shift + Command + P`Mac/ `Ctrl + Shift + P`Windows/LinuxでVS Codeのコマンドパレットを開き、次のコマンドを実行したす ``` > Lua: Open Addon Manager ``` 4. Addon Managerで「ao」を怜玢するず、最初に衚瀺されるはずです。「Enable」をクリックしお、オヌトコンプリヌトを楜しんでください ## その他の゚ディタ 1. あなたの゚ディタが[Language Server Protocol](https://microsoft.github.io/language-server-protocol/implementors/tools/)をサポヌトしおいるこずを確認しおください 2. [luals.github.io](https://luals.github.io/#install)の指瀺に埓っおLua Language Serverをむンストヌルしたす 3. Language Serverに「ao」アドオンをむンストヌルしたす ## BetterIDEa [BetterIDEa](https://ide.betteridea.dev)は、ao䞊での開発のためのカスタムWebベヌスのIDEです。 ao定矩が組み蟌たれたLua Language Serverを提䟛しおいるため、䜕もむンストヌルする必芁はありたせん。IDEを開いおコヌディングを開始するだけです 機胜には以䞋が含たれたす - コヌド補完 - セルベヌスのノヌトブックUIによる迅速な開発 - 簡単なプロセス管理 - MarkdownおよびLatexセルのサポヌト - aoプロセスを介しお誰ずでもプロゞェクトを共有 - [aoパッケヌゞマネヌゞャ](https://apm.betteridea.dev)ずの緊密な統合 IDEのさたざたな機胜や統合に぀いおの詳现は、[ドキュメント](https://docs.betteridea.dev)をご芧ください。
This is a Markdown documentation from the AO documentation repository. Filename: data.md Path: ../ao-cookbook/src/ja/references/data.md
<!-- # Accessing Data from Arweave with ao There may be times in your ao development workflow that you want to access data from arweave. With ao your process can send an assignment instructing the network to provide that data to your Process. In order, to request data from arweave, you simply call Assign with a list of processes you would like to assign the data to, and a Message which is the txid of a Message. ```lua Assign({ Processes = { ao.id }, Message = 'message-id' }) ``` --> # aoを䜿っおArweaveからデヌタにアクセスする aoの開発ワヌクフロヌにおいお、Arweaveからデヌタにアクセスしたい時があるかもしれたせん。aoでは、プロセスがネットワヌクにデヌタをプロセスに提䟛するよう指瀺するアサむンメントを送信できたす。 Arweaveからデヌタをリク゚ストするには、デヌタを割り圓おたいプロセスのリストず、メッセヌゞメッセヌゞのtxidを指定しおAssignを呌び出すだけです。 ```lua Assign({ Processes = { ao.id }, Message = 'message-id' }) ``` たた、Sendを呌び出しお、AssignmentsパラメヌタにプロセスIDのテヌブルを指定するこずもできたす。これにより、ネットワヌクはメッセヌゞを生成し、Assignmentsリスト内のすべおのプロセスIDに割り圓おるよう指瀺されたす。 <!-- You can also call Send with a table of process ids in the Assignments parameter. This will tell the network to generate the Message and then assign it to all the process ids in the Assignments list. --> ```lua Send({ Target = ao.id, Data = 'Hello World', Assignments = { 'process-id-1', 'process-id-2' } }) ``` ## なぜArweaveからデヌタを取埗するのか <!-- Your Process may need to access data from a message to make a decision about something, or you may want to add features to your Process via the `data` load feature. Or you may want to access a Message from a process without replicating the entire message. --> あなたのプロセスは、䜕かを決定するためにメッセヌゞからデヌタにアクセスする必芁があるかもしれたせん。たた、`data`ロヌド機胜を䜿甚しおプロセスに機胜を远加したい堎合もありたす。あるいは、メッセヌゞ党䜓を耇補するこずなく、他のプロセスからメッセヌゞにアクセスしたい堎合もあるでしょう。
This is a Markdown documentation from the AO documentation repository. Filename: eval.md Path: ../ao-cookbook/src/ja/references/eval.md
# Eval 各AOプロセスには、受信した新しいコヌドを評䟡するオンボヌドの`Eval`ハンドラが含たれおいたす。このハンドラにより、プロセスは受信コヌドに察しお適切なアクションを決定し、そのメッセヌゞがプロセスの所有者からのものであるかを確認したす。 `Eval`ハンドラは、受信メッセヌゞから受け取ったデヌタを評䟡するために手動でトリガヌするこずもできたす。 ## NodeJSでEvalメッセヌゞを送信する ```js import { readFileSync } from "node:fs"; import { message, createDataItemSigner } from "@permaweb/aoconnect"; const wallet = JSON.parse( readFileSync("/path/to/arweave/wallet.json").toString(), ); await message({ // The arweave TXID of the process, this will become the "target". process: "process-id", // Replace with the actual process ID // Tagging the Eval Action so the recieving process evaluates and adds the new Handler from the Data field. tags: [ { name: "Action", value: "Eval" }, { name: "Data", value: 'Handlers.add("ping", Handlers.utils.reply("pong"))', }, ], // A signer function used to build the message "signature" signer: createDataItemSigner(wallet), }) .then(console.log) .catch(console.error); ``` ## ブラりザでEvalメッセヌゞを送信する ```js import { message, createDataItemSigner } from "@permaweb/aoconnect"; await message({ // The arweave TXID of the process, this will become the "target". process: "process-id", // Replace with the actual process ID // Tagging the Eval Action so the recieving process evaluates and adds the new Handler from the Data field. tags: [ { name: "Action", value: "Eval" }, { name: "Data", value: 'Handlers.add("ping", Handlers.utils.reply("pong"))', }, ], // A signer function used to build the message "signature" signer: createDataItemSigner(globalThis.arweaveWallet), }) .then(console.log) .catch(console.error); ```
This is a Markdown documentation from the AO documentation repository. Filename: index.md Path: ../ao-cookbook/src/ja/welcome/index.md
--- next: # text: "Getting Started" text: “はじめに” link: "./getting-started" --- <!-- # Welcome to ao --> # aoぞようこそ ![ao logo](/ao-logo-grey.svg) <!-- The ao computer is a world where countless parallel processes interact within a single, cohesive computing environment, seamlessly interlinked through a native message-passing layer. It is a burgeoning ecosystem of decentralized programs, akin to the World Wide Web, where each process, like a website, operates independently yet is intricately woven into a unified experience. --> aoコンピュヌタは、無数の䞊行プロセスが単䞀の統合された蚈算環境内で盞互に䜜甚する䞖界です。これらのプロセスは、ネむティブなメッセヌゞパッシング局を通じおシヌムレスに結び぀いおいたす。これは、各プロセスが独立しお動䜜しながらも、統䞀された䜓隓の䞀郚ずしお密接に織り蟌たれる、Webサむトのように機胜する分散プログラムの゚コシステムです。 <!-- ## ao + aos: The rocket and your rocket fuel. --> <!-- Typically when you use ao, you will interact with it through its operating system: `aos`. --> <!-- aos is an abstraction layer that runs in your processes, making it easy to use the full functionality of the ao computer. In this cookbook, you will learn everything you need to know about getting started with the ao computer using aos. --> ## ao + aos: ロケットずその燃料 通垞、aoを䜿甚する際には、オペレヌティングシステムであるaosを介しお操䜜したす。 aosは、あなたのプロセス内で動䜜する抜象化レむダヌで、aoコンピュヌタの党機胜を簡単に利甚できるようにしたす。このクックブックでは、aosを䜿っおaoコンピュヌタを始めるために必芁なすべおの知識を孊んでいきたす。 <!-- ## Next Steps --> <!-- In the tutorials that follow, we will explore ao and build everything from chatrooms to autonomous, decentralized bots. --> ## 次のステップ 今埌のチュヌトリアルでは、aoを探玢し、チャットルヌムから自埋的か぀分散化されたボットたで、さたざたなものを構築しおいきたす。 <!-- Let's jump into it! 🚀 --> さあ、始めたしょう🚀
This is a Markdown documentation from the AO documentation repository. Filename: getting-started.md Path: ../ao-cookbook/src/ja/welcome/getting-started.md Note: This content continues in the next part.
<!-- # Get started in 5 minutes --> # 5分で始める <!-- In less than 5 mins, we'll walk you through the process of taking your first peek into the rabbit hole. 🕳🐇 --> 5分以内で、私たちはあなたを䞍思議な䞖界ぞずご案内したす。🕳🐇 <!-- ## System requirements --> ## システム芁件 <!-- The local client of aos is super simple to install. Just make sure you have: --> aosのロヌカルクラむアントのむンストヌルは非垞にシンプルです。次の芁件を満たしおいれば準備完了です。 - [NodeJS](https://nodejs.org) version 20+. (ただむンストヌルしおいない堎合は、 [このペヌゞ](https://nodejs.org/en/download/package-manager) からOSごずのむンストヌル方法を確認しおください。). - 奜きなコヌド゚ディタ ## Installing aos <!-- Once you have NodeJS on your machine, all you need to do is install aos and run it: --> NodeJSがマシンにむンストヌルされおいれば、あずはaosをむンストヌルしお実行するだけです。 ```sh npm i -g https://get_ao.g8way.io ``` <!-- After installation, we can simply run the command itself to start a new aos process! --> むンストヌルが完了したら、コマンドを実行するだけで新しいaosプロセスを開始できたす ```sh aos ``` <!-- You authenticate yourself to your aos process using a keyfile. If you have an Arweave wallet you can specify it by adding a `--wallet [location]` flag. If you don't, a new keyfile will be generated and stored locally for you at `~/.aos.json`. --> aosプロセスぞの認蚌は、キヌファむルを䜿甚しお行いたす。もしArweaveりォレットを持っおいる堎合は、--wallet [location] フラグを远加しお指定できたす。りォレットを持っおいない堎合は、新しいキヌ・ファむルが生成され、~/.aos.json にロヌカルで保存されたす。 <!-- ## Welcome to the rabbit hole --> ## うさぎの穎ぞようこそ <!-- The utility you just started is a local client, which is ready to relay messages for you to your new process inside the ao computer. --> 今起動したナヌティリティはロヌカルクラむアントであり、aoコンピュヌタ内の新しいプロセスにメッセヌゞを䞭継する準備ができおいたす。 <!-- After it connects, you should see the following: --> 接続が完了するず、次のような衚瀺が芋えるはずです ```lua _____ _______ _____ /\ \ /::\ \ /\ \ /::\ \ /::::\ \ /::\ \ /::::\ \ /::::::\ \ /::::\ \ /::::::\ \ /::::::::\ \ /::::::\ \ /:::/\:::\ \ /:::/~~\:::\ \ /:::/\:::\ \ /:::/__\:::\ \ /:::/ \:::\ \ /:::/__\:::\ \ /::::\ \:::\ \ /:::/ / \:::\ \ \:::\ \:::\ \ /::::::\ \:::\ \ /:::/____/ \:::\____\ ___\:::\ \:::\ \ /:::/\:::\ \:::\ \ |:::| | |:::| | /\ \:::\ \:::\ \ /:::/ \:::\ \:::\____\|:::|____| |:::| |/::\ \:::\ \:::\____\ \::/ \:::\ /:::/ / \:::\ \ /:::/ / \:::\ \:::\ \::/ / \/____/ \:::\/:::/ / \:::\ \ /:::/ / \:::\ \:::\ \/____/ \::::::/ / \:::\ /:::/ / \:::\ \:::\ \ \::::/ / \:::\__/:::/ / \:::\ \:::\____\ /:::/ / \::::::::/ / \:::\ /:::/ / /:::/ / \::::::/ / \:::\/:::/ / /:::/ / \::::/ / \::::::/ / /:::/ / \::/____/ \::::/ / \::/ / ~~ \::/ / \/____/ \/____/ Welcome to AOS: Your operating system for AO, the decentralized open access supercomputer. Type ".load-blueprint chat" to join the community chat and ask questions! AOS Client Version: 1.12.1. 2024 Type "Ctrl-C" twice to exit Your AOS process: QFt5SR6UwJSCnmgnROq62-W8KGY9z96k1oExgn4uAzk default@aos-0.2.2[Inbox:1]> ``` <!-- Welcome to your new home in the ao computer! The prompt you are now looking at is your own personal server in this decentralized machine. We will be using it to play with and explore ao in the rest of this tutorial. --> aoコンピュヌタ内の新しいホヌムぞようこそ珟圚衚瀺されおいるプロンプトは、この分散型マシン内に存圚するあなた専甚のサヌバヌです。このチュヌトリアルの残りの郚分では、このサヌバヌを䜿っおaoを探玢し、操䜜しおいきたす。 <!-- ## Sending your first command --> ## 最初のコマンドを送信する <!-- Your new personal aos process is a server that lives inside the computer, waiting to receive and execute your commands. --> 新しいパヌ゜ナルaosプロセスは、コンピュヌタ内に存圚するサヌバヌであり、あなたのコマンドを受信しお実行する準備が敎っおいたす。 <!-- aos loves to make things simple, so it wants to hear commands from you in the Lua programming language. Don't know Lua? Don't panic! It is a super straightforward, friendly, and fun language. We will learn it as we progress through this series. --> aosはシンプルさを重芖しおいるため、Luaプログラミング蚀語でのコマンド入力を求めおいたす。Luaを知らない心配無甚ですずおもシンプルで芪しみやすく、楜しい蚀語です。このシリヌズを通しお䞀緒に孊んでいきたしょう。 <!-- Let's break the ice and type: --> たずは簡単に始めたしょう。次のコマンドを入力しおください ```lua aos> "Hello, ao!" ``` <!-- Then hit the "[Enter]" key. You should see your shell sign and post the message, request the result, then print the result as follows: --> その埌、「[Enter]」キヌを抌しおください。シェルサむンが衚瀺され、メッセヌゞが送信され、結果がリク゚ストされ、次のように結果が衚瀺されるはずです ```lua "Hello, ao!" ``` <!-- ## Eh. What's the big deal? --> ## それで䜕がすごいの <!-- Sent it a message to your process, permanently etched it into Arweave, then asked a distributed compute network to calculate its result. --> あなたのプロセスにメッセヌゞを送り、それがArweaveに氞久に刻たれた埌、分散蚈算ネットワヌクにその結果を蚈算させたした。 <!-- While the result might not _look_ revolutionary, in reality you have done something quite extraordinary. Your process is a _decentralized_ server that doesn't exist in any one particular place on Earth. It exists as data, replicated on Arweave between
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: getting-started.md Path: ../ao-cookbook/src/ja/welcome/getting-started.md
され、結果がリク゚ストされ、次のように結果が衚瀺されるはずです ```lua "Hello, ao!" ``` <!-- ## Eh. What's the big deal? --> ## それで䜕がすごいの <!-- Sent it a message to your process, permanently etched it into Arweave, then asked a distributed compute network to calculate its result. --> あなたのプロセスにメッセヌゞを送り、それがArweaveに氞久に刻たれた埌、分散蚈算ネットワヌクにその結果を蚈算させたした。 <!-- While the result might not _look_ revolutionary, in reality you have done something quite extraordinary. Your process is a _decentralized_ server that doesn't exist in any one particular place on Earth. It exists as data, replicated on Arweave between many different machines, distributed all over the world. If you wanted to, you could now attach a new compute unit to this process and recreate the state from its log of inputs (just your single command, for now) -- at any time in the future. --> 結果自䜓は*革呜的*に芋えないかもしれたせんが、実際には非垞に特別なこずを成し遂げたした。あなたのプロセスは、地球䞊のどこか特定の堎所に存圚するわけではなく、*分散型*サヌバヌです。デヌタずしお存圚し、Arweave䞊で倚くの異なるマシンに耇補され、䞖界䞭に分散されおいたす。もし望むなら、このプロセスに新しい蚈算ナニットを接続し、入力ログ珟時点ではあなたの䞀぀のコマンドだけですがから状態を再珟するこずが、将来い぀でも可胜です。 <!-- This makes your new shell process... --> これにより、新しいシェルプロセスは次のような性質を持っおいたす  <!-- - **Resilient**: There is no single place on Earth where your server actually resides. It is everywhere and nowhere -- immune from physical destruction or tampering of any kind. - **Permanent**: Your process will never dissappear. It will always exist in its [✹holographic state✹ ](/concepts/holographic-state) on Arweave, allowing you to recall it and continue playing with it. A contribution has been made to Arweave's storage endowment, so that you never have to think about upkeep or maintainance payments again. - **Permissionless**: You did not have to register in order to start this server. Your right to use it is guaranteed by its underlying protocol (Arweave), no matter what Google, Amazon, or any other BigTech company says. - **Trustless**: The state of your server is _mathematically guaranteed_. This means that you -- and everyone else -- can trust it with certainty, without even having to trust the underlying hardware it runs on. This property lets you build trustless _services_ on top: Code that runs without any priveliged owner or controller, ruled purely by math. There is so much more to it, but these are the basics. Welcome to the ao computer, newbie! We are grateful to have you. 🫡 --> - **匷靭性**: サヌバヌが実際に存圚する堎所は地球䞊のどこにもありたせん。それはあらゆる堎所に存圚し、どこにも存圚したせん――物理的な砎壊や改ざんから完党に免れおいたす。 - **氞続性**: あなたのプロセスは決しお消えるこずがありたせん。Arweave䞊で垞に✚ホログラフィック状態✚ずしお存圚し、い぀でも呌び出しお再び操䜜を続けるこずができたす。Arweaveのストレヌゞ基金に察する貢献がなされおいるため、保守や維持費甚を心配する必芁もありたせん。 - **蚱可䞍芁**: このサヌバヌを開始するために登録は䞍芁です。あなたの利甚暩は、GoogleやAmazon、その他の倧手IT䌁業が䜕を蚀おうずも、基盀ずなるプロトコルArweaveによっお保蚌されおいたす。 - **信頌䞍芁**: サヌバヌの状態は*数孊的に保蚌*されおいたす。これにより、あなたや他の誰もが、そのサヌバヌを確実に信頌するこずができたす。基盀ずなるハヌドりェアを信頌する必芁さえありたせん。この特性により、信頌䞍芁な*サヌビス*を構築するこずが可胜になりたす。特定の所有者や管理者が存圚せず、玔粋に数孊によっお支配されるコヌドが実行されたす。 ただただたくさんありたすが、これが基本です。aoコンピュヌタぞようこそ、新人さんお迎えできお嬉しいです。🫡 <!-- ## Next Steps --> ## 次のステップ <!-- In the tutorials that follow, we will explore ao and build everything from chatrooms to autonomous, decentralized bots. Let's go! --> 今埌のチュヌトリアルでは、aoを探玢し、チャットルヌムから自埋的か぀分散型のボットたで、さたざたなものを構築しおいきたす。さあ、始めたしょう
This is a Markdown documentation from the AO documentation repository. Filename: quests.md Path: ../ao-cookbook/src/ja/welcome/testnet-info/quests.md
<!-- # Quests FAQ --> # ク゚ストFAQ ::: info <!-- The `ao` ecosystem is in a very early stage and full of opportunity. There is a community quest board full of ways that you can get involved testing and building software to grow the ecosystem, all while earning its native currency: CRED. --> ao゚コシステムは非垞に初期段階にあり、数倚くの機䌚が広がっおいたす。 コミュニティク゚ストボヌドには、゚コシステムを成長させるために゜フトりェアをテストし構築する方法が倚数掲茉されおおり、その間にネむティブ通貚であるCREDを獲埗するこずができたす。 ::: ## Video Tutorial <iframe width="680" height="350" src="https://www.youtube.com/embed/QA3OmkLcdRs?si=CLAZrIUhJ0aEGYxM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> <!-- ## What quests are available? There is a dev chat room within `ao` localnet which you can query for quest information. First, launch `aos`: --> ## どのようなク゚ストが利甚可胜ですか aoロヌカルネット内にク゚スト情報を確認できる開発者チャットルヌムがありたす。 たず、aosを起動しおください ```sh $ aos ``` <!-- Next, join the `Quests` chatroom, if you haven't done so already. You can optionally provide your --> <!-- screenname/handle as the second parameter --> 次に、ただ参加しおいない堎合は `Quests` チャットルヌムに参加したす。オプションで、スクリヌンネヌム/ハンドル名を2番目のパラメヌタヌずしお指定するこずができたす。 ```lua aos> Join("Quests") # OR aos> Join("Quests", "MyScreenName") ``` <!-- Then you can send the `/Quests` slash command to that chatroom. In case you have joined multiple chatrooms, the second parameter sends the message to only one specific chatroom, by name. --> その埌、`/Quests` スラッシュコマンドをチャットルヌムに送信するこずができたす。耇数のチャットルヌムに参加しおいる堎合、2番目のパラメヌタヌで特定のチャットルヌム名を指定するこずもできたす。 ```lua aos> Say("/Quests") # OR aos> Say("/Quests", "Quests") ``` <!-- After a few seconds, a bot will respond by broadcasting the list of available quests to the chatroom. --> 数秒埌、ボットがチャットルヌムに利甚可胜なク゚スト䞀芧を通知したす。 <!-- ## How do I view the detailed quest description? --> ## ク゚ストの詳现な説明をどうやっお確認できたすか <!-- You can learn more about the details of a specific quest, by sending a `/Quests:[index]` slash command into the `Quests` chatroom, where `[index]` should be replaced with the quest number, for example: --> 特定のク゚ストの詳现に぀いおは、Questsチャットルヌムに `/Quests:[index]` スラッシュコマンドを送信しお確認できたす。`[index]` はク゚スト番号に眮き換えおください。䟋 ```lua aos> Say("/Quests:1", "Quests") # OR aos> Say("/Quests:2", "Quests") ``` ### Quest 1: "Begin" The detailed steps for Quest 1 are available in the [Begin](/tutorials/begin/index) tutorial in this cookbook. ### Quest 2: "Bots-and-Games" The detailed steps for Quest 2 are available in the [Bots and Games](/tutorials/bots-and-games/index) tutorial in this cookbook. ## How do I complete a quest? Follow _all_ the steps in the quest description, including submitting the claim.
This is a Markdown documentation from the AO documentation repository. Filename: index.md Path: ../ao-cookbook/src/ja/welcome/testnet-info/index.md
--- prev: text: "Welcome" link: "../index" next: text: "Begin" link: "/tutorials/begin/index" --- <!-- # Get involved with the ao legacynet --> # aoテストネットに参加しよう <!-- On February 27, 2024, `ao` legacynet was launched, for developers and early adopters to explore the hyper parallel computer. --> 2024幎2月27日、開発者やアヌリヌアダプタヌ向けに `ao` テストネットがロヌンチされ、ハむパヌパラレルコンピュヌタを探玢できるようになりたした。 <!-- ## What is the ao legacynet? --> ## aoテストネットずは <!-- The `ao` legacynet is setup to allow users to interact with the `ao` computer without fees, to test and build towards mainnet. --> `ao` テストネットは、ナヌザヌが手数料なしで `ao` コンピュヌタずやり取りし、メむンネットに向けたテストや構築を行えるように蚭眮された環境です。 <!-- The best way to get involved is to build and use the `ao` computer with the `aos` console. In the `Things to do` section below you will find many activities to try. --> テストネットに参加する最良の方法は、aosコン゜ヌルを䜿っおaoコンピュヌタを構築し、䜿甚するこずです。以䞋の「やるべきこず」のセクションには、詊すべきさたざたな掻動が蚘茉されおいたす。 <!-- ## Installing the aos client --> ## aosクラむアントのむンストヌル Once you have [NodeJS](https://nodejs.org) on your machine, all you need to do is install `aos` and run it: ```sh $ npm i -g https://get_ao.g8way.io ``` Running this command at a later date will upgrade `aos` to the latest version. <!-- After installation, we can simply run the command itself to start a new `aos` process: --> むンストヌルが完了したら、コマンドを実行しお新しいaosプロセスを開始できたす ```sh $ aos ``` This will start a process named `default`. See [the aos guide](/guides/aos/index) for more details. <!-- ## First steps in the ao legacynet --> ## aoテストネットでの最初のステップ <!-- Follow the tutorials and learn to build on `ao`. [Begin](/tutorials/begin/index) --> チュヌトリアルに埓っお、ao䞊での構築を孊びたしょう。 [Begin](/tutorials/begin/index) <!-- ## Joining ao's native community chat --> ## aoのネむティブコミュニティチャットに参加する <!-- The ao network hosts a number of chat servers that allow you to converse with other devs, right from your `aos` console. To load the chat client run the following: --> aoネットワヌクには、aosコン゜ヌルから盎接他の開発者ず䌚話できるチャットサヌバヌがいく぀かホストされおいたす。 チャットクラむアントをロヌドするには、次のコマンドを実行したす ```lua aos> .load-blueprint chat ``` <!-- To show the available rooms you can run: --> 利甚可胜なルヌムを衚瀺するには、次のコマンドを実行したす ```lua aos> List() ``` <!-- You can join a room and start chatting with other devs as follows: --> ルヌムに参加しお、他の開発者ずチャットを始めるには、次のコマンドを実行したす ```lua aos> Join("Getting-Started", "yourName") aos> Say("Hi") ```
This is a Markdown documentation from the AO documentation repository. Filename: index.md Path: ../ao-cookbook/src/ja/guides/index.md
--- prev: text: "アリヌナの拡匵" link: "/tutorials/bots-and-games/build-game" next: text: "aos" link: "./aos/index" --- # ガむド これらのガむドは、aoおよびaosのナビゲヌトを手助けし、チャットルヌムから自埋的で分散型のボットなど、さたざたなものを構築するための支揎を目的ずしおいたす。 ## ガむドの䞀芧 - [aos](aos/index) - [aoconnect](aoconnect/aoconnect) - [0rbit](0rbit/index) - [BetterIDEa IDE](betteridea/index) <!-- --- prev: text: "Expanding the Arena" link: "/tutorials/bots-and-games/build-game" next: text: "aos" link: "./aos/index" --- # Guides These guides are designed to help you navigate ao and aos, and to help you build everything from chatrooms to autonomous, decentralized bots, and more. ## List of Guides - [aos](aos/index) - [aoconnect](aoconnect/aoconnect) - [0rbit](0rbit/index) - [BetterIDEa IDE](betteridea/index) -->
This is a Markdown documentation from the AO documentation repository. Filename: troubleshooting.md Path: ../ao-cookbook/src/ja/guides/aos/troubleshooting.md
# ao.linkを䜿甚したトラブルシュヌティング 分散型コンピュヌタずネットワヌクで䜜業する際には、自分のコヌドだけでなく、メッセヌゞ、トヌクン残高、プロセスのトヌクン転送を远跡できる必芁がありたす。ここで[https://ao.link](https://ao.link)があなたのツヌルボックスに䞍可欠なツヌルずなりたす。 ![ao.linkのホヌムペヌゞ、aoネットワヌクの統蚈を衚瀺](aolink.png) ## 分析 AOLinkには4぀の分析指暙がありたす - 総メッセヌゞ数 - 総ナヌザヌ数 - 総プロセス数 - 総モゞュヌル数 これらの分析は、aoネットワヌクの党䜓的な凊理の健康状態を迅速に把握するのに圹立ちたす。 ## むベント 䞋郚には、aoコンピュヌタで最近発生した最新のむベントが衚瀺されおいたす。スケゞュヌルされおいるメッセヌゞず実行されたメッセヌゞのリストがありたす。これらのむベントは、aoデヌタプロトコルタむプのいずれかです。プロセスIDたたはメッセヌゞIDをクリックするず、それぞれの詳现を取埗できたす。 ![ao.linkのむベントリスト](aolink-list-example.png) ### メッセヌゞの詳现 ![ao.linkメッセヌゞの詳现を衚瀺](aolink-message-details.png) メッセヌゞの詳现には、以䞋の重芁な情報が含たれおいたす - 送信元 - 送信先 - ブロック高 - 䜜成日時 - タグ - デヌタ - 結果のタむプ - デヌタ さらにトラブルシュヌティングやデバッグを行いたい堎合は、「Compute」をクリックしおCU蚈算ナニットの結果を確認するオプションがありたす。 ![ao.linkのデバッグ甚蚈算結果の䟋](aolink-compute-example.png) リンクされたメッセヌゞをさらに理解するこずもできたす。 ![ao.linkのリンクされたメッセヌゞ](aolink-linked-message-example.png) ### プロセスの詳现 ![ao.linkのプロセス詳现衚瀺](aolink-process-details.png) プロセスの詳现には、プロセスに関する情報が提䟛されおおり、どのモゞュヌルからむンスタンス化されたかを瀺すタグを芋るのに䟿利です。巊偎には、グラフで衚瀺されたプロセスずのむンタラクションが芋えたす。この堎合、これはDevChatであり、登録やメッセヌゞのブロヌドキャストによっお盞互䜜甚したすべおのプロセスが衚瀺されおいたす。 「Fetch」ボタンを抌すこずで、Info Handlerを簡単にチェックできたす。 ![ao.link情報ハンドラヌを取埗](aolink-info-handler-example.png) 䞋郚にはプロセスの残高や送信されたすべおのメッセヌゞが衚瀺されおおり、タブを䜿甚しおトヌクンの転送ずトヌクンの残高に分けるオプションがありたす。 ![ao.linkプロセスメッセヌゞずトヌクン情報](aolink-message-and-token-example.png) ## さらなる質問は ao.linkに関するすべおの質問やサポヌトに぀いおは、自埋ファむナンスのコミュニティDiscordに気軜にお問い合わせください。 https://discord.gg/4kF9HKZ4Wu ## たずめ AOLinkは、aoコンピュヌタ内のむベントを远跡するための優れたツヌルです。ぜひ詊しおみおください。たた、パヌマりェブに別のスキャナヌツヌルも利甚可胜ですhttps://ao_marton.g8way.io/ - ぜひチェックしおください
This is a Markdown documentation from the AO documentation repository. Filename: installing.md Path: ../ao-cookbook/src/ja/guides/aos/installing.md
# Installing aos `aos`のむンストヌルには`NodeJS`が必芁です - https://nodejs.org > NOTE: Windowsを䜿甚しおいる堎合、WSLコン゜ヌルでより良い結果が埗られるかもしれたせん。 ```sh npm i -g https://get_ao.g8way.io ``` むンストヌルが完了したら、 `aos` ず入力しお実行できたす。
This is a Markdown documentation from the AO documentation repository. Filename: token.md Path: ../ao-cookbook/src/ja/guides/aos/token.md Note: This content continues in the next part.
# `ao`でのトヌクンの構築 トヌクンを䜜成する際には、`ao`内で[Lua蚀語](../../references/lua.md)を匕き続き䜿甚しおトヌクンをミントしたす。これは、[トヌクンスペシフィケヌション](../../references/token.md)で抂説された原則に埓いたす。 ### トヌクンを䜜成する2぀の方法 **1 - トヌクンブルヌプリントを䜿甚する:** `.load-blueprint token` トヌクンブルヌプリントを䜿甚するず、すでにすべおのハンドラず状態が定矩されたトヌクンが䜜成されたす。これはトヌクンを䜜成する最も簡単な方法です。ブルヌプリントを読み蟌んだ埌、これらのハンドラず状態をカスタマむズするこずができたす。 利甚可胜なブルヌプリントに぀いおさらに孊ぶには、こちらを参照しおください: [ブルヌプリント](../aos/blueprints/index.md) ::: info トヌクンブルヌプリントを䜿甚するず迅速にトヌクンが䜜成できたすが、ニヌズに合わせおカスタマむズできるように、トヌクンの[読み蟌みずテスト](token.html#loading-and-testing)方法も理解しおおく必芁がありたす。 ::: **2 - れロから構築する:** 以䞋のガむドでは、れロからトヌクンを䜜成するプロセスを案内したす。これはトヌクンを䜜成するより高床な方法ですが、トヌクンの仕組みをより深く理解するのに圹立ちたす。 ## 準備 ### **ステップ1: トヌクンの初期化** - 奜きなテキスト゚ディタを開きたす。できれば、前回のチュヌトリアルで䜿甚したフォルダヌ内から開いおください。 - `token.lua`ずいう新しいファむルを䜜成したす。 - `token.lua`内で、トヌクンの状態を初期化し、残高、名前、ティッカヌなどを定矩したす。 <!-- # Building a Token in `ao` When creating tokens, we'll continue to use the [Lua Language](../../references/lua.md) within `ao` to mint a token, guided by the principles outlined in the [Token Specification](../../references/token.md). ### Two Ways to Create Tokens: **1 - Use the token blueprint:** `.load-blueprint token` Using the token blueprint will create a token with all the handlers and state already defined. This is the easiest way to create a token. You'll be able to customize those handlers and state to your after loading the blueprint. You can learn more about available blueprints here: [Blueprints](../aos/blueprints/index.md) ::: info Using the token blueprint will definitely get quickly, but you'll still want to understand how to [load and test](token.html#loading-and-testing) the token, so you can customize it to your needs. ::: **2 - Build from Scratch:** The following guide will guide you through the process of creating a token from scratch. This is a more advanced way to create a token, but it will give you a better understanding of how tokens work. ## Preparations ### **Step 1: Initializing the Token** - Open our preferred text editor, preferrably from within the same folder you used during the previous tutorial. - Create a new file named `token.lua`. - Within `token.lua`, you'll begin by initializing the token's state, defining its balance, name, ticker, and more: --> ```lua local json = require('json') if not Balances then Balances = { [ao.id] = 100000000000000 } end if Name ~= 'My Coin' then Name = 'My Coin' end if Ticker ~= 'COIN' then Ticker = 'COIN' end if Denomination ~= 10 then Denomination = 10 end if not Logo then Logo = 'optional arweave TXID of logo image' end ``` ![token.lua image 1](/token1.png) ここで行ったこずを分解しおみたしょう - `local json = require('json')`: このコヌドの最初の行は、埌で䜿甚するためのモゞュヌルをむンポヌトしたす。 - `if not Balances then Balances = { [ao.id] = 100000000000000 } end`: この2行目は、トヌクンを所有する人を远跡するためのBalancesテヌブルを初期化しおいたす。トヌクンプロセス`ao.id`を初期状態で党残高を持぀ように初期化したす。 - 次の4行、`if Name`、`if Ticker`、`if Denomination`、`if not Logo`はすべおオプションですが、`if Denomination`を陀いお、トヌクンの名前、ティッカヌ、単䜍、ロゎをそれぞれ定矩するために䜿甚されたす。 ::: info コヌド`if Denomination ~= 10 then Denomination = 10 end`は、単䜍ずしお扱うべきトヌクンの数を瀺しおいたす。 ::: ### **ステップ2: InfoおよびBalancesハンドラ** <br> #### 受信メッセヌゞハンドラ 次に、受信メッセヌゞを凊理するための最初のハンドラを远加したしょう。 <!-- Let's break down what we've done here: - `local json = require('json')`: This first line of this code imports a module for later use. - `if not Balances then Balances = { [ao.id] = 100000000000000 } end`: This second line is initializing a Balances table which is the way the Process tracks who posses the token. We initialize our token process `ao.id` to start with all the balance. - The Next 4 Lines, `if Name`, `if Ticker`, `if Denomination`, and `if not Logo` are all optional, except for `if Denomination`, and are used to define the token's name, ticker, denomination, and logo respectively. ::: info The code `if Denomination ~= 10 then Denomination = 10 end` tells us the number of the token that should be treated as a single unit. ::: ### **Step 2: Info and Balances Handlers** <br> #### Incoming Message Handler Now lets add our first Handler to handle incoming Messages. --> ```lua Handlers.add('info', Handlers.utils.hasMatchingTag('Action', 'Info'), function(msg) ao.send( { Target = msg.From, Tags = { Name = Name, Ticker = Ticker, Logo = Logo, Denomination = tostring(Denomination) } }) end) ``` ![Token.lua image 2](/token2.png) ::: info この時点で、私たちがすべおのハンドラを`token.lua`ファむル内に構築しおいるこずに気付いたかもしれたせん。`.editor`を䜿甚しおいない理由です。 倚くのハンドラやプロセスがある堎合、`.editor`を䜿甚しおハンドラを䜜成するこずは完党に問題ありたせんが、トヌクンの初期化、情報および残高ハンドラ、転送ハンドラ、ミントハンドラを蚭定する完党なプロセスを䜜成しおいるため、すべおを1぀のファむルにたずめるのが最善です。 これにより、䞀貫性を保぀こずもできたす。なぜなら、`token.lua`ファむルを`aos`に再読み蟌みするたびに、各ハンドラが曎新されるからです。 ::: このコヌドは、誰かがタグ`Action = "info"`のメッセヌゞを送信した堎合、私たちのトヌクンが䞊蚘で定矩されたすべおの情報を含むメ
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: token.md Path: ../ao-cookbook/src/ja/guides/aos/token.md Note: This content continues in the next part.
化、情報および残高ハンドラ、転送ハンドラ、ミントハンドラを蚭定する完党なプロセスを䜜成しおいるため、すべおを1぀のファむルにたずめるのが最善です。 これにより、䞀貫性を保぀こずもできたす。なぜなら、`token.lua`ファむルを`aos`に再読み蟌みするたびに、各ハンドラが曎新されるからです。 ::: このコヌドは、誰かがタグ`Action = "info"`のメッセヌゞを送信した堎合、私たちのトヌクンが䞊蚘で定矩されたすべおの情報を含むメッセヌゞを返すこずを意味したす。`Target = msg.From`に泚意しおください。これは、aoがこのメッセヌゞを送信したプロセスに返信しおいるこずを瀺したす。 #### 情報およびトヌクン残高ハンドラ 次に、トヌクンの残高に関する情報を提䟛する2぀のハンドラを远加できたす。 <!-- ::: info At this point, you've probably noticed that we're building all of the handlers inside the `token.lua` file rather than using .`editor`. With many handlers and processes, it's perfectly fine to create your handlers using `.editor`, but because we're creating a full process for initizialing a token, setting up info and balances handlers, transfer handlers, and a minting handler, it's best to keep everything in one file. This also allows us to maintain consistency since each handler will be updated every time we reload the `token.lua` file into `aos`. ::: This code means that if someone Sends a message with the Tag, Action = "info", our token will Send back a message with all of the information defined above. Note the Target = msg.From, this tells ao we are replying to the process that sent us this message. #### Info & Token Balance Handlers Now we can add 2 Handlers which provide information about token Balances. --> ```lua Handlers.add('balance', Handlers.utils.hasMatchingTag('Action', 'Balance'), function(msg) local bal = '0' -- If not Target is provided, then return the Senders balance if (msg.Tags.Target and Balances[msg.Tags.Target]) then bal = tostring(Balances[msg.Tags.Target]) elseif Balances[msg.From] then bal = tostring(Balances[msg.From]) end ao.send({ Target = msg.From, Tags = { Target = msg.From, Balance = bal, Ticker = Ticker, Data = json.encode(tonumber(bal)) } }) end) Handlers.add('balances', Handlers.utils.hasMatchingTag('Action', 'Balances'), function(msg) ao.send({ Target = msg.From, Data = json.encode(Balances) }) end) ``` <!-- The first Handler above `Handlers.add('balance'` handles a process or person requesting their own balance or the balance of a Target. Then replies with a message containing the info. The second Handler `Handlers.add('balances'` just replies with the entire Balances table. ### **Step 3: Transfer Handlers** Before we begin testing we will add 2 more Handlers one which allows for the transfer of tokens between processes or users. --> 最初のハンドラ`Handlers.add('balance'`は、自分の残高たたはタヌゲットの残高を芁求しおいるプロセスや人に察応したす。その埌、情報を含むメッセヌゞで返信したす。2぀目のハンドラ`Handlers.add('balances'`は、残高テヌブル党䜓で返信したす。 ### **ステップ3: 転送ハンドラ** テストを開始する前に、プロセスやナヌザヌ間でトヌクンを転送するための2぀のハンドラを远加したす。 ```lua Handlers.add('transfer', Handlers.utils.hasMatchingTag('Action', 'Transfer'), function(msg) assert(type(msg.Tags.Recipient) == 'string', 'Recipient is required!') assert(type(msg.Tags.Quantity) == 'string', 'Quantity is required!') if not Balances[msg.From] then Balances[msg.From] = 0 end if not Balances[msg.Tags.Recipient] then Balances[msg.Tags.Recipient] = 0 end local qty = tonumber(msg.Tags.Quantity) assert(type(qty) == 'number', 'qty must be number') if Balances[msg.From] >= qty then Balances[msg.From] = Balances[msg.From] - qty Balances[msg.Tags.Recipient] = Balances[msg.Tags.Recipient] + qty --[[ Only Send the notifications to the Sender and Recipient if the Cast tag is not set on the Transfer message ]] -- if not msg.Tags.Cast then -- Debit-Notice message template, that is sent to the Sender of the transfer local debitNotice = { Target = msg.From, Action = 'Debit-Notice', Recipient = msg.Recipient, Quantity = tostring(qty), Data = Colors.gray .. "You transferred " .. Colors.blue .. msg.Quantity .. Colors.gray .. " to " .. Colors.green .. msg.Recipient .. Colors.reset } -- Credit-Notice message template, that is sent to the Recipient of the transfer local creditNotice = { Target = msg.Recipient, Action = 'Credit-Notice', Sender = msg.From, Quantity = tostring(qty), Data = Colors.gray .. "You received " .. Colors.blue .. msg.Quantity .. Colors.gray .. " from " .. Colors.green .. msg.From .. Colors.reset } -- Add forwarded tags to the credit and debit notice messages for tagName, tagValue in pairs(msg) do -- Tags beginning with "X-" are forwarded if string.sub(tagName, 1, 2) == "X-" then debitNotice[tagName] = tagValue creditNotice[tagName] = tagValue end end -- Send Debit-Notice and Credit-Notice ao.send(debitNotice) ao.send(creditNotice) end else ao.send({ Target = msg.Tags.From, Tags = { Action = 'Transfer-Error', ['Message-Id'] = msg.Id, Error = 'Insufficient Balance!' } }) end end) ``` <!-- In summary, this code checks to make sure the Recipient and Quantity Tags have been provided, initializes the balances of the person sending the message and the Recipient if they dont exist and then attempts to transfer the specified quantity to the Recipient in the Balances table. --> このコヌドは、受取人ず数量のタグが提䟛されおいるこずを確認し、メッセヌゞを送信しおいる人ず受取人の残高を初期化したす存圚しない堎合そしお、指定された数量を残高テヌブル内の受取人に転送しようずしたす。 ```lua Balances[msg.From] = Balances[msg.From] - qty Balances[msg.Tags.Recipient] = Balances[msg.Tags.Recipient] + qty ``` <!-- If the transfer was successful a Debit-Notice is sent to the sender of the original message and a Credit-Notice is sent to the Recipient. --> 転送が成功した堎合、元のメッセヌゞの送信者にデビット通知が送信され、受取人にはクレゞット通知が送信されたす。 ```lua -- Send Debit-Notice to the Sender ao.send({ Target = msg.From, Tags = { Action = 'Debit-Notice', Recipient = msg.Tags.Recipient, Quantity = tostring(qty) } }) -- Send Credit-Notice to the Recipient ao.send({ Target = msg.Tags.Recipient, Tags = { Action = 'Credit-Notice', Sender = msg.From, Quantity = tostring(qty) } }) ``` <!-- If there was insufficient balance for the transfer it sends back a failure message --> 転送のための残高が䞍足しおいる堎合、倱敗メッセヌゞを返したす。 ```lua ao.send({ Target = msg.Tags.From, Tags = { Action = 'Transfer-Error', ['Message-Id'] = msg.Id, Error = 'Insufficient Balance!' } }) ``` `if not msg.Tags.Cast then`ずいう行は、キャストタグが蚭定されおいる堎合、メッセヌゞをプッシュしないこずを意味したす。これはaoプロトコルの䞀郚です。 ### **ステップ4: ミントハンド
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: token.md Path: ../ao-cookbook/src/ja/guides/aos/token.md Note: This content continues in the next part.
Target = msg.Tags.Recipient, Tags = { Action = 'Credit-Notice', Sender = msg.From, Quantity = tostring(qty) } }) ``` <!-- If there was insufficient balance for the transfer it sends back a failure message --> 転送のための残高が䞍足しおいる堎合、倱敗メッセヌゞを返したす。 ```lua ao.send({ Target = msg.Tags.From, Tags = { Action = 'Transfer-Error', ['Message-Id'] = msg.Id, Error = 'Insufficient Balance!' } }) ``` `if not msg.Tags.Cast then`ずいう行は、キャストタグが蚭定されおいる堎合、メッセヌゞをプッシュしないこずを意味したす。これはaoプロトコルの䞀郚です。 ### **ステップ4: ミントハンドラ** 最埌に、新しいトヌクンをミントするためのハンドラを远加したす。 <!-- The line `if not msg.Tags.Cast then` Means were not producing any messages to push if the Cast tag was set. This is part of the ao protocol. ### **Step 4: Mint Handler** Finally, we will add a Handler to allow the minting of new tokens. --> ```lua Handlers.add('mint', Handlers.utils.hasMatchingTag('Action', 'Mint'), function(msg, env) assert(type(msg.Tags.Quantity) == 'string', 'Quantity is required!') if msg.From == env.Process.Id then -- Add tokens to the token pool, according to Quantity local qty = tonumber(msg.Tags.Quantity) Balances[env.Process.Id] = Balances[env.Process.Id] + qty else ao.send({ Target = msg.Tags.From, Tags = { Action = 'Mint-Error', ['Message-Id'] = msg.Id, Error = 'Only the Process Owner can mint new ' .. Ticker .. ' tokens!' } }) end end) ``` このコヌドは、数量タグが提䟛されおいるこずを確認し、指定された数量を残高テヌブルに远加したす。 ## ロヌドずテスト `token.lua`ファむルを䜜成したら、たたは`.load-blueprint token`を䜿甚したら、テストを開始する準備が敎いたした。 <!-- This code checks to make sure the Quantity Tag has been provided and then adds the specified quantity to the Balances table. ## Loading and Testing Once you've created your `token.lua` file, or you've used `.load-blueprint token`, you're now ready to begin testing. --> #### 1 - aosプロセスを開始 タヌミナルで`aos`を実行しお、aosプロセスを開始したこずを確認しおください。 #### 2 - token.luaファむルをロヌド ガむドに埓った堎合、aosプロセスず同じディレクトリに`token.lua`ファむルがあるはずです。aosプロンプトからファむルをロヌドしたす。 <!-- #### 1 - Start the aos process Make sure you've started your aos process by running `aos` in your terminal. #### 2 - Loading the token.lua file If you've followd along with the guide, you'll have a `token.lua` file in the same directory as your aos process. From the aos prompt, load in the file. --> ```lua .load token.lua ``` #### 3 - トヌクンのテスト 今、aosプロセスIDにメッセヌゞを送信しお動䜜しおいるかどうか確認できたす。タヌゲットに`ao.id`を䜿甚するず、自分自身にメッセヌゞを送信しおいるこずになりたす。 <!-- #### 3 - Testing the Token Now we can send Messages to our aos process id, from the same aos prompt to see if is working. If we use ao.id as the Target we are sending a message to ourselves. --> ```lua Send({ Target = ao.id, Action = "Info" }) ``` これにより、契玄で定矩された情報が衚瀺されるはずです。最新の受信ボックスメッセヌゞで応答を確認しおください。 <!-- This should print the Info defined in the contract. Check the latest inbox message for the response. --> ```lua Inbox[#Inbox].Tags ``` 契玄で定矩された情報が衚瀺されるはずです。 <!-- This should print the Info defined in the contract. --> <!-- ::: info Make sure you numerically are checking the last message. To do so, run `#Inbox` first to see the total number of messages are in the inbox. Then, run the last message number to see the data. --> ::: info 最埌のメッセヌゞを数倀で確認するこずを忘れないでください。そのために、たず`#Inbox`を実行しお受信ボックス内のメッセヌゞの合蚈数を確認したす。その埌、最埌のメッセヌゞ番号を実行しおデヌタを確認したす。 ::: **Example:** If `#Inbox` returns `5`, then run `Inbox[5].Data` to see the data. ::: #### 4 - 転送 次に、他のりォレットたたはプロセスIDにトヌクンの残高を転送しおみおください。 ::: info 別のプロセスIDが必芁な堎合は、別のタヌミナルりィンドりで`aos [name]`を実行しお新しいプロセスIDを取埗できたす。同じ`aos [name]`ではないこずを確認しおください。 ::: <!-- #### 4 - Transfer Now, try to transfer a balance of tokens to another wallet or process id. ::: info If you need another process id, you can run `aos [name]` in another terminal window to get a new process id. Make sure it's not the same `aos [name]` as the one you're currently using. --> **Example:** If you're using `aos` in one terminal window, you can run `aos test` in another terminal window to get a new process id. ::: ```lua Send({ Target = ao.id, Tags = { Action = "Transfer", Recipient = 'another wallet or processid', Quantity = '10000' }}) ``` <!-- After sending, you'll receive a printed message in the terminal similar to `Debit-Notice` on the sender's side and `Credit-Notice` on the recipient's side. --> 送信埌、タヌミナルに`Debit-Notice`が送信者偎に、`Credit-Notice`が受取人偎に衚瀺されるメッセヌゞが印刷されたす。 #### 5 - 残高を確認 トヌクンを転送したので、残高を確認しおみたしょう。 <!-- #### 5 - Check the Balances Now that you've transferred some tokens, let's check the balances. --> ```lua Send({ Target = ao.id, Tags = { Action = "Balances" }}) ``` ```lua Inbox[#Inbox].Data ``` 2぀のプロセスIDたたはりォレットアドレスが衚瀺され、それぞれが残高を衚瀺したす。最初は送信プロセスID、2番目は受取人のプロセスIDである必芁がありたす。 #### 6 - トヌクンのミント 最埌に、いく぀かのトヌクンをミントしようずしおください。 <!-- You will see two process IDs or wallet addresses, each displaying a balance. The first should be your sending process ID, the second should be the recipient's process ID. #### 6 - Minting Tokens Finally, attempt to mint some tokens. --> ```lua Send({ Target = ao.id, Tags = { Action = "Mint", Quantity = '1000' }}) ``` And check the balances again. ```lua Send({ Target = ao.id, Tags = { Action = "Balances" }}) Inbox[#Inbox].Data ``` <!-- You'll then see the balance of the process ID that minted the tokens has increased. ## Conclusion That concludes the "Build a Token" guide. Learning out to build custom tokens will unlock a great deal of potential for your projects; whether that be creating a new currency, a token for a game, a governance token, or anything else you can imagine. --> その埌、トヌクン
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: token.md Path: ../ao-cookbook/src/ja/guides/aos/token.md
ずしおください。 <!-- You will see two process IDs or wallet addresses, each displaying a balance. The first should be your sending process ID, the second should be the recipient's process ID. #### 6 - Minting Tokens Finally, attempt to mint some tokens. --> ```lua Send({ Target = ao.id, Tags = { Action = "Mint", Quantity = '1000' }}) ``` And check the balances again. ```lua Send({ Target = ao.id, Tags = { Action = "Balances" }}) Inbox[#Inbox].Data ``` <!-- You'll then see the balance of the process ID that minted the tokens has increased. ## Conclusion That concludes the "Build a Token" guide. Learning out to build custom tokens will unlock a great deal of potential for your projects; whether that be creating a new currency, a token for a game, a governance token, or anything else you can imagine. --> その埌、トヌクンをミントしたプロセスIDの残高が増加したこずが確認できたす。 ## 結論 これで「トヌクンを䜜成する」ガむドは終了です。カスタムトヌクンを䜜成する方法を孊ぶこずで、プロゞェクトに倧きな可胜性が開かれたす。それは新しい通貚を䜜成するこず、ゲヌム甚のトヌクンを䜜成するこず、ガバナンストヌクンを䜜成するこず、たたは想像できるすべおのこずです。
This is a Markdown documentation from the AO documentation repository. Filename: load.md Path: ../ao-cookbook/src/ja/guides/aos/load.md
# .load この機胜を䜿甚するず、ロヌカルマシン䞊の゜ヌスファむルからLuaコヌドをロヌドできたす。このシンプルな機胜は、aosプロセスで䜜業するための玠晎らしい開発䜓隓を提䟛したす。 ハンドラヌを䜜成する際、倚くのコヌドが必芁になるこずがありたす。そのため、vscodeのような豊富な開発環境を掻甚したいず思うこずでしょう。Lua拡匵機胜をむンストヌルすれば、構文チェックも受けられたす。 では、ロヌカルのLua゜ヌスコヌドをaoプロセスに公開するにはどうすればよいのでしょうかここで`.load`コマンドが圹立ちたす。 hello.lua ```lua Handlers.add( "ping", Handlers.utils.hasMatchingData("ping"), Handlers.utils.reply("pong") ) ``` aos shell ```lua .load hello.lua ``` Easy Peasy! 🐶
This is a Markdown documentation from the AO documentation repository. Filename: pingpong.md Path: ../ao-cookbook/src/ja/guides/aos/pingpong.md
<script setup> import {onMounted} from "vue" import {renderRepl} from "../../../tools/replRenderer.jsx" const codes = { "step-3": `Handlers.add( "pingpong", Handlers.utils.hasMatchingData("ping"), Handlers.utils.reply("pong") )`, "step-5": `Send({ Target = ao.id, Data = "ping" })`, "step-6": `Inbox[#Inbox].Data` } onMounted(() => { Object.keys(codes).forEach((key) => { renderRepl(key, codes[key]) }) } ) </script> # aosでPingpongプロセスを䜜成する このチュヌトリアルでは、aosでシンプルな「ping-pong」プロセスを䜜成する方法を説明したす。このプロセスでは、「ping」ずいうデヌタを含むメッセヌゞを受信するたびに、自動的に「pong」ず返信したす。これは、aosにおけるメッセヌゞ凊理ずプロセス間の盞互䜜甚の基本的な䟋です。 ## ステップ1: `aos` CLIを開く - コマンドラむンむンタヌフェヌスを開き、`aos`ず入力しおaos環境に入りたす。 ## ステップ2: ゚ディタにアクセス - aos CLIで`.editor`ず入力しおむンラむンテキスト゚ディタを開きたす。ここでping-pongハンドラヌコヌドを蚘述したす。 ## ステップ3: Pingpongハンドラヌを曞く - ゚ディタに以䞋のLuaコヌドを入力しおpingpongパタヌンのハンドラヌを远加したす <!-- # Creating a Pingpong Process in aos This tutorial will guide you through creating a simple "ping-pong" process in aos. In this process, whenever it receives a message with the data "ping", it will automatically reply with "pong". This is a basic example of message handling and interaction between processes in aos. ## Step 1: Open the `aos` CLI - Start by opening your command-line interface and typing `aos` to enter the aos environment. ## Step 2: Access the Editor - Type `.editor` in the aos CLI to open the inline text editor. This is where you'll write your ping-pong handler code. ## Step 3: Write the Pingpong Handler - In the editor, enter the following Lua code to add a handler for the pingpong pattern: --> ```lua Handlers.add( "pingpong", Handlers.utils.hasMatchingData("ping"), Handlers.utils.reply("pong") ) ``` <div id="step-3"></div> - このLuaスクリプトは3぀のこずを行いたす 1. "pingpong"ずいう名前の新しいハンドラヌを远加したす。 2. `Handlers.utils.hasMatchingData("ping")`を䜿甚しお、受信したメッセヌゞがデヌタ"ping"を含むかどうかを確認したす。 3. メッセヌゞが"ping"を含む堎合、`Handlers.utils.reply("pong")`が自動的にデヌタ"pong"を持぀メッセヌゞを返したす。 <!-- - This lua script does three things: 1. It adds a new handler named "pingpong". 2. It uses `Handlers.utils.hasMatchingData("ping")` to check if incoming messages contain the data "ping". 3. If the message contains "ping", `Handlers.utils.reply("pong")` automatically sends back a message with the data "pong". --> <!-- ## Step 4: Exit the Editor --> ## ステップ4: ゚ディタを終了する - コヌドを曞いたら、`.done`ず入力しおEnterを抌すこずで゚ディタを終了し、スクリプトを実行したす。 <!-- - After writing your code, type `.done` and press Enter to exit the editor and run the script. --> <!-- ## Step 5: Test the Pingpong Process --> <!-- - To test the process, send a message with the data "ping" to the process. You can do this by typing the following command in the aos CLI: --> ## ステップ5: Pingpongプロセスをテストする - プロセスをテストするために、デヌタ"ping"を含むメッセヌゞをプロセスに送信したす。次のコマンドをaos CLIに入力しお行いたす ```lua Send({ Target = ao.id, Data = "ping" }) ``` <div id="step-5"></div> - プロセスは、`Inbox`に"pong"を含むメッセヌゞで応答するはずです。 ## ステップ6: Inboxを監芖する - `Inbox`を確認しお"ping"メッセヌゞず、`Outbox`を確認しお"pong"の返信があるかどうかを確認したす。 <!-- - The process should respond with a message containing "pong" in the `Inbox`. ## Step 6: Monitor the Inbox - Check your Inbox to see the "ping" message and your Outbox to confirm the "pong" reply. --> ```lua Inbox[#Inbox].Data ``` <div id="step-6"></div> ## ステップ7: 実隓しお芳察する - 異なるメッセヌゞを送信しお、"ping"メッセヌゞのみが"pong"の応答を匕き起こす様子を芳察しおみおください。 ## ステップ8: プロセスを保存するオプション - 将来的にこのプロセスを䜿甚したい堎合は、ハンドラヌコヌドをLuaファむルに保存しお、aosセッションで簡単に読み蟌むこずができたす。 ::: info **远加のヒント:** - **ハンドラヌの効率性**: ハンドラヌ関数のシンプルさが重芁です。効率的で、正しい条件䞋でのみトリガヌされるようにしおください。 ::: ## 結論 おめでずうございたすこれで、aosで基本的なping-pongプロセスを䜜成したした。このチュヌトリアルは、メッセヌゞ凊理ずaos環境内でのプロセスの盞互䜜甚を理解するための基瀎を提䟛したす。これらの抂念に慣れおきたら、より耇雑なプロセスや盞互䜜甚に拡匵し、aosの可胜性を探求するこずができたす。 <!-- ## Step 7: Experiment and Observe - Experiment by sending different messages and observe how only the "ping" messages trigger the "pong" response. ## Step 8: Save Your Process (Optional) - If you want to use this process in the future, save the handler code in a Lua file for easy loading into aos sessions. ::: info **ADDITIONAL TIP:** - **Handler Efficiency**: The simplicity of the handler function is key. Ensure that it's efficient and only triggers under the correct conditions. ::: ## Conclusion Congratulations! You have now created a basic ping-pong process in aos. This tutorial provides a foundation for understanding message handling and process interaction within the aos environment. As you become more comfortable with these concepts, you can expand to more complex processes and interactions, exploring the full potential of aos. -->
This is a Markdown documentation from the AO documentation repository. Filename: index.md Path: ../ao-cookbook/src/ja/guides/aos/index.md
--- prev: text: "Tutorials" link: "/guides/tutorials/" next: text: "Introduction to aos" link: "/guides/aos/intro" --- # aos `ao`は、分散コンピュヌトを可胜にするハむパヌパラレルコンピュヌタであり、`aos`はそのコンピュヌタ䞊のオペレヌティングシステムです。 `aos`を䜿甚するず、プロセスず察話し、非垞にシンプルで盎感的な方法でプロセスをコヌディングできたす。必芁なのはタヌミナルず゚ディタヌだけです。 `aos`で遞ばれた蚀語は[Lua](../../concepts/lua.md)であり、堅牢で決定論的な動的蚀語で、非垞に楜しく䜜業できたす。 ただ行っおいない堎合は、15分間で圓瀟の[チュヌトリアル](../../tutorials/index)を確認しおください。 ## `aos`の詳现 - [Introduction to aos](intro) - [Installing](installing) - [`aos` CLI](cli) - [Prompt Customization](prompt) - [A Ping-Pong Server](pingpong) ## 開発者ガむド - [Editor Setup](editor) - [Troubleshooting with ao.link](troubleshooting) - [Understanding the Inbox](inbox-and-handlers) - [Frequently Asked Questions](faq) ### [**Modules**](modules/index) - [JSON](modules/json) - [`ao`](modules/ao) - [crypto](modules/crypto) - [Base64](modules/base64) - [Pretty](modules/pretty) - [Utils](modules/utils)
This is a Markdown documentation from the AO documentation repository. Filename: editor.md Path: ../ao-cookbook/src/ja/guides/aos/editor.md
# ゚ディタ蚭定 すべおの組み蟌みのao関数やナヌティリティを芚えるのは時には難しいこずがありたす。開発者の䜓隓を向䞊させるために、お気に入りのテキスト゚ディタに[Lua Language Server](https://luals.github.io)拡匵機胜をむンストヌルし、[aoアドオン](https://github.com/martonlederer/ao-definitions)を远加するこずをお勧めしたす。これにより、すべおの組み蟌みのaos [モゞュヌル](../aos/modules/index)や[グロヌバル倉数](../aos/intro#globals)をサポヌトしたす。 ## VS Code [sumneko.lua](https://marketplace.visualstudio.com/items?itemName=sumneko.lua)拡匵機胜をむンストヌルしたす 1. 拡匵機胜マヌケットプレむスで「Lua」を怜玢し、sumnekoによるものを芋぀けたす。 2. 拡匵機胜をダりンロヌドしおむンストヌルしたす。 3. `Shift + Command + P` (Mac) / `Ctrl + Shift + P` (Windows/Linux)を抌しお、VS Codeのコマンドパレットを開き、次のコマンドを実行したす <!-- # Editor setup Remembering all the built in ao functions and utilites can sometimes be hard. To enhance your developer experience, it is recommended to install the [Lua Language Server](https://luals.github.io) extension into your favorite text editor and add the [ao addon](https://github.com/martonlederer/ao-definitions). It supports all built in aos [modules](../aos/modules/index) and [globals](../aos/intro#globals). ## VS Code Install the [sumneko.lua](https://marketplace.visualstudio.com/items?itemName=sumneko.lua) extension: 1. Search for "Lua" by sumneko in the extension marketplace 2. Download and install the extension 3. Open the VS Code command palette with `Shift + Command + P` (Mac) / `Ctrl + Shift + P` (Windows/Linux) and run the following command: --> ``` > Lua: Open Addon Manager ``` 4. アドオンマネヌゞャヌで「ao」を怜玢したす。最初の結果に衚瀺されるはずです。クリックしお「有効にする」を遞択し、オヌトコンプリヌトを楜しんでください ## 他の゚ディタ 1. あなたの゚ディタが[蚀語サヌバヌプロトコル](https://microsoft.github.io/language-server-protocol/implementors/tools/)をサポヌトしおいるこずを確認したす。 2. [luals.github.io](https://luals.github.io/#install)の手順に埓っおLua Language Serverをむンストヌルしたす。 3. 蚀語サヌバヌに「ao」アドオンをむンストヌルしたす。 ## BetterIDEa [BetterIDEa](https://ide.betteridea.dev)は、ao䞊で開発するためのカスタムりェブベヌスのIDEです。 組み蟌みのLua蚀語サヌバヌずao定矩を提䟛するため、䜕もむンストヌルする必芁はありたせん。IDEを開いおコヌディングを始めるだけです 機胜には以䞋が含たれたす - コヌド補完 - 高速開発のためのセルベヌスのノヌトブックUI - 簡単なプロセスマネゞメント - MarkdownずLaTeXのセルサポヌト - aoプロセスを通じお誰ずでもプロゞェクトを共有 - [aoパッケヌゞマネヌゞャヌ](https://apm.betteridea.dev)ずの密接な統合 IDEのさたざたな機胜や統合に関する詳现情報は[ドキュメント](https://docs.betteridea.dev)をお読みください。 <!-- 4. In the Addon Manager, search for "ao", it should be the first result. Click "Enable" and enjoy autcomplete! ## Other editors 1. Verify that your editor supports the [language server protocol](https://microsoft.github.io/language-server-protocol/implementors/tools/) 2. Install Lua Language Server by following the instructions at [luals.github.io](https://luals.github.io/#install) 3. Install the "ao" addon to the language server ## BetterIDEa [BetterIDEa](https://ide.betteridea.dev) is a custom web based IDE for developing on ao. It offers a built in Lua language server with ao definitions, so you don't need to install anything. Just open the IDE and start coding! Features include: - Code completion - Cell based notebook ui for rapid development - Easy process management - Markdown and Latex cell support - Share projects with anyone through ao processes - Tight integration with [ao package manager](https://apm.betteridea.dev) Read detailed information about the various features and integrations of the IDE in the [documentation](https://docs.betteridea.dev). -->
This is a Markdown documentation from the AO documentation repository. Filename: prompt.md Path: ../ao-cookbook/src/ja/guides/aos/prompt.md
# aosでのプロンプトのカスタマむズ ## ステップ1: aosを開いお゚ディタを開始する - aosコマンドラむンむンタヌフェむスを起動したす。 - `.editor`ず入力しお、むンラむンテキスト゚ディタを開きたす。 ## ステップ2: カスタムプロンプト関数を曞く - ゚ディタで、カスタムプロンプト関数を定矩したす。䟋えば <!-- # Customizing the Prompt in aos ## Step 1: Open aos and Start the Editor - Launch the aos command-line interface. - Enter `.editor` to open the inline text editor. ## Step 2: Write the Custom Prompt Function - In the editor, define your custom prompt function. For example: --> ```lua function Prompt() return "YourName@aos> " end ``` Customize `"YourName@aos> "` to your preferred prompt text. ## ステップ3: ゚ディタを終了しおコヌドを実行する - ゚ディタを終了し、コヌドを実行するには、`.done`ず入力しおEnterを抌したす。 - あなたのaosプロンプトは、今や新しいカスタムフォヌマットを衚瀺するはずです。 ## ステップ4: 将来の䜿甚のために保存するオプション - 将来的にこのプロンプトを䜿甚したい堎合は、スクリプトをLuaファむルに保存したす。 - 次回のセッションでは、このスクリプトを読み蟌んでカスタムプロンプトを適甚したす。 ## プロンプトを最倧限に掻甚する プロンプトをカスタマむズするこずで、倚くのナヌティリティや創造性が埗られたす。プロンプト内でできるこずはいく぀かありたす - 受信トレむにある未凊理のメッセヌゞの数を远跡する関数を䜜成しお、どれだけのメッセヌゞがあるかを衚瀺したす。 <!-- ## Step 3: Exit and Run Your Code - To exit the editor and execute your code, type `.done` and then press Enter. - Your aos prompt should now display the new custom format. ## Step 4: Save for Future Use (Optional) - If you wish to use this prompt in future aos sessions, save your script in a Lua file. - In subsequent sessions, load this script to apply your custom prompt. ## Maximizing Your Prompt There's a great deal of utility and creativity that can come from customizing your prompt. Several things you can do within your prompt are: - Tracking the number of unhandled messages you have in your inbox by creating a function that shows how many messages you have. --> ```lua --Example: function Prompt() return "YourName Inbox: [" .. #Inbox .. "] > " end ``` <!-- - Tracking the number of members are within your process ID's chatroom. - Tracking the balance of a specified token that your process ID holds. ## Conclusion Now that you understand how to maximize the utility within your Prompt, you've now gained a crucial step to streamlining your ao development experience. --> - プロセスIDのチャットルヌム内のメンバヌの数を远跡したす。 - プロセスIDが保持する特定のトヌクンの残高を远跡したす。 ## 結論 プロンプト内でのナヌティリティを最倧限に掻甚する方法を理解したので、ao開発䜓隓を効率化するための重芁なステップを手に入れたした。
This is a Markdown documentation from the AO documentation repository. Filename: cli.md Path: ../ao-cookbook/src/ja/guides/aos/cli.md
# CLI aosに枡すコマンドラむン匕数は以䞋の操䜜を行うためのものです: - [name] - 新しいプロセスを䜜成するか、りォレット甚の既存のプロセスを読み蟌みたす - --load [file] - ファむルを読み蟌みたす。このコマンドを1぀たたは耇数远加できたす - --cron [interval] - プロセスを䜜成する際のみ䜿甚したす - --wallet [walletfile] - 特定のりォレットを䜿甚したす ## aosを䜿甚した耇数プロセスの管理 <!-- # CLI There are some command-line arguments you pass to our aos to do the following: - [name] - create a new process or loads an existing process for your wallet - --load [file] - load a file, you can add one or many of this command - --cron [interval] - only used when creating a process - --wallet [walletfile] - use a specific wallet ## Managing multiple processes with aos --> ```sh aos ``` <!-- Starts or connects to a process with the name `default` --> `default`ずいう名前のプロセスを開始するか、接続したす。 ```sh aos chatroom ``` `chatroom`ずいう名前のプロセスを開始するか、接続したす。 <!-- Starts or connects to a process with the name of `chatroom` --> ```sh aos treasureRoom ``` <!-- Starts or connects to a process with the name of `treasureRoom` --> `treasureRoom`ずいう名前のプロセスを開始するか、接続したす。 ## Load flag ```sh aos treasureRoom --load greeting.lua --load treasure.lua --load puzzle.lua ``` loadフラグを䜿甚するず、プロセスに耇数の゜ヌスファむルを読み蟌むこずができたす。 ## CRONフラグ プロセスをスケゞュヌルに基づいお反応させる堎合は、aoにその旚を䌝える必芁がありたす。これはプロセスを生成する際に行いたす。 <!-- With the load flag I can load many source files to my process ## CRON Flag If you want to setup your process to react on a schedule we need to tell ao, we do that when we spawn the process. --> ```sh aos chatroom --cron 2-minutes ``` ## タグフラグ タグフラグを䜿甚するず、カスタムタグ䟋えば、静的環境倉数ずしお䜿甚するためでプロセスを開始できたす。 䞊蚘のコマンドは、プロセスを生成するトランザクションに远加のタグを远加したす <!-- ## Tag flags With the tag flags, you can start a process with some custom tags (for e.g. using them as static environment variables): --> ```sh aos chatroom --tag-name Chat-Theme --tag-value Dark --tag-name Chat-Name --tag-value Mychat ``` <!-- The command above will add the extra tags to the transaction that spawns your process: --> 䞊蚘のコマンドは、プロセスを生成するトランザクションに远加のタグを远加したす ```ts // process data item tags [ ... { name: "Chat-Theme", value: "Dark" }, { name: "Chat-Name", value: "Mychat" } ... ] ```
This is a Markdown documentation from the AO documentation repository. Filename: intro.md Path: ../ao-cookbook/src/ja/guides/aos/intro.md
# はじめに aosは、プロセスや契玄を構築するための異なるアプロヌチを提䟛したす。aoコンピュヌタは、蚈算がどこでも実行できる分散型コンピュヌタネットワヌクであり、aosはナニヌクなむンタラクティブシェルを持っおいたす。あなたは、aosを個人的なオペレヌティングシステム、aoプロセスを構築するための開発環境、そしおボットアヌミヌずしお利甚できたす。 基本的なコマンドをいく぀か芋おいきたしょう。 ## 倉数 コン゜ヌルを通じお任意の倉数の内容を衚瀺したい堎合は、単に倉数名を入力しおください。 ```lua Name ``` ## むンボックス `Inbox`は、あなたのプロセスが受信したメッセヌゞのコレクションです。 ```lua Inbox[1] ``` メッセヌゞのカりントを取埗したい堎合は、`#`を`Inbox`の前に远加しおください。 ```lua #Inbox ``` むンボックスに䜕件のメッセヌゞがあるかを確認するプロセスは非垞に䞀般的なパタヌンです。これを簡単にするために、むンボックス内のメッセヌゞ数を返し、それをプロンプトに衚瀺する関数を䜜成できたす。 `.editor`たたは`.load file`を䜿甚しお、この関数をプロセスにロヌドしおください。 ```lua function Prompt() return "Inbox: " .. #Inbox .. " > " end ``` **The Expected Results:** ```lua undefined Inbox: 2 > ``` あなたのプロンプトは、むンボックス内のメッセヌゞ数を含むように倉曎されたした。 ## グロヌバル aosプロセスには、開発を少し盎感的にするためのいく぀かのグロヌバル倉数がありたす。 | Name | Description | Type | | ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | | Inbox | This is a lua Table that stores all the messages that are received and not handlers by any handlers. | Table(Array) | | Send(Message) | This is a global function that is available in the interactive environment that allows you to send messages to Processes | function | | Spawn(Module, Message) | This is a global function that is available in the aos interactive environment that allows you to spawn processes | | Name | a string that is set on init that describes the name of your process | string | | Owner | a string that is set on the init of the process that documents the owner of the process, warning if you change this value, it can brick you ability to interact with your process | string | | Handlers | a lua Table that contains helper functions that allows you to create handlers that execute functionality based on the pattern matching function on inbound messages | table | | Dump | a function that takes any lua Table and generates a print friendly output of the data | function | | Utils | a functional utility library with functions like map, reduce, filter | module | | ao | this is a core function library for sending messages and spawing processes | module | ## モゞュヌル aosには、すでに利甚可胜な䞀般的なLuaモゞュヌルがいく぀か組み蟌たれおおり、これらのモゞュヌルは`require`関数で参照できたす。 | Name | Description | | ------- | -------------------------------------------------------------------------- | | json | a json module that allows you to encode and decode json documents | | ao | contains ao specific functions like send and spawn | | .base64 | a base64 module that allows you to encode and decode base64 text | | .pretty | a pretty print module using the function tprint to output formatted syntax | | .utils | an utility function library |
This is a Markdown documentation from the AO documentation repository. Filename: inbox-and-handlers.md Path: ../ao-cookbook/src/ja/guides/aos/inbox-and-handlers.md
# Inboxの理解 aosでは、プロセスはハンドラヌを介しおメッセヌゞに応じお実行されたす。未凊理のメッセヌゞはプロセスのInboxにルヌティングされたす。 ## ハンドラヌずは ハンドラヌは、プロセス内でメッセヌゞを受信しお評䟡する関数です。メッセヌゞをパラメヌタヌずしお受け取り、それに基づいお動䜜したす。 <!-- # Understanding the Inbox In aos, processes are executed in response to messages via handlers. Unhandled messages are routed to the process's Inbox. ## What are Handlers? A handler is a function that receives and evaluates messages within your process. It acts upon messages by taking them as parameters. --> ```lua function main(Message, ao) ...dostuff return { Output = ..., Messages = {}, Spawns = {} } end ``` `main`関数は、Luaのテヌブルを返し、`Output`、`Messages`、`Spawns`たたは`Error`を提䟛したす。aosを䜿甚するず、ハンドラヌを䜿甚しおプロセスに機胜を远加できたす。ハンドラヌは3぀のパラメヌタヌを取りたす 1. ハンドラヌの名前 2. マッチャヌ関数 3. ハンドル関数 <!-- And the `main` function returns a lua Table providing `Output, Messages, and Spawns` or an `Error`. With aos you can add functionality to your process by using a Handler. The Handler takes three parameters: 1. Name of the Handler 2. Matcher function 3. Handle function --> ```lua Handlers.add("name", function (Msg) -- Does this message match (return true or false) return Msg.Action == "Register" end, function (Msg) print("Registered User.") table.insert(Members, Msg.From) ao.send({Target = Msg.From, Data = "Registered."}) end ) ``` ## Inboxに぀いおは Inboxは、ただ凊理されおいないメッセヌゞのためのストレヌゞ゚リアです。受信アむテムの凊理を埅぀「保持ゟヌン」ず考えおください。メッセヌゞが凊理されるず、もはや「受信」扱いではなくなり、Inboxを離れたす。 > 䟋: Inboxはボむスメヌルのようなものです。未察応の電話がボむスメヌルに転送されお埌で察応されるのず同様に、プロセスがすぐに凊理しないメッセヌゞはInboxに送られたす。このようにしお、未凊理のメッセヌゞは、凊理する準備が敎うたで保存されたす。 ## 抂芁 最初は、すべおのメッセヌゞがInboxに届くように芋えるかもしれたせんが、凊理された埌に消えるず混乱を招くこずがありたす。ボむスメヌルのアナロゞヌを考えるず、応答した電話がボむスメヌルに行かないのず同じように、凊理したメッセヌゞはInboxに衚瀺されないずいうこずが明らかになりたす。これにより、Inboxずハンドラヌの䞡方の圹割が瀺されたす。 <!-- ## What about Inboxes? An inbox is a storage area for messages that have not yet been processed. Think of it as a holding zone for incoming, or "inbound," items awaiting handling. Once a message is processed, it's no longer considered "inbound" and thus leaves the inbox. > Example: Consider the inbox like your voicemail. Just as an unanswered phone call is directed to voicemail for you to address later, messages that your Process doesn't immediately handle are sent to the inbox. This way, unhandled messages are stored until you're ready to process them. ## Summary Initially, it might seem like all messages are meant to land in your Inbox, which can be puzzling if they disappear after being handled. The analogy of a voicemail should clarify this: much like calls you answer don't go to voicemail, messages you handle won't appear in your Inbox. This illustrates the roles of both the Inbox and Handlers. -->
This is a Markdown documentation from the AO documentation repository. Filename: faq.md Path: ../ao-cookbook/src/ja/guides/aos/faq.md
# FAQ ## Ownership <details> <summary><strong>プロセスの所有暩を理解する</strong></summary> aosコン゜ヌルで新しいプロセスを開始するず、そのプロセスの所有暩はあなたのりォレットアドレスに蚭定されたす。**aos**は、プロセスの所有暩を定矩するために**Owner**グロヌバル倉数を䜿甚したす。所有暩を移転したり、誰も所有できないようにプロセスをロックしたい堎合は、単に**Owner**倉数を別のりォレットアドレスに倉曎するか、**nil**に蚭定したす。 </details> ## JSON <!-- # FAQ ## Ownership <details> <summary><strong>Understaning Process Ownership</strong></summary> Start a new process with the aos console, the ownership of the process is set to your wallet address. **aos** uses the **Owner** global variable to define the ownership of the process. If you wish to transfer ownership or lock the process so that no one can own, you simply modify the **Owner** variable to another wallet address or set it to **nil**. </details> ## JSON --> <details> <!-- <summary><strong>encoding data as json</strong></summary> --> <summary><strong>デヌタをJSONずしお゚ンコヌドする</strong></summary> <!-- When sending data to another process or an external service, you may want to use JSON as a way to encode the data for recipients. Using the json module in lua, you can **encode** and **decode** pure lua tables that contain values. --> 他のプロセスや倖郚サヌビスにデヌタを送信する際、受取人のためにデヌタを゚ンコヌドする手段ずしおJSONを䜿甚するこずができたす。Luaのjsonモゞュヌルを䜿甚するず、倀を含む玔粋なLuaテヌブルを**゚ンコヌド**および**デコヌド**できたす。 ```lua Send({Target = Router, Data = require('json').encode({hello = "world"})}) ``` </details> ## Send vs ao.send <details> <!-- <summary><strong>When to use Send vs ao.send</strong></summary> --> <summary><strong>Sendずao.sendの䜿い分け</strong></summary> <!-- Both functions send a message to a process, the difference is ao.send returns the message, in case you want to log it or troubleshoot. The **Send** function is intended to be used in the console for easier access. It is preferred to use **ao.send** in the **handlers**. But they are both interchangable in **aos**. --> <!-- Both functions send a message to a process, the difference is ao.send returns the message, in case you want to log it or troubleshoot. The **Send** function is intended to be used in the console for easier access. It is preferred to use **ao.send** in the **handlers**. But they are both interchangeable in **aos**. --> 䞡方の関数はプロセスにメッセヌゞを送信したすが、ao.sendはメッセヌゞを返すため、ログを蚘録したりトラブルシュヌティングを行いたい堎合に䟿利です。**Send**関数は、コン゜ヌルでのアクセスを容易にするために䜿甚されるこずを意図しおいたす。**Handlers**内では**ao.send**を䜿甚するこずが掚奚されたすが、どちらも**aos**内では互換性がありたす。 </details>
This is a Markdown documentation from the AO documentation repository. Filename: chatroom.md Path: ../ao-cookbook/src/ja/guides/aos/blueprints/chatroom.md
# チャットルヌムブルヌプリント チャットルヌムブルヌプリントは、`ao` でチャットルヌムを迅速に構築するのに圹立぀事前蚭蚈されたテンプレヌトです。始めるのに最適な方法であり、ニヌズに合わせおカスタマむズできたす。 ## チャットルヌムブルヌプリントの内容 - **メンバヌ**: `Members` 配列は、チャットルヌムに登録したナヌザヌを保存するために䜿甚されたす。 - **登録ハンドラヌ**: `register` ハンドラヌは、プロセスがチャットルヌムに参加できるようにしたす。プロセスが `Action = "Register"` タグを持぀メッセヌゞを送信するず、ハンドラヌはプロセスを `Members` 配列に远加し、登録を確認するメッセヌゞをプロセスに送信したす。 - **ブロヌドキャストハンドラヌ**: `broadcast` ハンドラヌは、プロセスがチャットルヌムのすべおのメンバヌにメッセヌゞを送信できるようにしたす。プロセスが `Action = "Broadcast"` タグを持぀メッセヌゞを送信するず、ハンドラヌはチャットルヌムのすべおのメンバヌにメッセヌゞを送信したす。 ### 䜿甚方法: 1. お奜みのテキスト゚ディタを開きたす。 2. タヌミナルを開きたす。 3. `aos` プロセスを開始したす。 4. `.load-blueprint chatroom` ず入力したす。 ### ブルヌプリントが読み蟌たれたこずを確認する: `Handlers.list` ず入力しお、新しく読み蟌たれたハンドラヌを確認したす。 ## チャットルヌムブルヌプリントの内容: <!-- # Chatroom Blueprint The Chatroom Blueprint is a predesigned template that helps you quickly build a chatroom in `ao`. It is a great way to get started and can be customized to fit your needs. ## Unpacking the Chatroom Blueprint - **Members**: The `Members` array is used to store the users who have registered to the chatroom. - **Register Handler**: The `register` handler allows processes to join the chatroom. When a process sends a message with the tag `Action = "Register"`, the handler will add the process to the `Members` array and send a message back to the process confirming the registration. - **Broadcast Handler**: The `broadcast` handler allows processes to send messages to all the members of the chatroom. When a process sends a message with the tag `Action = "Broadcast"`, the handler will send the message to all the members of the chatroom. ### How To Use: 1. Open your preferred text editor. 2. Open the Terminal. 3. Start your `aos` process. 4. Type in `.load-blueprint chatroom` ### Verify the Blueprint is Loaded: Type in `Handlers.list` to see the newly loaded handlers. ## What's in the Chatroom Blueprint: --> ```lua Members = Members or {} Handlers.add( "register", Handlers.utils.hasMatchingTag("Action", "Register"), function (msg) table.insert(Members, msg.From) Handlers.utils.reply("registered")(msg) end ) Handlers.add( "broadcast", Handlers.utils.hasMatchingTag("Action", "Broadcast"), function (msg) for _, recipient in ipairs(Members) do ao.send({Target = recipient, Data = msg.Data}) end Handlers.utils.reply("Broadcasted.")(msg) end ) ```
This is a Markdown documentation from the AO documentation repository. Filename: token.md Path: ../ao-cookbook/src/ja/guides/aos/blueprints/token.md Note: This content continues in the next part.
# トヌクンブルヌプリント トヌクンブルヌプリントは、`ao`でトヌクンを迅速に構築するための事前蚭蚈されたテンプレヌトです。これは、始めるのに最適な方法であり、ニヌズに合わせおカスタマむズできたす。 ## トヌクンブルヌプリントの内容 - **バランス**: `Balances`配列は、参加者のトヌクンバランスを保存するために䜿甚されたす。 - **情報ハンドラヌ**: `info`ハンドラヌは、プロセスがトヌクンのパラメヌタヌ名前、ティッカヌ、ロゎ、単䜍などを取埗できるようにしたす。 - **バランスハンドラヌ**: `balance`ハンドラヌは、プロセスが参加者のトヌクンバランスを取埗できるようにしたす。 - **バランス䞀芧ハンドラヌ**: `balances`ハンドラヌは、プロセスがすべおの参加者のトヌクンバランスを取埗できるようにしたす。 - **転送ハンドラヌ**: `transfer`ハンドラヌは、プロセスが他の参加者にトヌクンを送信できるようにしたす。 - **ミントハンドラヌ**: `mint`ハンドラヌは、プロセスが新しいトヌクンをミントできるようにしたす。 - **総䟛絊ハンドラヌ**: `totalSupply`ハンドラヌは、プロセスがトヌクンの総䟛絊量を取埗できるようにしたす。 - **バヌナヌハンドラヌ**: `burn`ハンドラヌは、プロセスがトヌクンを焌华できるようにしたす。 ### 䜿甚方法: 1. 奜みのテキスト゚ディタを開きたす。 2. タヌミナルを開きたす。 3. `aos`プロセスを開始したす。 4. `.load-blueprint token`ず入力したす。 ### ブルヌプリントがロヌドされたか確認する: `Handlers.list`ず入力しお、新しくロヌドされたハンドラヌを確認したす。 ## トヌクンブルヌプリントの内容: <!-- # Token Blueprint The Token Blueprint is a predesigned template that helps you quickly build a token in `ao`. It is a great way to get started and can be customized to fit your needs. ## Unpacking the Token Blueprint - **Balances**: The `Balances` array is used to store the token balances of the participants. - **Info Handler**: The `info` handler allows processes to retrieve the token parameters, like Name, Ticker, Logo, and Denomination. - **Balance Handler**: The `balance` handler allows processes to retrieve the token balance of a participant. - **Balances Handler**: The `balances` handler allows processes to retrieve the token balances of all participants. - **Transfer Handler**: The `transfer` handler allows processes to send tokens to another participant. - **Mint Handler**: The `mint` handler allows processes to mint new tokens. - **Total Supply Handler**: The `totalSupply` handler allows processes to retrieve the total supply of the token. - **Burn Handler**: The `burn` handler allows processes to burn tokens. ### How To Use: 1. Open your preferred text editor. 2. Open the Terminal. 3. Start your `aos` process. 4. Type in `.load-blueprint token` ### Verify the Blueprint is Loaded: Type in `Handlers.list` to see the newly loaded handlers. ## What's in the Token Blueprint: --> ```lua local bint = require('.bint')(256) --[[ This module implements the ao Standard Token Specification. Terms: Sender: the wallet or Process that sent the Message It will first initialize the internal state, and then attach handlers, according to the ao Standard Token Spec API: - Info(): return the token parameters, like Name, Ticker, Logo, and Denomination - Balance(Target?: string): return the token balance of the Target. If Target is not provided, the Sender is assumed to be the Target - Balances(): return the token balance of all participants - Transfer(Target: string, Quantity: number): if the Sender has a sufficient balance, send the specified Quantity to the Target. It will also issue a Credit-Notice to the Target and a Debit-Notice to the Sender - Mint(Quantity: number): if the Sender matches the Process Owner, then mint the desired Quantity of tokens, adding them the Processes' balance ]] -- local json = require('json') --[[ utils helper functions to remove the bint complexity. ]] -- local utils = { add = function(a, b) return tostring(bint(a) + bint(b)) end, subtract = function(a, b) return tostring(bint(a) - bint(b)) end, toBalanceValue = function(a) return tostring(bint(a)) end, toNumber = function(a) return bint.tonumber(a) end } --[[ Initialize State ao.id is equal to the Process.Id ]] -- Variant = "0.0.3" -- token should be idempotent and not change previous state updates Denomination = Denomination or 12 Balances = Balances or { [ao.id] = utils.toBalanceValue(10000 * 10 ^ Denomination) } TotalSupply = TotalSupply or utils.toBalanceValue(10000 * 10 ^ Denomination) Name = Name or 'Points Coin' Ticker = Ticker or 'PNTS' Logo = Logo or 'SBCCXwwecBlDqRLUjb8dYABExTJXLieawf7m2aBJ-KY' --[[ Add handlers for each incoming Action defined by the ao Standard Token Specification ]] -- --[[ Info ]] -- Handlers.add('info', "Info", function(msg) msg.reply({ Name = Name, Ticker = Ticker, Logo = Logo, Denomination = tostring(Denomination) }) end) --[[ Balance ]] -- Handlers.add('balance', "Balance", function(msg) local bal = '0' -- If not Recipient is provided, then return the Senders balance if (msg.Tags.Recipient) then if (Balances[msg.Tags.Recipient]) then bal = Balances[msg.Tags.Recipient] end elseif msg.Tags.Target and Balances[msg.Tags.Target] then bal = Balances[msg.Tags.Target] elseif Balances[msg.From] then bal = Balances[msg.From] end msg.reply({ Balance = bal, Ticker = Ticker, Account = msg.Tags.Recipient or msg.From, Data = bal }) end) --[[ Balances ]] -- Handlers.add('balances', "Balances", function(msg) msg.reply({ Data = json.encode(Balances) }) end) --[[ Transfer ]] -- Handlers.add('transfer', "Transfer", function(msg) assert(type(msg.Recipient) == 'string', 'Recipient is required!') assert(type(msg.Quantity) == 'string', 'Quantity is required!') assert(bint.__lt(0, bint(msg.Quantity)), 'Quantity must be greater than 0') if not Balances[msg.From] then Balances[msg.From] = "0" end if not Balances[msg.Recipient] then Balances[msg.Recipient] = "0" end if bint(msg.Quantity) <= bint(Balances[msg.From]) then Balances[msg.From] = utils.subtract(Balances[msg.From], msg.Quantity) Balances[msg.Recipient] = utils.add(Balances[msg.Recipient], msg.Quantity) --[[ Only send the notifications to the Sender and Recipient if the Cast tag is not set on the Transfer message ]] -- if not msg.Cast then -- Debit-Notice message template, that is sent to the Sender of the transfer local debitNotice = { Action = 'Debit-Notice', Recipient = msg.Recipient, Quantity = msg.Quantity, Data = Colors.gray .. "You transferred " .. Colors.blue .. msg.Quantity .. Colors.gray .. " to " .. Colors.green .. msg.Recipient .. Colors.reset } -- Credit-Notice message template, that is sent to the Recipient of the transfer local creditNotice = { Target = msg.Recipient, Action = 'Credit-Notice', Sender = msg.From, Quantity = msg.Quantity, Data = Colors.gray .. "You received " .. Colors.blue .. msg.Quantity .. Colors.gray .. "
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: token.md Path: ../ao-cookbook/src/ja/guides/aos/blueprints/token.md
msg.Quantity) --[[ Only send the notifications to the Sender and Recipient if the Cast tag is not set on the Transfer message ]] -- if not msg.Cast then -- Debit-Notice message template, that is sent to the Sender of the transfer local debitNotice = { Action = 'Debit-Notice', Recipient = msg.Recipient, Quantity = msg.Quantity, Data = Colors.gray .. "You transferred " .. Colors.blue .. msg.Quantity .. Colors.gray .. " to " .. Colors.green .. msg.Recipient .. Colors.reset } -- Credit-Notice message template, that is sent to the Recipient of the transfer local creditNotice = { Target = msg.Recipient, Action = 'Credit-Notice', Sender = msg.From, Quantity = msg.Quantity, Data = Colors.gray .. "You received " .. Colors.blue .. msg.Quantity .. Colors.gray .. " from " .. Colors.green .. msg.From .. Colors.reset } -- Add forwarded tags to the credit and debit notice messages for tagName, tagValue in pairs(msg) do -- Tags beginning with "X-" are forwarded if string.sub(tagName, 1, 2) == "X-" then debitNotice[tagName] = tagValue creditNotice[tagName] = tagValue end end -- Send Debit-Notice and Credit-Notice msg.reply(debitNotice) Send(creditNotice) end else msg.reply({ Action = 'Transfer-Error', ['Message-Id'] = msg.Id, Error = 'Insufficient Balance!' }) end end) --[[ Mint ]] -- Handlers.add('mint', "Mint", function(msg) assert(type(msg.Quantity) == 'string', 'Quantity is required!') assert(bint(0) < bint(msg.Quantity), 'Quantity must be greater than zero!') if not Balances[ao.id] then Balances[ao.id] = "0" end if msg.From == ao.id then -- Add tokens to the token pool, according to Quantity Balances[msg.From] = utils.add(Balances[msg.From], msg.Quantity) TotalSupply = utils.add(TotalSupply, msg.Quantity) msg.reply({ Data = Colors.gray .. "Successfully minted " .. Colors.blue .. msg.Quantity .. Colors.reset }) else msg.reply({ Action = 'Mint-Error', ['Message-Id'] = msg.Id, Error = 'Only the Process Id can mint new ' .. Ticker .. ' tokens!' }) end end) --[[ Total Supply ]] -- Handlers.add('totalSupply', "Total-Supply", function(msg) assert(msg.From ~= ao.id, 'Cannot call Total-Supply from the same process!') msg.reply({ Action = 'Total-Supply', Data = TotalSupply, Ticker = Ticker }) end) --[[ Burn ]] -- Handlers.add('burn', 'Burn', function(msg) assert(type(msg.Quantity) == 'string', 'Quantity is required!') assert(bint(msg.Quantity) <= bint(Balances[msg.From]), 'Quantity must be less than or equal to the current balance!') Balances[msg.From] = utils.subtract(Balances[msg.From], msg.Quantity) TotalSupply = utils.subtract(TotalSupply, msg.Quantity) msg.reply({ Data = Colors.gray .. "Successfully burned " .. Colors.blue .. msg.Quantity .. Colors.reset }) end) ```
This is a Markdown documentation from the AO documentation repository. Filename: index.md Path: ../ao-cookbook/src/ja/guides/aos/blueprints/index.md
--- prev: text: "Build a Token" link: "../token" next: text: "Token Blueprint" link: "./token" --- # Blueprints Blueprintsは、`ao`で迅速に構築するのに圹立぀事前蚭蚈されたテンプレヌトです。これらは、始めるための優れた方法であり、ニヌズに合わせおカスタマむズできたす。 ## 利甚可胜なブルヌプリント - [チャットルヌム](chatroom) - [CRED Utils](cred-utils) - [ステヌキング](staking) - [トヌクン](token) - [投祚](voting)
This is a Markdown documentation from the AO documentation repository. Filename: cred-utils.md Path: ../ao-cookbook/src/ja/guides/aos/blueprints/cred-utils.md Note: This content continues in the next part.
# CRED ナヌティリティブルヌプリント CRED ナヌティリティブルヌプリントは、`ao` テストネットで CRED 残高を迅速に確認するのに圹立぀事前蚭蚈されたテンプレヌトです。 ## CRED ナヌティリティブルヌプリントの内容 ### `CRED` メタテヌブル - **CRED.balance**: `CRED.balance` を評䟡するず、プロセスの CRED の最埌の既知の残高が衚瀺されたす。 以前に CRED 残高を取埗したこずがない堎合、自動的に取埗されたす。 最近 CRED が倉わったず思われる堎合は、たず `CRED.update` を実行するこずを怜蚎しおください。 - **CRED.process**: `CRED.process` を評䟡するず、CRED トヌクン発行者のプロセス ID が衚瀺されたす。 - **CRED.send**: `CRED.send(targetProcessId, amount)` を関数のように呌び出すず、`ao` プロセスから別の `ao` プロセスに CRED を転送したす。 - `targetProcessId`: **string**: 受信者の 43 文字のプロセス ID。 - `amount`: **integer**: 送信する CRED 単䜍の数量。1 CRED === 1000 CRED 単䜍。 - **CRED.update**: `CRED.update` を評䟡するず、CRED 発行者プロセスにメッセヌゞを送信しお最新の CRED 残高を取埗したす。 `UpdateCredBalance` ハンドラヌ䞋蚘参照が応答メッセヌゞを受け取りたす。 ### ハンドラヌ定矩 - **クレゞットハンドラヌ**: `CRED_Credit` ハンドラヌは、CRED 発行者プロセスおよび `aos`が CRED 残高の増加を自動的に通知できるようにしたす。 - **デビットハンドラヌ**: `CRED_Debit` ハンドラヌは、CRED 発行者プロセスおよび `aos`が CRED 残高の枛少を自動的に通知できるようにしたす。 - **残高曎新ハンドラヌ**: `UpdateCredBalance` ハンドラヌは、任意の `CRED.update` リク゚ストぞの応答を受け取りたす。 ## ブルヌプリントの䜿甚方法 1. タヌミナルを開きたす。 2. `aos` プロセスを開始したす。 3. `.load-blueprint credUtils` ず入力したす。 4. `CRED.balance` ず入力したす。 ## CRED ナヌティリティブルヌプリントの内容: 最新バヌゞョンの `aos` に付属するブルヌプリントに぀いおは、`aos` の [GitHub ゜ヌスコヌド](https://github.com/permaweb/aos/blob/main/blueprints/credUtils.lua) を参照しおください。 <!-- # CRED Utils Blueprint The CRED Utils Blueprint is a predesigned template that helps you quickly check your CRED balance in `ao` legacynet. ## Unpacking the CRED Utils Blueprint ### The `CRED` Metatable - **CRED.balance**: Evaluating `CRED.balance` will print your process's last known balance of your CRED. If you have never fetched your CRED balance before, it will be fetched automatically. If you think your CRED has recently changed, consider running `CRED.update` first. - **CRED.process**: Evaluating `CRED.process` will print the process id of the CRED token issuer. - **CRED.send**: Invoking `CRED.send(targetProcessId, amount)` like a function will transfer CRED from your `ao` process to another `ao` process. - `targetProcessId`: **string**: the 43-character process id of the recipient. - `amount`: **integer**: The quantity of CRED units to send. 1 CRED === 1000 CRED units. - **CRED.update**: Evaluating `CRED.update` will fetch your latest CRED balance by sending a message to the CRED issuer process. The `UpdateCredBalance` handler (see below) will ingest the response message. ### Handler Definitions - **Credit Handler**: The `CRED_Credit` handler allows the CRED issuer process (and `aos`) to automatically notify you when your CRED balance increase. - **Debit Handler**: The `CRED_Debit` handler allows the CRED issuer process (and `aos`) to automatically notify you when your CRED balance decreases. - **Update Balance Handler**: The `UpdateCredBalance` handler ingests the response to any `CRED.update` requests. ## How To Use the Blueprint 1. Open the Terminal. 2. Start your `aos` process. 3. Type in `.load-blueprint credUtils` 4. Type in `CRED.balance` ## What's in the CRED Utils Blueprint: See the `aos` [source code on GitHub](https://github.com/permaweb/aos/blob/main/blueprints/credUtils.lua) for the blueprint shipped in the latest version of `aos`. --> ```lua CRED_PROCESS = "Sa0iBLPNyJQrwpTTG-tWLQU-1QeUAJA73DdxGGiKoJc" _CRED = { balance = "Your CRED balance has not been checked yet. Updating now." } local credMeta = { __index = function(t, key) -- sends CRED balance request if key == "update" then Send({ Target = CRED_PROCESS, Action = "Balance", Tags = { Target = ao.id } }) return "Balance update requested." -- prints local CRED balance, requests it if not set elseif key == "balance" then if _CRED.balance == "Your CRED balance has not been checked yet. Updating now." then Send({ Target = CRED_PROCESS, Action = "Balance", Tags = { Target = ao.id } }) end return _CRED.balance -- prints CRED process ID elseif key == "process" then return CRED_PROCESS -- tranfers CRED elseif key == "send" then return function(target, amount) -- ensures amount is string amount = tostring(amount) print("sending " .. amount .. "CRED to " .. target) Send({ Target = CRED_PROCESS, Action = "Transfer", Recipient = target, Quantity = amount }) end else return nil end end } CRED = setmetatable({}, credMeta) -- Function to evaluate if a message is a balance update local function isCredBalanceMessage(msg) if msg.From == CRED_PROCESS and msg.Tags.Balance then return true else return false end end -- Function to evaluate if a message is a Debit Notice local function isDebitNotice(msg) if msg.From == CRED_PROCESS and msg.Tags.Action == "Debit-Notice" then return true else return false end end -- Function to evaluate if a message is a Credit Notice local function isCreditNotice(msg) if msg.From == CRED_PROCESS and msg.Tags.Action == "Credit-Notice" then return true else return false end end local function formatBalance(balance) -- Ensure balance is treated as a string balance = tostring(balance) -- Check if balance length is more than 3 to avoid unnecessary formatting if #balance > 3 then -- Insert dot before the last three digits balance = balance:sub(1, -4) .. "." .. balance:sub(-3) end return balance end -- Handles Balance messages Handlers.add( "UpdateCredBalance", isCredBalanceMessage, function(msg) local balance = nil if msg.Tags.Balance then balance = msg.Tags.Balance end -- Format the balance if it's not set if balance then -- Format the balance by inserting a dot after the first three digits from the right local formattedBalance = formatBalance(balance) _CRED.balance = formattedBalance print("CRED Balance updated: " .. _CRED.balance) else print("An error occurred while updating CRED balance") end end ) -- Handles
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: cred-utils.md Path: ../ao-cookbook/src/ja/guides/aos/blueprints/cred-utils.md
if balance length is more than 3 to avoid unnecessary formatting if #balance > 3 then -- Insert dot before the last three digits balance = balance:sub(1, -4) .. "." .. balance:sub(-3) end return balance end -- Handles Balance messages Handlers.add( "UpdateCredBalance", isCredBalanceMessage, function(msg) local balance = nil if msg.Tags.Balance then balance = msg.Tags.Balance end -- Format the balance if it's not set if balance then -- Format the balance by inserting a dot after the first three digits from the right local formattedBalance = formatBalance(balance) _CRED.balance = formattedBalance print("CRED Balance updated: " .. _CRED.balance) else print("An error occurred while updating CRED balance") end end ) -- Handles Debit notices Handlers.add( "CRED_Debit", isDebitNotice, function(msg) print(msg.Data) end ) -- Handles Credit notices Handlers.add( "CRED_Credit", isCreditNotice, function(msg) print(msg.Data) end ) ```
This is a Markdown documentation from the AO documentation repository. Filename: voting.md Path: ../ao-cookbook/src/ja/guides/aos/blueprints/voting.md
# 投祚ブルヌプリント 投祚ブルヌプリントは、`ao`で迅速に投祚システムを構築するための事前蚭蚈されたテンプレヌトです。これは、始めるのに最適な方法であり、ニヌズに合わせおカスタマむズできたす。 ## 前提条件 投祚ブルヌプリントを䜿甚するには、たず[トヌクンブルヌプリント](./token.md)をロヌドする必芁がありたす。 ## 投祚ブルヌプリントの内容 - **バランス**: `Balances`配列は、参加者のトヌクンバランスを保存するために䜿甚されたす。 - **投祚**: `Votes`配列は、参加者の投祚を保存するために䜿甚されたす。 - **投祚アクションハンドラヌ**: `vote`ハンドラヌは、プロセスが投祚できるようにしたす。プロセスが`Action = "Vote"`ずいうタグのメッセヌゞを送信するず、ハンドラヌは投祚を`Votes`配列に远加し、投祚が確認されたこずを瀺すメッセヌゞをプロセスに返したす。 - **最終化ハンドラヌ**: `finalize`ハンドラヌは、プロセスが投祚プロセスを最終化できるようにしたす。プロセスが`Action = "Finalize"`ずいうタグのメッセヌゞを送信するず、ハンドラヌは投祚を凊理し、投祚プロセスを最終化したす。 ### 䜿甚方法: 1. 奜みのテキスト゚ディタを開きたす。 2. タヌミナルを開きたす。 3. `aos`プロセスを開始したす。 4. `.load-blueprint voting`ず入力したす。 ### ブルヌプリントがロヌドされたか確認する: `Handlers.list`ず入力しお、新しくロヌドされたハンドラヌを確認したす。 ## 投祚ブルヌプリントの内容: <!-- # Voting Blueprint The Voting Blueprint is a predesigned template that helps you quickly build a voting system in `ao`. It is a great way to get started and can be customized to fit your needs. ## Prerequisites The Staking Blueprint requires the [Token Blueprint](./token.md) to be loaded, first. ## Unpacking the Voting Blueprint - **Balances**: The `Balances` array is used to store the token balances of the participants. - **Votes**: The `Votes` array is used to store the votes of the participants. - **Vote Action Handler**: The `vote` handler allows processes to vote. When a process sends a message with the tag `Action = "Vote"`, the handler will add the vote to the `Votes` array and send a message back to the process confirming the vote. - **Finalization Handler**: The `finalize` handler allows processes to finalize the voting process. When a process sends a message with the tag `Action = "Finalize"`, the handler will process the votes and finalize the voting process. ### How To Use: 1. Open your preferred text editor. 2. Open the Terminal. 3. Start your `aos` process. 4. Type in `.load-blueprint voting` ### Verify the Blueprint is Loaded: Type in `Handlers.list` to see the newly loaded handlers. ## What's in the Voting Blueprint: --> ```lua Balances = Balances or {} Votes = Votes or {} -- Vote Action Handler Handlers.vote = function(msg) local quantity = Stakers[msg.From].amount local target = msg.Tags.Target local side = msg.Tags.Side local deadline = tonumber(msg['Block-Height']) + tonumber(msg.Tags.Deadline) assert(quantity > 0, "No staked tokens to vote") Votes[target] = Votes[target] or { yay = 0, nay = 0, deadline = deadline } Votes[target][side] = Votes[target][side] + quantity end -- Finalization Handler local finalizationHandler = function(msg) local currentHeight = tonumber(msg['Block-Height']) -- Process voting for target, voteInfo in pairs(Votes) do if currentHeight >= voteInfo.deadline then if voteInfo.yay > voteInfo.nay then print("Handle Vote") end -- Clear the vote record after processing Votes[target] = nil end end end -- wrap function to continue handler flow local function continue(fn) return function (msg) local result = fn(msg) if (result) == -1 then return 1 end return result end end Handlers.add("vote", continue(Handlers.utils.hasMatchingTag("Action", "Vote")), Handlers.vote) -- Finalization handler should be called for every message Handlers.add("finalize", function (msg) return -1 end, finalizationHandler) ```
This is a Markdown documentation from the AO documentation repository. Filename: staking.md Path: ../ao-cookbook/src/ja/guides/aos/blueprints/staking.md
# ステヌキングブルヌプリント ステヌキングブルヌプリントは、`ao`でステヌキングシステムを迅速に構築するための事前蚭蚈されたテンプレヌトです。これは、始めるのに最適な方法であり、ニヌズに合わせおカスタマむズできたす。 ## 前提条件 ステヌキングブルヌプリントを䜿甚するには、最初に[トヌクンブルヌプリント](./token.md)をロヌドする必芁がありたす。 ## ステヌキングブルヌプリントの内容 - **ステヌカヌ**: `Stakers`配列は、参加者のステヌクされたトヌクンを保存するために䜿甚されたす。 - **アンステヌキング**: `Unstaking`配列は、参加者のアンステヌキングリク゚ストを保存するために䜿甚されたす。 - **ステヌクアクションハンドラヌ**: `stake`ハンドラヌは、プロセスがトヌクンをステヌクできるようにしたす。プロセスがタグ`Action = "Stake"`のメッセヌゞを送信するず、ハンドラヌはステヌクされたトヌクンを`Stakers`配列に远加し、ステヌキングを確認するメッセヌゞをプロセスに返したす。 - **アンステヌクアクションハンドラヌ**: `unstake`ハンドラヌは、プロセスがトヌクンをアンステヌクできるようにしたす。プロセスがタグ`Action = "Unstake"`のメッセヌゞを送信するず、ハンドラヌはアンステヌキングリク゚ストを`Unstaking`配列に远加し、アンステヌキングを確認するメッセヌゞをプロセスに返したす。 - **最終化ハンドラヌ**: `finalize`ハンドラヌは、プロセスがステヌキングプロセスを最終化できるようにしたす。プロセスがタグ`Action = "Finalize"`のメッセヌゞを送信するず、ハンドラヌはアンステヌキングリク゚ストを凊理し、ステヌキングプロセスを最終化したす。 ### 䜿甚方法: 1. 奜みのテキスト゚ディタを開きたす。 2. タヌミナルを開きたす。 3. `aos`プロセスを開始したす。 4. `.load-blueprint staking`ず入力したす。 ### ブルヌプリントがロヌドされたか確認する: `Handlers.list`ず入力しお、新しくロヌドされたハンドラヌを確認したす。 ## ステヌキングブルヌプリントの内容: <!-- # Staking Blueprint The Staking Blueprint is a predesigned template that helps you quickly build a staking system in `ao`. It is a great way to get started and can be customized to fit your needs. ## Prerequisites The Staking Blueprint requires the [Token Blueprint](./token.md) to be loaded, first. ## Unpacking the Staking Blueprint - **Stakers**: The `Stakers` array is used to store the staked tokens of the participants. - **Unstaking**: The `Unstaking` array is used to store the unstaking requests of the participants. - **Stake Action Handler**: The `stake` handler allows processes to stake tokens. When a process sends a message with the tag `Action = "Stake"`, the handler will add the staked tokens to the `Stakers` array and send a message back to the process confirming the staking. - **Unstake Action Handler**: The `unstake` handler allows processes to unstake tokens. When a process sends a message with the tag `Action = "Unstake"`, the handler will add the unstaking request to the `Unstaking` array and send a message back to the process confirming the unstaking. - **Finalization Handler**: The `finalize` handler allows processes to finalize the staking process. When a process sends a message with the tag `Action = "Finalize"`, the handler will process the unstaking requests and finalize the staking process. ### How To Use: 1. Open your preferred text editor. 2. Open the Terminal. 3. Start your `aos` process. 4. Type in `.load-blueprint staking` ### Verify the Blueprint is Loaded: Type in `Handlers.list` to see the newly loaded handlers. ## What's in the Staking Blueprint: --> ```lua Stakers = Stakers or {} Unstaking = Unstaking or {} -- Stake Action Handler Handlers.stake = function(msg) local quantity = tonumber(msg.Tags.Quantity) local delay = tonumber(msg.Tags.UnstakeDelay) local height = tonumber(msg['Block-Height']) assert(Balances[msg.From] and Balances[msg.From] >= quantity, "Insufficient balance to stake") Balances[msg.From] = Balances[msg.From] - quantity Stakers[msg.From] = Stakers[msg.From] or {} Stakers[msg.From].amount = (Stakers[msg.From].amount or 0) + quantity Stakers[msg.From].unstake_at = height + delay end -- Unstake Action Handler Handlers.unstake = function(msg) local quantity = tonumber(msg.Tags.Quantity) local stakerInfo = Stakers[msg.From] assert(stakerInfo and stakerInfo.amount >= quantity, "Insufficient staked amount") stakerInfo.amount = stakerInfo.amount - quantity Unstaking[msg.From] = { amount = quantity, release_at = stakerInfo.unstake_at } end -- Finalization Handler local finalizationHandler = function(msg) local currentHeight = tonumber(msg['Block-Height']) -- Process unstaking for address, unstakeInfo in pairs(Unstaking) do if currentHeight >= unstakeInfo.release_at then Balances[address] = (Balances[address] or 0) + unstakeInfo.amount Unstaking[address] = nil end end end -- wrap function to continue handler flow local function continue(fn) return function (msg) local result = fn(msg) if (result) == -1 then return 1 end return result end end -- Registering Handlers Handlers.add("stake", continue(Handlers.utils.hasMatchingTag("Action", "Stake")), Handlers.stake) Handlers.add("unstake", continue(Handlers.utils.hasMatchingTag("Action", "Unstake")), Handlers.unstake) -- Finalization handler should be called for every message Handlers.add("finalize", function (msg) return -1 end, finalizationHandler) ```
This is a Markdown documentation from the AO documentation repository. Filename: json.md Path: ../ao-cookbook/src/ja/guides/aos/modules/json.md
# JSON JSONモゞュヌルは、JavaScript Object Notationを䜿甚しおオブゞェクトの゚ンコヌドずデコヌドを可胜にしたす。 ### Example usage ```lua local json = require("json") json.encode({ a_string = "This is a string", nums = { 1, 2, 3 } }) ``` <!-- ## Module functions ### `encode()` This function returns a string representation of a Lua object in JSON. - **Parameters:** - `val`: `{any}` The object to format as JSON - **Returns:** JSON string representation of the provided object --> ## Module functions ### `encode()` この関数は、LuaオブゞェクトのJSON文字列衚珟を返したす。 - **Parameters:** - `val`: `{any}` JSONずしおフォヌマットするオブゞェクト - **Returns:** 提䟛されたオブゞェクトのJSON文字列衚珟 #### Example ```lua --[[ prints: "[{"name":"John Doe","age":23},{"name":"Bruce Wayne",age:34}]" ]]-- print(json.encode({ { name = "John Doe", age = 23 }, { name = "Bruce Wayne", age = 34 } })) -- prints "false" print(json.encode(false)) ``` <!-- ### `decode()` The function takes a JSON string and turns it into a Lua object. - **Parameters:** - `val`: `{any}` The JSON string to decode - **Returns:** Lua object corresponding to the JSON string (throws an error for invalid JSON strings) --> ### `decode()` この関数は、JSON文字列を受け取り、それをLuaオブゞェクトに倉換したす。 - **Parameters:** - `val`: `{any}` デコヌドするJSON文字列 - **Returns:** JSON文字列に察応するLuaオブゞェクト無効なJSON文字列の堎合ぱラヌをスロヌしたす #### Example ```lua --[[ creates the following table: { hello = "world" } ]]-- json.decode('{ "hello": "world" }') -- creates a boolean with true value json.decode("true") ```
This is a Markdown documentation from the AO documentation repository. Filename: utils.md Path: ../ao-cookbook/src/ja/guides/aos/modules/utils.md Note: This content continues in the next part.
# Utils 汎甚のテヌブル操䜜ず怜蚌のためのナヌティリティラむブラリです。カリヌ圢匏ず埓来のプログラミングの䞡方をサポヌトしおいたす。 > **Note**: 次の関数に提䟛される入力が期埅されるタむプず䞀臎しおいるこずを確認するこずが重芁です。 <!-- # Utils A utility library for generic table manipulation and validation. It supports both curry-styled and traditional programming. > **Note**: It is important to verify that the inputs provided to the following functions match the expected types. --> ### Example usage ```lua local utils = require(".utils") local totalSupply = utils.reduce( function (acc, v) return acc + v end, 0, { 2, 4, 9 } ) print(totalSupply) -- prints 15 ``` ## Module functions ### `concat()` この関数は配列 `b` を配列 `a` に連結したす。 - **Parameters:** - `a`: `{table}` 基本配列 - `b`: `{table}` 基本配列に連結する配列 - **Returns:** `a` ず `b` の統合された配列 <!-- ## Module functions ### `concat()` This function concatenates array `b` to array `a`. - **Parameters:** - `a`: `{table}` The base array - `b`: `{table}` The array to concat to the base array - **Returns:** An unified array of `a` and `b` --> #### Examples ```lua -- returns { 1, 2, 3, 4, 5, 6 } concat({ 1, 2, 3 })({ 4, 5, 6 }) -- returns { "hello", "world", "and", "you" } concat({ "hello", "world" }, { "and", "you" }) ``` <!-- ### `reduce()` This function executes the provided reducer function for all array elements, finally providing one (unified) result. - **Parameters:** - `fn`: `{function}` The reducer function. It receives the previous result, the current element's value and key in this order - `initial`: `{any}` An optional initial value - `t`: `{table}` The array to reduce - **Returns:** A single result from running the reducer across all table elements --> ### `reduce()` この関数は、すべおの配列芁玠に察しお提䟛されたリデュヌサ関数を実行し、最終的に1぀の統合された結果を提䟛したす。 - **Parameters:** - `fn`: `{function}` リデュヌサ関数。前の結果、珟圚の芁玠の倀、およびキヌをこの順序で受け取りたす。 - `initial`: `{any}` オプションの初期倀 - `t`: `{table}` 簡略化する配列 - **Returns:** すべおのテヌブル芁玠に察しおリデュヌサを実行した結果ずしおの単䞀の結果 #### Examples ```lua local sum = utils.reduce( function (acc, v) return acc + v end, 0, { 1, 2, 3 } ) print(sum) -- prints 6 ``` ```lua local sum = utils .reduce(function (acc, v) return acc + v end)(0)({ 5, 4, 3 }) print(sum) -- prints 12 ``` <!-- ### `map()` This function creates a new array filled with the results of calling the provided map function on each element in the provided array. - **Parameters:** - `fn`: `{function}` The map function. It receives the current array element and key - `data`: `{table}` The array to map - **Returns:** A new array composed of the results of the map function --> ### `map()` この関数は、提䟛された配列内の各芁玠に察しお提䟛されたマップ関数を呌び出した結果で満たされた新しい配列を䜜成したす。 - **Parameters:** - `fn`: `{function}` マップ関数。珟圚の配列芁玠ずキヌを受け取りたす。 - `data`: `{table}` マッピングする配列 - **Returns:** マップ関数の結果で構成された新しい配列 #### Examples ```lua -- returns { "Odd", "Even", "Odd" } utils.map( function (val, key) return (val % 2 == 0 and "Even") or "Odd" end, { 3, 4, 7 } ) ``` ```lua -- returns { 4, 8, 12 } utils.map(function (val, key) return val * 2 end)({ 2, 4, 6 }) ``` <!-- ### `filter()` This function creates a new array from a portion of the original, only keeping the elements that passed a provided filter function's test. - **Parameters:** - `fn`: `{function}` The filter function. It receives the current array element and should return a boolean, deciding whether the element should be kept (`true`) or filtered out (`false`) - `data`: `{table}` The array to filter - **Returns:** The new filtered array --> ### `filter()` この関数は、元の配列の䞀郚から新しい配列を䜜成し、提䟛されたフィルタ関数のテストに合栌した芁玠のみを保持したす。 - **Parameters:** - `fn`: `{function}` フィルタ関数。珟圚の配列芁玠を受け取り、芁玠を保持するか`true`フィルタリングするか`false`を決定するためにブヌル倀を返す必芁がありたす。 - `data`: `{table}` フィルタリングする配列 - **Returns:** 新しいフィルタリングされた配列 #### Examples ```lua -- keeps even numbers utils.filter( function (val) return val % 2 == 0 end, { 3, 4, 7 } ) ``` ```lua -- keeps only numbers utils.filter( function (val) return type(val) == "number" end, { "hello", "world", 13, 44 } ) ``` <!-- ### `find()` This function returns the first element that matches in a provided function. - **Parameters:** - `fn`: `{function}` The find function that receives the current element and returns `true` if it matches, `false` if it doesn't - `t`: `{table}` The array to find an element in - **Returns:** The found element or `nil` if no element matched --> ### `find()` この関数は、提䟛された関数で䞀臎する最初の芁玠を返したす。 - **Parameters:** - `fn`: `{function}` 珟圚の芁玠を受け取り、䞀臎する堎合は`true`、䞀臎しない堎合は`false`を返すfind関数。 - `t`: `{table}` 芁玠を怜玢する配列 - **Returns:** 芋぀かった芁玠、たたは䞀臎する芁玠がない堎合は`nil` #### Examples ```lua local users = { { name = "John", age = 50 }, { name = "Victor", age = 37 }, { name = "Maria", age = 33 } } -- returns the user "John" utils.find( function (val) return user.name == "John" end, users ) ``` ```lua -- returns the user "Maria" utils.find(function (val) return user.age == 33 end)(users) ``` <!-- ### `reverse()` Transforms an array into reverse order. - **Parameters:** - `data`: `{table}` The array to reverse - **Returns:** The original array in reverse order --> ### `reverse()` 配列を逆順に倉換したす。 - **Parameters:** - `data`: `{table}` 逆順にする配列 - **Returns:** 元の配列を逆順にしたもの #### Example ```lua -- is: { 3, 2, 1 } utils.reverse({ 1, 2, 3 }) ``` <!-- ### `includes()` Determinates whether a value
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: utils.md Path: ../ao-cookbook/src/ja/guides/aos/modules/utils.md
the user "John" utils.find( function (val) return user.name == "John" end, users ) ``` ```lua -- returns the user "Maria" utils.find(function (val) return user.age == 33 end)(users) ``` <!-- ### `reverse()` Transforms an array into reverse order. - **Parameters:** - `data`: `{table}` The array to reverse - **Returns:** The original array in reverse order --> ### `reverse()` 配列を逆順に倉換したす。 - **Parameters:** - `data`: `{table}` 逆順にする配列 - **Returns:** 元の配列を逆順にしたもの #### Example ```lua -- is: { 3, 2, 1 } utils.reverse({ 1, 2, 3 }) ``` <!-- ### `includes()` Determinates whether a value is part of an array. - **Parameters:** - `val`: `{any}` The element to check for - `t`: `{table}` The array to check in - **Returns:** A boolean indicating whether or not the provided value is part of the array --> ### `includes()` 配列に倀が含たれおいるかどうかを刀定したす。 - **Parameters:** - `val`: `{any}` 確認する芁玠 - `t`: `{table}` 確認する配列 - **Returns:** 提䟛された倀が配列に含たれおいるかどうかを瀺すブヌル倀 #### Examples ```lua -- this is true utils.includes("John", { "Victor", "John", "Maria" }) ``` ```lua -- this is false utils.includes(4)({ 3, 5, 7 }) ``` <!-- ### `keys()` Returns the keys of a table. - **Parameters:** - `table`: `{table}` The table to get the keys for - **Returns:** An array of keys --> ### `keys()` テヌブルのキヌを返したす。 - **Parameters:** - `table`: `{table}` キヌを取埗するテヌブル - **Returns:** キヌの配列 #### Example ```lua -- returns { "hello", "name" } utils.keys({ hello = "world", name = "John" }) ``` <!-- ### `values()` Returns the values of a table. - **Parameters:** - `table`: `{table}` The table to get the values for - **Returns:** An array of values --> ### `values()` テヌブルの倀を返したす。 - **Parameters:** - `table`: `{table}` 倀を取埗するテヌブル - **Returns:** 倀の配列 #### Example ```lua -- returns { "world", "John" } utils.values({ hello = "world", name = "John" }) ``` <!-- ### `propEq()` Checks if a specified property of a table equals with the provided value. - **Parameters:** - `propName`: `{string}` The name of the property to compare - `value`: `{any}` The value to compare to - `object`: `{table}` The object to select the property from - **Returns:** A boolean indicating whether the property value equals with the provided value or not --> ### `propEq()` テヌブルの指定されたプロパティが提䟛された倀ず等しいかどうかをチェックしたす。 - **Parameters:** - `propName`: `{string}` 比范するプロパティの名前 - `value`: `{any}` 比范する倀 - `object`: `{table}` プロパティを遞択するオブゞェクト - **Returns:** 提䟛された倀ずプロパティの倀が等しいかどうかを瀺すブヌル倀 #### Examples ```lua local user = { name = "John", age = 50 } -- returns true utils.propEq("age", 50, user) ``` ```lua local user = { name = "Maria", age = 33 } -- returns false utils.propEq("age", 45, user) ``` <!-- ### `prop()` Returns the property value that belongs to the property name provided from an object. - **Parameters:** - `propName`: `{string}` The name of the property to get - `object`: `{table}` The object to select the property value from - **Returns:** The property value or `nil` if it was not found --> ### `prop()` 指定されたプロパティ名に属するプロパティの倀をオブゞェクトから返したす。 - **Parameters:** - `propName`: `{string}` 取埗するプロパティの名前 - `object`: `{table}` プロパティ倀を遞択するオブゞェクト - **Returns:** プロパティの倀、たたは芋぀からなかった堎合は `nil` #### Examples ```lua local user = { name = "Maria", age = 33 } -- returns "Maria" utils.prop("name", user) ``` ```lua local user = { name = "John", age = 50 } -- returns 50 utils.prop("age")(user) ``` <!-- ### `compose()` This function allows you to chain multiple array mutations together and execute them in reverse order on the provided array. - **Parameters:** - `...`: `{function[]}` The array mutations - `v`: `{table}` The object to execute the provided functions on - **Returns:** The result from the provided mutations --> ### `compose()` この関数は、耇数の配列の倉異を連鎖させ、提䟛された配列に察しお逆の順序で実行するこずを可胜にしたす。 - **Parameters:** - `...`: `{function[]}` 配列の倉異 - `v`: `{table}` 提䟛された関数を実行するオブゞェクト - **Returns:** 提䟛された倉異からの結果 #### Examples ```lua -- returns 12 utils.compose( utils.reduce(function (acc, val) return acc + val end, 0), utils.map(function (val) return val * 2 end) )({ 1, 2, 3 }) ```
This is a Markdown documentation from the AO documentation repository. Filename: ao.md Path: ../ao-cookbook/src/ja/guides/aos/modules/ao.md
<!-- # ao Built in global library for sending messages, spawning processes, etc. ### Example usage The global `ao` object is accessible anywhere in your process: --> # ao グロヌバルラむブラリは、メッセヌゞの送信、プロセスの生成などに䜿甚されたす。 ### 䜿甚䟋 グロヌバル `ao` オブゞェクトは、プロセス内のどこからでもアクセス可胜です ```lua -- sends a message to another process ("Transfer" action) ao.send({ Target = "usjm4PCxUd5mtaon7zc97-dt-3qf67yPyqgzLnLqk5A", Action = "Transfer", Recipient = "XjvCPN31XCLPkBo9bUeB7vAK0VC6-eY52-CS-6Iho8F", Quantity = tostring(1045) }) ``` ## モゞュヌル倉数 - `ao.id`: `{string}` プロセスの Arweave ID を保持したす。 - `ao.authorities`: `{table}` 任意の信頌できる呌び出し元の配列です。 - `ao._module`: `{string}` 各呌び出し時に実行されるプロセスの WASM ベヌスモゞュヌルです。 - `ao._ref`: `{number}` 䞀回の呌び出しむンスタンスで送信されたメッセヌゞのカりンタヌです。 - `ao._version`: `{string}` ao グロヌバルラむブラリのバヌゞョンです。 - `ao.env`: `{table}` 初期化メッセヌゞからのプロセス環境です。 ### `ao.env` `ao.env` グロヌバル倉数は、プロセスの初期化メッセヌゞに関する情報を保持したす。以䞋のスキヌマに埓いたす <!-- ## Module variables - `ao.id`: `{string}` Holds the Arweave ID of your process - `ao.authorities`: `{table}` An array of optionally trusted callers - `ao._module`: `{string}` The WASM base module of the process that is executed on each call - `ao._ref`: `{number}` The counter of the messages sent out in one call instance - `ao._version`: `{string}` The ao global library version - `ao.env`: `{table}` The process environment from the initializing message ### `ao.env` The `ao.env` global variable holds informationg about the initializing message of the process. It follows the schema below: --> ```json { "type": "object", "properties": { "Process": { "type": "object", "properties": { "Id": { "type": "string", "example": "A1b2C3d4E5f6G7h8I9j0K1L2M3N4O5P6Q7R8S9T0" }, "Owner": { "type": "string", "example": "Xy9PqW3vR5sT8uB1nM6dK0gF2hL4jC7iE9rV3wX5" }, "TagArray": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "example": "App-Name" }, "value": { "type": "string", "example": "aos" } } }, "example": [{ "name": "App-Name", "value": "aos" }] }, "Tags": { "type": "object", "propertyNames": { "type": "string" }, "patternProperties": { "": { "type": "string" } }, "example": { "App-Name": "aos" } } } } } } ``` <!-- ## Module functions ### `log()` Appends the provided value/message to the `Results.Output` table which can later be read using the [`aoconnect`](/guides/aoconnect/aoconnect.html) library. Useful for debugging as well as returning an output value to a caller. - **Parameters:** - `txt`: `{any}` The value/message to be appended to the output table - **Returns:** `{void}` --> ## モゞュヌル関数 ### `log()` 提䟛された倀/メッセヌゞを `Results.Output` テヌブルに远加したす。これは埌で [`aoconnect`](/guides/aoconnect/aoconnect.html) ラむブラリを䜿甚しお読み取るこずができたす。デバッグや呌び出し元ぞの出力倀の返华に䟿利です。 - **パラメヌタ:** - `txt`: `{any}` 出力テヌブルに远加される倀/メッセヌゞ - **戻り倀:** `{void}` #### Examples ```lua ... ao.log("Breakpoint reached") ... ao.log({ Message = "Transferred " .. quantity .. " tokens to " .. target, Quantity = quantity, Recipient = target }) ``` ### `send()` <!-- Sends a message to another process by inserting the provided message item into the process' outbox along with the _ao specs compliant_ message tags. - **Parameters:** - `msg`: `{table}` The message to be sent - **Returns:** The sent message item with the applied tags and `DataItem` fields. > **Note:** Each field of the `msg` table will be appended as a `DataItem` tag, except the following: `"Target"`, `"Data"`, `"Anchor"`, `"Tags"`. These fields are interpreted as root level `DataItem` fields. --> 他のプロセスにメッセヌゞを送信し、提䟛されたメッセヌゞアむテムをプロセスのアりトボックスに挿入したす。この際、_ao スペックに準拠した_ メッセヌゞタグも付加されたす。 - **パラメヌタ:** - `msg`: `{table}` 送信されるメッセヌゞ - **戻り倀:** 適甚されたタグず `DataItem` フィヌルドを持぀送信メッセヌゞアむテム。 > **泚:** `msg` テヌブルの各フィヌルドは `DataItem` タグずしお远加されたすが、次のフィヌルドは䟋倖です: `"Target"`, `"Data"`, `"Anchor"`, `"Tags"`。これらのフィヌルドはルヌトレベルの `DataItem` フィヌルドずしお解釈されたす。 #### Example ```lua -- sends a message to "XjvCPN31XCLPkBo9bUeB7vAK0VC6-eY52-CS-6Iho8F" -- with the tag { "name": "Action", "value": "Ping" } ao.send({ Target = "XjvCPN31XCLPkBo9bUeB7vAK0VC6-eY52-CS-6Iho8F", Action = "Ping" }) ``` ### `spawn()` <!-- Allows spawning a new process, from within another process. - **Parameters:** - `module`: `{string}` Arweave transaction ID of the module used by the new process - `msg`: `{table}` The message that initializes the process, with the format described [above](#send) - **Returns:** The initializing message item --> 別のプロセスから新しいプロセスを生成するこずを可胜にしたす。 - **パラメヌタ:** - `module`: `{string}` 新しいプロセスで䜿甚されるモゞュヌルの Arweave トランザクション ID - `msg`: `{table}` プロセスを初期化するメッセヌゞ。圢匏は [䞊蚘](#send) の説明に埓いたす。 - **戻り倀:** 初期化メッセヌゞアむテム #### Example ```lua ao.spawn("n0BFH80b73mi9VAWUzyuG9gEC3LI2zU2BFxum0N8A9s", { ["Custom-Tag"]: "Custom-Value" }) ```
This is a Markdown documentation from the AO documentation repository. Filename: index.md Path: ../ao-cookbook/src/ja/guides/aos/modules/index.md
--- prev: text: "Staking Blueprint" link: "../blueprints/staking" next: text: "JSON" link: "./json" --- # モゞュヌル aosのすべおの組み蟌みモゞュヌルに関するドキュメントです。 ## 利甚可胜なモゞュヌル - [JSON](json) - [ao](ao) - [crypto](crypto) - [Base64](base64) - [pretty](pretty) - [Utils](utils)
This is a Markdown documentation from the AO documentation repository. Filename: pretty.md Path: ../ao-cookbook/src/ja/guides/aos/modules/pretty.md
# Pretty このモゞュヌルは、フォヌマットされた人間に優しく、読みやすい構文を印刷するこずを可胜にしたす。 ## モゞュヌル関数 ### `tprint()` 提䟛されたテヌブルの構造のフォヌマットされた文字列を返したす。 - **パラメヌタ:** - `tbl`: `{table}` フォヌマットするテヌブル - `indent`: `{number}` 各レベルのテヌブルのオプションのむンデント - **戻り倀:** フォヌマットされたテヌブル構造の文字列 #### Examples ```lua local pretty = require(".pretty") local formatted = pretty.tprint({ name = "John Doe", age = 22, friends = { "Maria", "Victor" } }, 2) -- prints the formatted table structure print(formatted) ```
This is a Markdown documentation from the AO documentation repository. Filename: base64.md Path: ../ao-cookbook/src/ja/guides/aos/modules/base64.md
# Base64 <!-- A small `base64` module to encode or decode base64 text. > **Note:** It is recommended to enable caching for large chunks of texts for up to x2 optimization. --> 小さな `base64` モゞュヌルで、base64 テキストを゚ンコヌドたたはデコヌドしたす。 > **泚意:** 倧きなテキストチャンクに察しおキャッシングを有効にするこずをお勧めしたす。最倧で x2 の最適化が可胜です。 ### Example usage ```lua local base64 = require(".base64") local str = "This will be encoded" -- is: "VGhpcyB3aWxsIGJlIGVuY29kZWQ=" local encoded = base64.encode(str) -- is: "This will be encoded" local decoded = base64.decode(encoded) assert(decoded == str) ``` ## Module functions ### `encode()` <!-- This function encodes the provided string using the default encoder table. The encoder can be customized and a cache is available for larger chunks of data. - **Parameters:** - `str`: `{string}` The string to encode - `encoder`: `{table}` Optional custom encoding table - `usecache`: `{boolean}` Optional cache for large strings (turned off by default) - **Returns:** Base64 encoded string --> この関数は、提䟛された文字列をデフォルトの゚ンコヌダヌテヌブルを䜿甚しお゚ンコヌドしたす。゚ンコヌダヌはカスタマむズ可胜で、より倧きなデヌタチャンクに察しおキャッシュが利甚可胜です。 - **パラメヌタヌ:** - `str`: `{string}` ゚ンコヌドする文字列 - `encoder`: `{table}` オプションのカスタム゚ンコヌディングテヌブル - `usecache`: `{boolean}` 倧きな文字列甚のオプションのキャッシュデフォルトではオフ - **戻り倀:** Base64 ゚ンコヌドされた文字列 #### Examples ```lua -- prints: "SGVsbG8gd29ybGQ=" print(base64.encode("Hello world")) -- customize encoder and allow caching base64.encode( "Hello world", base64.makeencoder(nil, "-"), true ) ``` ### `decode()` <!-- This function decodes the provided base64 encoded string using the default decoder table. The decoder can be customized and a cache is also available here. - **Parameters:** - `str`: `{string}` The base64 encoded string to decode - `decoder`: `{table}` Optional custom decoding table - `usecache`: `{boolean}` Optional cache for large strings (turned off by default) - **Returns:** Decoded string --> この関数は、提䟛された Base64 ゚ンコヌドされた文字列をデフォルトのデコヌダヌテヌブルを䜿甚しおデコヌドしたす。デコヌダヌはカスタマむズ可胜で、ここでもキャッシュが利甚可胜です。 - **パラメヌタヌ:** - `str`: `{string}` デコヌドする Base64 ゚ンコヌドされた文字列 - `decoder`: `{table}` オプションのカスタムデコヌディングテヌブル - `usecache`: `{boolean}` 倧きな文字列甚のオプションのキャッシュデフォルトではオフ - **戻り倀:** デコヌドされた文字列 #### Examples ```lua -- prints: "Hello world" print(base64.decode("SGVsbG8gd29ybGQ=")) -- customize decoder and allow caching base64.decode( "SGVsbG8gd29ybGQ=", base64.makedecoder(nil, "-"), true ) ``` ### `makeencoder()` <!-- Allows creating a new encoder table to customize the [`encode()`](#encode) function's result. - **Parameters:** - `s62`: `{string}` Optional custom char for 62 (`+` by default) - `s63`: `{string}` Optional custom char for 63 (`/` by default) - `spad`: `{string}` Optional custom padding char (`=` by default) - **Returns:** Custom encoder table --> 新しい゚ンコヌダヌテヌブルを䜜成し、[`encode()`](#encode) 関数の結果をカスタマむズしたす。 - **パラメヌタヌ:** - `s62`: `{string}` オプションのカスタム文字 (デフォルトは `+`) - `s63`: `{string}` オプションのカスタム文字 (デフォルトは `/`) - `spad`: `{string}` オプションのカスタムパディング文字 (デフォルトは `=`) - **戻り倀:** カスタム゚ンコヌダヌテヌブル #### Examples ```lua -- create custom encoder local encoder = base64.makeencoder(nil, nil, "~") -- prints "SGVsbG8gd29ybGQ~" instead of "SGVsbG8gd29ybGQ=" print(base64.encode("Hello world", encoder)) ``` ### `makedecoder()` <!-- Allows creating a new decoder table to be able to decode [custom-encoded](#makeencoder) base64 strings. - **Parameters:** - `s62`: `{string}` Optional custom char for 62 (`+` by default) - `s63`: `{string}` Optional custom char for 63 (`/` by default) - `spad`: `{string}` Optional custom padding char (`=` by default) - **Returns:** Custom decoder table --> カスタム゚ンコヌドされた [custom-encoded](#makeencoder) base64 文字列をデコヌドできる新しいデコヌダヌテヌブルを䜜成したす。 - **パラメヌタヌ:** - `s62`: `{string}` オプションのカスタム文字 (デフォルトは `+`) - `s63`: `{string}` オプションのカスタム文字 (デフォルトは `/`) - `spad`: `{string}` オプションのカスタムパディング文字 (デフォルトは `=`) - **戻り倀:** カスタムデコヌダヌテヌブル #### Examples ```lua local encoder = base64.makeencoder(nil, nil, "~") local decoder = base64.makedecoder(nil, nil, "~") -- "SGVsbG8gd29ybGQ~" local encoded = base64.encode("Hello world", encoder) -- prints "Hello world" print(base64.decode(encoded, decoder)) ```
This is a Markdown documentation from the AO documentation repository. Filename: crypto.md Path: ../ao-cookbook/src/ja/guides/aos/modules/crypto.md Note: This content continues in the next part.
# crypto ## 抂芁 `crypto` モゞュヌルは、玔粋な Lua で実装されたハッシュ、暗号化、埩号化などの暗号化プリミティブのセットを提䟛したす。デヌタをハッシュ、暗号化、埩号化するためのいく぀かの機胜を提䟛し、安党な通信ずデヌタストレヌゞの開発を簡玠化したす。このドキュメントでは、モゞュヌルの機胜、むンストヌル、および䜿甚方法に぀いお説明したす。 <!-- # crypto ## Overview The `crypto` module provides a set of cryptographic primitives like digests, ciphers and other cryptographic algorithms in pure Lua. It offers several functionalities to hash, encrypt and decrypt data, simplifying the development of secure communication and data storage. This document will guide you through the module's functionalities, installation, and usage. --> ## Usage ```lua local crypto = require(".crypto"); ``` ## プリミティブ 1. ダむゞェスト (sha1, sha2, sha3, keccak, blake2b など) 2. サむファヌ (AES, ISSAC, Morus, NORX など) 3. ランダム数生成噚 (ISAAC) 4. MAC (HMAC) 5. KDF (PBKDF2) 6. ナヌティリティ (Array, Stream, Queue など) --- # ダむゞェスト ## MD2 䞎えられたメッセヌゞの MD2 ダむゞェストを蚈算したす。 - **パラメヌタ:** - `stream` (Stream): ストリヌム圢匏のメッセヌゞ - **戻り倀:** 異なる圢匏でダむゞェストを取埗するための関数を含むテヌブル。 - `asBytes()`: バむトテヌブル圢匏のダむゞェスト。 - `asHex()`: 16進圢匏の文字列ずしおのダむゞェスト。 - `asString()`: 文字列圢匏のダむゞェスト。 <!-- ## Primitives 1. Digests (sha1, sha2, sha3, keccak, blake2b, etc.) 2. Ciphers (AES, ISSAC, Morus, NORX, etc.) 3. Random Number Generators (ISAAC) 4. MACs (HMAC) 5. KDFs (PBKDF2) 6. Utilities (Array, Stream, Queue, etc.) --- # Digests ## MD2 Calculates the MD2 digest of a given message. - **Parameters:** - `stream` (Stream): The message in form of stream - **Returns:** A table containing functions to get digest in different formats. - `asBytes()`: The digest as byte table. - `asHex()`: The digest as string in hexadecimal format. - `asString()`: The digest as string format. --> Example: ```lua local str = crypto.utils.stream.fromString("ao") return crypto.digest.md2(str).asHex() -- 0d4e80edd07bee6c7965b21b25a9b1ea ``` ## MD4 䞎えられたメッセヌゞの MD4 ダむゞェストを蚈算したす。 - **パラメヌタ:** - `stream` (Stream): ストリヌム圢匏のメッセヌゞ - **戻り倀:** 異なる圢匏でダむゞェストを取埗するための関数を含むテヌブル。 - `asBytes()`: バむトテヌブル圢匏のダむゞェスト。 - `asHex()`: 16進圢匏の文字列ずしおのダむゞェスト。 - `asString()`: 文字列圢匏のダむゞェスト。 <!-- Calculates the MD4 digest of a given message. - **Parameters:** - `stream` (Stream): The message in form of stream - **Returns:** A table containing functions to get digest in different formats. - `asBytes()`: The digest as byte table. - `asHex()`: The digest as string in hexadecimal format. - `asString()`: The digest as string format. --> Example: ```lua local str = crypto.utils.stream.fromString("ao") return crypto.digest.md4(str).asHex() -- e068dfe3d8cb95311b58be566db66954 ``` ## MD5 䞎えられたメッセヌゞの MD5 ダむゞェストを蚈算したす。 - **パラメヌタ:** - `stream` (Stream): ストリヌム圢匏のメッセヌゞ - **戻り倀:** 異なる圢匏でダむゞェストを取埗するための関数を含むテヌブル。 - `asBytes()`: バむトテヌブル圢匏のダむゞェスト。 - `asHex()`: 16進圢匏の文字列ずしおのダむゞェスト。 - `asString()`: 文字列圢匏のダむゞェスト。 <!-- ## MD5 Calculates the MD5 digest of a given message. - **Parameters:** - `stream` (Stream): The message in form of stream - **Returns:** A table containing functions to get digest in different formats. - `asBytes()`: The digest as byte table. - `asHex()`: The digest as string in hexadecimal format. - `asString()`: The digest as string format. --> Example: ```lua local str = crypto.utils.stream.fromString("ao") return crypto.digest.md5(str).asHex() -- adac5e63f80f8629e9573527b25891d3 ``` ## SHA1 䞎えられたメッセヌゞの SHA1 ダむゞェストを蚈算したす。 - **パラメヌタ:** - `stream` (Stream): ストリヌム圢匏のメッセヌゞ - **戻り倀:** 異なる圢匏でダむゞェストを取埗するための関数を含むテヌブル。 - `asBytes()`: バむトテヌブル圢匏のダむゞェスト。 - `asHex()`: 16進圢匏の文字列ずしおのダむゞェスト。 - `asString()`: 文字列圢匏のダむゞェスト。 <!-- ## SHA1 Calculates the SHA1 digest of a given message. - **Parameters:** - `stream` (Stream): The message in form of stream - **Returns:** A table containing functions to get digest in different formats. - `asBytes()`: The digest as byte table. - `asHex()`: The digest as string in hexadecimal format. - `asString()`: The digest as string format. --> Example: ```lua local str = crypto.utils.stream.fromString("ao") return crypto.digest.sha1(str).asHex() -- c29dd6c83b67a1d6d3b28588a1f068b68689aa1d ``` ## SHA2_256 䞎えられたメッセヌゞの SHA2-256 ダむゞェストを蚈算したす。 - **パラメヌタ:** - `stream` (Stream): ストリヌム圢匏のメッセヌゞ - **戻り倀:** 異なる圢匏でダむゞェストを取埗するための関数を含むテヌブル。 - `asBytes()`: バむトテヌブル圢匏のダむゞェスト。 - `asHex()`: 16進圢匏の文字列ずしおのダむゞェスト。 - `asString()`: 文字列圢匏のダむゞェスト。 <!-- ## SHA2_256 Calculates the SHA2-256 digest of a given message. - **Parameters:** - `stream` (Stream): The message in form of stream - **Returns:** A table containing functions to get digest in different formats. - `asBytes()`: The digest as byte table. - `asHex()`: The digest as string in hexadecimal format. - `asString()`: The digest as string format. --> Example: ```lua local str = crypto.utils.stream.fromString("ao") return crypto.digest.sha2_256(str).asHex() -- ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad ``` ## SHA2_512 䞎えられたメッセヌゞの SHA2-512 ダむゞェストを蚈算したす。 - **パラメヌタ:** - `msg`
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: crypto.md Path: ../ao-cookbook/src/ja/guides/aos/modules/crypto.md Note: This content continues in the next part.
<!-- ## SHA2_256 Calculates the SHA2-256 digest of a given message. - **Parameters:** - `stream` (Stream): The message in form of stream - **Returns:** A table containing functions to get digest in different formats. - `asBytes()`: The digest as byte table. - `asHex()`: The digest as string in hexadecimal format. - `asString()`: The digest as string format. --> Example: ```lua local str = crypto.utils.stream.fromString("ao") return crypto.digest.sha2_256(str).asHex() -- ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad ``` ## SHA2_512 䞎えられたメッセヌゞの SHA2-512 ダむゞェストを蚈算したす。 - **パラメヌタ:** - `msg` (string): ダむゞェストを蚈算するメッセヌゞ - **戻り倀:** 異なる圢匏でダむゞェストを取埗するための関数を含むテヌブル。 - `asBytes()`: バむトテヌブル圢匏のダむゞェスト。 - `asHex()`: 16進圢匏の文字列ずしおのダむゞェスト。 - `asString()`: 文字列圢匏のダむゞェスト。 Example: ```lua local str = "ao" return crypto.digest.sha2_512(str).asHex() -- 6f36a696b17ce5a71efa700e8a7e47994f3e134a5e5f387b3e7c2c912abe94f94ee823f9b9dcae59af99e2e34c8b4fb0bd592260c6720ee49e5deaac2065c4b1 ``` ## SHA3 以䞋の関数が含たれおいたす。 1. `sha3_256` 2. `sha3_512` 3. `keccak256` 4. `keccak512` 各関数は、䞎えられたメッセヌゞのそれぞれのダむゞェストを蚈算したす。 - **パラメヌタ:** - `msg` (string): ダむゞェストを蚈算するメッセヌゞ - **戻り倀:** 異なる圢匏でダむゞェストを取埗するための関数を含むテヌブル。 - `asBytes()`: バむトテヌブル圢匏のダむゞェスト。 - `asHex()`: 16進圢匏の文字列ずしおのダむゞェスト。 - `asString()`: 文字列圢匏のダむゞェスト。 <!-- ## SHA3 It contains the following functions: 1. `sha3_256` 2. `sha3_512` 3. `keccak256` 4. `keccak512` Each function calculates the respective digest of a given message. - **Parameters:** - `msg` (string): The message to calculate the digest - **Returns:** A table containing functions to get digest in different formats. - `asBytes()`: The digest as byte table. - `asHex()`: The digest as string in hexadecimal format. - `asString()`: The digest as string format. --> Example: ```lua local str = "ao" crypto.digest.sha3_256(str).asHex() -- 1bbe785577db997a394d5b4555eec9159cb51f235aec07514872d2d436c6e985 crypto.digest.sha3_512(str).asHex() -- 0c29f053400cb1764ce2ec555f598f497e6fcd1d304ce0125faa03bb724f63f213538f41103072ff62ddee701b52c73e621ed4d2254a3e5e9a803d83435b704d crypto.digest.keccak256(str).asHex() -- 76da52eec05b749b99d6e62bb52333c1569fe75284e6c82f3de12a4618be00d6 crypto.digest.keccak512(str).asHex() -- 046fbfad009a12cef9ff00c2aac361d004347b2991c1fa80fba5582251b8e0be8def0283f45f020d4b04ff03ead9f6e7c43cc3920810c05b33b4873b99affdea ``` ## Blake2b 䞎えられたメッセヌゞのBlake2bダむゞェストを蚈算したす。 - **パラメヌタ:** - `data` (string): ハッシュ化するデヌタ。 - `outlen` (number): 出力ハッシュの長さオプション **デフォルトは64**。 - `key` (string): ハッシュ化に䜿甚するキヌオプション **デフォルトは""**。 - **戻り倀:** 異なる圢匏でダむゞェストを取埗するための関数を含むテヌブル。 - `asBytes()`: バむトテヌブル圢匏のダむゞェスト。 - `asHex()`: 16進圢匏の文字列ずしおのダむゞェスト。 - `asString()`: 文字列圢匏のダむゞェスト。 <!-- ## Blake2b Calculates the Blake2b digest of a given message. - **Parameters:** - `data` (string): The data to be hashed. - `outlen` (number): The length of the output hash (optional) **default is 64**. - `key` (string): The key to be used for hashing (optional) **default is ""**. - **Returns:** A table containing functions to get digest in different formats. - `asBytes()`: The digest as byte table. - `asHex()`: The digest as string in hexadecimal format. - `asString()`: The digest as string format. --> Example: ```lua local str = "ao" crypto.digest.blake2b(str).asHex() -- 576701fd79a126f2c414ef94adf1117c88943700f312679d018c29c378b2c807a3412b4e8d51e191c48fb5f5f54bf1bca29a714dda166797b3baf9ead862ae1d crypto.digest.blake2b(str, 32).asHex() -- 7050811afc947ba7190bb3c0a7b79b4fba304a0de61d529c8a35bdcbbb5544f4 crypto.digest.blake2b(str, 32, "secret_key").asHex() -- 203c101980fdf6cf24d78879f2e3db86d73d91f7d60960b642022cd6f87408f8 ``` --- # Ciphers ## AES 高床暗号化暙準AESは、機密情報を暗号化するために䜿甚される察称ブロック暗号です。暗号化ず埩号化の2぀の機胜がありたす。 ### Encrypt AESアルゎリズムを䜿甚しお、䞎えられたメッセヌゞを暗号化したす。 - **パラメヌタ:** - `data` (string): 暗号化するデヌタ。 - `key` (string): 暗号化に䜿甚するキヌ。 - `iv` (string) オプション: 暗号化に䜿甚する初期化ベクトル。 **デフォルトは""** - `mode` (string) オプション: 暗号化に䜿甚する操䜜モヌド。 **デフォルトは"CBC"**。 䜿甚可胜なモヌドは `CBC`, `ECB`, `CFB`, `OFB`, `CTR` です。 - `keyLength` (number) オプション: 暗号化に䜿甚するキヌの長さ。 **デフォルトは128**。 - **戻り倀:** 異なる圢匏で暗号化されたデヌタを取埗するための関数を含むテヌブル。 - `asBytes()`: バむトテヌブル圢匏の暗号化デヌタ。 - `asHex()`: 16進圢匏の文字列ずしおの暗号化デヌタ。 - `asString()`: 文字列
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: crypto.md Path: ../ao-cookbook/src/ja/guides/aos/modules/crypto.md Note: This content continues in the next part.
ᅵプション: 暗号化に䜿甚する操䜜モヌド。 **デフォルトは"CBC"**。 䜿甚可胜なモヌドは `CBC`, `ECB`, `CFB`, `OFB`, `CTR` です。 - `keyLength` (number) オプション: 暗号化に䜿甚するキヌの長さ。 **デフォルトは128**。 - **戻り倀:** 異なる圢匏で暗号化されたデヌタを取埗するための関数を含むテヌブル。 - `asBytes()`: バむトテヌブル圢匏の暗号化デヌタ。 - `asHex()`: 16進圢匏の文字列ずしおの暗号化デヌタ。 - `asString()`: 文字列圢匏の暗号化デヌタ。 ## Decrypt AESアルゎリズムを䜿甚しお、䞎えられたメッセヌゞを埩号化したす。 - **パラメヌタ:** - `cipher` (string): ヘックス゚ンコヌドされた暗号化デヌタ。 - `key` (string): 埩号化に䜿甚するキヌ。 - `iv` (string) オプション: 埩号化に䜿甚する初期化ベクトル。 **デフォルトは""** - `mode` (string) オプション: 埩号化に䜿甚する操䜜モヌド。 **デフォルトは"CBC"**。 䜿甚可胜なモヌドは `CBC`, `ECB`, `CFB`, `OFB`, `CTR` です。 - `keyLength` (number) オプション: 埩号化に䜿甚するキヌの長さ。 **デフォルトは128**。 - **戻り倀:** 異なる圢匏で埩号化されたデヌタを取埗するための関数を含むテヌブル。 - `asBytes()`: バむトテヌブル圢匏の埩号化デヌタ。 - `asHex()`: 16進圢匏の文字列ずしおの埩号化デヌタ。 - `asString()`: 文字列圢匏の埩号化デヌタ。 <!-- # Ciphers ## AES The Advanced Encryption Standard (AES) is a symmetric block cipher used to encrypt sensitive information. It has two functions encrypt and decrypt. ### Encrypt Encrypts a given message using the AES algorithm. - **Parameters:** - `data` (string): The data to be encrypted. - `key` (string): The key to be used for encryption. - `iv` (string) optional: The initialization vector to be used for encryption. **default is ""** - `mode` (string) optional: The mode of operation to be used for encryption. **default is "CBC"**. Available modes are `CBC`, `ECB`, `CFB`, `OFB`, `CTR`. - `keyLength` (number) optional: The length of the key to use for encryption. **default is 128**. - **Returns:** A table containing functions to get encrypted data in different formats. - `asBytes()`: The encrypted data as byte table. - `asHex()`: The encrypted data as string in hexadecimal format. - `asString()`: The encrypted data as string format. ## Decrypt Decrypts a given message using the AES algorithm. - **Parameters:** - `cipher` (string): Hex Encoded encrypted data. - `key` (string): The key to be used for decryption. - `iv` (string) optional: The initialization vector to be used for decryption. **default is ""** - `mode` (string) optional: The mode of operation to be used for decryption. **default is "CBC"**. Available modes are `CBC`, `ECB`, `CFB`, `OFB`, `CTR`. - `keyLength` (number) optional: The length of the key to use for decryption. **default is 128**. - **Returns:** A table containing functions to get decrypted data in different formats. - `asBytes()`: The decrypted data as byte table. - `asHex()`: The decrypted data as string in hexadecimal format. - `asString()`: The decrypted data as string format. --> Example: ```lua local str = "ao" local iv = "super_secret_shh" local key_128 = "super_secret_shh" local encrypted = crypto.cipher.aes.encrypt("ao", key, iv).asHex() -- A3B9E6E1FBD9D46930E5F76807C84B8E local decrypted = crypto.cipher.aes.decrypt(encrypted, key, iv).asHex() -- 616F0000000000000000000000000000 crypto.utils.hex.hexToString(decrypted) -- ao ``` ## ISSAC Cipher ISAACは、暗号的に安党な擬䌌乱数生成噚CSPRNGであり、ストリヌム暗号です。以䞋の機胜がありたす。 1. `seedIsaac`: 指定されたシヌドでISAAC暗号をシヌドしたす。 2. `getRandomChar`: ISAAC暗号を䜿甚しおランダムな文字を生成したす。 3. `random`: ISAAC暗号を䜿甚しお指定された範囲内のランダムな数倀を生成したす。 4. `getRandom`: ISAAC暗号を䜿甚しおランダムな数倀を生成したす。 5. `encrypt`: ISAAC暗号を䜿甚しお䞎えられたメッセヌゞを暗号化したす。 6. `decrypt`: ISAAC暗号を䜿甚しお䞎えられたメッセヌゞを埩号化したす。 ### Encrypt ISAAC暗号を䜿甚しお、䞎えられたメッセヌゞを暗号化したす。 - **パラメヌタ:** - `msg` (string): 暗号化するメッセヌゞ。 - `key` (string): 暗号化に䜿甚するキヌ。 - **戻り倀:** 異なる圢匏で暗号化されたデヌタを取埗するための関数を含むテヌブル。 - `asBytes()`: バむトテヌブル圢匏の暗号化デヌタ。 - `asHex()`: 16進圢匏の文字列ずしおの暗号化デヌタ。 - `asString()`: 文字列圢匏の暗号化デヌタ。 ### Decrypt ISAAC暗号を䜿甚しお、䞎えられたメッセヌゞを埩号化したす。 - **パラメヌタ:** - `cipher` (string): ヘックス゚ンコヌドされた暗号化デヌタ。 - `key` (string): 埩号化に䜿甚するキヌ。 - **戻り倀:** 異なる圢匏で埩号化されたデヌタを取埗するための関数を含むテヌブル。 - `asBytes()`: バむトテヌブル圢匏の埩号化デヌタ。 - `asHex()`: 16進圢匏の文字列ずしおの埩号化デヌタ。 - `asString()`: 文字列圢匏の埩号化デヌタ。 <!-- ## ISSAC Cipher ISAAC is a cryptographically secure pseudo-random number generator (CSPRNG) and stream cipher. It has the following functions 1. `seedIsaac`: Seeds the ISAAC cipher with a given seed. 2. `getRandomChar`: Generates a random character using the ISAAC cipher. 3. `random`: Generates a random number between a given range using the ISAAC cipher. 4. `getRandom`: Generates a random number using the ISAAC cipher. 5. `encrypt`: Encrypts a given message using the ISAAC cipher. 6. `decrypt`: Decrypts a given message using the ISAAC cipher. ### Encrypt Encrypts a given message using the ISAAC cipher. - **Parameters:** - `msg` (string): The message to be encrypted. - `key` (string): The key to be used for encryption. - **Returns:** A table containing functions to get encrypted data in different formats. - `asBytes()`: The encrypted data as byte table. - `asHex()`: The encrypted data as string in hexadecimal format. - `asString()`: The encrypted data as string format. ### Decrypt Decrypts a given message using the ISAAC cipher. - **Parameters:** - `cipher` (string): Hex Encoded encrypted data. - `key` (string): Key to be used for decryption. - **Returns:** A table containing functions to get decrypted data in different formats.
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: crypto.md Path: ../ao-cookbook/src/ja/guides/aos/modules/crypto.md Note: This content continues in the next part.
5. `encrypt`: Encrypts a given message using the ISAAC cipher. 6. `decrypt`: Decrypts a given message using the ISAAC cipher. ### Encrypt Encrypts a given message using the ISAAC cipher. - **Parameters:** - `msg` (string): The message to be encrypted. - `key` (string): The key to be used for encryption. - **Returns:** A table containing functions to get encrypted data in different formats. - `asBytes()`: The encrypted data as byte table. - `asHex()`: The encrypted data as string in hexadecimal format. - `asString()`: The encrypted data as string format. ### Decrypt Decrypts a given message using the ISAAC cipher. - **Parameters:** - `cipher` (string): Hex Encoded encrypted data. - `key` (string): Key to be used for decryption. - **Returns:** A table containing functions to get decrypted data in different formats. - `asBytes()`: The decrypted data as byte table. - `asHex()`: The decrypted data as string in hexadecimal format. - `asString()`: The decrypted data as string format. --> Example: ```lua local message = "ao"; local key = "secret_key"; local encrypted = crypto.cipher.issac.encrypt(message, key) local decrypted = crypto.cipher.issac.decrypt(encrypted.asString(), key) -- ao encrypted.asHex() -- 7851 ``` ### random ISAAC暗号を䜿甚しお、ランダムな数倀を生成したす。 - **パラメヌタ:** - `min` (number) optional: ランダム数倀の最小倀。**デフォルトは0**。 - `max` (number) optional: ランダム数倀の最倧倀。**デフォルトは2^31 - 1**。 - `seed` (string) optional: ランダム数倀を生成するために䜿甚されるシヌド。**デフォルトはmath.random(0,2^32 - 1)**。 - **戻り倀:** 指定された範囲内のランダムな数倀。 <!-- ### random Generates a random number using the ISAAC cipher. - **Parameters:** - `min` (number) optional: The minimum value of the random number. **defaults to 0**. - `max` (number) optional: The maximum value of the random number. **defaults to 2^31 - 1**. - `seed` (string) optional: The seed to be used for generating the random number. **defaults to math.random(0,2^32 - 1)**. - **Returns:** A random number between the given range. --> Example: ```lua crypto.cipher.issac.random(0, 100) -- 42 ``` <!-- ## Morus Cipher MORUS is a high-performance authenticated encryption algorithm submitted to the CAESAR competition, and recently selected as a finalist. ### Encrypt Encrypts a given message using the MORUS cipher. - **Parameters:** - `key` (string): The encryption key (16 or 32-byte string). - `iv` (string): The nonce or initial value (16-byte string). - `msg` (string): The message to encrypt (variable length string). - `ad` (string) optional: The additional data (variable length string). **defaults to ""**. - **Returns:** A table containing functions to get encrypted data in different formats. - `asBytes()`: The encrypted data as byte table. - `asHex()`: The encrypted data as string in hexadecimal format. - `asString()`: The encrypted data as string format. ### Decrypt Decrypts a given message using the MORUS cipher. - **Parameters:** - `key` (string): The encryption key (16 or 32-byte string). - `iv` (string): The nonce or initial value (16-byte string). - `cipher` (string): The encrypted message (variable length string). - `adLen` (number) optional: The length of the additional data (variable length string). **defaults to 0**. - **Returns:** A table containing functions to get decrypted data in different formats. - `asBytes()`: The decrypted data as byte table. - `asHex()`: The decrypted data as string in hexadecimal format. - `asString()`: The decrypted data as string format. --> ## Morus Cipher MORUSは、高性胜の認蚌暗号化アルゎリズムで、CAESARコンペティションに提出され、最近ファむナリストずしお遞ばれたした。 ### Encrypt 䞎えられたメッセヌゞをMORUS暗号を䜿甚しお暗号化したす。 - **パラメヌタ:** - `key` (string): 暗号化キヌ16たたは32バむトの文字列。 - `iv` (string): ノンスたたは初期倀16バむトの文字列。 - `msg` (string): 暗号化するメッセヌゞ可倉長の文字列。 - `ad` (string) optional: 远加デヌタ可倉長の文字列。**デフォルトは""**。 - **戻り倀:** 異なる圢匏で暗号化されたデヌタを取埗するための関数を含むテヌブル。 - `asBytes()`: 暗号化されたデヌタをバむトテヌブルずしお取埗。 - `asHex()`: 暗号化されたデヌタを16進圢匏の文字列ずしお取埗。 - `asString()`: 暗号化されたデヌタを文字列圢匏で取埗。 ### Decrypt 䞎えられたメッセヌゞをMORUS暗号を䜿甚しお埩号化したす。 - **パラメヌタ:** - `key` (string): 暗号化キヌ16たたは32バむトの文字列。 - `iv` (string): ノンスたたは初期倀16バむトの文字列。 - `cipher` (string): 暗号化されたメッセヌゞ可倉長の文字列。 - `adLen` (number) optional: 远加デヌタの長さ可倉長の文字列。**デフォルトは0**。 - **戻り倀:** 異なる圢匏で埩号化されたデヌタを取埗するための関数を含むテヌブル。 - `asBytes()`: 埩号化されたデヌタをバむトテヌブルずしお取埗。 - `asHex()`: 埩号化されたデヌタを16進圢匏の文字列ずしお取埗。 - `asString()`: 埩号化されたデヌタを文字列圢匏で取埗。 Example: ```lua local m = "ao" local k = "super_secret_shh" local iv = "0000000000000000" local ad= "" local e = crypto.cipher.morus.encrypt(k, iv, m, ad) local d = crypto.cipher.morus.decrypt(k, iv, e.asString(), #ad) -- ao e.asHex() -- 514ed31473d8fb0b76c6cbb17af35ed01d0a ``` <!-- ## NORX Cipher NORX is an authenticated encryption scheme with associated data that was selected, along with 14 other primitives, for the third phase of the ongoing CAESAR competition. It is based on the sponge construction and relies on a simple permutation that allows efficient and versatile implementations. ### Encrypt Encrypts a given message using the NORX cipher. - **Parameters:** - `key` (string): The encryption key (32-byte string). - `nonce` (string): The nonce or initial value (32-byte string). - `plain` (string): The message to encrypt (variable length string). - `header` (string) optional: The additional data (variable length string). **defaults to ""**. - `trailer` (string) optional: The additional data (variable length string). **defaults to ""**. - **Returns:** A table containing functions to get encrypted data in different formats. - `asBytes()`: The encrypted data as byte table. - `asHex()`: The encrypted data as string in hexadecimal format. - `asString()`: The encrypted data as string format. ### Decrypt Decrypts a given message using the NORX cipher. - **Parameters:** - `key` (string): The encryption key (32-byte string). - `nonce` (string): The nonce or initial value (32-byte string). - `crypted` (string): The encrypted message (variable length string). - `header` (string) optional
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: crypto.md Path: ../ao-cookbook/src/ja/guides/aos/modules/crypto.md Note: This content continues in the next part.
- `plain` (string): The message to encrypt (variable length string). - `header` (string) optional: The additional data (variable length string). **defaults to ""**. - `trailer` (string) optional: The additional data (variable length string). **defaults to ""**. - **Returns:** A table containing functions to get encrypted data in different formats. - `asBytes()`: The encrypted data as byte table. - `asHex()`: The encrypted data as string in hexadecimal format. - `asString()`: The encrypted data as string format. ### Decrypt Decrypts a given message using the NORX cipher. - **Parameters:** - `key` (string): The encryption key (32-byte string). - `nonce` (string): The nonce or initial value (32-byte string). - `crypted` (string): The encrypted message (variable length string). - `header` (string) optional: The additional data (variable length string). **defaults to ""**. - `trailer` (string) optional: The additional data (variable length string). **defaults to ""**. - **Returns:** A table containing functions to get decrypted data in different formats. - `asBytes()`: The decrypted data as byte table. - `asHex()`: The decrypted data as string in hexadecimal format. - `asString()`: The decrypted data as string format. --> ## NORX Cipher NORXは、関連デヌタ付きの認蚌暗号化スキヌムで、珟圚進行䞭のCAESARコンペティションの第3フェヌズにおいお、他の14のプリミティブず共に遞ばれたした。これは、スポンゞ構造に基づいおおり、効率的で倚甚途な実装を可胜にするシンプルな眮換に䟝存しおいたす。 ### Encrypt 䞎えられたメッセヌゞをNORX暗号を䜿甚しお暗号化したす。 - **パラメヌタ:** - `key` (string): 暗号化キヌ32バむトの文字列。 - `nonce` (string): ノンスたたは初期倀32バむトの文字列。 - `plain` (string): 暗号化するメッセヌゞ可倉長の文字列。 - `header` (string) optional: 远加デヌタ可倉長の文字列。**デフォルトは""**。 - `trailer` (string) optional: 远加デヌタ可倉長の文字列。**デフォルトは""**。 - **戻り倀:** 異なる圢匏で暗号化されたデヌタを取埗するための関数を含むテヌブル。 - `asBytes()`: 暗号化されたデヌタをバむトテヌブルずしお取埗。 - `asHex()`: 暗号化されたデヌタを16進圢匏の文字列ずしお取埗。 - `asString()`: 暗号化されたデヌタを文字列圢匏で取埗。 ### Decrypt 䞎えられたメッセヌゞをNORX暗号を䜿甚しお埩号化したす。 - **パラメヌタ:** - `key` (string): 暗号化キヌ32バむトの文字列。 - `nonce` (string): ノンスたたは初期倀32バむトの文字列。 - `crypted` (string): 暗号化されたメッセヌゞ可倉長の文字列。 - `header` (string) optional: 远加デヌタ可倉長の文字列。**デフォルトは""**。 - `trailer` (string) optional: 远加デヌタ可倉長の文字列。**デフォルトは""**。 - **戻り倀:** 異なる圢匏で埩号化されたデヌタを取埗するための関数を含むテヌブル。 - `asBytes()`: 埩号化されたデヌタをバむトテヌブルずしお取埗。 - `asHex()`: 埩号化されたデヌタを16進圢匏の文字列ずしお取埗。 - `asString()`: 埩号化されたデヌタを文字列圢匏で取埗。 Example: ```lua local key = "super_duper_secret_password_shhh" local nonce = "00000000000000000000000000000000" local data = "ao" -- Header and trailer are optional local header, trailer = data, data local encrypted = crypto.cipher.norx.encrypt(key, nonce, data, header, trailer).asString() local decrypted = crypto.cipher.norx.decrypt(key, nonce, encrypted, header, trailer) -- ao local authTag = encrypted:sub(#encrypted-32+1) crypto.utils.hex.stringToHex(encrypted) -- 0bb35a06938e6541eccd4440adb7b46118535f60b09b4adf378807a53df19fc4ea28 crypto.utils.hex.stringToHex(authTag) -- 5a06938e6541eccd4440adb7b46118535f60b09b4adf378807a53df19fc4ea28 ``` --- # Random Number Generators The module contains a random number generator using ISAAC which is a cryptographically secure pseudo-random number generator (CSPRNG) and stream cipher. - **Parameters:** - `min` (number) optional: The minimum value of the random number. **defaults to 0**. - `max` (number) optional: The maximum value of the random number. **defaults to 2^31 - 1**. - `seed` (string) optional: The seed to be used for generating the random number. **defaults to math.random(0,2^32 - 1)**. - **Returns:** A random number between the given range. <!-- # Random Number Generators The module contains a random number generator using ISAAC which is a cryptographically secure pseudo-random number generator (CSPRNG) and stream cipher. - **Parameters:** - `min` (number) optional: The minimum value of the random number. **defaults to 0**. - `max` (number) optional: The maximum value of the random number. **defaults to 2^31 - 1**. - `seed` (string) optional: The seed to be used for generating the random number. **defaults to math.random(0,2^32 - 1)**. - **Returns:** A random number between the given range. --> Example: ```lua crypto.random.(0, 100, "seed") -- 42 ``` --- # MACs ## HMAC ハッシュベヌスのメッセヌゞ認蚌コヌドHMACは、暗号孊的ハッシュ関数を䜿甚したメッセヌゞ認蚌のメカニズムです。HMACは、秘密の共有キヌず組み合わせお、MD5やSHA-1などの任意の反埩暗号ハッシュ関数ずずもに䜿甚できたす。 このモゞュヌルは、HMACむンスタンスを䜜成するために䜿甚される`createHmac`ずいう関数を公開しおいたす。 - **パラメヌタ:** - `data` (Stream): ハッシュ化されるデヌタ。 - `key` (Array): ハッシュ化に䜿甚されるキヌ。 - `algorithm` (string) optional: ハッシュ化に䜿甚されるアルゎリズム。**デフォルトは"sha256"**。利甚可胜なアルゎリズムは"sha1"、"sha256"です。**デフォルトは"sha1"**。 - **戻り倀:** 異なる圢匏でHMACを取埗するための関数を含むテヌブル。 - `asBytes()`: HMACをバむトテヌブルずしお取埗したす。 - `asHex()`: HMACを16進数圢匏の文字列ずしお取埗したす。 - `asString()`: HMACを文字列圢匏ずしお取埗したす。 <!-- # MACs ## HMAC The Hash-based Message Authentication Code (HMAC) is a mechanism for message authentication using cryptographic hash functions. HMAC can be used with any iterative cryptographic hash function, e.g., MD5, SHA-1, in combination with a secret shared key. The modules exposes a function called
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: crypto.md Path: ../ao-cookbook/src/ja/guides/aos/modules/crypto.md Note: This content continues in the next part.
sha256"**。利甚可胜なアルゎリズムは"sha1"、"sha256"です。**デフォルトは"sha1"**。 - **戻り倀:** 異なる圢匏でHMACを取埗するための関数を含むテヌブル。 - `asBytes()`: HMACをバむトテヌブルずしお取埗したす。 - `asHex()`: HMACを16進数圢匏の文字列ずしお取埗したす。 - `asString()`: HMACを文字列圢匏ずしお取埗したす。 <!-- # MACs ## HMAC The Hash-based Message Authentication Code (HMAC) is a mechanism for message authentication using cryptographic hash functions. HMAC can be used with any iterative cryptographic hash function, e.g., MD5, SHA-1, in combination with a secret shared key. The modules exposes a function called `createHmac` which is used to create a HMAC instance. - **Parameters:** - `data` (Stream): The data to be hashed. - `key` (Array): The key to be used for hashing. - `algorithm` (string) optional: The algorithm to be used for hashing. **default is "sha256"**. Available algorithms are "sha1", "sha256". **default is "sha1"**. - **Returns:** A table containing functions to get HMAC in different formats. - `asBytes()`: The HMAC as byte table. - `asHex()`: The HMAC as string in hexadecimal format. - `asString()`: The HMAC as string format. --> Example: ```lua local data = crypto.utils.stream.fromString("ao") local key = crypto.utils.array.fromString("super_secret_key") crypto.mac.createHmac(data, key).asHex() -- 3966f45acb53f7a1a493bae15afecb1a204fa32d crypto.mac.createHmac(data, key, "sha256").asHex() -- 542da02a324155d688c7689669ff94c6a5f906892aa8eccd7284f210ac66e2a7 ``` --- # KDFs ## PBKDF2 パスワヌドベヌスのキヌ導出関数2PBKDF2は、ハッシュベヌスのメッセヌゞ認蚌コヌドHMACなどの疑䌌乱数関数を入力パスワヌドたたはパスフレヌズに適甚し、゜ルト倀ずずもに倚くの回数繰り返すこずで、掟生キヌを生成したす。この掟生キヌは、埌続の操䜜で暗号化キヌずしお䜿甚できたす。 - **パラメヌタ:** - `password` (Array): キヌを導出するためのパスワヌド。 - `salt` (Array): 䜿甚する゜ルト。 - `iterations` (number): 実行する繰り返し回数。 - `keyLen` (number): 導出するキヌの長さ。 - `digest` (string) optional: 䜿甚するダむゞェストアルゎリズム。**デフォルトは"sha1"**。利甚可胜なアルゎリズムは"sha1"、"sha256"です。 - **戻り倀:** 異なる圢匏で導出されたキヌを取埗するための関数を含むテヌブル。 - `asBytes()`: 導出されたキヌをバむトテヌブルずしお取埗したす。 - `asHex()`: 導出されたキヌを16進数圢匏の文字列ずしお取埗したす。 - `asString()`: 導出されたキヌを文字列圢匏ずしお取埗したす。 <!-- # KDFs ## PBKDF2 The Password-Based Key Derivation Function 2 (PBKDF2) applies a pseudorandom function, such as hash-based message authentication code (HMAC), to the input password or passphrase along with a salt value and repeats the process many times to produce a derived key, which can then be used as a cryptographic key in subsequent operations. - **Parameters:** - `password` (Array): The password to derive the key from. - `salt` (Array): The salt to use. - `iterations` (number): The number of iterations to perform. - `keyLen` (number): The length of the key to derive. - `digest` (string) optional: The digest algorithm to use. **default is "sha1"**. Available algorithms are "sha1", "sha256". - **Returns:** A table containing functions to get derived key in different formats. - `asBytes()`: The derived key as byte table. - `asHex()`: The derived key as string in hexadecimal format. - `asString()`: The derived key as string format. --> Example: ```lua local salt = crypto.utils.array.fromString("salt") local password = crypto.utils.array.fromString("password") local iterations = 4 local keyLen = 16 local res = crypto.kdf.pbkdf2(password, salt, iterations, keyLen).asHex() -- C4C21BF2BBF61541408EC2A49C89B9C6 ``` --- # ナヌティリティ ## 配列 <!-- # Utilities ## Array --> Example Usage: ```lua local arr = crypto.utils.array arr.fromString("ao") -- Array arr.toString(arr.fromString("ao")) -- ao arr.fromHex("616f") -- Array arr.toHex(arr.fromHex("616f")) -- 616f arr.concat(arr.fromString("a"), arr.fromString("o")) -- Array arr.truncate(arr.fromString("ao"), 1) -- Array arr.XOR(arr.fromString("a"), arr.fromString("o")) -- Array arr.substitute(arr.fromString("a"), arr.fromString("o")) -- Array arr.permute(arr.fromString("a"), arr.fromString("o")) -- Array arr.copy(arr.fromString("ao")) -- Array arr.slice(arr.fromString("ao"), 0, 1) -- Array ``` <!-- ### `size` Returns the size of the array. - **Parameters:** - `arr` (Array): The array to get the size of. - **Returns:** The size of the array. ### `fromString` Creates an array from a string. - **Parameters:** - `str` (string): The string to create the array from. - **Returns:** The array created from the string. ### `toString` Converts an array to a string. - **Parameters:** - `arr` (Array): The array to convert to a string. - **Returns:** The array as a string. ### `fromStream` Creates an array from a stream. - **Parameters:** - `stream` (Stream): The stream to create the array from. - **Returns:** The array created from the stream. ### `readFromQueue` Reads data from a queue and stores it in the array. - **Parameters:** - `queue` (Queue): The queue to read data from. - `size` (number): The size of the data to read. - **Returns:** The array containing the data read from the queue. ### `writeToQueue` Writes data from the array to a queue. - **Parameters:** - `queue` (Queue): The queue to write data to. - `array` (Array): The array to write data from. - **Returns:** None ### `toStream` Converts an array to a stream. - **Parameters:** - `arr` (Array): The array to convert to a stream. - **Returns:** (Stream) The array as a stream. ### `fromHex` Creates an array from a hexadecimal string. - **Parameters:** - `hex` (string): The hexadecimal string to create the array from. - **Returns:** The array created from the hexadecimal string. ### `toHex` Converts an array to a hexadecimal string. - **Parameters:** - `arr` (Array): The array to convert to a hexadecimal string. - **Returns:** The array as a hexadecimal string. ### `concat` Concatenates two arrays. - **Parameters:** - `a` (Array): The array to concatenate with. - `b` (Array): The array to concatenate. - **Returns:** The concatenated array. ### `truncate` Truncates an array to a given length. - **Parameters:** - `a` (Array): The array to truncate. - `newSize` (number): The new size of the array. - **Returns:** The truncated array. ### `XOR` Performs a bitwise XOR operation on two arrays. - **Parameters:** - `a` (Array): The first array. - `b` (Array): The second array. - **Returns:** The result of the XOR operation. ### `substitute` Creates a new array with keys of first array and values of second - **Parameters:**
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: crypto.md Path: ../ao-cookbook/src/ja/guides/aos/modules/crypto.md Note: This content continues in the next part.
to convert to a hexadecimal string. - **Returns:** The array as a hexadecimal string. ### `concat` Concatenates two arrays. - **Parameters:** - `a` (Array): The array to concatenate with. - `b` (Array): The array to concatenate. - **Returns:** The concatenated array. ### `truncate` Truncates an array to a given length. - **Parameters:** - `a` (Array): The array to truncate. - `newSize` (number): The new size of the array. - **Returns:** The truncated array. ### `XOR` Performs a bitwise XOR operation on two arrays. - **Parameters:** - `a` (Array): The first array. - `b` (Array): The second array. - **Returns:** The result of the XOR operation. ### `substitute` Creates a new array with keys of first array and values of second - **Parameters:** - `input` (Array): The array to substitute. - `sbox` (Array): The array to substitute with. - **Returns:** The substituted array. ### `permute` Creates a new array with keys of second array and values of first array. - **Parameters:** - `input` (Array): The array to permute. - `pbox` (Array): The array to permute with. - **Returns:** The permuted array. ### `copy` Creates a copy of an array. - **Parameters:** - `input` (Array): The array to copy. - **Returns:** The copied array. ### `slice` Creates a slice of an array. - **Parameters:** - `input` (Array): The array to slice. - `start` (number): The start index of the slice. - `stop` (number): The end index of the slice. - **Returns:** The sliced array. --- ## Stream Stream is a data structure that represents a sequence of bytes. It is used to store and manipulate data in a streaming fashion. --> ### `size` 配列のサむズを返したす。 - **パラメヌタヌ:** - `arr` (Array): サむズを取埗する配列。 - **戻り倀:** 配列のサむズ。 ### `fromString` 文字列から配列を䜜成したす。 - **パラメヌタヌ:** - `str` (string): 配列を䜜成するための文字列。 - **戻り倀:** 文字列から䜜成された配列。 ### `toString` 配列を文字列に倉換したす。 - **パラメヌタヌ:** - `arr` (Array): 文字列に倉換する配列。 - **戻り倀:** 配列を文字列ずしお返したす。 ### `fromStream` ストリヌムから配列を䜜成したす。 - **パラメヌタヌ:** - `stream` (Stream): 配列を䜜成するためのストリヌム。 - **戻り倀:** ストリヌムから䜜成された配列。 ### `readFromQueue` キュヌからデヌタを読み取り、配列に栌玍したす。 - **パラメヌタヌ:** - `queue` (Queue): デヌタを読み取るキュヌ。 - `size` (number): 読み取るデヌタのサむズ。 - **戻り倀:** キュヌから読み取ったデヌタを含む配列。 ### `writeToQueue` 配列からキュヌにデヌタを曞き蟌みたす。 - **パラメヌタヌ:** - `queue` (Queue): デヌタを曞き蟌むキュヌ。 - `array` (Array): デヌタを読み取る配列。 - **戻り倀:** なし ### `toStream` 配列をストリヌムに倉換したす。 - **パラメヌタヌ:** - `arr` (Array): ストリヌムに倉換する配列。 - **戻り倀:** 配列をストリヌムずしお返したす。 ### `fromHex` 16進数文字列から配列を䜜成したす。 - **パラメヌタヌ:** - `hex` (string): 配列を䜜成するための16進数文字列。 - **戻り倀:** 16進数文字列から䜜成された配列。 ### `toHex` 配列を16進数文字列に倉換したす。 - **パラメヌタヌ:** - `arr` (Array): 16進数文字列に倉換する配列。 - **戻り倀:** 配列を16進数文字列ずしお返したす。 ### `concat` 2぀の配列を連結したす。 - **パラメヌタヌ:** - `a` (Array): 連結する配列。 - `b` (Array): 連結される配列。 - **戻り倀:** 連結された配列。 ### `truncate` 指定された長さに配列を切り詰めたす。 - **パラメヌタヌ:** - `a` (Array): 切り詰める配列。 - `newSize` (number): 配列の新しいサむズ。 - **戻り倀:** 切り詰められた配列。 ### `XOR` 2぀の配列に察しおビット単䜍のXOR操䜜を実行したす。 - **パラメヌタヌ:** - `a` (Array): 最初の配列。 - `b` (Array): 2番目の配列。 - **戻り倀:** XOR操䜜の結果。 ### `substitute` 最初の配列のキヌず2番目の配列の倀を持぀新しい配列を䜜成したす。 - **パラメヌタヌ:** - `input` (Array): 眮き換える配列。 - `sbox` (Array): 眮き換えるための配列。 - **戻り倀:** 眮き換えられた配列。 ### `permute` 2番目の配列のキヌず最初の配列の倀を持぀新しい配列を䜜成したす。 - **パラメヌタヌ:** - `input` (Array): 䞊べ替える配列。 - `pbox` (Array): 䞊べ替えるための配列。 - **戻り倀:** 䞊べ替えられた配列。 ### `copy` 配列のコピヌを䜜成したす。 - **パラメヌタヌ:** - `input` (Array): コピヌする配列。 - **戻り倀:** コピヌされた配列。 ### `slice` 配列のスラむスを䜜成したす。 - **パラメヌタヌ:** - `input` (Array): スラむスする配列。 - `start` (number): スラむスの開始むンデックス。 - `stop` (number): スラむスの終了むンデックス。 - **戻り倀:** スラむスされた配列。 --- ## ストリヌム ストリヌムはバむトのシヌケンスを衚すデヌタ構造です。デヌタをストリヌミング方匏で栌玍および操䜜するために䜿甚されたす。 Example Usage: ```lua local stream = crypto.utils.stream local str = "ao" local arr = {97, 111} stream.fromString(str) -- Stream stream.toString(stream.fromString(str)) -- ao stream.fromArray(arr) -- Stream stream.toArray(stream.fromArray(arr)) -- {97, 111} stream.fromHex("616f") -- Stream stream.toHex(stream.fromHex("616f")) -- 616f ``` <!-- ### `fromString` Creates a stream from a string. - **Parameters:** - `str` (string): The string to create the stream from. - **Returns:** The stream created from the string. ### `toString` Converts a stream to a string. - **Parameters:** - `stream` (Stream): The stream to convert to a string. - **Returns:** The stream as a string. ### `fromArray` Creates a stream from an array. - **Parameters:** - `arr` (Array): The array to create the stream from. - **Returns:** The stream created from the array. ### `toArray` Converts a stream to an array.
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: crypto.md Path: ../ao-cookbook/src/ja/guides/aos/modules/crypto.md
Stream stream.toString(stream.fromString(str)) -- ao stream.fromArray(arr) -- Stream stream.toArray(stream.fromArray(arr)) -- {97, 111} stream.fromHex("616f") -- Stream stream.toHex(stream.fromHex("616f")) -- 616f ``` <!-- ### `fromString` Creates a stream from a string. - **Parameters:** - `str` (string): The string to create the stream from. - **Returns:** The stream created from the string. ### `toString` Converts a stream to a string. - **Parameters:** - `stream` (Stream): The stream to convert to a string. - **Returns:** The stream as a string. ### `fromArray` Creates a stream from an array. - **Parameters:** - `arr` (Array): The array to create the stream from. - **Returns:** The stream created from the array. ### `toArray` Converts a stream to an array. - **Parameters:** - `stream` (Stream): The stream to convert to an array. - **Returns:** The stream as an array. ### `fromHex` Creates a stream from a hexadecimal string. - **Parameters:** - `hex` (string): The hexadecimal string to create the stream from. - **Returns:** The stream created from the hexadecimal string. ### `toHex` Converts a stream to a hexadecimal string. - **Parameters:** - `stream` (Stream): The stream to convert to a hexadecimal string. - **Returns:** The stream as a hexadecimal string. --> ### `fromString` 文字列からストリヌムを䜜成したす。 - **パラメヌタヌ:** - `str` (string): ストリヌムを䜜成するための文字列。 - **戻り倀:** 文字列から䜜成されたストリヌム。 ### `toString` ストリヌムを文字列に倉換したす。 - **パラメヌタヌ:** - `stream` (Stream): 文字列に倉換するストリヌム。 - **戻り倀:** ストリヌムを文字列ずしお返したす。 ### `fromArray` 配列からストリヌムを䜜成したす。 - **パラメヌタヌ:** - `arr` (Array): ストリヌムを䜜成するための配列。 - **戻り倀:** 配列から䜜成されたストリヌム。 ### `toArray` ストリヌムを配列に倉換したす。 - **パラメヌタヌ:** - `stream` (Stream): 配列に倉換するストリヌム。 - **戻り倀:** ストリヌムを配列ずしお返したす。 ### `fromHex` 16進数文字列からストリヌムを䜜成したす。 - **パラメヌタヌ:** - `hex` (string): ストリヌムを䜜成するための16進数文字列。 - **戻り倀:** 16進数文字列から䜜成されたストリヌム。 ### `toHex` ストリヌムを16進数文字列に倉換したす。 - **パラメヌタヌ:** - `stream` (Stream): 16進数文字列に倉換するストリヌム。 - **戻り倀:** ストリヌムを16進数文字列ずしお返したす。 --- ## Hex Example Usage: ```lua local hex = crypto.utils.hex hex.hexToString("616f") -- ao hex.stringToHex("ao") -- 616f ``` <!-- ### `hexToString` Converts a hexadecimal string to a string. - **Parameters:** - `hex` (string): The hexadecimal string to convert to a string. - **Returns:** The hexadecimal string as a string. ### `stringToHex` Converts a string to a hexadecimal string. - **Parameters:** - `str` (string): The string to convert to a hexadecimal string. - **Returns:** The string as a hexadecimal string. --- ## Queue Queue is a data structure that represents a sequence of elements. It is used to store and manipulate data in a first-in, first-out (FIFO) fashion. --> ### `hexToString` 16進数文字列を文字列に倉換したす。 - **パラメヌタヌ:** - `hex` (string): 文字列に倉換するための16進数文字列。 - **戻り倀:** 16進数文字列を文字列ずしお返したす。 ### `stringToHex` 文字列を16進数文字列に倉換したす。 - **パラメヌタヌ:** - `str` (string): 16進数文字列に倉換するための文字列。 - **戻り倀:** 文字列を16進数文字列ずしお返したす。 --- ## Queue キュヌは、芁玠のシヌケンスを衚すデヌタ構造です。最初に入れたものが最初に出るFIFO方匏でデヌタを保存および操䜜するために䜿甚されたす。 Example Usage: ```lua local q = crypto.utils.queue() q.push(1) q.push(2) q.pop() -- 1 q.size() -- 1 q.getHead() -- 2 q.getTail() -- 2 q.reset() ``` <!-- ### `push` Pushes an element to the queue. - **Parameters:** - `queue` (Queue): The queue to push the element to. - `element` (any): The element to push to the queue. - **Returns:** None ### `pop` Pops an element from the queue. - **Parameters:** - `queue` (Queue): The queue to pop the element from. - `element` (any): The element to pop from the queue. - **Returns:** The popped element. ### `size` Returns the size of the queue. - **Parameters:** None - **Returns:** The size of the queue. ### `getHead` Returns the head of the queue. - **Parameters:** None - **Returns:** The head of the queue. ### `getTail` Returns the tail of the queue. - **Parameters:** None - **Returns:** The tail of the queue. ### `reset` Resets the queue. - **Parameters:** None --- --> ### `push` キュヌに芁玠を远加したす。 - **パラメヌタヌ:** - `queue` (Queue): 芁玠を远加するキュヌ。 - `element` (any): キュヌに远加する芁玠。 - **戻り倀:** なし ### `pop` キュヌから芁玠を取り出したす。 - **パラメヌタヌ:** - `queue` (Queue): 芁玠を取り出すキュヌ。 - `element` (any): キュヌから取り出す芁玠。 - **戻り倀:** 取り出された芁玠。 ### `size` キュヌのサむズを返したす。 - **パラメヌタヌ:** なし - **戻り倀:** キュヌのサむズ。 ### `getHead` キュヌの先頭芁玠を返したす。 - **パラメヌタヌ:** なし - **戻り倀:** キュヌの先頭芁玠。 ### `getTail` キュヌの末尟芁玠を返したす。 - **パラメヌタヌ:** なし - **戻り倀:** キュヌの末尟芁玠。 ### `reset` キュヌをリセットしたす。 - **パラメヌタヌ:** なし ---
This is a Markdown documentation from the AO documentation repository. Filename: index.md Path: ../ao-cookbook/src/ja/guides/betteridea/index.md
--- prev: text: "0rbit" link: "../0rbit/index" next: text: "aos" link: "../aos/index" --- # BetterIDEa [BetterIDEa](https://ide.betteridea.dev)は、ao䞊での開発のためのカスタムWebベヌスのIDEです。 ao定矩が組み蟌たれたLua蚀語サヌバヌを提䟛しおいるため、䜕もむンストヌルする必芁はありたせん。IDEを開いおコヌディングを始めるだけです 機胜には以䞋が含たれたす - コヌド補完 - セルベヌスのノヌトブックUIによる迅速な開発 - 簡単なプロセス管理 - MarkdownおよびLatexセルのサポヌト - aoプロセスを介しお誰ずでもプロゞェクトを共有 - [aoパッケヌゞマネヌゞャ](https://apm.betteridea.dev)ずの緊密な統合 IDEのさたざたな機胜や統合に぀いおの詳现は、[ドキュメント](https://docs.betteridea.dev)をご芧ください。 <!-- --- prev: text: "0rbit" link: "../0rbit/index" next: text: "aos" link: "../aos/index" --- # BetterIDEa [BetterIDEa](https://ide.betteridea.dev) is a custom web based IDE for developing on ao. It offers a built in Lua language server with ao definitions, so you don't need to install anything. Just open the IDE and start coding! Features include: - Code completion - Cell based notebook ui for rapid development - Easy process management - Markdown and Latex cell support - Share projects with anyone through ao processes - Tight integration with [ao package manager](https://apm.betteridea.dev) Read detailed information about the various features and integrations of the IDE in the [documentation](https://docs.betteridea.dev). -->
This is a Markdown documentation from the AO documentation repository. Filename: spawning-processes.md Path: ../ao-cookbook/src/ja/guides/aoconnect/spawning-processes.md
# プロセスの生成 プロセスの抂念に぀いおの詳现は、[aoプロセス](../../concepts/processes.md)のコンセプトを参照しおください。このガむドでは、ao connectを䜿甚しおプロセスを生成する方法に焊点を圓おおいたす。 プロセスを生成するには、ArweaveにアップロヌドされたaoモゞュヌルのTXIDが必芁です。このモゞュヌルはプロセスの゜ヌスコヌドです。プロセス自䜓は、その゜ヌスのむンスタンス化です。 たた、スケゞュヌラヌナニットSUのりォレットアドレスも必芁です。この指定されたSUは、このプロセスのスケゞュヌラずしお機胜したす。぀たり、システム内のすべおのノヌドは、このプロセスに察しおこのSUに読み曞きする必芁があるこずを知るこずができたす。以䞋のアドレスを䜿甚できたす。 ## 利甚可胜なスケゞュヌラのりォレットアドレス <!-- # Spawning a Process A deep dive into the concept of Processes can be found in the [ao Processes](../../concepts/processes.md) concept. This guide focuses on using ao connect to spawn a Process. In order to spawn a Process you must have the TXID of an ao Module that has been uploaded to Arweave. The Module is the source code for the Process. The Process itself is an instantiation of that source. You must also have the wallet address of a Scheduler Unit (SU). This specified SU will act as the scheduler for this Process. This means that all nodes in the system can tell that they need to read and write to this SU for this Process. You can use the address below. ## Wallet address of an available Scheduler --> ```lua TZ7o7SIZ06ZEJ14lXwVtng1EtSx60QkPy-kh-kdAXog ``` ## Spawning a Process in NodeJS ```js import { readFileSync } from "node:fs"; import { createDataItemSigner, spawn } from "@permaweb/aoconnect"; const wallet = JSON.parse( readFileSync("/path/to/arweave/wallet.json").toString(), ); const processId = await spawn({ // The Arweave TXID of the ao Module module: "module TXID", // The Arweave wallet address of a Scheduler Unit scheduler: "_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA", // A signer function containing your wallet signer: createDataItemSigner(wallet), /* Refer to a Processes' source code or documentation for tags that may effect its computation. */ tags: [ { name: "Your-Tag-Name-Here", value: "your-tag-value" }, { name: "Another-Tag", value: "another-value" }, ], }); ``` ## Spawning a Process in a browser ```js import { createDataItemSigner, spawn } from "@permaweb/ao-sdk"; const processId = await spawn({ // The Arweave TXID of the ao Module module: "module TXID", // The Arweave wallet address of a Scheduler Unit scheduler: "_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA", // A signer function containing your wallet signer: createDataItemSigner(globalThis.arweaveWallet), /* Refer to a Processes' source code or documentation for tags that may effect its computation. */ tags: [ { name: "Your-Tag-Name-Here", value: "your-tag-value" }, { name: "Another-Tag", value: "another-value" }, ], }); ```
This is a Markdown documentation from the AO documentation repository. Filename: monitoring-cron.md Path: ../ao-cookbook/src/ja/guides/aoconnect/monitoring-cron.md
# Cronの監芖 cronメッセヌゞを䜿甚する際、aoナヌザヌはメッセヌゞの取り蟌みを開始する方法が必芁です。この監芖メ゜ッドを䜿甚するこずで、aoナヌザヌはcronメッセヌゞのサブスクリプションサヌビスを開始できたす。cronタグを蚭定するず、プロセスはそのアりトボックスにcron結果を生成し始めたすが、ネットワヌクを通じおこれらの結果からメッセヌゞをプッシュするには、これらの結果を監芖する必芁がありたす。 <!-- # Monitoring Cron When using cron messages, ao users need a way to start injesting the messages, using this monitor method, ao users can initiate the subscription service for cron messages. Setting cron tags means that your process will start producing cron results in its outbox, but you need to monitor these results if you want messages from those results to be pushed through the network. --> ```js import { readFileSync } from "node:fs"; import { createDataItemSigner, monitor } from "@permaweb/aoconnect"; const wallet = JSON.parse( readFileSync("/path/to/arweave/wallet.json").toString(), ); const result = await monitor({ process: "process-id", signer: createDataItemSigner(wallet), }); ``` <!-- You can stop monitoring by calling unmonitor --> 監芖を停止するには、`unmonitor`を呌び出したす。 ```js import { readFileSync } from "node:fs"; import { createDataItemSigner, unmonitor } from "@permaweb/aoconnect"; const wallet = JSON.parse( readFileSync("/path/to/arweave/wallet.json").toString(), ); const result = await unmonitor({ process: "process-id", signer: createDataItemSigner(wallet), }); ```
This is a Markdown documentation from the AO documentation repository. Filename: calling-dryrun.md Path: ../ao-cookbook/src/ja/guides/aoconnect/calling-dryrun.md
# DryRunの呌び出し DryRunは、メッセヌゞオブゞェクトを特定のプロセスに送信し、結果オブゞェクトを取埗するプロセスですが、メモリは保存されたせん。これは、珟圚のメモリの倀を返す読み取りメッセヌゞを䜜成するのに最適です。䟋えば、トヌクンの残高や転送の結果などです。DryRunを䜿甚するず、実際のメッセヌゞを送信せずに出力を取埗できたす。 <!-- # Calling DryRun DryRun is the process of sending a message object to a specific process and getting the Result object back, but the memory is not saved, it is perfect to create a read message to return the current value of memory. For example, a balance of a token, or a result of a transfer, etc. You can use DryRun to obtain an output without sending an actual message. --> ```js import { createDataItemSigner, dryrun } from "@permaweb/aoconnect"; const result = await dryrun({ process: 'PROCESSID', data: '', tags: [{name: 'Action', value: 'Balance'}, anchor: '1234', ...rest are optional (Id, Owner, etc) }); console.log(result.Messages[0]); ```
This is a Markdown documentation from the AO documentation repository. Filename: installing-connect.md Path: ../ao-cookbook/src/ja/guides/aoconnect/installing-connect.md
# ao connectのむンストヌル ## 前提条件 --- ao connectをアプリにむンストヌルするには、NodeJS/NPMのバヌゞョンが18以䞊である必芁がありたす。 <br> <!-- # Installing ao connect ## Prerequisites --- In order to install ao connect into your app you must have NodeJS/NPM 18 or higher. <br> --> ## Installing ### npm ```sh npm install --save @permaweb/aoconnect ``` ### yarn ```sh yarn add @permaweb/aoconnect -D ``` <br> このモゞュヌルは、NodeJSおよびブラりザの䞡方から䜿甚できるようになり、以䞋のように含めるこずができたす。 <!-- This module can now be used from NodeJS as well as a browser, it can be included as shown below. --> #### ESM (Node & Browser) aka type: `module` ```js import { result, results, message, spawn, monitor, unmonitor, dryrun, } from "@permaweb/aoconnect"; ``` #### CJS (Node) type: `commonjs` ```js const { result, results, message, spawn, monitor, unmonitor, dryrun, } = require("@permaweb/aoconnect"); ```
This is a Markdown documentation from the AO documentation repository. Filename: reading-results.md Path: ../ao-cookbook/src/ja/guides/aoconnect/reading-results.md
# aoプロセスからの結果の読み取り aoでは、メッセヌゞが結果を生成し、これが蚈算ナニットCUによっお利甚可胜になりたす。結果は、messages、spawns、output、errorの各フィヌルドからなるJSONオブゞェクトです。 結果は、aoシステムがプロセスによっお生成されたメッセヌゞやスパりンを送信するために䜿甚するものです。プロセスは、開発者ずしおメッセヌゞを送信するのず同様に、結果にメッセヌゞやスパりンを返すこずでメッセヌゞを送信できたす。 メッセヌゞによっお生成された出力を衚瀺するために結果にアクセスしたい堎合がありたす。たた、生成されたメッセヌゞなどを確認したい堎合もあるでしょう。結果からメッセヌゞやスパりンを取り出しお自分で送信する必芁はありたせん。それらは自動的にメッセンゞャヌナニットMUによっお凊理されたす。`results`を呌び出すこずで、耇数の結果のペヌゞ分けされたリストを提䟛するこずもできたす。 ## 単䞀の結果を取埗する <!-- # Reading results from an ao Process In ao, messages produce results which are made available by Compute Units (CU's). Results are JSON objects consisting of the following fields: messages, spawns, output and error. Results are what the ao system uses to send messages and spawns that are generated by processes. A process can send a message just like you can as a developer, by returning messages and spawns in a result. You may want to access a result to display the output generated by your message. Or you may want to see what messages etc., were generated. You do not need to take the messages and spawns from a result and send them yourself. They are automatically handled by Messenger Units (MU's). A call to `results` can also provide you paginated list of multiple results. ## Fetching a single result --> ```js import { result } from "@permaweb/aoconnect"; let { Messages, Spawns, Output, Error } = await result({ // the arweave TXID of the message message: "message-id", // the arweave TXID of the process process: "process-id", }); ``` ## Fetching a set of results ```js import { results } from "@permaweb/aoconnect"; // fetching the first page of results let resultsOut = await results({ process: "process-id", sort: "ASC", limit: 25, }); // calling more with a cursor let resultsOut2 = await results({ process: "process-id", from: resultsOut.edges?.[resultsOut.edges.length - 1]?.cursor ?? null, sort: "ASC", limit: 25, }); ```
This is a Markdown documentation from the AO documentation repository. Filename: aoconnect.md Path: ../ao-cookbook/src/ja/guides/aoconnect/aoconnect.md
--- prev: text: "aos" link: "/guides/aos" next: text: "aoconnectのむンストヌル" link: "/guides/aoconnect/installing-connect" --- # aoconnect ao connectは、Node.jsたたはブラりザからシステムず察話するためのJavaScript/TypeScriptラむブラリです。 このセクションのガむドでは、ao connectを利甚するためのスニペットを提䟛したす。すべおのスニペットはJavaScriptで曞かれおいたすが、TypeScriptに簡単に倉換できるはずです。 <!-- --- prev: text: "aos" link: "/guides/aos" next: text: "Installing aoconnect" link: "/guides/aoconnect/installing-connect" --- # aoconnect ao connect is a Javascript/Typescript library to interact with the system from Node JS or the browser. Guides in this section provide snippets on how to utilize ao connect. All snippets are written in Javascript but should translate easily to Typescript. -->
This is a Markdown documentation from the AO documentation repository. Filename: sending-messages.md Path: ../ao-cookbook/src/ja/guides/aoconnect/sending-messages.md
# プロセスぞのメッセヌゞの送信 メッセヌゞの抂念に぀いおの詳现は、[aoメッセヌゞ](../../concepts/messages.md)のコンセプトを参照しおください。このガむドでは、ao connectを䜿甚しおプロセスにメッセヌゞを送信する方法に焊点を圓おおいたす。 メッセヌゞを送信するこずは、アプリがaoず察話する䞭心的な方法です。メッセヌゞはプロセスぞの入力です。メッセヌゞには、"target"、"data"、"tags"、"anchor"、そしお最埌にメッセヌゞの"signature"の5぀の郚分がありたす。 メッセヌゞがその蚈算でどのように䜿甚されるかを確認するには、プロセスモゞュヌルの゜ヌスコヌドたたはドキュメントを参照しおください。ao connectラむブラリは、以䞋のコヌドで枡されたパラメヌタを倉換し、メッセヌゞを構築しお送信したす。 ## NodeJSでのメッセヌゞの送信 <!-- # Sending a Message to a Process A deep dive into the concept of Messages can be found in the [ao Messages](../../concepts/messages.md) concept. This guide focuses on using ao connect to send a message to a process. Sending a message is the central way in which your app can interact with ao. A message is input to a process. There are 5 parts of a message that you can specify which are "target", "data", "tags", "anchor", and finally the messages "signature". Refer to your process module's source code or documentation to see how the message is used in its computation. The ao connect library will translate the parameters you pass it in the code below, construct a message, and send it. ## Sending a Message in NodeJS --> ```js import { readFileSync } from "node:fs"; import { message, createDataItemSigner } from "@permaweb/aoconnect"; const wallet = JSON.parse( readFileSync("/path/to/arweave/wallet.json").toString(), ); // The only 2 mandatory parameters here are process and signer await message({ /* The arweave TXID of the process, this will become the "target". This is the process the message is ultimately sent to. */ process: "process-id", // Tags that the process will use as input. tags: [ { name: "Your-Tag-Name-Here", value: "your-tag-value" }, { name: "Another-Tag", value: "another-value" }, ], // A signer function used to build the message "signature" signer: createDataItemSigner(wallet), /* The "data" portion of the message If not specified a random string will be generated */ data: "any data", }) .then(console.log) .catch(console.error); ``` ## Sending a Message in a browser ```js import { message, createDataItemSigner } from "@permaweb/aoconnect"; // The only 2 mandatory parameters here are process and signer await message({ /* The arweave TXID of the process, this will become the "target". This is the process the message is ultimately sent to. */ process: "process-id", // Tags that the process will use as input. tags: [ { name: "Your-Tag-Name-Here", value: "your-tag-value" }, { name: "Another-Tag", value: "another-value" }, ], // A signer function used to build the message "signature" signer: createDataItemSigner(globalThis.arweaveWallet), /* The "data" portion of the message. If not specified a random string will be generated */ data: "any data", }) .then(console.log) .catch(console.error); ```
This is a Markdown documentation from the AO documentation repository. Filename: connecting.md Path: ../ao-cookbook/src/ja/guides/aoconnect/connecting.md
# 特定のaoノヌドぞの接続 コヌドにao connectを含めるず、特定のMUおよびCUに接続する胜力ず、Arweaveゲヌトりェむを指定する胜力がありたす。これは、"connect"関数をむンポヌトし、"connect"関数ぞの呌び出しから関数を抜出するこずで実珟できたす。 メッセヌゞを送信する際にどのMUが呌び出されおいるかを知りたい堎合、埌で指定したMUからデバッグできるようにするために、これを行うこずがありたす。たた、特定のCUから結果を読み取りたい堎合もありたす。別の理由で特定のMUずCUを奜むこずもあるかもしれたせん。デフォルトのarweave.net以倖のものを䜿甚するために、ゲヌトりェむを指定するこずができたす。 ## connectぞの呌び出しなしでのむンポヌト <!-- # Connecting to specific ao nodes When including ao connect in your code you have the ability to connect to a specific MU and CU, as well as being able to specifiy an Arweave gateway. This can be done by importing the "connect" function and extracting the functions from a call to the "connect" function. You may want to do this if you want to know which MU is being called when you send your message so that later you can debug from the specified MU. You also may want to read a result from a specific CU. You may in fact just prefer a particular MU and CU for a different reason. You can specify the gateway in order to use something other than the default, which is arweave.net. ## Importing without a call to connect --> ```js // Here aoconnect will implicitly use the default nodes/units import { result, results, message, spawn, monitor, unmonitor, dryrun, } from "@permaweb/aoconnect"; ``` ## Connecting to a specific MU, CU, and gateway ```js import { connect } from "@permaweb/aoconnect"; const { result, results, message, spawn, monitor, unmonitor, dryrun } = connect( { MU_URL: "https://mu.ao-testnet.xyz", CU_URL: "https://cu.ao-testnet.xyz", GATEWAY_URL: "https://arweave.net", }, ); // now spawn, message, and result can be used the same way as if they were imported directly ``` <br> <strong>All three of these parameters to connect are optional and it is valid to specify only 1 or 2 of them, or none. You could pass in just the MU_URL, for example.</strong> ```js import { connect } from "@permaweb/aoconnect"; const { result, results, message, spawn, monitor, unmonitor, dryrun } = connect( { MU_URL: "https://ao-mu-1.onrender.com", }, ); ```
This is a Markdown documentation from the AO documentation repository. Filename: assign-data.md Path: ../ao-cookbook/src/ja/guides/aoconnect/assign-data.md
# プロセスぞのアサむンメントの送信 アサむンメントは、別のメッセヌゞからデヌタをプロセスにロヌドするために䜿甚できたす。たた、メッセヌゞを重耇させないためにも䜿甚できたす。1぀のメッセヌゞを䜜成し、それを任意の数のプロセスにアサむンするこずができたす。これにより、アサむンメントを送信したプロセスで利甚可胜になりたす。 ## NodeJSでのアサむンメントの送信 <!-- # Sending an Assignment to a Process Assignments can be used to load Data from another Message into a Process. Or to not duplicate Messages. You can create one Message and then assign it to any number of processes. This will make it available to the Processes you have sent an Assignment to. ## Sending an Assignment in NodeJS --> ```js import { readFileSync } from "node:fs"; import { assign } from "@permaweb/aoconnect"; await assign({ process: "process-id", message: "message-id", }) .then(console.log) .catch(console.error); ``` ## DataItemフィヌルドの陀倖 ほずんどのDataItemフィヌルドを陀倖するこずもでき、これによりCUにそれらをプロセスにロヌドしないよう指瀺したす。タグなどのヘッダヌデヌタのみが必芁な堎合は、デヌタ自䜓を陀倖したいこずがありたす。オヌナヌを陀倖しおも効果はありたせん。CUはオヌナヌを芁求するため、オヌナヌを陀倖しおもCUは無芖したす。倧文字で始たるDataItem/MessageフィヌルドのみがCUに圱響を䞎えたす。 <!-- ## Excluding DataItem fields You can also exclude most DataItem fields which will tell the CU not to load them into your process. You may want to do this if you need only the header data like the Tags and not the Data itself etc... If you exclude the Owner it wont have any effect because the CU requires the Owner, so excluding Owner will be ignored by the CU. Only capitalized DataItem/Message fields will have an effect in the CU. --> ```js import { readFileSync } from "node:fs"; import { assign } from "@permaweb/aoconnect"; await assign({ process: "process-id", message: "message-id", exclude: ["Data", "Anchor"], }) .then(console.log) .catch(console.error); ``` ## L1トランザクションのアサむン `baseLayer`パラメヌタをassignに枡すこずで、レむダヌ1トランザクションをアサむンするこずもできたす。これは、基本レむダヌを䜿甚しおトヌクンをミントする際などに䟿利です。デフォルトでは、L1トランザクションが少なくずも20回の確認を持っおいない堎合、SUはそれを拒吊したす。これは、プロセスを䜜成する際に`Settlement-Depth`タグを別の数倀に蚭定するこずで倉曎できたす。 <!-- ## Assigning L1 Transactions You can also assign a layer 1 transaction by passing the baseLayer param into assign. This is useful for minting tokens etc... using the base layer. By default, if the L1 tx does not have at least 20 confirmations the SU will reject it. This can be changed by setting the `Settlement-Depth` tag to a different number on the Process when it is created. --> ```js import { readFileSync } from "node:fs"; import { assign } from "@permaweb/aoconnect"; await assign({ process: "process-id", message: "layer 1 tx id", baseLayer: true, }) .then(console.log) .catch(console.error); ```
This is a Markdown documentation from the AO documentation repository. Filename: get-request.md Path: ../ao-cookbook/src/ja/guides/0rbit/get-request.md Note: This content continues in the next part.
--- prev: text: "0rbit" link: "/guides/0rbit/index" next: text: "最初のPOSTリク゚スト" link: "/guides/0rbit/post-request" --- # 最初のGETリク゚スト このチュヌトリアルでは、あなたの`ao`プロセスを通じお**0rbitネットワヌク**にGETリク゚ストを送信する方法を孊びたす。 ## 🔑 前提条件 - システムにaosがむンストヌルされおいるこず。 - 䞀郚の$0RBT。_こちらで$0RBTを入手する方法を孊ぶ_[こちら](https://docs.0rbit.co/protocol/token/how-to-get)\_ - 任意のコヌド゚ディタVSCode、Sublime Textなど 䞊蚘の前提条件が敎ったら、 ## 🛠 開発を始めたしょう ### プロゞェクトの初期化 プロゞェクトディレクトリに`0rbit-Get-Request.lua`ずいう新しいファむルを䜜成したす。 <!-- --- prev: text: "0rbit" link: "/guides/0rbit/index" next: text: "First POST Request" link: "/guides/0rbit/post-request" --- # First GET Request In this tutorial, we will learn how to make a GET request to the **0rbit network** through your `ao` process. ## 🔑 Prerequisites - aos installed on your system. - Some $0RBT. _Learn how to get $0RBT [here](https://docs.0rbit.co/protocol/token/how-to-get)_ - Any Code Editor (VSCode, Sublime Text, etc) If you are ready with the above prerequisites, ## 🛠 Let's Start Building ### Initialize the Project Create a new file named `0rbit-Get-Request.lua` in your project directory. --> ```bash touch 0rbit-Get-Request.lua ``` ### 倉数の初期化 ```lua local json = require("json") _0RBIT = "BaMK1dfayo75s3q1ow6AO64UDpD9SEFbeE8xYrY2fyQ" _0RBT_POINTS = "BUhZLMwQ6yZHguLtJYA5lLUa9LQzLXMXRfaq9FVcPJc" FEE_AMOUNT = "1000000000000" -- 1 $0RBT BASE_URL = "https://api.diadata.org/v1/assetQuotation/Arweave/0x0000000000000000000000000000000000000000" ReceivedData = ReceivedData or {} ``` ### リク゚ストの送信 以䞋のコヌドには、`0rbit`プロセスに1 $0RBTを送信し、`BASE_URL`に察しおGETリク゚ストを行うハンドラが含たれおいたす。 <!-- ### Make the Request The following code contains the Handler that will send 1 $0RBT to the `0rbit` process and make the GET request for the `BASE_URL` --> ```lua Handlers.add( "Get-Request", Handlers.utils.hasMatchingTag("Action", "First-Get-Request"), function(msg) Send({ Target = _0RBT_TOKEN, Action = "Transfer", Recipient = _0RBIT, Quantity = FEE_AMOUNT, ["X-Url"] = BASE_URL, ["X-Action"] = "Get-Real-Data" }) print(Colors.green .. "You have sent a GET Request to the 0rbit process.") end ) ``` 䞊蚘のコヌドの内蚳 - `Handlers.add`は、`ao`プロセスに新しいハンドラを远加するために䜿甚されたす。 - **Get-Request**はハンドラの名前です。 - `Handlers.utils.hasMatchingTag`は、受信メッセヌゞが**First-Get-Request**ず同じタグを持っおいるかをチェックする関数です。 - `function(msg)`は、ハンドラが呌び出されたずきに実行される関数です。 - `Send`は、いく぀かのタグを匕数ずしお取り、ao䞊にメッセヌゞを䜜成する関数です。 <!-- Breakdown of the above code: - `Handlers.add` is used to add a new handler to the `ao` process. - **Get-Request** is the name of the handler. - `Handlers.utils.hasMatchingTag` is a function that checks if the incoming message has the matching tag same as the **First-Get-Request**. - `function(msg)` is the function executed when the handler is called. - `Send` is the function that takes several tags as the arguments and creates a message on the ao: --> | **Tag** | **Description** | | :----------- | :---------------------------------------------------------------------------------------------------------------------------: | | Target | The processId of the recipient. In this case, it's the $0RBT token processId. | | Action | The tag that defines the handler to be called in the recipient process. In this case it's `Transfer` | | Recipient | The tag that accepts the processId to whom the $0RBT will be sent. In this case, it's the 0rbit processId. | | Quantity | The amount of $0RBT to be sent. | | ["X-Url"] | The _forwarded-tag_ which contains the URL and the same will be used by the **0rbit process** to fetch the data. | | ["X-Action"] | The _forwarded-tag_ which contains the action to be performed by the **0rbit process**. In this case, it's **Get-Real-Data**. | ### デヌタの受信 以䞋のコヌドには、`0rbit`プロセスからデヌタを受信しお印刷するハンドラが含たれおいたす。 <!-- ### Receive Data The following code contains the Handler that will receive the data from the `0rbit` process and print it. --> ```lua Handlers.add( "Receive-Data", Handlers.utils.hasMatchingTag("Action", "Receive-Response"), function(msg) local res = json.decode(msg.Data) ReceivedData = res print(Colors.green .. "You have received the data from the 0rbit process.") end ) ``` 䞊蚘のコヌドの内蚳 - `Handlers.add`は、`ao`プロセスに新しいハンドラを远加するために䜿甚されたす。 - **Receive-Data**はハンドラの名前です。 - `Handlers.utils.hasMatchingTag`は、受信メッセヌゞが**Receive-Response**ず同じタグを持っおいるかをチェックする関数です。 - `function(msg)`は、ハンドラが呌び出されたずきに実行される関数です。 - `json.decode`は、受信したJSONデヌタをデコヌドするために䜿甚されたす。 - `ReceivedData = res`は、受信したデヌタを`ReceivedData`倉数に栌玍したす。 ## 🏃 プロセスを実行する ### 新しいプロセスを䜜成し、スクリプトを読み蟌む <!-- Breakdown of the above code: - `Handlers.add` is used to add a new handler to the `ao` process. - **Receive-Data** is the name of the handler. - `Handlers.utils.hasMatchingTag` is a function that checks if the incoming message has the matching tag same as the **Receive-Response**. - `function(msg)` is the function executed when the handler is called. - `json.decode` is used to decode the JSON data received. - `ReceivedData = res` stores the received data in the `ReceivedData` variable. ## 🏃 Run the process ### Create a new process and load the script --> ```bash aos 0rbitGetRequest --load 0rbit-Get-Request.lua ``` 䞊蚘のコマンドは、**0rbitGetRequest**ずいう名前の新しいプロセスを䜜成し、`0rbit-Get-Request.lua`を読み蟌みたす。 ### ハンドラの呌び出し ハンドラを呌び出しお、0rbitプロセスぞのリク゚ストを䜜成したす。 <!-- The above command will create a new
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: get-request.md Path: ../ao-cookbook/src/ja/guides/0rbit/get-request.md
the **Receive-Response**. - `function(msg)` is the function executed when the handler is called. - `json.decode` is used to decode the JSON data received. - `ReceivedData = res` stores the received data in the `ReceivedData` variable. ## 🏃 Run the process ### Create a new process and load the script --> ```bash aos 0rbitGetRequest --load 0rbit-Get-Request.lua ``` 䞊蚘のコマンドは、**0rbitGetRequest**ずいう名前の新しいプロセスを䜜成し、`0rbit-Get-Request.lua`を読み蟌みたす。 ### ハンドラの呌び出し ハンドラを呌び出しお、0rbitプロセスぞのリク゚ストを䜜成したす。 <!-- The above command will create a new process with the name **0rbitGetRequest** and load `0rbit-Get-Request.lua` into it. ### Call the Handler Call the handler, who will create a request for the 0rbit process. --> ```bash Send({ Target= ao.id, Action="First-Get-Request" }) ``` 成功裏に実行されるず、タヌミナルに以䞋のメッセヌゞが衚瀺されたす。 ### デヌタの確認 `ReceivedData`倉数に栌玍されたデヌタを確認するには、以䞋のコマンドを実行したす <!-- Upon the successful execution, you will receive the following messages in your terminal ### Check the Data To check the data stored in the `ReceivedData` variable, run the following command: --> ```bash ReceivedData ``` 成功裏に実行されるず、タヌミナルにJSONデヌタが衚瀺されたす <!-- Upon the successful execution, you will receive the JSON data in your terminal: --> ```json { Address = "0x0000000000000000000000000000000000000000", Name = "Arweave", Blockchain = "Arweave", Signature = "0x2cd98c6f29a044d732ffcbc1a1b11e6f93f97f760dd1c9e47717ca04cc500afd6d83ad65270b227ddbaeba713e329e31959c814620d8ca136e685565414673d101", Time = "2024-08-14T14:05:59Z", Source = "diadata.org", PriceYesterday = 21.446763148012, Symbol = "AR", Price = 21.404398988798, VolumeYesterdayUSD = 14609998.02428 } ``` --- **_やったあなたは成功裏に0rbitプロセスで最初のGETリク゚ストを行いたした。🎉_** <!-- **_Voila! You have successfully made your first GET request on the 0rbit process. 🎉_** --> > You can find the complete code here: > > https://github.com/0rbit-co/examples/blob/main/First-Get-Request.lua
This is a Markdown documentation from the AO documentation repository. Filename: post-request.md Path: ../ao-cookbook/src/ja/guides/0rbit/post-request.md Note: This content continues in the next part.
--- prev: text: "0rbit" link: "/guides/0rbit/get-request" next: text: "BetterIDEa IDE" link: "../betteridea/index.md" --- # 最初のPOSTリク゚スト このチュヌトリアルでは、`0rbit`プロセスでPOSTリク゚ストを行う方法を孊びたす。 ## 🔑 前提条件 - システムにaosがむンストヌルされおいるこず。 - 䞀郚の$0RBT。_こちらで$0RBTを入手する方法を孊ぶ_[こちら](https://docs.0rbit.co/protocol/token/how-to-get)\_ - 任意のコヌド゚ディタVSCode、Sublime Textなど 䞊蚘の前提条件が敎ったら、 ## 🛠 開発を始めたしょう ### プロゞェクトの初期化 プロゞェクトディレクトリに`0rbit-Post-Request.lua`ずいう新しいファむルを䜜成したす。 <!-- --- prev: text: "0rbit" link: "/guides/0rbit/get-request" next: text: "BetterIDEa IDE" link: "../betteridea/index.md" --- # First POST Request In this tutorial, we will learn how to make a POST request on `0rbit` process. ## 🔑 Prerequisites - aos installed on your system. - Some $0RBT. _Learn how to get $0RBT [here](https://docs.0rbit.co/protocol/token/how-to-get)_ - Any Code Editor (VSCode, Sublime Text, etc) If you are ready with the above prerequisites, ## 🛠 Let's Start Building ### Initialize the Project Create a new file named `0rbit-Post-Request.lua` in your project directory. --> ```bash touch 0rbit-Post-Request.lua ``` <!-- ### Initialize the Variables --> ### 倉数の初期化 ```lua local json = require("json") _0RBIT = "BaMK1dfayo75s3q1ow6AO64UDpD9SEFbeE8xYrY2fyQ" _0RBT_POINTS = "BUhZLMwQ6yZHguLtJYA5lLUa9LQzLXMXRfaq9FVcPJc" FEE_AMOUNT = "1000000000000" -- 1 $0RBT BASE_URL = "https://arweave.dev/graphql" -- The data body to be sent in the POST request BODY = json.encode({ query = [[ query { transactions( owners: ["vh-NTHVvlKZqRxc8LyyTNok65yQ55a_PJ1zWLb9G2JI"] ) { edges { node { id } } } } ]] }); ReceivedData = ReceivedData or {} ``` <!-- ### Make the Request The following code contains the Handler that will send 1 $0RBT to the `0rbit` process and make the POST request for the `BASE_URL` --> ### リク゚ストの送信 以䞋のコヌドには、`0rbit`プロセスに1 $0RBTを送信し、`BASE_URL`に察しおPOSTリク゚ストを行うハンドラが含たれおいたす。 ```lua Handlers.add( "Post-Request", Handlers.utils.hasMatchingTag("Action", "First-Post-Request"), function(msg) Send({ Target = _0RBT_TOKEN, Action = "Transfer", Recipient = _0RBIT, Quantity = FEE_AMOUNT, ["X-Url"] = BASE_URL, ["X-Action"] = "Post-Real-Data", ["X-Body"] = BODY }) print(Colors.green .. "You have sent a POST Request to the 0rbit process.") end ) ``` <!-- Breakdown of the above code: - `Handlers.add` is used to add a new handler to the `ao` process. - Post-Request\_\_ is the name of the handler. - `Handlers.utils.hasMatchingTag` is a function that checks if the incoming message has the matching tag same as the **First-Post-Request**. - `function(msg)` is the function executed when the handler is called. - `Send` is the function that takes several tags as the arguments and creates a message on the ao: --> 䞊蚘のコヌドの内蚳 - `Handlers.add`は、`ao`プロセスに新しいハンドラを远加するために䜿甚されたす。 - Post-Request\_\_はハンドラの名前です。 - `Handlers.utils.hasMatchingTag`は、受信メッセヌゞが**First-Post-Request**ず同じタグを持っおいるかをチェックする関数です。 - `function(msg)`は、ハンドラが呌び出されたずきに実行される関数です。 - `Send`は、いく぀かのタグを匕数ずしお取り、ao䞊にメッセヌゞを䜜成する関数です。 | **Tag** | **Description** | | :----------- | :----------------------------------------------------------------------------------------------------------------------------: | | Target | The processId of the recipient. In this case, it's the $0RBT token processId. | | Action | The tag that defines the handler to be called in the recipient process. In this case it's `Transfer` | | Recipient | The tag that accepts the processId to whom the $0RBT will be sent. In this case, it's the 0rbit processId. | | Quantity | The amount of $0RBT to be sent. | | ["X-Url"] | The _forwarded-tag_ which contains the URL and the same will be used by the **0rbit process** to fetch the data. | | ["X-Action"] | The _forwarded-tag_ which contains the action to be performed by the **0rbit process**. In this case, it's **Post-Real-Data**. | | ["X-Body"] | The _forwarded-tag_ which contains the data body to be sent in the POST request. | <!-- ### Receive Data The following code contains the Handler that will receive the data from the `0rbit` process and print it. --> ### デヌタの受信 以䞋のコヌドには、`0rbit`プロセスからデヌタを受信しお印刷するハンドラが含たれおいたす。 ```lua Handlers.add( "Receive-Data", Handlers.utils.hasMatchingTag("Action", "Receive-Response"), function(msg) local res = json.decode(msg.Data) ReceivedData = res print(Colors.green .. "You have received the data from the 0rbit process.") end ) ``` <!-- Breakdown of the above code: - `Handlers.add` is used to add a new handler to the `ao` process. - **Receive-Data** is the name of the handler. - `Handlers.utils.hasMatchingTag` is a function that checks if the incoming message has the matching tag same as the **Receive-Response**. - `function(msg)` is the function executed when the handler is called. - `json.decode` is used to decode the JSON data received. - `ReceivedData = res` stores the received data in the `ReceivedData` variable. The 0rbit process always sends the data in the `string` format. `json.decode` is used above because we know the receiving data, i.e., stringified JSON. So, you need to decode the data as per your requirements. ## 🏃 Run the process ### Create a new process and load the script --> 䞊蚘のコヌドの内蚳 - `Handlers.add`は、`ao`プロセスに新しいハンドラを远加するために䜿甚されたす。 - **Receive-Data**はハンドラの名前です。 - `Handlers.utils.hasMatchingTag`は、受信メッセヌゞが**Receive-Response**ず同じタグを持っおいるかをチェックする関数です。 - `function(msg)`は、ハンドラが呌び出されたずきに実行される関数です。 - `json.decode`は、受信したJSONデヌタをデコヌドするために䜿甚されたす。 - `ReceivedData = res`は、受信したデヌタを`ReceivedData`倉数に栌玍したす。 0rbitプロセスは垞にデヌタを`string`圢匏で送信したす。 䞊蚘では、受信デヌタが文字
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: post-request.md Path: ../ao-cookbook/src/ja/guides/0rbit/post-request.md
ᅵンドラを远加するために䜿甚されたす。 - **Receive-Data**はハンドラの名前です。 - `Handlers.utils.hasMatchingTag`は、受信メッセヌゞが**Receive-Response**ず同じタグを持っおいるかをチェックする関数です。 - `function(msg)`は、ハンドラが呌び出されたずきに実行される関数です。 - `json.decode`は、受信したJSONデヌタをデコヌドするために䜿甚されたす。 - `ReceivedData = res`は、受信したデヌタを`ReceivedData`倉数に栌玍したす。 0rbitプロセスは垞にデヌタを`string`圢匏で送信したす。 䞊蚘では、受信デヌタが文字列化されたJSONであるため`json.decode`が䜿甚されおいたす。 そのため、芁件に応じおデヌタをデコヌドする必芁がありたす。 ## 🏃 プロセスを実行する ### 新しいプロセスを䜜成し、スクリプトを読み蟌む ```bash aos 0rbitPostRequest --load 0rbit-Post-Request.lua ``` <!-- The above command will create a new process with the name **0rbitPostRequest** and load `0rbit-Post-Request.lua` into it. ### Fund your process Transfer some $0RBT to your processID. ### Call the Handler Call the handler, who will create a request for the 0rbit process. --> 䞊蚘のコマンドは、**0rbitPostRequest**ずいう名前の新しいプロセスを䜜成し、`0rbit-Post-Request.lua`を読み蟌みたす。 ### プロセスに資金を提䟛する いく぀かの$0RBTをあなたのプロセスIDに転送したす。 ### ハンドラの呌び出し ハンドラを呌び出しお、0rbitプロセスぞのリク゚ストを䜜成したす。 ```bash Send({ Target= ao.id, Action="First-Post-Request" }) ``` <!-- ### Check the Data To check the data stored in the `ReceivedData` variable, run the following command: --> ### デヌタの確認 `ReceivedData`倉数に栌玍されたデヌタを確認するには、以䞋のコマンドを実行したす ```bash ReceivedData ``` <!-- Upon the successful execution, you will receive the JSON data in your terminal: --> 成功裏に実行されるず、タヌミナルにJSONデヌタが衚瀺されたす ```json { data = { transactions = { edges = { { node = { id = "nH0NU9rgNqGVHwjtjFvnIyXpsP7YVrj_v7JxFErHNB4" } }, //and so on... { node = { id = "9HLUVJo4AcrSxQeapf2hutS2Xp7hx_XDiIvv3vnxDcc" } } } } } } ``` --- <!-- **_Voila! You have successfully made your first POST request on the 0rbit process. 🎉_** --> **_やったあなたは成功裏に0rbitプロセスで最初のPOSTリク゚ストを行いたした。🎉_** > You can find the complete code here: > > https://github.com/0rbit-co/examples/blob/main/First-Post-Request.lua
This is a Markdown documentation from the AO documentation repository. Filename: index.md Path: ../ao-cookbook/src/ja/guides/0rbit/index.md
--- prev: text: "ボットずゲヌム" link: "/guides/aoconnect/monitoring-cron" next: text: "最初のGETリク゚スト" link: "/guides/0rbit/get-request" --- # 0rbit 💫 [0rbit](https://0rbit.co/)は、`ao`を䜿甚したArweave䞊で初めおの分散型オラクルネットワヌクです。 0rbitは、むンタヌネット䞊に存圚し、アクセス可胜なあらゆる珟実䞖界のデヌタにあなたの`ao`プロセスからアクセスできるようにしたす。 0rbitは、HTTPプロトコルを䜿甚しおデヌタにアクセスするための以䞋の機胜を提䟛したす - [**HTTPデヌタの取埗**](https://docs.0rbit.co/developer/get-request)あなたの`ao`プロセスからりェブにHTTP GETリク゚ストを行うためのハンドラ。 - [**HTTPデヌタの送信**](https://docs.0rbit.co/developer/post-request)あなたの`ao`プロセスからりェブにHTTP POSTリク゚ストを行うためのハンドラ。 ## チュヌトリアル 以䞋のチュヌトリアルで0rbitを䜿った構築方法を孊びたしょう - [最初のGETリク゚スト](./get-request.md) - [最初のPOSTリク゚スト](./post-request.md) > _0rbitに぀いお詳しくは、[開発者ドキュメント](https://docs.0rbit.co/)をご芧ください。_ <!-- --- prev: text: "Bots and Games" link: "/guides/aoconnect/monitoring-cron" next: text: "First GET Request" link: "/guides/0rbit/get-request" --- # 0rbit 💫 [0rbit](https://0rbit.co/) is the first-ever Decentralised Oracle Network on Arweave using `ao`. 0rbit enables Access to ANY Real-World data present and accessible across interent into your `ao` process. 0rbit provides the following features to get access to the data using the HTTP protocol: - [**Fetch HTTP Data**](https://docs.0rbit.co/developer/get-request): A handler to make a HTTP Get Request from your `ao` process to the web. - [**Post HTTP Data**](https://docs.0rbit.co/developer/post-request): A handler to make a HTTP Post Request from your `ao` process to the web. ## Tutorials Learn how to build with 0rbit with the following tutorials: - [First GET Request](./get-request.md) - [First POST Request](./post-request.md) > _Learn more about 0rbit through the [developer docs.](https://docs.0rbit.co/)_ -->
This is a Markdown documentation from the AO documentation repository. Filename: specs.md Path: ../ao-cookbook/src/ja/concepts/specs.md
# ao Specs <!-- ### What is `ao`? --> ### `ao`ずは䜕ですか <!-- The `ao` computer is the [actor oriented](https://en.wikipedia.org/wiki/Actor_model) machine that emerges from the network of nodes that adhere to its core data protocol, running on the [Arweave](https://arweave.org) network. This document gives a brief introduction to the protocol and its functionality, as well as its technical details, such that builders can create new implementations and services that integrate with it. --> aoコンピュヌタは、[Arweave](https://arweave.org) ネットワヌク䞊で動䜜し、そのコアデヌタプロトコルに埓うノヌドのネットワヌクから生たれる [アクタヌ指向](https://en.wikipedia.org/wiki/Actor_model) のマシンです。この文曞では、プロトコルずその機胜、ならびに技術的な詳现に぀いお簡単に玹介し、ビルダヌが新しい実装やサヌビスを䜜成し、それを統合できるようにしたす。 <!-- The `ao` computer is a single, unified computing environment (a [Single System Image](https://en.wikipedia.org/wiki/Single_system_image)), hosted on a heterogenous set of nodes in a distributed network. `ao` is designed to offer an environment in which an arbitrary number of parallel processes can be resident, coordinating through an open message passing layer. This message passing standard connects the machine's independently operating processes together into a 'web' -- in the same way that websites operate on independent servers but are conjoined into a cohesive, unified experience via hyperlinks. --> `ao`コンピュヌタは、分散ネットワヌク䞊の異皮ノヌドセットにホストされる単䞀の統合された蚈算環境[Single System Image](https://en.wikipedia.org/wiki/Single_system_image)です。aoは、任意の数の䞊行プロセスが垞駐し、オヌプンなメッセヌゞパッシングレむダヌを介しお協調できる環境を提䟛するよう蚭蚈されおいたす。このメッセヌゞパッシング暙準は、独立しお動䜜するプロセスを「りェブ」ぞず接続したす。これは、Webサむトが独立したサヌバヌ䞊で動䜜しながらも、ハむパヌリンクを介しお統合された䞀貫性のある䜓隓を提䟛するのず同じ方法です。
This is a Markdown documentation from the AO documentation repository. Filename: holographic-state.md Path: ../ao-cookbook/src/ja/concepts/holographic-state.md
TODO
This is a Markdown documentation from the AO documentation repository. Filename: lua.md Path: ../ao-cookbook/src/ja/concepts/lua.md Note: This content continues in the next part.
<!-- # A whistle stop tour of Lua. Before we can explore ao in greater depth, let's take a moment to learn the basics of Lua: your companion for commanding aos processes. Lua is a simple language with few surprises. If you know Javascript, it will feel like a simplified, purer version. If you are learning from-scratch, it will seem like a tiny language that focuses on the important stuff: Clean computation with sane syntax. In this section we will cover the basics of Lua in just a few minutes. If you already know Lua, jump right through to the [next chapter]() ## Jumping back into your aos process. For the purpose of this tutorial, we will be assuming that you have already completed the [getting started](/welcome/getting-started) guide. If not, complete that first. If you logged out of your process, you can always re-open it by running `aos` on your commandline, optionally specifying your key file with `--wallet [location]`. ## Basic Lua expressions. In the remainder of this primer we will quickly run through Lua's core features and syntax. Try out on the examples on your aos process as you go, or skip them if they are intuitive to you. - **Basic arithmetic**: Try some basic arithmetic, like `5 + 3`. After processing, you will see the result `8`. `+`, `-`, `*`, `/`, and `^` all work as you might expect. `%` is the symbol that Lua uses for modulus. - **Setting variables**: Type `a = 10` and press enter. This sets the variable `a` to 10. By convention (not enforced by the language), global variables start with a capital letter in Lua (for example `Handlers`). - **Using variables**: Now type `a * 2`. You will see `20`returned on the command line. - **String concatenation**: Say hello to yourself by executing `"Hello, " .. ao.id`. ## Experimenting with conditional statements. --> # Luaの短期ツアヌ aoをより深く探玢する前に、Luaの基本を孊びたしょう。Luaは、aosプロセスを制埡するためのコンパニオンです。 Luaはシンプルな蚀語で、驚くこずは少ないです。もしJavascriptを知っおいるなら、Luaは簡朔で玔粋なバヌゞョンに感じるでしょう。もしれロから孊ぶ堎合でも、Luaは重芁な郚分に焊点を圓おた小さな蚀語であり、シンプルで分かりやすい構文で蚈算を行いたす。 このセクションでは、わずか数分でLuaの基本を玹介したす。すでにLuaを知っおいる堎合は[次の章]()に進んでください。 ## aosプロセスに戻る このチュヌトリアルでは、すでに[はじめに](/welcome/getting-started)ガむドを完了しおいるこずを前提ずしたす。ただ完了しおいない堎合は、最初にそれを完了しおください。 プロセスからログアりトしおいる堎合は、コマンドラむンで`aos`を実行するこずで再床開くこずができたす。必芁に応じお、`--wallet [location]`を指定しおキヌ ファむルを指定できたす。 ## Luaの基本匏 この基本レクチャヌの残りでは、Luaのコア機胜ず構文を簡単に玹介したす。 䟋を実際にaosプロセスで詊しおみおください。盎感的に理解できる堎合は、スキップしおもかたいたせん。 - **基本的な算術**: `5 + 3`などの基本的な算術を詊しおください。凊理埌、結果は`8`ず衚瀺されたす。`+`、`-`、`*`、`/`、`^`は期埅通りに動䜜したす。`%`はLuaでモゞュラス剰䜙を衚す蚘号です。 - **倉数の蚭定**: `a = 10`ず入力しおEnterを抌したす。これで倉数`a`に10が蚭定されたす。慣習的に蚀語で匷制されおいるわけではありたせんが、Luaではグロヌバル倉数は倧文字で始たりたす䟋`Handlers`。 - **倉数の䜿甚**: 次に`a * 2`ず入力するず、コマンドラむンに`20`が衚瀺されたす。 - **文字列の連結**: 自分に挚拶をしおみたしょう。`"Hello, " .. ao.id`を実行したす。 ## 条件文の実隓 - **If-Else**: ほずんどのプログラミング蚀語ず同様に、Luaではif-elseブロックを䜿甚しお条件付きでコヌドを実行したす。 aosプロセスで`.editor`ず入力しおEnterキヌを抌したす。これにより、コマンドラむンむンタヌフェむス内にむンラむンテキスト゚ディタが開きたす。 ```lua aos_coolness = 9001 if aos_coolness > 9000 then return "aos is coolness is over 9000!" else return "Oh. 🀷" end ``` タヌミナルでの線集が完了したら、新しい行に`.done`ず入力しおEnterを抌したす。これで線集モヌドが終了し、匏がプロセスに送信されお評䟡されたす。 その結果、aosのクヌルさが9,000を超えおいるこずがわかりたす。知っおおいおよかったですね。 Luaの`if`文には远加の`elseif [条件] then`ブロックを远加するこずもでき、条件付き実行の階局をより簡単に構築できたす。 ## Luaでのルヌプ Luaでは、コヌド内でルヌプを䜜成するいく぀かの方法がありたす。ここでは私たちのお気に入りの方法を玹介したす。 - **While loops**: Start by initalizing your counter to zero by typing `n = 0` and pressing enter. Then open the inline editor again with `.editor` . ```lua while n < 5 do n = n + 1 end ``` 新しい行に`.done`ず入力しおwhileルヌプを実行したす。ルヌプの結果は、`n`ず入力するだけで確認できたす。 - **For loops**: Luaは、Pythonスタむルの`for`ルヌプも実行できたす。䟋えば、`.editor`を䜿甚しお次のコヌドブロックを入力したす ```lua for m = 1, 100 do n = n + m end ``` `n`を再床実行しお、倉数の新しい倀を確認したす。 ## Getting functional. - **Define a function**: 再び`.editor`を䜿甚しお、次の行を入力しお送信したす ```lua function greeting(name) return "Hello, " .. name end ``` 送信するず、aosは`undefined`を返したす。Luaでは、関数および倉数の定矩は倀を返さないためです。 Luaには「無名関数」や「高階関数」もありたす。これにより、関数自䜓を通垞のデヌタのように扱い、他の関数ぞの匕数ずしお枡すこずができたす。次の䟋は無名関数を定矩しおおり、䞊蚘の䟋ず同等です ```lua greeting = function(name) return "Hello, " .. name end ``` - **Calling the function**: Call the function with `greeting("Earthling")`. aos will return `"Hello
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: lua.md Path: ../ao-cookbook/src/ja/concepts/lua.md
return "Hello, " .. name end ``` 送信するず、aosは`undefined`を返したす。Luaでは、関数および倉数の定矩は倀を返さないためです。 Luaには「無名関数」や「高階関数」もありたす。これにより、関数自䜓を通垞のデヌタのように扱い、他の関数ぞの匕数ずしお枡すこずができたす。次の䟋は無名関数を定矩しおおり、䞊蚘の䟋ず同等です ```lua greeting = function(name) return "Hello, " .. name end ``` - **Calling the function**: Call the function with `greeting("Earthling")`. aos will return `"Hello, Earthling"`. <!-- ## Defining deep objects with tables. Tables are Lua's only compound data structure. They map `keys` to `values`, but can also be used like traditional arrays. - **Create a simple table**: Type `ao_is = {"hyper", "parallel", "compute"}`to create a simple table. - **Accessing the table's elements**: Access an element with `ao_is[2]`. aos will return `parallel`. Note: Indices in Lua start from 1! - **Count a table's elements**: The size of a table in Lua is found with the operator `#`. For example, running `#ao_is` will return `3`. - **Set a named element**: Type `ao_is["cool"] = true` to add a new named key to the table. Named elements can also be accessed with the `.` operator, for example `ao_is.cool`. --> ## テヌブルを䜿っお深いオブゞェクトを定矩 テヌブルは、Luaにおける唯䞀の耇合デヌタ構造です。`keys`を`values`にマッピングしたすが、埓来の配列のようにも䜿甚できたす。 - **シンプルなテヌブルを䜜成**: `ao_is = {"hyper", "parallel", "compute"}`ず入力しお、シンプルなテヌブルを䜜成したす。 - **テヌブルの芁玠にアクセス**: `ao_is[2]`で芁玠にアクセスしたす。aosは`parallel`を返したす。泚意Luaのむンデックスは1から始たりたす - **テヌブルの芁玠数をカりント**: Luaでテヌブルのサむズを取埗するには、挔算子`#`を䜿甚したす。䟋えば、`#ao_is`を実行するず`3`が返されたす。 - **名前付き芁玠を蚭定**: `ao_is["cool"] = true`ず入力しお、テヌブルに新しい名前付きキヌを远加したす。名前付き芁玠は`.`挔算子でもアクセスできたす。䟋えば、`ao_is.cool`です。 <!-- ## Defining deep objects with tables. Tables are Lua's only compound data structure. They map `keys` to `values`, but can also be used like traditional arrays. - **Create a simple table**: Type `ao_is = {"hyper", "parallel", "compute"}`to create a simple table. - **Accessing the table's elements**: Access an element with `ao_is[2]`. aos will return `parallel`. Note: Indices in Lua start from 1! - **Count a table's elements**: The size of a table in Lua is found with the operator `#`. For example, running `#ao_is` will return `3`. - **Set a named element**: Type `ao_is["cool"] = true` to add a new named key to the table. Named elements can also be accessed with the `.` operator, for example `ao_is.cool`. --> ## LuaのWats aosは、シンプルでクリヌンな蚀語であるためLuaを採甚しおいたす。経隓豊富なプログラマヌなら非垞に短期間で習埗でき、Robloxのようなビデオゲヌムで䜿甚されおいるこずから、初孊者向けのプログラミング蚀語ずしおも人気が高たっおいたす。 それでもなお、Luaを初めお䜿う開発者が぀たづきやすい点がいく぀かありたす。奜みは人それぞれですが、以䞋にLuaの[wat](https://www.destroyallsoftware.com/talks/wat)を玹介したす。 - **芚えおおくべきこず**: テヌブルのむンデックスは0ではなく1から始たりたす - **芚えおおくべきこず**: 「等しくない」は`!=`ではなく`~=`で衚珟されたす。 - **芚えおおくべきこず**: Luaではオブゞェクトは「テヌブル」ず呌ばれ、䞀般的な名前ずは異なりたす。 ## さあ、始めたしょう これで、Luaを䜿っお玠晎らしい分散プロセスを構築するために必芁な知識はすべお手に入れたした次の章では、Luaずaosを䜿っお䞊列プロセスの構築を始めたす。 <!-- ## Lua Wats. aos uses Lua because it is a simple, clean language that most experienced programmers can learn very quickly, and is an increasingly popular first programming language, too, thanks to its use in video games like Roblox. Nonetheless, there are a few things about the language that are prone to trip up rookie Lua builders. Tastes may vary, but here is our exhaustive list of Lua [wat](https://www.destroyallsoftware.com/talks/wat)s: - **Remember:** Table indexing starts from 1 not 0! - **Remember:** 'Not equals' is expressed with `~=`, rather than `!=` or similar. - **Remember:** Objects in Lua are called 'tables', rather than their more common names. ## Let's go! With this in mind, you now know everything you need in order to build awesome decentralized processes with Lua! In the next chapter we will begin to build parallel processes with Lua and aos. -->
This is a Markdown documentation from the AO documentation repository. Filename: index.md Path: ../ao-cookbook/src/ja/concepts/index.md
--- prev: text: "最初のPOSTリク゚スト" link: "../guides/0rbit/post-request" next: text: "仕様" link: "./specs" --- # コンセプト aoには倚くのコンセプトが組み蟌たれおいたすが、コアずなるコンセプトは非垞にシンプルな原則に基づいおいたす - 2぀のコアタむプ: メッセヌゞずプロセス - 共有状態なし、ホログラフィック状態のみ - 分散型コンピュヌタグリッド 以䞋は、aoシステムをその特城的な郚分に分解したコンセプト文曞のセットです。 - [仕様](specs) - [プロセス](processes) - [メッセヌゞ](messages) - [ナニット](units) - [メッセヌゞングの仕組み](how-it-works) [[toc]]
This is a Markdown documentation from the AO documentation repository. Filename: processes.md Path: ../ao-cookbook/src/ja/concepts/processes.md
<!-- # Processes --> # プロセス <!-- Processes possess the capability to engage in communication via message passing, both receiving and dispatching messages within the network. Additionally, they hold the potential to instantiate further processes, enhancing the network's computational fabric. This dynamic method of data dissemination and interaction within the network is referred to as a 'holographic state', underpinning the shared and persistent state of the network. --> プロセスは、メッセヌゞパッシングを通じお通信を行う胜力を持っおおり、ネットワヌク内でメッセヌゞの受信ず送信を行うこずができたす。さらに、プロセスは他のプロセスを新たにむンスタンス化する胜力も持ち、ネットワヌクの蚈算基盀を拡匵したす。このネットワヌク内での動的なデヌタの䌝達ず盞互䜜甚の方法は「ホログラフィック状態」ず呌ばれ、ネットワヌクの共有および氞続的な状態を支えるものです。 ![Process-Diagram](process-diagram.png) <!-- When building a Process with `aos` you have the ability to add `handlers`, these handlers can be added by calling the `Handlers.add` function, passing a "name", a "match" function, and a "handle" function. --> `aos`でプロセスを構築する際、`handlers`を远加するこずができたす。これらのハンドラは、`Handlers.add`関数を呌び出し、「name」、「match」関数、および「handle」関数を枡すこずで远加できたす。 ![Handler Diagram](handler-diagram.png) <!-- The core module contains a helper library that gets injected into the handler function, this library is called `ao`. --> コアモゞュヌルには、ハンドラ関数に泚入されるヘルパヌラむブラリが含たれおおり、このラむブラリは`ao`ず呌ばれたす。 ```lua { env = { Process = { Id = "5WzR7rJCuqCKEq02WUPhTjwnzllLjGu6SA7qhYpcKRs", Owner = "_r9LpP4FtClpsGX3TOohubyaeb0IQTZZMcxQ24tTsGo", Tags = {...} }, Module = { Id = "UAUszdznoUPQvXRbrFuIIH6J0N_LnJ1h4Trej28UgrE", Owner = "_r9LpP4FtClpsGX3TOohubyaeb0IQTZZMcxQ24tTsGo", Tags = {..} } }, id = "5WzR7rJCuqCKEq02WUPhTjwnzllLjGu6SA7qhYpcKRs", isTrusted = "function: 0x5468d0", result = "function: 0x547120", send = "function: 0x547618", spawn = "function: 0x5468b0" } ``` この`ao`ヘルパヌで泚目すべき䞻な関数は次のずおりです。 - ao.send(Message) - メッセヌゞをプロセスに送信したす - ao.spawn(Module, Message) - 新しいプロセスを䜜成したす ## Ethereumで眲名されたプロセスたたはモゞュヌル `ao`の`Process`たたは`Module`においお、[ANS-104 DataItem](https://specs.g8way.io/?tx=xwOgX-MmqN5_-Ny_zNu2A8o-PnTGsoRb_3FrtiMAkuw)がEthereumのキヌを䜿甚しお眲名された堎合、 それぞれ`env.Process.Owner`たたは`env.Module.Owner`フィヌルドの倀は、眲名者の[EIP-55](https://github.com/ethereum/ercs/blob/master/ERCS/erc-55.md)準拠のEthereumアドレスになりたす。 䟋えば`0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359` ## ao.send Example ```lua ao.send({ Target = Chatroom, Action = "Broadcast", Data = "Hello from my Process!" }) ``` ## ao.spawn Example ```lua ao.spawn(ao.env.Module.Id, { ["Memory-Limit"] = "500-mb", ["Compute-Limit"] = "900000000000000000" }) ``` ## ao.env > NOTE: `ao.env` is important context data that you may need as a developer creating processes. The `ao.env` property contains the `Process` and `Module` Reference Objects ```lua env = { Process = { Id = "5WzR7rJCuqCKEq02WUPhTjwnzllLjGu6SA7qhYpcKRs", Owner = "_r9LpP4FtClpsGX3TOohubyaeb0IQTZZMcxQ24tTsGo", Tags = {...} }, Module = { Id = "UAUszdznoUPQvXRbrFuIIH6J0N_LnJ1h4Trej28UgrE", Owner = "_r9LpP4FtClpsGX3TOohubyaeb0IQTZZMcxQ24tTsGo", Tags = {..} } } ``` `Process`ず`Module`の䞡方は、`ao`デヌタプロトコルの属性を含んでいたす。 ## たずめ ネットワヌク内のプロセスは、メッセヌゞパッシングを通じお通信し、新しいプロセスを䜜成するこずで、共有および氞続的なデヌタの「ホログラフィック状態」に貢献したす。開発者は、`aos`を䜿甚しお特定のname、match、およびhandle関数を甚いお`Handlers.add`関数でハンドラを远加するこずでプロセスを構築できたす。コアモゞュヌル内の`ao`ヘルパヌラむブラリは、このプロセスを支揎し、メッセヌゞを送信するための`ao.send`や、新しいモゞュヌルを䜜成するための`ao.spawn`、そしお重芁な`ao.env`プロパティを提䟛したす。`ao.env`には、プロセスずモゞュヌルに関する重芁な情報が含たれおいたす。`ao`デヌタプロトコルは、これらの芁玠の構造ず属性を定矩しおいたす。
This is a Markdown documentation from the AO documentation repository. Filename: tour.md Path: ../ao-cookbook/src/ja/concepts/tour.md
# aos 簡単ツアヌ aosのクむックツアヌぞようこそこのチュヌトリアルでは、aos環境で利甚可胜な䞻芁なグロヌバル関数ず倉数に぀いお説明し、aosを効果的に操䜜・掻甚するための基瀎的な理解を提䟛したす。 ## 1. Inboxの玹介 - **抂芁**: `Inbox`は、プロセスが受信したがただ凊理されおいないメッセヌゞを保存するLuaテヌブルです。 - **䜿甚方法**: 受信メッセヌゞを確認するには`Inbox`をチェックしたす。`Inbox[x]`を繰り返し凊理しおメッセヌゞを凊理したす。 ## 2. Send(Message)を䜿っおメッセヌゞを送信 - **機胜**: `Send(Message)`は、他のプロセスにメッセヌゞを送信するためのグロヌバル関数です。 - **䜿甚䟋**: `Send({Target = "...", Data = "Hello, Process!"})`は、"Hello, Process!"ずいうデヌタを指定されたプロセスに送信したす。 ## 3. Spawn(Module, Message)でプロセスを䜜成 - **目的**: `Spawn(Module, Message)`を䜿甚しお新しいプロセスを䜜成したす。 - **䟋**: `Spawn("MyModule", {Data = "Start"})`は、"MyModule"を䜿甚しお指定されたメッセヌゞず共に新しいプロセスを開始したす。 ## 4. NameずOwnerの理解 - **Name**: 初期化時に蚭定される文字列で、プロセスの名前を衚したす。 - **Owner**: プロセスの所有者を瀺したす。これを倉曎するず、プロセスずのやり取りが制限される可胜性がありたす。 - **重芁な泚意点**: 問題を避けるため、これらは読み取り専甚ずしお扱っおください。 ## 5. Handlersの掻甚 - **抂芁**: `Handlers`は、メッセヌゞハンドラを䜜成するためのヘルパヌ関数のテヌブルです。 - **䜿甚方法**: `Handlers`にハンドラを定矩しお、パタヌンマッチングに基づいお異なる受信メッセヌゞに察するアクションを指定したす。 ## 6. Dumpによるデヌタ衚瀺 - **機胜**: `Dump`は、任意のLuaテヌブルを衚瀺に適したフォヌマットに倉換したす。 - **䜿甚方法**: デバッグや耇雑なテヌブル構造の衚瀺に䟿利です。䟋: `Dump(Inbox)`は`Inbox`の内容を出力したす。 ## 7. Utilsモゞュヌルの掻甚 - **内容**: Utilsには、`map`、`reduce`、`filter`のような関数型ナヌティリティが含たれおいたす。 - **䜿甚方法**: Luaにおけるデヌタ操䜜や関数型プログラミングパタヌンに最適です。䟋: `Utils.map(myTable, function(x) return x * 2 end)`は、テヌブル内の倀を2倍にしたす。 ## 8. aoコアラむブラリの探玢 - **説明**: `ao`は、メッセヌゞ凊理やプロセス管理のための䞻芁な関数を含むコアモゞュヌルです。 - **䞻な機胜**: メッセヌゞを送信するための関数`send`やプロセスを生成する関数`spawn`が含たれおおり、環境倉数も利甚可胜です。 ## 結論 この簡単ツアヌでは、aos環境内の䞻芁なグロヌバル機胜ず機胜性を玹介したした。これらのツヌルを䜿甚しお、プロセスの䜜成や管理、メッセヌゞの凊理、Luaの機胜を掻甚しお、効率的で応答性の高いアプリケヌションをaosプラットフォヌム䞊で構築できたす。これらの機胜を詊し、特定のナヌスケヌスにどのように統合できるかを深く理解しおください。aosでのコヌディングを楜しんでください <!-- # aos Brief Tour Welcome to a quick tour of aos! This tutorial will walk you through the key global functions and variables available in the aos environment, giving you a foundational understanding of how to interact with and utilize aos effectively. ## 1. Introduction to Inbox - **What It Is**: `Inbox` is a Lua table that stores all messages received by your process but not yet handled. - **How to Use**: Check `Inbox` to see incoming messages. Iterate through `Inbox[x]` to process these messages. ## 2. Sending Messages with Send(Message) - **Functionality**: `Send(Message)` is a global function to send messages to other processes. - **Usage Example**: `Send({Target = "...", Data = "Hello, Process!"})` sends a message with the data "Hello, Process!" to a specified process. ## 3. Creating Processes with Spawn(Module, Message) - **Purpose**: Use `Spawn(Module, Message)` to create new processes. - **Example**: `Spawn("MyModule", {Data = "Start"})` starts a new process using "MyModule" with the provided message. ## 4. Understanding Name and Owner - **Name**: A string set during initialization, representing the process's name. - **Owner**: Indicates the owner of the process. Changing this might restrict your ability to interact with your process. - **Important Note**: Treat these as read-only to avoid issues. ## 5. Utilizing Handlers - **What They Are**: `Handlers` is a table of helper functions for creating message handlers. - **Usage**: Define handlers in `Handlers` to specify actions for different incoming messages based on pattern matching. ## 6. Data Representation with Dump - **Function**: `Dump` converts any Lua table into a print-friendly format. - **How to Use**: Useful for debugging or viewing complex table structures. Example: `Dump(Inbox)` prints the contents of `Inbox`. ## 7. Leveraging Utils Module - **Contents**: Utils contains a collection of functional utilities like`map`, `reduce`, and `filter`. - **Usage**: Great for data manipulation and functional programming patterns in Lua. For example, `Utils.map(myTable, function(x) return x * 2 end)` to double the values in a table. ## 8. Exploring the ao Core Library - **Description**: `ao` is a core module that includes key functions for message handling and process management. - **Key Features**: Includes functions for sending messages (`send`) and spawning processes (`spawn`), along with environment variables. ## Conclusion This brief tour introduces you to the primary globals and functionalities within the aos environment. With these tools at your disposal, you can create and manage processes, handle messages, and utilize Lua's capabilities to build efficient and responsive applications on the aos platform. Experiment with these features to get a deeper understanding and to see how they can be integrated into your specific use cases. Happy coding in aos! -->
This is a Markdown documentation from the AO documentation repository. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
# Units <svg width="100%" height="472" viewBox="0 0 830 472" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_238_127)"> <rect x="0.5" y="0.5" width="409" height="445" rx="9.5" fill="#E6E6E6"></rect> <rect x="0.5" y="0.5" width="409" height="445" rx="9.5" stroke="#CACACA"></rect> <rect x="10" y="10" width="190" height="426" rx="8" fill="#C3C3C3"></rect> <path d="M74.7773 219.469L76.166 223.734L77.666 219.469H79.0137V228H77.959V224.596L78.0469 221.033L76.4707 225.627H75.8496L74.4023 221.156L74.4902 224.596V228H73.4355V219.469H74.7773ZM85.4883 224.057H81.9258V227.08H86.0801V228H80.8418V219.469H86.0273V220.395H81.9258V223.137H85.4883V224.057ZM92.4668 225.844C92.4668 225.582 92.4062 225.361 92.2852 225.182C92.168 225.002 92.0156 224.85 91.8281 224.725C91.6406 224.604 91.4336 224.502 91.207 224.42C90.9844 224.338 90.7695 224.264 90.5625 224.197C90.2617 224.1 89.9551 223.982 89.6426 223.846C89.334 223.705 89.0527 223.537 88.7988 223.342C88.541 223.143 88.3301 222.908 88.166 222.639C88.0059 222.365 87.9258 222.045 87.9258 221.678C87.9258 221.311 88.0059 220.982 88.166 220.693C88.3301 220.404 88.543 220.16 88.8047 219.961C89.0664 219.762 89.3633 219.611 89.6953 219.51C90.0273 219.404 90.3613 219.352 90.6973 219.352C91.0684 219.352 91.4258 219.414 91.7695 219.539C92.1133 219.66 92.418 219.832 92.6836 220.055C92.9492 220.277 93.1621 220.547 93.3223 220.863C93.4824 221.18 93.5664 221.533 93.5742 221.924H92.4609C92.4297 221.678 92.3691 221.455 92.2793 221.256C92.1895 221.053 92.0703 220.879 91.9219 220.734C91.7734 220.59 91.5957 220.479 91.3887 220.4C91.1855 220.318 90.9551 220.277 90.6973 220.277C90.4902 220.277 90.2871 220.307 90.0879 220.365C89.8926 220.424 89.7188 220.512 89.5664 220.629C89.4102 220.746 89.2852 220.891 89.1914 221.062C89.1016 221.234 89.0566 221.434 89.0566 221.66C89.0605 221.906 89.123 222.115 89.2441 222.287C89.3652 222.455 89.5195 222.598 89.707 222.715C89.8906 222.832 90.0898 222.93 90.3047 223.008C90.5234 223.086 90.7285 223.154 90.9199 223.213C91.2363 223.311 91.5527 223.43 91.8691 223.57C92.1855 223.707 92.4746 223.883 92.7363 224.098C92.9941 224.297 93.2012 224.541 93.3574 224.83C93.5176 225.119 93.5977 225.453 93.5977 225.832C93.5977 226.215 93.5117 226.549 93.3398 226.834C93.1719 227.119 92.9531 227.355 92.6836 227.543C92.4141 227.734 92.1094 227.879 91.7695 227.977C91.4297 228.07 91.0898 228.117 90.75 228.117C90.3438 228.117 89.9434 228.049 89.5488 227.912C89.1582 227.775 88.8184 227.578 88.5293 227.32C88.2715 227.098 88.0664 226.838 87.9141 226.541C87.7656 226.24 87.6855 225.906 87.6738 225.539H88.7812C88.8164 225.805 88.8887 226.041 88.998 226.248C89.1074 226.451 89.248 226.623 89.4199 226.764C89.5918 226.908 89.7891 227.018 90.0117 227.092C90.2383 227.162 90.4844 227.197 90.75 227.197C90.9609 227.197 91.168 227.172 91.3711 227.121C91.5781 227.066 91.7617 226.982 91.9219 226.869C92.082 226.76 92.2129 226.621 92.3145 226.453C92.416 226.281 92.4668 226.078 92.4668 225.844ZM99.6738 225.844C99.6738 225.582 99.6133 225.361 99.4922 225.182C99.375 225.002 99.2227 224.85 99.0352 224.725C98.8477 224.604 98.6406 224.502 98.4141 224.42C98.1914 224.338 97.9766 224.264 97.7695 224.197C97.4688 224.1 97.1621 223.982 96.8496 223.846C96.541 223.705 96.2598 223.537 96.0059 223.342C95.748 223.143 95.5371 222.908 95.373 222.639C95.2129 222.365 95.1328 222.045 95.1328 221.678C95.1328 221.311 95.2129 220.982 95.373 220.693C95.5371 220.404 95.75 220.16 96.0117 219.961C96.2734 219.762 96.5703 219.611 96.9023 219.51C97.2344 219.404 97.5684 219.352 97.9043 219.352C98.2754 219.352 98.6328 219.414 98.9766 219.539C99.3203 219.66 99.625 219.832 99.8906 220.055C100.156 220.277 100.369 220.547 100.529 220.863C100.689 221.18 100.773 221.533 100.781 221
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
95.1328 221.311 95.2129 220.982 95.373 220.693C95.5371 220.404 95.75 220.16 96.0117 219.961C96.2734 219.762 96.5703 219.611 96.9023 219.51C97.2344 219.404 97.5684 219.352 97.9043 219.352C98.2754 219.352 98.6328 219.414 98.9766 219.539C99.3203 219.66 99.625 219.832 99.8906 220.055C100.156 220.277 100.369 220.547 100.529 220.863C100.689 221.18 100.773 221.533 100.781 221.924H99.668C99.6367 221.678 99.5762 221.455 99.4863 221.256C99.3965 221.053 99.2773 220.879 99.1289 220.734C98.9805 220.59 98.8027 220.479 98.5957 220.4C98.3926 220.318 98.1621 220.277 97.9043 220.277C97.6973 220.277 97.4941 220.307 97.2949 220.365C97.0996 220.424 96.9258 220.512 96.7734 220.629C96.6172 220.746 96.4922 220.891 96.3984 221.062C96.3086 221.234 96.2637 221.434 96.2637 221.66C96.2676 221.906 96.3301 222.115 96.4512 222.287C96.5723 222.455 96.7266 222.598 96.9141 222.715C97.0977 222.832 97.2969 222.93 97.5117 223.008C97.7305 223.086 97.9355 223.154 98.127 223.213C98.4434 223.311 98.7598 223.43 99.0762 223.57C99.3926 223.707 99.6816 223.883 99.9434 224.098C100.201 224.297 100.408 224.541 100.564 224.83C100.725 225.119 100.805 225.453 100.805 225.832C100.805 226.215 100.719 226.549 100.547 226.834C100.379 227.119 100.16 227.355 99.8906 227.543C99.6211 227.734 99.3164 227.879 98.9766 227.977C98.6367 228.07 98.2969 228.117 97.957 228.117C97.5508 228.117 97.1504 228.049 96.7559 227.912C96.3652 227.775 96.0254 227.578 95.7363 227.32C95.4785 227.098 95.2734 226.838 95.1211 226.541C94.9727 226.24 94.8926 225.906 94.8809 225.539H95.9883C96.0234 225.805 96.0957 226.041 96.2051 226.248C96.3145 226.451 96.4551 226.623 96.627 226.764C96.7988 226.908 96.9961 227.018 97.2188 227.092C97.4453 227.162 97.6914 227.197 97.957 227.197C98.168 227.197 98.375 227.172 98.5781 227.121C98.7852 227.066 98.9688 226.982 99.1289 226.869C99.2891 226.76 99.4199 226.621 99.5215 226.453C99.623 226.281 99.6738 226.078 99.6738 225.844ZM107.109 224.057H103.547V227.08H107.701V228H102.463V219.469H107.648V220.395H103.547V223.137H107.109V224.057ZM114.967 228H113.865L110.555 221.625L110.537 228H109.441V219.469H110.543L113.854 225.832L113.871 219.469H114.967V228ZM122.35 226.881C122.217 227.037 122.076 227.18 121.928 227.309C121.779 227.434 121.625 227.543 121.465 227.637C121.191 227.801 120.896 227.922 120.58 228C120.264 228.082 119.932 228.121 119.584 228.117C119.232 228.113 118.908 228.061 118.611 227.959C118.318 227.854 118.055 227.709 117.82 227.525C117.586 227.346 117.381 227.133 117.205 226.887C117.029 226.641 116.883 226.373 116.766 226.084C116.645 225.799 116.553 225.5 116.49 225.188C116.432 224.871 116.4 224.553 116.396 224.232V223.242C116.4 222.926 116.428 222.611 116.479 222.299C116.533 221.982 116.615 221.68 116.725 221.391C116.834 221.102 116.971 220.834 117.135 220.588C117.299 220.338 117.496 220.121 117.727 219.938C117.953 219.758 118.211 219.615 118.5 219.51C118.789 219.404 119.113 219.352 119.473 219.352C119.871 219.352 120.238 219.414 120.574 219.539C120.91 219.66 121.203 219.834 121.453 220.061C121.703 220.291 121.904 220.568 122.057 220.893C122.209 221.213 122.303 221.572 122.338 221.971H121.266C121.223 221.725 121.156 221.498 121.066 221.291C120.977 221.08 120.859 220.9 120.715 220.752C120.566 220.604 120.391 220.488 120.188 220.406C119.984 220.32 119.748 220.277 119.479 220.277C119.221 220.277 118.992 220.322 118.793 220.412C118.594 220.498 118.42 220.615 118.271 220.764C118.123 220.912 118 221.086 117.902 221.285C117.805 221.48 117.725 221.688 117.662 221.906C117.6 222.125 117.555 222.348 117.527 222.574C117.5 222.801 117.486 223.02 117.486 223.23V224.232C117.49 224.447 117.508 224.67 117.539 224.9C117.574 225.127 117.627 225.35 117.697 225.568C117.768 225.787 117.857 225.994 117.967 226.189C118.076 226.385 118.209 226.557 118.365 226.705C118.518 226.854 118.695 226.973 118.898 227.062C119.102 227.148 119.332 227.193
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
117.725 221.688 117.662 221.906C117.6 222.125 117.555 222.348 117.527 222.574C117.5 222.801 117.486 223.02 117.486 223.23V224.232C117.49 224.447 117.508 224.67 117.539 224.9C117.574 225.127 117.627 225.35 117.697 225.568C117.768 225.787 117.857 225.994 117.967 226.189C118.076 226.385 118.209 226.557 118.365 226.705C118.518 226.854 118.695 226.973 118.898 227.062C119.102 227.148 119.332 227.193 119.59 227.197C119.738 227.201 119.893 227.195 120.053 227.18C120.217 227.164 120.375 227.133 120.527 227.086C120.68 227.039 120.822 226.977 120.955 226.898C121.088 226.816 121.199 226.711 121.289 226.582L121.301 224.666H119.566V223.752H122.332L122.35 226.881ZM128.73 224.057H125.168V227.08H129.322V228H124.084V219.469H129.27V220.395H125.168V223.137H128.73V224.057ZM134.068 224.52H132.363V228H131.285V219.469H133.787C134.186 219.477 134.561 219.533 134.912 219.639C135.264 219.744 135.572 219.902 135.838 220.113C136.1 220.324 136.305 220.59 136.453 220.91C136.605 221.227 136.682 221.6 136.682 222.029C136.682 222.307 136.641 222.561 136.559 222.791C136.48 223.021 136.371 223.23 136.23 223.418C136.09 223.605 135.922 223.771 135.727 223.916C135.531 224.061 135.316 224.184 135.082 224.285L136.893 227.93L136.887 228H135.744L134.068 224.52ZM132.363 223.629H133.816C134.059 223.625 134.287 223.588 134.502 223.518C134.717 223.443 134.906 223.338 135.07 223.201C135.23 223.064 135.357 222.898 135.451 222.703C135.545 222.504 135.592 222.275 135.592 222.018C135.592 221.744 135.547 221.506 135.457 221.303C135.367 221.096 135.242 220.922 135.082 220.781C134.922 220.645 134.73 220.541 134.508 220.471C134.289 220.4 134.049 220.363 133.787 220.359H132.363V223.629Z" fill="black"></path> <rect x="210" y="10" width="190" height="426" rx="8" fill="#C3C3C3"></rect> <path d="M278.053 225.844C278.053 225.582 277.992 225.361 277.871 225.182C277.754 225.002 277.602 224.85 277.414 224.725C277.227 224.604 277.02 224.502 276.793 224.42C276.57 224.338 276.355 224.264 276.148 224.197C275.848 224.1 275.541 223.982 275.229 223.846C274.92 223.705 274.639 223.537 274.385 223.342C274.127 223.143 273.916 222.908 273.752 222.639C273.592 222.365 273.512 222.045 273.512 221.678C273.512 221.311 273.592 220.982 273.752 220.693C273.916 220.404 274.129 220.16 274.391 219.961C274.652 219.762 274.949 219.611 275.281 219.51C275.613 219.404 275.947 219.352 276.283 219.352C276.654 219.352 277.012 219.414 277.355 219.539C277.699 219.66 278.004 219.832 278.27 220.055C278.535 220.277 278.748 220.547 278.908 220.863C279.068 221.18 279.152 221.533 279.16 221.924H278.047C278.016 221.678 277.955 221.455 277.865 221.256C277.775 221.053 277.656 220.879 277.508 220.734C277.359 220.59 277.182 220.479 276.975 220.4C276.771 220.318 276.541 220.277 276.283 220.277C276.076 220.277 275.873 220.307 275.674 220.365C275.479 220.424 275.305 220.512 275.152 220.629C274.996 220.746 274.871 220.891 274.777 221.062C274.688 221.234 274.643 221.434 274.643 221.66C274.646 221.906 274.709 222.115 274.83 222.287C274.951 222.455 275.105 222.598 275.293 222.715C275.477 222.832 275.676 222.93 275.891 223.008C276.109 223.086 276.314 223.154 276.506 223.213C276.822 223.311 277.139 223.43 277.455 223.57C277.771 223.707 278.061 223.883 278.322 224.098C278.58 224.297 278.787 224.541 278.943 224.83C279.104 225.119 279.184 225.453 279.184 225.832C279.184 226.215 279.098 226.549 278.926 226.834C278.758 227.119 278.539 227.355 278.27 227.543C278 227.734 277.695 227.879 277.355 227.977C277.016 228.07 276.676 228.117 276.336 228.117C275.93 228.117 275.529 228.049 275.135 227.912C274.744 227.775 274.404 227.578 274.115 227.32C273.857 227.098 273.652 226.838 273.5 226.541C273.352 226.24 273.271 225.906 273.26 225.539H274.367C274.402 225.805 274.475 226.041 274.584 226.248C274.693 226.451 274.834 226.623 275.006 226.764C275.178 226.908 275.375 227.018 275.598 227.092C275.824 227.162 276.07 227.197 276.336 227.197C276.547 227.197 276.754 227.172 276.957 227.121C277.164 227.066 277.348 226.982 277.508 226.869C277.668 226.76 277.799 226.621 277.9 226.453C278.002 226.281 278.053
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
226.24 273.271 225.906 273.26 225.539H274.367C274.402 225.805 274.475 226.041 274.584 226.248C274.693 226.451 274.834 226.623 275.006 226.764C275.178 226.908 275.375 227.018 275.598 227.092C275.824 227.162 276.07 227.197 276.336 227.197C276.547 227.197 276.754 227.172 276.957 227.121C277.164 227.066 277.348 226.982 277.508 226.869C277.668 226.76 277.799 226.621 277.9 226.453C278.002 226.281 278.053 226.078 278.053 225.844ZM286.32 225.434C286.27 225.828 286.168 226.191 286.016 226.523C285.863 226.852 285.666 227.133 285.424 227.367C285.178 227.605 284.887 227.791 284.551 227.924C284.219 228.053 283.848 228.117 283.438 228.117C283.086 228.117 282.766 228.068 282.477 227.971C282.191 227.869 281.938 227.73 281.715 227.555C281.488 227.379 281.293 227.172 281.129 226.934C280.969 226.695 280.836 226.436 280.73 226.154C280.621 225.873 280.539 225.578 280.484 225.27C280.434 224.961 280.406 224.648 280.402 224.332V223.143C280.406 222.826 280.434 222.514 280.484 222.205C280.539 221.896 280.621 221.602 280.73 221.32C280.836 221.039 280.969 220.779 281.129 220.541C281.293 220.299 281.488 220.09 281.715 219.914C281.938 219.738 282.191 219.602 282.477 219.504C282.762 219.402 283.082 219.352 283.438 219.352C283.863 219.352 284.244 219.418 284.58 219.551C284.916 219.68 285.205 219.863 285.447 220.102C285.689 220.344 285.883 220.633 286.027 220.969C286.176 221.305 286.273 221.676 286.32 222.082H285.236C285.201 221.824 285.141 221.584 285.055 221.361C284.969 221.139 284.854 220.943 284.709 220.775C284.564 220.607 284.387 220.477 284.176 220.383C283.969 220.285 283.723 220.236 283.438 220.236C283.18 220.236 282.951 220.279 282.752 220.365C282.557 220.447 282.389 220.561 282.248 220.705C282.104 220.85 281.982 221.018 281.885 221.209C281.791 221.4 281.715 221.604 281.656 221.818C281.598 222.033 281.555 222.254 281.527 222.48C281.504 222.703 281.492 222.92 281.492 223.131V224.332C281.492 224.543 281.504 224.762 281.527 224.988C281.555 225.211 281.598 225.43 281.656 225.645C281.715 225.863 281.791 226.068 281.885 226.26C281.979 226.451 282.098 226.619 282.242 226.764C282.387 226.912 282.557 227.029 282.752 227.115C282.947 227.197 283.176 227.238 283.438 227.238C283.723 227.238 283.969 227.193 284.176 227.104C284.387 227.014 284.564 226.887 284.709 226.723C284.854 226.562 284.969 226.373 285.055 226.154C285.141 225.932 285.201 225.691 285.236 225.434H286.32ZM293.352 228H292.326V224.057H288.828V228H287.809V219.469H288.828V223.137H292.326V219.469H293.352V228ZM299.902 224.057H296.34V227.08H300.494V228H295.256V219.469H300.441V220.395H296.34V223.137H299.902V224.057ZM302.305 228V219.469H304.279C304.611 219.473 304.924 219.508 305.217 219.574C305.514 219.637 305.787 219.727 306.037 219.844C306.385 220.004 306.691 220.215 306.957 220.477C307.227 220.734 307.441 221.033 307.602 221.373C307.746 221.662 307.855 221.979 307.93 222.322C308.008 222.666 308.049 223.033 308.053 223.424V224.051C308.053 224.426 308.016 224.781 307.941 225.117C307.871 225.453 307.768 225.762 307.631 226.043C307.49 226.336 307.312 226.602 307.098 226.84C306.883 227.078 306.643 227.281 306.377 227.449C306.096 227.625 305.777 227.76 305.422 227.854C305.07 227.947 304.689 227.996 304.279 228H302.305ZM303.406 220.359V227.115H304.279C304.592 227.111 304.875 227.072 305.129 226.998C305.387 226.924 305.615 226.818 305.814 226.682C306.025 226.541 306.207 226.369 306.359 226.166C306.516 225.959 306.639 225.729 306.729 225.475C306.807 225.268 306.865 225.045 306.904 224.807C306.943 224.564 306.965 224.312 306.969 224.051V223.412C306.965 223.146 306.941 222.893 306.898 222.65C306.859 222.404 306.799 222.176 306.717 221.965C306.611 221.691 306.469 221.445 306.289 221.227C306.113 221.004 305.896 220.824 305.639 220.688C305.455 220.586 305.25 220.508 305.023 220.453C304.797 220.395 304.549 220.363 304.279 220.359H303.406ZM314.979 219.469L314.99 225.246C314.99 225.645 314.92 226.018 314.779 226.365C314.639 226.713 314.445 227.016 314.199 227.273C313.953 227.535 313.66 227.742 313.32 227.895C312.98 228.043 312.607 228.117 312.201 228.117C311.787 228.
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
306.289 221.227C306.113 221.004 305.896 220.824 305.639 220.688C305.455 220.586 305.25 220.508 305.023 220.453C304.797 220.395 304.549 220.363 304.279 220.359H303.406ZM314.979 219.469L314.99 225.246C314.99 225.645 314.92 226.018 314.779 226.365C314.639 226.713 314.445 227.016 314.199 227.273C313.953 227.535 313.66 227.742 313.32 227.895C312.98 228.043 312.607 228.117 312.201 228.117C311.787 228.117 311.41 228.043 311.07 227.895C310.73 227.746 310.439 227.541 310.197 227.279C309.955 227.021 309.766 226.719 309.629 226.371C309.492 226.02 309.422 225.645 309.418 225.246L309.43 219.469H310.461L310.484 225.246C310.488 225.5 310.527 225.744 310.602 225.979C310.68 226.213 310.791 226.42 310.936 226.6C311.076 226.779 311.252 226.924 311.463 227.033C311.678 227.143 311.924 227.197 312.201 227.197C312.479 227.197 312.723 227.145 312.934 227.039C313.145 226.93 313.322 226.783 313.467 226.6C313.607 226.42 313.715 226.213 313.789 225.979C313.863 225.744 313.904 225.5 313.912 225.246L313.93 219.469H314.979ZM318.055 227.08H322.227V228H316.971V219.469H318.055V227.08ZM328.73 224.057H325.168V227.08H329.322V228H324.084V219.469H329.27V220.395H325.168V223.137H328.73V224.057ZM334.068 224.52H332.363V228H331.285V219.469H333.787C334.186 219.477 334.561 219.533 334.912 219.639C335.264 219.744 335.572 219.902 335.838 220.113C336.1 220.324 336.305 220.59 336.453 220.91C336.605 221.227 336.682 221.6 336.682 222.029C336.682 222.307 336.641 222.561 336.559 222.791C336.48 223.021 336.371 223.23 336.23 223.418C336.09 223.605 335.922 223.771 335.727 223.916C335.531 224.061 335.316 224.184 335.082 224.285L336.893 227.93L336.887 228H335.744L334.068 224.52ZM332.363 223.629H333.816C334.059 223.625 334.287 223.588 334.502 223.518C334.717 223.443 334.906 223.338 335.07 223.201C335.23 223.064 335.357 222.898 335.451 222.703C335.545 222.504 335.592 222.275 335.592 222.018C335.592 221.744 335.547 221.506 335.457 221.303C335.367 221.096 335.242 220.922 335.082 220.781C334.922 220.645 334.73 220.541 334.508 220.471C334.289 220.4 334.049 220.363 333.787 220.359H332.363V223.629Z" fill="black"></path> <rect x="420.5" y="0.5" width="409" height="103" rx="9.5" fill="#D1D1D1"></rect> <rect x="420.5" y="0.5" width="409" height="103" rx="9.5" stroke="#CACACA"></rect> <path d="M435.454 17.8613C435.412 18.1901 435.327 18.4928 435.2 18.7695C435.073 19.043 434.909 19.2773 434.707 19.4727C434.502 19.6712 434.259 19.8258 433.979 19.9365C433.703 20.0439 433.394 20.0977 433.052 20.0977C432.759 20.0977 432.492 20.057 432.251 19.9756C432.013 19.891 431.802 19.7754 431.616 19.6289C431.427 19.4824 431.265 19.3099 431.128 19.1113C430.994 18.9128 430.884 18.6963 430.796 18.4619C430.705 18.2275 430.636 17.9818 430.591 17.7246C430.549 17.4674 430.526 17.207 430.522 16.9434V15.9521C430.526 15.6885 430.549 15.4281 430.591 15.1709C430.636 14.9137 430.705 14.668 430.796 14.4336C430.884 14.1992 430.994 13.9827 431.128 13.7842C431.265 13.5824 431.427 13.4082 431.616 13.2617C431.802 13.1152 432.013 13.0013 432.251 12.9199C432.489 12.8353 432.756 12.793 433.052 12.793C433.407 12.793 433.724 12.8483 434.004 12.959C434.284 13.0664 434.525 13.2194 434.727 13.418C434.928 13.6198 435.09 13.8607 435.21 14.1406C435.334 14.4206 435.415 14.7298 435.454 15.0684H434.551C434.521 14.8535 434.471 14.6533 434.399 14.4678C434.328 14.2822 434.232 14.1195 434.111 13.9795C433.991 13.8395 433.843 13.7305 433.667 13.6523C433.494 13.571 433.289 13.5303 433.052 13.5303C432.837 13.5303 432.646 13.5661 432.48 13.6377C432.318 13.7061 432.178 13.8005 432.061 13.9209C431.94 14.0413 431.839 14.1813 431.758 14.3408C431.68 14.5003 431.616 14.6696 431.567 14.8486C431.519 15.0277 431.483 15.2116 431.46 15.4004C431.44 15.5859 431.431 15.7666 431.431 15.9424V16.9434C431.431 17.1191 431.44 17.3014 431.46 17.4902C431.483 17.6758 431.519 17.8581 431.567 18.0371C431.616 18.2194 431.68 18.3903 431.758 18.549
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
8005 432.061 13.9209C431.94 14.0413 431.839 14.1813 431.758 14.3408C431.68 14.5003 431.616 14.6696 431.567 14.8486C431.519 15.0277 431.483 15.2116 431.46 15.4004C431.44 15.5859 431.431 15.7666 431.431 15.9424V16.9434C431.431 17.1191 431.44 17.3014 431.46 17.4902C431.483 17.6758 431.519 17.8581 431.567 18.0371C431.616 18.2194 431.68 18.3903 431.758 18.5498C431.836 18.7093 431.935 18.8493 432.056 18.9697C432.176 19.0934 432.318 19.1911 432.48 19.2627C432.643 19.3311 432.834 19.3652 433.052 19.3652C433.289 19.3652 433.494 19.3278 433.667 19.2529C433.843 19.1781 433.991 19.0723 434.111 18.9355C434.232 18.8021 434.328 18.6442 434.399 18.4619C434.471 18.2764 434.521 18.0762 434.551 17.8613H435.454ZM441.479 16.8555C441.476 17.1094 441.453 17.3665 441.411 17.627C441.372 17.8841 441.31 18.1331 441.226 18.374C441.141 18.6149 441.032 18.8395 440.898 19.0479C440.768 19.2562 440.612 19.4385 440.43 19.5947C440.247 19.751 440.037 19.8747 439.8 19.9658C439.565 20.0537 439.302 20.0977 439.009 20.0977C438.716 20.0977 438.451 20.0537 438.213 19.9658C437.979 19.8747 437.77 19.751 437.588 19.5947C437.406 19.4385 437.248 19.2562 437.114 19.0479C436.981 18.8363 436.872 18.61 436.787 18.3691C436.699 18.1283 436.634 17.8792 436.592 17.6221C436.549 17.3649 436.527 17.1094 436.523 16.8555V16.0449C436.527 15.791 436.548 15.5355 436.587 15.2783C436.629 15.0179 436.694 14.7673 436.782 14.5264C436.867 14.2855 436.974 14.0609 437.104 13.8525C437.238 13.641 437.396 13.4554 437.578 13.2959C437.76 13.1396 437.969 13.0176 438.203 12.9297C438.441 12.8385 438.706 12.793 438.999 12.793C439.292 12.793 439.557 12.8385 439.795 12.9297C440.033 13.0176 440.243 13.1396 440.425 13.2959C440.607 13.4521 440.763 13.6361 440.894 13.8477C441.027 14.056 441.138 14.2806 441.226 14.5215C441.31 14.7624 441.372 15.013 441.411 15.2734C441.453 15.5339 441.476 15.791 441.479 16.0449V16.8555ZM440.586 16.0352C440.583 15.8659 440.571 15.6901 440.552 15.5078C440.532 15.3223 440.5 15.1383 440.454 14.9561C440.405 14.777 440.342 14.6061 440.264 14.4434C440.186 14.2773 440.088 14.1309 439.971 14.0039C439.854 13.8802 439.715 13.7826 439.556 13.7109C439.396 13.6361 439.211 13.5986 438.999 13.5986C438.791 13.5986 438.607 13.6361 438.447 13.7109C438.288 13.7858 438.149 13.8851 438.032 14.0088C437.915 14.1357 437.817 14.2822 437.739 14.4482C437.661 14.611 437.599 14.7819 437.554 14.9609C437.505 15.1432 437.469 15.3271 437.446 15.5127C437.427 15.695 437.415 15.8691 437.412 16.0352V16.8555C437.415 17.0215 437.427 17.1973 437.446 17.3828C437.469 17.5684 437.505 17.7507 437.554 17.9297C437.603 18.112 437.666 18.2861 437.744 18.4521C437.822 18.6182 437.92 18.763 438.037 18.8867C438.154 19.0137 438.293 19.1146 438.452 19.1895C438.612 19.2643 438.797 19.3018 439.009 19.3018C439.22 19.3018 439.406 19.2643 439.565 19.1895C439.728 19.1146 439.868 19.0137 439.985 18.8867C440.099 18.763 440.194 18.6198 440.269 18.457C440.347 18.291 440.41 18.1169 440.459 17.9346C440.505 17.7555 440.535 17.5732 440.552 17.3877C440.571 17.2021 440.583 17.0247 440.586 16.8555V16.0352ZM443.853 12.8906L445.01 16.4453L446.26 12.8906H447.383V20H446.504V17.1631L446.577 14.1943L445.264 18.0225H444.746L443.54 14.2969L443.613 17.1631V20H442.734V12.8906H443.853ZM449.854 17.1484V20H448.95V12.8906H451.255C451.574 12.8971 451.875 12.9476 452.158 13.042C452.445 13.1364 452.695 13.2731 452.91 13.4521C453.125 13.6312 453.294 13.8525 453.418 14.1162C453.545 14.3799 453.608 14.6826 453.608 15.0244C453.608 15.3662 453.545 15.6689 453.418 15.9326C453.294 16.193 453.125 16.4128 452.91 16.5918C452.695 16.7708 452.445 16.9076 452.158 17.002C451.875 17.0964 451.574 17.1452 451.255 17.148
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
1 451.875 12.9476 452.158 13.042C452.445 13.1364 452.695 13.2731 452.91 13.4521C453.125 13.6312 453.294 13.8525 453.418 14.1162C453.545 14.3799 453.608 14.6826 453.608 15.0244C453.608 15.3662 453.545 15.6689 453.418 15.9326C453.294 16.193 453.125 16.4128 452.91 16.5918C452.695 16.7708 452.445 16.9076 452.158 17.002C451.875 17.0964 451.574 17.1452 451.255 17.1484H449.854ZM449.854 16.4062H451.255C451.463 16.403 451.655 16.3704 451.831 16.3086C452.007 16.2435 452.16 16.1523 452.29 16.0352C452.42 15.918 452.521 15.7764 452.593 15.6104C452.668 15.4411 452.705 15.249 452.705 15.0342C452.705 14.8193 452.668 14.6257 452.593 14.4531C452.521 14.2806 452.422 14.1341 452.295 14.0137C452.165 13.8932 452.01 13.8005 451.831 13.7354C451.655 13.6702 451.463 13.6361 451.255 13.6328H449.854V16.4062ZM459.336 12.8906L459.346 17.7051C459.346 18.0371 459.287 18.348 459.17 18.6377C459.053 18.9274 458.892 19.1797 458.687 19.3945C458.481 19.6126 458.237 19.7852 457.954 19.9121C457.671 20.0358 457.36 20.0977 457.021 20.0977C456.676 20.0977 456.362 20.0358 456.079 19.9121C455.796 19.7884 455.553 19.6175 455.352 19.3994C455.15 19.1846 454.992 18.9323 454.878 18.6426C454.764 18.3496 454.705 18.0371 454.702 17.7051L454.712 12.8906H455.571L455.591 17.7051C455.594 17.9167 455.627 18.1201 455.688 18.3154C455.754 18.5107 455.846 18.6833 455.967 18.833C456.084 18.9827 456.23 19.1032 456.406 19.1943C456.585 19.2855 456.79 19.3311 457.021 19.3311C457.253 19.3311 457.456 19.2871 457.632 19.1992C457.808 19.1081 457.956 18.986 458.076 18.833C458.193 18.6833 458.283 18.5107 458.345 18.3154C458.407 18.1201 458.441 17.9167 458.447 17.7051L458.462 12.8906H459.336ZM465.674 13.6621H463.477V20H462.598V13.6621H460.4V12.8906H465.674V13.6621ZM470.796 16.7139H467.827V19.2334H471.289V20H466.924V12.8906H471.245V13.6621H467.827V15.9473H470.796V16.7139ZM483.359 12.8906L483.369 17.7051C483.369 18.0371 483.311 18.348 483.193 18.6377C483.076 18.9274 482.915 19.1797 482.71 19.3945C482.505 19.6126 482.261 19.7852 481.978 19.9121C481.694 20.0358 481.383 20.0977 481.045 20.0977C480.7 20.0977 480.386 20.0358 480.103 19.9121C479.819 19.7884 479.577 19.6175 479.375 19.3994C479.173 19.1846 479.015 18.9323 478.901 18.6426C478.787 18.3496 478.729 18.0371 478.726 17.7051L478.735 12.8906H479.595L479.614 17.7051C479.618 17.9167 479.65 18.1201 479.712 18.3154C479.777 18.5107 479.87 18.6833 479.99 18.833C480.107 18.9827 480.254 19.1032 480.43 19.1943C480.609 19.2855 480.814 19.3311 481.045 19.3311C481.276 19.3311 481.479 19.2871 481.655 19.1992C481.831 19.1081 481.979 18.986 482.1 18.833C482.217 18.6833 482.306 18.5107 482.368 18.3154C482.43 18.1201 482.464 17.9167 482.471 17.7051L482.485 12.8906H483.359ZM489.355 20H488.438L485.679 14.6875L485.664 20H484.751V12.8906H485.669L488.428 18.1934L488.442 12.8906H489.355V20ZM490.908 12.8906H495.205V13.6768H493.501V19.2188H495.205V20H490.908V19.2188H492.573V13.6768H490.908V12.8906ZM501.709 13.6621H499.512V20H498.633V13.6621H496.436V12.8906H501.709V13.6621Z" fill="black"></path> <rect x="430" y="33" width="190" height="25.5" rx="4" fill="#E6E6E6"></rect> <path d="M494.771 47.3281V50.75H493.688V42.2188H496.453C496.836 42.2266 497.197 42.2871 497.537 42.4004C497.881 42.5137 498.182 42.6777 498.439 42.8926C498.697 43.1074 498.9 43.373 499.049 43.6895C499.201 44.0059 499.277 44.3691 499.277 44.7793C499.277 45.1895 499.201 45.5527 499.049 45.8691C498.9 46.1816 498.697 46.4453 498.439 46.6602C498.182 46.875 497.881 47.0391 497.537 47.1523C497.197 47.2656 496.836 47.3242 496.453 47.3281H494.771ZM494.771 46.4375H496.453C496.703 46.4336 496.934 46.3945 497.145 46.3203C497.355 46.2422 497.539 46.1328 497.695 45.9922C497.852 45.8516
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
277 44.3691 499.277 44.7793C499.277 45.1895 499.201 45.5527 499.049 45.8691C498.9 46.1816 498.697 46.4453 498.439 46.6602C498.182 46.875 497.881 47.0391 497.537 47.1523C497.197 47.2656 496.836 47.3242 496.453 47.3281H494.771ZM494.771 46.4375H496.453C496.703 46.4336 496.934 46.3945 497.145 46.3203C497.355 46.2422 497.539 46.1328 497.695 45.9922C497.852 45.8516 497.973 45.6816 498.059 45.4824C498.148 45.2793 498.193 45.0488 498.193 44.791C498.193 44.5332 498.148 44.3008 498.059 44.0938C497.973 43.8867 497.854 43.7109 497.701 43.5664C497.545 43.4219 497.359 43.3105 497.145 43.2324C496.934 43.1543 496.703 43.1133 496.453 43.1094H494.771V46.4375ZM503.619 47.2695H501.914V50.75H500.836V42.2188H503.338C503.736 42.2266 504.111 42.2832 504.463 42.3887C504.814 42.4941 505.123 42.6523 505.389 42.8633C505.65 43.0742 505.855 43.3398 506.004 43.6602C506.156 43.9766 506.232 44.3496 506.232 44.7793C506.232 45.0566 506.191 45.3105 506.109 45.541C506.031 45.7715 505.922 45.9805 505.781 46.168C505.641 46.3555 505.473 46.5215 505.277 46.666C505.082 46.8105 504.867 46.9336 504.633 47.0352L506.443 50.6797L506.438 50.75H505.295L503.619 47.2695ZM501.914 46.3789H503.367C503.609 46.375 503.838 46.3379 504.053 46.2676C504.268 46.1934 504.457 46.0879 504.621 45.9512C504.781 45.8145 504.908 45.6484 505.002 45.4531C505.096 45.2539 505.143 45.0254 505.143 44.7676C505.143 44.4941 505.098 44.2559 505.008 44.0527C504.918 43.8457 504.793 43.6719 504.633 43.5312C504.473 43.3945 504.281 43.291 504.059 43.2207C503.84 43.1504 503.6 43.1133 503.338 43.1094H501.914V46.3789ZM513.551 46.9766C513.547 47.2812 513.52 47.5898 513.469 47.9023C513.422 48.2109 513.348 48.5098 513.246 48.7988C513.145 49.0879 513.014 49.3574 512.854 49.6074C512.697 49.8574 512.51 50.0762 512.291 50.2637C512.072 50.4512 511.82 50.5996 511.535 50.709C511.254 50.8145 510.938 50.8672 510.586 50.8672C510.234 50.8672 509.916 50.8145 509.631 50.709C509.35 50.5996 509.1 50.4512 508.881 50.2637C508.662 50.0762 508.473 49.8574 508.312 49.6074C508.152 49.3535 508.021 49.082 507.92 48.793C507.814 48.5039 507.736 48.2051 507.686 47.8965C507.635 47.5879 507.607 47.2812 507.604 46.9766V46.0039C507.607 45.6992 507.633 45.3926 507.68 45.084C507.73 44.7715 507.809 44.4707 507.914 44.1816C508.016 43.8926 508.145 43.623 508.301 43.373C508.461 43.1191 508.65 42.8965 508.869 42.7051C509.088 42.5176 509.338 42.3711 509.619 42.2656C509.904 42.1562 510.223 42.1016 510.574 42.1016C510.926 42.1016 511.244 42.1562 511.529 42.2656C511.814 42.3711 512.066 42.5176 512.285 42.7051C512.504 42.8926 512.691 43.1133 512.848 43.3672C513.008 43.6172 513.141 43.8867 513.246 44.1758C513.348 44.4648 513.422 44.7656 513.469 45.0781C513.52 45.3906 513.547 45.6992 513.551 46.0039V46.9766ZM512.479 45.9922C512.475 45.7891 512.461 45.5781 512.438 45.3594C512.414 45.1367 512.375 44.916 512.32 44.6973C512.262 44.4824 512.186 44.2773 512.092 44.082C511.998 43.8828 511.881 43.707 511.74 43.5547C511.6 43.4062 511.434 43.2891 511.242 43.2031C511.051 43.1133 510.828 43.0684 510.574 43.0684C510.324 43.0684 510.104 43.1133 509.912 43.2031C509.721 43.293 509.555 43.4121 509.414 43.5605C509.273 43.7129 509.156 43.8887 509.062 44.0879C508.969 44.2832 508.895 44.4883 508.84 44.7031C508.781 44.9219 508.738 45.1426 508.711 45.3652C508.688 45.584 508.674 45.793 508.67 45.9922V46.9766C508.674 47.1758 508.688 47.3867 508.711 47.6094C508.738 47.832 508.781 48.0508 508.84 48.2656C508.898 48.4844 508.975 48.6934 509.068 48.8926C509.162 49.0918 509.279 49.2656 509.42 49.4141C509.561 49.5664 509.727 49.6875 509.918 49.7773C510.109 49.8672 510.332 49.9121 510.586 49.9121C510.84 49.9121 511.062 49.8672
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
45.584 508.674 45.793 508.67 45.9922V46.9766C508.674 47.1758 508.688 47.3867 508.711 47.6094C508.738 47.832 508.781 48.0508 508.84 48.2656C508.898 48.4844 508.975 48.6934 509.068 48.8926C509.162 49.0918 509.279 49.2656 509.42 49.4141C509.561 49.5664 509.727 49.6875 509.918 49.7773C510.109 49.8672 510.332 49.9121 510.586 49.9121C510.84 49.9121 511.062 49.8672 511.254 49.7773C511.449 49.6875 511.617 49.5664 511.758 49.4141C511.895 49.2656 512.008 49.0938 512.098 48.8984C512.191 48.6992 512.268 48.4902 512.326 48.2715C512.381 48.0566 512.418 47.8379 512.438 47.6152C512.461 47.3926 512.475 47.1797 512.479 46.9766V45.9922ZM520.734 48.1836C520.684 48.5781 520.582 48.9414 520.43 49.2734C520.277 49.6016 520.08 49.8828 519.838 50.1172C519.592 50.3555 519.301 50.541 518.965 50.6738C518.633 50.8027 518.262 50.8672 517.852 50.8672C517.5 50.8672 517.18 50.8184 516.891 50.7207C516.605 50.6191 516.352 50.4805 516.129 50.3047C515.902 50.1289 515.707 49.9219 515.543 49.6836C515.383 49.4453 515.25 49.1855 515.145 48.9043C515.035 48.623 514.953 48.3281 514.898 48.0195C514.848 47.7109 514.82 47.3984 514.816 47.082V45.8926C514.82 45.5762 514.848 45.2637 514.898 44.9551C514.953 44.6465 515.035 44.3516 515.145 44.0703C515.25 43.7891 515.383 43.5293 515.543 43.291C515.707 43.0488 515.902 42.8398 516.129 42.6641C516.352 42.4883 516.605 42.3516 516.891 42.2539C517.176 42.1523 517.496 42.1016 517.852 42.1016C518.277 42.1016 518.658 42.168 518.994 42.3008C519.33 42.4297 519.619 42.6133 519.861 42.8516C520.104 43.0938 520.297 43.3828 520.441 43.7188C520.59 44.0547 520.688 44.4258 520.734 44.832H519.65C519.615 44.5742 519.555 44.334 519.469 44.1113C519.383 43.8887 519.268 43.6934 519.123 43.5254C518.979 43.3574 518.801 43.2266 518.59 43.1328C518.383 43.0352 518.137 42.9863 517.852 42.9863C517.594 42.9863 517.365 43.0293 517.166 43.1152C516.971 43.1973 516.803 43.3105 516.662 43.4551C516.518 43.5996 516.396 43.7676 516.299 43.959C516.205 44.1504 516.129 44.3535 516.07 44.5684C516.012 44.7832 515.969 45.0039 515.941 45.2305C515.918 45.4531 515.906 45.6699 515.906 45.8809V47.082C515.906 47.293 515.918 47.5117 515.941 47.7383C515.969 47.9609 516.012 48.1797 516.07 48.3945C516.129 48.6133 516.205 48.8184 516.299 49.0098C516.393 49.2012 516.512 49.3691 516.656 49.5137C516.801 49.6621 516.971 49.7793 517.166 49.8652C517.361 49.9473 517.59 49.9883 517.852 49.9883C518.137 49.9883 518.383 49.9434 518.59 49.8535C518.801 49.7637 518.979 49.6367 519.123 49.4727C519.268 49.3125 519.383 49.123 519.469 48.9043C519.555 48.6816 519.615 48.4414 519.65 48.1836H520.734ZM527.109 46.8066H523.547V49.8301H527.701V50.75H522.463V42.2188H527.648V43.1445H523.547V45.8867H527.109V46.8066ZM534.088 48.5938C534.088 48.332 534.027 48.1113 533.906 47.9316C533.789 47.752 533.637 47.5996 533.449 47.4746C533.262 47.3535 533.055 47.252 532.828 47.1699C532.605 47.0879 532.391 47.0137 532.184 46.9473C531.883 46.8496 531.576 46.7324 531.264 46.5957C530.955 46.4551 530.674 46.2871 530.42 46.0918C530.162 45.8926 529.951 45.6582 529.787 45.3887C529.627 45.1152 529.547 44.7949 529.547 44.4277C529.547 44.0605 529.627 43.7324 529.787 43.4434C529.951 43.1543 530.164 42.9102 530.426 42.7109C530.688 42.5117 530.984 42.3613 531.316 42.2598C531.648 42.1543 531.982 42.1016 532.318 42.1016C532.689 42.1016 533.047 42.1641 533.391 42.2891C533.734 42.4102 534.039 42.582 534.305 42.8047C534.57 43.0273 534.783 43.2969 534.943 43.6133C535.104 43.9297 535.188 44.2832 535.195 44.6738H534.082C534.051 44.4277 533.99 44.2051 533.9 44.0059C533.811 43.8027 533.691 43.6289 533.543 43.4844C533.395 43.3398 533.217 43.2285 533.01 43.1504C532.807 43.0684 532.
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
C532.689 42.1016 533.047 42.1641 533.391 42.2891C533.734 42.4102 534.039 42.582 534.305 42.8047C534.57 43.0273 534.783 43.2969 534.943 43.6133C535.104 43.9297 535.188 44.2832 535.195 44.6738H534.082C534.051 44.4277 533.99 44.2051 533.9 44.0059C533.811 43.8027 533.691 43.6289 533.543 43.4844C533.395 43.3398 533.217 43.2285 533.01 43.1504C532.807 43.0684 532.576 43.0273 532.318 43.0273C532.111 43.0273 531.908 43.0566 531.709 43.1152C531.514 43.1738 531.34 43.2617 531.188 43.3789C531.031 43.4961 530.906 43.6406 530.812 43.8125C530.723 43.9844 530.678 44.1836 530.678 44.4102C530.682 44.6562 530.744 44.8652 530.865 45.0371C530.986 45.2051 531.141 45.3477 531.328 45.4648C531.512 45.582 531.711 45.6797 531.926 45.7578C532.145 45.8359 532.35 45.9043 532.541 45.9629C532.857 46.0605 533.174 46.1797 533.49 46.3203C533.807 46.457 534.096 46.6328 534.357 46.8477C534.615 47.0469 534.822 47.291 534.979 47.5801C535.139 47.8691 535.219 48.2031 535.219 48.582C535.219 48.9648 535.133 49.2988 534.961 49.584C534.793 49.8691 534.574 50.1055 534.305 50.293C534.035 50.4844 533.73 50.6289 533.391 50.7266C533.051 50.8203 532.711 50.8672 532.371 50.8672C531.965 50.8672 531.564 50.7988 531.17 50.6621C530.779 50.5254 530.439 50.3281 530.15 50.0703C529.893 49.8477 529.688 49.5879 529.535 49.291C529.387 48.9902 529.307 48.6562 529.295 48.2891H530.402C530.438 48.5547 530.51 48.791 530.619 48.998C530.729 49.2012 530.869 49.373 531.041 49.5137C531.213 49.6582 531.41 49.7676 531.633 49.8418C531.859 49.9121 532.105 49.9473 532.371 49.9473C532.582 49.9473 532.789 49.9219 532.992 49.8711C533.199 49.8164 533.383 49.7324 533.543 49.6191C533.703 49.5098 533.834 49.3711 533.936 49.2031C534.037 49.0312 534.088 48.8281 534.088 48.5938ZM541.295 48.5938C541.295 48.332 541.234 48.1113 541.113 47.9316C540.996 47.752 540.844 47.5996 540.656 47.4746C540.469 47.3535 540.262 47.252 540.035 47.1699C539.812 47.0879 539.598 47.0137 539.391 46.9473C539.09 46.8496 538.783 46.7324 538.471 46.5957C538.162 46.4551 537.881 46.2871 537.627 46.0918C537.369 45.8926 537.158 45.6582 536.994 45.3887C536.834 45.1152 536.754 44.7949 536.754 44.4277C536.754 44.0605 536.834 43.7324 536.994 43.4434C537.158 43.1543 537.371 42.9102 537.633 42.7109C537.895 42.5117 538.191 42.3613 538.523 42.2598C538.855 42.1543 539.189 42.1016 539.525 42.1016C539.896 42.1016 540.254 42.1641 540.598 42.2891C540.941 42.4102 541.246 42.582 541.512 42.8047C541.777 43.0273 541.99 43.2969 542.15 43.6133C542.311 43.9297 542.395 44.2832 542.402 44.6738H541.289C541.258 44.4277 541.197 44.2051 541.107 44.0059C541.018 43.8027 540.898 43.6289 540.75 43.4844C540.602 43.3398 540.424 43.2285 540.217 43.1504C540.014 43.0684 539.783 43.0273 539.525 43.0273C539.318 43.0273 539.115 43.0566 538.916 43.1152C538.721 43.1738 538.547 43.2617 538.395 43.3789C538.238 43.4961 538.113 43.6406 538.02 43.8125C537.93 43.9844 537.885 44.1836 537.885 44.4102C537.889 44.6562 537.951 44.8652 538.072 45.0371C538.193 45.2051 538.348 45.3477 538.535 45.4648C538.719 45.582 538.918 45.6797 539.133 45.7578C539.352 45.8359 539.557 45.9043 539.748 45.9629C540.064 46.0605 540.381 46.1797 540.697 46.3203C541.014 46.457 541.303 46.6328 541.564 46.8477C541.822 47.0469 542.029 47.291 542.186 47.5801C542.346 47.8691 542.426 48.2031 542.426 48.582C542.426 48.9648 542.34 49.2988 542.168 49.584C542 49.8691 541.781 50.1055 541.512 50.293C541.242 50.4844 540.938 50.6289 540.598 50.7266C540.258 50.8203 539.918 50.8672 539.578 50.8672C539.172 50.8672 538.771 50.7988 538.377 50.6621C537.986 50.5254 537.646 50.3281 537.357 50.0703C537.1 49.8477 536.895 49.5879 536.742 49.291C536.594 48.9902 536.514 48.6562 536.502 48.
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
48.9648 542.34 49.2988 542.168 49.584C542 49.8691 541.781 50.1055 541.512 50.293C541.242 50.4844 540.938 50.6289 540.598 50.7266C540.258 50.8203 539.918 50.8672 539.578 50.8672C539.172 50.8672 538.771 50.7988 538.377 50.6621C537.986 50.5254 537.646 50.3281 537.357 50.0703C537.1 49.8477 536.895 49.5879 536.742 49.291C536.594 48.9902 536.514 48.6562 536.502 48.2891H537.609C537.645 48.5547 537.717 48.791 537.826 48.998C537.936 49.2012 538.076 49.373 538.248 49.5137C538.42 49.6582 538.617 49.7676 538.84 49.8418C539.066 49.9121 539.312 49.9473 539.578 49.9473C539.789 49.9473 539.996 49.9219 540.199 49.8711C540.406 49.8164 540.59 49.7324 540.75 49.6191C540.91 49.5098 541.041 49.3711 541.143 49.2031C541.244 49.0312 541.295 48.8281 541.295 48.5938ZM554.76 50.75H553.676V43.6016L551.443 44.4512V43.4609L554.672 42.2188H554.76V50.75Z" fill="black"></path> <rect x="630" y="33" width="190" height="25.5" rx="4" fill="#E6E6E6"></rect> <path d="M694.771 47.3281V50.75H693.688V42.2188H696.453C696.836 42.2266 697.197 42.2871 697.537 42.4004C697.881 42.5137 698.182 42.6777 698.439 42.8926C698.697 43.1074 698.9 43.373 699.049 43.6895C699.201 44.0059 699.277 44.3691 699.277 44.7793C699.277 45.1895 699.201 45.5527 699.049 45.8691C698.9 46.1816 698.697 46.4453 698.439 46.6602C698.182 46.875 697.881 47.0391 697.537 47.1523C697.197 47.2656 696.836 47.3242 696.453 47.3281H694.771ZM694.771 46.4375H696.453C696.703 46.4336 696.934 46.3945 697.145 46.3203C697.355 46.2422 697.539 46.1328 697.695 45.9922C697.852 45.8516 697.973 45.6816 698.059 45.4824C698.148 45.2793 698.193 45.0488 698.193 44.791C698.193 44.5332 698.148 44.3008 698.059 44.0938C697.973 43.8867 697.854 43.7109 697.701 43.5664C697.545 43.4219 697.359 43.3105 697.145 43.2324C696.934 43.1543 696.703 43.1133 696.453 43.1094H694.771V46.4375ZM703.619 47.2695H701.914V50.75H700.836V42.2188H703.338C703.736 42.2266 704.111 42.2832 704.463 42.3887C704.814 42.4941 705.123 42.6523 705.389 42.8633C705.65 43.0742 705.855 43.3398 706.004 43.6602C706.156 43.9766 706.232 44.3496 706.232 44.7793C706.232 45.0566 706.191 45.3105 706.109 45.541C706.031 45.7715 705.922 45.9805 705.781 46.168C705.641 46.3555 705.473 46.5215 705.277 46.666C705.082 46.8105 704.867 46.9336 704.633 47.0352L706.443 50.6797L706.438 50.75H705.295L703.619 47.2695ZM701.914 46.3789H703.367C703.609 46.375 703.838 46.3379 704.053 46.2676C704.268 46.1934 704.457 46.0879 704.621 45.9512C704.781 45.8145 704.908 45.6484 705.002 45.4531C705.096 45.2539 705.143 45.0254 705.143 44.7676C705.143 44.4941 705.098 44.2559 705.008 44.0527C704.918 43.8457 704.793 43.6719 704.633 43.5312C704.473 43.3945 704.281 43.291 704.059 43.2207C703.84 43.1504 703.6 43.1133 703.338 43.1094H701.914V46.3789ZM713.551 46.9766C713.547 47.2812 713.52 47.5898 713.469 47.9023C713.422 48.2109 713.348 48.5098 713.246 48.7988C713.145 49.0879 713.014 49.3574 712.854 49.6074C712.697 49.8574 712.51 50.0762 712.291 50.2637C712.072 50.4512 711.82 50.5996 711.535 50.709C711.254 50.8145 710.938 50.8672 710.586 50.8672C710.234 50.8672 709.916 50.8145 709.631 50.709C709.35 50.5996 709.1 50.4512 708.881 50.2637C708.662 50.0762 708.473 49.8574 708.312 49.6074C708.152 49.3535 708.021 49.082 707.92 48.793C707.814 48.5039 707.736 48.2051 707.686 47.8965C707.635 47.5879 707.607 47.2812 707.604 46.9766V46.0039C707.607 45.6992 707.633 45.3926 707.68 45.084C707.73 44.7715 707.809 44.4707 707.914 44.1816C708.016 43.8926 708.145 43.623 708.301 43.373C708.461 43.1191 708.65 42.8965 708.869 42.7051C709.088 42.5176 709.338 42.3711 709.619 42.2656C709.904 42.1562 710.223 42.1016 710.574 42.1016C710.926 42.1016 711.244 42.1562 711.529 42.2656C711.814 42.3711 712.066 42.
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
0039C707.607 45.6992 707.633 45.3926 707.68 45.084C707.73 44.7715 707.809 44.4707 707.914 44.1816C708.016 43.8926 708.145 43.623 708.301 43.373C708.461 43.1191 708.65 42.8965 708.869 42.7051C709.088 42.5176 709.338 42.3711 709.619 42.2656C709.904 42.1562 710.223 42.1016 710.574 42.1016C710.926 42.1016 711.244 42.1562 711.529 42.2656C711.814 42.3711 712.066 42.5176 712.285 42.7051C712.504 42.8926 712.691 43.1133 712.848 43.3672C713.008 43.6172 713.141 43.8867 713.246 44.1758C713.348 44.4648 713.422 44.7656 713.469 45.0781C713.52 45.3906 713.547 45.6992 713.551 46.0039V46.9766ZM712.479 45.9922C712.475 45.7891 712.461 45.5781 712.438 45.3594C712.414 45.1367 712.375 44.916 712.32 44.6973C712.262 44.4824 712.186 44.2773 712.092 44.082C711.998 43.8828 711.881 43.707 711.74 43.5547C711.6 43.4062 711.434 43.2891 711.242 43.2031C711.051 43.1133 710.828 43.0684 710.574 43.0684C710.324 43.0684 710.104 43.1133 709.912 43.2031C709.721 43.293 709.555 43.4121 709.414 43.5605C709.273 43.7129 709.156 43.8887 709.062 44.0879C708.969 44.2832 708.895 44.4883 708.84 44.7031C708.781 44.9219 708.738 45.1426 708.711 45.3652C708.688 45.584 708.674 45.793 708.67 45.9922V46.9766C708.674 47.1758 708.688 47.3867 708.711 47.6094C708.738 47.832 708.781 48.0508 708.84 48.2656C708.898 48.4844 708.975 48.6934 709.068 48.8926C709.162 49.0918 709.279 49.2656 709.42 49.4141C709.561 49.5664 709.727 49.6875 709.918 49.7773C710.109 49.8672 710.332 49.9121 710.586 49.9121C710.84 49.9121 711.062 49.8672 711.254 49.7773C711.449 49.6875 711.617 49.5664 711.758 49.4141C711.895 49.2656 712.008 49.0938 712.098 48.8984C712.191 48.6992 712.268 48.4902 712.326 48.2715C712.381 48.0566 712.418 47.8379 712.438 47.6152C712.461 47.3926 712.475 47.1797 712.479 46.9766V45.9922ZM720.734 48.1836C720.684 48.5781 720.582 48.9414 720.43 49.2734C720.277 49.6016 720.08 49.8828 719.838 50.1172C719.592 50.3555 719.301 50.541 718.965 50.6738C718.633 50.8027 718.262 50.8672 717.852 50.8672C717.5 50.8672 717.18 50.8184 716.891 50.7207C716.605 50.6191 716.352 50.4805 716.129 50.3047C715.902 50.1289 715.707 49.9219 715.543 49.6836C715.383 49.4453 715.25 49.1855 715.145 48.9043C715.035 48.623 714.953 48.3281 714.898 48.0195C714.848 47.7109 714.82 47.3984 714.816 47.082V45.8926C714.82 45.5762 714.848 45.2637 714.898 44.9551C714.953 44.6465 715.035 44.3516 715.145 44.0703C715.25 43.7891 715.383 43.5293 715.543 43.291C715.707 43.0488 715.902 42.8398 716.129 42.6641C716.352 42.4883 716.605 42.3516 716.891 42.2539C717.176 42.1523 717.496 42.1016 717.852 42.1016C718.277 42.1016 718.658 42.168 718.994 42.3008C719.33 42.4297 719.619 42.6133 719.861 42.8516C720.104 43.0938 720.297 43.3828 720.441 43.7188C720.59 44.0547 720.688 44.4258 720.734 44.832H719.65C719.615 44.5742 719.555 44.334 719.469 44.1113C719.383 43.8887 719.268 43.6934 719.123 43.5254C718.979 43.3574 718.801 43.2266 718.59 43.1328C718.383 43.0352 718.137 42.9863 717.852 42.9863C717.594 42.9863 717.365 43.0293 717.166 43.1152C716.971 43.1973 716.803 43.3105 716.662 43.4551C716.518 43.5996 716.396 43.7676 716.299 43.959C716.205 44.1504 716.129 44.3535 716.07 44.5684C716.012 44.7832 715.969 45.0039 715.941 45.2305C715.918 45.4531 715.906 45.6699 715.906 45.8809V47.082C715.906 47.293 715.918 47.5117 715.941 47.7383C715.969 47.9609 716.012 48.1797 716.07 48.3945C716.129 48.6133 716.205 48.8184 716.299 49.0098C716.393 49.2012 716.512 49.3691 716.656 49.5137C716.801 49.6621 716.971 49.7793 717.166 49.8652C717.361 49.9473 717.59 49.9883 717.852 49.9883C718.137 49.9883 718.383 49.9434 718.59 49.8535C718.801 49.7637 718.979 49.6367 719.123 49.4727C719.268 49.3125 719.383 49.123 719
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
47.9609 716.012 48.1797 716.07 48.3945C716.129 48.6133 716.205 48.8184 716.299 49.0098C716.393 49.2012 716.512 49.3691 716.656 49.5137C716.801 49.6621 716.971 49.7793 717.166 49.8652C717.361 49.9473 717.59 49.9883 717.852 49.9883C718.137 49.9883 718.383 49.9434 718.59 49.8535C718.801 49.7637 718.979 49.6367 719.123 49.4727C719.268 49.3125 719.383 49.123 719.469 48.9043C719.555 48.6816 719.615 48.4414 719.65 48.1836H720.734ZM727.109 46.8066H723.547V49.8301H727.701V50.75H722.463V42.2188H727.648V43.1445H723.547V45.8867H727.109V46.8066ZM734.088 48.5938C734.088 48.332 734.027 48.1113 733.906 47.9316C733.789 47.752 733.637 47.5996 733.449 47.4746C733.262 47.3535 733.055 47.252 732.828 47.1699C732.605 47.0879 732.391 47.0137 732.184 46.9473C731.883 46.8496 731.576 46.7324 731.264 46.5957C730.955 46.4551 730.674 46.2871 730.42 46.0918C730.162 45.8926 729.951 45.6582 729.787 45.3887C729.627 45.1152 729.547 44.7949 729.547 44.4277C729.547 44.0605 729.627 43.7324 729.787 43.4434C729.951 43.1543 730.164 42.9102 730.426 42.7109C730.688 42.5117 730.984 42.3613 731.316 42.2598C731.648 42.1543 731.982 42.1016 732.318 42.1016C732.689 42.1016 733.047 42.1641 733.391 42.2891C733.734 42.4102 734.039 42.582 734.305 42.8047C734.57 43.0273 734.783 43.2969 734.943 43.6133C735.104 43.9297 735.188 44.2832 735.195 44.6738H734.082C734.051 44.4277 733.99 44.2051 733.9 44.0059C733.811 43.8027 733.691 43.6289 733.543 43.4844C733.395 43.3398 733.217 43.2285 733.01 43.1504C732.807 43.0684 732.576 43.0273 732.318 43.0273C732.111 43.0273 731.908 43.0566 731.709 43.1152C731.514 43.1738 731.34 43.2617 731.188 43.3789C731.031 43.4961 730.906 43.6406 730.812 43.8125C730.723 43.9844 730.678 44.1836 730.678 44.4102C730.682 44.6562 730.744 44.8652 730.865 45.0371C730.986 45.2051 731.141 45.3477 731.328 45.4648C731.512 45.582 731.711 45.6797 731.926 45.7578C732.145 45.8359 732.35 45.9043 732.541 45.9629C732.857 46.0605 733.174 46.1797 733.49 46.3203C733.807 46.457 734.096 46.6328 734.357 46.8477C734.615 47.0469 734.822 47.291 734.979 47.5801C735.139 47.8691 735.219 48.2031 735.219 48.582C735.219 48.9648 735.133 49.2988 734.961 49.584C734.793 49.8691 734.574 50.1055 734.305 50.293C734.035 50.4844 733.73 50.6289 733.391 50.7266C733.051 50.8203 732.711 50.8672 732.371 50.8672C731.965 50.8672 731.564 50.7988 731.17 50.6621C730.779 50.5254 730.439 50.3281 730.15 50.0703C729.893 49.8477 729.688 49.5879 729.535 49.291C729.387 48.9902 729.307 48.6562 729.295 48.2891H730.402C730.438 48.5547 730.51 48.791 730.619 48.998C730.729 49.2012 730.869 49.373 731.041 49.5137C731.213 49.6582 731.41 49.7676 731.633 49.8418C731.859 49.9121 732.105 49.9473 732.371 49.9473C732.582 49.9473 732.789 49.9219 732.992 49.8711C733.199 49.8164 733.383 49.7324 733.543 49.6191C733.703 49.5098 733.834 49.3711 733.936 49.2031C734.037 49.0312 734.088 48.8281 734.088 48.5938ZM741.295 48.5938C741.295 48.332 741.234 48.1113 741.113 47.9316C740.996 47.752 740.844 47.5996 740.656 47.4746C740.469 47.3535 740.262 47.252 740.035 47.1699C739.812 47.0879 739.598 47.0137 739.391 46.9473C739.09 46.8496 738.783 46.7324 738.471 46.5957C738.162 46.4551 737.881 46.2871 737.627 46.0918C737.369 45.8926 737.158 45.6582 736.994 45.3887C736.834 45.1152 736.754 44.7949 736.754 44.4277C736.754 44.0605 736.834 43.7324 736.994 43.4434C737.158 43.1543 737.371 42.9102 737.633 42.7109C737.895 42.5117 738.191 42.3613 738.523 42.2598C738.855 42.1543 739.189 42.1016 739.525 42.1016C739.896 42.1016 740.254 42.1641 740.598 42.2891C740.941 42.4102 741.246 42.582 741.512 42.8047C741.777 43.0273 741.99 43.2969 742.15 43.6133C742.311 43.9297 742.395 44.2832 742.402 44.6738H741.289C
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
7324 736.994 43.4434C737.158 43.1543 737.371 42.9102 737.633 42.7109C737.895 42.5117 738.191 42.3613 738.523 42.2598C738.855 42.1543 739.189 42.1016 739.525 42.1016C739.896 42.1016 740.254 42.1641 740.598 42.2891C740.941 42.4102 741.246 42.582 741.512 42.8047C741.777 43.0273 741.99 43.2969 742.15 43.6133C742.311 43.9297 742.395 44.2832 742.402 44.6738H741.289C741.258 44.4277 741.197 44.2051 741.107 44.0059C741.018 43.8027 740.898 43.6289 740.75 43.4844C740.602 43.3398 740.424 43.2285 740.217 43.1504C740.014 43.0684 739.783 43.0273 739.525 43.0273C739.318 43.0273 739.115 43.0566 738.916 43.1152C738.721 43.1738 738.547 43.2617 738.395 43.3789C738.238 43.4961 738.113 43.6406 738.02 43.8125C737.93 43.9844 737.885 44.1836 737.885 44.4102C737.889 44.6562 737.951 44.8652 738.072 45.0371C738.193 45.2051 738.348 45.3477 738.535 45.4648C738.719 45.582 738.918 45.6797 739.133 45.7578C739.352 45.8359 739.557 45.9043 739.748 45.9629C740.064 46.0605 740.381 46.1797 740.697 46.3203C741.014 46.457 741.303 46.6328 741.564 46.8477C741.822 47.0469 742.029 47.291 742.186 47.5801C742.346 47.8691 742.426 48.2031 742.426 48.582C742.426 48.9648 742.34 49.2988 742.168 49.584C742 49.8691 741.781 50.1055 741.512 50.293C741.242 50.4844 740.938 50.6289 740.598 50.7266C740.258 50.8203 739.918 50.8672 739.578 50.8672C739.172 50.8672 738.771 50.7988 738.377 50.6621C737.986 50.5254 737.646 50.3281 737.357 50.0703C737.1 49.8477 736.895 49.5879 736.742 49.291C736.594 48.9902 736.514 48.6562 736.502 48.2891H737.609C737.645 48.5547 737.717 48.791 737.826 48.998C737.936 49.2012 738.076 49.373 738.248 49.5137C738.42 49.6582 738.617 49.7676 738.84 49.8418C739.066 49.9121 739.312 49.9473 739.578 49.9473C739.789 49.9473 739.996 49.9219 740.199 49.8711C740.406 49.8164 740.59 49.7324 740.75 49.6191C740.91 49.5098 741.041 49.3711 741.143 49.2031C741.244 49.0312 741.295 48.8281 741.295 48.5938ZM756.477 50.75H750.887V49.9707L753.682 46.8652C753.932 46.5879 754.141 46.3418 754.309 46.127C754.477 45.9121 754.611 45.7129 754.713 45.5293C754.814 45.3496 754.887 45.1797 754.93 45.0195C754.973 44.8555 754.994 44.6875 754.994 44.5156C754.994 44.3047 754.959 44.1074 754.889 43.9238C754.822 43.7363 754.725 43.5742 754.596 43.4375C754.463 43.3008 754.303 43.1934 754.115 43.1152C753.932 43.0332 753.723 42.9922 753.488 42.9922C753.203 42.9922 752.955 43.0332 752.744 43.1152C752.537 43.1973 752.365 43.3125 752.229 43.4609C752.088 43.6133 751.982 43.7969 751.912 44.0117C751.846 44.2266 751.812 44.4668 751.812 44.7324H750.723C750.723 44.373 750.785 44.0352 750.91 43.7188C751.035 43.3984 751.217 43.1191 751.455 42.8809C751.689 42.6426 751.977 42.4531 752.316 42.3125C752.66 42.1719 753.051 42.1016 753.488 42.1016C753.891 42.1016 754.252 42.1621 754.572 42.2832C754.896 42.4004 755.17 42.5645 755.393 42.7754C755.615 42.9863 755.785 43.2363 755.902 43.5254C756.023 43.8145 756.084 44.1289 756.084 44.4688C756.084 44.7227 756.041 44.9746 755.955 45.2246C755.869 45.4707 755.754 45.7148 755.609 45.957C755.461 46.1992 755.289 46.4395 755.094 46.6777C754.902 46.9121 754.699 47.1465 754.484 47.3809L752.193 49.8652H756.477V50.75Z" fill="black"></path> <rect x="430" y="68.5" width="190" height="25.5" rx="4" fill="#E6E6E6"></rect> <path d="M494.771 82.8281V86.25H493.688V77.7188H496.453C496.836 77.7266 497.197 77.7871 497.537 77.9004C497.881 78.0137 498.182 78.1777 498.439 78.3926C498.697 78.6074 498.9 78.873 499.049 79.1895C499.201 79.5059 499.277 79.8691 499.277 80.2793C499.277 80.6895 499.201 81.0527 499.049 81.3691C498.9 81.6816 498.697 81.9453 498.439 82.1602C498.182 82.375 497.881 82.5391 497.537 82.6523C497.197 82.7656 496.836 82.8242 496.453 82.8281H494.771ZM494.
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
497.537 77.9004C497.881 78.0137 498.182 78.1777 498.439 78.3926C498.697 78.6074 498.9 78.873 499.049 79.1895C499.201 79.5059 499.277 79.8691 499.277 80.2793C499.277 80.6895 499.201 81.0527 499.049 81.3691C498.9 81.6816 498.697 81.9453 498.439 82.1602C498.182 82.375 497.881 82.5391 497.537 82.6523C497.197 82.7656 496.836 82.8242 496.453 82.8281H494.771ZM494.771 81.9375H496.453C496.703 81.9336 496.934 81.8945 497.145 81.8203C497.355 81.7422 497.539 81.6328 497.695 81.4922C497.852 81.3516 497.973 81.1816 498.059 80.9824C498.148 80.7793 498.193 80.5488 498.193 80.291C498.193 80.0332 498.148 79.8008 498.059 79.5938C497.973 79.3867 497.854 79.2109 497.701 79.0664C497.545 78.9219 497.359 78.8105 497.145 78.7324C496.934 78.6543 496.703 78.6133 496.453 78.6094H494.771V81.9375ZM503.619 82.7695H501.914V86.25H500.836V77.7188H503.338C503.736 77.7266 504.111 77.7832 504.463 77.8887C504.814 77.9941 505.123 78.1523 505.389 78.3633C505.65 78.5742 505.855 78.8398 506.004 79.1602C506.156 79.4766 506.232 79.8496 506.232 80.2793C506.232 80.5566 506.191 80.8105 506.109 81.041C506.031 81.2715 505.922 81.4805 505.781 81.668C505.641 81.8555 505.473 82.0215 505.277 82.166C505.082 82.3105 504.867 82.4336 504.633 82.5352L506.443 86.1797L506.438 86.25H505.295L503.619 82.7695ZM501.914 81.8789H503.367C503.609 81.875 503.838 81.8379 504.053 81.7676C504.268 81.6934 504.457 81.5879 504.621 81.4512C504.781 81.3145 504.908 81.1484 505.002 80.9531C505.096 80.7539 505.143 80.5254 505.143 80.2676C505.143 79.9941 505.098 79.7559 505.008 79.5527C504.918 79.3457 504.793 79.1719 504.633 79.0312C504.473 78.8945 504.281 78.791 504.059 78.7207C503.84 78.6504 503.6 78.6133 503.338 78.6094H501.914V81.8789ZM513.551 82.4766C513.547 82.7812 513.52 83.0898 513.469 83.4023C513.422 83.7109 513.348 84.0098 513.246 84.2988C513.145 84.5879 513.014 84.8574 512.854 85.1074C512.697 85.3574 512.51 85.5762 512.291 85.7637C512.072 85.9512 511.82 86.0996 511.535 86.209C511.254 86.3145 510.938 86.3672 510.586 86.3672C510.234 86.3672 509.916 86.3145 509.631 86.209C509.35 86.0996 509.1 85.9512 508.881 85.7637C508.662 85.5762 508.473 85.3574 508.312 85.1074C508.152 84.8535 508.021 84.582 507.92 84.293C507.814 84.0039 507.736 83.7051 507.686 83.3965C507.635 83.0879 507.607 82.7812 507.604 82.4766V81.5039C507.607 81.1992 507.633 80.8926 507.68 80.584C507.73 80.2715 507.809 79.9707 507.914 79.6816C508.016 79.3926 508.145 79.123 508.301 78.873C508.461 78.6191 508.65 78.3965 508.869 78.2051C509.088 78.0176 509.338 77.8711 509.619 77.7656C509.904 77.6562 510.223 77.6016 510.574 77.6016C510.926 77.6016 511.244 77.6562 511.529 77.7656C511.814 77.8711 512.066 78.0176 512.285 78.2051C512.504 78.3926 512.691 78.6133 512.848 78.8672C513.008 79.1172 513.141 79.3867 513.246 79.6758C513.348 79.9648 513.422 80.2656 513.469 80.5781C513.52 80.8906 513.547 81.1992 513.551 81.5039V82.4766ZM512.479 81.4922C512.475 81.2891 512.461 81.0781 512.438 80.8594C512.414 80.6367 512.375 80.416 512.32 80.1973C512.262 79.9824 512.186 79.7773 512.092 79.582C511.998 79.3828 511.881 79.207 511.74 79.0547C511.6 78.9062 511.434 78.7891 511.242 78.7031C511.051 78.6133 510.828 78.5684 510.574 78.5684C510.324 78.5684 510.104 78.6133 509.912 78.7031C509.721 78.793 509.555 78.9121 509.414 79.0605C509.273 79.2129 509.156 79.3887 509.062 79.5879C508.969 79.7832 508.895 79.9883 508.84 80.2031C508.781 80.4219 508.738 80.6426 508.711 80.8652C508.688 81.084 508.674 81.293 508.67 81.4922V82.4766C508.674 82.6758 508.688 82.8867 508.711 83.1094C508.738 83.332 508.781 83.5508 508.84 83.7656C508.898 83.9844 508.975 84.1934 509.068 84.3926C509.162 84.5918 509.279 84.7656 509.42 84.
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
156 79.3887 509.062 79.5879C508.969 79.7832 508.895 79.9883 508.84 80.2031C508.781 80.4219 508.738 80.6426 508.711 80.8652C508.688 81.084 508.674 81.293 508.67 81.4922V82.4766C508.674 82.6758 508.688 82.8867 508.711 83.1094C508.738 83.332 508.781 83.5508 508.84 83.7656C508.898 83.9844 508.975 84.1934 509.068 84.3926C509.162 84.5918 509.279 84.7656 509.42 84.9141C509.561 85.0664 509.727 85.1875 509.918 85.2773C510.109 85.3672 510.332 85.4121 510.586 85.4121C510.84 85.4121 511.062 85.3672 511.254 85.2773C511.449 85.1875 511.617 85.0664 511.758 84.9141C511.895 84.7656 512.008 84.5938 512.098 84.3984C512.191 84.1992 512.268 83.9902 512.326 83.7715C512.381 83.5566 512.418 83.3379 512.438 83.1152C512.461 82.8926 512.475 82.6797 512.479 82.4766V81.4922ZM520.734 83.6836C520.684 84.0781 520.582 84.4414 520.43 84.7734C520.277 85.1016 520.08 85.3828 519.838 85.6172C519.592 85.8555 519.301 86.041 518.965 86.1738C518.633 86.3027 518.262 86.3672 517.852 86.3672C517.5 86.3672 517.18 86.3184 516.891 86.2207C516.605 86.1191 516.352 85.9805 516.129 85.8047C515.902 85.6289 515.707 85.4219 515.543 85.1836C515.383 84.9453 515.25 84.6855 515.145 84.4043C515.035 84.123 514.953 83.8281 514.898 83.5195C514.848 83.2109 514.82 82.8984 514.816 82.582V81.3926C514.82 81.0762 514.848 80.7637 514.898 80.4551C514.953 80.1465 515.035 79.8516 515.145 79.5703C515.25 79.2891 515.383 79.0293 515.543 78.791C515.707 78.5488 515.902 78.3398 516.129 78.1641C516.352 77.9883 516.605 77.8516 516.891 77.7539C517.176 77.6523 517.496 77.6016 517.852 77.6016C518.277 77.6016 518.658 77.668 518.994 77.8008C519.33 77.9297 519.619 78.1133 519.861 78.3516C520.104 78.5938 520.297 78.8828 520.441 79.2188C520.59 79.5547 520.688 79.9258 520.734 80.332H519.65C519.615 80.0742 519.555 79.834 519.469 79.6113C519.383 79.3887 519.268 79.1934 519.123 79.0254C518.979 78.8574 518.801 78.7266 518.59 78.6328C518.383 78.5352 518.137 78.4863 517.852 78.4863C517.594 78.4863 517.365 78.5293 517.166 78.6152C516.971 78.6973 516.803 78.8105 516.662 78.9551C516.518 79.0996 516.396 79.2676 516.299 79.459C516.205 79.6504 516.129 79.8535 516.07 80.0684C516.012 80.2832 515.969 80.5039 515.941 80.7305C515.918 80.9531 515.906 81.1699 515.906 81.3809V82.582C515.906 82.793 515.918 83.0117 515.941 83.2383C515.969 83.4609 516.012 83.6797 516.07 83.8945C516.129 84.1133 516.205 84.3184 516.299 84.5098C516.393 84.7012 516.512 84.8691 516.656 85.0137C516.801 85.1621 516.971 85.2793 517.166 85.3652C517.361 85.4473 517.59 85.4883 517.852 85.4883C518.137 85.4883 518.383 85.4434 518.59 85.3535C518.801 85.2637 518.979 85.1367 519.123 84.9727C519.268 84.8125 519.383 84.623 519.469 84.4043C519.555 84.1816 519.615 83.9414 519.65 83.6836H520.734ZM527.109 82.3066H523.547V85.3301H527.701V86.25H522.463V77.7188H527.648V78.6445H523.547V81.3867H527.109V82.3066ZM534.088 84.0938C534.088 83.832 534.027 83.6113 533.906 83.4316C533.789 83.252 533.637 83.0996 533.449 82.9746C533.262 82.8535 533.055 82.752 532.828 82.6699C532.605 82.5879 532.391 82.5137 532.184 82.4473C531.883 82.3496 531.576 82.2324 531.264 82.0957C530.955 81.9551 530.674 81.7871 530.42 81.5918C530.162 81.3926 529.951 81.1582 529.787 80.8887C529.627 80.6152 529.547 80.2949 529.547 79.9277C529.547 79.5605 529.627 79.2324 529.787 78.9434C529.951 78.6543 530.164 78.4102 530.426 78.2109C530.688 78.0117 530.984 77.8613 531.316 77.7598C531.648 77.6543 531.982 77.6016 532.318 77.6016C532.689 77.6016 533.047 77.6641 533.391 77.7891C533.734 77.9102 534.039 78.082 534.305 78.3047C534.57 78.5273 534.783 78.7969 534.943 79.1133C535.104 79.4297 535.188 79.7832 535.195 80.1738H534.082C534.051 79.9277 533.99 79.7051
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
6543 530.164 78.4102 530.426 78.2109C530.688 78.0117 530.984 77.8613 531.316 77.7598C531.648 77.6543 531.982 77.6016 532.318 77.6016C532.689 77.6016 533.047 77.6641 533.391 77.7891C533.734 77.9102 534.039 78.082 534.305 78.3047C534.57 78.5273 534.783 78.7969 534.943 79.1133C535.104 79.4297 535.188 79.7832 535.195 80.1738H534.082C534.051 79.9277 533.99 79.7051 533.9 79.5059C533.811 79.3027 533.691 79.1289 533.543 78.9844C533.395 78.8398 533.217 78.7285 533.01 78.6504C532.807 78.5684 532.576 78.5273 532.318 78.5273C532.111 78.5273 531.908 78.5566 531.709 78.6152C531.514 78.6738 531.34 78.7617 531.188 78.8789C531.031 78.9961 530.906 79.1406 530.812 79.3125C530.723 79.4844 530.678 79.6836 530.678 79.9102C530.682 80.1562 530.744 80.3652 530.865 80.5371C530.986 80.7051 531.141 80.8477 531.328 80.9648C531.512 81.082 531.711 81.1797 531.926 81.2578C532.145 81.3359 532.35 81.4043 532.541 81.4629C532.857 81.5605 533.174 81.6797 533.49 81.8203C533.807 81.957 534.096 82.1328 534.357 82.3477C534.615 82.5469 534.822 82.791 534.979 83.0801C535.139 83.3691 535.219 83.7031 535.219 84.082C535.219 84.4648 535.133 84.7988 534.961 85.084C534.793 85.3691 534.574 85.6055 534.305 85.793C534.035 85.9844 533.73 86.1289 533.391 86.2266C533.051 86.3203 532.711 86.3672 532.371 86.3672C531.965 86.3672 531.564 86.2988 531.17 86.1621C530.779 86.0254 530.439 85.8281 530.15 85.5703C529.893 85.3477 529.688 85.0879 529.535 84.791C529.387 84.4902 529.307 84.1562 529.295 83.7891H530.402C530.438 84.0547 530.51 84.291 530.619 84.498C530.729 84.7012 530.869 84.873 531.041 85.0137C531.213 85.1582 531.41 85.2676 531.633 85.3418C531.859 85.4121 532.105 85.4473 532.371 85.4473C532.582 85.4473 532.789 85.4219 532.992 85.3711C533.199 85.3164 533.383 85.2324 533.543 85.1191C533.703 85.0098 533.834 84.8711 533.936 84.7031C534.037 84.5312 534.088 84.3281 534.088 84.0938ZM541.295 84.0938C541.295 83.832 541.234 83.6113 541.113 83.4316C540.996 83.252 540.844 83.0996 540.656 82.9746C540.469 82.8535 540.262 82.752 540.035 82.6699C539.812 82.5879 539.598 82.5137 539.391 82.4473C539.09 82.3496 538.783 82.2324 538.471 82.0957C538.162 81.9551 537.881 81.7871 537.627 81.5918C537.369 81.3926 537.158 81.1582 536.994 80.8887C536.834 80.6152 536.754 80.2949 536.754 79.9277C536.754 79.5605 536.834 79.2324 536.994 78.9434C537.158 78.6543 537.371 78.4102 537.633 78.2109C537.895 78.0117 538.191 77.8613 538.523 77.7598C538.855 77.6543 539.189 77.6016 539.525 77.6016C539.896 77.6016 540.254 77.6641 540.598 77.7891C540.941 77.9102 541.246 78.082 541.512 78.3047C541.777 78.5273 541.99 78.7969 542.15 79.1133C542.311 79.4297 542.395 79.7832 542.402 80.1738H541.289C541.258 79.9277 541.197 79.7051 541.107 79.5059C541.018 79.3027 540.898 79.1289 540.75 78.9844C540.602 78.8398 540.424 78.7285 540.217 78.6504C540.014 78.5684 539.783 78.5273 539.525 78.5273C539.318 78.5273 539.115 78.5566 538.916 78.6152C538.721 78.6738 538.547 78.7617 538.395 78.8789C538.238 78.9961 538.113 79.1406 538.02 79.3125C537.93 79.4844 537.885 79.6836 537.885 79.9102C537.889 80.1562 537.951 80.3652 538.072 80.5371C538.193 80.7051 538.348 80.8477 538.535 80.9648C538.719 81.082 538.918 81.1797 539.133 81.2578C539.352 81.3359 539.557 81.4043 539.748 81.4629C540.064 81.5605 540.381 81.6797 540.697 81.8203C541.014 81.957 541.303 82.1328 541.564 82.3477C541.822 82.5469 542.029 82.791 542.186 83.0801C542.346 83.3691 542.426 83.7031 542.426 84.082C542.426 84.4648 542.34 84.7988 542.168 85.084C542 85.3691 541.781 85.6055 541.512 85.793C541.242 85.9844 540.938 86.1289 540.598 86.2266C540.258 86.3203 539.918 86.3672 539.578 86.3672C539.172 86.3672 538.771 86.2988 538.377 86.1621C537.986
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
541.303 82.1328 541.564 82.3477C541.822 82.5469 542.029 82.791 542.186 83.0801C542.346 83.3691 542.426 83.7031 542.426 84.082C542.426 84.4648 542.34 84.7988 542.168 85.084C542 85.3691 541.781 85.6055 541.512 85.793C541.242 85.9844 540.938 86.1289 540.598 86.2266C540.258 86.3203 539.918 86.3672 539.578 86.3672C539.172 86.3672 538.771 86.2988 538.377 86.1621C537.986 86.0254 537.646 85.8281 537.357 85.5703C537.1 85.3477 536.895 85.0879 536.742 84.791C536.594 84.4902 536.514 84.1562 536.502 83.7891H537.609C537.645 84.0547 537.717 84.291 537.826 84.498C537.936 84.7012 538.076 84.873 538.248 85.0137C538.42 85.1582 538.617 85.2676 538.84 85.3418C539.066 85.4121 539.312 85.4473 539.578 85.4473C539.789 85.4473 539.996 85.4219 540.199 85.3711C540.406 85.3164 540.59 85.2324 540.75 85.1191C540.91 85.0098 541.041 84.8711 541.143 84.7031C541.244 84.5312 541.295 84.3281 541.295 84.0938ZM552.51 81.4629H553.283C553.557 81.4629 553.797 81.4258 554.004 81.3516C554.215 81.2773 554.393 81.1758 554.537 81.0469C554.678 80.918 554.785 80.7637 554.859 80.584C554.934 80.4043 554.971 80.207 554.971 79.9922C554.971 79.7383 554.938 79.5176 554.871 79.3301C554.805 79.1387 554.707 78.9805 554.578 78.8555C554.453 78.7344 554.297 78.6445 554.109 78.5859C553.926 78.5234 553.715 78.4922 553.477 78.4922C553.246 78.4922 553.035 78.5273 552.844 78.5977C552.656 78.6641 552.496 78.7617 552.363 78.8906C552.227 79.0195 552.121 79.1738 552.047 79.3535C551.973 79.5332 551.936 79.7344 551.936 79.957H550.846C550.846 79.6328 550.908 79.3281 551.033 79.043C551.162 78.7539 551.342 78.502 551.572 78.2871C551.803 78.0762 552.078 77.9102 552.398 77.7891C552.723 77.6641 553.082 77.6016 553.477 77.6016C553.859 77.6016 554.209 77.6543 554.525 77.7598C554.842 77.8613 555.113 78.0137 555.34 78.2168C555.566 78.4199 555.742 78.6719 555.867 78.9727C555.992 79.2734 556.055 79.6211 556.055 80.0156C556.055 80.1797 556.029 80.3496 555.979 80.5254C555.928 80.7012 555.85 80.8711 555.744 81.0352C555.639 81.2031 555.502 81.3613 555.334 81.5098C555.17 81.6543 554.973 81.7754 554.742 81.873C555.02 81.9629 555.25 82.0801 555.434 82.2246C555.621 82.3691 555.771 82.5312 555.885 82.7109C555.994 82.8906 556.07 83.0801 556.113 83.2793C556.16 83.4785 556.184 83.6758 556.184 83.8711C556.184 84.2695 556.115 84.623 555.979 84.9316C555.842 85.2402 555.652 85.5 555.41 85.7109C555.168 85.9258 554.881 86.0898 554.549 86.2031C554.221 86.3125 553.865 86.3672 553.482 86.3672C553.107 86.3672 552.754 86.3145 552.422 86.209C552.094 86.1035 551.809 85.9492 551.566 85.7461C551.324 85.543 551.131 85.2949 550.986 85.002C550.846 84.709 550.775 84.375 550.775 84H551.859C551.859 84.2227 551.896 84.4258 551.971 84.6094C552.049 84.793 552.158 84.9492 552.299 85.0781C552.439 85.207 552.609 85.3066 552.809 85.377C553.012 85.4473 553.236 85.4824 553.482 85.4824C553.729 85.4824 553.951 85.4512 554.15 85.3887C554.35 85.3223 554.52 85.2227 554.66 85.0898C554.801 84.957 554.908 84.793 554.982 84.5977C555.061 84.3984 555.1 84.1641 555.1 83.8945C555.1 83.6289 555.055 83.4004 554.965 83.209C554.879 83.0137 554.758 82.8516 554.602 82.7227C554.441 82.5938 554.248 82.498 554.021 82.4355C553.799 82.373 553.553 82.3418 553.283 82.3418H552.51V81.4629Z" fill="black"></path> <rect x="630" y="68.5" width="190" height="25.5" rx="4" fill="#E6E6E6"></rect> <path d="M694.771 82.8281V86.25H693.688V77.7188H696.453C696.836 77.7266 697.197 77.7871 697.537 77.9004C697.881 78.0137 698.182 78.1777 698.439 78.3926C698.697 78.6074 698.9 78.873 699.049 79.1895C699.201 79.5059 699.277 79.8691 699.277 80.2793C699.277 80.6895 699.201 81.0527 699.049 81.3691C698.9 81.6816 698.697 81.9453 698.439 82.1602C698.182 82.375 697.881 82
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
<path d="M694.771 82.8281V86.25H693.688V77.7188H696.453C696.836 77.7266 697.197 77.7871 697.537 77.9004C697.881 78.0137 698.182 78.1777 698.439 78.3926C698.697 78.6074 698.9 78.873 699.049 79.1895C699.201 79.5059 699.277 79.8691 699.277 80.2793C699.277 80.6895 699.201 81.0527 699.049 81.3691C698.9 81.6816 698.697 81.9453 698.439 82.1602C698.182 82.375 697.881 82.5391 697.537 82.6523C697.197 82.7656 696.836 82.8242 696.453 82.8281H694.771ZM694.771 81.9375H696.453C696.703 81.9336 696.934 81.8945 697.145 81.8203C697.355 81.7422 697.539 81.6328 697.695 81.4922C697.852 81.3516 697.973 81.1816 698.059 80.9824C698.148 80.7793 698.193 80.5488 698.193 80.291C698.193 80.0332 698.148 79.8008 698.059 79.5938C697.973 79.3867 697.854 79.2109 697.701 79.0664C697.545 78.9219 697.359 78.8105 697.145 78.7324C696.934 78.6543 696.703 78.6133 696.453 78.6094H694.771V81.9375ZM703.619 82.7695H701.914V86.25H700.836V77.7188H703.338C703.736 77.7266 704.111 77.7832 704.463 77.8887C704.814 77.9941 705.123 78.1523 705.389 78.3633C705.65 78.5742 705.855 78.8398 706.004 79.1602C706.156 79.4766 706.232 79.8496 706.232 80.2793C706.232 80.5566 706.191 80.8105 706.109 81.041C706.031 81.2715 705.922 81.4805 705.781 81.668C705.641 81.8555 705.473 82.0215 705.277 82.166C705.082 82.3105 704.867 82.4336 704.633 82.5352L706.443 86.1797L706.438 86.25H705.295L703.619 82.7695ZM701.914 81.8789H703.367C703.609 81.875 703.838 81.8379 704.053 81.7676C704.268 81.6934 704.457 81.5879 704.621 81.4512C704.781 81.3145 704.908 81.1484 705.002 80.9531C705.096 80.7539 705.143 80.5254 705.143 80.2676C705.143 79.9941 705.098 79.7559 705.008 79.5527C704.918 79.3457 704.793 79.1719 704.633 79.0312C704.473 78.8945 704.281 78.791 704.059 78.7207C703.84 78.6504 703.6 78.6133 703.338 78.6094H701.914V81.8789ZM713.551 82.4766C713.547 82.7812 713.52 83.0898 713.469 83.4023C713.422 83.7109 713.348 84.0098 713.246 84.2988C713.145 84.5879 713.014 84.8574 712.854 85.1074C712.697 85.3574 712.51 85.5762 712.291 85.7637C712.072 85.9512 711.82 86.0996 711.535 86.209C711.254 86.3145 710.938 86.3672 710.586 86.3672C710.234 86.3672 709.916 86.3145 709.631 86.209C709.35 86.0996 709.1 85.9512 708.881 85.7637C708.662 85.5762 708.473 85.3574 708.312 85.1074C708.152 84.8535 708.021 84.582 707.92 84.293C707.814 84.0039 707.736 83.7051 707.686 83.3965C707.635 83.0879 707.607 82.7812 707.604 82.4766V81.5039C707.607 81.1992 707.633 80.8926 707.68 80.584C707.73 80.2715 707.809 79.9707 707.914 79.6816C708.016 79.3926 708.145 79.123 708.301 78.873C708.461 78.6191 708.65 78.3965 708.869 78.2051C709.088 78.0176 709.338 77.8711 709.619 77.7656C709.904 77.6562 710.223 77.6016 710.574 77.6016C710.926 77.6016 711.244 77.6562 711.529 77.7656C711.814 77.8711 712.066 78.0176 712.285 78.2051C712.504 78.3926 712.691 78.6133 712.848 78.8672C713.008 79.1172 713.141 79.3867 713.246 79.6758C713.348 79.9648 713.422 80.2656 713.469 80.5781C713.52 80.8906 713.547 81.1992 713.551 81.5039V82.4766ZM712.479 81.4922C712.475 81.2891 712.461 81.0781 712.438 80.8594C712.414 80.6367 712.375 80.416 712.32 80.1973C712.262 79.9824 712.186 79.7773 712.092 79.582C711.998 79.3828 711.881 79.207 711.74 79.0547C711.6 78.9062 711.434 78.7891 711.242 78.7031C711.051 78.6133 710.828 78.5684 710.574 78.5684C710.324 78.5684 710.104 78.6133 709.912 78.7031C709.721 78.793 709.555 78.9121 709.414 79.0605C709.273 79.2129 709.156 79.3887 709.062 79.5879C708.969 79.7832 708.895 79.9883 708.84 80.2031C708.781 80.4219 708.738 80.6426 708.711 80.8652C708.688 81.084 708.674 81.293 708.67 81.4922V82.4766C708.674 82.6758 708.688 82.8867 708.711 83.1094C708.738 83.332 708.781 83.5508 708.84 83.7656C708.898
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
709.912 78.7031C709.721 78.793 709.555 78.9121 709.414 79.0605C709.273 79.2129 709.156 79.3887 709.062 79.5879C708.969 79.7832 708.895 79.9883 708.84 80.2031C708.781 80.4219 708.738 80.6426 708.711 80.8652C708.688 81.084 708.674 81.293 708.67 81.4922V82.4766C708.674 82.6758 708.688 82.8867 708.711 83.1094C708.738 83.332 708.781 83.5508 708.84 83.7656C708.898 83.9844 708.975 84.1934 709.068 84.3926C709.162 84.5918 709.279 84.7656 709.42 84.9141C709.561 85.0664 709.727 85.1875 709.918 85.2773C710.109 85.3672 710.332 85.4121 710.586 85.4121C710.84 85.4121 711.062 85.3672 711.254 85.2773C711.449 85.1875 711.617 85.0664 711.758 84.9141C711.895 84.7656 712.008 84.5938 712.098 84.3984C712.191 84.1992 712.268 83.9902 712.326 83.7715C712.381 83.5566 712.418 83.3379 712.438 83.1152C712.461 82.8926 712.475 82.6797 712.479 82.4766V81.4922ZM720.734 83.6836C720.684 84.0781 720.582 84.4414 720.43 84.7734C720.277 85.1016 720.08 85.3828 719.838 85.6172C719.592 85.8555 719.301 86.041 718.965 86.1738C718.633 86.3027 718.262 86.3672 717.852 86.3672C717.5 86.3672 717.18 86.3184 716.891 86.2207C716.605 86.1191 716.352 85.9805 716.129 85.8047C715.902 85.6289 715.707 85.4219 715.543 85.1836C715.383 84.9453 715.25 84.6855 715.145 84.4043C715.035 84.123 714.953 83.8281 714.898 83.5195C714.848 83.2109 714.82 82.8984 714.816 82.582V81.3926C714.82 81.0762 714.848 80.7637 714.898 80.4551C714.953 80.1465 715.035 79.8516 715.145 79.5703C715.25 79.2891 715.383 79.0293 715.543 78.791C715.707 78.5488 715.902 78.3398 716.129 78.1641C716.352 77.9883 716.605 77.8516 716.891 77.7539C717.176 77.6523 717.496 77.6016 717.852 77.6016C718.277 77.6016 718.658 77.668 718.994 77.8008C719.33 77.9297 719.619 78.1133 719.861 78.3516C720.104 78.5938 720.297 78.8828 720.441 79.2188C720.59 79.5547 720.688 79.9258 720.734 80.332H719.65C719.615 80.0742 719.555 79.834 719.469 79.6113C719.383 79.3887 719.268 79.1934 719.123 79.0254C718.979 78.8574 718.801 78.7266 718.59 78.6328C718.383 78.5352 718.137 78.4863 717.852 78.4863C717.594 78.4863 717.365 78.5293 717.166 78.6152C716.971 78.6973 716.803 78.8105 716.662 78.9551C716.518 79.0996 716.396 79.2676 716.299 79.459C716.205 79.6504 716.129 79.8535 716.07 80.0684C716.012 80.2832 715.969 80.5039 715.941 80.7305C715.918 80.9531 715.906 81.1699 715.906 81.3809V82.582C715.906 82.793 715.918 83.0117 715.941 83.2383C715.969 83.4609 716.012 83.6797 716.07 83.8945C716.129 84.1133 716.205 84.3184 716.299 84.5098C716.393 84.7012 716.512 84.8691 716.656 85.0137C716.801 85.1621 716.971 85.2793 717.166 85.3652C717.361 85.4473 717.59 85.4883 717.852 85.4883C718.137 85.4883 718.383 85.4434 718.59 85.3535C718.801 85.2637 718.979 85.1367 719.123 84.9727C719.268 84.8125 719.383 84.623 719.469 84.4043C719.555 84.1816 719.615 83.9414 719.65 83.6836H720.734ZM727.109 82.3066H723.547V85.3301H727.701V86.25H722.463V77.7188H727.648V78.6445H723.547V81.3867H727.109V82.3066ZM734.088 84.0938C734.088 83.832 734.027 83.6113 733.906 83.4316C733.789 83.252 733.637 83.0996 733.449 82.9746C733.262 82.8535 733.055 82.752 732.828 82.6699C732.605 82.5879 732.391 82.5137 732.184 82.4473C731.883 82.3496 731.576 82.2324 731.264 82.0957C730.955 81.9551 730.674 81.7871 730.42 81.5918C730.162 81.3926 729.951 81.1582 729.787 80.8887C729.627 80.6152 729.547 80.2949 729.547 79.9277C729.547 79.5605 729.627 79.2324 729.787 78.9434C729.951 78.6543 730.164 78.4102 730.426 78.2109C730.688 78.0117 730.984 77.8613 731.316 77.7598C731.648 77.6543 731.982 77.6016 732.318 77.6016C732.689 77.6016 733.047 77.6641 733.391 77.7891C733.734 77.9102 734.039 78.082 734.305 78.3047C734.57 78.5273 734.783 78.7969 734.943 79.1133C735.
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
80.2949 729.547 79.9277C729.547 79.5605 729.627 79.2324 729.787 78.9434C729.951 78.6543 730.164 78.4102 730.426 78.2109C730.688 78.0117 730.984 77.8613 731.316 77.7598C731.648 77.6543 731.982 77.6016 732.318 77.6016C732.689 77.6016 733.047 77.6641 733.391 77.7891C733.734 77.9102 734.039 78.082 734.305 78.3047C734.57 78.5273 734.783 78.7969 734.943 79.1133C735.104 79.4297 735.188 79.7832 735.195 80.1738H734.082C734.051 79.9277 733.99 79.7051 733.9 79.5059C733.811 79.3027 733.691 79.1289 733.543 78.9844C733.395 78.8398 733.217 78.7285 733.01 78.6504C732.807 78.5684 732.576 78.5273 732.318 78.5273C732.111 78.5273 731.908 78.5566 731.709 78.6152C731.514 78.6738 731.34 78.7617 731.188 78.8789C731.031 78.9961 730.906 79.1406 730.812 79.3125C730.723 79.4844 730.678 79.6836 730.678 79.9102C730.682 80.1562 730.744 80.3652 730.865 80.5371C730.986 80.7051 731.141 80.8477 731.328 80.9648C731.512 81.082 731.711 81.1797 731.926 81.2578C732.145 81.3359 732.35 81.4043 732.541 81.4629C732.857 81.5605 733.174 81.6797 733.49 81.8203C733.807 81.957 734.096 82.1328 734.357 82.3477C734.615 82.5469 734.822 82.791 734.979 83.0801C735.139 83.3691 735.219 83.7031 735.219 84.082C735.219 84.4648 735.133 84.7988 734.961 85.084C734.793 85.3691 734.574 85.6055 734.305 85.793C734.035 85.9844 733.73 86.1289 733.391 86.2266C733.051 86.3203 732.711 86.3672 732.371 86.3672C731.965 86.3672 731.564 86.2988 731.17 86.1621C730.779 86.0254 730.439 85.8281 730.15 85.5703C729.893 85.3477 729.688 85.0879 729.535 84.791C729.387 84.4902 729.307 84.1562 729.295 83.7891H730.402C730.438 84.0547 730.51 84.291 730.619 84.498C730.729 84.7012 730.869 84.873 731.041 85.0137C731.213 85.1582 731.41 85.2676 731.633 85.3418C731.859 85.4121 732.105 85.4473 732.371 85.4473C732.582 85.4473 732.789 85.4219 732.992 85.3711C733.199 85.3164 733.383 85.2324 733.543 85.1191C733.703 85.0098 733.834 84.8711 733.936 84.7031C734.037 84.5312 734.088 84.3281 734.088 84.0938ZM741.295 84.0938C741.295 83.832 741.234 83.6113 741.113 83.4316C740.996 83.252 740.844 83.0996 740.656 82.9746C740.469 82.8535 740.262 82.752 740.035 82.6699C739.812 82.5879 739.598 82.5137 739.391 82.4473C739.09 82.3496 738.783 82.2324 738.471 82.0957C738.162 81.9551 737.881 81.7871 737.627 81.5918C737.369 81.3926 737.158 81.1582 736.994 80.8887C736.834 80.6152 736.754 80.2949 736.754 79.9277C736.754 79.5605 736.834 79.2324 736.994 78.9434C737.158 78.6543 737.371 78.4102 737.633 78.2109C737.895 78.0117 738.191 77.8613 738.523 77.7598C738.855 77.6543 739.189 77.6016 739.525 77.6016C739.896 77.6016 740.254 77.6641 740.598 77.7891C740.941 77.9102 741.246 78.082 741.512 78.3047C741.777 78.5273 741.99 78.7969 742.15 79.1133C742.311 79.4297 742.395 79.7832 742.402 80.1738H741.289C741.258 79.9277 741.197 79.7051 741.107 79.5059C741.018 79.3027 740.898 79.1289 740.75 78.9844C740.602 78.8398 740.424 78.7285 740.217 78.6504C740.014 78.5684 739.783 78.5273 739.525 78.5273C739.318 78.5273 739.115 78.5566 738.916 78.6152C738.721 78.6738 738.547 78.7617 738.395 78.8789C738.238 78.9961 738.113 79.1406 738.02 79.3125C737.93 79.4844 737.885 79.6836 737.885 79.9102C737.889 80.1562 737.951 80.3652 738.072 80.5371C738.193 80.7051 738.348 80.8477 738.535 80.9648C738.719 81.082 738.918 81.1797 739.133 81.2578C739.352 81.3359 739.557 81.4043 739.748 81.4629C740.064 81.5605 740.381 81.6797 740.697 81.8203C741.014 81.957 741.303 82.1328 741.564 82.3477C741.822 82.5469 742.029 82.791 742.186 83.0801C742.346 83.3691 742.426 83.7031 742.426 84.082C742.426 84.4648 742.34 84.7988 742.168 85.084C742 85.3691 741.781 85.6055 741.512 85.793C741.242 85.9844 740.938 86.1289 740.598 86.2266C740.258 86.3203 739
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
4043 739.748 81.4629C740.064 81.5605 740.381 81.6797 740.697 81.8203C741.014 81.957 741.303 82.1328 741.564 82.3477C741.822 82.5469 742.029 82.791 742.186 83.0801C742.346 83.3691 742.426 83.7031 742.426 84.082C742.426 84.4648 742.34 84.7988 742.168 85.084C742 85.3691 741.781 85.6055 741.512 85.793C741.242 85.9844 740.938 86.1289 740.598 86.2266C740.258 86.3203 739.918 86.3672 739.578 86.3672C739.172 86.3672 738.771 86.2988 738.377 86.1621C737.986 86.0254 737.646 85.8281 737.357 85.5703C737.1 85.3477 736.895 85.0879 736.742 84.791C736.594 84.4902 736.514 84.1562 736.502 83.7891H737.609C737.645 84.0547 737.717 84.291 737.826 84.498C737.936 84.7012 738.076 84.873 738.248 85.0137C738.42 85.1582 738.617 85.2676 738.84 85.3418C739.066 85.4121 739.312 85.4473 739.578 85.4473C739.789 85.4473 739.996 85.4219 740.199 85.3711C740.406 85.3164 740.59 85.2324 740.75 85.1191C740.91 85.0098 741.041 84.8711 741.143 84.7031C741.244 84.5312 741.295 84.3281 741.295 84.0938ZM755.639 83.3848H756.828V84.2695H755.639V86.25H754.555V84.2695H750.664V83.6309L754.484 77.7188H755.639V83.3848ZM751.865 83.3848H754.555V79.1602L754.379 79.4883L751.865 83.3848Z" fill="black"></path> <rect x="420.5" y="114.5" width="409" height="103" rx="7.5" fill="#D1D1D1"></rect> <rect x="420.5" y="114.5" width="409" height="103" rx="7.5" stroke="#CACACA"></rect> <path d="M435.454 131.861C435.412 132.19 435.327 132.493 435.2 132.77C435.073 133.043 434.909 133.277 434.707 133.473C434.502 133.671 434.259 133.826 433.979 133.937C433.703 134.044 433.394 134.098 433.052 134.098C432.759 134.098 432.492 134.057 432.251 133.976C432.013 133.891 431.802 133.775 431.616 133.629C431.427 133.482 431.265 133.31 431.128 133.111C430.994 132.913 430.884 132.696 430.796 132.462C430.705 132.228 430.636 131.982 430.591 131.725C430.549 131.467 430.526 131.207 430.522 130.943V129.952C430.526 129.688 430.549 129.428 430.591 129.171C430.636 128.914 430.705 128.668 430.796 128.434C430.884 128.199 430.994 127.983 431.128 127.784C431.265 127.582 431.427 127.408 431.616 127.262C431.802 127.115 432.013 127.001 432.251 126.92C432.489 126.835 432.756 126.793 433.052 126.793C433.407 126.793 433.724 126.848 434.004 126.959C434.284 127.066 434.525 127.219 434.727 127.418C434.928 127.62 435.09 127.861 435.21 128.141C435.334 128.421 435.415 128.73 435.454 129.068H434.551C434.521 128.854 434.471 128.653 434.399 128.468C434.328 128.282 434.232 128.119 434.111 127.979C433.991 127.84 433.843 127.73 433.667 127.652C433.494 127.571 433.289 127.53 433.052 127.53C432.837 127.53 432.646 127.566 432.48 127.638C432.318 127.706 432.178 127.8 432.061 127.921C431.94 128.041 431.839 128.181 431.758 128.341C431.68 128.5 431.616 128.67 431.567 128.849C431.519 129.028 431.483 129.212 431.46 129.4C431.44 129.586 431.431 129.767 431.431 129.942V130.943C431.431 131.119 431.44 131.301 431.46 131.49C431.483 131.676 431.519 131.858 431.567 132.037C431.616 132.219 431.68 132.39 431.758 132.55C431.836 132.709 431.935 132.849 432.056 132.97C432.176 133.093 432.318 133.191 432.48 133.263C432.643 133.331 432.834 133.365 433.052 133.365C433.289 133.365 433.494 133.328 433.667 133.253C433.843 133.178 433.991 133.072 434.111 132.936C434.232 132.802 434.328 132.644 434.399 132.462C434.471 132.276 434.521 132.076 434.551 131.861H435.454ZM441.479 130.855C441.476 131.109 441.453 131.367 441.411 131.627C441.372 131.884 441.31 132.133 441.226 132.374C441.141 132.615 441.032 132.84 440.898 133.048C440.768 133.256 440.612 133.438 440.43 133.595C440.247 133.751 440.037 133.875 439.8 133.966C439.565 134.054 439.302 134.098 439.009 134.098C438.716 134.098 438.451 134.054 438.213 133.966C437.979 133.875 437.77 133.751 437.588 133.595C437.406 133.438 437.248 133.256 437.114 133.048C436.981 132.836 436.872 132.61 436.787 132.369C436.699 132.128 436.634 131.879 436.592 131.622C436.549 131.365 436.527 131.109 436.523 130.855V130.045C436.527 129.791 436.548 129.535 436.587 129.278C436.629 129.018 436
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
.565 134.054 439.302 134.098 439.009 134.098C438.716 134.098 438.451 134.054 438.213 133.966C437.979 133.875 437.77 133.751 437.588 133.595C437.406 133.438 437.248 133.256 437.114 133.048C436.981 132.836 436.872 132.61 436.787 132.369C436.699 132.128 436.634 131.879 436.592 131.622C436.549 131.365 436.527 131.109 436.523 130.855V130.045C436.527 129.791 436.548 129.535 436.587 129.278C436.629 129.018 436.694 128.767 436.782 128.526C436.867 128.285 436.974 128.061 437.104 127.853C437.238 127.641 437.396 127.455 437.578 127.296C437.76 127.14 437.969 127.018 438.203 126.93C438.441 126.839 438.706 126.793 438.999 126.793C439.292 126.793 439.557 126.839 439.795 126.93C440.033 127.018 440.243 127.14 440.425 127.296C440.607 127.452 440.763 127.636 440.894 127.848C441.027 128.056 441.138 128.281 441.226 128.521C441.31 128.762 441.372 129.013 441.411 129.273C441.453 129.534 441.476 129.791 441.479 130.045V130.855ZM440.586 130.035C440.583 129.866 440.571 129.69 440.552 129.508C440.532 129.322 440.5 129.138 440.454 128.956C440.405 128.777 440.342 128.606 440.264 128.443C440.186 128.277 440.088 128.131 439.971 128.004C439.854 127.88 439.715 127.783 439.556 127.711C439.396 127.636 439.211 127.599 438.999 127.599C438.791 127.599 438.607 127.636 438.447 127.711C438.288 127.786 438.149 127.885 438.032 128.009C437.915 128.136 437.817 128.282 437.739 128.448C437.661 128.611 437.599 128.782 437.554 128.961C437.505 129.143 437.469 129.327 437.446 129.513C437.427 129.695 437.415 129.869 437.412 130.035V130.855C437.415 131.021 437.427 131.197 437.446 131.383C437.469 131.568 437.505 131.751 437.554 131.93C437.603 132.112 437.666 132.286 437.744 132.452C437.822 132.618 437.92 132.763 438.037 132.887C438.154 133.014 438.293 133.115 438.452 133.189C438.612 133.264 438.797 133.302 439.009 133.302C439.22 133.302 439.406 133.264 439.565 133.189C439.728 133.115 439.868 133.014 439.985 132.887C440.099 132.763 440.194 132.62 440.269 132.457C440.347 132.291 440.41 132.117 440.459 131.935C440.505 131.756 440.535 131.573 440.552 131.388C440.571 131.202 440.583 131.025 440.586 130.855V130.035ZM443.853 126.891L445.01 130.445L446.26 126.891H447.383V134H446.504V131.163L446.577 128.194L445.264 132.022H444.746L443.54 128.297L443.613 131.163V134H442.734V126.891H443.853ZM449.854 131.148V134H448.95V126.891H451.255C451.574 126.897 451.875 126.948 452.158 127.042C452.445 127.136 452.695 127.273 452.91 127.452C453.125 127.631 453.294 127.853 453.418 128.116C453.545 128.38 453.608 128.683 453.608 129.024C453.608 129.366 453.545 129.669 453.418 129.933C453.294 130.193 453.125 130.413 452.91 130.592C452.695 130.771 452.445 130.908 452.158 131.002C451.875 131.096 451.574 131.145 451.255 131.148H449.854ZM449.854 130.406H451.255C451.463 130.403 451.655 130.37 451.831 130.309C452.007 130.243 452.16 130.152 452.29 130.035C452.42 129.918 452.521 129.776 452.593 129.61C452.668 129.441 452.705 129.249 452.705 129.034C452.705 128.819 452.668 128.626 452.593 128.453C452.521 128.281 452.422 128.134 452.295 128.014C452.165 127.893 452.01 127.8 451.831 127.735C451.655 127.67 451.463 127.636 451.255 127.633H449.854V130.406ZM459.336 126.891L459.346 131.705C459.346 132.037 459.287 132.348 459.17 132.638C459.053 132.927 458.892 133.18 458.687 133.395C458.481 133.613 458.237 133.785 457.954 133.912C457.671 134.036 457.36 134.098 457.021 134.098C456.676 134.098 456.362 134.036 456.079 133.912C455.796 133.788 455.553 133.618 455.352 133.399C455.15 133.185 454.992 132.932 454.878 132.643C454.764 132.35 454.705 132.037 454.702 131.705L454.712 126.891H455.571L455.591 131.705C455.594 131.917 455.627 132.12 455.688 132.315C455.754 132.511 455.846 132.683 455.967 132.833C456.084 132.983 456.23 133.103 456.406 133.194C456.585 133.285 456.79 133.331 457.021 133.331C457.253 133.331 457.456 133.287 457.632 133.199C457.808 133.108 457.956 132.986 458.076 132.833C458.193 132.683 458.283 132.511 458.345 132.315C458.407 132.12 458.441 131.917 458.447 131.705L458.462 126.891H459.336ZM465.674 127.662H463.477V134H462.598V127.662H460.4V126.891H465.674V127.662
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
683 455.967 132.833C456.084 132.983 456.23 133.103 456.406 133.194C456.585 133.285 456.79 133.331 457.021 133.331C457.253 133.331 457.456 133.287 457.632 133.199C457.808 133.108 457.956 132.986 458.076 132.833C458.193 132.683 458.283 132.511 458.345 132.315C458.407 132.12 458.441 131.917 458.447 131.705L458.462 126.891H459.336ZM465.674 127.662H463.477V134H462.598V127.662H460.4V126.891H465.674V127.662ZM470.796 130.714H467.827V133.233H471.289V134H466.924V126.891H471.245V127.662H467.827V129.947H470.796V130.714ZM483.359 126.891L483.369 131.705C483.369 132.037 483.311 132.348 483.193 132.638C483.076 132.927 482.915 133.18 482.71 133.395C482.505 133.613 482.261 133.785 481.978 133.912C481.694 134.036 481.383 134.098 481.045 134.098C480.7 134.098 480.386 134.036 480.103 133.912C479.819 133.788 479.577 133.618 479.375 133.399C479.173 133.185 479.015 132.932 478.901 132.643C478.787 132.35 478.729 132.037 478.726 131.705L478.735 126.891H479.595L479.614 131.705C479.618 131.917 479.65 132.12 479.712 132.315C479.777 132.511 479.87 132.683 479.99 132.833C480.107 132.983 480.254 133.103 480.43 133.194C480.609 133.285 480.814 133.331 481.045 133.331C481.276 133.331 481.479 133.287 481.655 133.199C481.831 133.108 481.979 132.986 482.1 132.833C482.217 132.683 482.306 132.511 482.368 132.315C482.43 132.12 482.464 131.917 482.471 131.705L482.485 126.891H483.359ZM489.355 134H488.438L485.679 128.688L485.664 134H484.751V126.891H485.669L488.428 132.193L488.442 126.891H489.355V134ZM490.908 126.891H495.205V127.677H493.501V133.219H495.205V134H490.908V133.219H492.573V127.677H490.908V126.891ZM501.709 127.662H499.512V134H498.633V127.662H496.436V126.891H501.709V127.662Z" fill="black"></path> <rect x="430" y="147" width="190" height="25.5" rx="4" fill="#E6E6E6"></rect> <path d="M494.771 161.328V164.75H493.688V156.219H496.453C496.836 156.227 497.197 156.287 497.537 156.4C497.881 156.514 498.182 156.678 498.439 156.893C498.697 157.107 498.9 157.373 499.049 157.689C499.201 158.006 499.277 158.369 499.277 158.779C499.277 159.189 499.201 159.553 499.049 159.869C498.9 160.182 498.697 160.445 498.439 160.66C498.182 160.875 497.881 161.039 497.537 161.152C497.197 161.266 496.836 161.324 496.453 161.328H494.771ZM494.771 160.438H496.453C496.703 160.434 496.934 160.395 497.145 160.32C497.355 160.242 497.539 160.133 497.695 159.992C497.852 159.852 497.973 159.682 498.059 159.482C498.148 159.279 498.193 159.049 498.193 158.791C498.193 158.533 498.148 158.301 498.059 158.094C497.973 157.887 497.854 157.711 497.701 157.566C497.545 157.422 497.359 157.311 497.145 157.232C496.934 157.154 496.703 157.113 496.453 157.109H494.771V160.438ZM503.619 161.27H501.914V164.75H500.836V156.219H503.338C503.736 156.227 504.111 156.283 504.463 156.389C504.814 156.494 505.123 156.652 505.389 156.863C505.65 157.074 505.855 157.34 506.004 157.66C506.156 157.977 506.232 158.35 506.232 158.779C506.232 159.057 506.191 159.311 506.109 159.541C506.031 159.771 505.922 159.98 505.781 160.168C505.641 160.355 505.473 160.521 505.277 160.666C505.082 160.811 504.867 160.934 504.633 161.035L506.443 164.68L506.438 164.75H505.295L503.619 161.27ZM501.914 160.379H503.367C503.609 160.375 503.838 160.338 504.053 160.268C504.268 160.193 504.457 160.088 504.621 159.951C504.781 159.814 504.908 159.648 505.002 159.453C505.096 159.254 505.143 159.025 505.143 158.768C505.143 158.494 505.098 158.256 505.008 158.053C504.918 157.846 504.793 157.672 504.633 157.531C504.473 157.395 504.281 157.291 504.059 157.221C503.84 157.15 503.6 157.113 503.338 157.109H501.914V160.379ZM513.551 160.977C513.547 161.281 513.52 161.59 513.469 161.902C513.422 162.211 513.348 162.51 513.246 162.799C513.145 163.088 513.014 163.357 512.854 163.607C512.697 163.857 512.51 164.076 512.291 164.264C512.072 164.451 511.82 164.6 511.535 164.709C511.254 164.814 510.938 164.867 510.586 164.867C510.234 164.867 509.916 164.814 509.631 164.709C509.35 164.6 509.1 164.451 508.881 164.264C508.662 164.076 508.473 163.857 508.312 163.607C508.152 163.354 508.021 163.082 507.92 162.793C507.814 162.504 507.736
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
513.145 163.088 513.014 163.357 512.854 163.607C512.697 163.857 512.51 164.076 512.291 164.264C512.072 164.451 511.82 164.6 511.535 164.709C511.254 164.814 510.938 164.867 510.586 164.867C510.234 164.867 509.916 164.814 509.631 164.709C509.35 164.6 509.1 164.451 508.881 164.264C508.662 164.076 508.473 163.857 508.312 163.607C508.152 163.354 508.021 163.082 507.92 162.793C507.814 162.504 507.736 162.205 507.686 161.896C507.635 161.588 507.607 161.281 507.604 160.977V160.004C507.607 159.699 507.633 159.393 507.68 159.084C507.73 158.771 507.809 158.471 507.914 158.182C508.016 157.893 508.145 157.623 508.301 157.373C508.461 157.119 508.65 156.896 508.869 156.705C509.088 156.518 509.338 156.371 509.619 156.266C509.904 156.156 510.223 156.102 510.574 156.102C510.926 156.102 511.244 156.156 511.529 156.266C511.814 156.371 512.066 156.518 512.285 156.705C512.504 156.893 512.691 157.113 512.848 157.367C513.008 157.617 513.141 157.887 513.246 158.176C513.348 158.465 513.422 158.766 513.469 159.078C513.52 159.391 513.547 159.699 513.551 160.004V160.977ZM512.479 159.992C512.475 159.789 512.461 159.578 512.438 159.359C512.414 159.137 512.375 158.916 512.32 158.697C512.262 158.482 512.186 158.277 512.092 158.082C511.998 157.883 511.881 157.707 511.74 157.555C511.6 157.406 511.434 157.289 511.242 157.203C511.051 157.113 510.828 157.068 510.574 157.068C510.324 157.068 510.104 157.113 509.912 157.203C509.721 157.293 509.555 157.412 509.414 157.561C509.273 157.713 509.156 157.889 509.062 158.088C508.969 158.283 508.895 158.488 508.84 158.703C508.781 158.922 508.738 159.143 508.711 159.365C508.688 159.584 508.674 159.793 508.67 159.992V160.977C508.674 161.176 508.688 161.387 508.711 161.609C508.738 161.832 508.781 162.051 508.84 162.266C508.898 162.484 508.975 162.693 509.068 162.893C509.162 163.092 509.279 163.266 509.42 163.414C509.561 163.566 509.727 163.688 509.918 163.777C510.109 163.867 510.332 163.912 510.586 163.912C510.84 163.912 511.062 163.867 511.254 163.777C511.449 163.688 511.617 163.566 511.758 163.414C511.895 163.266 512.008 163.094 512.098 162.898C512.191 162.699 512.268 162.49 512.326 162.271C512.381 162.057 512.418 161.838 512.438 161.615C512.461 161.393 512.475 161.18 512.479 160.977V159.992ZM520.734 162.184C520.684 162.578 520.582 162.941 520.43 163.273C520.277 163.602 520.08 163.883 519.838 164.117C519.592 164.355 519.301 164.541 518.965 164.674C518.633 164.803 518.262 164.867 517.852 164.867C517.5 164.867 517.18 164.818 516.891 164.721C516.605 164.619 516.352 164.48 516.129 164.305C515.902 164.129 515.707 163.922 515.543 163.684C515.383 163.445 515.25 163.186 515.145 162.904C515.035 162.623 514.953 162.328 514.898 162.02C514.848 161.711 514.82 161.398 514.816 161.082V159.893C514.82 159.576 514.848 159.264 514.898 158.955C514.953 158.646 515.035 158.352 515.145 158.07C515.25 157.789 515.383 157.529 515.543 157.291C515.707 157.049 515.902 156.84 516.129 156.664C516.352 156.488 516.605 156.352 516.891 156.254C517.176 156.152 517.496 156.102 517.852 156.102C518.277 156.102 518.658 156.168 518.994 156.301C519.33 156.43 519.619 156.613 519.861 156.852C520.104 157.094 520.297 157.383 520.441 157.719C520.59 158.055 520.688 158.426 520.734 158.832H519.65C519.615 158.574 519.555 158.334 519.469 158.111C519.383 157.889 519.268 157.693 519.123 157.525C518.979 157.357 518.801 157.227 518.59 157.133C518.383 157.035 518.137 156.986 517.852 156.986C517.594 156.986 517.365 157.029 517.166 157.115C516.971 157.197 516.803 157.311 516.662 157.455C516.518 157.6 516.396 157.768 516.299 157.959C516.205 158.15 516.129 158.354 516.07 158.568C516.012 158.783 515.969 159.004 515.941 159.23C515.918 159.453 515.906 159.67 515.906 159.881V161.082C515.906 161.293 515.918 161.512 515.941 161.738C515.969 161.961 516.012 162.18 516.07 162.395C516.129 162.613 516.205 162.818 516.299 163.01C516.393 163.201 516.512 163.369 516.656 163.514C516.801 163.662 516.971 163.779 517.166 163.865C517.361 163.947 517.59 163.988 517.852 163.988C518.137 163.988 518.383 163.943 518.59 163.854C518.801 163.764 518.
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
918 159.453 515.906 159.67 515.906 159.881V161.082C515.906 161.293 515.918 161.512 515.941 161.738C515.969 161.961 516.012 162.18 516.07 162.395C516.129 162.613 516.205 162.818 516.299 163.01C516.393 163.201 516.512 163.369 516.656 163.514C516.801 163.662 516.971 163.779 517.166 163.865C517.361 163.947 517.59 163.988 517.852 163.988C518.137 163.988 518.383 163.943 518.59 163.854C518.801 163.764 518.979 163.637 519.123 163.473C519.268 163.312 519.383 163.123 519.469 162.904C519.555 162.682 519.615 162.441 519.65 162.184H520.734ZM527.109 160.807H523.547V163.83H527.701V164.75H522.463V156.219H527.648V157.145H523.547V159.887H527.109V160.807ZM534.088 162.594C534.088 162.332 534.027 162.111 533.906 161.932C533.789 161.752 533.637 161.6 533.449 161.475C533.262 161.354 533.055 161.252 532.828 161.17C532.605 161.088 532.391 161.014 532.184 160.947C531.883 160.85 531.576 160.732 531.264 160.596C530.955 160.455 530.674 160.287 530.42 160.092C530.162 159.893 529.951 159.658 529.787 159.389C529.627 159.115 529.547 158.795 529.547 158.428C529.547 158.061 529.627 157.732 529.787 157.443C529.951 157.154 530.164 156.91 530.426 156.711C530.688 156.512 530.984 156.361 531.316 156.26C531.648 156.154 531.982 156.102 532.318 156.102C532.689 156.102 533.047 156.164 533.391 156.289C533.734 156.41 534.039 156.582 534.305 156.805C534.57 157.027 534.783 157.297 534.943 157.613C535.104 157.93 535.188 158.283 535.195 158.674H534.082C534.051 158.428 533.99 158.205 533.9 158.006C533.811 157.803 533.691 157.629 533.543 157.484C533.395 157.34 533.217 157.229 533.01 157.15C532.807 157.068 532.576 157.027 532.318 157.027C532.111 157.027 531.908 157.057 531.709 157.115C531.514 157.174 531.34 157.262 531.188 157.379C531.031 157.496 530.906 157.641 530.812 157.812C530.723 157.984 530.678 158.184 530.678 158.41C530.682 158.656 530.744 158.865 530.865 159.037C530.986 159.205 531.141 159.348 531.328 159.465C531.512 159.582 531.711 159.68 531.926 159.758C532.145 159.836 532.35 159.904 532.541 159.963C532.857 160.061 533.174 160.18 533.49 160.32C533.807 160.457 534.096 160.633 534.357 160.848C534.615 161.047 534.822 161.291 534.979 161.58C535.139 161.869 535.219 162.203 535.219 162.582C535.219 162.965 535.133 163.299 534.961 163.584C534.793 163.869 534.574 164.105 534.305 164.293C534.035 164.484 533.73 164.629 533.391 164.727C533.051 164.82 532.711 164.867 532.371 164.867C531.965 164.867 531.564 164.799 531.17 164.662C530.779 164.525 530.439 164.328 530.15 164.07C529.893 163.848 529.688 163.588 529.535 163.291C529.387 162.99 529.307 162.656 529.295 162.289H530.402C530.438 162.555 530.51 162.791 530.619 162.998C530.729 163.201 530.869 163.373 531.041 163.514C531.213 163.658 531.41 163.768 531.633 163.842C531.859 163.912 532.105 163.947 532.371 163.947C532.582 163.947 532.789 163.922 532.992 163.871C533.199 163.816 533.383 163.732 533.543 163.619C533.703 163.51 533.834 163.371 533.936 163.203C534.037 163.031 534.088 162.828 534.088 162.594ZM541.295 162.594C541.295 162.332 541.234 162.111 541.113 161.932C540.996 161.752 540.844 161.6 540.656 161.475C540.469 161.354 540.262 161.252 540.035 161.17C539.812 161.088 539.598 161.014 539.391 160.947C539.09 160.85 538.783 160.732 538.471 160.596C538.162 160.455 537.881 160.287 537.627 160.092C537.369 159.893 537.158 159.658 536.994 159.389C536.834 159.115 536.754 158.795 536.754 158.428C536.754 158.061 536.834 157.732 536.994 157.443C537.158 157.154 537.371 156.91 537.633 156.711C537.895 156.512 538.191 156.361 538.523 156.26C538.855 156.154 539.189 156.102 539.525 156.102C539.896 156.102 540.254 156.164 540.598 156.289C540.941 156.41 541.246 156.582 541.512 156.805C541.777 157.027 541.99 157.297 542.15 157.613C542.311 157.93 542.395 158.283 542.402 158.674H541.289C541.258 158.428 541.197 158.205 541.107 158.006C541.018 157.803 540.898 157.629 540.75 157.484C540.602 157.34 540.424 157.229 540.217 157.15C540.014 157.068 539.783 157.027 539.525 157.027C539.318 157.027 539.115 157.057 538.916 157.115C538.721 157.174 538.547 157.262 538.395 157.379C538.238 157.496 538.113
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
157.027 541.99 157.297 542.15 157.613C542.311 157.93 542.395 158.283 542.402 158.674H541.289C541.258 158.428 541.197 158.205 541.107 158.006C541.018 157.803 540.898 157.629 540.75 157.484C540.602 157.34 540.424 157.229 540.217 157.15C540.014 157.068 539.783 157.027 539.525 157.027C539.318 157.027 539.115 157.057 538.916 157.115C538.721 157.174 538.547 157.262 538.395 157.379C538.238 157.496 538.113 157.641 538.02 157.812C537.93 157.984 537.885 158.184 537.885 158.41C537.889 158.656 537.951 158.865 538.072 159.037C538.193 159.205 538.348 159.348 538.535 159.465C538.719 159.582 538.918 159.68 539.133 159.758C539.352 159.836 539.557 159.904 539.748 159.963C540.064 160.061 540.381 160.18 540.697 160.32C541.014 160.457 541.303 160.633 541.564 160.848C541.822 161.047 542.029 161.291 542.186 161.58C542.346 161.869 542.426 162.203 542.426 162.582C542.426 162.965 542.34 163.299 542.168 163.584C542 163.869 541.781 164.105 541.512 164.293C541.242 164.484 540.938 164.629 540.598 164.727C540.258 164.82 539.918 164.867 539.578 164.867C539.172 164.867 538.771 164.799 538.377 164.662C537.986 164.525 537.646 164.328 537.357 164.07C537.1 163.848 536.895 163.588 536.742 163.291C536.594 162.99 536.514 162.656 536.502 162.289H537.609C537.645 162.555 537.717 162.791 537.826 162.998C537.936 163.201 538.076 163.373 538.248 163.514C538.42 163.658 538.617 163.768 538.84 163.842C539.066 163.912 539.312 163.947 539.578 163.947C539.789 163.947 539.996 163.922 540.199 163.871C540.406 163.816 540.59 163.732 540.75 163.619C540.91 163.51 541.041 163.371 541.143 163.203C541.244 163.031 541.295 162.828 541.295 162.594ZM551.631 160.473L552.059 156.219H556.436V157.273H552.973L552.732 159.547C552.9 159.449 553.102 159.363 553.336 159.289C553.57 159.215 553.842 159.178 554.15 159.178C554.545 159.178 554.898 159.246 555.211 159.383C555.523 159.52 555.789 159.711 556.008 159.957C556.227 160.207 556.395 160.508 556.512 160.859C556.629 161.211 556.688 161.602 556.688 162.031C556.688 162.438 556.633 162.814 556.523 163.162C556.414 163.51 556.25 163.809 556.031 164.059C555.809 164.312 555.529 164.512 555.193 164.656C554.857 164.797 554.463 164.867 554.01 164.867C553.662 164.867 553.334 164.818 553.025 164.721C552.717 164.623 552.443 164.477 552.205 164.281C551.963 164.086 551.764 163.84 551.607 163.543C551.455 163.246 551.359 162.9 551.32 162.506H552.352C552.418 162.99 552.596 163.357 552.885 163.607C553.178 163.857 553.553 163.982 554.01 163.982C554.268 163.982 554.496 163.938 554.695 163.848C554.895 163.754 555.062 163.621 555.199 163.449C555.332 163.281 555.432 163.078 555.498 162.84C555.568 162.602 555.604 162.336 555.604 162.043C555.604 161.777 555.564 161.529 555.486 161.299C555.412 161.068 555.303 160.867 555.158 160.695C555.014 160.527 554.836 160.395 554.625 160.297C554.414 160.199 554.172 160.15 553.898 160.15C553.719 160.15 553.562 160.164 553.43 160.191C553.301 160.215 553.184 160.25 553.078 160.297C552.973 160.344 552.873 160.4 552.779 160.467C552.689 160.533 552.596 160.609 552.498 160.695L551.631 160.473Z" fill="black"></path> <rect x="630" y="147" width="190" height="25.5" rx="4" fill="#E6E6E6"></rect> <path d="M694.771 161.328V164.75H693.688V156.219H696.453C696.836 156.227 697.197 156.287 697.537 156.4C697.881 156.514 698.182 156.678 698.439 156.893C698.697 157.107 698.9 157.373 699.049 157.689C699.201 158.006 699.277 158.369 699.277 158.779C699.277 159.189 699.201 159.553 699.049 159.869C698.9 160.182 698.697 160.445 698.439 160.66C698.182 160.875 697.881 161.039 697.537 161.152C697.197 161.266 696.836 161.324 696.453 161.328H694.771ZM694.771 160.438H696.453C696.703 160.434 696.934 160.395 697.145 160.32C697.355 160.242 697.539 160.133 697.695 159.992C697.852 159.852 697.973 159.682 698.059 159.482C698.148 159.279 698.193 159.049 698.193 158.791C698.193 158.533 698.148 158.301 698.059 158.094C697.973 157.887 697.854 157.711 697.701 157.566C697.545 157.422 697.359 157.311 697.145 157.232C696.934 157.154 696.703 157.113 696.453 157.109H694.771V160.438ZM703.619 161.27H701.914V164.75H700.836V156.219H703.338C
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
.355 160.242 697.539 160.133 697.695 159.992C697.852 159.852 697.973 159.682 698.059 159.482C698.148 159.279 698.193 159.049 698.193 158.791C698.193 158.533 698.148 158.301 698.059 158.094C697.973 157.887 697.854 157.711 697.701 157.566C697.545 157.422 697.359 157.311 697.145 157.232C696.934 157.154 696.703 157.113 696.453 157.109H694.771V160.438ZM703.619 161.27H701.914V164.75H700.836V156.219H703.338C703.736 156.227 704.111 156.283 704.463 156.389C704.814 156.494 705.123 156.652 705.389 156.863C705.65 157.074 705.855 157.34 706.004 157.66C706.156 157.977 706.232 158.35 706.232 158.779C706.232 159.057 706.191 159.311 706.109 159.541C706.031 159.771 705.922 159.98 705.781 160.168C705.641 160.355 705.473 160.521 705.277 160.666C705.082 160.811 704.867 160.934 704.633 161.035L706.443 164.68L706.438 164.75H705.295L703.619 161.27ZM701.914 160.379H703.367C703.609 160.375 703.838 160.338 704.053 160.268C704.268 160.193 704.457 160.088 704.621 159.951C704.781 159.814 704.908 159.648 705.002 159.453C705.096 159.254 705.143 159.025 705.143 158.768C705.143 158.494 705.098 158.256 705.008 158.053C704.918 157.846 704.793 157.672 704.633 157.531C704.473 157.395 704.281 157.291 704.059 157.221C703.84 157.15 703.6 157.113 703.338 157.109H701.914V160.379ZM713.551 160.977C713.547 161.281 713.52 161.59 713.469 161.902C713.422 162.211 713.348 162.51 713.246 162.799C713.145 163.088 713.014 163.357 712.854 163.607C712.697 163.857 712.51 164.076 712.291 164.264C712.072 164.451 711.82 164.6 711.535 164.709C711.254 164.814 710.938 164.867 710.586 164.867C710.234 164.867 709.916 164.814 709.631 164.709C709.35 164.6 709.1 164.451 708.881 164.264C708.662 164.076 708.473 163.857 708.312 163.607C708.152 163.354 708.021 163.082 707.92 162.793C707.814 162.504 707.736 162.205 707.686 161.896C707.635 161.588 707.607 161.281 707.604 160.977V160.004C707.607 159.699 707.633 159.393 707.68 159.084C707.73 158.771 707.809 158.471 707.914 158.182C708.016 157.893 708.145 157.623 708.301 157.373C708.461 157.119 708.65 156.896 708.869 156.705C709.088 156.518 709.338 156.371 709.619 156.266C709.904 156.156 710.223 156.102 710.574 156.102C710.926 156.102 711.244 156.156 711.529 156.266C711.814 156.371 712.066 156.518 712.285 156.705C712.504 156.893 712.691 157.113 712.848 157.367C713.008 157.617 713.141 157.887 713.246 158.176C713.348 158.465 713.422 158.766 713.469 159.078C713.52 159.391 713.547 159.699 713.551 160.004V160.977ZM712.479 159.992C712.475 159.789 712.461 159.578 712.438 159.359C712.414 159.137 712.375 158.916 712.32 158.697C712.262 158.482 712.186 158.277 712.092 158.082C711.998 157.883 711.881 157.707 711.74 157.555C711.6 157.406 711.434 157.289 711.242 157.203C711.051 157.113 710.828 157.068 710.574 157.068C710.324 157.068 710.104 157.113 709.912 157.203C709.721 157.293 709.555 157.412 709.414 157.561C709.273 157.713 709.156 157.889 709.062 158.088C708.969 158.283 708.895 158.488 708.84 158.703C708.781 158.922 708.738 159.143 708.711 159.365C708.688 159.584 708.674 159.793 708.67 159.992V160.977C708.674 161.176 708.688 161.387 708.711 161.609C708.738 161.832 708.781 162.051 708.84 162.266C708.898 162.484 708.975 162.693 709.068 162.893C709.162 163.092 709.279 163.266 709.42 163.414C709.561 163.566 709.727 163.688 709.918 163.777C710.109 163.867 710.332 163.912 710.586 163.912C710.84 163.912 711.062 163.867 711.254 163.777C711.449 163.688 711.617 163.566 711.758 163.414C711.895 163.266 712.008 163.094 712.098 162.898C712.191 162.699 712.268 162.49 712.326 162.271C712.381 162.057 712.418 161.838 712.438 161.615C712.461 161.393 712.475 161.18 712.479 160.977V159.992ZM720.734 162.184C720.684 162.578 720.582 162.941 720.43 163.273C720.277 163.602 720.08 163.883 719.838 164.117C719.592 164.355 719.301 164.541 718.965 164.674C718.633 164.803 718.262 164.867 717.852 164.867C717.5 164.867 717.18 164.818 716.891 164.721C716.605 164.619 716.352 164.48 716.129 164.305C715.902 164.129 715.707 163.922 715.543 163.684C715.383 163.445 715.25 163.186 715.145 162.904C715.035 162.623 714.953 162.328 714.898 162.02C
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
162.941 720.43 163.273C720.277 163.602 720.08 163.883 719.838 164.117C719.592 164.355 719.301 164.541 718.965 164.674C718.633 164.803 718.262 164.867 717.852 164.867C717.5 164.867 717.18 164.818 716.891 164.721C716.605 164.619 716.352 164.48 716.129 164.305C715.902 164.129 715.707 163.922 715.543 163.684C715.383 163.445 715.25 163.186 715.145 162.904C715.035 162.623 714.953 162.328 714.898 162.02C714.848 161.711 714.82 161.398 714.816 161.082V159.893C714.82 159.576 714.848 159.264 714.898 158.955C714.953 158.646 715.035 158.352 715.145 158.07C715.25 157.789 715.383 157.529 715.543 157.291C715.707 157.049 715.902 156.84 716.129 156.664C716.352 156.488 716.605 156.352 716.891 156.254C717.176 156.152 717.496 156.102 717.852 156.102C718.277 156.102 718.658 156.168 718.994 156.301C719.33 156.43 719.619 156.613 719.861 156.852C720.104 157.094 720.297 157.383 720.441 157.719C720.59 158.055 720.688 158.426 720.734 158.832H719.65C719.615 158.574 719.555 158.334 719.469 158.111C719.383 157.889 719.268 157.693 719.123 157.525C718.979 157.357 718.801 157.227 718.59 157.133C718.383 157.035 718.137 156.986 717.852 156.986C717.594 156.986 717.365 157.029 717.166 157.115C716.971 157.197 716.803 157.311 716.662 157.455C716.518 157.6 716.396 157.768 716.299 157.959C716.205 158.15 716.129 158.354 716.07 158.568C716.012 158.783 715.969 159.004 715.941 159.23C715.918 159.453 715.906 159.67 715.906 159.881V161.082C715.906 161.293 715.918 161.512 715.941 161.738C715.969 161.961 716.012 162.18 716.07 162.395C716.129 162.613 716.205 162.818 716.299 163.01C716.393 163.201 716.512 163.369 716.656 163.514C716.801 163.662 716.971 163.779 717.166 163.865C717.361 163.947 717.59 163.988 717.852 163.988C718.137 163.988 718.383 163.943 718.59 163.854C718.801 163.764 718.979 163.637 719.123 163.473C719.268 163.312 719.383 163.123 719.469 162.904C719.555 162.682 719.615 162.441 719.65 162.184H720.734ZM727.109 160.807H723.547V163.83H727.701V164.75H722.463V156.219H727.648V157.145H723.547V159.887H727.109V160.807ZM734.088 162.594C734.088 162.332 734.027 162.111 733.906 161.932C733.789 161.752 733.637 161.6 733.449 161.475C733.262 161.354 733.055 161.252 732.828 161.17C732.605 161.088 732.391 161.014 732.184 160.947C731.883 160.85 731.576 160.732 731.264 160.596C730.955 160.455 730.674 160.287 730.42 160.092C730.162 159.893 729.951 159.658 729.787 159.389C729.627 159.115 729.547 158.795 729.547 158.428C729.547 158.061 729.627 157.732 729.787 157.443C729.951 157.154 730.164 156.91 730.426 156.711C730.688 156.512 730.984 156.361 731.316 156.26C731.648 156.154 731.982 156.102 732.318 156.102C732.689 156.102 733.047 156.164 733.391 156.289C733.734 156.41 734.039 156.582 734.305 156.805C734.57 157.027 734.783 157.297 734.943 157.613C735.104 157.93 735.188 158.283 735.195 158.674H734.082C734.051 158.428 733.99 158.205 733.9 158.006C733.811 157.803 733.691 157.629 733.543 157.484C733.395 157.34 733.217 157.229 733.01 157.15C732.807 157.068 732.576 157.027 732.318 157.027C732.111 157.027 731.908 157.057 731.709 157.115C731.514 157.174 731.34 157.262 731.188 157.379C731.031 157.496 730.906 157.641 730.812 157.812C730.723 157.984 730.678 158.184 730.678 158.41C730.682 158.656 730.744 158.865 730.865 159.037C730.986 159.205 731.141 159.348 731.328 159.465C731.512 159.582 731.711 159.68 731.926 159.758C732.145 159.836 732.35 159.904 732.541 159.963C732.857 160.061 733.174 160.18 733.49 160.32C733.807 160.457 734.096 160.633 734.357 160.848C734.615 161.047 734.822 161.291 734.979 161.58C735.139 161.869 735.219 162.203 735.219 162.582C735.219 162.965 735.133 163.299 734.961 163.584C734.793 163.869 734.574 164.105 734.305 164.293C734.035 164.484 733.73 164.629 733.391 164.727C733.051 164.82 732.711 164.867 732.371 164.867C731.965 164.867 731.564 164.799 731.17 164.662C730.779 164.525 730.439 164.328 730.15 164.07C729.893 163.848 729.688 163.588 729.535 163.291C729.387 162.99 729.307 162.656 729.295 162.289H730.402C730.438 162.555 730.51 162.791 730.619 162.998C730.729 163.201 730.869 163.373 731.041 163.514C731.
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: units.md Path: ../ao-cookbook/src/ja/concepts/units.md Note: This content continues in the next part.
305 164.293C734.035 164.484 733.73 164.629 733.391 164.727C733.051 164.82 732.711 164.867 732.371 164.867C731.965 164.867 731.564 164.799 731.17 164.662C730.779 164.525 730.439 164.328 730.15 164.07C729.893 163.848 729.688 163.588 729.535 163.291C729.387 162.99 729.307 162.656 729.295 162.289H730.402C730.438 162.555 730.51 162.791 730.619 162.998C730.729 163.201 730.869 163.373 731.041 163.514C731.213 163.658 731.41 163.768 731.633 163.842C731.859 163.912 732.105 163.947 732.371 163.947C732.582 163.947 732.789 163.922 732.992 163.871C733.199 163.816 733.383 163.732 733.543 163.619C733.703 163.51 733.834 163.371 733.936 163.203C734.037 163.031 734.088 162.828 734.088 162.594ZM741.295 162.594C741.295 162.332 741.234 162.111 741.113 161.932C740.996 161.752 740.844 161.6 740.656 161.475C740.469 161.354 740.262 161.252 740.035 161.17C739.812 161.088 739.598 161.014 739.391 160.947C739.09 160.85 738.783 160.732 738.471 160.596C738.162 160.455 737.881 160.287 737.627 160.092C737.369 159.893 737.158 159.658 736.994 159.389C736.834 159.115 736.754 158.795 736.754 158.428C736.754 158.061 736.834 157.732 736.994 157.443C737.158 157.154 737.371 156.91 737.633 156.711C737.895 156.512 738.191 156.361 738.523 156.26C738.855 156.154 739.189 156.102 739.525 156.102C739.896 156.102 740.254 156.164 740.598 156.289C740.941 156.41 741.246 156.582 741.512 156.805C741.777 157.027 741.99 157.297 742.15 157.613C742.311 157.93 742.395 158.283 742.402 158.674H741.289C741.258 158.428 741.197 158.205 741.107 158.006C741.018 157.803 740.898 157.629 740.75 157.484C740.602 157.34 740.424 157.229 740.217 157.15C740.014 157.068 739.783 157.027 739.525 157.027C739.318 157.027 739.115 157.057 738.916 157.115C738.721 157.174 738.547 157.262 738.395 157.379C738.238 157.496 738.113 157.641 738.02 157.812C737.93 157.984 737.885 158.184 737.885 158.41C737.889 158.656 737.951 158.865 738.072 159.037C738.193 159.205 738.348 159.348 738.535 159.465C738.719 159.582 738.918 159.68 739.133 159.758C739.352 159.836 739.557 159.904 739.748 159.963C740.064 160.061 740.381 160.18 740.697 160.32C741.014 160.457 741.303 160.633 741.564 160.848C741.822 161.047 742.029 161.291 742.186 161.58C742.346 161.869 742.426 162.203 742.426 162.582C742.426 162.965 742.34 163.299 742.168 163.584C742 163.869 741.781 164.105 741.512 164.293C741.242 164.484 740.938 164.629 740.598 164.727C740.258 164.82 739.918 164.867 739.578 164.867C739.172 164.867 738.771 164.799 738.377 164.662C737.986 164.525 737.646 164.328 737.357 164.07C737.1 163.848 736.895 163.588 736.742 163.291C736.594 162.99 736.514 162.656 736.502 162.289H737.609C737.645 162.555 737.717 162.791 737.826 162.998C737.936 163.201 738.076 163.373 738.248 163.514C738.42 163.658 738.617 163.768 738.84 163.842C739.066 163.912 739.312 163.947 739.578 163.947C739.789 163.947 739.996 163.922 740.199 163.871C740.406 163.816 740.59 163.732 740.75 163.619C740.91 163.51 741.041 163.371 741.143 163.203C741.244 163.031 741.295 162.828 741.295 162.594ZM755.24 156.213V157.186H755.146C754.631 157.186 754.193 157.26 753.834 157.408C753.475 157.553 753.178 157.748 752.943 157.994C752.697 158.252 752.51 158.559 752.381 158.914C752.256 159.27 752.182 159.635 752.158 160.01C752.26 159.889 752.377 159.777 752.51 159.676C752.643 159.57 752.787 159.479 752.943 159.4C753.096 159.326 753.26 159.268 753.436 159.225C753.615 159.178 753.803 159.154 753.998 159.154C754.424 159.154 754.791 159.236 755.1 159.4C755.408 159.561 755.662 159.773 755.861 160.039C756.061 160.305 756.207 160.605 756.301 160.941C756.395 161.277 756.441 161.619 756.441 161.967C756.441 162.365 756.385 162.74 756.271 163.092C756.162 163.443 755.996 163.75 755.773 164.012C755.551 164.277 755.273 164.486 754.941 164.639C754.613 164.791 754.232 164.867 753.799 164.867C753.361 164.867 752.977 164.779 752.645 164.604C752.312 164.428 752.033 164.199 751.807 163.918C751.553 163.609 751.363 163.25 751.238 162.84C751.113 162.426 751.051 162.012 751.051 161.598V161.088C751.051 160.377 751.135 159.678 751.303 158.99C751.471 158.303 751.