tx · RGVJNRdRjgrKs15GoEfZ5UUPUr5J5zdvaBYx21ZUZhv
3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E: -0.01400000 Waves
2020.11.26 08:56 [1281990] smart account 3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E > SELF 0.00000000 Waves
{
"type": 13,
"id": "RGVJNRdRjgrKs15GoEfZ5UUPUr5J5zdvaBYx21ZUZhv",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1606370194855,
"version": 2,
"chainId": 84,
"sender": "3MpUDmnN27gMSxHDEFQLW75epUMECTHDn6E",
"senderPublicKey": "FJk5n9i5ysYBtjvPcos6iKm98yzpxms3gECZgg6Y8Bt1",
"proofs": [
"CNAX2BHnjgMV2EwGYoPjEvX4csAXUs3MDzeoSD2TcjsLcjSqFNFQiMXnvA83tZ7igyfg5UEtrzJifWKfWtMbbzY"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAABAAAAAAIZ2V0RGVsYXkAAAAAAAAAAAoAAAAADGFtb3VudFRvR2l2ZQAAAAAAAAAAZAAAAAAHYXNzZXRJZAEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresBAAAAD2dldEludGVnZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhCQAAZAAAAAIFAAAABmhlaWdodAAAAAAAAAAACgAAAAEAAAABaQEAAAAHZ2V0U2lnbgAAAAAEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAADmxhc3RDYWxsSGVpZ2h0CQEAAAAPZ2V0SW50ZWdlckJ5S2V5AAAAAQUAAAAGY2FsbGVyBAAAAAZjYW5HZXQJAABnAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAADmxhc3RDYWxsSGVpZ2h0AAAAAAAAAAAKAwUAAAAGY2FuR2V0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAAZjYWxsZXIFAAAABmhlaWdodAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAAGY2FsbGVyBQAAAAxhbW91bnRUb0dpdmUFAAAAB2Fzc2V0SWQFAAAAA25pbAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAB1Zb3UgY2Fubm90IGdldCBTSUdOIHRva2VuIHlldAkAAaQAAAABCQAAZQAAAAIFAAAABmhlaWdodAUAAAAObGFzdENhbGxIZWlnaHQJAAGkAAAAAQUAAAAGaGVpZ2h0CQABpAAAAAEFAAAADmxhc3RDYWxsSGVpZ2h0AAAAACa0jac=",
"height": 1281990,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6p7MXcEt8cYezVV3eM64w7r37Z5zKa8eA5DAU1h5qyVQ
Next: EM3o2DZWqZRcujhac4rh38J8ezGcjmGK4pVTC39nRWEn
Diff:
Old | New | | Differences |
---|
11 | 11 | | case a: Int => |
---|
12 | 12 | | a |
---|
13 | 13 | | case _ => |
---|
14 | | - | height |
---|
| 14 | + | (height + 10) |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
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 | | - | height |
---|
| 14 | + | (height + 10) |
---|
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) >= 10) |
---|
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 yet" + toString((height - lastCallHeight))) + toString(height)) + toString(lastCallHeight))) |
---|
26 | 26 | | } |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|