tx · FaGPrZiDHp9Uzs556SuNwAz9ajTkmMsUBvhiUmVNK24c

3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB:  -0.01400000 Waves

2019.11.16 11:16 [767413] smart account 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB > SELF 0.00000000 Waves

{ "type": 13, "id": "FaGPrZiDHp9Uzs556SuNwAz9ajTkmMsUBvhiUmVNK24c", "fee": 1400000, "feeAssetId": null, "timestamp": 1573892230891, "version": 1, "sender": "3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB", "senderPublicKey": "Gd5NihbWQoWuTnSvq25TuV2BYZG4U1e9KDqZn9zBPix7", "proofs": [ "5veukLigTcdGswbKJHcrm6GJUT6AzxmQN1zXydfR68E342biR5mfwFwqD7CfBUYXWhhLYymxvutY11HRYg4DPo25" ], "script": "base64:AAIDAAAAAAAAAAoIARIGCgQICAgIAAAAAgAAAAAIdmVyaWZpZXIJAQAAAAdleHRyYWN0AAAAAQkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAABGJhbmsCAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAQAAAAZpbnZva2UBAAAAEWZpbGVDZXJ0aWZpY2F0aW9uAAAABAAAAARoYXNoAAAABXRpdGxlAAAABHV1aWQAAAAEZGF0YQQAAAAHcGF5bWVudAkBAAAAB2V4dHJhY3QAAAABCAUAAAAGaW52b2tlAAAAB3BheW1lbnQEAAAABmFtb3VudAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAHcGF5bWVudAAAAAZhbW91bnQJAQAAAAdleHRyYWN0AAAAAQgFAAAAB3BheW1lbnQAAAAGYW1vdW50AAAAAAAAAAAABAAAAAJpZAkBAAAAB2V4dHJhY3QAAAABCAUAAAAGaW52b2tlAAAADXRyYW5zYWN0aW9uSWQEAAAACmVudHJ5R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AAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAIZGF0YV9mY18JAAJYAAAAAQUAAAACaWQCAAAAAV8FAAAADWNhbGxlckFkZHJlc3MFAAAABGRhdGEFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAABGJhbmsFAAAABmFtb3VudAgFAAAAB3BheW1lbnQAAAAHYXNzZXRJZAUAAAADbmlsAAAAAEGQwn0=", "chainId": 84, "height": 767413, "spentComplexity": 0 } View: original | compacted Prev: CP6SxxxEfg3rDaHarwAMuJU9fE4uf7SPev1soTS3Yqjb Next: 3NNnoBLG7adtUQ2PBx4fXe27goJotiVVpVsLbD1zEkEy Diff:
OldNewDifferences
88 @Callable(c)
99 func fileCertification (d,e,f,g) = {
1010 let h = extract(c.payment)
11- let i = extract(h.amount)
11+ let i = if (isDefined(h.amount))
12+ then extract(h.amount)
13+ else 0
1214 let j = extract(c.transactionId)
1315 let k = {
1416 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 = extract(h.amount)
11+ let i = if (isDefined(h.amount))
12+ then extract(h.amount)
13+ else 0
1214 let j = extract(c.transactionId)
1315 let k = {
1416 let l = getString(this, (d + f))
1517 if ($isInstanceOf(l, "String"))
1618 then {
1719 let m = l
1820 m
1921 }
2022 else "NONE"
2123 }
2224 let n = {
2325 let l = getString(this, f)
2426 if ($isInstanceOf(l, "String"))
2527 then {
2628 let m = l
2729 m
2830 }
2931 else "NONE"
3032 }
3133 let o = toBase58String(c.caller.bytes)
3234 let p = {
3335 let l = getInteger(this, ("addr_WHITELISTED_" + o))
3436 if ($isInstanceOf(l, "Int"))
3537 then {
3638 let m = l
3739 m
3840 }
3941 else 0
4042 }
4143 if ((k != "NONE"))
4244 then throw("This entry already exist")
4345 else if ((n != "NONE"))
4446 then throw("This uuid already exist")
4547 else if ((size(f) > 36))
4648 then throw("Uuid is too long")
4749 else if ((size(d) > 64))
4850 then throw("Hash is too long")
4951 else if ((size(e) > 64))
5052 then throw("Title is too long")
5153 else {
5254 let q = if (isDefined(h.assetId))
5355 then extract(h.assetId)
5456 else throw("Waves is not accepted as payment")
5557 let r = {
5658 let l = getString(a, ("white_list_token_" + toBase58String(extract(q))))
5759 if ($isInstanceOf(l, "String"))
5860 then {
5961 let m = l
6062 m
6163 }
6264 else throw("This token is not accepted at the moment")
6365 }
6466 let s = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(q))))
6567 if ((r != "WHITELISTED"))
6668 then throw("This token is not accepted at the moment")
6769 else if (if ((i != s))
6870 then (0 >= p)
6971 else false)
7072 then throw("The price is wrong")
7173 else if ((p > 0))
7274 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)]))
7375 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)]))
7476 }
7577 }
7678
7779

github/deemru/w8io/026f985 
43.33 ms