tx · 8Zdf3cy78ff4UjKeNwXMLNxJmE7h2376P6iw6ZdjRpmv

3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E:  -0.01400000 Waves

2020.11.26 08:42 [1281976] smart account 3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E > SELF 0.00000000 Waves

{ "type": 13, "id": "8Zdf3cy78ff4UjKeNwXMLNxJmE7h2376P6iw6ZdjRpmv", "fee": 1400000, "feeAssetId": null, "timestamp": 1606369393400, "version": 2, "chainId": 84, "sender": "3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E", "senderPublicKey": "FJk5n9i5ysYBtjvPcos6iKm98yzpxms3gECZgg6Y8Bt1", "proofs": [ "2WQ3GsHjyNZhzoDKVrQTm17qfVqTovoM8dgZzzsXU6ruMCfqrVjt6QtHmcLMGpVp18S3yt96Kyr1prDXPr4oKH3A" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAABAAAAAAIZ2V0RGVsYXkAAAAAAAAAAAoAAAAADGFtb3VudFRvR2l2ZQAAAAAAO5rKAAAAAAAHYXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresBAAAAD2dldEludGVnZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAZoZWlnaHQAAAABAAAAAWkBAAAAB2dldFNpZ24AAAAABAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAAAZjYW5HZXQJAQAAAA9nZXRJbnRlZ2VyQnlLZXkAAAABBQAAAAZjYWxsZXIDCQAAZwAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAAhnZXREZWxheQUAAAAGY2FuR2V0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAAZjYWxsZXIFAAAABmhlaWdodAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAGY2FsbGVyBQAAAAxhbW91bnRUb0dpdmUFAAAAB2Fzc2V0SWQFAAAAA25pbAkAAAIAAAABAgAAAB1Zb3UgY2Fubm90IGdldCBTSUdOIHRva2VuIHlldAAAAABnrHps", "height": 1281976, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: AxVFe6Yq8JRqc5cKP3AvJ54SKpyouXBberj1XuaBSAV7 Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let getDelay = 10
5+
6+let amountToGive = 1000000000
7+
8+let assetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
9+
10+func getIntegerByKey (key) = match getInteger(this, key) {
11+ case a: Int =>
12+ a
13+ case _ =>
14+ height
15+}
16+
17+
18+@Callable(i)
19+func getSign () = {
20+ let caller = toString(addressFromPublicKey(i.callerPublicKey))
21+ let canGet = getIntegerByKey(caller)
22+ if (((height - getDelay) >= canGet))
23+ then [IntegerEntry(caller, height), ScriptTransfer(Address(fromBase58String(caller)), amountToGive, assetId)]
24+ else throw("You cannot get SIGN token yet")
25+ }
26+
27+

github/deemru/w8io/026f985 
13.69 ms