tx · Dx5nDZT8vuDCyrtDoKDUvhJuHg4qAd3Y4LxrawkeqPeY
3NBaYzWT2odsyrZ2u1ghsrHinBm4xFRAgLX: -0.01400000 Waves
2019.07.02 14:47 [567736] smart account 3NBaYzWT2odsyrZ2u1ghsrHinBm4xFRAgLX > SELF 0.00000000 Waves
{
"type": 13,
"id": "Dx5nDZT8vuDCyrtDoKDUvhJuHg4qAd3Y4LxrawkeqPeY",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1562068023511,
"version": 1,
"sender": "3NBaYzWT2odsyrZ2u1ghsrHinBm4xFRAgLX",
"senderPublicKey": "HBqhfdFASRQ5eBBpu2y6c6KKi1az6bMx8v1JxX4iW1Q8",
"proofs": [
"4zA7wm2Ln83qWGyyqKWGN8gQJ671Eqddc335Ry5SQBN6rgT9nZQ1qdzmT8JPLAjuwC88DFDottgWHmwpbR52PwLd"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAQAAAAFpAQAAAApyZXRyYW5zbWl0AAAABAAAAAdhZGRyZXNzAAAABmFtb3VudAAAAARkYXRhAAAABnJlYWxseQQAAAADcGF5CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQEAAAAAnRvCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAAB2FkZHJlc3MEAAAABWNoZWNrCQAB9wAAAAEJAAGbAAAAAQUAAAAHYWRkcmVzcwMJAQAAAAEhAAAAAQUAAAAGcmVhbGx5CQAAAgAAAAECAAAADnJlYWxseSA9IGZhbHNlAwkBAAAAAiE9AAAAAgUAAAAEZGF0YQUAAAAFY2hlY2sJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAJYAAAAAQUAAAAEZGF0YQIAAAAEICE9IAkAAlgAAAABBQAAAAVjaGVjawIAAAABKAUAAAAHYWRkcmVzcwIAAAABKQMJAABmAAAAAgUAAAAGYW1vdW50CAUAAAADcGF5AAAABmFtb3VudAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAAlgAAAABBQAAAARkYXRhAgAAAAQgIT0gCQACWAAAAAEFAAAABWNoZWNrAgAAAAEoBQAAAAdhZGRyZXNzAgAAAAEpCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAAnRvBQAAAAZhbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAADCQEAAAABIQAAAAEJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAEJAAJcAAAAAQgFAAAAAnR4AAAACWJvZHlCeXRlcwYv1Aqz",
"chainId": 84,
"height": 567736,
"spentComplexity": 0
}
View: original | compacted
Prev: 7hKXRShBkR4sUqp7Bi6UKGCi4h34Z8xCXKsbFuJ9Ytb5
Next: BrVxb3MT9ApEVBfzpwqPGGAskoorr6v8EHqFGMbcjQuX
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func retransmit (address,amount,data,really) = { |
---|
8 | | - | let a = getBinaryValue(this, "123") |
---|
| 8 | + | let pay = extract(i.payment) |
---|
9 | 9 | | let to = addressFromStringValue(address) |
---|
10 | 10 | | let check = sha256(toBytes(address)) |
---|
11 | 11 | | if (!(really)) |
---|
12 | | - | then throw("really = true") |
---|
| 12 | + | then throw("really = false") |
---|
13 | 13 | | else if ((data != check)) |
---|
14 | 14 | | then throw((((((toBase58String(data) + " != ") + toBase58String(check)) + "(") + address) + ")")) |
---|
15 | | - | else TransferSet([ScriptTransfer(to, amount, unit)]) |
---|
| 15 | + | else if ((amount > pay.amount)) |
---|
| 16 | + | then throw((((((toBase58String(data) + " != ") + toBase58String(check)) + "(") + address) + ")")) |
---|
| 17 | + | else TransferSet([ScriptTransfer(to, amount, unit)]) |
---|
16 | 18 | | } |
---|
17 | 19 | | |
---|
18 | 20 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func retransmit (address,amount,data,really) = { |
---|
8 | | - | let a = getBinaryValue(this, "123") |
---|
| 8 | + | let pay = extract(i.payment) |
---|
9 | 9 | | let to = addressFromStringValue(address) |
---|
10 | 10 | | let check = sha256(toBytes(address)) |
---|
11 | 11 | | if (!(really)) |
---|
12 | | - | then throw("really = true") |
---|
| 12 | + | then throw("really = false") |
---|
13 | 13 | | else if ((data != check)) |
---|
14 | 14 | | then throw((((((toBase58String(data) + " != ") + toBase58String(check)) + "(") + address) + ")")) |
---|
15 | | - | else TransferSet([ScriptTransfer(to, amount, unit)]) |
---|
| 15 | + | else if ((amount > pay.amount)) |
---|
| 16 | + | then throw((((((toBase58String(data) + " != ") + toBase58String(check)) + "(") + address) + ")")) |
---|
| 17 | + | else TransferSet([ScriptTransfer(to, amount, unit)]) |
---|
16 | 18 | | } |
---|
17 | 19 | | |
---|
18 | 20 | | |
---|
19 | 21 | | @Verifier(tx) |
---|
20 | 22 | | func verify () = if (!(sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))) |
---|
21 | 23 | | then throw(toBase16String(tx.bodyBytes)) |
---|
22 | 24 | | else true |
---|
23 | 25 | | |
---|