|
| 1 | +telescope7<byron, shelley, allegra, mary, alonzo, babbage, conway> |
| 2 | + = [pastEra, pastEra, pastEra, pastEra, pastEra, pastEra, currentEra<conway>] / |
| 3 | + [pastEra, pastEra, pastEra, pastEra, pastEra, currentEra<babbage>] / |
| 4 | + [pastEra, pastEra, pastEra, pastEra, currentEra<alonzo>] / |
| 5 | + [pastEra, pastEra, pastEra, currentEra<mary>] / |
| 6 | + [pastEra, pastEra, currentEra<allegra>] / |
| 7 | + [pastEra, currentEra<shelley>] / |
| 8 | + [currentEra<byron>] |
| 9 | + |
| 10 | +ns7<byron, shelley, allegra, mary, alonzo, babbage, conway> |
| 11 | + = [6, conway] / |
| 12 | + [5, babbage] / |
| 13 | + [4, alonzo] / |
| 14 | + [3, mary] / |
| 15 | + [2, allegra] / |
| 16 | + [1, shelley] / |
| 17 | + [0, byron] |
| 18 | + |
| 19 | +;; Blockchain types |
| 20 | +pastEra = [bound, bound] |
| 21 | +currentEra<st> = [bound, st] |
| 22 | +bound = [relativeTime, slotno, epochno] |
| 23 | +eraIdx = word8 |
| 24 | +individualPoolStake = [stake, hash] |
| 25 | +nonce = [0] / [1, hash] |
| 26 | +point = [] / [ slotno, hash ] |
| 27 | +poolDistr = map<keyhash, individualPoolStake> |
| 28 | +slotno = word64 |
| 29 | +stake = rational |
| 30 | + |
| 31 | +withOrigin<v> = [] / [v] |
| 32 | + |
| 33 | +;; Collections |
| 34 | +either<x, y> = [0, x] / [1, y] |
| 35 | +map<x, y> = { * x => y } |
| 36 | +maybe<x> = [] / [x] |
| 37 | +seq<x> = [*23 x] / [24* x] ; encoded with indefinite-length encoding |
| 38 | +set<x> = #6.258([* x]) |
| 39 | + |
| 40 | +;; Types from other packages |
| 41 | +blockno = word64 |
| 42 | +epochno = word64 |
| 43 | +coin = word64 |
| 44 | +rational = [int, int] |
| 45 | +keyhash = bstr .size 28 |
| 46 | +hash = bstr .size 32 |
| 47 | +relativeTime = int |
| 48 | + |
| 49 | +;; Base word types |
| 50 | +word8 = uint .size 1 |
| 51 | +word32 = uint .size 4 |
| 52 | +word64 = uint .size 8 |
0 commit comments