tx · 843ytfQ7RegrjznQb4NnrCvHV64CdZmgqgu5Vb2gW1Bp
3MpniGh4Ab64nzX6AXtoL5tzeC5EwSyHuaq: -0.01400000 Waves
2022.01.10 22:25 [1873262] smart account 3MpniGh4Ab64nzX6AXtoL5tzeC5EwSyHuaq > SELF 0.00000000 Waves
{
"type": 13,
"id": "843ytfQ7RegrjznQb4NnrCvHV64CdZmgqgu5Vb2gW1Bp",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1641842694333,
"version": 2,
"chainId": 84,
"sender": "3MpniGh4Ab64nzX6AXtoL5tzeC5EwSyHuaq",
"senderPublicKey": "HxF3FdYr3sD3ju9Y1wL4d5kmRtKJGhgSSYQkCyo78xGn",
"proofs": [
"3GAk4QL2JJYu9RjAG3LfCvK9CSjt6AgrzdzUdsQ6BQEEmxMxosU4xUudkiegjT8CaesRNT9fDfdM1doSyyHX8k12"
],
"script": "base64:AAIFAAAAAAAAAEEIAhIAEgAaDQoBYRIIbXlQdWJLZXkaBgoBYhIBaRoMCgFjEgdwYXltZW50GgcKAWQSAnR4GgsKAWUSBnZlcmlmeQAAAAEAAAAAAWEBAAAAIPvhzx/EchOaJzhclRFzOZsCtGy7ySpoi0epc7fB20UHAAAAAgAAAAFiAQAAAAhwdXJjaGFzZQAAAAAEAAAAAWMJAAGRAAAAAggFAAAAAWIAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAAWMAAAAHYXNzZXRJZAkAAAIAAAABAgAAABhPbmx5IHNob3VsZCBwYXkgaW4gd2F2ZXMJAAACAAAAAQIAAAAOV2hhdCBhIGZ1Y2shISEAAAABYgEAAAAJc2V0UHJpY2VzAAAAAAMJAAAAAAAAAggFAAAAAWIAAAAPY2FsbGVyUHVibGljS2V5BQAAAAFhCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAABNpdGVtX0FfY291cG9uX3ByaWNlAAAAAAABycOABQAAAANuaWwJAAACAAAAAQIAAAAZT25seSBvd25lciBjYW4gc2V0IHByaWNlcwAAAAEAAAABZAEAAAABZQAAAAAJAAH0AAAAAwgFAAAAAWQAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAFkAAAABnByb29mcwAAAAAAAAAAAAgFAAAAAWQAAAAPc2VuZGVyUHVibGljS2V51NsGwg==",
"height": 1873262,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2c3hmrijpqghqr8KW3KCSvvu6avH84Y2BgNgerGrCfRy
Next: ED8MN3ziaBjHrfaGmCRhCDweV6AeEQ6BM3jwR9wJV88o
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let myPubKey = base58'HxF3FdYr3sD3ju9Y1wL4d5kmRtKJGhgSSYQkCyo78xGn' |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func purchase () = { |
---|
| 8 | + | let payment = i.payments[0] |
---|
| 9 | + | if (isDefined(payment.assetId)) |
---|
| 10 | + | then throw("Only should pay in waves") |
---|
| 11 | + | else throw("What a fuck!!!") |
---|
| 12 | + | } |
---|
| 13 | + | |
---|
| 14 | + | |
---|
5 | 15 | | |
---|
6 | 16 | | @Callable(i) |
---|
7 | 17 | | func setPrices () = if ((i.callerPublicKey == myPubKey)) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let myPubKey = base58'HxF3FdYr3sD3ju9Y1wL4d5kmRtKJGhgSSYQkCyo78xGn' |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func purchase () = { |
---|
| 8 | + | let payment = i.payments[0] |
---|
| 9 | + | if (isDefined(payment.assetId)) |
---|
| 10 | + | then throw("Only should pay in waves") |
---|
| 11 | + | else throw("What a fuck!!!") |
---|
| 12 | + | } |
---|
| 13 | + | |
---|
| 14 | + | |
---|
5 | 15 | | |
---|
6 | 16 | | @Callable(i) |
---|
7 | 17 | | func setPrices () = if ((i.callerPublicKey == myPubKey)) |
---|
8 | 18 | | then [IntegerEntry("item_A_coupon_price", 30000000)] |
---|
9 | 19 | | else throw("Only owner can set prices") |
---|
10 | 20 | | |
---|
11 | 21 | | |
---|
12 | 22 | | @Verifier(tx) |
---|
13 | 23 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
14 | 24 | | |
---|