{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Michelson kernel basics\n", "Welcome, friend! This an ultimate Michelson playground, and in this tutorial, you will learn how to make the most of all available functionality. \n", "If there are any questions, please ask in our telegram chat https://t.me/baking_bad_chat" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
value | type |
---|---|
\"Hello, world!\" | string |
value | type | name |
---|---|---|
257000000 | mutez | @balance |
value | type |
---|---|
\"We got money!\" | string |
value | type | name |
---|---|---|
\"abc\" | string | @abc |
value | type | name |
---|---|---|
\"abc\" | string | @abc |
\"We got money!\" | string |
value | type | name |
---|---|---|
100500 | mutez | @amount |
value | type | name |
---|---|---|
0 | mutez | @amount |
value | type |
---|---|
amount: '0'\n", "code: code { { UNIT ; FAILWITH } }\n", "kind: origination\n", "storage: Unit\n", "target: KT1Mjjcb6tmSsLm7Cb3DSQszePjfchPM4Uxm | operation |
value | type |
---|---|
\"Hey!\" | string |
value | type |
---|---|
Pair 0xdeadbeef (Pair -1 Unit) | pair (bytes :hashed_secret %refund)\n", " (pair\n", " (big_map bytes\n", " (pair (pair %recipients (address %initiator) (address %participant))\n", " (pair %settings (pair (mutez %amount) (timestamp %refund_time))\n", " (mutez %payoff))))\n", " unit) |
value | type |
---|---|
Pair 0 Unit | pair\n", " (big_map bytes\n", " (pair (pair %recipients (address %initiator) (address %participant))\n", " (pair %settings (pair (mutez %amount) (timestamp %refund_time)) (mutez %payoff))))\n", " unit |
big_map | action | key | value |
---|---|---|---|
0 | alloc | bytes | pair (pair %recipients (address %initiator) (address %participant))\n", " (pair %settings (pair (mutez %amount) (timestamp %refund_time)) (mutez %payoff)) |
value | type |
---|---|
-1 | big_map string string |
value | type |
---|---|
-1 | big_map string string |
big_map | action | key | value |
---|---|---|---|
0 | alloc | string | string |
0 | update | \"one\" | \"two\" |
value | type |
---|---|
0 | big_map int int |
big_map | action | key | value |
---|---|---|---|
0 | alloc | int | int |
0 | update | 1 | 2 |
0 | update | 2 | 3 |
value | type |
---|---|
0 | big_map int int |
big_map | action | key | value |
---|---|---|---|
0 | update | 4 | 5 |
value | type | name |
---|---|---|
1583536716 | timestamp | @now |
\"NetXdQprcVkpaWU\" | chain_id | @mainnet |
value | type |
---|---|
None | option (contract unit) |
value | type |
---|---|
Pair True\n", " (Pair 9\n", " (Pair\n", " (Pair \"tz1M9CMEtsXm3QxA7FmMU2Qh7xzsuGXVbcDr\"\n", " { Elt \"By\" \"https://SmartPy.io\" ;\n", " Elt \"Help\" \"Use Build to define a new game board and Play to make moves\" ;\n", " Elt \"Play at\"\n", " \"https://smartpy.io/demo/explore.html?address=KT1UvfyLytrt71jh63YV4Yex5SmbNXpWHxtg\" ;\n", " Elt \"SmartPy Template\"\n", " \"https://smartpy.io/demo/index.html?template=tictactoeFactory.py\" })\n", " False)) | pair (bool %setPause)\n", " (pair\n", " (big_map string\n", " (pair\n", " (pair\n", " (pair\n", " (pair\n", " (pair\n", " (pair (pair (map %deck int (map int int)) (bool %draw))\n", " (map %metaData string string))\n", " (int %nbMoves))\n", " (int %nextPlayer))\n", " (address %player1))\n", " (address %player2))\n", " (int %winner)))\n", " (pair (pair (address %admin) (map %metaData string string)) (bool %paused))) |
value | type |
---|---|
Some (Pair\n", " (Pair\n", " (Pair\n", " (Pair\n", " (Pair\n", " (Pair\n", " (Pair\n", " { Elt 0 { Elt 0 0 ; Elt 1 0 ; Elt 2 0 } ;\n", " Elt 1 { Elt 0 0 ; Elt 1 1 ; Elt 2 0 } ;\n", " Elt 2 { Elt 0 0 ; Elt 1 0 ; Elt 2 0 } }\n", " False)\n", " {})\n", " 1)\n", " 2)\n", " \"tz1S37hEZnNrAXfzuRYSjG9Qxq8VrwpWaukB\")\n", " \"tz1YNRy5f4vWVWTY8nqhA9Q9P1CjTb8oby6g\")\n", " 0) | option (pair\n", " (pair\n", " (pair\n", " (pair\n", " (pair\n", " (pair (pair (map %deck int (map int int)) (bool %draw))\n", " (map %metaData string string))\n", " (int %nbMoves))\n", " (int %nextPlayer))\n", " (address %player1))\n", " (address %player2))\n", " (int %winner)) |