tx · 899m9epX38iYTHUayTk7EGN2iqdsJtmHwWsUdhx7qVCS
3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E: -0.01400000 Waves
2020.11.26 08:51 [1281985] smart account 3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E > SELF 0.00000000 Waves
{
"type": 13,
"id": "899m9epX38iYTHUayTk7EGN2iqdsJtmHwWsUdhx7qVCS",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1606369932586,
"version": 2,
"chainId": 84,
"sender": "3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E",
"senderPublicKey": "FJk5n9i5ysYBtjvPcos6iKm98yzpxms3gECZgg6Y8Bt1",
"proofs": [
"5SV5Jsc5yZZbZnbSJEkq6V8yfQw61SbnMhekVSSiJWYPxf71KQVK259jS8U5b9zrhQyK3kdbTs7yfRdiSZ3rnAGB"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAABAAAAAAIZ2V0RGVsYXkAAAAAAAAAAAoAAAAADGFtb3VudFRvR2l2ZQAAAAAAAAAAZAAAAAAHYXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresBAAAAD2dldEludGVnZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAZoZWlnaHQAAAABAAAAAWkBAAAAB2dldFNpZ24AAAAABAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAAA5sYXN0Q2FsbEhlaWdodAkBAAAAD2dldEludGVnZXJCeUtleQAAAAEFAAAABmNhbGxlcgMDCQEAAAACIT0AAAACBQAAAA5sYXN0Q2FsbEhlaWdodAAAAAAAAAAAAAkAAGcAAAACCQAAZQAAAAIFAAAADmxhc3RDYWxsSGVpZ2h0BQAAAAZoZWlnaHQAAAAAAAAAAAoHCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAAZjYWxsZXIFAAAABmhlaWdodAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAGY2FsbGVyBQAAAAxhbW91bnRUb0dpdmUFAAAAB2Fzc2V0SWQFAAAAA25pbAkAAAIAAAABAgAAAB1Zb3UgY2Fubm90IGdldCBTSUdOIHRva2VuIHlldAAAAABRCzSf",
"height": 1281985,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: Dh7Lj8z3ZAAQP62yuDWnaBUqosYvKCfBMHGvvvnZHxHM
Next: 5LQRf5Y168AxfxeUrErXgNKgX46TxwCBv7N5RG3zvfUB
Diff:
Old | New | | Differences |
---|
19 | 19 | | func getSign () = { |
---|
20 | 20 | | let caller = toString(addressFromPublicKey(i.callerPublicKey)) |
---|
21 | 21 | | let lastCallHeight = getIntegerByKey(caller) |
---|
22 | | - | if (((lastCallHeight - height) >= 10)) |
---|
| 22 | + | if (if ((lastCallHeight != 0)) |
---|
| 23 | + | then ((lastCallHeight - height) >= 10) |
---|
| 24 | + | else false) |
---|
23 | 25 | | then [IntegerEntry(caller, height), ScriptTransfer(Address(fromBase58String(caller)), amountToGive, assetId)] |
---|
24 | 26 | | else throw("You cannot get SIGN token yet") |
---|
25 | 27 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let getDelay = 10 |
---|
5 | 5 | | |
---|
6 | 6 | | let amountToGive = 100 |
---|
7 | 7 | | |
---|
8 | 8 | | let assetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' |
---|
9 | 9 | | |
---|
10 | 10 | | func getIntegerByKey (key) = match getInteger(this, key) { |
---|
11 | 11 | | case a: Int => |
---|
12 | 12 | | a |
---|
13 | 13 | | case _ => |
---|
14 | 14 | | height |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | @Callable(i) |
---|
19 | 19 | | func getSign () = { |
---|
20 | 20 | | let caller = toString(addressFromPublicKey(i.callerPublicKey)) |
---|
21 | 21 | | let lastCallHeight = getIntegerByKey(caller) |
---|
22 | | - | if (((lastCallHeight - height) >= 10)) |
---|
| 22 | + | if (if ((lastCallHeight != 0)) |
---|
| 23 | + | then ((lastCallHeight - height) >= 10) |
---|
| 24 | + | else false) |
---|
23 | 25 | | then [IntegerEntry(caller, height), ScriptTransfer(Address(fromBase58String(caller)), amountToGive, assetId)] |
---|
24 | 26 | | else throw("You cannot get SIGN token yet") |
---|
25 | 27 | | } |
---|
26 | 28 | | |
---|
27 | 29 | | |
---|