tx · 2xfS1g1uQhv1w7jxdPzRPECfEZ68o5JYc3tswTZfAC6i
3MvA7A8Hmyy3Bzo4CPmUAKXYGmVtStxD8BX: -0.01000000 Waves
2021.02.01 14:18 [1379028] smart account 3MvA7A8Hmyy3Bzo4CPmUAKXYGmVtStxD8BX > SELF 0.00000000 Waves
{
"type": 13,
"id": "2xfS1g1uQhv1w7jxdPzRPECfEZ68o5JYc3tswTZfAC6i",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1612178340697,
"version": 2,
"chainId": 84,
"sender": "3MvA7A8Hmyy3Bzo4CPmUAKXYGmVtStxD8BX",
"senderPublicKey": "498FKstmgBHqxyjk8N2u9h5FDH1EkMN7MWVfA9iYpkMK",
"proofs": [
"3Z2vZaHrdXgLxRoJNA7xAg8UAp2ydaQGD2pdNb2JAYthdeR3U8naxcCsRsbcFnmK4hWfCTG2n9GbZfY7NGh92nyb"
],
"script": "base64:AAIEAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAADAAAAAAtFTVRQWVNUUklORwIAAAAAAQAAABBnZXRTdHJpbmdGcm9tS2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAA3N0cgUAAAAHJG1hdGNoMAUAAAADc3RyBQAAAAtFTVRQWVNUUklORwEAAAANaXNWYWxpZFNlbmRlcgAAAAEAAAAGc2VuZGVyBAAAABVlbnRyeUZvclNlbmRlckFkZHJlc3MJAQAAABBnZXRTdHJpbmdGcm9tS2V5AAAAAQUAAAAGc2VuZGVyAwkAAAAAAAACBQAAABVlbnRyeUZvclNlbmRlckFkZHJlc3MFAAAAC0VNVFBZU1RSSU5HBwYAAAACAAAAAWkBAAAAB2FkZFVzZXIAAAABAAAABG5hbWUEAAAABnNlbmRlcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAADWlzVmFsaWRTZW5kZXIAAAABBQAAAAZzZW5kZXIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACCQACWAAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQCAAAABV91c2VyBQAAAARuYW1lBQAAAANuaWwJAAACAAAAAQIAAAAgU2VuZGVyIG5vdCBhbGxvd2VkIHRvIGFkZCB1c2VycyEAAAABaQEAAAAOYWRkUmVxdWlyZW1lbnQAAAABAAAAEnJlcXVpcmVtZW50QWRkcmVzcwQAAAAGc2VuZGVyCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAANaXNWYWxpZFNlbmRlcgAAAAEFAAAABnNlbmRlcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAIAAAATX3JlcXVpcmVtZW50QWRkcmVzcwUAAAAScmVxdWlyZW1lbnRBZGRyZXNzBQAAAANuaWwJAAACAAAAAQIAAAAgU2VuZGVyIG5vdCBhbGxvd2VkIHRvIGFkZCB1c2VycyEAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAfOTUTg",
"height": 1379028,
"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((toBase58String(i.transactionId) + "_user"), j)] |
---|
| 30 | + | else throw("Sender not allowed to add users!") |
---|
| 31 | + | } |
---|
| 32 | + | |
---|
| 33 | + | |
---|
| 34 | + | |
---|
| 35 | + | @Callable(i) |
---|
| 36 | + | func addRequirement (k) = { |
---|
| 37 | + | let g = toBase58String(i.caller.bytes) |
---|
| 38 | + | if (f(g)) |
---|
| 39 | + | then [StringEntry((toBase58String(i.transactionId) + "_requirementAddress"), k)] |
---|
| 40 | + | else throw("Sender not allowed to add users!") |
---|
| 41 | + | } |
---|
| 42 | + | |
---|
| 43 | + | |
---|
| 44 | + | @Verifier(l) |
---|
| 45 | + | func m () = { |
---|
| 46 | + | let d = l |
---|
| 47 | + | false |
---|
| 48 | + | } |
---|
| 49 | + | |
---|