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 a = 10000000 |
---|
| 5 | + | |
---|
| 6 | + | func b (c,d) = { |
---|
| 7 | + | let e = toBase58String(sha256(toBytes((c + d)))) |
---|
| 8 | + | e |
---|
| 9 | + | } |
---|
| 10 | + | |
---|
| 11 | + | |
---|
| 12 | + | @Callable(f) |
---|
| 13 | + | func setAdv (d) = { |
---|
| 14 | + | let g = extract(f.payment) |
---|
| 15 | + | if (isDefined(g.assetId)) |
---|
| 16 | + | then throw("WAVES token only at the moment") |
---|
| 17 | + | else if ((g.amount != a)) |
---|
| 18 | + | then throw("You need pay 0.1 WAVES") |
---|
| 19 | + | else { |
---|
| 20 | + | let h = toBase58String(f.caller.bytes) |
---|
| 21 | + | let e = b(h, d) |
---|
| 22 | + | WriteSet([DataEntry(("owner_" + e), h), DataEntry(("message_" + e), d)]) |
---|
| 23 | + | } |
---|
| 24 | + | } |
---|
| 25 | + | |
---|
| 26 | + | |
---|