tx · 4s7RHr9vTHDsssoVUEGrhdWxyNpVm2AWGvx35ymT857N

3MtoyuoHsr2YAsZ5uPkU9cueGpYYhxQft9b:  -0.01000000 Waves

2023.07.12 16:58 [2662775] smart account 3MtoyuoHsr2YAsZ5uPkU9cueGpYYhxQft9b > SELF 0.00000000 Waves

{ "type": 13, "id": "4s7RHr9vTHDsssoVUEGrhdWxyNpVm2AWGvx35ymT857N", "fee": 1000000, "feeAssetId": null, "timestamp": 1689169880539, "version": 2, "chainId": 84, "sender": "3MtoyuoHsr2YAsZ5uPkU9cueGpYYhxQft9b", "senderPublicKey": "HzUSeUK2t8ye5Ej9AP9zNBcBfDHdUVGzAJokeHzKRfSC", "proofs": [ "2QwJiUAVCsfnzNDTKDwqBF8JVmAWRiTjg7Xo2dThjmbfA8re8q3BZirqH8P7oorPiQKicwNn5CERkyEawGovZio6" ], "script": "base64:BgEEDGFsbG93ZWREQXBwcwkAvAkCCQELdmFsdWVPckVsc2UCCQCdCAIFBHRoaXMCDGFsbG93ZWREQXBwcwIAAgEsBBFhbGxvd2VkUmVjaXBpZW50cwkAvAkCCQELdmFsdWVPckVsc2UCCQCdCAIFBHRoaXMCEWFsbG93ZWRSZWNpcGllbnRzAgACASwEByRtYXRjaDAJAJ0IAgUEdGhpcwIIYWRtaW5LZXkDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAhhZG1pbktleQUHJG1hdGNoMAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAQHJG1hdGNoMQUCdHgDCQABAgUHJG1hdGNoMQITVHJhbnNmZXJUcmFuc2FjdGlvbgQIdHJhbnNmZXIFByRtYXRjaDEDCQEPY29udGFpbnNFbGVtZW50AgURYWxsb3dlZFJlY2lwaWVudHMJAKUIAQkApAgBCAUIdHJhbnNmZXIJcmVjaXBpZW50CAUCdHgPc2VuZGVyUHVibGljS2V5CQDZBAEFCGFkbWluS2V5AwkAAQIFByRtYXRjaDECF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBAZpbnZva2UFByRtYXRjaDEDCQEPY29udGFpbnNFbGVtZW50AgUMYWxsb3dlZERBcHBzCQClCAEJAKQIAQgFBmludm9rZQRkQXBwCAUCdHgPc2VuZGVyUHVibGljS2V5CQDZBAEFCGFkbWluS2V5CQDZBAEFCGFkbWluS2V5CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V53cna/w==", "height": 2662775, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let allowedDApps = split_4C(valueOrElse(getString(this, "allowedDApps"), ""), ",")
4+let allowedRecipients = split_4C(valueOrElse(getString(this, "allowedRecipients"), ""), ",")
5+match getString(this, "adminKey") {
6+ case adminKey: String =>
7+ sigVerify(tx.bodyBytes, tx.proofs[0], match tx {
8+ case transfer: TransferTransaction =>
9+ if (containsElement(allowedRecipients, toString(addressFromRecipient(transfer.recipient))))
10+ then tx.senderPublicKey
11+ else fromBase58String(adminKey)
12+ case invoke: InvokeScriptTransaction =>
13+ if (containsElement(allowedDApps, toString(addressFromRecipient(invoke.dApp))))
14+ then tx.senderPublicKey
15+ else fromBase58String(adminKey)
16+ case _ =>
17+ fromBase58String(adminKey)
18+ })
19+ case _ =>
20+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
21+}

github/deemru/w8io/169f3d6 
53.21 ms