tx · 4ogYfn5aDebs5TQ2kDsCb1qeq1MHbbaKrFtwcwPY66Ew
3Muu3wofUe3NFHNFUH17qgL22dC7xxEcVt3: -0.01000000 Waves
2022.07.06 18:01 [2127973] smart account 3Muu3wofUe3NFHNFUH17qgL22dC7xxEcVt3 > SELF 0.00000000 Waves
{
"type": 13,
"id": "4ogYfn5aDebs5TQ2kDsCb1qeq1MHbbaKrFtwcwPY66Ew",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1657119713499,
"version": 2,
"chainId": 84,
"sender": "3Muu3wofUe3NFHNFUH17qgL22dC7xxEcVt3",
"senderPublicKey": "5C7k7Jb4Z8ft6DbBbiwRLVFED6nYbCDSKzvWUrdnQsLZ",
"proofs": [
"3hnfWAyF83Qzqv5WSfw4vfTprrQHbPiAyQ8jags5BosSiHvPWJGWHwHVwAtzXNzWT5r3xrETcRNxYeHG9yE9i7H8"
],
"script": "base64:BgIMCAISAwoBCBIDCgEIAAIBaQEEY2FsbAEDa2V5BAdmbGFnZ2VkCQCbCAIFBHRoaXMFA2tleQQGc2V0SW52AwkAAAIFB2ZsYWdnZWQFBHVuaXQJAPwHBAUEdGhpcwIDc2V0CQDMCAIFA2tleQUDbmlsBQNuaWwJAAIBAgJvawMJAAACBQZzZXRJbnYFBnNldEludgkAlAoCBQNuaWwFBHVuaXQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEDc2V0AQNrZXkEB2ZsYWdnZWQJAJsIAgUEdGhpcwUDa2V5AwkBAiE9AgUHZmxhZ2dlZAUEdW5pdAkAAgECBG9vcHMJAJQKAgkAzAgCCQEMQm9vbGVhbkVudHJ5AgUDa2V5BgUDbmlsBQR1bml0AIIgcTM=",
"height": 2127973,
"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 call (key) = { |
---|
| 8 | + | let flagged = getBoolean(this, key) |
---|
| 9 | + | let setInv = if ((flagged == unit)) |
---|
| 10 | + | then invoke(this, "set", [key], nil) |
---|
| 11 | + | else throw("ok") |
---|
| 12 | + | if ((setInv == setInv)) |
---|
| 13 | + | then $Tuple2(nil, unit) |
---|
| 14 | + | else throw("Strict value is not equal to itself.") |
---|
| 15 | + | } |
---|
| 16 | + | |
---|
| 17 | + | |
---|
| 18 | + | |
---|
| 19 | + | @Callable(i) |
---|
| 20 | + | func set (key) = { |
---|
| 21 | + | let flagged = getBoolean(this, key) |
---|
| 22 | + | if ((flagged != unit)) |
---|
| 23 | + | then throw("oops") |
---|
| 24 | + | else $Tuple2([BooleanEntry(key, true)], unit) |
---|
| 25 | + | } |
---|
| 26 | + | |
---|
| 27 | + | |
---|