tx · 9qbsXAscdHWyHYrrohZz13N2TgWrtvG8S58hFNpHK5UN
3MvU8vDCk4NkA1Ag4vE3mETA4U9ioFh6VEM: -0.01500000 Waves
2019.12.14 10:22 [808228] smart account 3MvU8vDCk4NkA1Ag4vE3mETA4U9ioFh6VEM > SELF 0.00000000 Waves
{
"type": 13,
"id": "9qbsXAscdHWyHYrrohZz13N2TgWrtvG8S58hFNpHK5UN",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1576308127001,
"version": 1,
"sender": "3MvU8vDCk4NkA1Ag4vE3mETA4U9ioFh6VEM",
"senderPublicKey": "LknnJnwRo6xRdriHmjgVbRDgpexijZFTYBU3Lw4HBS1",
"proofs": [
"2LDkSVHWZGU2ya9jk63G9gNbF4TLqXxhjtmV12ZRKUMnkiX4CMUrTwKU2XoqB86wK9QboN3PMQGb88gzpXpevfFD"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAAAAAAEAAAABaQEAAAADYmlkAAAAAQAAAAlhdWN0aW9uSWQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAA1jYWxsZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAB2VuZFRpbWUJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAJYXVjdGlvbklkAgAAAAhfZW5kVGltZQQAAAAIbWluUHJpY2UJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAJYXVjdGlvbklkAgAAAAlfbWluUHJpY2UEAAAADWhpZ2hlc3RCaWRBbXQJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAlhdWN0aW9uSWQCAAAADl9oaWdoZXN0QmlkQW10BAAAAA1oaWdoZXN0QmlkZGVyCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAJYXVjdGlvbklkAgAAAA5faGlnaGVzdEJpZGRlcgQAAAASYmlkRnJvbVRoZVNhbWVVc2VyAwkBAAAACWlzRGVmaW5lZAAAAAEFAAAADWhpZ2hlc3RCaWRkZXIJAAAAAAAAAgkBAAAABXZhbHVlAAAAAQUAAAANaGlnaGVzdEJpZGRlcgUAAAANY2FsbGVyQWRkcmVzcwcEAAAADnRvdGFsQmlkQW1vdW50CQAAZAAAAAIIBQAAAANwbXQAAAAGYW1vdW50AwUAAAASYmlkRnJvbVRoZVNhbWVVc2VyCQEAAAAFdmFsdWUAAAABBQAAAA1oaWdoZXN0QmlkQW10AAAAAAAAAAAACQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAABBDb250ZW50X1ZhcmlhYmxlAgAAAAVoZWxhYQUAAAADbmlsAAAAAKJt0Yg=",
"chainId": 84,
"height": 808228,
"spentComplexity": 0
}
View: original | compacted
Prev: 9n383F3fE9DSUafwSA5s9XiptSwhsjG2XKwjQt1mN8VX
Next: 495oXJdceNaQCXhsXDLwFv1MwrB3jwAPR17ktcHx8Vph
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func bid (auctionId) = { |
---|
| 8 | + | let pmt = extract(i.payment) |
---|
8 | 9 | | let callerAddress = toBase58String(i.caller.bytes) |
---|
9 | 10 | | let endTime = getIntegerValue(this, (auctionId + "_endTime")) |
---|
10 | 11 | | let minPrice = getIntegerValue(this, (auctionId + "_minPrice")) |
---|
|
13 | 14 | | let bidFromTheSameUser = if (isDefined(highestBidder)) |
---|
14 | 15 | | then (value(highestBidder) == callerAddress) |
---|
15 | 16 | | else false |
---|
16 | | - | let totalBidAmount = (100000 + (if (bidFromTheSameUser) |
---|
| 17 | + | let totalBidAmount = (pmt.amount + (if (bidFromTheSameUser) |
---|
17 | 18 | | then value(highestBidAmt) |
---|
18 | 19 | | else 0)) |
---|
19 | | - | WriteSet([DataEntry("Content_Variable", "testr")]) |
---|
| 20 | + | WriteSet([DataEntry("Content_Variable", "helaa")]) |
---|
20 | 21 | | } |
---|
21 | 22 | | |
---|
22 | 23 | | |
---|
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 bid (auctionId) = { |
---|
| 8 | + | let pmt = extract(i.payment) |
---|
8 | 9 | | let callerAddress = toBase58String(i.caller.bytes) |
---|
9 | 10 | | let endTime = getIntegerValue(this, (auctionId + "_endTime")) |
---|
10 | 11 | | let minPrice = getIntegerValue(this, (auctionId + "_minPrice")) |
---|
11 | 12 | | let highestBidAmt = getInteger(this, (auctionId + "_highestBidAmt")) |
---|
12 | 13 | | let highestBidder = getString(this, (auctionId + "_highestBidder")) |
---|
13 | 14 | | let bidFromTheSameUser = if (isDefined(highestBidder)) |
---|
14 | 15 | | then (value(highestBidder) == callerAddress) |
---|
15 | 16 | | else false |
---|
16 | | - | let totalBidAmount = (100000 + (if (bidFromTheSameUser) |
---|
| 17 | + | let totalBidAmount = (pmt.amount + (if (bidFromTheSameUser) |
---|
17 | 18 | | then value(highestBidAmt) |
---|
18 | 19 | | else 0)) |
---|
19 | | - | WriteSet([DataEntry("Content_Variable", "testr")]) |
---|
| 20 | + | WriteSet([DataEntry("Content_Variable", "helaa")]) |
---|
20 | 21 | | } |
---|
21 | 22 | | |
---|
22 | 23 | | |
---|