tx · AmESyAYd2ztXwAyrCBzT7dw1hbu39c1xaAh8GMdoswLi 3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4: -0.01400000 Waves 2021.04.02 14:34 [1464771] smart account 3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4 > SELF 0.00000000 Waves
{ "type": 13, "id": "AmESyAYd2ztXwAyrCBzT7dw1hbu39c1xaAh8GMdoswLi", "fee": 1400000, "feeAssetId": null, "timestamp": 1617363293572, "version": 2, "chainId": 84, "sender": "3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4", "senderPublicKey": "5CqqMkmtXXt35KRH9LdWA3ap6TffPvTT5SHQzYrVFbBw", "proofs": [ "C5mLvCYusHzc8g6QDGWX961GFrNi74kVptKkWaBWNB8Nd6A6rY6sbR4SirUNV9wHL7KhdD66c267Xj24hNF4pZp" ], "script": "base64:AAIEAAAAAAAAAAIIAgAAAAcAAAAAEWdvdmVybmFuY2VBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUcfFVgbQTJcWNlHB+frBs1+VvhcIsEzy/AAAAAA1vcmFjbGVBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUF9lM6AYoK8CSEhNu2LXYw8e5pnEwZylPAAAAAAthZG1pbkludm9rZQEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAADGFkbWluUHViS2V5MQEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAADGFkbWluUHViS2V5MgEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAADGFkbWluUHViS2V5MwEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAAEWtleVByZWZpeFBvb2xOYW1lAgAAAAVwb29sXwAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAA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AGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5JCM8yg==", "height": 1464771, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3zNCwgCLxrRQh3jkCjkGpPrWeitoPpCSSyXwzjjunAtE Next: DYphfWfjJXVu3wCLucbzkzmWXC3D9aC8Ks2xos3uFBDg Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | let oracleAddress = Address(base58'3Mr6BddWEDfzKwNabpYbyd8Qos8LGEAAUvi') | |
7 | 7 | ||
8 | - | let adminInvoke = base58' | |
8 | + | let adminInvoke = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
9 | 9 | ||
10 | - | let adminPubKey1 = base58' | |
10 | + | let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
11 | 11 | ||
12 | - | let adminPubKey2 = base58' | |
12 | + | let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
13 | 13 | ||
14 | - | let adminPubKey3 = base58' | |
14 | + | let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
15 | 15 | ||
16 | 16 | let keyPrefixPoolName = "pool_" | |
17 | 17 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let governanceAddress = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS') | |
5 | 5 | ||
6 | 6 | let oracleAddress = Address(base58'3Mr6BddWEDfzKwNabpYbyd8Qos8LGEAAUvi') | |
7 | 7 | ||
8 | - | let adminInvoke = base58' | |
8 | + | let adminInvoke = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
9 | 9 | ||
10 | - | let adminPubKey1 = base58' | |
10 | + | let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
11 | 11 | ||
12 | - | let adminPubKey2 = base58' | |
12 | + | let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
13 | 13 | ||
14 | - | let adminPubKey3 = base58' | |
14 | + | let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
15 | 15 | ||
16 | 16 | let keyPrefixPoolName = "pool_" | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | @Verifier(tx) | |
20 | 20 | func verify () = match tx { | |
21 | 21 | case invoke: InvokeScriptTransaction => | |
22 | 22 | let isExchangeCall = if (isDefined(getString(oracleAddress, (keyPrefixPoolName + toString(addressFromRecipient(invoke.dApp)))))) | |
23 | 23 | then (invoke.function == "exchange") | |
24 | 24 | else false | |
25 | 25 | let isAirdropCall = if ((invoke.dApp == governanceAddress)) | |
26 | 26 | then (invoke.function == "airDrop") | |
27 | 27 | else false | |
28 | 28 | let isUpdateWeightsCall = if ((invoke.dApp == governanceAddress)) | |
29 | 29 | then (invoke.function == "updateWeights") | |
30 | 30 | else false | |
31 | 31 | let signedByAdmin = sigVerify(tx.bodyBytes, tx.proofs[0], adminInvoke) | |
32 | 32 | if (if (if (isExchangeCall) | |
33 | 33 | then true | |
34 | 34 | else isAirdropCall) | |
35 | 35 | then (size(invoke.payments) == 1) | |
36 | 36 | else false) | |
37 | 37 | then true | |
38 | 38 | else if (isUpdateWeightsCall) | |
39 | 39 | then (size(invoke.payments) == 0) | |
40 | 40 | else false | |
41 | 41 | case _ => | |
42 | 42 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
43 | 43 | } | |
44 | 44 |
github/deemru/w8io/026f985 30.36 ms ◑