tx · Hf6t1g3His47aEKVcYLQwGRm7wDdSzLXGCrNiV5F69a5
3N1CyDBGcuYzqCwWndK2QmxmkhmcPproYES: -0.01000000 Waves
2021.02.01 04:53 [1378476] smart account 3N1CyDBGcuYzqCwWndK2QmxmkhmcPproYES > SELF 0.00000000 Waves
{
"type": 13,
"id": "Hf6t1g3His47aEKVcYLQwGRm7wDdSzLXGCrNiV5F69a5",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1612144482075,
"version": 2,
"chainId": 84,
"sender": "3N1CyDBGcuYzqCwWndK2QmxmkhmcPproYES",
"senderPublicKey": "H7UsC3KHXoXbEyQc2oCmp9tz4cTvxtwbRu2sXS7hNTkx",
"proofs": [
"2xMtjf258x7sSfBzW782KrgWa4SjePvy3VfSxH71k6Gp9p4AyTq6mwka6JXURxGxEgABcXrMHxbFBXRGP8MszoZG"
],
"script": "base64:AAIEAAAAAAAAAA0IAhIDCgEIEgQKAggIAAAAAwAAAAALRU1UUFlTVFJJTkcCAAAAAAEAAAAQZ2V0U3RyaW5nRnJvbUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAANzdHIFAAAAByRtYXRjaDAFAAAAA3N0cgUAAAALRU1UUFlTVFJJTkcBAAAADWlzVmFsaWRTZW5kZXIAAAABAAAABnNlbmRlcgQAAAAVZW50cnlGb3JTZW5kZXJBZGRyZXNzCQEAAAAQZ2V0U3RyaW5nRnJvbUtleQAAAAEFAAAABnNlbmRlcgMJAAAAAAAAAgUAAAAVZW50cnlGb3JTZW5kZXJBZGRyZXNzBQAAAAtFTVRQWVNUUklORwcGAAAAAgAAAAFpAQAAAAdhZGRVc2VyAAAAAQAAAARuYW1lBAAAAAZzZW5kZXIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAA1pc1ZhbGlkU2VuZGVyAAAAAQUAAAAGc2VuZGVyCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABHVzZXIFAAAABG5hbWUFAAAAA25pbAkAAAIAAAABAgAAACBTZW5kZXIgbm90IGFsbG93ZWQgdG8gYWRkIHVzZXJzIQAAAAFpAQAAAA5hZGRSZXF1aXJlbWVudAAAAAIAAAALcmVxdWlyZW1lbnQAAAALZGVzY3JpcHRpb24EAAAABnNlbmRlcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAADWlzVmFsaWRTZW5kZXIAAAABBQAAAAZzZW5kZXIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAALcmVxdWlyZW1lbnQFAAAAC3JlcXVpcmVtZW50CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAFnJlcXVpcmVtZW50RGVzY3JpcHRpb24FAAAAC2Rlc2NyaXB0aW9uBQAAAANuaWwJAAACAAAAAQIAAAAgU2VuZGVyIG5vdCBhbGxvd2VkIHRvIGFkZCB1c2VycyEAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAehPYDv",
"height": 1378476,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 4 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let a = "" |
---|
| 5 | + | |
---|
| 6 | + | func b (c) = { |
---|
| 7 | + | let d = getString(this, c) |
---|
| 8 | + | if ($isInstanceOf(d, "String")) |
---|
| 9 | + | then { |
---|
| 10 | + | let e = d |
---|
| 11 | + | e |
---|
| 12 | + | } |
---|
| 13 | + | else a |
---|
| 14 | + | } |
---|
| 15 | + | |
---|
| 16 | + | |
---|
| 17 | + | func f (g) = { |
---|
| 18 | + | let h = b(g) |
---|
| 19 | + | if ((h == a)) |
---|
| 20 | + | then false |
---|
| 21 | + | else true |
---|
| 22 | + | } |
---|
| 23 | + | |
---|
| 24 | + | |
---|
| 25 | + | @Callable(i) |
---|
| 26 | + | func addUser (j) = { |
---|
| 27 | + | let g = toBase58String(i.caller.bytes) |
---|
| 28 | + | if (f(g)) |
---|
| 29 | + | then [StringEntry("user", j)] |
---|
| 30 | + | else throw("Sender not allowed to add users!") |
---|
| 31 | + | } |
---|
| 32 | + | |
---|
| 33 | + | |
---|
| 34 | + | |
---|
| 35 | + | @Callable(i) |
---|
| 36 | + | func addRequirement (k,l) = { |
---|
| 37 | + | let g = toBase58String(i.caller.bytes) |
---|
| 38 | + | if (f(g)) |
---|
| 39 | + | then [StringEntry("requirement", k), StringEntry("requirementDescription", l)] |
---|
| 40 | + | else throw("Sender not allowed to add users!") |
---|
| 41 | + | } |
---|
| 42 | + | |
---|
| 43 | + | |
---|
| 44 | + | @Verifier(m) |
---|
| 45 | + | func n () = { |
---|
| 46 | + | let d = m |
---|
| 47 | + | false |
---|
| 48 | + | } |
---|
| 49 | + | |
---|