SC CODE: Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "lotto777.svg")
31 STORE("descrHdr", "lotto777.svg")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "lotto777")
34 STORE("docType", "TELA-STATIC-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "1d7533bc1d6ed3854c13354bf6850125c8c025c27091095dd99e1033f0da2b0c")
37 STORE("fileCheckS", "1d478745816e49a4ed8081948d685ea9d5d157f90e47806300292c7cde43839f")
100 RETURN 0
End Function
Function init() Uint64
10 IF EXISTS("owner") == 0 THEN GOTO 30
20 RETURN 1
30 STORE("owner", address())
50 STORE("docVersion", "1.0.0")
60 STORE("hash", HEX(TXID()))
70 STORE("likes", 0)
80 STORE("dislikes", 0)
100 RETURN 0
End Function
Function address() String
10 DIM s as String
20 LET s = SIGNER()
30 IF IS_ADDRESS_VALID(s) THEN GOTO 50
40 RETURN "anon"
50 RETURN ADDRESS_STRING(s)
End Function
Function Rate(r Uint64) Uint64
10 DIM addr as String
15 LET addr = address()
16 IF r < 100 && EXISTS(addr) == 0 && addr != "anon" THEN GOTO 30
20 RETURN 1
30 STORE(addr, ""+r+"_"+BLOCK_HEIGHT())
40 IF r < 50 THEN GOTO 70
50 STORE("likes", LOAD("likes")+1)
60 RETURN 0
70 STORE("dislikes", LOAD("dislikes")+1)
100 RETURN 0
End Function
/*
<svg width="550" height="200" viewBox="0 0 1100 400" xmlns="http://www.w3.org/2000/svg"><defs><path id="a" d="M1107.67 543.545h768.291v256.716H1107.67z"/></defs><text x="378.529" y="158.334" fill="red" stroke="#65a21b" font-size="275.56" transform="scale(1.00126 .99874)" style="font-style:normal;font-variant:normal;font-weight:700;font-stretch:normal;font-size:191.433px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#bdce46;stroke:#65a21b;stroke-width:5">LOTTO</text><text xml:space="preserve" style="font-size:192px;line-height:1.25;font-family:FreeMono;-inkscape-font-specification:FreeMono;white-space:pre;shape-inside:url(#a)" transform="rotate(-11.672 -814.56 3213.722)"><tspan x="1107.67" y="721.145"><tspan style="font-weight:700;font-family:C059;-inkscape-font-specification:'C059, Bold';fill:#e21b1b;stroke:#65a21b;stroke-width:5">777</tspan></tspan></text><path d="m189.957 172.619-20.934 6.308s1.33 11.627-.99 28.264c-2.32 16.606-6.989 43.2-2.32 78.111 4.64 34.913 21.616 53.837 33.583 66.794 4.793 5.195 17.626 14.967 19.946 20.286 2.319 5.318 6.308 12.956 11.967 12.956 5.659 0 14.286-6.988 15.616-17.626 1.33-10.637-15.616-9.308-33.582-28.913-16.482-17.997-28.573-38.9-30.923-66.144-2.32-27.243 1.33-53.497 3-63.825 1.669-10.298 4.637-36.211 4.637-36.211zM216.18 19.519c7.02-3.494 30.026-8.999 45.302 6.494 15.276 15.492 11.504 34.788 15.276 37.54 3.742 2.753 26.78-1.762 42.798 14.256s11.256 43.014 4.236 49.786c-7.02 6.772-75.575-41.777-75.575-41.777zM69.018 63.059s2.257-22.76 14.008-34.789c10.514-10.761 27.552-15.028 43.261-8.256 20.285 8.751-21.986 73.07-21.986 73.07l-75.576 37.294s-17.78-24.12-.495-49.291c14.75-21.523 40.788-18.028 40.788-18.028ZM35.992 184.493c-7.267 4.515-22.42 26.254-8.04 49.26 12.524 20.008 30.273 19.513 30.273 19.513s-4.514 26.532 12.524 41.53c16.513 14.565 43.354 9.771 51.116 5.01 9.246-5.66-16.08-81.576-16.08-81.576z" fill="#65a21b" style="stroke-width:1.5625"/><path d="M263.462 226.24s-59.59 45.55-51.209 58.506c9.432 14.626 44.653 20.193 60.733 7.05 19.265-15.77 12.524-31.789 15.77-35.53 3.248-3.742 18.029-4.268 25.017-19.265 7.02-15.029 5.505-32.995-3.278-43.756-8.75-10.762-47.033 32.994-47.033 32.994z" fill="#65a21b" style="stroke-width:1.5625"/><path d="M173.352 136.223c10.266-.743 4.917-27.986 5.752-49.817 1.391-36.52 11.472-48.58 20.749-57.27 8.813-8.256 22.76-12.245 25.913-12.833 4.948-.897 17.781 7.916 24.739 24.336 5.968 14.101 5.504 31.851 10.545 36.18 5.04 4.33 28.387-3.061 46.353 13.483s17.843 31.572 17.843 34.912-11.009 17.008-29.717 22.636c-23.162 6.988-63.733 3.958-76.164 3.71-12.43-.247-21.8.959-21.553 6.463.247 5.505 15.338 4.082 27.552 3.835 12.215-.248 41.159 3.123 63.485 13.173 21.554 9.71 26.594 23.594 28.511 33.057 1.67 8.256-3.34 19.388-11.967 24.676-8.627 5.257-27.429 4.793-31.634 9.71-5.752 6.71 2.628 27.8-17.008 40.726-19.636 12.925-38.406 7.452-42.426 4.05-15.06-12.802-18.678-29.067-21.553-53.28-2.876-24.182-4.794-50.064-15.338-50.064-10.545 0-16.05 30.428-20.595 56.527-4.546 26.1-16.544 56.404-42.396 62.155-18.739 4.175-36.18-15.585-37.355-29.098-1.236-14.132.897-28.233-2.628-33.428-4.298-6.34-25.944.062-38.808-19.512-11.256-17.132-6.463-28.852-4.082-31.975 2.288-2.968 13.42-17.595 41.437-22.172 28.016-4.576 81.203 3.464 81.915-6.463.71-9.926-43.107-8.256-57.486-8.256-14.38 0-44.127 1.144-58.94-10.792-11.255-9.091-14.595-18.245-15.275-21.12-1.083-4.484 1.948-24.46 18.213-34.387C61.658 73.015 77.8 81.52 82.593 78.18c4.793-3.34-3.835-19.543 10.328-40.23 11.009-16.05 30.026-19.173 32.346-18.214 9.71 3.927 21.738 11.75 30.366 29.222 8.628 17.471 11.503 37.355 11.503 51.981 0 14.627-2.164 35.871 6.216 35.284z" fill="#8bc02b" style="stroke-width:1.5625"/><path d="M234.147 98.651s7.205-12.245-1.578-17.966c-10.173-6.618-17.78 4.05-17.78 4.05s-1.175-8.689-9.865-8.781c-6.215-.062-9.679 5.937-9.957 16.296-.31 10.36 2.072 14.348 7.112 15.4 7.02 1.484 9.586-4.639 9.586-4.639s-.092 4.824 4.732 8.195c4.824 3.37 9.864-.804 9.864-.804s-4.33 6.525-.587 10.575c3.061 3.278 8.38 1.083 8.38 1.083s-8.999 8.102-4.948 13.513c4.051 5.443 12.648 5.535 18.461 3.958 5.814-1.577 13.235-7.39 11.844-16.698-1.392-9.308-16.204-7.36-16.204-7.36s8.009-9.71 3.463-15.307c-5.318-6.617-12.523-1.515-12.523-1.515zM238.26 175c-1.578 4.391 3.957 9.803 3.957 9.803s-4.422.247-5.875 3.34c-1.453 3.092.371 7.42.371 7.42s-7.823-4.669-14.008-.247c-5.504 3.959-3.123 12.926-3.123 12.926s-5.628-6.586-12.926-2.752c-5.04 2.629-5.504 12.091-4.175 19.636 1.33 7.545 6 15.555 14.132 14.008 8.133-1.546 7.298-17.842 7.298-17.842s11.38 11.565 19.265 4.67c6.587-5.753 1.546-14.133 1.546-14.133s3.711 1.546 6.587-1.206.247-7.174.247-7.174 10.174 4.422 12.462-2.752c2.288-7.174-5.257-10.761-5.257-10.761s4.917.587 4.299-6.092c-.68-7.329-20.502-20.935-24.8-8.844zM123.38 201.377s3.897-3.803 2.32-12.029c-1.949-10.08-15.895-12.802-21.306-12.4-5.412.402-12.03 1.546-11.813 9.122.155 5.628 5.04 6.99 5.04 6.99s-5.411 3.184-3.865 9.894c2.32 10.081 18.616 6.989 18.616 6.989s-10.081 8.72-4.268 17.255c5.814 8.535 16.853 1.948 16.853 1.948s-3.278 9.153 3.31 11.627c6.215 2.32 11.348-2.04 15.12-9.679 3.618-7.328 4.113-19.017-1.948-24.8-8.75-8.411-18.059-4.917-18.059-4.917zM119.36 83.128c-8.04 5.813-4.267 17.038-4.267 17.038s-7.36-1.546-9.308 3.68c-1.948 5.226 2.907 7.762 2.907 7.762s-7.174-1.732-8.72 4.082c-1.547 5.813 3.68 8.318 3.68 8.318s-7.515.99-8.133 8.906c-.402 4.855 3.865 12.029 15.492 12.214 11.627.186 17.039-.773 17.44-6.4.403-5.629-5.813-8.319-5.813-8.319s5.071-.959 5.226-6.216c.186-6.988-6.215-9.493-6.215-9.493s7.916 3.896 14.131.588c8.72-4.639 4.639-14.132 4.639-14.132s2.907 8.133 9.308 6.988c4.916-.896 9.122-6.586 8.318-16.853-.804-10.266-5.412-13.235-10.266-13.358-6.402-.186-8.72 8.72-8.72 8.72s-8.443-11.658-19.699-3.525z" fill="#bdce46" style="stroke-width:1.5625"/><path style="fill:#e21b1b;stroke-width:7.81352" transform="matrix(.19997 0 0 .19997 126.841 105.344)" d="M25.045 384V128L256 0l230.955 128v256L256 512z"/><path style="fill:#bdce46;stroke-width:11.1724" transform="matrix(.13985 0 0 .13985 142.084 120.242)" d="m256 0 230.955 128v256L256 512 25.045 384V128z"/><path style="fill:#e21b1b;stroke-width:18.2298" transform="translate(155.409 133.223) scale(.08571)" d="M25.045 384V128L256 0l230.955 128v256L256 512z"/><path style="fill:#000;stroke-width:46.2828" transform="matrix(.03376 0 0 .03376 168.528 146.47)" d="M486.955 128v256L256 512 25.045 384V128L256 0z"/><path style="fill:#000;stroke-width:.999996" d="M173.758 175.11a311.08 311.08 0 0 1-3.646-2.043c-.03-.026.652-2.67 1.515-5.878a609.909 609.909 0 0 0 1.569-5.89c0-.034.903.427 2.008 1.023 1.104.597 2.093 1.085 2.197 1.086.104 0 1.046-.466 2.094-1.036 1.047-.57 1.922-1.018 1.943-.994.02.023.73 2.71 1.575 5.969l1.537 5.927-2.894 1.536c-1.592.845-3.212 1.708-3.6 1.917l-.705.38z"/></svg>
*/ |
SC Arguments: [Name:SC_ACTION Type:uint64 Value:'1' Name:SC_CODE Type:string Value:'Function InitializePrivate() Uint64
10 IF init() == 0 THEN GOTO 30
20 RETURN 1
30 STORE("nameHdr", "lotto777.svg")
31 STORE("descrHdr", "lotto777.svg")
32 STORE("iconURLHdr", "")
33 STORE("dURL", "lotto777")
34 STORE("docType", "TELA-STATIC-1")
35 STORE("subDir", "")
36 STORE("fileCheckC", "1d7533bc1d6ed3854c13354bf6850125c8c025c27091095dd99e1033f0da2b0c")
37 STORE("fileCheckS", "1d478745816e49a4ed8081948d685ea9d5d157f90e47806300292c7cde43839f")
100 RETURN 0
End Function
Function init() Uint64
10 IF EXISTS("owner") == 0 THEN GOTO 30
20 RETURN 1
30 STORE("owner", address())
50 STORE("docVersion", "1.0.0")
60 STORE("hash", HEX(TXID()))
70 STORE("likes", 0)
80 STORE("dislikes", 0)
100 RETURN 0
End Function
Function address() String
10 DIM s as String
20 LET s = SIGNER()
30 IF IS_ADDRESS_VALID(s) THEN GOTO 50
40 RETURN "anon"
50 RETURN ADDRESS_STRING(s)
End Function
Function Rate(r Uint64) Uint64
10 DIM addr as String
15 LET addr = address()
16 IF r < 100 && EXISTS(addr) == 0 && addr != "anon" THEN GOTO 30
20 RETURN 1
30 STORE(addr, ""+r+"_"+BLOCK_HEIGHT())
40 IF r < 50 THEN GOTO 70
50 STORE("likes", LOAD("likes")+1)
60 RETURN 0
70 STORE("dislikes", LOAD("dislikes")+1)
100 RETURN 0
End Function
/*
<svg width="550" height="200" viewBox="0 0 1100 400" xmlns="http://www.w3.org/2000/svg"><defs><path id="a" d="M1107.67 543.545h768.291v256.716H1107.67z"/></defs><text x="378.529" y="158.334" fill="red" stroke="#65a21b" font-size="275.56" transform="scale(1.00126 .99874)" style="font-style:normal;font-variant:normal;font-weight:700;font-stretch:normal;font-size:191.433px;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#bdce46;stroke:#65a21b;stroke-width:5">LOTTO</text><text xml:space="preserve" style="font-size:192px;line-height:1.25;font-family:FreeMono;-inkscape-font-specification:FreeMono;white-space:pre;shape-inside:url(#a)" transform="rotate(-11.672 -814.56 3213.722)"><tspan x="1107.67" y="721.145"><tspan style="font-weight:700;font-family:C059;-inkscape-font-specification:'C059, Bold';fill:#e21b1b;stroke:#65a21b;stroke-width:5">777</tspan></tspan></text><path d="m189.957 172.619-20.934 6.308s1.33 11.627-.99 28.264c-2.32 16.606-6.989 43.2-2.32 78.111 4.64 34.913 21.616 53.837 33.583 66.794 4.793 5.195 17.626 14.967 19.946 20.286 2.319 5.318 6.308 12.956 11.967 12.956 5.659 0 14.286-6.988 15.616-17.626 1.33-10.637-15.616-9.308-33.582-28.913-16.482-17.997-28.573-38.9-30.923-66.144-2.32-27.243 1.33-53.497 3-63.825 1.669-10.298 4.637-36.211 4.637-36.211zM216.18 19.519c7.02-3.494 30.026-8.999 45.302 6.494 15.276 15.492 11.504 34.788 15.276 37.54 3.742 2.753 26.78-1.762 42.798 14.256s11.256 43.014 4.236 49.786c-7.02 6.772-75.575-41.777-75.575-41.777zM69.018 63.059s2.257-22.76 14.008-34.789c10.514-10.761 27.552-15.028 43.261-8.256 20.285 8.751-21.986 73.07-21.986 73.07l-75.576 37.294s-17.78-24.12-.495-49.291c14.75-21.523 40.788-18.028 40.788-18.028ZM35.992 184.493c-7.267 4.515-22.42 26.254-8.04 49.26 12.524 20.008 30.273 19.513 30.273 19.513s-4.514 26.532 12.524 41.53c16.513 14.565 43.354 9.771 51.116 5.01 9.246-5.66-16.08-81.576-16.08-81.576z" fill="#65a21b" style="stroke-width:1.5625"/><path d="M263.462 226.24s-59.59 45.55-51.209 58.506c9.432 14.626 44.653 20.193 60.733 7.05 19.265-15.77 12.524-31.789 15.77-35.53 3.248-3.742 18.029-4.268 25.017-19.265 7.02-15.029 5.505-32.995-3.278-43.756-8.75-10.762-47.033 32.994-47.033 32.994z" fill="#65a21b" style="stroke-width:1.5625"/><path d="M173.352 136.223c10.266-.743 4.917-27.986 5.752-49.817 1.391-36.52 11.472-48.58 20.749-57.27 8.813-8.256 22.76-12.245 25.913-12.833 4.948-.897 17.781 7.916 24.739 24.336 5.968 14.101 5.504 31.851 10.545 36.18 5.04 4.33 28.387-3.061 46.353 13.483s17.843 31.572 17.843 34.912-11.009 17.008-29.717 22.636c-23.162 6.988-63.733 3.958-76.164 3.71-12.43-.247-21.8.959-21.553 6.463.247 5.505 15.338 4.082 27.552 3.835 12.215-.248 41.159 3.123 63.485 13.173 21.554 9.71 26.594 23.594 28.511 33.057 1.67 8.256-3.34 19.388-11.967 24.676-8.627 5.257-27.429 4.793-31.634 9.71-5.752 6.71 2.628 27.8-17.008 40.726-19.636 12.925-38.406 7.452-42.426 4.05-15.06-12.802-18.678-29.067-21.553-53.28-2.876-24.182-4.794-50.064-15.338-50.064-10.545 0-16.05 30.428-20.595 56.527-4.546 26.1-16.544 56.404-42.396 62.155-18.739 4.175-36.18-15.585-37.355-29.098-1.236-14.132.897-28.233-2.628-33.428-4.298-6.34-25.944.062-38.808-19.512-11.256-17.132-6.463-28.852-4.082-31.975 2.288-2.968 13.42-17.595 41.437-22.172 28.016-4.576 81.203 3.464 81.915-6.463.71-9.926-43.107-8.256-57.486-8.256-14.38 0-44.127 1.144-58.94-10.792-11.255-9.091-14.595-18.245-15.275-21.12-1.083-4.484 1.948-24.46 18.213-34.387C61.658 73.015 77.8 81.52 82.593 78.18c4.793-3.34-3.835-19.543 10.328-40.23 11.009-16.05 30.026-19.173 32.346-18.214 9.71 3.927 21.738 11.75 30.366 29.222 8.628 17.471 11.503 37.355 11.503 51.981 0 14.627-2.164 35.871 6.216 35.284z" fill="#8bc02b" style="stroke-width:1.5625"/><path d="M234.147 98.651s7.205-12.245-1.578-17.966c-10.173-6.618-17.78 4.05-17.78 4.05s-1.175-8.689-9.865-8.781c-6.215-.062-9.679 5.937-9.957 16.296-.31 10.36 2.072 14.348 7.112 15.4 7.02 1.484 9.586-4.639 9.586-4.639s-.092 4.824 4.732 8.195c4.824 3.37 9.864-.804 9.864-.804s-4.33 6.525-.587 10.575c3.061 3.278 8.38 1.083 8.38 1.083s-8.999 8.102-4.948 13.513c4.051 5.443 12.648 5.535 18.461 3.958 5.814-1.577 13.235-7.39 11.844-16.698-1.392-9.308-16.204-7.36-16.204-7.36s8.009-9.71 3.463-15.307c-5.318-6.617-12.523-1.515-12.523-1.515zM238.26 175c-1.578 4.391 3.957 9.803 3.957 9.803s-4.422.247-5.875 3.34c-1.453 3.092.371 7.42.371 7.42s-7.823-4.669-14.008-.247c-5.504 3.959-3.123 12.926-3.123 12.926s-5.628-6.586-12.926-2.752c-5.04 2.629-5.504 12.091-4.175 19.636 1.33 7.545 6 15.555 14.132 14.008 8.133-1.546 7.298-17.842 7.298-17.842s11.38 11.565 19.265 4.67c6.587-5.753 1.546-14.133 1.546-14.133s3.711 1.546 6.587-1.206.247-7.174.247-7.174 10.174 4.422 12.462-2.752c2.288-7.174-5.257-10.761-5.257-10.761s4.917.587 4.299-6.092c-.68-7.329-20.502-20.935-24.8-8.844zM123.38 201.377s3.897-3.803 2.32-12.029c-1.949-10.08-15.895-12.802-21.306-12.4-5.412.402-12.03 1.546-11.813 9.122.155 5.628 5.04 6.99 5.04 6.99s-5.411 3.184-3.865 9.894c2.32 10.081 18.616 6.989 18.616 6.989s-10.081 8.72-4.268 17.255c5.814 8.535 16.853 1.948 16.853 1.948s-3.278 9.153 3.31 11.627c6.215 2.32 11.348-2.04 15.12-9.679 3.618-7.328 4.113-19.017-1.948-24.8-8.75-8.411-18.059-4.917-18.059-4.917zM119.36 83.128c-8.04 5.813-4.267 17.038-4.267 17.038s-7.36-1.546-9.308 3.68c-1.948 5.226 2.907 7.762 2.907 7.762s-7.174-1.732-8.72 4.082c-1.547 5.813 3.68 8.318 3.68 8.318s-7.515.99-8.133 8.906c-.402 4.855 3.865 12.029 15.492 12.214 11.627.186 17.039-.773 17.44-6.4.403-5.629-5.813-8.319-5.813-8.319s5.071-.959 5.226-6.216c.186-6.988-6.215-9.493-6.215-9.493s7.916 3.896 14.131.588c8.72-4.639 4.639-14.132 4.639-14.132s2.907 8.133 9.308 6.988c4.916-.896 9.122-6.586 8.318-16.853-.804-10.266-5.412-13.235-10.266-13.358-6.402-.186-8.72 8.72-8.72 8.72s-8.443-11.658-19.699-3.525z" fill="#bdce46" style="stroke-width:1.5625"/><path style="fill:#e21b1b;stroke-width:7.81352" transform="matrix(.19997 0 0 .19997 126.841 105.344)" d="M25.045 384V128L256 0l230.955 128v256L256 512z"/><path style="fill:#bdce46;stroke-width:11.1724" transform="matrix(.13985 0 0 .13985 142.084 120.242)" d="m256 0 230.955 128v256L256 512 25.045 384V128z"/><path style="fill:#e21b1b;stroke-width:18.2298" transform="translate(155.409 133.223) scale(.08571)" d="M25.045 384V128L256 0l230.955 128v256L256 512z"/><path style="fill:#000;stroke-width:46.2828" transform="matrix(.03376 0 0 .03376 168.528 146.47)" d="M486.955 128v256L256 512 25.045 384V128L256 0z"/><path style="fill:#000;stroke-width:.999996" d="M173.758 175.11a311.08 311.08 0 0 1-3.646-2.043c-.03-.026.652-2.67 1.515-5.878a609.909 609.909 0 0 0 1.569-5.89c0-.034.903.427 2.008 1.023 1.104.597 2.093 1.085 2.197 1.086.104 0 1.046-.466 2.094-1.036 1.047-.57 1.922-1.018 1.943-.994.02.023.73 2.71 1.575 5.969l1.537 5.927-2.894 1.536c-1.592.845-3.212 1.708-3.6 1.917l-.705.38z"/></svg>
*/'] |