tx · 4d2QCkeWyCpmqShwunUANF9m8Y8s8QBudHLeqiRw1VmQ
3Mxr3mKcEhvf6pz4Lao9eMnPRkEVmT55y6e: -0.01400000 Waves
2022.11.23 16:55 [2329839] smart account 3Mxr3mKcEhvf6pz4Lao9eMnPRkEVmT55y6e > SELF 0.00000000 Waves
{
"type": 13,
"id": "4d2QCkeWyCpmqShwunUANF9m8Y8s8QBudHLeqiRw1VmQ",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1669211782990,
"version": 2,
"chainId": 84,
"sender": "3Mxr3mKcEhvf6pz4Lao9eMnPRkEVmT55y6e",
"senderPublicKey": "DMN29ctJ3QZUonq3oHXu3VZ3mDTQrkAphksSAGnDaBFt",
"proofs": [
"2dmqoSUgXiLn6h2QVCHHVUH6xj6FtjFQABSTvxbiyGbjVDub6wXejAPH8Ag66GVUzrVgsMz5sEfPiiuKVVSD7Mia"
],
"script": "base64:BgIHCAISAwoBAQABAWkBDHNldENvbXBsZXRlZAEJY29tcGxldGVkBAZjYWxsZXIJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQFb3duZXIJARFAZXh0ck5hdGl2ZSgxMDU4KQECBU9XTkVSBANlcnIDCQECIT0CBQZjYWxsZXIFBW93bmVyCQACAQILbm90IGFsbG93ZWQFBHVuaXQDCQAAAgUDZXJyBQNlcnIJAMwIAgkBDEludGVnZXJFbnRyeQICGExBU1RfQ09NUExFVEVEX01JR1JBVElPTgUJY29tcGxldGVkBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5OlG6fA==",
"height": 2329839,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func setCompleted (completed) = { |
---|
| 8 | + | let caller = toBase58String(i.caller.bytes) |
---|
| 9 | + | let owner = getStringValue("OWNER") |
---|
| 10 | + | let err = if ((caller != owner)) |
---|
| 11 | + | then throw("not allowed") |
---|
| 12 | + | else unit |
---|
| 13 | + | if ((err == err)) |
---|
| 14 | + | then [IntegerEntry("LAST_COMPLETED_MIGRATION", completed)] |
---|
| 15 | + | else throw("Strict value is not equal to itself.") |
---|
| 16 | + | } |
---|
| 17 | + | |
---|
| 18 | + | |
---|
| 19 | + | @Verifier(tx) |
---|
| 20 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 21 | + | |
---|