tx · 7SXovpgBXMZmgDXofDPyeHu23E2u4MAiaVR3AAg9ZH2Q
3MwMGdCuLpD44VdYz3D6p5dmHjKeUqDP7RA: -0.01000000 Waves
2022.02.04 16:55 [1908958] smart account 3MwMGdCuLpD44VdYz3D6p5dmHjKeUqDP7RA > SELF 0.00000000 Waves
{
"type": 13,
"id": "7SXovpgBXMZmgDXofDPyeHu23E2u4MAiaVR3AAg9ZH2Q",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1643982920700,
"version": 2,
"chainId": 84,
"sender": "3MwMGdCuLpD44VdYz3D6p5dmHjKeUqDP7RA",
"senderPublicKey": "225AB3AK3E9nvyKnRR7EU44sxETV4GDdMLCUQ8PKfajc",
"proofs": [
"2T8m2RuPNw1Q85ffhhfNmaAcx4FhyF45b88wJRiksLQXgxQG44sRHTUVzzeJarQEpJDoKfb9usD7vLMU6p8fL9gZ"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAEY2FsbAAAAAAEAAAABWFzc2V0AgAAAANmb28EAAAACnVzZXJTdGF0dXMJAQAAAAt2YWx1ZU9yRWxzZQAAAAICAAAAAAUAAAAFYXNzZXQDCQAAAAAAAAIFAAAACnVzZXJTdGF0dXMFAAAABWFzc2V0CQAAAgAAAAECAAAACHJlZ2lzdGVyCQAAAgAAAAECAAAAEUFjY291bnQgc3VzcGVuZGVkAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmngU7G",
"height": 1908958,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: HGS8a6Gjn2eM1a6PSgrCmkuTMoDM7QWQUKto57reHsMv
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 5 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func call () = { |
---|
| 8 | + | let asset = "foo" |
---|
| 9 | + | let userStatus = valueOrElse("", asset) |
---|
| 10 | + | if ((userStatus == asset)) |
---|
| 11 | + | then throw("register") |
---|
| 12 | + | else throw("Account suspended") |
---|
| 13 | + | } |
---|
| 14 | + | |
---|
| 15 | + | |
---|
| 16 | + | @Verifier(tx) |
---|
| 17 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 18 | + | |
---|