tx · 8vmdSiHUAXeN7mTPz5VKwBunfdTroCQmZnVCUiDPfrnU

3N5hQm6twVhFgf8mKBkJpNhxwcBnpZsPyni:  -0.01400000 Waves

2019.08.19 13:44 [637926] smart account 3N5hQm6twVhFgf8mKBkJpNhxwcBnpZsPyni > SELF 0.00000000 Waves

{ "type": 13, "id": "8vmdSiHUAXeN7mTPz5VKwBunfdTroCQmZnVCUiDPfrnU", "fee": 1400000, "feeAssetId": null, "timestamp": 1566211499580, "version": 1, "sender": "3N5hQm6twVhFgf8mKBkJpNhxwcBnpZsPyni", "senderPublicKey": "5qEf6v7n4Cm55KWEaSs76eUft3uwLezLoJeBrf6u9BKE", "proofs": [ "4mPmU9MQ7hZwWXLEtGut1WW5etRWL4rDrkTWNTGoSTP4hJDm5AkrRFWyHCmn2fHGiL6VzLtTwCzApEn8uuxr3AqV" ], "script": "base64:AAIDAAAAAAAAAAAAAAAGAAAAAAhvd25lcktleQIAAAAFb3duZXIAAAAACndhdmVzVG9rZW4FAAAABHVuaXQBAAAACXBheW1lbnRPZgAAAAEAAAADa2V5CQABLAAAAAICAAAAC3BheW1lbnRfb2ZfBQAAAANrZXkBAAAACHN0YXR1c09mAAAAAQAAAANrZXkJAAEsAAAAAgIAAAAKc3RhdHVzX29mXwUAAAADa2V5AAAAAAVvd25lcgkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABCQEAAAAFdmFsdWUAAAABCQAEHQAAAAIFAAAABHRoaXMFAAAACG93bmVyS2V5AQAAABBpc1BheW1lbnRQZW5kaW5nAAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAApzdGF0dXNfb2ZfBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAkAAAAAAAACBQAAAAFzAgAAAAdwZW5kaW5nBwAAAAQAAAABaQEAAAAEaW5pdAAAAAIAAAAFb3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AABYQAAAAdhc3NldElkCQAAAgAAAAECAAAAJ3BheW1lbnQgaW4gYXNzZXRUb2tlbnMgbXVzdCBiZSBhdHRhY2hlZAkAAAIAAAABAgAAAChPcmRlciBhbHJlYWR5IGhhcyBiZWVuIHBheWVkIG9yIHJlamVjdGVkAAAAAWkBAAAABnJlamVjdAAAAAEAAAADa2V5AwkBAAAAEGlzUGF5bWVudFBlbmRpbmcAAAABBQAAAANrZXkJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAAhzdGF0dXNPZgAAAAEFAAAAA2tleQIAAAAIcmVqZWN0ZWQFAAAAA25pbAkAAAIAAAABAgAAAChPcmRlciBhbHJlYWR5IGhhcyBiZWVuIHBheWVkIG9yIHJlamVjdGVkAAAAALITrU8=", "chainId": 84, "height": 637926, "spentComplexity": 0 } View: original | compacted Prev: 8Q7sFAGDunFcNEJeScbPWLpHEJwcUsx2ZTALCAf1DLXR Next: A8hEwna6F3GCXksAe7ZocUJw68BgjGpTKHnM9WjB6yWx Diff:
OldNewDifferences
4646 if ((m.assetId == b))
4747 then {
4848 let n = WriteSet([DataEntry(e(d), "paid")])
49- let l = extract(getInteger(this, "payment_of_test"))
50- ScriptResult(n, TransferSet([ScriptTransfer(f, l, b)]))
49+ ScriptResult(n, TransferSet([ScriptTransfer(f, 10, b)]))
5150 }
5251 else throw(("can only WAVES, but got " + toBase58String(value(m.assetId))))
5352 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "owner"
55
66 let b = unit
77
88 func c (d) = ("payment_of_" + d)
99
1010
1111 func e (d) = ("status_of_" + d)
1212
1313
1414 let f = addressFromStringValue(value(getString(this, a)))
1515
1616 func g (d) = {
1717 let h = getString(this, ("status_of_" + d))
1818 if ($isInstanceOf(h, "String"))
1919 then {
2020 let i = h
2121 (i == "pending")
2222 }
2323 else false
2424 }
2525
2626
2727 @Callable(j)
2828 func init (f,k) = if ((j.caller == this))
2929 then WriteSet([DataEntry(a, f)])
3030 else throw("only dapp itself can init")
3131
3232
3333
3434 @Callable(j)
3535 func setWaitToPayment (d,l) = WriteSet([DataEntry(e(d), "pending"), DataEntry(c(d), l)])
3636
3737
3838
3939 @Callable(j)
4040 func pay (d) = if (true)
4141 then {
4242 let h = j.payment
4343 if ($isInstanceOf(h, "AttachedPayment"))
4444 then {
4545 let m = h
4646 if ((m.assetId == b))
4747 then {
4848 let n = WriteSet([DataEntry(e(d), "paid")])
49- let l = extract(getInteger(this, "payment_of_test"))
50- ScriptResult(n, TransferSet([ScriptTransfer(f, l, b)]))
49+ ScriptResult(n, TransferSet([ScriptTransfer(f, 10, b)]))
5150 }
5251 else throw(("can only WAVES, but got " + toBase58String(value(m.assetId))))
5352 }
5453 else throw("payment in assetTokens must be attached")
5554 }
5655 else throw("Order already has been payed or rejected")
5756
5857
5958
6059 @Callable(j)
6160 func reject (d) = if (g(d))
6261 then WriteSet([DataEntry(e(d), "rejected")])
6362 else throw("Order already has been payed or rejected")
6463
6564

github/deemru/w8io/169f3d6 
38.10 ms