tx · 3UJQMgdNiUuPoZctdJpyGAyb5ZSpdV8ykn9jMXy46gdf
3MyhHntLbavAPCm8GDEbrkwUXPx29woiFLL: -0.14000000 Waves
2020.09.19 23:43 [1184670] smart account 3MyhHntLbavAPCm8GDEbrkwUXPx29woiFLL > SELF 0.00000000 Waves
{
"type": 13,
"id": "3UJQMgdNiUuPoZctdJpyGAyb5ZSpdV8ykn9jMXy46gdf",
"fee": 14000000,
"feeAssetId": null,
"timestamp": 1600548188538,
"version": 2,
"chainId": 84,
"sender": "3MyhHntLbavAPCm8GDEbrkwUXPx29woiFLL",
"senderPublicKey": "EPZwt7uD7njhqocph3941wRCY65Q5BHPLh7zU2VdAhft",
"proofs": [
"2enNDfJEXkSdY2nrdL7CMEETasz9Z646kGxjnV42wJx2XXPgsDiWNHB5mqXQCC83Bi9NxiWVnWczKyKzgDtnUjD6"
],
"script": "base64:BAQAAAANcGtQYXlBcHByb3ZhbAEAAAAg+SHcPpyO91MRbvDYznMdkTN4jwwCbMDUfFftEP/4nk4EAAAADXBrUGF5V2l0bmVzczEBAAAAIMdaI1RvaxruKEUq1NHHFTuo7kDjIMNy7q+CiBHF9z11BAAAAA1wa1BheVdpdG5lc3MyAQAAACBLtRN+xxnGYFEGUZqrGnBZwuu3sJ1HMm4jtlXTnQIBUAQAAAAOYWxsb3dTZXRTY3JpcHQGBAAAAAhhcHByb3ZlZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA1wa1BheUFwcHJvdmFsAAAAAAAAAAACAAAAAAAAAAAABAAAAAh3aXRuZXNzMQMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAA1wa1BheVdpdG5lc3MxAAAAAAAAAAABAAAAAAAAAAAABAAAAAh3aXRuZXNzMgMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAA1wa1BheVdpdG5lc3MyAAAAAAAAAAABAAAAAAAAAAAABAAAAAd0cmFuc09rAwkAAGYAAAACCQAAZAAAAAIJAABkAAAAAgUAAAAIYXBwcm92ZWQFAAAACHdpdG5lc3MxBQAAAAh3aXRuZXNzMgAAAAAAAAAAAgYHBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAUAAAAHdHJhbnNPawMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAFAAAADmFsbG93U2V0U2NyaXB0AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGB1y/huo=",
"height": 1184670,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6aPBThBxC6GiKR9Bwobjou2FNFaNixixoRyYyfvtovbe
Next: none
Diff:
Old | New | | Differences |
---|
7 | 7 | | let approved = if (sigVerify(tx.bodyBytes, tx.proofs[0], pkPayApproval)) |
---|
8 | 8 | | then 2 |
---|
9 | 9 | | else 0 |
---|
10 | | - | let approved2 = if (sigVerify(tx.bodyBytes, tx.proofs[1], pkPayApproval)) |
---|
11 | | - | then 2 |
---|
12 | | - | else 0 |
---|
13 | | - | let witness1 = if (sigVerify(tx.bodyBytes, tx.proofs[0], pkPayWitness1)) |
---|
| 10 | + | let witness1 = if (sigVerify(tx.bodyBytes, tx.proofs[1], pkPayWitness1)) |
---|
14 | 11 | | then 1 |
---|
15 | 12 | | else 0 |
---|
16 | | - | let witness2 = if (sigVerify(tx.bodyBytes, tx.proofs[0], pkPayWitness2)) |
---|
| 13 | + | let witness2 = if (sigVerify(tx.bodyBytes, tx.proofs[1], pkPayWitness2)) |
---|
17 | 14 | | then 1 |
---|
18 | 15 | | else 0 |
---|
19 | | - | let witness1b = if (sigVerify(tx.bodyBytes, tx.proofs[1], pkPayWitness1)) |
---|
20 | | - | then 1 |
---|
21 | | - | else 0 |
---|
22 | | - | let witness2b = if (sigVerify(tx.bodyBytes, tx.proofs[1], pkPayWitness2)) |
---|
23 | | - | then 1 |
---|
24 | | - | else 0 |
---|
25 | | - | let transOk = if (((((((approved + approved2) + witness1) + witness2) + witness1b) + witness2b) > 2)) |
---|
| 16 | + | let transOk = if ((((approved + witness1) + witness2) > 2)) |
---|
26 | 17 | | then true |
---|
27 | 18 | | else false |
---|
28 | 19 | | match tx { |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let pkPayApproval = base58'HmWTrVyrpsP4nWnk8ah6YYhHfUpJUPuuZXpaXXXnCXnV' |
---|
4 | 4 | | let pkPayWitness1 = base58'ERBrKdQQvMgThZo35NpWB3MMKrrB2SFCi5RqtVkjMo4p' |
---|
5 | 5 | | let pkPayWitness2 = base58'66XisorYHAFTjPAtLkPDuCnpmA7PgkscuL19MxLmAedm' |
---|
6 | 6 | | let allowSetScript = true |
---|
7 | 7 | | let approved = if (sigVerify(tx.bodyBytes, tx.proofs[0], pkPayApproval)) |
---|
8 | 8 | | then 2 |
---|
9 | 9 | | else 0 |
---|
10 | | - | let approved2 = if (sigVerify(tx.bodyBytes, tx.proofs[1], pkPayApproval)) |
---|
11 | | - | then 2 |
---|
12 | | - | else 0 |
---|
13 | | - | let witness1 = if (sigVerify(tx.bodyBytes, tx.proofs[0], pkPayWitness1)) |
---|
| 10 | + | let witness1 = if (sigVerify(tx.bodyBytes, tx.proofs[1], pkPayWitness1)) |
---|
14 | 11 | | then 1 |
---|
15 | 12 | | else 0 |
---|
16 | | - | let witness2 = if (sigVerify(tx.bodyBytes, tx.proofs[0], pkPayWitness2)) |
---|
| 13 | + | let witness2 = if (sigVerify(tx.bodyBytes, tx.proofs[1], pkPayWitness2)) |
---|
17 | 14 | | then 1 |
---|
18 | 15 | | else 0 |
---|
19 | | - | let witness1b = if (sigVerify(tx.bodyBytes, tx.proofs[1], pkPayWitness1)) |
---|
20 | | - | then 1 |
---|
21 | | - | else 0 |
---|
22 | | - | let witness2b = if (sigVerify(tx.bodyBytes, tx.proofs[1], pkPayWitness2)) |
---|
23 | | - | then 1 |
---|
24 | | - | else 0 |
---|
25 | | - | let transOk = if (((((((approved + approved2) + witness1) + witness2) + witness1b) + witness2b) > 2)) |
---|
| 16 | + | let transOk = if ((((approved + witness1) + witness2) > 2)) |
---|
26 | 17 | | then true |
---|
27 | 18 | | else false |
---|
28 | 19 | | match tx { |
---|
29 | 20 | | case t: TransferTransaction => |
---|
30 | 21 | | transOk |
---|
31 | 22 | | case s: SetScriptTransaction => |
---|
32 | 23 | | allowSetScript |
---|
33 | 24 | | case d: DataTransaction => |
---|
34 | 25 | | true |
---|
35 | 26 | | case _ => |
---|
36 | 27 | | false |
---|
37 | 28 | | } |
---|