tx · Gk3fzWzBHVsk6p1kVnrURSRGUSCSeZGhuNddvmvjSiZ1
3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo: -0.01000000 Waves
2022.12.02 13:45 [2342621] smart account 3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo > SELF 0.00000000 Waves
{
"type": 13,
"id": "Gk3fzWzBHVsk6p1kVnrURSRGUSCSeZGhuNddvmvjSiZ1",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1669977913711,
"version": 2,
"chainId": 84,
"sender": "3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo",
"senderPublicKey": "Kwu4LYBMntApXv8t7csxV23Kvc3tvak26wMKK56tA4V",
"proofs": [
"3tvLcyrk1p3Me9a6nSDbzUpC5jhMBj8txMTbpoaKZVXtjv8V8xqE8tJWUbUrobV2mn5kVZsKsVZXHotRE3qhY8hc"
],
"script": "base64:BgIICAISBAoCAQEAAQFpAQxzdGFydEF1Y3Rpb24CCGR1cmF0aW9uCnN0YXJ0UHJpY2UECWF1Y3Rpb25JZAkA2AQBCAUBaQ10cmFuc2FjdGlvbklkBANwbXQJAQV2YWx1ZQEJAJEDAggFAWkIcGF5bWVudHMAAAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFCWF1Y3Rpb25JZAIKX29yZ2FuaXplcgkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUJYXVjdGlvbklkAgdhc3NldElkCQDYBAEJAQV2YWx1ZQEIBQNwbXQHYXNzZXRJZAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQlhdWN0aW9uSWQCBmFtb3VudAgFA3BtdAZhbW91bnQJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUJYXVjdGlvbklkAgtfc3RhcnRQcmljZQUKc3RhcnRQcmljZQUDbmlsAESNyio=",
"height": 2342621,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: GqX7Wqar3CeW3K2XpXcyJNhtHBYqQGhsfKWtZqi63K8b
Next: G3G1banHWFwqcEJfppQW9jvyWcRru7TkFi9VcnNTKrco
Diff:
Old | New | | Differences |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func startAuction (duration,startPrice) = { |
---|
8 | 8 | | let auctionId = toBase58String(i.transactionId) |
---|
9 | | - | let endHeight = (lastBlock.height + duration) |
---|
10 | 9 | | let pmt = value(i.payments[0]) |
---|
11 | | - | [IntegerEntry(auctionId, endHeight), StringEntry((auctionId + "_organizer"), toBase58String(i.caller.bytes)), StringEntry((auctionId + "assetId"), if (isDefined(pmt.assetId)) |
---|
12 | | - | then toBase58String(value(pmt.assetId)) |
---|
13 | | - | else "WAVES"), IntegerEntry((auctionId + "amount"), pmt.amount), IntegerEntry((auctionId + "_startPrice"), startPrice)] |
---|
| 10 | + | [StringEntry((auctionId + "_organizer"), toBase58String(i.caller.bytes)), StringEntry((auctionId + "assetId"), toBase58String(value(pmt.assetId))), IntegerEntry((auctionId + "amount"), pmt.amount), IntegerEntry((auctionId + "_startPrice"), startPrice)] |
---|
14 | 11 | | } |
---|
15 | 12 | | |
---|
16 | 13 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func startAuction (duration,startPrice) = { |
---|
8 | 8 | | let auctionId = toBase58String(i.transactionId) |
---|
9 | | - | let endHeight = (lastBlock.height + duration) |
---|
10 | 9 | | let pmt = value(i.payments[0]) |
---|
11 | | - | [IntegerEntry(auctionId, endHeight), StringEntry((auctionId + "_organizer"), toBase58String(i.caller.bytes)), StringEntry((auctionId + "assetId"), if (isDefined(pmt.assetId)) |
---|
12 | | - | then toBase58String(value(pmt.assetId)) |
---|
13 | | - | else "WAVES"), IntegerEntry((auctionId + "amount"), pmt.amount), IntegerEntry((auctionId + "_startPrice"), startPrice)] |
---|
| 10 | + | [StringEntry((auctionId + "_organizer"), toBase58String(i.caller.bytes)), StringEntry((auctionId + "assetId"), toBase58String(value(pmt.assetId))), IntegerEntry((auctionId + "amount"), pmt.amount), IntegerEntry((auctionId + "_startPrice"), startPrice)] |
---|
14 | 11 | | } |
---|
15 | 12 | | |
---|
16 | 13 | | |
---|