tx · 3VrtCofmHSmCCAxwkTZmDFxocb1kMAajDHxXwpXArEyG 3MqxFhe869ri22Y1418TcrXUX2X9YMzG2Yb: -0.01400000 Waves 2019.06.27 22:20 [560947] smart account 3MqxFhe869ri22Y1418TcrXUX2X9YMzG2Yb > SELF 0.00000000 Waves
{ "type": 13, "id": "3VrtCofmHSmCCAxwkTZmDFxocb1kMAajDHxXwpXArEyG", "fee": 1400000, "feeAssetId": null, "timestamp": 1561663228596, "version": 1, "sender": "3MqxFhe869ri22Y1418TcrXUX2X9YMzG2Yb", "senderPublicKey": "FRkBvFhV1T95mPTxp7sk2Ms2BuHViwyG7yPzxpxye1Kw", "proofs": [ "4o1s5afNknLwv4BjiwZicK2X4q4b2naT4n2XF86zyWtirngnktE2mj5rwpwyVZoo8sHVmJmsy37UDXn7BzocWKrp" ], "script": "base64:AAIDAAAAAAAAAAAAAAACAAAAAAhwcmljZWFkdgAAAAAAAJiWgAEAAAAJdW5pcXVlS2V5AAAAAgAAAAVvd25lcgAAAAR0ZXh0BAAAAAR1S2V5CQACWAAAAAEJAAH3AAAAAQkAAZsAAAABCQABLAAAAAIFAAAABW93bmVyBQAAAAR0ZXh0BQAAAAR1S2V5AAAAAQAAAAFpAQAAAAZzZXRBZHYAAAABAAAABHRleHQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAAB5XQVZFUyB0b2tlbiBvbmx5IGF0IHRoZSBtb21lbnQDCQEAAAACIT0AAAACCAUAAAADcG10AAAABmFtb3VudAUAAAAIcHJpY2VhZHYJAAACAAAAAQIAAAAWWW91IG5lZWQgcGF5IDAuMSBXQVZFUwQAAAAMb3duZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABHVLZXkJAQAAAAl1bmlxdWVLZXkAAAACBQAAAAxvd25lckFkZHJlc3MFAAAABHRleHQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAGb3duZXJfBQAAAAR1S2V5BQAAAAxvd25lckFkZHJlc3MJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAIbWVzc2FnZV8FAAAABHVLZXkFAAAABHRleHQFAAAAA25pbAAAAAAkyytK", "chainId": 84, "height": 560947, "spentComplexity": 0 } View: original | compacted Prev: none Next: EKxJ2EDq1ENFJNLCDDRWXkWUg57BvYHNejYWdpN6h3pZ Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let priceadv = 10000000 | |
5 | + | ||
6 | + | func uniqueKey (owner,text) = { | |
7 | + | let uKey = toBase58String(sha256(toBytes((owner + text)))) | |
8 | + | uKey | |
9 | + | } | |
10 | + | ||
11 | + | ||
12 | + | @Callable(i) | |
13 | + | func setAdv (text) = { | |
14 | + | let pmt = extract(i.payment) | |
15 | + | if (isDefined(pmt.assetId)) | |
16 | + | then throw("WAVES token only at the moment") | |
17 | + | else if ((pmt.amount != priceadv)) | |
18 | + | then throw("You need pay 0.1 WAVES") | |
19 | + | else { | |
20 | + | let ownerAddress = toBase58String(i.caller.bytes) | |
21 | + | let uKey = uniqueKey(ownerAddress, text) | |
22 | + | WriteSet([DataEntry(("owner_" + uKey), ownerAddress), DataEntry(("message_" + uKey), text)]) | |
23 | + | } | |
24 | + | } | |
25 | + | ||
26 | + |
github/deemru/w8io/03bedc9 18.27 ms ◑![]()