tx · 3QHfLGjZJPqW5QLD2PNjyp9je3GHAJCf2DHEHBjdBRLx 3Mup4uG7mXS2N9Fuk3JtEpoKKmzA2PtQcUY: -0.01400000 Waves 2019.09.24 06:51 [689919] smart account 3Mup4uG7mXS2N9Fuk3JtEpoKKmzA2PtQcUY > SELF 0.00000000 Waves
{ "type": 13, "id": "3QHfLGjZJPqW5QLD2PNjyp9je3GHAJCf2DHEHBjdBRLx", "fee": 1400000, "feeAssetId": null, "timestamp": 1569297143944, "version": 1, "sender": "3Mup4uG7mXS2N9Fuk3JtEpoKKmzA2PtQcUY", "senderPublicKey": "6VdgiscuZ9B1c2urnAVPPVaCS5afNjzf1RpG2SS3GUy6", "proofs": [ "3xo32JbcNCN6qAHq4PFSJ7mRckcqxsC7MvroVgLPH6sjLWDLPUmrVqN6BtJKeHzBVCAuzsjdst8LwBomBChYuZay" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAMY3VycmVudFByaWNlAAAAAFF9oCwAAAAAAARiYW5rAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAEAAAAGaW52b2tlAQAAABFmaWxlQ2VydGlmaWNhdGlvbgAAAAMAAAAEaGFzaAAAAAV0aXRsZQAAAAR1dWlkBAAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAZpbnZva2UAAAAHcGF5bWVudAQAAAAGYW1vdW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAdwYXltZW50AAAABmFtb3VudAQAAAACaWQJAQAAAAdleHRyYWN0AAAAAQgFAAAABmludm9rZQAAAA10cmFuc2FjdGlvbklkBAAAAAplbnRyeUV4aXN0BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgkAASwAAAACBQAAAARoYXNoAgAAAAFfBQAAAAR1dWlk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RlcwUAAAAFdGl0bGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAABWhhc2hfCQACWAAAAAEFAAAAAmlkAgAAAAFfCQACWAAAAAEICAUAAAAGaW52b2tlAAAABmNhbGxlcgAAAAVieXRlcwUAAAAEaGFzaAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAEYmFuawUAAAAGYW1vdW50BQAAAA1hY2NlcHRlZFRva2VuBQAAAANuaWwAAAAAhJ6EGQ==", "chainId": 84, "height": 689919, "spentComplexity": 0 } View: original | compacted Prev: 5VZMS3VSepFaPs65eFmCZ8nY85aDsUNjkcLPkmXr6zNp Next: 7HTPJoMsyRS7bNJQHEqgvYaLerny5V2owN2i2CkEyeA1 Diff:
Old | New | Differences | |
---|---|---|---|
8 | 8 | let c = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | - | func fileCertification (e,f) = { | |
12 | - | let g = extract(d.payment) | |
13 | - | let h = extract(g.amount) | |
14 | - | let i = extract(d.transactionId) | |
15 | - | let j = if (isDefined(g.assetId)) | |
16 | - | then extract(g.assetId) | |
17 | - | else throw("Waves is not accepted as payment") | |
18 | - | if ((j != a)) | |
19 | - | then throw("Only payments in SIGN are allowed at the moment") | |
20 | - | else if ((h != b)) | |
21 | - | then throw("The price is wrong") | |
22 | - | else ScriptResult(WriteSet([DataEntry(((("title_" + toBase58String(i)) + "_") + toBase58String(d.caller.bytes)), f), DataEntry(((("hash_" + toBase58String(i)) + "_") + toBase58String(d.caller.bytes)), e)]), TransferSet([ScriptTransfer(addressFromStringValue(c), h, a)])) | |
11 | + | func fileCertification (e,f,g) = { | |
12 | + | let h = extract(d.payment) | |
13 | + | let i = extract(h.amount) | |
14 | + | let j = extract(d.transactionId) | |
15 | + | let k = { | |
16 | + | let l = getString(this, ((e + "_") + g)) | |
17 | + | if ($isInstanceOf(l, "String")) | |
18 | + | then { | |
19 | + | let m = l | |
20 | + | m | |
21 | + | } | |
22 | + | else "NONE" | |
23 | + | } | |
24 | + | if ((k != "NONE")) | |
25 | + | then throw("This entry already exist") | |
26 | + | else { | |
27 | + | let n = if (isDefined(h.assetId)) | |
28 | + | then extract(h.assetId) | |
29 | + | else throw("Waves is not accepted as payment") | |
30 | + | if ((n != a)) | |
31 | + | then throw("Only payments in SIGN are allowed at the moment") | |
32 | + | else if ((i != b)) | |
33 | + | then throw("The price is wrong") | |
34 | + | else ScriptResult(WriteSet([DataEntry(("sender_" + toBase58String(j)), toBase58String(d.caller.bytes)), DataEntry(((e + "_") + g), toBase58String(j)), DataEntry(((("title_" + toBase58String(j)) + "_") + toBase58String(d.caller.bytes)), f), DataEntry(((("hash_" + toBase58String(j)) + "_") + toBase58String(d.caller.bytes)), e)]), TransferSet([ScriptTransfer(addressFromStringValue(c), i, a)])) | |
35 | + | } | |
23 | 36 | } | |
24 | 37 | ||
25 | 38 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
5 | 5 | ||
6 | 6 | let b = 350000000000 | |
7 | 7 | ||
8 | 8 | let c = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | - | func fileCertification (e,f) = { | |
12 | - | let g = extract(d.payment) | |
13 | - | let h = extract(g.amount) | |
14 | - | let i = extract(d.transactionId) | |
15 | - | let j = if (isDefined(g.assetId)) | |
16 | - | then extract(g.assetId) | |
17 | - | else throw("Waves is not accepted as payment") | |
18 | - | if ((j != a)) | |
19 | - | then throw("Only payments in SIGN are allowed at the moment") | |
20 | - | else if ((h != b)) | |
21 | - | then throw("The price is wrong") | |
22 | - | else ScriptResult(WriteSet([DataEntry(((("title_" + toBase58String(i)) + "_") + toBase58String(d.caller.bytes)), f), DataEntry(((("hash_" + toBase58String(i)) + "_") + toBase58String(d.caller.bytes)), e)]), TransferSet([ScriptTransfer(addressFromStringValue(c), h, a)])) | |
11 | + | func fileCertification (e,f,g) = { | |
12 | + | let h = extract(d.payment) | |
13 | + | let i = extract(h.amount) | |
14 | + | let j = extract(d.transactionId) | |
15 | + | let k = { | |
16 | + | let l = getString(this, ((e + "_") + g)) | |
17 | + | if ($isInstanceOf(l, "String")) | |
18 | + | then { | |
19 | + | let m = l | |
20 | + | m | |
21 | + | } | |
22 | + | else "NONE" | |
23 | + | } | |
24 | + | if ((k != "NONE")) | |
25 | + | then throw("This entry already exist") | |
26 | + | else { | |
27 | + | let n = if (isDefined(h.assetId)) | |
28 | + | then extract(h.assetId) | |
29 | + | else throw("Waves is not accepted as payment") | |
30 | + | if ((n != a)) | |
31 | + | then throw("Only payments in SIGN are allowed at the moment") | |
32 | + | else if ((i != b)) | |
33 | + | then throw("The price is wrong") | |
34 | + | else ScriptResult(WriteSet([DataEntry(("sender_" + toBase58String(j)), toBase58String(d.caller.bytes)), DataEntry(((e + "_") + g), toBase58String(j)), DataEntry(((("title_" + toBase58String(j)) + "_") + toBase58String(d.caller.bytes)), f), DataEntry(((("hash_" + toBase58String(j)) + "_") + toBase58String(d.caller.bytes)), e)]), TransferSet([ScriptTransfer(addressFromStringValue(c), i, a)])) | |
35 | + | } | |
23 | 36 | } | |
24 | 37 | ||
25 | 38 |
github/deemru/w8io/169f3d6 23.48 ms ◑