tx · 3NNnoBLG7adtUQ2PBx4fXe27goJotiVVpVsLbD1zEkEy

3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB:  -0.01400000 Waves

2019.11.16 11:21 [767419] smart account 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB > SELF 0.00000000 Waves

{ "type": 13, "id": "3NNnoBLG7adtUQ2PBx4fXe27goJotiVVpVsLbD1zEkEy", "fee": 1400000, "feeAssetId": null, "timestamp": 1573892625097, "version": 1, "sender": "3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB", "senderPublicKey": "Gd5NihbWQoWuTnSvq25TuV2BYZG4U1e9KDqZn9zBPix7", "proofs": [ "mhP1YxjkWqrLaVSU8SEQbhecqJ6fXsQeTFhtWCNYiv4jrVA7ANwssd6wcsauj3G7AFxXaoHurgMq5mTjYhRp6Mw" ], "script": "base64:AAIDAAAAAAAAAAoIARIGCgQICAgIAAAAAgAAAAAIdmVyaWZpZXIJAQAAAAdleHRyYWN0AAAAAQkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAABGJhbmsCAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAQAAAAZpbnZva2UBAAAAEWZpbGVDZXJ0aWZpY2F0aW9uAAAABAAAAARoYXNoAAAABXRpdGxlAAAABHV1aWQAAAAEZGF0YQQAAAAHcGF5bWVudAkBAAAAB2V4dHJhY3QAAAABCAUAAAAGaW52b2tlAAAAB3BheW1lbnQEAAAABmFtb3VudAkBAAAAB2V4dHJhY3QAAAABCAUAAAAHcGF5bWVudAAAAAZhbW91bnQEAAAAAmlkCQEAAAAHZXh0cmFjdAAAAAEIBQAAAAZpbnZva2UAAAANdHJhbnNhY3Rpb25JZAQAAAAKZW50cnlFeGlzdAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAIFA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2ZjXwkAAlgAAAABBQAAAAJpZAIAAAABXwUAAAANY2FsbGVyQWRkcmVzcwUAAAAEZGF0YQUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAEYmFuawUAAAAGYW1vdW50CAUAAAAHcGF5bWVudAAAAAdhc3NldElkBQAAAANuaWwAAAAAyg017w==", "chainId": 84, "height": 767419, "spentComplexity": 0 } View: original | compacted Prev: FaGPrZiDHp9Uzs556SuNwAz9ajTkmMsUBvhiUmVNK24c Next: 7eNNx2X8dEm3zfURuHEEyv3vgK6pnp68iVMjt9t4BiPT Diff:
OldNewDifferences
88 @Callable(c)
99 func fileCertification (d,e,f,g) = {
1010 let h = extract(c.payment)
11- let i = if (isDefined(h.amount))
12- then extract(h.amount)
13- else 0
11+ let i = extract(h.amount)
1412 let j = extract(c.transactionId)
1513 let k = {
1614 let l = getString(this, (d + f))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = extract(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
55
66 let b = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
77
88 @Callable(c)
99 func fileCertification (d,e,f,g) = {
1010 let h = extract(c.payment)
11- let i = if (isDefined(h.amount))
12- then extract(h.amount)
13- else 0
11+ let i = extract(h.amount)
1412 let j = extract(c.transactionId)
1513 let k = {
1614 let l = getString(this, (d + f))
1715 if ($isInstanceOf(l, "String"))
1816 then {
1917 let m = l
2018 m
2119 }
2220 else "NONE"
2321 }
2422 let n = {
2523 let l = getString(this, f)
2624 if ($isInstanceOf(l, "String"))
2725 then {
2826 let m = l
2927 m
3028 }
3129 else "NONE"
3230 }
3331 let o = toBase58String(c.caller.bytes)
3432 let p = {
3533 let l = getInteger(this, ("addr_WHITELISTED_" + o))
3634 if ($isInstanceOf(l, "Int"))
3735 then {
3836 let m = l
3937 m
4038 }
4139 else 0
4240 }
4341 if ((k != "NONE"))
4442 then throw("This entry already exist")
4543 else if ((n != "NONE"))
4644 then throw("This uuid already exist")
4745 else if ((size(f) > 36))
4846 then throw("Uuid is too long")
4947 else if ((size(d) > 64))
5048 then throw("Hash is too long")
5149 else if ((size(e) > 64))
5250 then throw("Title is too long")
5351 else {
5452 let q = if (isDefined(h.assetId))
5553 then extract(h.assetId)
5654 else throw("Waves is not accepted as payment")
5755 let r = {
5856 let l = getString(a, ("white_list_token_" + toBase58String(extract(q))))
5957 if ($isInstanceOf(l, "String"))
6058 then {
6159 let m = l
6260 m
6361 }
6462 else throw("This token is not accepted at the moment")
6563 }
6664 let s = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(q))))
6765 if ((r != "WHITELISTED"))
6866 then throw("This token is not accepted at the moment")
6967 else if (if ((i != s))
7068 then (0 >= p)
7169 else false)
7270 then throw("The price is wrong")
7371 else if ((p > 0))
7472 then ScriptResult(WriteSet([DataEntry(f, toBase58String(j)), DataEntry((d + f), toBase58String(j)), DataEntry((e + f), toBase58String(j)), DataEntry(("addr_WHITELISTED_" + o), (p - 1)), DataEntry(((("data_fc_" + toBase58String(j)) + "_") + o), g)]), TransferSet([ScriptTransfer(addressFromStringValue(b), i, h.assetId)]))
7573 else ScriptResult(WriteSet([DataEntry(f, toBase58String(j)), DataEntry((d + f), toBase58String(j)), DataEntry((e + f), toBase58String(j)), DataEntry(((("data_fc_" + toBase58String(j)) + "_") + o), g)]), TransferSet([ScriptTransfer(addressFromStringValue(b), i, h.assetId)]))
7674 }
7775 }
7876
7977

github/deemru/w8io/026f985 
24.41 ms