tx · CFX9BLfo98YfWYQdqrLAPxQvSuMs2ohhSUQUurdAE532
3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo: -0.01000000 Waves
2022.11.30 18:46 [2340037] smart account 3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo > SELF 0.00000000 Waves
{
"type": 13,
"id": "CFX9BLfo98YfWYQdqrLAPxQvSuMs2ohhSUQUurdAE532",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1669822890689,
"version": 2,
"chainId": 84,
"sender": "3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo",
"senderPublicKey": "Kwu4LYBMntApXv8t7csxV23Kvc3tvak26wMKK56tA4V",
"proofs": [
"L8Mm1jnHMk8K3fheFo8rxSRehbmAe6kbirH1X6eL96HByUufQww3SnC39PXKQem8EvmXEyEorqa6HfvXHQqC6D8"
],
"script": "base64:BgIECAISAAMACHNyY1Rva2VuASC2JinDBPXOU5GkDkt1JC9kjFGx+t+vVCm9SNIdKrKq0QAIZHN0VG9rZW4BIFXuw76qC/BQ6HHIG6pucJ6kscj+Si65wfHMxWsPeJdLAAdtZXNzYWdlAiFUaGFuayB5b3UgZm9yIHVzaW5nIHRoZSBTV0FQIERBcHABAWkBBHN3YXAABANwbXQJAQV2YWx1ZQEJAJEDAggFAWkIcGF5bWVudHMAAAMJAQIhPQIIBQNwbXQHYXNzZXRJZAUIc3JjVG9rZW4JAAIBAhdJbmNvcnJlY3QgYXNzZXQgcGFzc2VkLgkAzAgCCQELU3RyaW5nRW50cnkCAgdtZXNzYWdlCQCsAgIJAKwCAgIfPGgxPllvdSBkaWQgYSBzd2FwITwvaDE+PGJyPjxwPgUHbWVzc2FnZQIDPHA+CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcggFA3BtdAZhbW91bnQFCGRzdFRva2VuBQNuaWwBAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleW/sJZY=",
"height": 2340037,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 3PATYRBvW1eqntrTjwRhPxJMQ2udWogCfqHBX88Esp1J
Next: J7GbVs4iwNig74pvzgHJemegPjyxxHpEMzUyaeT7Joz8
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let a = base58'GpYDEF3wvpq8eGtk8EA5nUTWrpYnAnHmkrFoHAa1exf6' |
---|
| 4 | + | let a = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
5 | 5 | | |
---|
6 | | - | let b = base58'9KLbMrNFxAToNzXvm517165sbNjmKdTNMvjgoxEyx62F' |
---|
| 6 | + | let b = base58'6nSpVyNH7yM69eg446wrQR94ipbbcmZMU1ENPwanC97g' |
---|
7 | 7 | | |
---|
8 | 8 | | let c = "Thank you for using the SWAP DApp" |
---|
9 | 9 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let a = base58'GpYDEF3wvpq8eGtk8EA5nUTWrpYnAnHmkrFoHAa1exf6' |
---|
| 4 | + | let a = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' |
---|
5 | 5 | | |
---|
6 | | - | let b = base58'9KLbMrNFxAToNzXvm517165sbNjmKdTNMvjgoxEyx62F' |
---|
| 6 | + | let b = base58'6nSpVyNH7yM69eg446wrQR94ipbbcmZMU1ENPwanC97g' |
---|
7 | 7 | | |
---|
8 | 8 | | let c = "Thank you for using the SWAP DApp" |
---|
9 | 9 | | |
---|
10 | 10 | | @Callable(d) |
---|
11 | 11 | | func swap () = { |
---|
12 | 12 | | let e = value(d.payments[0]) |
---|
13 | 13 | | if ((e.assetId != a)) |
---|
14 | 14 | | then throw("Incorrect asset passed.") |
---|
15 | 15 | | else [StringEntry("message", (("<h1>You did a swap!</h1><br><p>" + c) + "<p>")), ScriptTransfer(d.caller, e.amount, b)] |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Verifier(f) |
---|
20 | 20 | | func g () = { |
---|
21 | 21 | | let h = f |
---|
22 | 22 | | sigVerify(f.bodyBytes, f.proofs[0], f.senderPublicKey) |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|