tx · 62NBkKVzVyUedufzyNsFtHM357jdfRBtFDi9joAtSvA3

3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN:  -0.01400000 Waves

2020.02.02 17:50 [881677] smart account 3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN > SELF 0.00000000 Waves

{ "type": 13, "id": "62NBkKVzVyUedufzyNsFtHM357jdfRBtFDi9joAtSvA3", "fee": 1400000, "feeAssetId": null, "timestamp": 1580655016240, "version": 1, "sender": "3NCEnW5hTnRQ7J9TFQsHS4W92f54PCCWQvN", "senderPublicKey": "8PUyJHGVRUxhY118c4H5isGCGLYgRBmcSzNYooDAqwh", "proofs": [ "ixYaypaZUruwtAmdjCC1ZdmxH5Q2E2TSa4ymTWgG6XTpBMa5JcPFjLBqFWYPwu3MU7YjiEYw4F1xQ47oZQXBFk1" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIIAQAAAAEAAAAAD25hbWVVbnRpbFN1ZmZ1eAIAAAAGOnVudGlsAAAAAQAAAAFpAQAAAAdnZXRMb2NrAAAAAgAAAAhsb2NrTmFtZQAAAAV1bnRpbAQAAAANbG9ja05hbWVVbnRpbAkAASwAAAACBQAAAAhsb2NrTmFtZQUAAAAPbmFtZVVudGlsU3VmZnV4BAAAAAlibG9ja0luZm8JAAPtAAAAAQUAAAAGaGVpZ2h0BAAAAANub3cEAAAAByRtYXRjaDAFAAAACWJsb2NrSW5mbwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAJQmxvY2tJbmZvBAAAAAF0BQAAAAckbWF0Y2gwCAUAAAABdAAAAAl0aW1lc3RhbXAJAAACAAAAAQIAAAAUQ2Fubm90IGdldCBibG9ja2luZm8EAAAACW5vdFRvb0xvdwMJAABnAAAAAgUAAAADbm93BQAAAAV1bnRpbAkAAAIAAAABAgAAAB9TdXBwbGllZCB1bnRpbCB2YWx1ZSBpcyB0b28gbG93BgQAAAAKbm90VG9vSGlnaAMJAABmAAAAAgUAAAAFdW50aWwJAABkAAAAAgUAAAADbm93AAAAAAAACSfACQAAAgAAAAECAAAAIFN1cHBsaWVkIHVudGlsIHZhbHVlIGlzIHRvbyBoaWdoBgQAAAALY2FuQmVMb2NrZWQEAAAAByRtYXRjaDAJAAQcAAAAAgUAAAAEdGhpcwUAAAAIbG9ja05hbWUDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAAWIFAAAAByRtYXRjaDAJAAAAAAAAAgUAAAABYggIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAEVW5pdAUAAAAHJG1hdGNoMAYEAAAADGxhc3RMb2NrVGltZQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAA1sb2NrTmFtZVVudGlsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAXQFAAAAByRtYXRjaDAFAAAAAXQEAAAABFVuaXQFAAAAByRtYXRjaDAAAAAAAAAAAAADAwMFAAAACW5vdFRvb0xvdwUAAAAKbm90VG9vSGlnaAcDBQAAAAtjYW5CZUxvY2tlZAYJAABnAAAAAgUAAAAGaGVpZ2h0BQAAAAxsYXN0TG9ja1RpbWUHCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAhsb2NrTmFtZQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAANbG9ja05hbWVVbnRpbAUAAAAFdW50aWwFAAAAA25pbAkAAAIAAAABAgAAABNMb2NrIGNhbnQgYmUgbG9ja2VkAAAAAJgisl0=", "chainId": 84, "height": 881677, "spentComplexity": 0 } View: original | compacted Prev: CHkHT3EvitFJfbZy4NJ7PiCV8cwoZkCTYSjhE6ow8gqz Next: 8DRYuJaQCiMYgsWw4YpNMtQN7QfKKrmMVkxaTqYB8L2w Diff:
OldNewDifferences
1616 let notTooLow = if ((now >= until))
1717 then throw("Supplied until value is too low")
1818 else true
19- let notTooHigh = if ((until > (now + 600)))
19+ let notTooHigh = if ((until > (now + 600000)))
2020 then throw("Supplied until value is too high")
2121 else true
2222 let canBeLocked = match getBinary(this, lockName) {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let nameUntilSuffux = ":until"
55
66 @Callable(i)
77 func getLock (lockName,until) = {
88 let lockNameUntil = (lockName + nameUntilSuffux)
99 let blockInfo = blockInfoByHeight(height)
1010 let now = match blockInfo {
1111 case t: BlockInfo =>
1212 t.timestamp
1313 case _ =>
1414 throw("Cannot get blockinfo")
1515 }
1616 let notTooLow = if ((now >= until))
1717 then throw("Supplied until value is too low")
1818 else true
19- let notTooHigh = if ((until > (now + 600)))
19+ let notTooHigh = if ((until > (now + 600000)))
2020 then throw("Supplied until value is too high")
2121 else true
2222 let canBeLocked = match getBinary(this, lockName) {
2323 case b: ByteVector =>
2424 (b == i.caller.bytes)
2525 case Unit =>
2626 true
2727 }
2828 let lastLockTime = match getInteger(this, lockNameUntil) {
2929 case t: Int =>
3030 t
3131 case Unit =>
3232 0
3333 }
3434 if (if (if (notTooLow)
3535 then notTooHigh
3636 else false)
3737 then if (canBeLocked)
3838 then true
3939 else (height >= lastLockTime)
4040 else false)
4141 then WriteSet([DataEntry(lockName, i.caller.bytes), DataEntry(lockNameUntil, until)])
4242 else throw("Lock cant be locked")
4343 }
4444
4545

github/deemru/w8io/026f985 
23.63 ms