tx · CB5LqAWjxSYoW2jp6v4k233ovDHqo18uqSeCjzvvpFNk
3N9R7u449Z1b76QpJp9u3gzPjMYQYnp3V7r: -0.04000000 Waves
2022.01.13 05:35 [1876575] smart account 3N9R7u449Z1b76QpJp9u3gzPjMYQYnp3V7r > SELF 0.00000000 Waves
{
"type": 13,
"id": "CB5LqAWjxSYoW2jp6v4k233ovDHqo18uqSeCjzvvpFNk",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1642041347576,
"version": 2,
"chainId": 84,
"sender": "3N9R7u449Z1b76QpJp9u3gzPjMYQYnp3V7r",
"senderPublicKey": "GUHw1jkstNWTs9SX1KM3pMtq9HXjupvxiTd1urNhNoyY",
"proofs": [
"4xu9nnKHD93Gx3bACzWiWP6292QXmNy8qYbcp9gqz2aYKaGZzFVSXTx9tN4GWKtCDEoHSP9gfG8oZ3F5xwb8DTBE"
],
"script": "base64:AAIFAAAAAAAAAEYIAhoWCgFhEhFob2xkaW5nc1B1YmxpY0tleRoUCgFiEg9ob2xkaW5nc0FkZHJlc3MaBwoBYxICdHgaCwoBZBIGdmVyaWZ5AAAAAgAAAAABYQEAAAAg5d0hRbOj7Efpajd5Rdd2peneLysI9sOzTPgBiZfQ228AAAAAAWIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAAWEAAAAAAAAAAQAAAAFjAQAAAAFkAAAAAAkAAfQAAAADCAUAAAABYwAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAWMAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAABYwAAAA9zZW5kZXJQdWJsaWNLZXnI1WsH",
"height": 1876575,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: H3Ehu5JFNi5qnfmhy22oiACmHsUL45hpPqpZ2Hj7XuHB
Next: Hnr6aXXwqE5V9xGYNjBN63HknKGovpg9Eks2gUJXyKj
Diff:
Old | New | | Differences |
---|
4 | 4 | | let holdingsPublicKey = base58'GUHw1jkstNWTs9SX1KM3pMtq9HXjupvxiTd1urNhNoyY' |
---|
5 | 5 | | |
---|
6 | 6 | | let holdingsAddress = addressFromPublicKey(holdingsPublicKey) |
---|
7 | | - | |
---|
8 | | - | @Callable(i) |
---|
9 | | - | func putForSale (assetId,amount) = { |
---|
10 | | - | let ownerId = toBase58String(i.caller.bytes) |
---|
11 | | - | [StringEntry((("sale_" + assetId) + "_originalOwner"), ownerId), StringEntry((("sale_" + assetId) + "_amount"), amount), ScriptTransfer(holdingsAddress, 1, toBytes(assetId))] |
---|
12 | | - | } |
---|
13 | 7 | | |
---|
14 | 8 | | |
---|
15 | 9 | | @Verifier(tx) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let holdingsPublicKey = base58'GUHw1jkstNWTs9SX1KM3pMtq9HXjupvxiTd1urNhNoyY' |
---|
5 | 5 | | |
---|
6 | 6 | | let holdingsAddress = addressFromPublicKey(holdingsPublicKey) |
---|
7 | | - | |
---|
8 | | - | @Callable(i) |
---|
9 | | - | func putForSale (assetId,amount) = { |
---|
10 | | - | let ownerId = toBase58String(i.caller.bytes) |
---|
11 | | - | [StringEntry((("sale_" + assetId) + "_originalOwner"), ownerId), StringEntry((("sale_" + assetId) + "_amount"), amount), ScriptTransfer(holdingsAddress, 1, toBytes(assetId))] |
---|
12 | | - | } |
---|
13 | 7 | | |
---|
14 | 8 | | |
---|
15 | 9 | | @Verifier(tx) |
---|
16 | 10 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
17 | 11 | | |
---|