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: units.md Path: ../ao-cookbook/src/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/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. |
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/concepts/units.md
Note: This content continues in the next part. | 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.799 157.715 752.287 157.227C752.623 156.891 753.031 156.639 753.512 156.471C753.992 156.299 754.537 156.213 755.146 156.213H755.24ZM753.822 160.057C753.639 160.057 753.461 160.086 753.289 160.145C753.117 160.203 752.957 160.285 752.809 160.391C752.66 160.496 752.529 160.623 752.416 160.771C752.303 160.92 752.213 161.084 752.146 161.264V161.627C752.146 162.002 752.191 162.336 752.281 162.629C752.371 162.918 752.492 163.162 752.645 163.361C752.797 163.561 752.973 163.713 753.172 163.818C753.371 163.92 753.58 163.971 753.799 163.971C754.053 163.971 754.277 163.922 754.473 163.824C754.668 163.727 754.834 163.592 754.971 163.42C755.104 163.248 755.203 163.043 755.27 162.805C755.34 162.562 755.375 162.301 755.375 162.02C755.375 161.77 755.344 161.527 755.281 161.293C755.219 161.055 755.123 160.844 754.994 160.66C754.865 160.477 754.703 160.33 754.508 160.221C754.312 160.111 754.084 160.057 753.822 160.057Z" fill="black"></path>
<rect x="430" y="182.5" width="190" height="25.5" rx="4" fill="#E6E6E6"></rect>
<path d="M494.771 196.828V200.25H493.688V191.719H496.453C496.836 191.727 497.197 191.787 497.537 191.9C497.881 192.014 498.182 192.178 498.439 192.393C498.697 192.607 498.9 192.873 499.049 193.189C499.201 193.506 499.277 193.869 499.277 194.279C499.277 194.689 499.201 195.053 499.049 195.369C498.9 195.682 498.697 195.945 498.439 196.16C498.182 196.375 497.881 196.539 497.537 196.652C497.197 196.766 496.836 196.824 496.453 196.828H494.771ZM494.771 195.938H496.453C496.703 195.934 496.934 195.895 497.145 195.82C497.355 195.742 497.539 195.633 497.695 195.492C497.852 195.352 497.973 195.182 498.059 194.982C498.148 194.779 498.193 194.549 498.193 194.291C498.193 194.033 498.148 193.801 498.059 193.594C497.973 193.387 497.854 193.211 497.701 193.066C497.545 192.922 497.359 192.811 497.145 192.732C496.934 192.654 496.703 192.613 496.453 192.609H494.771V195.938ZM503.619 196.77H501.914V200.25H500.836V191.719H503.338C503.736 191.727 504.111 191.783 504.463 191.889C504.814 191.994 505.123 192.152 505.389 192.363C505.65 192.574 505.855 192.84 506.004 193.16C506.156 193.477 506.232 193.85 506.232 194.279C506.232 194.557 506.191 194.811 506.109 195.041C506.031 195.271 505.922 195.48 505.781 195.668C505.641 195.855 505.473 196.021 505.277 196.166C505.082 196.311 504.867 196.434 504.633 196.535L506.443 200.18L506.438 200.25H505.295L503.619 196.77ZM501.914 195.879H503.367C503.609 195.875 503.838 195.838 504.053 195.768C504.268 195.693 504.457 195.588 504.621 195.451C504.781 195.314 504.908 195.148 505.002 194.953C505.096 194.754 505.143 194.525 505.143 194.268C505.143 193.994 505.098 193.756 505.008 193.553C504.918 193.346 504.793 193.172 504.633 193.031C504.473 192.895 504.281 192.791 504.059 192.721C503.84 192.65 503.6 192.613 503.338 192.609H501.914V195.879ZM513.551 196.477C513.547 196.781 513.52 197.09 513.469 197.402C513.422 197.711 513.348 198.01 513.246 198.299C513.145 198.588 513.014 198.857 512.854 199.107C512.697 199.357 512.51 199.576 512.291 199.764C512.072 199.951 511.82 200.1 511.535 200.209C511.254 200.314 510.938 200.367 510.586 200.367C510.234 200.367 509.916 200.314 509.631 200.209C509.35 200.1 509.1 199.951 508.881 199.764C508.662 199.576 508.473 199.357 508.312 199.107C508.152 198.854 508.021 198.582 507.92 198.293C507.814 198.004 507.736 197.705 507.686 197.396C507.635 197.088 507.607 196.781 507.604 196.477V195.504C507.607 195.199 507.633 194.893 507.68 194.584C507.73 194.271 507.809 193.971 507.914 193.682C508.016 193.393 508.145 193.123 508.301 192.873C508.461 192.619 508.65 192.396 508.869 192.205C509.088 192.018 509.338 191.871 509.619 191.766C509.904 191.656 510.223 191.602 510 |
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/concepts/units.md
Note: This content continues in the next part. | .021 198.582 507.92 198.293C507.814 198.004 507.736 197.705 507.686 197.396C507.635 197.088 507.607 196.781 507.604 196.477V195.504C507.607 195.199 507.633 194.893 507.68 194.584C507.73 194.271 507.809 193.971 507.914 193.682C508.016 193.393 508.145 193.123 508.301 192.873C508.461 192.619 508.65 192.396 508.869 192.205C509.088 192.018 509.338 191.871 509.619 191.766C509.904 191.656 510.223 191.602 510.574 191.602C510.926 191.602 511.244 191.656 511.529 191.766C511.814 191.871 512.066 192.018 512.285 192.205C512.504 192.393 512.691 192.613 512.848 192.867C513.008 193.117 513.141 193.387 513.246 193.676C513.348 193.965 513.422 194.266 513.469 194.578C513.52 194.891 513.547 195.199 513.551 195.504V196.477ZM512.479 195.492C512.475 195.289 512.461 195.078 512.438 194.859C512.414 194.637 512.375 194.416 512.32 194.197C512.262 193.982 512.186 193.777 512.092 193.582C511.998 193.383 511.881 193.207 511.74 193.055C511.6 192.906 511.434 192.789 511.242 192.703C511.051 192.613 510.828 192.568 510.574 192.568C510.324 192.568 510.104 192.613 509.912 192.703C509.721 192.793 509.555 192.912 509.414 193.061C509.273 193.213 509.156 193.389 509.062 193.588C508.969 193.783 508.895 193.988 508.84 194.203C508.781 194.422 508.738 194.643 508.711 194.865C508.688 195.084 508.674 195.293 508.67 195.492V196.477C508.674 196.676 508.688 196.887 508.711 197.109C508.738 197.332 508.781 197.551 508.84 197.766C508.898 197.984 508.975 198.193 509.068 198.393C509.162 198.592 509.279 198.766 509.42 198.914C509.561 199.066 509.727 199.188 509.918 199.277C510.109 199.367 510.332 199.412 510.586 199.412C510.84 199.412 511.062 199.367 511.254 199.277C511.449 199.188 511.617 199.066 511.758 198.914C511.895 198.766 512.008 198.594 512.098 198.398C512.191 198.199 512.268 197.99 512.326 197.771C512.381 197.557 512.418 197.338 512.438 197.115C512.461 196.893 512.475 196.68 512.479 196.477V195.492ZM520.734 197.684C520.684 198.078 520.582 198.441 520.43 198.773C520.277 199.102 520.08 199.383 519.838 199.617C519.592 199.855 519.301 200.041 518.965 200.174C518.633 200.303 518.262 200.367 517.852 200.367C517.5 200.367 517.18 200.318 516.891 200.221C516.605 200.119 516.352 199.98 516.129 199.805C515.902 199.629 515.707 199.422 515.543 199.184C515.383 198.945 515.25 198.686 515.145 198.404C515.035 198.123 514.953 197.828 514.898 197.52C514.848 197.211 514.82 196.898 514.816 196.582V195.393C514.82 195.076 514.848 194.764 514.898 194.455C514.953 194.146 515.035 193.852 515.145 193.57C515.25 193.289 515.383 193.029 515.543 192.791C515.707 192.549 515.902 192.34 516.129 192.164C516.352 191.988 516.605 191.852 516.891 191.754C517.176 191.652 517.496 191.602 517.852 191.602C518.277 191.602 518.658 191.668 518.994 191.801C519.33 191.93 519.619 192.113 519.861 192.352C520.104 192.594 520.297 192.883 520.441 193.219C520.59 193.555 520.688 193.926 520.734 194.332H519.65C519.615 194.074 519.555 193.834 519.469 193.611C519.383 193.389 519.268 193.193 519.123 193.025C518.979 192.857 518.801 192.727 518.59 192.633C518.383 192.535 518.137 192.486 517.852 192.486C517.594 192.486 517.365 192.529 517.166 192.615C516.971 192.697 516.803 192.811 516.662 192.955C516.518 193.1 516.396 193.268 516.299 193.459C516.205 193.65 516.129 193.854 516.07 194.068C516.012 194.283 515.969 194.504 515.941 194.73C515.918 194.953 515.906 195.17 515.906 195.381V196.582C515.906 196.793 515.918 197.012 515.941 197.238C515.969 197.461 516.012 197.68 516.07 197.895C516.129 198.113 516.205 198.318 516.299 198.51C516.393 198.701 516.512 198.869 516.656 199.014C516.801 199.162 516.971 199.279 517.166 199.365C517.361 199.447 517.59 199.488 517.852 199.488C518.137 199.488 518.383 199.443 518.59 199.354C518.801 199.264 518.979 199.137 519.123 198.973C519.268 198.812 519.383 198.623 519.469 198.404C519.555 198.182 519.615 197.941 519.65 197.684H520.734ZM527.109 196.307H523.547V199.33H527.701V200.25H522.463V191.719H527.648V192.645H523.547V195.387H527.109V196.307ZM534.088 198.094C534.088 197.832 534.027 197.611 533.906 197.432C533.789 197.252 533.637 197.1 533.449 196 |
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/concepts/units.md
Note: This content continues in the next part. | 518.383 199.443 518.59 199.354C518.801 199.264 518.979 199.137 519.123 198.973C519.268 198.812 519.383 198.623 519.469 198.404C519.555 198.182 519.615 197.941 519.65 197.684H520.734ZM527.109 196.307H523.547V199.33H527.701V200.25H522.463V191.719H527.648V192.645H523.547V195.387H527.109V196.307ZM534.088 198.094C534.088 197.832 534.027 197.611 533.906 197.432C533.789 197.252 533.637 197.1 533.449 196.975C533.262 196.854 533.055 196.752 532.828 196.67C532.605 196.588 532.391 196.514 532.184 196.447C531.883 196.35 531.576 196.232 531.264 196.096C530.955 195.955 530.674 195.787 530.42 195.592C530.162 195.393 529.951 195.158 529.787 194.889C529.627 194.615 529.547 194.295 529.547 193.928C529.547 193.561 529.627 193.232 529.787 192.943C529.951 192.654 530.164 192.41 530.426 192.211C530.688 192.012 530.984 191.861 531.316 191.76C531.648 191.654 531.982 191.602 532.318 191.602C532.689 191.602 533.047 191.664 533.391 191.789C533.734 191.91 534.039 192.082 534.305 192.305C534.57 192.527 534.783 192.797 534.943 193.113C535.104 193.43 535.188 193.783 535.195 194.174H534.082C534.051 193.928 533.99 193.705 533.9 193.506C533.811 193.303 533.691 193.129 533.543 192.984C533.395 192.84 533.217 192.729 533.01 192.65C532.807 192.568 532.576 192.527 532.318 192.527C532.111 192.527 531.908 192.557 531.709 192.615C531.514 192.674 531.34 192.762 531.188 192.879C531.031 192.996 530.906 193.141 530.812 193.312C530.723 193.484 530.678 193.684 530.678 193.91C530.682 194.156 530.744 194.365 530.865 194.537C530.986 194.705 531.141 194.848 531.328 194.965C531.512 195.082 531.711 195.18 531.926 195.258C532.145 195.336 532.35 195.404 532.541 195.463C532.857 195.561 533.174 195.68 533.49 195.82C533.807 195.957 534.096 196.133 534.357 196.348C534.615 196.547 534.822 196.791 534.979 197.08C535.139 197.369 535.219 197.703 535.219 198.082C535.219 198.465 535.133 198.799 534.961 199.084C534.793 199.369 534.574 199.605 534.305 199.793C534.035 199.984 533.73 200.129 533.391 200.227C533.051 200.32 532.711 200.367 532.371 200.367C531.965 200.367 531.564 200.299 531.17 200.162C530.779 200.025 530.439 199.828 530.15 199.57C529.893 199.348 529.688 199.088 529.535 198.791C529.387 198.49 529.307 198.156 529.295 197.789H530.402C530.438 198.055 530.51 198.291 530.619 198.498C530.729 198.701 530.869 198.873 531.041 199.014C531.213 199.158 531.41 199.268 531.633 199.342C531.859 199.412 532.105 199.447 532.371 199.447C532.582 199.447 532.789 199.422 532.992 199.371C533.199 199.316 533.383 199.232 533.543 199.119C533.703 199.01 533.834 198.871 533.936 198.703C534.037 198.531 534.088 198.328 534.088 198.094ZM541.295 198.094C541.295 197.832 541.234 197.611 541.113 197.432C540.996 197.252 540.844 197.1 540.656 196.975C540.469 196.854 540.262 196.752 540.035 196.67C539.812 196.588 539.598 196.514 539.391 196.447C539.09 196.35 538.783 196.232 538.471 196.096C538.162 195.955 537.881 195.787 537.627 195.592C537.369 195.393 537.158 195.158 536.994 194.889C536.834 194.615 536.754 194.295 536.754 193.928C536.754 193.561 536.834 193.232 536.994 192.943C537.158 192.654 537.371 192.41 537.633 192.211C537.895 192.012 538.191 191.861 538.523 191.76C538.855 191.654 539.189 191.602 539.525 191.602C539.896 191.602 540.254 191.664 540.598 191.789C540.941 191.91 541.246 192.082 541.512 192.305C541.777 192.527 541.99 192.797 542.15 193.113C542.311 193.43 542.395 193.783 542.402 194.174H541.289C541.258 193.928 541.197 193.705 541.107 193.506C541.018 193.303 540.898 193.129 540.75 192.984C540.602 192.84 540.424 192.729 540.217 192.65C540.014 192.568 539.783 192.527 539.525 192.527C539.318 192.527 539.115 192.557 538.916 192.615C538.721 192.674 538.547 192.762 538.395 192.879C538.238 192.996 538.113 193.141 538.02 193.312C537.93 193.484 537.885 193.684 537.885 193.91C537.889 194.156 537.951 194.365 538.072 194.537C538.193 194.705 538.348 194.848 538.535 194.965C538.719 195.082 538.918 195.18 539.133 195.258C539.352 195.336 539.557 195.404 539.748 195.463C540.064 195.561 540.381 195.68 540.697 195.82C541.014 195.957 541.303 196.133 541.564 |
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/concepts/units.md
Note: This content continues in the next part. | 538.547 192.762 538.395 192.879C538.238 192.996 538.113 193.141 538.02 193.312C537.93 193.484 537.885 193.684 537.885 193.91C537.889 194.156 537.951 194.365 538.072 194.537C538.193 194.705 538.348 194.848 538.535 194.965C538.719 195.082 538.918 195.18 539.133 195.258C539.352 195.336 539.557 195.404 539.748 195.463C540.064 195.561 540.381 195.68 540.697 195.82C541.014 195.957 541.303 196.133 541.564 196.348C541.822 196.547 542.029 196.791 542.186 197.08C542.346 197.369 542.426 197.703 542.426 198.082C542.426 198.465 542.34 198.799 542.168 199.084C542 199.369 541.781 199.605 541.512 199.793C541.242 199.984 540.938 200.129 540.598 200.227C540.258 200.32 539.918 200.367 539.578 200.367C539.172 200.367 538.771 200.299 538.377 200.162C537.986 200.025 537.646 199.828 537.357 199.57C537.1 199.348 536.895 199.088 536.742 198.791C536.594 198.49 536.514 198.156 536.502 197.789H537.609C537.645 198.055 537.717 198.291 537.826 198.498C537.936 198.701 538.076 198.873 538.248 199.014C538.42 199.158 538.617 199.268 538.84 199.342C539.066 199.412 539.312 199.447 539.578 199.447C539.789 199.447 539.996 199.422 540.199 199.371C540.406 199.316 540.59 199.232 540.75 199.119C540.91 199.01 541.041 198.871 541.143 198.703C541.244 198.531 541.295 198.328 541.295 198.094ZM556.646 192.328L553.113 200.25H551.977L555.498 192.668H550.881V191.719H556.646V192.328Z" fill="black"></path>
<rect x="630" y="182.5" width="190" height="25.5" rx="4" fill="#E6E6E6"></rect>
<path d="M694.771 196.828V200.25H693.688V191.719H696.453C696.836 191.727 697.197 191.787 697.537 191.9C697.881 192.014 698.182 192.178 698.439 192.393C698.697 192.607 698.9 192.873 699.049 193.189C699.201 193.506 699.277 193.869 699.277 194.279C699.277 194.689 699.201 195.053 699.049 195.369C698.9 195.682 698.697 195.945 698.439 196.16C698.182 196.375 697.881 196.539 697.537 196.652C697.197 196.766 696.836 196.824 696.453 196.828H694.771ZM694.771 195.938H696.453C696.703 195.934 696.934 195.895 697.145 195.82C697.355 195.742 697.539 195.633 697.695 195.492C697.852 195.352 697.973 195.182 698.059 194.982C698.148 194.779 698.193 194.549 698.193 194.291C698.193 194.033 698.148 193.801 698.059 193.594C697.973 193.387 697.854 193.211 697.701 193.066C697.545 192.922 697.359 192.811 697.145 192.732C696.934 192.654 696.703 192.613 696.453 192.609H694.771V195.938ZM703.619 196.77H701.914V200.25H700.836V191.719H703.338C703.736 191.727 704.111 191.783 704.463 191.889C704.814 191.994 705.123 192.152 705.389 192.363C705.65 192.574 705.855 192.84 706.004 193.16C706.156 193.477 706.232 193.85 706.232 194.279C706.232 194.557 706.191 194.811 706.109 195.041C706.031 195.271 705.922 195.48 705.781 195.668C705.641 195.855 705.473 196.021 705.277 196.166C705.082 196.311 704.867 196.434 704.633 196.535L706.443 200.18L706.438 200.25H705.295L703.619 196.77ZM701.914 195.879H703.367C703.609 195.875 703.838 195.838 704.053 195.768C704.268 195.693 704.457 195.588 704.621 195.451C704.781 195.314 704.908 195.148 705.002 194.953C705.096 194.754 705.143 194.525 705.143 194.268C705.143 193.994 705.098 193.756 705.008 193.553C704.918 193.346 704.793 193.172 704.633 193.031C704.473 192.895 704.281 192.791 704.059 192.721C703.84 192.65 703.6 192.613 703.338 192.609H701.914V195.879ZM713.551 196.477C713.547 196.781 713.52 197.09 713.469 197.402C713.422 197.711 713.348 198.01 713.246 198.299C713.145 198.588 713.014 198.857 712.854 199.107C712.697 199.357 712.51 199.576 712.291 199.764C712.072 199.951 711.82 200.1 711.535 200.209C711.254 200.314 710.938 200.367 710.586 200.367C710.234 200.367 709.916 200.314 709.631 200.209C709.35 200.1 709.1 199.951 708.881 199.764C708.662 199.576 708.473 199.357 708.312 199.107C708.152 198.854 708.021 198.582 707.92 198.293C707.814 198.004 707.736 197.705 707.686 197.396C707.635 197.088 707.607 196.781 707.604 196.477V195.504C707.607 195.199 707.633 194.893 707.68 194.584C707.73 194.271 707.809 193.971 707.914 193.682C708.016 193.393 708.145 193.123 708.301 192.873C708.461 192.619 708.65 192.396 708.869 192.205C709.088 192.018 709.338 191.871 709.619 191 |
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/concepts/units.md
Note: This content continues in the next part. | .357 708.312 199.107C708.152 198.854 708.021 198.582 707.92 198.293C707.814 198.004 707.736 197.705 707.686 197.396C707.635 197.088 707.607 196.781 707.604 196.477V195.504C707.607 195.199 707.633 194.893 707.68 194.584C707.73 194.271 707.809 193.971 707.914 193.682C708.016 193.393 708.145 193.123 708.301 192.873C708.461 192.619 708.65 192.396 708.869 192.205C709.088 192.018 709.338 191.871 709.619 191.766C709.904 191.656 710.223 191.602 710.574 191.602C710.926 191.602 711.244 191.656 711.529 191.766C711.814 191.871 712.066 192.018 712.285 192.205C712.504 192.393 712.691 192.613 712.848 192.867C713.008 193.117 713.141 193.387 713.246 193.676C713.348 193.965 713.422 194.266 713.469 194.578C713.52 194.891 713.547 195.199 713.551 195.504V196.477ZM712.479 195.492C712.475 195.289 712.461 195.078 712.438 194.859C712.414 194.637 712.375 194.416 712.32 194.197C712.262 193.982 712.186 193.777 712.092 193.582C711.998 193.383 711.881 193.207 711.74 193.055C711.6 192.906 711.434 192.789 711.242 192.703C711.051 192.613 710.828 192.568 710.574 192.568C710.324 192.568 710.104 192.613 709.912 192.703C709.721 192.793 709.555 192.912 709.414 193.061C709.273 193.213 709.156 193.389 709.062 193.588C708.969 193.783 708.895 193.988 708.84 194.203C708.781 194.422 708.738 194.643 708.711 194.865C708.688 195.084 708.674 195.293 708.67 195.492V196.477C708.674 196.676 708.688 196.887 708.711 197.109C708.738 197.332 708.781 197.551 708.84 197.766C708.898 197.984 708.975 198.193 709.068 198.393C709.162 198.592 709.279 198.766 709.42 198.914C709.561 199.066 709.727 199.188 709.918 199.277C710.109 199.367 710.332 199.412 710.586 199.412C710.84 199.412 711.062 199.367 711.254 199.277C711.449 199.188 711.617 199.066 711.758 198.914C711.895 198.766 712.008 198.594 712.098 198.398C712.191 198.199 712.268 197.99 712.326 197.771C712.381 197.557 712.418 197.338 712.438 197.115C712.461 196.893 712.475 196.68 712.479 196.477V195.492ZM720.734 197.684C720.684 198.078 720.582 198.441 720.43 198.773C720.277 199.102 720.08 199.383 719.838 199.617C719.592 199.855 719.301 200.041 718.965 200.174C718.633 200.303 718.262 200.367 717.852 200.367C717.5 200.367 717.18 200.318 716.891 200.221C716.605 200.119 716.352 199.98 716.129 199.805C715.902 199.629 715.707 199.422 715.543 199.184C715.383 198.945 715.25 198.686 715.145 198.404C715.035 198.123 714.953 197.828 714.898 197.52C714.848 197.211 714.82 196.898 714.816 196.582V195.393C714.82 195.076 714.848 194.764 714.898 194.455C714.953 194.146 715.035 193.852 715.145 193.57C715.25 193.289 715.383 193.029 715.543 192.791C715.707 192.549 715.902 192.34 716.129 192.164C716.352 191.988 716.605 191.852 716.891 191.754C717.176 191.652 717.496 191.602 717.852 191.602C718.277 191.602 718.658 191.668 718.994 191.801C719.33 191.93 719.619 192.113 719.861 192.352C720.104 192.594 720.297 192.883 720.441 193.219C720.59 193.555 720.688 193.926 720.734 194.332H719.65C719.615 194.074 719.555 193.834 719.469 193.611C719.383 193.389 719.268 193.193 719.123 193.025C718.979 192.857 718.801 192.727 718.59 192.633C718.383 192.535 718.137 192.486 717.852 192.486C717.594 192.486 717.365 192.529 717.166 192.615C716.971 192.697 716.803 192.811 716.662 192.955C716.518 193.1 716.396 193.268 716.299 193.459C716.205 193.65 716.129 193.854 716.07 194.068C716.012 194.283 715.969 194.504 715.941 194.73C715.918 194.953 715.906 195.17 715.906 195.381V196.582C715.906 196.793 715.918 197.012 715.941 197.238C715.969 197.461 716.012 197.68 716.07 197.895C716.129 198.113 716.205 198.318 716.299 198.51C716.393 198.701 716.512 198.869 716.656 199.014C716.801 199.162 716.971 199.279 717.166 199.365C717.361 199.447 717.59 199.488 717.852 199.488C718.137 199.488 718.383 199.443 718.59 199.354C718.801 199.264 718.979 199.137 719.123 198.973C719.268 198.812 719.383 198.623 719.469 198.404C719.555 198.182 719.615 197.941 719.65 197.684H720.734ZM727.109 196.307H723.547V199.33H727.701V200.25H722.463V191.719H727.648V192.645H723.547V195.387H727.109V196.307ZM734.088 198.094C734.088 197.832 734.027 197.611 733.906 197.432C733 |
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/concepts/units.md
Note: This content continues in the next part. | 199.488 717.852 199.488C718.137 199.488 718.383 199.443 718.59 199.354C718.801 199.264 718.979 199.137 719.123 198.973C719.268 198.812 719.383 198.623 719.469 198.404C719.555 198.182 719.615 197.941 719.65 197.684H720.734ZM727.109 196.307H723.547V199.33H727.701V200.25H722.463V191.719H727.648V192.645H723.547V195.387H727.109V196.307ZM734.088 198.094C734.088 197.832 734.027 197.611 733.906 197.432C733.789 197.252 733.637 197.1 733.449 196.975C733.262 196.854 733.055 196.752 732.828 196.67C732.605 196.588 732.391 196.514 732.184 196.447C731.883 196.35 731.576 196.232 731.264 196.096C730.955 195.955 730.674 195.787 730.42 195.592C730.162 195.393 729.951 195.158 729.787 194.889C729.627 194.615 729.547 194.295 729.547 193.928C729.547 193.561 729.627 193.232 729.787 192.943C729.951 192.654 730.164 192.41 730.426 192.211C730.688 192.012 730.984 191.861 731.316 191.76C731.648 191.654 731.982 191.602 732.318 191.602C732.689 191.602 733.047 191.664 733.391 191.789C733.734 191.91 734.039 192.082 734.305 192.305C734.57 192.527 734.783 192.797 734.943 193.113C735.104 193.43 735.188 193.783 735.195 194.174H734.082C734.051 193.928 733.99 193.705 733.9 193.506C733.811 193.303 733.691 193.129 733.543 192.984C733.395 192.84 733.217 192.729 733.01 192.65C732.807 192.568 732.576 192.527 732.318 192.527C732.111 192.527 731.908 192.557 731.709 192.615C731.514 192.674 731.34 192.762 731.188 192.879C731.031 192.996 730.906 193.141 730.812 193.312C730.723 193.484 730.678 193.684 730.678 193.91C730.682 194.156 730.744 194.365 730.865 194.537C730.986 194.705 731.141 194.848 731.328 194.965C731.512 195.082 731.711 195.18 731.926 195.258C732.145 195.336 732.35 195.404 732.541 195.463C732.857 195.561 733.174 195.68 733.49 195.82C733.807 195.957 734.096 196.133 734.357 196.348C734.615 196.547 734.822 196.791 734.979 197.08C735.139 197.369 735.219 197.703 735.219 198.082C735.219 198.465 735.133 198.799 734.961 199.084C734.793 199.369 734.574 199.605 734.305 199.793C734.035 199.984 733.73 200.129 733.391 200.227C733.051 200.32 732.711 200.367 732.371 200.367C731.965 200.367 731.564 200.299 731.17 200.162C730.779 200.025 730.439 199.828 730.15 199.57C729.893 199.348 729.688 199.088 729.535 198.791C729.387 198.49 729.307 198.156 729.295 197.789H730.402C730.438 198.055 730.51 198.291 730.619 198.498C730.729 198.701 730.869 198.873 731.041 199.014C731.213 199.158 731.41 199.268 731.633 199.342C731.859 199.412 732.105 199.447 732.371 199.447C732.582 199.447 732.789 199.422 732.992 199.371C733.199 199.316 733.383 199.232 733.543 199.119C733.703 199.01 733.834 198.871 733.936 198.703C734.037 198.531 734.088 198.328 734.088 198.094ZM741.295 198.094C741.295 197.832 741.234 197.611 741.113 197.432C740.996 197.252 740.844 197.1 740.656 196.975C740.469 196.854 740.262 196.752 740.035 196.67C739.812 196.588 739.598 196.514 739.391 196.447C739.09 196.35 738.783 196.232 738.471 196.096C738.162 195.955 737.881 195.787 737.627 195.592C737.369 195.393 737.158 195.158 736.994 194.889C736.834 194.615 736.754 194.295 736.754 193.928C736.754 193.561 736.834 193.232 736.994 192.943C737.158 192.654 737.371 192.41 737.633 192.211C737.895 192.012 738.191 191.861 738.523 191.76C738.855 191.654 739.189 191.602 739.525 191.602C739.896 191.602 740.254 191.664 740.598 191.789C740.941 191.91 741.246 192.082 741.512 192.305C741.777 192.527 741.99 192.797 742.15 193.113C742.311 193.43 742.395 193.783 742.402 194.174H741.289C741.258 193.928 741.197 193.705 741.107 193.506C741.018 193.303 740.898 193.129 740.75 192.984C740.602 192.84 740.424 192.729 740.217 192.65C740.014 192.568 739.783 192.527 739.525 192.527C739.318 192.527 739.115 192.557 738.916 192.615C738.721 192.674 738.547 192.762 738.395 192.879C738.238 192.996 738.113 193.141 738.02 193.312C737.93 193.484 737.885 193.684 737.885 193.91C737.889 194.156 737.951 194.365 738.072 194.537C738.193 194.705 738.348 194.848 738.535 194.965C738.719 195.082 738.918 195.18 739.133 195.258C739.352 195.336 739.557 195.404 739.748 195.463C740.064 195.561 740.381 195.68 740.697 195.82C |
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/concepts/units.md
Note: This content continues in the next part. | 192.557 738.916 192.615C738.721 192.674 738.547 192.762 738.395 192.879C738.238 192.996 738.113 193.141 738.02 193.312C737.93 193.484 737.885 193.684 737.885 193.91C737.889 194.156 737.951 194.365 738.072 194.537C738.193 194.705 738.348 194.848 738.535 194.965C738.719 195.082 738.918 195.18 739.133 195.258C739.352 195.336 739.557 195.404 739.748 195.463C740.064 195.561 740.381 195.68 740.697 195.82C741.014 195.957 741.303 196.133 741.564 196.348C741.822 196.547 742.029 196.791 742.186 197.08C742.346 197.369 742.426 197.703 742.426 198.082C742.426 198.465 742.34 198.799 742.168 199.084C742 199.369 741.781 199.605 741.512 199.793C741.242 199.984 740.938 200.129 740.598 200.227C740.258 200.32 739.918 200.367 739.578 200.367C739.172 200.367 738.771 200.299 738.377 200.162C737.986 200.025 737.646 199.828 737.357 199.57C737.1 199.348 736.895 199.088 736.742 198.791C736.594 198.49 736.514 198.156 736.502 197.789H737.609C737.645 198.055 737.717 198.291 737.826 198.498C737.936 198.701 738.076 198.873 738.248 199.014C738.42 199.158 738.617 199.268 738.84 199.342C739.066 199.412 739.312 199.447 739.578 199.447C739.789 199.447 739.996 199.422 740.199 199.371C740.406 199.316 740.59 199.232 740.75 199.119C740.91 199.01 741.041 198.871 741.143 198.703C741.244 198.531 741.295 198.328 741.295 198.094ZM756.494 193.945C756.49 194.23 756.436 194.498 756.33 194.748C756.225 194.994 756.078 195.211 755.891 195.398C755.801 195.488 755.701 195.572 755.592 195.65C755.482 195.729 755.365 195.799 755.24 195.861C755.459 195.955 755.656 196.072 755.832 196.213C756.012 196.35 756.166 196.508 756.295 196.688C756.42 196.867 756.516 197.062 756.582 197.273C756.652 197.484 756.688 197.709 756.688 197.947C756.688 198.334 756.615 198.678 756.471 198.979C756.33 199.279 756.139 199.531 755.896 199.734C755.65 199.941 755.363 200.1 755.035 200.209C754.707 200.314 754.355 200.367 753.98 200.367C753.598 200.367 753.24 200.314 752.908 200.209C752.58 200.104 752.295 199.947 752.053 199.74C751.807 199.537 751.613 199.285 751.473 198.984C751.332 198.684 751.262 198.338 751.262 197.947C751.262 197.709 751.295 197.484 751.361 197.273C751.428 197.059 751.523 196.861 751.648 196.682C751.773 196.506 751.924 196.348 752.1 196.207C752.275 196.066 752.473 195.949 752.691 195.855C752.504 195.762 752.334 195.65 752.182 195.521C752.029 195.389 751.9 195.24 751.795 195.076C751.689 194.916 751.607 194.74 751.549 194.549C751.49 194.357 751.461 194.156 751.461 193.945C751.461 193.574 751.523 193.244 751.648 192.955C751.773 192.662 751.947 192.416 752.17 192.217C752.389 192.018 752.65 191.865 752.955 191.76C753.264 191.654 753.6 191.602 753.963 191.602C754.322 191.602 754.656 191.654 754.965 191.76C755.273 191.865 755.541 192.018 755.768 192.217C755.994 192.416 756.172 192.662 756.301 192.955C756.43 193.244 756.494 193.574 756.494 193.945ZM755.604 197.924C755.604 197.686 755.562 197.467 755.48 197.268C755.402 197.068 755.291 196.896 755.146 196.752C755.002 196.611 754.828 196.502 754.625 196.424C754.426 196.346 754.207 196.307 753.969 196.307C753.723 196.307 753.5 196.346 753.301 196.424C753.102 196.502 752.932 196.611 752.791 196.752C752.65 196.896 752.541 197.068 752.463 197.268C752.389 197.467 752.352 197.686 752.352 197.924C752.352 198.17 752.389 198.391 752.463 198.586C752.541 198.777 752.65 198.939 752.791 199.072C752.932 199.205 753.102 199.307 753.301 199.377C753.504 199.447 753.73 199.482 753.98 199.482C754.219 199.482 754.438 199.447 754.637 199.377C754.836 199.307 755.008 199.205 755.152 199.072C755.293 198.939 755.402 198.777 755.48 198.586C755.562 198.391 755.604 198.17 755.604 197.924ZM755.404 193.963C755.404 193.748 755.367 193.551 755.293 193.371C755.223 193.191 755.125 193.035 755 192.902C754.871 192.773 754.719 192.674 754.543 192.604C754.367 192.529 754.174 192.492 753.963 192.492C753.752 192.492 753.561 192.527 753.389 192.598C753.217 192.664 753.068 192.762 752.943 192.891C752.818 193.02 752.721 193.176 752.65 193.359C752.584 193.539 752.551 193.74 752.551 193.963C752.551 194.186 752.584 194.387 752 |
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/concepts/units.md
Note: This content continues in the next part. | 193.748 755.367 193.551 755.293 193.371C755.223 193.191 755.125 193.035 755 192.902C754.871 192.773 754.719 192.674 754.543 192.604C754.367 192.529 754.174 192.492 753.963 192.492C753.752 192.492 753.561 192.527 753.389 192.598C753.217 192.664 753.068 192.762 752.943 192.891C752.818 193.02 752.721 193.176 752.65 193.359C752.584 193.539 752.551 193.74 752.551 193.963C752.551 194.186 752.584 194.387 752.65 194.566C752.721 194.742 752.82 194.893 752.949 195.018C753.074 195.146 753.223 195.246 753.395 195.316C753.57 195.383 753.764 195.416 753.975 195.416C754.182 195.416 754.373 195.383 754.549 195.316C754.725 195.246 754.877 195.146 755.006 195.018C755.131 194.893 755.229 194.74 755.299 194.561C755.369 194.381 755.404 194.182 755.404 193.963Z" fill="black"></path>
<rect x="420.5" y="228.5" width="409" height="217" rx="9.5" fill="#FDEEDF"></rect>
<rect x="420.5" y="228.5" width="409" height="217" rx="9.5" stroke="#CACACA"></rect>
<path d="M604.867 339.791H602.02L601.334 342H600.25L603.004 333.469H603.912L606.619 342H605.541L604.867 339.791ZM602.312 338.848H604.58L603.455 335.145L602.312 338.848ZM610.826 338.52H609.121V342H608.043V333.469H610.545C610.943 333.477 611.318 333.533 611.67 333.639C612.021 333.744 612.33 333.902 612.596 334.113C612.857 334.324 613.062 334.59 613.211 334.91C613.363 335.227 613.439 335.6 613.439 336.029C613.439 336.307 613.398 336.561 613.316 336.791C613.238 337.021 613.129 337.23 612.988 337.418C612.848 337.605 612.68 337.771 612.484 337.916C612.289 338.061 612.074 338.184 611.84 338.285L613.65 341.93L613.645 342H612.502L610.826 338.52ZM609.121 337.629H610.574C610.816 337.625 611.045 337.588 611.26 337.518C611.475 337.443 611.664 337.338 611.828 337.201C611.988 337.064 612.115 336.898 612.209 336.703C612.303 336.504 612.35 336.275 612.35 336.018C612.35 335.744 612.305 335.506 612.215 335.303C612.125 335.096 612 334.922 611.84 334.781C611.68 334.645 611.488 334.541 611.266 334.471C611.047 334.4 610.807 334.363 610.545 334.359H609.121V337.629ZM615.654 342L614.617 333.469H615.648L616.264 339.352L616.299 339.691L616.363 339.34L617.395 333.469H618.338L619.375 339.346L619.439 339.691L619.475 339.34L620.09 333.469H621.115L620.078 342H618.971L617.934 335.93L617.875 335.572L617.811 335.936L616.768 342H615.654ZM627.109 338.057H623.547V341.08H627.701V342H622.463V333.469H627.648V334.395H623.547V337.137H627.109V338.057ZM633.695 339.791H630.848L630.162 342H629.078L631.832 333.469H632.74L635.447 342H634.369L633.695 339.791ZM631.141 338.848H633.408L632.283 335.145L631.141 338.848ZM638.922 342L636.227 333.469H637.387L639.262 339.838L639.385 340.254L639.514 339.826L641.4 333.469H642.555L639.865 342H638.922ZM648.73 338.057H645.168V341.08H649.322V342H644.084V333.469H649.27V334.395H645.168V337.137H648.73V338.057Z" fill="black"></path>
</g>
<path d="M402 340L407 342.887L407 337.113L402 340ZM442 340L437 337.113L437 342.887L442 340ZM406.5 340.5L437.5 340.5L437.5 339.5L406.5 339.5L406.5 340.5Z" fill="#FF7A00"></path>
<path d="M380 30L385 32.8868L385 27.1132L380 30ZM426 30L421 27.1133L421 32.8868L426 30ZM384.5 30.5L421.5 30.5L421.5 29.5L384.5 29.5L384.5 30.5Z" fill="#753800"></path>
<path d="M380 143L385 145.887L385 140.113L380 143ZM426 143L421 140.113L421 145.887L426 143ZM384.5 143.5L421.5 143.5L421.5 142.5L384.5 142.5L384.5 143.5Z" fill="#753800"></path>
<path d="M182 81L187 83.8868L187 78.1132L182 81ZM427 81L422 78.1133L422 83.8868L427 81ZM186.5 81.5L422.5 81.5L422.5 80.5L186.5 80.5L186.5 81.5Z" fill="#753800"></path>
<path d="M182 194L187 196.887L187 191.113L182 194ZM427 194L422 191.113L422 196.887L427 194ZM186.5 194.5L422.5 194.5L422.5 193.5L186.5 193.5L186.5 194.5Z" fill="#753800"></path>
<path d="M625 204L622.113 209L627.887 209L625 204ZM625 250L627.887 245L622.113 245L625 250ZM624.5 208.5L624.5 245.5L625.5 245.5L625.5 208.5L624.5 208.5Z" fill="#FF7A00"></path>
<path d="M624 466L629 468.887L629 463.113L624 466ZM664 466L659 463.113L659 468.887L664 466ZM628.5 466.5L659.5 466.5L659.5 465.5L628 |
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/concepts/units.md
Note: This content continues in the next part. | 194.5L422.5 193.5L186.5 193.5L186.5 194.5Z" fill="#753800"></path>
<path d="M625 204L622.113 209L627.887 209L625 204ZM625 250L627.887 245L622.113 245L625 250ZM624.5 208.5L624.5 245.5L625.5 245.5L625.5 208.5L624.5 208.5Z" fill="#FF7A00"></path>
<path d="M624 466L629 468.887L629 463.113L624 466ZM664 466L659 463.113L659 468.887L664 466ZM628.5 466.5L659.5 466.5L659.5 465.5L628.5 465.5L628.5 466.5Z" fill="#FF7A00"></path>
<path d="M731 466L736 468.887L736 463.113L731 466ZM771 466L766 463.113L766 468.887L771 466ZM735.5 466.5L766.5 466.5L766.5 465.5L735.5 465.5L735.5 466.5Z" fill="black"></path>
<path d="M677.76 468.844C677.76 468.582 677.699 468.361 677.578 468.182C677.461 468.002 677.309 467.85 677.121 467.725C676.934 467.604 676.727 467.502 676.5 467.42C676.277 467.338 676.062 467.264 675.855 467.197C675.555 467.1 675.248 466.982 674.936 466.846C674.627 466.705 674.346 466.537 674.092 466.342C673.834 466.143 673.623 465.908 673.459 465.639C673.299 465.365 673.219 465.045 673.219 464.678C673.219 464.311 673.299 463.982 673.459 463.693C673.623 463.404 673.836 463.16 674.098 462.961C674.359 462.762 674.656 462.611 674.988 462.51C675.32 462.404 675.654 462.352 675.99 462.352C676.361 462.352 676.719 462.414 677.062 462.539C677.406 462.66 677.711 462.832 677.977 463.055C678.242 463.277 678.455 463.547 678.615 463.863C678.775 464.18 678.859 464.533 678.867 464.924H677.754C677.723 464.678 677.662 464.455 677.572 464.256C677.482 464.053 677.363 463.879 677.215 463.734C677.066 463.59 676.889 463.479 676.682 463.4C676.479 463.318 676.248 463.277 675.99 463.277C675.783 463.277 675.58 463.307 675.381 463.365C675.186 463.424 675.012 463.512 674.859 463.629C674.703 463.746 674.578 463.891 674.484 464.062C674.395 464.234 674.35 464.434 674.35 464.66C674.354 464.906 674.416 465.115 674.537 465.287C674.658 465.455 674.812 465.598 675 465.715C675.184 465.832 675.383 465.93 675.598 466.008C675.816 466.086 676.021 466.154 676.213 466.213C676.529 466.311 676.846 466.43 677.162 466.57C677.479 466.707 677.768 466.883 678.029 467.098C678.287 467.297 678.494 467.541 678.65 467.83C678.811 468.119 678.891 468.453 678.891 468.832C678.891 469.215 678.805 469.549 678.633 469.834C678.465 470.119 678.246 470.355 677.977 470.543C677.707 470.734 677.402 470.879 677.062 470.977C676.723 471.07 676.383 471.117 676.043 471.117C675.637 471.117 675.236 471.049 674.842 470.912C674.451 470.775 674.111 470.578 673.822 470.32C673.564 470.098 673.359 469.838 673.207 469.541C673.059 469.24 672.979 468.906 672.967 468.539H674.074C674.109 468.805 674.182 469.041 674.291 469.248C674.4 469.451 674.541 469.623 674.713 469.764C674.885 469.908 675.082 470.018 675.305 470.092C675.531 470.162 675.777 470.197 676.043 470.197C676.254 470.197 676.461 470.172 676.664 470.121C676.871 470.066 677.055 469.982 677.215 469.869C677.375 469.76 677.506 469.621 677.607 469.453C677.709 469.281 677.76 469.078 677.76 468.844ZM686.256 463.395H683.619V471H682.564V463.395H679.928V462.469H686.256V463.395ZM693.258 467.227C693.254 467.531 693.227 467.84 693.176 468.152C693.129 468.461 693.055 468.76 692.953 469.049C692.852 469.338 692.721 469.607 692.561 469.857C692.404 470.107 692.217 470.326 691.998 470.514C691.779 470.701 691.527 470.85 691.242 470.959C690.961 471.064 690.645 471.117 690.293 471.117C689.941 471.117 689.623 471.064 689.338 470.959C689.057 470.85 688.807 470.701 688.588 470.514C688.369 470.326 688.18 470.107 688.02 469.857C687.859 469.604 687.729 469.332 687.627 469.043C687.521 468.754 687.443 468.455 687.393 468.146C687.342 467.838 687.314 467.531 687.311 467.227V466.254C687.314 465.949 687.34 465.643 687.387 465.334C687.438 465.021 687.516 464.721 687.621 464.432C687.723 464.143 687.852 463.873 688.008 463.623C688.168 463.369 688.357 463.146 688.576 462.955C688.795 462.768 689.045 462.621 689.326 462.516C689.611 462.406 689.93 462.352 690.281 462.352C690.633 462.352 690.951 462.406 691.236 462.516C691.521 462.621 691.773 462.768 691.992 462.955C692.211 463.143 692.398 463.363 692.555 463.617C |
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/concepts/units.md
Note: This content continues in the next part. | 465.643 687.387 465.334C687.438 465.021 687.516 464.721 687.621 464.432C687.723 464.143 687.852 463.873 688.008 463.623C688.168 463.369 688.357 463.146 688.576 462.955C688.795 462.768 689.045 462.621 689.326 462.516C689.611 462.406 689.93 462.352 690.281 462.352C690.633 462.352 690.951 462.406 691.236 462.516C691.521 462.621 691.773 462.768 691.992 462.955C692.211 463.143 692.398 463.363 692.555 463.617C692.715 463.867 692.848 464.137 692.953 464.426C693.055 464.715 693.129 465.016 693.176 465.328C693.227 465.641 693.254 465.949 693.258 466.254V467.227ZM692.186 466.242C692.182 466.039 692.168 465.828 692.145 465.609C692.121 465.387 692.082 465.166 692.027 464.947C691.969 464.732 691.893 464.527 691.799 464.332C691.705 464.133 691.588 463.957 691.447 463.805C691.307 463.656 691.141 463.539 690.949 463.453C690.758 463.363 690.535 463.318 690.281 463.318C690.031 463.318 689.811 463.363 689.619 463.453C689.428 463.543 689.262 463.662 689.121 463.811C688.98 463.963 688.863 464.139 688.77 464.338C688.676 464.533 688.602 464.738 688.547 464.953C688.488 465.172 688.445 465.393 688.418 465.615C688.395 465.834 688.381 466.043 688.377 466.242V467.227C688.381 467.426 688.395 467.637 688.418 467.859C688.445 468.082 688.488 468.301 688.547 468.516C688.605 468.734 688.682 468.943 688.775 469.143C688.869 469.342 688.986 469.516 689.127 469.664C689.268 469.816 689.434 469.938 689.625 470.027C689.816 470.117 690.039 470.162 690.293 470.162C690.547 470.162 690.77 470.117 690.961 470.027C691.156 469.938 691.324 469.816 691.465 469.664C691.602 469.516 691.715 469.344 691.805 469.148C691.898 468.949 691.975 468.74 692.033 468.521C692.088 468.307 692.125 468.088 692.145 467.865C692.168 467.643 692.182 467.43 692.186 467.227V466.242ZM697.74 467.52H696.035V471H694.957V462.469H697.459C697.857 462.477 698.232 462.533 698.584 462.639C698.936 462.744 699.244 462.902 699.51 463.113C699.771 463.324 699.977 463.59 700.125 463.91C700.277 464.227 700.354 464.6 700.354 465.029C700.354 465.307 700.312 465.561 700.23 465.791C700.152 466.021 700.043 466.23 699.902 466.418C699.762 466.605 699.594 466.771 699.398 466.916C699.203 467.061 698.988 467.184 698.754 467.285L700.564 470.93L700.559 471H699.416L697.74 467.52ZM696.035 466.629H697.488C697.73 466.625 697.959 466.588 698.174 466.518C698.389 466.443 698.578 466.338 698.742 466.201C698.902 466.064 699.029 465.898 699.123 465.703C699.217 465.504 699.264 465.275 699.264 465.018C699.264 464.744 699.219 464.506 699.129 464.303C699.039 464.096 698.914 463.922 698.754 463.781C698.594 463.645 698.402 463.541 698.18 463.471C697.961 463.4 697.721 463.363 697.459 463.359H696.035V466.629ZM706.195 468.791H703.348L702.662 471H701.578L704.332 462.469H705.24L707.947 471H706.869L706.195 468.791ZM703.641 467.848H705.908L704.783 464.145L703.641 467.848ZM714.85 469.881C714.717 470.037 714.576 470.18 714.428 470.309C714.279 470.434 714.125 470.543 713.965 470.637C713.691 470.801 713.396 470.922 713.08 471C712.764 471.082 712.432 471.121 712.084 471.117C711.732 471.113 711.408 471.061 711.111 470.959C710.818 470.854 710.555 470.709 710.32 470.525C710.086 470.346 709.881 470.133 709.705 469.887C709.529 469.641 709.383 469.373 709.266 469.084C709.145 468.799 709.053 468.5 708.99 468.188C708.932 467.871 708.9 467.553 708.896 467.232V466.242C708.9 465.926 708.928 465.611 708.979 465.299C709.033 464.982 709.115 464.68 709.225 464.391C709.334 464.102 709.471 463.834 709.635 463.588C709.799 463.338 709.996 463.121 710.227 462.938C710.453 462.758 710.711 462.615 711 462.51C711.289 462.404 711.613 462.352 711.973 462.352C712.371 462.352 712.738 462.414 713.074 462.539C713.41 462.66 713.703 462.834 713.953 463.061C714.203 463.291 714.404 463.568 714.557 463.893C714.709 464.213 714.803 464.572 714.838 464.971H713.766C713.723 464.725 713.656 464.498 713.566 464.291C713.477 464.08 713.359 463.9 713.215 463.752C713.066 463.604 712.891 463.488 712.688 463.406C712.484 463.32 712.248 463.277 711.979 463.277C711.721 463.277 711.492 463.322 711.293 463.412C711.094 463.498 710.92 463.615 710.771 463. |
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/concepts/units.md
Note: This content continues in the next part. | 834 713.953 463.061C714.203 463.291 714.404 463.568 714.557 463.893C714.709 464.213 714.803 464.572 714.838 464.971H713.766C713.723 464.725 713.656 464.498 713.566 464.291C713.477 464.08 713.359 463.9 713.215 463.752C713.066 463.604 712.891 463.488 712.688 463.406C712.484 463.32 712.248 463.277 711.979 463.277C711.721 463.277 711.492 463.322 711.293 463.412C711.094 463.498 710.92 463.615 710.771 463.764C710.623 463.912 710.5 464.086 710.402 464.285C710.305 464.48 710.225 464.688 710.162 464.906C710.1 465.125 710.055 465.348 710.027 465.574C710 465.801 709.986 466.02 709.986 466.23V467.232C709.99 467.447 710.008 467.67 710.039 467.9C710.074 468.127 710.127 468.35 710.197 468.568C710.268 468.787 710.357 468.994 710.467 469.189C710.576 469.385 710.709 469.557 710.865 469.705C711.018 469.854 711.195 469.973 711.398 470.062C711.602 470.148 711.832 470.193 712.09 470.197C712.238 470.201 712.393 470.195 712.553 470.18C712.717 470.164 712.875 470.133 713.027 470.086C713.18 470.039 713.322 469.977 713.455 469.898C713.588 469.816 713.699 469.711 713.789 469.582L713.801 467.666H712.066V466.752H714.832L714.85 469.881ZM721.23 467.057H717.668V470.08H721.822V471H716.584V462.469H721.77V463.395H717.668V466.137H721.23V467.057Z" fill="#FF7A00"></path>
<path d="M785.639 471H784.537L781.227 464.625L781.209 471H780.113V462.469H781.215L784.525 468.832L784.543 462.469H785.639V471ZM792.195 467.057H788.633V470.08H792.787V471H787.549V462.469H792.734V463.395H788.633V466.137H792.195V467.057ZM800.463 463.395H797.826V471H796.771V463.395H794.135V462.469H800.463V463.395ZM802.361 471L801.324 462.469H802.355L802.971 468.352L803.006 468.691L803.07 468.34L804.102 462.469H805.045L806.082 468.346L806.146 468.691L806.182 468.34L806.797 462.469H807.822L806.785 471H805.678L804.641 464.93L804.582 464.572L804.518 464.936L803.475 471H802.361ZM814.672 467.227C814.668 467.531 814.641 467.84 814.59 468.152C814.543 468.461 814.469 468.76 814.367 469.049C814.266 469.338 814.135 469.607 813.975 469.857C813.818 470.107 813.631 470.326 813.412 470.514C813.193 470.701 812.941 470.85 812.656 470.959C812.375 471.064 812.059 471.117 811.707 471.117C811.355 471.117 811.037 471.064 810.752 470.959C810.471 470.85 810.221 470.701 810.002 470.514C809.783 470.326 809.594 470.107 809.434 469.857C809.273 469.604 809.143 469.332 809.041 469.043C808.936 468.754 808.857 468.455 808.807 468.146C808.756 467.838 808.729 467.531 808.725 467.227V466.254C808.729 465.949 808.754 465.643 808.801 465.334C808.852 465.021 808.93 464.721 809.035 464.432C809.137 464.143 809.266 463.873 809.422 463.623C809.582 463.369 809.771 463.146 809.99 462.955C810.209 462.768 810.459 462.621 810.74 462.516C811.025 462.406 811.344 462.352 811.695 462.352C812.047 462.352 812.365 462.406 812.65 462.516C812.936 462.621 813.188 462.768 813.406 462.955C813.625 463.143 813.812 463.363 813.969 463.617C814.129 463.867 814.262 464.137 814.367 464.426C814.469 464.715 814.543 465.016 814.59 465.328C814.641 465.641 814.668 465.949 814.672 466.254V467.227ZM813.6 466.242C813.596 466.039 813.582 465.828 813.559 465.609C813.535 465.387 813.496 465.166 813.441 464.947C813.383 464.732 813.307 464.527 813.213 464.332C813.119 464.133 813.002 463.957 812.861 463.805C812.721 463.656 812.555 463.539 812.363 463.453C812.172 463.363 811.949 463.318 811.695 463.318C811.445 463.318 811.225 463.363 811.033 463.453C810.842 463.543 810.676 463.662 810.535 463.811C810.395 463.963 810.277 464.139 810.184 464.338C810.09 464.533 810.016 464.738 809.961 464.953C809.902 465.172 809.859 465.393 809.832 465.615C809.809 465.834 809.795 466.043 809.791 466.242V467.227C809.795 467.426 809.809 467.637 809.832 467.859C809.859 468.082 809.902 468.301 809.961 468.516C810.02 468.734 810.096 468.943 810.189 469.143C810.283 469.342 810.4 469.516 810.541 469.664C810.682 469.816 810.848 469.938 811.039 470.027C811.23 470.117 811.453 470.162 811.707 470.162C811.961 470.162 812.184 470.117 812.375 470.027C812.57 469.938 812.738 469.816 812.879 469.664C813.016 469.516 813.129 469.344 813.219 469.148C813.312 468.949 813. |
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/concepts/units.md | 859C809.859 468.082 809.902 468.301 809.961 468.516C810.02 468.734 810.096 468.943 810.189 469.143C810.283 469.342 810.4 469.516 810.541 469.664C810.682 469.816 810.848 469.938 811.039 470.027C811.23 470.117 811.453 470.162 811.707 470.162C811.961 470.162 812.184 470.117 812.375 470.027C812.57 469.938 812.738 469.816 812.879 469.664C813.016 469.516 813.129 469.344 813.219 469.148C813.312 468.949 813.389 468.74 813.447 468.521C813.502 468.307 813.539 468.088 813.559 467.865C813.582 467.643 813.596 467.43 813.6 467.227V466.242ZM819.154 467.52H817.449V471H816.371V462.469H818.873C819.271 462.477 819.646 462.533 819.998 462.639C820.35 462.744 820.658 462.902 820.924 463.113C821.186 463.324 821.391 463.59 821.539 463.91C821.691 464.227 821.768 464.6 821.768 465.029C821.768 465.307 821.727 465.561 821.645 465.791C821.566 466.021 821.457 466.23 821.316 466.418C821.176 466.605 821.008 466.771 820.812 466.916C820.617 467.061 820.402 467.184 820.168 467.285L821.979 470.93L821.973 471H820.83L819.154 467.52ZM817.449 466.629H818.902C819.145 466.625 819.373 466.588 819.588 466.518C819.803 466.443 819.992 466.338 820.156 466.201C820.316 466.064 820.443 465.898 820.537 465.703C820.631 465.504 820.678 465.275 820.678 465.018C820.678 464.744 820.633 464.506 820.543 464.303C820.453 464.096 820.328 463.922 820.168 463.781C820.008 463.645 819.816 463.541 819.594 463.471C819.375 463.4 819.135 463.363 818.873 463.359H817.449V466.629ZM825.582 467.039L824.633 468.117V471H823.525V462.469H824.633V466.635L825.459 465.604L827.961 462.469H829.279L826.297 466.201L829.479 471H828.16L825.582 467.039Z" fill="black"></path>
<defs>
<clipPath id="clip0_238_127">
<rect width="830" height="446" fill="white"></rect>
</clipPath>
</defs>
</svg>
## What is a Unit?
The ao Computer is composed of three Unit types, each type contains a set of responsibilities for the computer. And each Unit is horizontally scalable.
In ao we have the `Messenger Unit` or `MU`, and the `Scheduler Unit` or `SU`, and the `Compute Unit` or the `CU`. These units are the building blocks of the ao Computer Grid. There can be 1 or more of these units on the network and they work together to power the ao Operating System or `aos`.

- Messenger Unit - This unit is the front door to ao, it receives all the messages from the outside and as well as directs traffic flow for Processes. This traffic flow we call `pushing`. Each process can return an Outbox when it evaluates a Message, and this Outbox can be filled with Messages or requests to Spawn new processes, and the Messenger Unit is responsible for extracting these Messages from the Outbox and signing them and sending them to the Scheduler Units for processing.

- Scheduler Unit - The Scheduler unit is responsible for ordering the messages, and storing those messages on Arweave. It is important that every message is appropriately ordered so that the evaluation can be replayed and verified. The Scheduler Unit is responsible for this process. It provides the abilty to query it via an endpoint to get the order of messages for evaluation.

- Compute Unit - The Compute unit is responsible for compute, this unit loads the binary module and manages the memory of that module, so that the execution of the process is alway running on the most up to date memory. The compute unit provides the results of the evaluation back to the the messenger unit, which can then push any messages in the outbox of the given process.
## Summary
The ao Computer consists of three scalable unit types—Messenger Unit (MU), Scheduler Unit (SU), and Compute Unit (CU)—which form the foundation of the ao Computer. These units can exist in multiples on the network and collectively operate the ao Operating System (aos).
The MU acts as the entry point, receiving external messages and managing process communications. It processes outgoing messages and spawn requests from process outboxes and forwards them to the SU.
The SU ensures messages are properly sequenced and stored on Arweave, maintaining order for consistent replay and verification of message evaluations.
The CU handles computation, loading binary modules, and managing memory to ensure processes run with current data. It then returns the evaluation results to the MU for further message handling.
|
This is a Markdown documentation from the AO documentation repository. Filename: messages.md Path: ../ao-cookbook/src/concepts/messages.md | # Messages
The Message serves as the fundamental data protocol unit within ao, crafted from [ANS-104 DataItems](https://specs.g8way.io/?tx=xwOgX-MmqN5_-Ny_zNu2A8o-PnTGsoRb_3FrtiMAkuw), thereby aligning with the native structure of Arweave. When engaged in a Process, a Message is structured as follows:
```lua
{
Cron = false,
Data = "Hello aos",
Epoch = 0,
From = "5WzR7rJCuqCKEq02WUPhTjwnzllLjGu6SA7qhYpcKRs",
Id = "ayVo53qvZswpvxLlhMf8xmGjwxN0LGuHzzQpTLT0_do",
Nonce = 1,
Owner = "z1pq2WzmaYnfDwvEFgUZBj48anUsxxN64ZjbWOsIn08",
Signature = "...",
Tags = {
Type = "Message",
Variant = "ao.TN.1",
["Data-Protocol"] = "ao",
["From-Module"] = "lXfdCypsU3BpYTWvupgTioLoZAEOZL2_Ihcqepz6RiQ",
["From-Process"] = "5WzR7rJCuqCKEq02WUPhTjwnzllLjGu6SA7qhYpcKRs"
},
Target = "5WzR7rJCuqCKEq02WUPhTjwnzllLjGu6SA7qhYpcKRs",
Timestamp = 1704936415711,
["Block-Height"] = 1340762,
["Forwarded-By"] = "z1pq2WzmaYnfDwvEFgUZBj48anUsxxN64ZjbWOsIn08",
["Hash-Chain"] = "hJ0B-0yxKxeL3IIfaIIF7Yr6bFLG2vQayaF8G0EpjbY"
}
```
This architecture merges the Assignment Type with the Message Type, granting the Process a comprehensive understanding of the Message's context for effective processing.
When sending a message, here is a visual diagram of how the messages travels through the ao computer.

The message workflow initiates with the MU (Messenger Unit), where the message's signature is authenticated. Following this, the SU (Scheduler Unit) allocates an Epoch and Nonce to the message, bundles the message with an Assignment Type, and dispatches it to Arweave. Subsequently, the `aoconnect` library retrieves the outcome from the CU (Compute Unit). The CU then calls for all preceding messages leading up to the current Message Id from the SU (Scheduler Unit), processes them to deduce the result. Upon completion, the computed result is conveyed back to `aoconnect`, which is integrated within client interfaces such as `aos`.
## Ethereum Signed Message
If the Message [ANS-104 DataItem](https://specs.g8way.io/?tx=xwOgX-MmqN5_-Ny_zNu2A8o-PnTGsoRb_3FrtiMAkuw) was signed using Ethereum keys,
then the value in the `Owner` and `From` fields will be the
[EIP-55](https://github.com/ethereum/ercs/blob/master/ERCS/erc-55.md) Ethereum address of the signer.
For example: `0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359`.
## Summary
Messages serve as the primary data protocol type for the ao network, leveraging ANS-104 Data-Items native to Arweave. Messages contain several fields including data content, origin, target, and cryptographic elements like signatures and nonces. They follow a journey starting at the Messenger Unit (MU), which ensures they are signed, through the Scheduler Unit (SU) that timestamps and sequences them, before being bundled and published to Arweave. The `aoconnect` library then reads the result from the Compute Unit (CU), which processes messages to calculate results and sends responses back through `aoconnect`, utilized by clients such as `aos`. The CU is the execution environment for these processes.
|
This is a Markdown documentation from the AO documentation repository. Filename: how-it-works.md Path: ../ao-cookbook/src/concepts/how-it-works.md | # How ao messaging works
Before we dive in to ao, I want to share with you a little information about unix. Unix is a powerful operating system, but in its design it is focused on two Principal "Types". Files and Programs. A File is data and a Program is logic, when you combine the two you get information.
`Input.file | TransformProgram | Output.file`
You might have done something like this on the command line without knowing what you were doing. Being able to connect files to programs and return files which can then be passed to other programs creates a complex system composed of simple applications. This is a very powerful idea.
Now, lets talk about `ao` the hyper parallel computer, and lets change the idea of a File to the `ao` concept of a Message and the idea of a Program to the `ao` concept of a Process. The `ao` computer takes messages and sends them to Processes in which those Processes can output messages that can be sent to other Processes. The result is a complex system built on simple modular logic containers.
`MessageA | Process | MessageB`

Here is a description of the process as outlined in the flowchart:
1. A message is initiated from an ao Connect. This message is sent to the `mu` service using a POST request. The body of the request contains data following a protocol, labeled 'ao', and is of the type 'Message'.
2. The `mu` service processes the POST request and forwards the message to the `su` service. This is also done using a POST request with the same data protocol and message type.
3. The `su` service stores the assignment and message on Arweave.
4. A GET request is made to the `cu` service to retrieve results based on a message ID. The `cu` is a service that evaluates messages on processes and can return results based on an individual message identifier.
5. A GET request is made to the `su` service to retrieve the assignment and message. This request is looking for messages from a process ID, within a range of time from a start (from the last evaluation point) to (to the current message ID).
6. The final step is to push any outbox Messages. It involves reviewing the messages and spawns in the Result object. Based on the outcome of this check, the steps 2, 3, and 4 may be repeated for each relevant message or spawn.
|
This is a Markdown documentation from the AO documentation repository. Filename: index.md Path: ../ao-cookbook/src/releasenotes/index.md | ---
next:
text: "Getting Started"
link: "./getting-started"
---
# Release Notes
This section provides detailed information about updates, new features, bug fixes, and changes in each release of AO and its related tools. Release notes are essential for understanding what's changed between versions and how these changes might affect your projects.
## AOS Releases
AOS is the operating system built on top of the AO computer. These release notes document changes and improvements to AOS:
- [AOS 2.0.2](aos-2_0_2) - Improved spawn process times and various bug fixes
- [AOS 2.0.1](aos-2_0_1) - Details about patch updates and fixes in the 2.0.1 release
- [AOS 2.0.0](aos-2_0_0) - Major release information, including new features and significant changes
## Why Read Release Notes?
Release notes provide valuable information for developers:
- Learn about new features that could enhance your applications
- Understand potential breaking changes that might affect existing code
- Discover bug fixes that resolve issues you may have encountered
- Stay informed about security updates and best practices
We recommend reviewing release notes before upgrading to a new version to ensure a smooth transition.
## Navigation
Use the sidebar to navigate between different release notes. Notes are organized chronologically with the most recent releases first.
|
This is a Markdown documentation from the AO documentation repository. Filename: aos-2_0_0.md Path: ../ao-cookbook/src/releasenotes/aos-2_0_0.md
Note: This content continues in the next part. | # AOS Release Notes v2.0.0
:wave: Hey Developers, we hear you, AOS needs a DX upgrade and this release delivers!
## Install instructions for AOS 2.0.0
```shell
npm i -g https://get_ao.g8way.io
```
> Use `.update` to update earlier aos processes. See the **note** below on what features are not supported on earlier processes.
Cool features:
- Receive the `await` of aos
- REQ/RES semantics with References
- default actions for handlers.
## `Receive()` the await of aos
Meet `Lua Coroutines`, they are very similar to `await` or `generators`, coroutines are now added to aos handlers!
> Coroutines are like taking turns playing a game with your friends. Each friend (coroutine) has a turn to play (do some work), but they don't finish all at once. Instead, they pause their turn (yield) so the next friend can play. When it's their turn again, they continue from where they left off (resume).
This means you can send a message then `wait` using `Receive` method and when a message is send to your process that matches the pattern, you can get the result and resume your logic.
Easier to show, than tell.
```lua=
.editor
Send({Target = ao.id, Data = "Hello"})
local res = Receive({Data = "Hello"})
print(res.Data)
.done
```
The global Receive function yields until a msg is returned that matches that pattern, then it resumes executing the rest of the code.
> NOTE: This feature is only available for AOS 2 processes, even if your process is upgraded to 2, coroutines can not be supported.
## REQUEST/RESPONSE semantics with References
Often times, you want to receive a reply from the process as a response to the specific message you sent. aos 2.0 makes this pattern intuitive and seamless.
setup the server handler _notice the msg.reply_
```lua=
.editor
Handlers.add("Greeting-Name", { Action = "Greeting"}, function (msg)
msg.reply({Data = "Hello " .. msg.Data or "bob"})
print('server: replied to ' .. msg.Data or "bob")
end)
.done
```
setup the client
```lua=
.editor
local greeting = Send({Target = ao.id, Action = "Greeting", Data = "George"}).receive().Data
print("client: " .. greeting)
.done
```
output
```
server: replied to George
client: Hello George
```
When building complex workflows, developers need a request/response system that provides guarentees. ie returning message is that is directly referenced and handled. This works using built-in reference tags and using the `msg.reply` function on the server.
try another example:
```lua=
.editor
local greeting = Send({Target = ao.id, Action = "Greeting", Data = "Spongebob"}).receive().Data
print(greeting .. " Squarepants")
```
> NOTE: This feature is only available for AOS 2 processes, even if your process is upgraded to 2, coroutines can not be supported.
## default Action Handlers
Handlers are a core design component when creating aos processes, they give developers a powerful pipeline for managing messages. The `Action` tag has become the common tag name to describe the intent of the incoming message. Now you can just supply a `value` to the pattern argument and it will infer `{ Action = [value] }` as your pattern matcher for this handler.
Before AOS 2.0
```lua
Handlers.add("Get-Balance", function (msg) return msg.Action == "Balance", doBalance)
```
After AOS 2.0
```lua
Handlers.add("Get-Balance", "Balance", doBalance)
```
> If your pattern matcher is matching on Action = "xxx", you can just supply the string
## FYI Breaking Changes
- Authority tags are required for all processes. Messages will not be trusted by default, any Spawn MUST supply Authority tags if they plan to receive messages from MUs. The new test MU is `fcoN_xJeisVsPXA-trzVAuIiqO3ydLQxM-L4XbrQKzY`
- Message Tag `Ref_` has been replaced for `Reference` - aos 2.0 process will always use the 'Reference' tag as a unique message counter.
- No more `result.Output.data.output`, aos processes always return a consistent `Output.data` shape:
```lua
Output = {
data = String,
prompt = String,
print = Boolean
}
```
# Handlers version 0.0.5
Handlers increase the ability to manage messages, but the previous versions did not address complex logic flows between processes, in this version we leverage erlang style patterns to improve the handlers lua module to provide a powerful toolkit for developers to handle complex logic flows between their processes.
## Handlers.once
Handlers.once is like `Handlers.add` but for handling only one message. This function allows you to supply a pattern and handle function and the next time it is matched AOS will process this handler, then remove it from the `Handlers.list`.
```lua
Handlers.once(
"onetime",
{ Action = "Run-Once"},
function (msg)
print("This handler will only run once!")
end
)
```
## MaxRuns
Optional `MaxRuns` argument for each handler, letting you choose the number of runs before it removes itself. default is infinite.
```lua
Handlers.add(
"example-handler",
{ Action = "Example" },
function(msg)
print("Handler executed")
end,
3 -- MaxRuns is set to 3
)
```
## \* Sending Messages .receive()
> NOTE: This will only work with new AOS 2 processes not with upgraded processes.
With `.receive` you can yield code execution, until a message is returned. The receive function takes an optional target? argument.
## \* Sending Messages .onReply()
`.onReply` is a function returned from a message function call, that enables developers to provide a callback function. This is an alternative strategy and can be useful if you have generic composable functions.
```lua
Handlers.once(
{ Test = "1" },
function(m)
print("Got message! Replying...")
m.reply({ Test = "1-reply", Status = "Success" })
end
)
```
```lua
function printMsg(prop)
return function (m)
print(m[prop])
end
end
Send({
Target = target,
Test = "1"
}).onReply(printMsg('Test'))
```
## \* msg.forward(target, fwdMsg)
REQUEST/RESPONSE is cool, but what about if I want to receive a message from C when I send a message to B and B sends a message to C. In this scenario or any other multi-forwarding scenario, we have a `msg.forward` function. The forward function takes a target and a partial message to overwrite any of the message you want to forward.
example:
this example requires three processes:
lastname process
```sh
aos lastname
```
```lua=
.editor
Handlers.add("Greeting", "Greeting", function (msg)
msg.forward(msg['X-Origin'], { Data = msg.Data .. " Squarepants"})
end)
.done
```
greeting process
```sh
aos greeting
```
```lua=
.editor
local lastname = "your lastname process id above"
Handlers.add("Greeting", "Greeting", function (msg)
msg.forward(lastname, { Data = "Hello " .. msg.Data })
end)
.done
```
client process
```sh
aos spongebob
```
```lua=
.editor
local Greeting = "your greeting process id"
local res = Send({Target = Greeting, Action = "Greeting", Data = "SpongeBob"}).receive("your lastname process id above")
print(res.Data)
.done
```
> The receive function can take a `target` process id to handle the target that will return the message. The `forward` and `receive` methods can be used to create `A -> B -> C -> A` message passing scenarios.
## \* Message object enhancements: `.reply(newMsg)` and `.forward(target, newMsg)`
All messages received by handlers now have .reply() and .forward() functions which allow the process to easily return a response to the user without having to manually deal with the X-Reference and Target values. This mechanism also allows the developer to easily build pipelines that process a request through many processes, then eventually return to the user.
The reply method takes a partial message table. The forward function takes a target property and a partial message table.
## Pattern Matchers and Resolvers
The Handler functions takes four arguments,
| Name | Type | Description |
| ------- | --------------------------- | ---------------------------------------------------------------------------------------------------------- |
| name | string | Handler Unique Identifier |
| pattern | string \| table \| function | the pattern lets the process pipeline know if it should invoke and break, or skip, or invoke and continue. |
| handle | function | a function that processes the message |
| MaxRuns | number? (optional) | the number of max runs before the handler is removed automatically. Only available using `Handlers.add()`. |
### Pattern Matching
More expressive and easy to use matches. As well as functions, handlers now supports:
- Strings as match, checking against the Action tag.
- 'MessageMatchSpecs': Partially described messages.
In this mode, each tag given in the 'spec' is checked against the value in the message. It allows you to:
- Wild |
This is a Markdown documentation from the AO documentation repository. This is a continuation from the previous part. Filename: aos-2_0_0.md Path: ../ao-cookbook/src/releasenotes/aos-2_0_0.md | target property and a partial message table.
## Pattern Matchers and Resolvers
The Handler functions takes four arguments,
| Name | Type | Description |
| ------- | --------------------------- | ---------------------------------------------------------------------------------------------------------- |
| name | string | Handler Unique Identifier |
| pattern | string \| table \| function | the pattern lets the process pipeline know if it should invoke and break, or skip, or invoke and continue. |
| handle | function | a function that processes the message |
| MaxRuns | number? (optional) | the number of max runs before the handler is removed automatically. Only available using `Handlers.add()`. |
### Pattern Matching
More expressive and easy to use matches. As well as functions, handlers now supports:
- Strings as match, checking against the Action tag.
- 'MessageMatchSpecs': Partially described messages.
In this mode, each tag given in the 'spec' is checked against the value in the message. It allows you to:
- Wildcard (`_`): Is the tag given at all?
- Function: Run a function against the tag value (optional second argument is the full message)
- String: Exact match
- String: Lua matching syntax
```lua
Handlers.add("token.transfer", {
Action = "Transfer"
Quantity = "%d+",
Recipient = "_"
}, doTransfer)
```
### Resolvers
Resolvers are tables in which each key is a pattern matching table and the value is a function that is executed based on the matching key. This allows developers to create case like statements in the resolver property.
```lua
Handlers.add("foobarbaz", { Action = "Update" }, {
[{ Status = "foo" }] = function (msg) print("foo") end,
[{ Status = "bar" }] = function (msg) print("bar") end,
[{ Status = "baz" }] = function (msg) print("baz") end
})
```
In this example, if a message with an Action of `Update` and the resolver looks at the `Status` tag on the message and executes the function based on the matching Status Value.
## Using Receive with Spawn
> NOTE: This will only work with new AOS 2 processes not with upgraded processes.
When you spawn a message you get back a success message with an action of Spawned.
```lua=
.editor
Spawn(ao.env.Module.Id, { })
local m = Receive({ Action = "Spawned" })
print(m['Process'])
.done
```
Or if you want to get Spawned by reference using .receive
> NOTE: This will only work with new AOS 2 processes not with upgraded processes.
```lua=
.editor
local msg = Spawn(ao.env.Module.Id, {}).receive()
print(msg.Process)
.done
```
# Updates
## Assignment Checks
With this update, it is important to update all AOS processes to add Assignment Check Handler, this handler will be prepended to your process and add whitelisted assignment protection for all of your processes.
Just run `.update` on AOS Client Version 2.0.0
```lua
Handlers.prepend("Assignment-Check", function (msg)
return ao.isAssignment(msg) and not ao.isAssignable(msg)
end, function (msg)
Send({Target = msg.From, Data = "Assignment is not trusted by this process!"})
print('Assignment is not trusted! From: ' .. msg.From .. ' - Owner: ' .. msg.Owner)
end)
```
## \* os.time
`os.time` will now return the timestamp provided by the Message Assignment in the Scheduling Unit (SU).
## CLI Updates
External editor as a scratch pad
```
.pad
```
Toggle dryrun mode
```
.dryrun
```
Short cut for launching a sqlite module
```sh
aos [name] --sqlite
```
Creates a new SQLite aos process
## now you can [.delete] the previous line in the built in editor
```lua
.editor
local x = 1
print(x)
.delete
```
The .delete command deletes the previous line and allows you to continue to edit.
## PRs
- Improved processid identification - https://github.com/permaweb/aos/pull/301
- update: assignable package installer - https://github.com/permaweb/aos/pull/302
## Appendix
"\*" - These features tagged with an "\*" are only available on new processes that were spawned with AOS Client Version 1.12.1 and AOS version 0.2.2.
## Summary
AOS 2 is a huge shift in DX, we are releasing as a Release Candidate to get feedback and refine the functionality and correct any bugs before we fully launch to general availability.
|
This is a Markdown documentation from the AO documentation repository. Filename: aos-2_0_1.md Path: ../ao-cookbook/src/releasenotes/aos-2_0_1.md | # AOS Release Notes v2.0.1
## Install
```sh
npm install -g https://get_ao.arweave.net
```
## Features
- Bootloader
- Handlers.once (defaults to prepend mode)
- WeaveDrive with Attestors
- WeaveDrive L2 Headers
- Spawn module by name
- Graphql Modules
- msg.reply patch
## Bootloader
Bootloader enables users to include a script to evaluate when spawning a process. You can include this script either with the `Data` property or with a `txId` specified on the `On-Boot` Tag.
### Examples
via AOS Console using `data`
```shell
echo "print('Hello Bootloader')" > example.lua
aos ex1 --tag-name On-Boot --tag-value Data --data example.lua
```
> As AOS boots up, you should see Hello Bootloader!
```
AOS Client Version: 2.0.1. 2024
Type "Ctrl-C" twice to exit
Your AOS process: uJvxYDk6Q1JvocgfajNbEcKmqoCDWEksjG6EH1o9xRo
Hello Bootloader
```
via Spawn message using `data`
```lua
Spawn(ao.env.Module.Id, {
["On-Boot"] = "Data",
Data = [[ print("Hello World!") ]]
})
```
via AOS Console using `txId`
```shell
aos ex2 --tag-name On-Boot --tag-value 1VAPs_V6iVx-zxuMW7Ns0IrYqqk6LAEDAe1b-EqKP28
```
via Spawn message using `txId`
```lua
Spawn(ao.env.Module.Id, {
["On-Boot"] = "1VAPs_V6iVx-zxuMW7Ns0IrYqqk6LAEDAe1b-EqKP28"
})
```
## Hanlders.once (defaults to prepend mode)
Now, when Handlers.once is called, it will default to prepend to the top of the Handlers stack.
```lua
Handlers.once("Name", function (msg)
-- do something
end)
-- is the same as
Handlers.prepend("Name", "Name", function (msg)
-- do something
end, 1)
```
## WeaveDrive with Attestors
Using WeaveDrive to access dataitems from Arweave with Attestations. When you spawn a process you can provide one or more `Attestor` tags with arweave wallet addresses as value. Then the arweave wallets set as attestors can create `Attestation` dataItems that authorize access to a specific arweave dataitem using weavedrive.
Here is a short guide on how to use WeaveDrive with Attestors - https://hackmd.io/@ao-docs/r1bixxO-Je
## WeaveDrive L2 Headers
Now, weaveDrive users can get L2 dataItem headers using `drive.getDataItem(id)` from the WeaveDrive apm module. This features allows indexers to index L2 dataItems and processes like stamps2 to determine if a user is stamping an Atomic Asset. The result is more interoperability with Arweave.
```lua
.load-blueprint apm
apm.install('@rakis/WeaveDrive')
local drive = require('@rakis/WeaveDrive')
local metaData = drive.getDataItem('K1jD3xrCJV3UnRtnBuQdd7k8HCwh9TX9GS-kh_Oevvw')
```
## Spawn module by name
Spawn module by name or identifier:
```sh
aos gql --module aos-graphql-sqlite-sm
```
Create a graphql/sqlite process by using the module name.
## Graphql Modules
You can now build graphql processes using the graphql custom module:
https://github.com/TillaTheHun0/aos-graphql
## `msg.reply` legacy patch
This release provides a blueprint optional patch to allow for old processes to leverage the `msg.reply` function.
`.load-blueprint patch-legacy-reply`
A blueprint that creates a passthrough handler to attach `.reply` function to the `msg` table, for handlers downstream to leverage.
This allows developers to take advantage of the `.receive` function in AOS 2.0 and interact with older AOS 0.x processes. With this patch AOS 0.x processes need to be able to reply with an `X-Reference` tag. So that the `.receive` co-routine can properly catch the response sent by the calling AOS 2.0 process.
Then open an older process:
```sh
aos [my aos process]
```
And run `.load-blueprint patch-legacy-reply`
```
.load-blueprint patch-legacy-reply
```
## Source
You can review the blueprint source here:
https://github.com/permaweb/aos/blob/main/blueprints/patch-legacy-reply.lua
```lua
-- patch reply
local function patchReply(msg)
if not msg.reply then
msg.reply = function (replyMsg)
replyMsg.Target = msg["Reply-To"] or (replyMsg.Target or msg.From)
replyMsg["X-Reference"] = msg["X-Reference"] or msg.Reference or ""
replyMsg["X-Origin"] = msg["X-Origin"] or ""
return ao.send(replyMsg)
end
end
end
Handlers.prepend("_patch_reply", function (msg) return "continue" end, patchReply)
```
---
Fixes:
- bubble up errors during co-routine resume functions - https://github.com/permaweb/aos/pull/374
- update token.lua to check for .reply before using the replay method
- staking blueprint improvement to default unstake delay block wait, and prepend finalize handler.
- fixed bug with Handlers.remove - https://github.com/permaweb/aos/pull/366
|
This is a Markdown documentation from the AO documentation repository. Filename: aos-2_0_2.md Path: ../ao-cookbook/src/releasenotes/aos-2_0_2.md | # AOS Release Notes v2.0.2
## Install
```sh
npm install -g https://get_ao.arweave.net
```
## Core Features
- **Improved Spawn Process Times**: This release improves the process creation times for testnet. When you create new `aos` processes, it should now take only a few seconds to spawn.
## Fixes
- Issue [#388](https://github.com/permaweb/aos/pull/388): fix(services/version): prevent checkForUpdate() 5xx response codes from stopping connection
- Issue [#392](https://github.com/permaweb/aos/pull/392): Add Action Tag to broadcasted messages in Chatroom Blueprint
- Issue [#391](https://github.com/permaweb/aos/pull/391): feat(aos): if multiple processes have the same name, allow user to select which process to run
- Issue [#390](https://github.com/permaweb/aos/pull/390): fix(aos): fix error lines base cases, loading
- Issue [#386](https://github.com/permaweb/aos/pull/386): fix(aos): get blueprints now uses dir
- Issue [#337](https://github.com/permaweb/aos/issues/337): matchesspec does not work with from-process
|
This is a JavaScript React code from the AO documentation repository. Filename: replRenderer.jsx Path: ../ao-cookbook/src/tools/replRenderer.jsx | import React from "react";
import { createRoot } from "react-dom/client";
import { CodeCell } from "@betteridea/codecell";
const ReplRenderer = ({ id, code }) => (
<CodeCell
appName="Cookbook"
cellId={id}
code={code}
nowallet={true}
height="169px"
enableToasts={true}
/>
);
export const renderRepl = (containerId, code) => {
const container = document.getElementById(containerId);
if (container) {
createRoot(container).render(<ReplRenderer id={containerId} code={code} />);
}
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.