tx · 7jJ4azs1EJ9YsKH1Ak5w1pGLFX6sqBVSYA7bN7G1Nx1t
3Mqhk2t6EZZt9Kew2w4J55JihWZadNffzBQ: -0.01000000 Waves
2023.03.01 10:40 [2470713] smart account 3Mqhk2t6EZZt9Kew2w4J55JihWZadNffzBQ > SELF 0.00000000 Waves
{
"type": 13,
"id": "7jJ4azs1EJ9YsKH1Ak5w1pGLFX6sqBVSYA7bN7G1Nx1t",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1677656448085,
"version": 2,
"chainId": 84,
"sender": "3Mqhk2t6EZZt9Kew2w4J55JihWZadNffzBQ",
"senderPublicKey": "A8TH6dNbNo7KSojkXTRdR78cGa6d9oModHh52Pyuje6h",
"proofs": [
"23mpKmpYYnGbrUP1xBT96mFkbms8QyPrRjDLPbgAYbuMYTwkhUrg4Mjsuvqcdba2jvfSjudhu9EHJj8m4z2W8aYT"
],
"script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAABAQAAAA1pbnRlcm5hbEd1YXJkAAAAAQAAAAFpAwkAAAAAAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABHRoaXMFAAAABHVuaXQJAAACAAAAAQIAAAAZVGhpcyBpcyBpbnRlcm5hbCBmdW5jdGlvbgAAAAIAAAABaQEAAAAEY2FsbAAAAAAEAAAAA3JlcwkAA/wAAAAEBQAAAAR0aGlzAgAAABBpbnRlcm5hbEZ1bmN0aW9uBQAAAANuaWwFAAAAA25pbAMJAAAAAAAAAgUAAAADcmVzBQAAAANyZXMFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABaQEAAAAQaW50ZXJuYWxGdW5jdGlvbgAAAAAEAAAAAWEJAQAAAA1pbnRlcm5hbEd1YXJkAAAAAQUAAAABaQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAZDYWxsZWQCAAAAA1lFUwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmyWc60",
"height": 2470713,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 47QCzgKHXTu4dU32BjdCjUFYw8iyEMKD8Q9ibtgw1hwc
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 5 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func internalGuard (i) = if ((i.caller == this)) |
---|
| 5 | + | then unit |
---|
| 6 | + | else throw("This is internal function") |
---|
| 7 | + | |
---|
| 8 | + | |
---|
| 9 | + | @Callable(i) |
---|
| 10 | + | func call () = { |
---|
| 11 | + | let res = invoke(this, "internalFunction", nil, nil) |
---|
| 12 | + | if ((res == res)) |
---|
| 13 | + | then nil |
---|
| 14 | + | else throw("Strict value is not equal to itself.") |
---|
| 15 | + | } |
---|
| 16 | + | |
---|
| 17 | + | |
---|
| 18 | + | |
---|
| 19 | + | @Callable(i) |
---|
| 20 | + | func internalFunction () = { |
---|
| 21 | + | let a = internalGuard(i) |
---|
| 22 | + | [StringEntry("Called", "YES")] |
---|
| 23 | + | } |
---|
| 24 | + | |
---|
| 25 | + | |
---|
| 26 | + | @Verifier(tx) |
---|
| 27 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 28 | + | |
---|