tx · C8WzmKwVuPR7StTEgy5FEDiwNE4EvsToyRxcTbJmn7bN
3N3zK9Xg7d3QD2sYmufkH8RwfqJBS6UNtv4: -0.01000000 Waves
2023.05.04 18:56 [2563225] smart account 3N3zK9Xg7d3QD2sYmufkH8RwfqJBS6UNtv4 > SELF 0.00000000 Waves
{
"type": 13,
"id": "C8WzmKwVuPR7StTEgy5FEDiwNE4EvsToyRxcTbJmn7bN",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1683215812259,
"version": 2,
"chainId": 84,
"sender": "3N3zK9Xg7d3QD2sYmufkH8RwfqJBS6UNtv4",
"senderPublicKey": "56zinHFJSYYBPx7s5gFUziCFxLNevABDB67aLXj8E3do",
"proofs": [
"2FmjyjX2NGiFUFKFU2mQ9scueihjrUquhzkzcFt2hZJQTo6ZvdPsgAZA5FJUXCprGeQQ1JfC6bvAruMHVS2cbNrN"
],
"script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAAAAAAAAEAAAABaQEAAAAMcmFtZG9uTnVtYmVyAAAAAQAAAAZudW1iZXIEAAAAAXIJAABpAAAAAgkAAGgAAAACCQAEsQAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQFAAAABmhlaWdodAgFAAAAAWkAAAADZmVlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkAAaQAAAABBQAAAAZoZWlnaHQFAAAAAXIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAAGkAAAAAQUAAAAGaGVpZ2h0AgAAAAdfbnVtYmVyBQAAAAZudW1iZXIJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAAGkAAAAAQUAAAAGaGVpZ2h0AgAAAARfd2luCQAAAAAAAAIFAAAAAXIFAAAABm51bWJlcgUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkbD06Q",
"height": 2563225,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 9Q72oBJt5Epds86AeFf2UTFLb9xdLkZk3kLBWz597u2S
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 5 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func ramdonNumber (number) = { |
---|
| 8 | + | let r = ((toInt(i.transactionId) * height) / i.fee) |
---|
| 9 | + | [IntegerEntry((toBase58String(i.caller.bytes) + toString(height)), r), IntegerEntry(((toBase58String(i.caller.bytes) + toString(height)) + "_number"), number), BooleanEntry(((toBase58String(i.caller.bytes) + toString(height)) + "_win"), (r == number))] |
---|
| 10 | + | } |
---|
| 11 | + | |
---|
| 12 | + | |
---|
| 13 | + | @Verifier(tx) |
---|
| 14 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 15 | + | |
---|