tx · 7cdgFciD2MhVizEKd26VxFzU3BLGsFKn1d8htXVVAjuJ
3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm: -0.01400000 Waves
2023.05.15 19:18 [2579314] smart account 3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm > SELF 0.00000000 Waves
{
"type": 13,
"id": "7cdgFciD2MhVizEKd26VxFzU3BLGsFKn1d8htXVVAjuJ",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1684167567514,
"version": 2,
"chainId": 84,
"sender": "3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm",
"senderPublicKey": "EKmhAeU9yA52DSvBnr1WtWQWyyiCrauDYkmgnTns7ZkA",
"proofs": [
"4k8oNLiTfAHkybmvY1CCtKDNgu4ZAJu5kshpKJo95ZAUKAfqDzWeXyJapijPtEQoaqwwBDWNGH9c9fs7vGZEmgYW"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAABAAAAAATd2hpdGVsaXN0ZWRfYWRkcmVzcwkABEwAAAACAgAAACMzTjJadENFR25jSFFqUUY0ZzRvUUJEZVJSWm9VUTNrSjdObQkABEwAAAACAgAAACMzTjZvV0x5UVkyZ003UVVrVXZCbWUxUkVuQTZkMVY3eTNBVAkABEwAAAACAgAAACMzTjhkWUs4QlFoWTd6MXlLRlJGaGR3NG05YjRKanNOUUpWZAUAAAADbmlsAAAAAAR3bF8wCQABkQAAAAIFAAAAE3doaXRlbGlzdGVkX2FkZHJlc3MAAAAAAAAAAAAAAAAABHdsXzEJAAGRAAAAAgUAAAATd2hpdGVsaXN0ZWRfYWRkcmVzcwAAAAAAAAAAAQAAAAAEd2xfMgkAAZEAAAACBQAAABN3aGl0ZWxpc3RlZF9hZGRyZXNzAAAAAAAAAAACAAAAAQAAAAFpAQAAABNTZXRWb3RpbmdUaW1lU3RhbXBzAAAAAAQAAAAGcHVia2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDAwMJAQAAAAIhPQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABnB1YmtleQkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAEd2xfMAYJAQAAAAIhPQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABnB1YmtleQkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAEd2xfMQYJAQAAAAIhPQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABnB1YmtleQkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAEd2xfMgkAAAIAAAABAgAAAF1UaGlzIEFkZHJlc3MgaXMgbm90IEF1dGhvcml6ZWQuIE9ubHkgV2hpdGVsaXN0ZWQgQWRkcmVzc2VzIGFyZSBBdXRob3JpemVkIEFkZHJlc3MgdG8gU2lnbiBpdC4JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAHQWRkcmVzcwUAAAAGcHVia2V5BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlecrVNhE=",
"height": 2579314,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: F3esxtKq9FqpyaKZkbsZL35skWb81mp5SC48WAkPS5Dy
Next: 5THmZRPPPk9E2yyfWQt7yAMnnHchrdSSwD4BARMYsAcM
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let whitelisted_address = ["3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm", "3JsKiEJcwGYYZzjHhjwLJfwtg8KTFvYzyrj", "3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd"] |
---|
| 4 | + | let whitelisted_address = ["3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm", "3N6oWLyQY2gM7QUkUvBme1REnA6d1V7y3AT", "3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd"] |
---|
5 | 5 | | |
---|
6 | 6 | | let wl_0 = whitelisted_address[0] |
---|
7 | 7 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let whitelisted_address = ["3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm", "3JsKiEJcwGYYZzjHhjwLJfwtg8KTFvYzyrj", "3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd"] |
---|
| 4 | + | let whitelisted_address = ["3N2ZtCEGncHQjQF4g4oQBDeRRZoUQ3kJ7Nm", "3N6oWLyQY2gM7QUkUvBme1REnA6d1V7y3AT", "3N8dYK8BQhY7z1yKFRFhdw4m9b4JjsNQJVd"] |
---|
5 | 5 | | |
---|
6 | 6 | | let wl_0 = whitelisted_address[0] |
---|
7 | 7 | | |
---|
8 | 8 | | let wl_1 = whitelisted_address[1] |
---|
9 | 9 | | |
---|
10 | 10 | | let wl_2 = whitelisted_address[2] |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | 13 | | func SetVotingTimeStamps () = { |
---|
14 | 14 | | let pubkey = toBase58String(i.caller.bytes) |
---|
15 | 15 | | if (if (if ((addressFromStringValue(pubkey) != addressFromStringValue(wl_0))) |
---|
16 | 16 | | then true |
---|
17 | 17 | | else (addressFromStringValue(pubkey) != addressFromStringValue(wl_1))) |
---|
18 | 18 | | then true |
---|
19 | 19 | | else (addressFromStringValue(pubkey) != addressFromStringValue(wl_2))) |
---|
20 | 20 | | then throw("This Address is not Authorized. Only Whitelisted Addresses are Authorized Address to Sign it.") |
---|
21 | 21 | | else [StringEntry("Address", pubkey)] |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | @Verifier(tx) |
---|
26 | 26 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
27 | 27 | | |
---|