tx · GdQs2F78qa8nx3YsWgPKziXs88jF6Y2F5xX7mFp8sagS

3N5ezXT9QVpBcxseKRkqbLdTRSUkbMJLzbD:  -0.01400000 Waves

2019.01.29 17:20 [471643] smart account 3N5ezXT9QVpBcxseKRkqbLdTRSUkbMJLzbD > SELF 0.00000000 Waves

{ "type": 13, "id": "GdQs2F78qa8nx3YsWgPKziXs88jF6Y2F5xX7mFp8sagS", "fee": 1400000, "feeAssetId": null, "timestamp": 1548771595697, "version": 1, "sender": "3N5ezXT9QVpBcxseKRkqbLdTRSUkbMJLzbD", "senderPublicKey": "HMMwXJWPUWM7VKP5hJaoazWJiLMZZSta2F9AaWkUk1FX", "proofs": [], "script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR0BQAAAAckbWF0Y2gwBAAAAA9yZWNpcGllbnRTdHJpbmcJAAJYAAAAAQgJAAQkAAAAAQgFAAAAAnR0AAAACXJlY2lwaWVudAAAAAVieXRlcwQAAAAEZ2FtZQkBAAAAB2V4dHJhY3QAAAABCQAEHQAAAAIIBQAAAAJ0dAAAAAZzZW5kZXIFAAAAD3JlY2lwaWVudFN0cmluZwQAAAAGd2lubmVyCQEAAAAHZXh0cmFjdAAAAAEJAAQdAAAAAggFAAAAAnR0AAAABnNlbmRlcgkAASwAAAACBQAAAARnYW1lAgAAAAdfd2lubmVyBAAAAAl3aW5BbW91bnQJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACCAUAAAACdHQAAAAGc2VuZGVyCQABLAAAAAIFAAAABGdhbWUCAAAACl93aW5BbW91bnQDCQAAAAAAAAIIBQAAAAJ0dAAAAAZhbW91bnQFAAAACXdpbkFtb3VudAkAAAAAAAACBQAAAA9yZWNpcGllbnRTdHJpbmcFAAAABndpbm5lcgcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAACZHQ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ol", "chainId": 84, "height": 471643, "spentComplexity": 0 } View: original | compacted Prev: FcbqZpeNLWmKxPiRtiHeRYRtfHGR76TMcFfz4zPY6HH8 Next: 3feUYkcu8ZtpRiK4BdvoKEcxyQGDHiq6cwCGTFCJAgew Diff:
OldNewDifferences
22 {-# CONTENT_TYPE EXPRESSION #-}
33 match tx {
44 case tt: TransferTransaction =>
5- let aa = "qwe"
6- let rr = toBase58String(addressFromRecipient(tt.recipient).bytes)
7- throw(rr)
5+ let recipientString = toBase58String(addressFromRecipient(tt.recipient).bytes)
6+ let game = extract(getString(tt.sender, recipientString))
7+ let winner = extract(getString(tt.sender, (game + "_winner")))
8+ let winAmount = extract(getInteger(tt.sender, (game + "_winAmount")))
9+ if ((tt.amount == winAmount))
10+ then (recipientString == winner)
11+ else false
812 case dt: DataTransaction =>
913 let game = extract(getString(dt.data, "hash"))
1014 let betAmount = extract(getInteger(dt.data, (game + "_amount")))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 match tx {
44 case tt: TransferTransaction =>
5- let aa = "qwe"
6- let rr = toBase58String(addressFromRecipient(tt.recipient).bytes)
7- throw(rr)
5+ let recipientString = toBase58String(addressFromRecipient(tt.recipient).bytes)
6+ let game = extract(getString(tt.sender, recipientString))
7+ let winner = extract(getString(tt.sender, (game + "_winner")))
8+ let winAmount = extract(getInteger(tt.sender, (game + "_winAmount")))
9+ if ((tt.amount == winAmount))
10+ then (recipientString == winner)
11+ else false
812 case dt: DataTransaction =>
913 let game = extract(getString(dt.data, "hash"))
1014 let betAmount = extract(getInteger(dt.data, (game + "_amount")))
1115 let player1TxId = extract(getString(dt.data, (game + "_tx1")))
1216 let player1Tx = transactionById(fromBase58String(player1TxId))
1317 match player1Tx {
1418 case p1t: TransferTransaction =>
1519 let player1Ok = (p1t.amount == betAmount)
1620 let player2TxId = extract(getString(dt.data, (game + "_tx2")))
1721 let player2Tx = transactionById(fromBase58String(player2TxId))
1822 match player2Tx {
1923 case p2t: TransferTransaction =>
2024 let player2Ok = (p2t.amount == betAmount)
2125 if (player1Ok)
2226 then player2Ok
2327 else false
2428 case _ =>
2529 false
2630 }
2731 case _ =>
2832 false
2933 }
3034 case st: SetScriptTransaction =>
3135 true
3236 case _ =>
3337 false
3438 }

github/deemru/w8io/026f985 
63.10 ms