tx · 6frUCXny2wPGe4wGx37imT49mfAJp9xb1LTba1kVMsbu
3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat: -0.00500000 Waves
2022.09.29 16:13 [2250439] smart account 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat > SELF 0.00000000 Waves
{
"type": 13,
"id": "6frUCXny2wPGe4wGx37imT49mfAJp9xb1LTba1kVMsbu",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1664457243970,
"version": 2,
"chainId": 84,
"sender": "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat",
"senderPublicKey": "AwWYbCDs6GDxAT6diG2mfEqD7tFz9JXu9k234FS135kR",
"proofs": [
"4YJMZJvimDL2P59JNtkJFZDz7UKRJQen2QmMT9P4CQoyt9pek65dSD3Msr2kMQuAiytsqSCDK9BH4AGVTH8Rxpz8"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIIAQAAAAEAAAAABXJ1bGVyAgAAACxCZ3hwQ200d3hiVzhTS0xQS1puZjRLVTJENlpVMjlvdjhNZ1pya2FTQXFwWQAAAAEAAAABaQEAAAAEc3dhcAAAAAIAAAAIYXNzZXRPdXQAAAAHbWluaW11bQQAAAAGY2FsbGVyCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgQAAAAJY2FsbGVyUGJrCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQMJAQAAAAIhPQAAAAIFAAAACWNhbGxlclBiawUAAAAFcnVsZXIJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAACU5vLW5vLW5vIAUAAAAJY2FsbGVyUGJrAgAAAAIsIAUAAAAFcnVsZXICAAAAAiwgBQAAAAZjYWxsZXIEAAAAA3BtdAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAHYXNzZXRJbgkBAAAABXZhbHVlAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkBAAAAAhhbW91bnRJbgkBAAAABXZhbHVlAAAAAQgFAAAAA3BtdAAAAAZhbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAAm9wAAAAAAAAAAABBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleflL6Sg=",
"height": 2250439,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HnprLnJKmk9NoJyqFjff65iM2um2xCt5gwAEKtKhD7pQ
Next: 81e4Gtet1Y441sNrCHBTSb8THfNyNdhy1W91pLxRJMD7
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func swap (assetOut,minimum) = { |
---|
8 | | - | let callerPbk = toBase64String(i.callerPublicKey) |
---|
| 8 | + | let caller = toString(i.caller) |
---|
| 9 | + | let callerPbk = toBase58String(i.callerPublicKey) |
---|
9 | 10 | | if ((callerPbk != ruler)) |
---|
10 | | - | then throw(((("No-no-no " + callerPbk) + ", ") + ruler)) |
---|
| 11 | + | then throw(((((("No-no-no " + callerPbk) + ", ") + ruler) + ", ") + caller)) |
---|
11 | 12 | | else { |
---|
12 | 13 | | let pmt = i.payments[0] |
---|
13 | 14 | | let assetIn = value(pmt.assetId) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let ruler = "BgxpCm4wxbW8SKLPKZnf4KU2D6ZU29ov8MgZrkaSAqpY" |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func swap (assetOut,minimum) = { |
---|
8 | | - | let callerPbk = toBase64String(i.callerPublicKey) |
---|
| 8 | + | let caller = toString(i.caller) |
---|
| 9 | + | let callerPbk = toBase58String(i.callerPublicKey) |
---|
9 | 10 | | if ((callerPbk != ruler)) |
---|
10 | | - | then throw(((("No-no-no " + callerPbk) + ", ") + ruler)) |
---|
| 11 | + | then throw(((((("No-no-no " + callerPbk) + ", ") + ruler) + ", ") + caller)) |
---|
11 | 12 | | else { |
---|
12 | 13 | | let pmt = i.payments[0] |
---|
13 | 14 | | let assetIn = value(pmt.assetId) |
---|
14 | 15 | | let amountIn = value(pmt.amount) |
---|
15 | 16 | | [IntegerEntry("op", 1)] |
---|
16 | 17 | | } |
---|
17 | 18 | | } |
---|
18 | 19 | | |
---|
19 | 20 | | |
---|
20 | 21 | | @Verifier(tx) |
---|
21 | 22 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
22 | 23 | | |
---|