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