tx · 2D6qNz6SxcHoQiURM9wU6ie8gPmT3GwkLoTxsh2XFpQr

3N5YzdqDE6FDdsLNGXU4G4yrmirb2oiifEc:  -0.01000000 Waves

2022.10.19 11:00 [2279007] smart account 3N5YzdqDE6FDdsLNGXU4G4yrmirb2oiifEc > SELF 0.00000000 Waves

{ "type": 13, "id": "2D6qNz6SxcHoQiURM9wU6ie8gPmT3GwkLoTxsh2XFpQr", "fee": 1000000, "feeAssetId": null, "timestamp": 1666166473097, "version": 2, "chainId": 84, "sender": "3N5YzdqDE6FDdsLNGXU4G4yrmirb2oiifEc", "senderPublicKey": "E3rsNDJ7CyVzRYUkm1k4GYLuZYYxzQioRgWedzPYXTSL", "proofs": [ "3cRAgra5gxmd99sVsvmSLss9rgd6vtkYMrsendmCmr1izRLieAb6yc7Rvpq2rzbAanUz3nbMdb2Ln5kY194W1WwC" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAABgAAAAAJdm90ZUFzc2V0AQAAACAtNxOB0yQ3XZ/hb3bT0Q+T7yws9N2JrVxKVuh8yQFyGwAAAAAPbmV3UHVycG9zZVByaWNlAAAAAAJUC+QAAAAAAAx2b3RlRHVyYXRpb24JAABoAAAAAgAAAAAAAAAABwAAAAAAAAAFoAAAAAANbmV3UHVycG9zZUtleQIAAAAHcHVycG9zZQAAAAAMcHVycG9zZUlkS2V5AgAAAAlwdXJwb3NlSWQBAAAAC2lzUGF5bWVudE9rAAAAAQAAAAFpBAAAABFhY2NlcHRhYmxlQXNzZXRJZAUAAAAJdm90ZUFzc2V0AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAFFBheW1lbnQgbm90IGF0dGFjaGVkBAAAAAFwCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAckbWF0Y2gwCAUAAAABcAAAAAdhc3NldElkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVm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AJpZAUAAAAEdGV4dAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAMcHVycG9zZUlkS2V5BQAAAAJpZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAA1uZXdQdXJwb3NlS2V5AgAAAAFfCQABpAAAAAEFAAAAAmlkAgAAAAlfZHVyYXRpb24JAAEsAAAAAgkAASwAAAACCQABpAAAAAEFAAAAC3N0YXJ0SGVpZ2h0AgAAAAFfCQABpAAAAAEFAAAACWVuZEhlaWdodAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAA1uZXdQdXJwb3NlS2V5AgAAAAFfCQABpAAAAAEFAAAAAmlkAgAAAAZfb3duZXIFAAAACmN1cnJlbnRLZXkFAAAAA25pbAAAAABSZir8", "height": 2279007, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 2H62WQsMcwSECDUJx4pgxTBTrsX1V1F2eGHHKEB3gZfr Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = base58'43W4FcqA1rEpSmUGHoGiXvpSLfhadws9LS5j3SJsKxxS'
5+
6+let b = 10000000000
7+
8+let c = (7 * 1440)
9+
10+let d = "purpose"
11+
12+let e = "purposeId"
13+
14+func f (g) = {
15+ let h = a
16+ if ((size(g.payments) == 0))
17+ then throw("Payment not attached")
18+ else {
19+ let i = g.payments[0]
20+ let j = i.assetId
21+ if ($isInstanceOf(j, "ByteVector"))
22+ then {
23+ let k = j
24+ if ((k == h))
25+ then (i.amount == b)
26+ else false
27+ }
28+ else throw("Wrong payment asset")
29+ }
30+ }
31+
32+
33+@Callable(g)
34+func newPurpose (l) = {
35+ let m = size(toBytes(l))
36+ let n = toBase58String(g.caller.bytes)
37+ let o = valueOrElse(getInteger(this, e), 1)
38+ if (if ((m > 200))
39+ then true
40+ else (10 > m))
41+ then throw("Purpose text cannot be more than 200")
42+ else if (!(f(g)))
43+ then throw(("you have to pay " + toString(b)))
44+ else {
45+ let p = height
46+ let q = (height + c)
47+ let r = toBase64String(toBytes(l))
48+ let s = (o + 1)
49+[StringEntry(((d + "_") + toString(s)), r), IntegerEntry(e, s), StringEntry((((d + "_") + toString(s)) + "_duration"), ((toString(p) + "_") + toString(q))), StringEntry((((d + "_") + toString(s)) + "_owner"), n)]
50+ }
51+ }
52+
53+

github/deemru/w8io/169f3d6 
41.14 ms