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:AAIDAAAAAAAAAAAAAAACAAAAAAh2ZXJpZmllcgkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAEYmFuawIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAABAAAABmludm9rZQEAAAARZmlsZUNlcnRpZmljYXRpb24AAAAEAAAABGhhc2gAAAAFdGl0bGUAAAAEdXVpZAAAAARkYXRhBAAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAZpbnZva2UAAAAHcGF5bWVudAQAAAAGYW1vdW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAdwYXltZW50AAAABmFtb3VudAQAAAACaWQJAQAAAAdleHRyYWN0AAAAAQgFAAAABmludm9rZQAAAA10cmFuc2FjdGlvbklkBAAAAAplbnRyeUV4aXN0BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAEaGFzaAUAAAAEdXVp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msFAAAABmFtb3VudAgFAAAAB3BheW1lbnQAAAAHYXNzZXRJZAUAAAADbmlsAAAAAPjls1Y=", "chainId": 84, "height": 692857, "spentComplexity": 0 } View: original | compacted Prev: CvhJBeRQx8WGzuLVVvM41NevcicE5ynTBwUDQVBmZEuZ Next: 8vKY3w2CMh4TyrG3KvKJqeyByvJoQ64uZqcv2CV7T9b4 Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = extract(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let b = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
7 | 7 | ||
8 | 8 | @Callable(c) | |
9 | 9 | func fileCertification (d,e,f,g) = { | |
10 | 10 | let h = extract(c.payment) | |
11 | 11 | let i = extract(h.amount) | |
12 | 12 | let j = extract(c.transactionId) | |
13 | 13 | let k = { | |
14 | 14 | let l = getString(this, (d + f)) | |
15 | 15 | if ($isInstanceOf(l, "String")) | |
16 | 16 | then { | |
17 | 17 | let m = l | |
18 | 18 | m | |
19 | 19 | } | |
20 | 20 | else "NONE" | |
21 | 21 | } | |
22 | 22 | let n = { | |
23 | 23 | let l = getString(this, f) | |
24 | 24 | if ($isInstanceOf(l, "String")) | |
25 | 25 | then { | |
26 | 26 | let m = l | |
27 | 27 | m | |
28 | 28 | } | |
29 | 29 | else "NONE" | |
30 | 30 | } | |
31 | 31 | if ((k != "NONE")) | |
32 | 32 | then throw("This entry already exist") | |
33 | 33 | else if ((n != "NONE")) | |
34 | 34 | then throw("This uuid already exist") | |
35 | 35 | else if ((size(f) > 36)) | |
36 | 36 | then throw("Uuid is too long") | |
37 | 37 | else if ((size(e) > 64)) | |
38 | 38 | then throw("Title is too long") | |
39 | 39 | else { | |
40 | 40 | let o = if (isDefined(h.assetId)) | |
41 | 41 | then extract(h.assetId) | |
42 | 42 | else throw("Waves is not accepted as payment") | |
43 | 43 | let p = { | |
44 | 44 | let l = getString(a, ("white_list_token_" + toBase58String(extract(o)))) | |
45 | 45 | if ($isInstanceOf(l, "String")) | |
46 | 46 | then { | |
47 | 47 | let m = l | |
48 | 48 | m | |
49 | 49 | } | |
50 | 50 | else throw("This token is not accepted at the moment") | |
51 | 51 | } | |
52 | 52 | let q = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(o)))) | |
53 | 53 | if ((p != "WHITELISTED")) | |
54 | 54 | then throw("This token is not accepted at the moment") | |
55 | 55 | else if ((i != q)) | |
56 | 56 | then throw("The price is wrong") | |
57 | 57 | 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)])) | |
58 | 58 | } | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 |
github/deemru/w8io/026f985 23.49 ms ◑