tx · FowC1vi6xDdgqTRsCEJjbf5PjmtDSr17sYFenzUcigwW

3My7JvybytBTv6LBND2MeZCbkeUS7jR3PiK:  -0.10000000 Waves

2022.11.30 15:39 [2339850] smart account 3My7JvybytBTv6LBND2MeZCbkeUS7jR3PiK > SELF 0.00000000 Waves

{ "type": 13, "id": "FowC1vi6xDdgqTRsCEJjbf5PjmtDSr17sYFenzUcigwW", "fee": 10000000, "feeAssetId": null, "timestamp": 1669811987662, "version": 2, "chainId": 84, "sender": "3My7JvybytBTv6LBND2MeZCbkeUS7jR3PiK", "senderPublicKey": "FVTpXbDNs3kNEiYy4vjvjfzxbQim8PuN6fNLFntwM31j", "proofs": [ "8iWZi9e5HgUybrTUUkVr6aiTGZ7Bn9BnY5a1pg9g9oo1jyvj8Q6yWKzNDf5Sj5qzf3ZN7v4ncvkPKJ4JbB3bNuM" ], "script": "base64:BgISCAISBgoECAgBARIAEgQKAggIAgAEa0JpZAIDYmlkAAlzZXBhcmF0b3ICAS8DAWkBCHBsYWNlQmlkBAVuZnRJZAluZnRfb3duZXIJbWluX3ByaWNlCWJpZF9wcmljZQQHYXNzZXRJZAkA2QQBBQVuZnRJZAQGYW1vdW50CQEFdmFsdWUBCAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAMJAQIhPQIICQCRAwIIBQFpCHBheW1lbnRzAAAHYXNzZXRJZAUEdW5pdAkAAgECDFBheSBpbiB3YXZlcwkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFBmFtb3VudAUEdW5pdAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgkApQgBCAUBaQZjYWxsZXIFCXNlcGFyYXRvcgUEa0JpZAkArAICCQCsAgIFBW5mdElkBQlzZXBhcmF0b3IJAKQDAQUGYW1vdW50CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkArAICCQClCAEIBQFpBmNhbGxlcgUJc2VwYXJhdG9yAgluZnRfb3duZXIFCW5mdF9vd25lcgkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQCsAgIJAKUIAQgFAWkGY2FsbGVyBQlzZXBhcmF0b3ICCW1pbl9wcmljZQUJbWluX3ByaWNlCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJAKwCAgkApQgBCAUBaQZjYWxsZXIFCXNlcGFyYXRvcgIJYmlkX3ByaWNlBQliaWRfcHJpY2UJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJAKUIAQgFAWkGY2FsbGVyBQlzZXBhcmF0b3ICBW5mdElkBQVuZnRJZAUDbmlsAWkBA3BheQAEBmFtb3VudAkBBXZhbHVlAQgJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQDCQECIT0CCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQFBHVuaXQJAAIBAgxQYXkgaW4gd2F2ZXMFA25pbAFpAQpjb25maXJtQmlkAgVuZnRJZAt1c2VyQWRkcmVzcwkAzAgCCQELU3RyaW5nRW50cnkCAgpiaWRfd2lubmVyBQt1c2VyQWRkcmVzcwUDbmlsALgTTu8=", "height": 2339850, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7imPz5K5MS8Mh7T5EP925thbF7qcvxfJQQ7heyZfaFfR Next: none Diff:
OldNewDifferences
1111 let amount = value(i.payments[0].amount)
1212 if ((i.payments[0].assetId != unit))
1313 then throw("Pay in waves")
14- else [StringEntry(((toString(i.caller) + separator) + kBid), ((nftId + separator) + toString(amount))), StringEntry(((toString(i.caller) + separator) + "nft_owner"), nft_owner), IntegerEntry(((toString(i.caller) + separator) + "min_price"), min_price), IntegerEntry(((toString(i.caller) + separator) + "bid_price"), bid_price), StringEntry(((toString(i.caller) + separator) + "nftId"), nftId)]
14+ else [ScriptTransfer(i.caller, amount, unit), StringEntry(((toString(i.caller) + separator) + kBid), ((nftId + separator) + toString(amount))), StringEntry(((toString(i.caller) + separator) + "nft_owner"), nft_owner), IntegerEntry(((toString(i.caller) + separator) + "min_price"), min_price), IntegerEntry(((toString(i.caller) + separator) + "bid_price"), bid_price), StringEntry(((toString(i.caller) + separator) + "nftId"), nftId)]
1515 }
16+
17+
18+
19+@Callable(i)
20+func pay () = {
21+ let amount = value(i.payments[0].amount)
22+ if ((i.payments[0].assetId != unit))
23+ then throw("Pay in waves")
24+ else nil
25+ }
26+
27+
28+
29+@Callable(i)
30+func confirmBid (nftId,userAddress) = [StringEntry("bid_winner", userAddress)]
1631
1732
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let kBid = "bid"
55
66 let separator = "/"
77
88 @Callable(i)
99 func placeBid (nftId,nft_owner,min_price,bid_price) = {
1010 let assetId = fromBase58String(nftId)
1111 let amount = value(i.payments[0].amount)
1212 if ((i.payments[0].assetId != unit))
1313 then throw("Pay in waves")
14- else [StringEntry(((toString(i.caller) + separator) + kBid), ((nftId + separator) + toString(amount))), StringEntry(((toString(i.caller) + separator) + "nft_owner"), nft_owner), IntegerEntry(((toString(i.caller) + separator) + "min_price"), min_price), IntegerEntry(((toString(i.caller) + separator) + "bid_price"), bid_price), StringEntry(((toString(i.caller) + separator) + "nftId"), nftId)]
14+ else [ScriptTransfer(i.caller, amount, unit), StringEntry(((toString(i.caller) + separator) + kBid), ((nftId + separator) + toString(amount))), StringEntry(((toString(i.caller) + separator) + "nft_owner"), nft_owner), IntegerEntry(((toString(i.caller) + separator) + "min_price"), min_price), IntegerEntry(((toString(i.caller) + separator) + "bid_price"), bid_price), StringEntry(((toString(i.caller) + separator) + "nftId"), nftId)]
1515 }
16+
17+
18+
19+@Callable(i)
20+func pay () = {
21+ let amount = value(i.payments[0].amount)
22+ if ((i.payments[0].assetId != unit))
23+ then throw("Pay in waves")
24+ else nil
25+ }
26+
27+
28+
29+@Callable(i)
30+func confirmBid (nftId,userAddress) = [StringEntry("bid_winner", userAddress)]
1631
1732

github/deemru/w8io/026f985 
32.30 ms