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:
Old | New | | Differences |
---|
11 | 11 | | let amount = value(i.payments[0].amount) |
---|
12 | 12 | | if ((i.payments[0].assetId != unit)) |
---|
13 | 13 | | 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)] |
---|
15 | 15 | | } |
---|
| 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)] |
---|
16 | 31 | | |
---|
17 | 32 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let kBid = "bid" |
---|
5 | 5 | | |
---|
6 | 6 | | let separator = "/" |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func placeBid (nftId,nft_owner,min_price,bid_price) = { |
---|
10 | 10 | | let assetId = fromBase58String(nftId) |
---|
11 | 11 | | let amount = value(i.payments[0].amount) |
---|
12 | 12 | | if ((i.payments[0].assetId != unit)) |
---|
13 | 13 | | 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)] |
---|
15 | 15 | | } |
---|
| 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)] |
---|
16 | 31 | | |
---|
17 | 32 | | |
---|