tx · APErps5CQNG8DpF78MawZ7c34byaUgP9WczaH1JwsFzi
3NC919nbxwuSaHY8X6x8NmqD1zZdWSd7gaf: -0.01000000 Waves
2022.11.07 02:53 [2305951] smart account 3NC919nbxwuSaHY8X6x8NmqD1zZdWSd7gaf > SELF 0.00000000 Waves
{
"type": 13,
"id": "APErps5CQNG8DpF78MawZ7c34byaUgP9WczaH1JwsFzi",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1667778796232,
"version": 2,
"chainId": 84,
"sender": "3NC919nbxwuSaHY8X6x8NmqD1zZdWSd7gaf",
"senderPublicKey": "Fvzdy4Qppd2VzNFAj8ySdyEvhoiRFQfm9WyUtWbe96zY",
"proofs": [
"62vs3bUgq57rC2TXju36bmmN8sRqE1BVjCXhAhAxL8UNbnAfKDyEoriRAufwGStqab5Md8soC72v7UYS24yHzh24"
],
"script": "base64:BgEEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBAF0BQckbWF0Y2gwAwkAZgIJAJADAQgFAnR4BnByb29mcwAACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AwMJAAACCQETdmFsdWVPckVycm9yTWVzc2FnZQIIBQF0BGRBcHACEkNhbid0IEdldCB0aGUgZEFwcAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM010ejJUNm9MRmtLNEY3UXZTcmh0cFY3WjVnTWJyZW9ObWkJAAACCQETdmFsdWVPckVycm9yTWVzc2FnZQIIBQF0CGZ1bmN0aW9uAhZDYW4ndCBnZXQgdGhlIGZ1bmN0aW9uAgVkdW1teQcDCQBmAgkAkAMBCQETdmFsdWVPckVycm9yTWVzc2FnZQIIBQF0CHBheW1lbnRzAhZDYW4ndCBnZXQgdGhlIHBheW1lbnRzAAAJAAIBAht0aGVyZSBzaG91bGQgYmUgbm8gcGF5bWVudHMDAwkAZgIJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAggFAXQDZmVlAhFDYW4ndCBnZXQgdGhlIGZlZQCgwh4GCQEJaXNEZWZpbmVkAQkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCAUBdApmZWVBc3NldElkAhpDYW4ndCBnZXQgdGhlIGZlZSBhc3NldCBpZAkAAgECGWZlZSBzaG91bGQgYmUgMC4wMDUgV0FWRVMGCQACAQI5b25seSBjYWxsaW5nIHNwZWNpZmllZCBmdW5jdGlvbiBvbiBzcGVjaWZpZWQgZGFwcCBhbGxvd2VkCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V565mqkA==",
"height": 2305951,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: B9yr2Y8Zii7v3Cwop1NaL8ja6KKq3ay564LypLiCMoyV
Next: 2rkpjZGSCLrkUqj1mNy9HcE8uTWB77YqjsmrfpibzPAg
Diff:
Old | New | | Differences |
---|
4 | 4 | | case t: InvokeScriptTransaction => |
---|
5 | 5 | | if ((size(tx.proofs) > 0)) |
---|
6 | 6 | | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
7 | | - | else if (if ((t.dApp == addressFromStringValue("3Mtz2T6oLFkK4F7QvSrhtpV7Z5gMbreoNmi"))) |
---|
8 | | - | then (t.function == "dummy") |
---|
| 7 | + | else if (if ((valueOrErrorMessage(t.dApp, "Can't Get the dApp") == addressFromStringValue("3Mtz2T6oLFkK4F7QvSrhtpV7Z5gMbreoNmi"))) |
---|
| 8 | + | then (valueOrErrorMessage(t.function, "Can't get the function") == "dummy") |
---|
9 | 9 | | else false) |
---|
10 | | - | then if ((size(t.payments) > 0)) |
---|
| 10 | + | then if ((size(valueOrErrorMessage(t.payments, "Can't get the payments")) > 0)) |
---|
11 | 11 | | then throw("there should be no payments") |
---|
12 | | - | else if (if ((t.fee > 500000)) |
---|
| 12 | + | else if (if ((valueOrErrorMessage(t.fee, "Can't get the fee") > 500000)) |
---|
13 | 13 | | then true |
---|
14 | | - | else isDefined(t.feeAssetId)) |
---|
| 14 | + | else isDefined(valueOrErrorMessage(t.feeAssetId, "Can't get the fee asset id"))) |
---|
15 | 15 | | then throw("fee should be 0.005 WAVES") |
---|
16 | 16 | | else true |
---|
17 | 17 | | else throw("only calling specified function on specified dapp allowed") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | match tx { |
---|
4 | 4 | | case t: InvokeScriptTransaction => |
---|
5 | 5 | | if ((size(tx.proofs) > 0)) |
---|
6 | 6 | | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
7 | | - | else if (if ((t.dApp == addressFromStringValue("3Mtz2T6oLFkK4F7QvSrhtpV7Z5gMbreoNmi"))) |
---|
8 | | - | then (t.function == "dummy") |
---|
| 7 | + | else if (if ((valueOrErrorMessage(t.dApp, "Can't Get the dApp") == addressFromStringValue("3Mtz2T6oLFkK4F7QvSrhtpV7Z5gMbreoNmi"))) |
---|
| 8 | + | then (valueOrErrorMessage(t.function, "Can't get the function") == "dummy") |
---|
9 | 9 | | else false) |
---|
10 | | - | then if ((size(t.payments) > 0)) |
---|
| 10 | + | then if ((size(valueOrErrorMessage(t.payments, "Can't get the payments")) > 0)) |
---|
11 | 11 | | then throw("there should be no payments") |
---|
12 | | - | else if (if ((t.fee > 500000)) |
---|
| 12 | + | else if (if ((valueOrErrorMessage(t.fee, "Can't get the fee") > 500000)) |
---|
13 | 13 | | then true |
---|
14 | | - | else isDefined(t.feeAssetId)) |
---|
| 14 | + | else isDefined(valueOrErrorMessage(t.feeAssetId, "Can't get the fee asset id"))) |
---|
15 | 15 | | then throw("fee should be 0.005 WAVES") |
---|
16 | 16 | | else true |
---|
17 | 17 | | else throw("only calling specified function on specified dapp allowed") |
---|
18 | 18 | | case _ => |
---|
19 | 19 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
20 | 20 | | } |
---|