tx · ACVEotrYwkso5TiPA5hcEyT2QDcd2SvqDzwvL1RtFWxU
3MwLcJy3MSb2kq6dUaUR5uBgm8zCKZMjz2S: -0.01400000 Waves
2021.03.26 22:23 [1455125] smart account 3MwLcJy3MSb2kq6dUaUR5uBgm8zCKZMjz2S > SELF 0.00000000 Waves
{
"type": 13,
"id": "ACVEotrYwkso5TiPA5hcEyT2QDcd2SvqDzwvL1RtFWxU",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1616786751279,
"version": 2,
"chainId": 84,
"sender": "3MwLcJy3MSb2kq6dUaUR5uBgm8zCKZMjz2S",
"senderPublicKey": "CgByewRUvLk7UtWSfRMLSYw4Ap2wT5dcdVYKideqDp9M",
"proofs": [
"3zUDRDJNUq2X9zWiQr1WziHgq3dtg42dm7WF9pHDtig1CtvMPeaHTuy4qTiP2eLTjuU4t7AoXNfjK6LheNzWNf1r"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAADAAAAAAOdG90YWxGZWVFdGhLZXkCAAAADXRvdGFsX2ZlZV9ldGgAAAAADnRvdGFsRmVlVXNkS2V5AgAAAA10b3RhbF9mZWVfdXNkAAAAABJ0b3RhbEZlZUR5enJhcHRLZXkCAAAAEXRvdGFsX2ZlZV9keXpyYXB0AAAAAA1vcmFjbGVBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUvj/uzYkPvAWmBY0l0o79qoW9wh0kW3OWAAAAAA5keXpyYXB0QXNzZXRJZAEAAAAgnxnpc9km71BHiGYaP3+jsvIwnjyNE9APQJ48k4SnBCMAAAAACmV0aEFzc2V0SWQBAAAAICImU7qSm/1VgN3CrHN9jStFD2u0cA4gGz96jcaC4wuhAAAAAAt1c2RuQXNzZXRJZAEAAAAgfGnBa2RwgHQkUhuI1e0jfydVGajNaZehqKCu72Hgd8IBAAAADGdldEZlZUFtb3VudAAAAAEAAAAGYW1vdW50BAAAAANmZWUJAABrAAAAAwUAAAAGYW1vdW50AAAAAAAAAAADAAAAAAAAAABkBQAAAANmZWUBAAAADWdldEludEtleURhdGEAAAABAAAAA2tleQQAAAABdgkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkAAAAAAAAAAAAFAAAAAXYBAAAADmdldFRvdGFsRmVlRXRoAAAAAAkBAAAADWdldEludEtleURhdGEAAAABBQAAAA50b3RhbEZlZUV0aEtleQEAAAAOZ2V0VG90YWxGZWVVc2QAAAAACQEAAAANZ2V0SW50S2V5RGF0YQAAAAEFAAAADnRvdGFsRmVlVXNkS2V5AQAAABJnZXRUb3RhbEZlZUR5enJhcHQAAAAACQEAAAANZ2V0SW50S2V5RGF0YQAAAAEFAAAAEnRvdGFsRmVlRHl6cmFwdEtleQAAAAEAAAABaQEAAAAEdGVzdAAAAAAEAAAAA3BtdAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAHYXNzZXRJZAgFAAAAA3BtdAAAAAdhc3NldElkAwkAAAAAAAACBQAAAAdhc3NldElkBQAAAA5keXpyYXB0QXNzZXRJZAkAAAIAAAABAgAAAA1pdHMgYSBkeXpyYXB0CQAAAgAAAAECAAAAEWl0cyBub3QgYSBkeXpyYXB0AAAAALo6R78=",
"height": 1455125,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2pUwbrsRqBuywErVUbHH9NcaKnw1kmzqNg7U6B2vxsfY
Next: 5BnAhGPLt9iSQAhg5JcghChrtYMmwh7BL53yFLQJBdPj
Diff:
Old | New | | Differences |
---|
9 | 9 | | |
---|
10 | 10 | | let d = Address(base58'3N7G2kVtBTh94aEnDHQ9dpi4EdsDxAiDXjB') |
---|
11 | 11 | | |
---|
12 | | - | func e (f) = { |
---|
13 | | - | let g = fraction(f, 3, 100) |
---|
14 | | - | g |
---|
15 | | - | } |
---|
| 12 | + | let e = base58'Bi4jxKEFjjYG2emeyxZfpkVMS88N7uAogHNsi1urkoJA' |
---|
16 | 13 | | |
---|
| 14 | + | let f = base58'3JJkzB4pFXcqdJvC9TcV8ys1FLgesr5SxbhmykkpceQp' |
---|
| 15 | + | |
---|
| 16 | + | let g = base58'9Nf5wpj6jds3VRZKDryp6Dtf3R9d8MdbjNhencLogCr5' |
---|
17 | 17 | | |
---|
18 | 18 | | func h (i) = { |
---|
19 | | - | let j = valueOrElse(getInteger(this, i), 0) |
---|
| 19 | + | let j = fraction(i, 3, 100) |
---|
20 | 20 | | j |
---|
21 | 21 | | } |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | | - | func k () = h(a) |
---|
| 24 | + | func k (l) = { |
---|
| 25 | + | let m = valueOrElse(getInteger(this, l), 0) |
---|
| 26 | + | m |
---|
| 27 | + | } |
---|
25 | 28 | | |
---|
26 | 29 | | |
---|
27 | | - | func l () = h(b) |
---|
| 30 | + | func n () = k(a) |
---|
28 | 31 | | |
---|
29 | 32 | | |
---|
30 | | - | func m () = h(c) |
---|
| 33 | + | func o () = k(b) |
---|
31 | 34 | | |
---|
32 | 35 | | |
---|
33 | | - | @Callable(n) |
---|
34 | | - | func test () = throw("hello, script") |
---|
| 36 | + | func p () = k(c) |
---|
| 37 | + | |
---|
| 38 | + | |
---|
| 39 | + | @Callable(q) |
---|
| 40 | + | func test () = { |
---|
| 41 | + | let r = value(q.payments[0]) |
---|
| 42 | + | let s = r.assetId |
---|
| 43 | + | if ((s == e)) |
---|
| 44 | + | then throw("its a dyzrapt") |
---|
| 45 | + | else throw("its not a dyzrapt") |
---|
| 46 | + | } |
---|
35 | 47 | | |
---|
36 | 48 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "total_fee_eth" |
---|
5 | 5 | | |
---|
6 | 6 | | let b = "total_fee_usd" |
---|
7 | 7 | | |
---|
8 | 8 | | let c = "total_fee_dyzrapt" |
---|
9 | 9 | | |
---|
10 | 10 | | let d = Address(base58'3N7G2kVtBTh94aEnDHQ9dpi4EdsDxAiDXjB') |
---|
11 | 11 | | |
---|
12 | | - | func e (f) = { |
---|
13 | | - | let g = fraction(f, 3, 100) |
---|
14 | | - | g |
---|
15 | | - | } |
---|
| 12 | + | let e = base58'Bi4jxKEFjjYG2emeyxZfpkVMS88N7uAogHNsi1urkoJA' |
---|
16 | 13 | | |
---|
| 14 | + | let f = base58'3JJkzB4pFXcqdJvC9TcV8ys1FLgesr5SxbhmykkpceQp' |
---|
| 15 | + | |
---|
| 16 | + | let g = base58'9Nf5wpj6jds3VRZKDryp6Dtf3R9d8MdbjNhencLogCr5' |
---|
17 | 17 | | |
---|
18 | 18 | | func h (i) = { |
---|
19 | | - | let j = valueOrElse(getInteger(this, i), 0) |
---|
| 19 | + | let j = fraction(i, 3, 100) |
---|
20 | 20 | | j |
---|
21 | 21 | | } |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | | - | func k () = h(a) |
---|
| 24 | + | func k (l) = { |
---|
| 25 | + | let m = valueOrElse(getInteger(this, l), 0) |
---|
| 26 | + | m |
---|
| 27 | + | } |
---|
25 | 28 | | |
---|
26 | 29 | | |
---|
27 | | - | func l () = h(b) |
---|
| 30 | + | func n () = k(a) |
---|
28 | 31 | | |
---|
29 | 32 | | |
---|
30 | | - | func m () = h(c) |
---|
| 33 | + | func o () = k(b) |
---|
31 | 34 | | |
---|
32 | 35 | | |
---|
33 | | - | @Callable(n) |
---|
34 | | - | func test () = throw("hello, script") |
---|
| 36 | + | func p () = k(c) |
---|
| 37 | + | |
---|
| 38 | + | |
---|
| 39 | + | @Callable(q) |
---|
| 40 | + | func test () = { |
---|
| 41 | + | let r = value(q.payments[0]) |
---|
| 42 | + | let s = r.assetId |
---|
| 43 | + | if ((s == e)) |
---|
| 44 | + | then throw("its a dyzrapt") |
---|
| 45 | + | else throw("its not a dyzrapt") |
---|
| 46 | + | } |
---|
35 | 47 | | |
---|
36 | 48 | | |
---|