tx · 6u1nfc9qNMaqARbEztkL8mLPBSWwRrhKc7aAcifxXepH
3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E: -0.01400000 Waves
2020.11.26 08:59 [1281992] smart account 3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E > SELF 0.00000000 Waves
{
"type": 13,
"id": "6u1nfc9qNMaqARbEztkL8mLPBSWwRrhKc7aAcifxXepH",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1606370384301,
"version": 2,
"chainId": 84,
"sender": "3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E",
"senderPublicKey": "FJk5n9i5ysYBtjvPcos6iKm98yzpxms3gECZgg6Y8Bt1",
"proofs": [
"HZNbGkqMpdcuvJHyWF96HJdF83K4suovc89F2poy9tZvakJx2LgVRe6Wu1YDjrp3QntaSvQJsWoVj6xnTcuSAYw"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAABAAAAAAFZGVsYXkAAAAAAAAAAAoAAAAADGFtb3VudFRvR2l2ZQAAAAACVAvkAAAAAAAHYXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresBAAAAD2dldEludGVnZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhCQAAZQAAAAIFAAAABmhlaWdodAUAAAAFZGVsYXkAAAABAAAAAWkBAAAAB2dldFNpZ24AAAAABAAAAAZjYWxsZXIJAAQlAAAAAQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BAAAAA5sYXN0Q2FsbEhlaWdodAkBAAAAD2dldEludGVnZXJCeUtleQAAAAEFAAAABmNhbGxlcgQAAAAGY2FuR2V0CQAAZwAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAAA5sYXN0Q2FsbEhlaWdodAUAAAAFZGVsYXkDBQAAAAZjYW5HZXQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAABmNhbGxlcgUAAAAGaGVpZ2h0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAAAdBZGRyZXNzAAAAAQkAAlkAAAABBQAAAAZjYWxsZXIFAAAADGFtb3VudFRvR2l2ZQUAAAAHYXNzZXRJZAUAAAADbmlsCQAAAgAAAAECAAAAI1lvdSBjYW5ub3QgZ2V0IFNJR04gVG9rZW4gYWdhaW4geWV0AAAAAOLOodI=",
"height": 1281992,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: C1hqcAQps8azbGxchrcTM8zb7i8ykLyrX4WUy9dGULRx
Next: BSkWiwpUPHGqbF6usXEjTGmpJnretC489h7qTqPXirzt
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let delay = 10 |
---|
5 | 5 | | |
---|
6 | | - | let amountToGive = 100 |
---|
| 6 | + | let amountToGive = 10000000000 |
---|
7 | 7 | | |
---|
8 | 8 | | let assetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' |
---|
9 | 9 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let delay = 10 |
---|
5 | 5 | | |
---|
6 | | - | let amountToGive = 100 |
---|
| 6 | + | let amountToGive = 10000000000 |
---|
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 - delay) |
---|
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 | 22 | | let canGet = ((height - lastCallHeight) >= delay) |
---|
23 | 23 | | if (canGet) |
---|
24 | 24 | | then [IntegerEntry(caller, height), ScriptTransfer(Address(fromBase58String(caller)), amountToGive, assetId)] |
---|
25 | 25 | | else throw("You cannot get SIGN Token again yet") |
---|
26 | 26 | | } |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|