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/AAAAAA1vcmFjbGVBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUF9lM6AYoK8CSEhNu2LXYw8e5pnEwZylPAAAAAAthZG1pbkludm9rZQEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAADGFkbWluUHViS2V5MQEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAADGFkbWluUHViS2V5MgEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAADGFkbWluUHViS2V5MwEAAAAgBM915WTQwQ9OZ7kfE2TEGg3qhCRCMX0zkF1AWAqdk0oAAAAAEWtleVByZWZpeFBvb2xOYW1lAgAAAAVwb29sXwAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAA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AAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5JCM8yg==", "height": 1464771, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3zNCwgCLxrRQh3jkCjkGpPrWeitoPpCSSyXwzjjunAtE Next: DYphfWfjJXVu3wCLucbzkzmWXC3D9aC8Ks2xos3uFBDg Diff:
OldNewDifferences
55
66 let oracleAddress = Address(base58'3Mr6BddWEDfzKwNabpYbyd8Qos8LGEAAUvi')
77
8-let adminInvoke = base58'Czn4yoAuUZCVCLJDRfskn8URfkwpknwBTZDbs1wFrY7h'
8+let adminInvoke = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
99
10-let adminPubKey1 = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA'
10+let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
1111
12-let adminPubKey2 = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7'
12+let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
1313
14-let adminPubKey3 = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ'
14+let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
1515
1616 let keyPrefixPoolName = "pool_"
1717
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let governanceAddress = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS')
55
66 let oracleAddress = Address(base58'3Mr6BddWEDfzKwNabpYbyd8Qos8LGEAAUvi')
77
8-let adminInvoke = base58'Czn4yoAuUZCVCLJDRfskn8URfkwpknwBTZDbs1wFrY7h'
8+let adminInvoke = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
99
10-let adminPubKey1 = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA'
10+let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
1111
12-let adminPubKey2 = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7'
12+let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
1313
14-let adminPubKey3 = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ'
14+let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
1515
1616 let keyPrefixPoolName = "pool_"
1717
1818
1919 @Verifier(tx)
2020 func verify () = match tx {
2121 case invoke: InvokeScriptTransaction =>
2222 let isExchangeCall = if (isDefined(getString(oracleAddress, (keyPrefixPoolName + toString(addressFromRecipient(invoke.dApp))))))
2323 then (invoke.function == "exchange")
2424 else false
2525 let isAirdropCall = if ((invoke.dApp == governanceAddress))
2626 then (invoke.function == "airDrop")
2727 else false
2828 let isUpdateWeightsCall = if ((invoke.dApp == governanceAddress))
2929 then (invoke.function == "updateWeights")
3030 else false
3131 let signedByAdmin = sigVerify(tx.bodyBytes, tx.proofs[0], adminInvoke)
3232 if (if (if (isExchangeCall)
3333 then true
3434 else isAirdropCall)
3535 then (size(invoke.payments) == 1)
3636 else false)
3737 then true
3838 else if (isUpdateWeightsCall)
3939 then (size(invoke.payments) == 0)
4040 else false
4141 case _ =>
4242 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4343 }
4444

github/deemru/w8io/026f985 
30.36 ms