tx · Gxc41i8LeoENPKXdVEj5f8v1oajjHgKm38V65SpFKbuY

3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB:  -0.01400000 Waves

2019.09.26 07:46 [692857] smart account 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB > SELF 0.00000000 Waves

{ "type": 13, "id": "Gxc41i8LeoENPKXdVEj5f8v1oajjHgKm38V65SpFKbuY", "fee": 1400000, "feeAssetId": null, "timestamp": 1569473212461, "version": 1, "sender": "3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB", "senderPublicKey": "Gd5NihbWQoWuTnSvq25TuV2BYZG4U1e9KDqZn9zBPix7", "proofs": [ "2kcenDEJk4yDhGzNGfZjk8EvGDXbUm4xWQSEAVWyDrnRBXyZvJ1Wz4JGMnooBLjWr4sMjtAaXgyMQBMVdKuA4Xtv" ], "script": "base64:AAIDAAAAAAAAAAAAAAACAAAAAAh2ZXJpZmllcgkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAEYmFuawIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAABAAAABmludm9rZQEAAAARZmlsZUNlcnRpZmljYXRpb24AAAAEAAAABGhhc2gAAAAFdGl0bGUAAAAEdXVpZAAAAARkYXRhBAAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAZpbnZva2UAAAAHcGF5bWVudAQAAAAGYW1vdW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAdwYXltZW50AAAABmFtb3VudAQAAAACaWQJAQAAAAdleHRyYWN0AAAAAQgFAAAABmludm9rZQAAAA10cmFuc2FjdGlvbklkBAAAAAplbnRyeUV4aXN0BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAEaGFzaAUAAAAEdXV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bmsFAAAABmFtb3VudAgFAAAAB3BheW1lbnQAAAAHYXNzZXRJZAUAAAADbmlsAAAAAPjls1Y=", "chainId": 84, "height": 692857, "spentComplexity": 0 } View: original | compacted Prev: CvhJBeRQx8WGzuLVVvM41NevcicE5ynTBwUDQVBmZEuZ Next: 8vKY3w2CMh4TyrG3KvKJqeyByvJoQ64uZqcv2CV7T9b4 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)
1111 let i = extract(h.amount)
1212 let j = extract(c.transactionId)
1313 let k = {
1414 let l = getString(this, (d + f))
1515 if ($isInstanceOf(l, "String"))
1616 then {
1717 let m = l
1818 m
1919 }
2020 else "NONE"
2121 }
2222 let n = {
2323 let l = getString(this, f)
2424 if ($isInstanceOf(l, "String"))
2525 then {
2626 let m = l
2727 m
2828 }
2929 else "NONE"
3030 }
3131 if ((k != "NONE"))
3232 then throw("This entry already exist")
3333 else if ((n != "NONE"))
3434 then throw("This uuid already exist")
3535 else if ((size(f) > 36))
3636 then throw("Uuid is too long")
3737 else if ((size(e) > 64))
3838 then throw("Title is too long")
3939 else {
4040 let o = if (isDefined(h.assetId))
4141 then extract(h.assetId)
4242 else throw("Waves is not accepted as payment")
4343 let p = {
4444 let l = getString(a, ("white_list_token_" + toBase58String(extract(o))))
4545 if ($isInstanceOf(l, "String"))
4646 then {
4747 let m = l
4848 m
4949 }
5050 else throw("This token is not accepted at the moment")
5151 }
5252 let q = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(o))))
5353 if ((p != "WHITELISTED"))
5454 then throw("This token is not accepted at the moment")
5555 else if ((i != q))
5656 then throw("The price is wrong")
5757 else ScriptResult(WriteSet([DataEntry(f, toBase58String(j)), DataEntry((d + f), toBase58String(j)), DataEntry((e + f), toBase58String(j)), DataEntry(((("data_fc_" + toBase58String(j)) + "_") + toBase58String(c.caller.bytes)), g)]), TransferSet([ScriptTransfer(addressFromStringValue(b), i, h.assetId)]))
5858 }
5959 }
6060
6161

github/deemru/w8io/026f985 
23.49 ms