tx · 7Uohip9fo24pAwxMC8UWcpf859jMvaPBS2k89f9H7Mcs 3MspD78ATCMaTgGNNX7Spdr4cVQBHDwwdVg: -0.01400000 Waves 2019.09.26 14:01 [693234] smart account 3MspD78ATCMaTgGNNX7Spdr4cVQBHDwwdVg > SELF 0.00000000 Waves
{ "type": 13, "id": "7Uohip9fo24pAwxMC8UWcpf859jMvaPBS2k89f9H7Mcs", "fee": 1400000, "feeAssetId": null, "timestamp": 1569495721739, "version": 1, "sender": "3MspD78ATCMaTgGNNX7Spdr4cVQBHDwwdVg", "senderPublicKey": "Hk96b2ED8Vpzy49rdwmX4WtN3zAPdSg7SNeBUvreMCYU", "proofs": [ "2giBUfTzGKstqqjvXDpHgpNjcweGtLCuFSYjzPQtfnEKebk5GTz4Kusq1cVraHfeNk5FWaWLDNWxko8QPMVhDhoZ" ], "script": "base64:AAIDAAAAAAAAAAAAAAACAAAAAAh2ZXJpZmllcgkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAEYmFuawIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAABAAAABmludm9rZQEAAAARZmlsZUNlcnRpZmljYXRpb24AAAAEAAAABGhhc2gAAAAFdGl0bGUAAAAEdXVpZAAAAARkYXRhBAAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAZpbnZva2UAAAAHcGF5bWVudAQAAAAGYW1vdW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAdwYXltZW50AAAABmFtb3VudAQAAAACaWQJAQAAAAdleHRyYWN0AAAAAQgFAAAABmludm9rZQAAAA10cmFuc2FjdGlvbklkBAAAAAplbnRyeUV4aXN0BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAEaGFzaAUAAAAEdXVpZ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0YUVudHJ5AAAAAgIAAAAIdGVzdGZlZTQJAAJYAAAAAQUAAAACaWQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAACHRlc3RmZWU1CQACWAAAAAEFAAAAAmlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAh0ZXN0ZmVlNgkAAlgAAAABBQAAAAJpZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAIdGVzdGZlZTcJAAJYAAAAAQUAAAACaWQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAACHRlc3RmZWU4CQACWAAAAAEFAAAAAmlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAh0ZXN0ZmVlOQkAAlgAAAABBQAAAAJpZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAJdGVzdGZlZTEwCQACWAAAAAEFAAAAAmlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAl0ZXN0ZmVlMTEJAAJYAAAAAQUAAAACaWQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAACGRhdGFfZmNfCQACWAAAAAEFAAAAAmlkAgAAAAFfCQACWAAAAAEICAUAAAAGaW52b2tlAAAABmNhbGxlcgAAAAVieXRlcwUAAAAEZGF0YQUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAEYmFuawUAAAAGYW1vdW50CAUAAAAHcGF5bWVudAAAAAdhc3NldElkBQAAAANuaWwAAAAAI2bFGQ==", "chainId": 84, "height": 693234, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = extract(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | + | ||
6 | + | let b = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
7 | + | ||
8 | + | @Callable(c) | |
9 | + | func fileCertification (d,e,f,g) = { | |
10 | + | let h = extract(c.payment) | |
11 | + | let i = extract(h.amount) | |
12 | + | let j = extract(c.transactionId) | |
13 | + | let k = { | |
14 | + | let l = getString(this, (d + f)) | |
15 | + | if ($isInstanceOf(l, "String")) | |
16 | + | then { | |
17 | + | let m = l | |
18 | + | m | |
19 | + | } | |
20 | + | else "NONE" | |
21 | + | } | |
22 | + | let n = { | |
23 | + | let l = getString(this, f) | |
24 | + | if ($isInstanceOf(l, "String")) | |
25 | + | then { | |
26 | + | let m = l | |
27 | + | m | |
28 | + | } | |
29 | + | else "NONE" | |
30 | + | } | |
31 | + | if ((k != "NONE")) | |
32 | + | then throw("This entry already exist") | |
33 | + | else if ((n != "NONE")) | |
34 | + | then throw("This uuid already exist") | |
35 | + | else if ((size(f) > 36)) | |
36 | + | then throw("Uuid is too long") | |
37 | + | else if ((size(d) > 64)) | |
38 | + | then throw("Hash is too long") | |
39 | + | else if ((size(e) > 64)) | |
40 | + | then throw("Title is too long") | |
41 | + | else { | |
42 | + | let o = if (isDefined(h.assetId)) | |
43 | + | then extract(h.assetId) | |
44 | + | else throw("Waves is not accepted as payment") | |
45 | + | let p = { | |
46 | + | let l = getString(a, ("white_list_token_" + toBase58String(extract(o)))) | |
47 | + | if ($isInstanceOf(l, "String")) | |
48 | + | then { | |
49 | + | let m = l | |
50 | + | m | |
51 | + | } | |
52 | + | else throw("This token is not accepted at the moment") | |
53 | + | } | |
54 | + | let q = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(o)))) | |
55 | + | if ((p != "WHITELISTED")) | |
56 | + | then throw("This token is not accepted at the moment") | |
57 | + | else if ((i != q)) | |
58 | + | then throw("The price is wrong") | |
59 | + | else ScriptResult(WriteSet([DataEntry(f, toBase58String(j)), DataEntry((d + f), toBase58String(j)), DataEntry((e + f), toBase58String(j)), DataEntry("testfee1", toBase58String(j)), DataEntry("testfee2", toBase58String(j)), DataEntry("testfee3", toBase58String(j)), DataEntry("testfee4", toBase58String(j)), DataEntry("testfee5", toBase58String(j)), DataEntry("testfee6", toBase58String(j)), DataEntry("testfee7", toBase58String(j)), DataEntry("testfee8", toBase58String(j)), DataEntry("testfee9", toBase58String(j)), DataEntry("testfee10", toBase58String(j)), DataEntry("testfee11", toBase58String(j)), DataEntry(((("data_fc_" + toBase58String(j)) + "_") + toBase58String(c.caller.bytes)), g)]), TransferSet([ScriptTransfer(addressFromStringValue(b), i, h.assetId)])) | |
60 | + | } | |
61 | + | } | |
62 | + | ||
63 | + |
github/deemru/w8io/169f3d6 25.57 ms ◑