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