tx · CkgxeHiDLVQKQNNPDBUnpqG8T492Hqr73CPNNGz5Nm5J
3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx: -0.01000000 Waves
2023.05.28 17:16 [2597928] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves
{
"type": 13,
"id": "CkgxeHiDLVQKQNNPDBUnpqG8T492Hqr73CPNNGz5Nm5J",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1685283433936,
"version": 2,
"chainId": 84,
"sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx",
"senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc",
"proofs": [
"C15wAKN8B7B4T6HCHoewtZmGrhJMQ7x4jxrcrAAwL3GWYUHKhKrdF4AtH5VAJr2pfuuJX5rBGuThAyEwBqqQFNp"
],
"script": "base64:BgIJCAISABIDCgEBAAIBaQENdG9rZW5Jc3N1YW5jZQAEBG5hbWUCCkJlYnJhVG9rZW4EDmxlbmRlc2NyaXB0aW9uAg9CZWJyYSBieSBLcmluZ2UECHF1YW50aXR5AJBOBAhkZWNpbWFscwAABAxpc1JlaXNzdWFibGUGBAppc3N1ZUJlYnJhCQDDCAcFBG5hbWUFDmxlbmRlc2NyaXB0aW9uBQhxdWFudGl0eQUIZGVjaW1hbHMFDGlzUmVpc3N1YWJsZQUEdW5pdAAABAdhc3NldElkCQC4CAEFCmlzc3VlQmVicmEECWtuZXdUb2tlbgIFVG9rZW4EC2dldE5ld1Rva2VuCQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJ0IAgUEdGhpcwUJa25ld1Rva2VuAhlCZWJyYVRva2VuIGlzIG5vdCBkZWZpbmVkBAlyZWNpcGllbnQIBQFpBmNhbGxlcgkAzAgCBQppc3N1ZUJlYnJhCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFCXJlY2lwaWVudADQDwUHYXNzZXRJZAUDbmlsAWkBDXRva2VuVHJhbnNmZXIBBmFtb3VudAUDbmlsAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAUCdHgDCQABAgUHJG1hdGNoMAITVHJhbnNmZXJUcmFuc2FjdGlvbgQDdHR4BQckbWF0Y2gwAwkAZgIIBQN0dHgDZmVlAKCE9i8JAPQDAwgFA3R0eAlib2R5Qnl0ZXMJAJEDAggFA3R0eAZwcm9vZnMAAAgFA3R0eA9zZW5kZXJQdWJsaWNLZXkHBw8T77Q=",
"height": 2597928,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: DJ1JCBdjuT1zapvn7Jhk2MMDtWyVGGwxaozMebSeduUZ
Next: none
Diff:
Old | New | | Differences |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
27 | 27 | | @Verifier(tx) |
---|
28 | | - | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 28 | + | func verify () = match tx { |
---|
| 29 | + | case ttx: TransferTransaction => |
---|
| 30 | + | if ((ttx.fee > 100500000)) |
---|
| 31 | + | then sigVerify(ttx.bodyBytes, ttx.proofs[0], ttx.senderPublicKey) |
---|
| 32 | + | else false |
---|
| 33 | + | case _ => |
---|
| 34 | + | false |
---|
| 35 | + | } |
---|
29 | 36 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func tokenIssuance () = { |
---|
8 | 8 | | let name = "BebraToken" |
---|
9 | 9 | | let lendescription = "Bebra by Kringe" |
---|
10 | 10 | | let quantity = 10000 |
---|
11 | 11 | | let decimals = 0 |
---|
12 | 12 | | let isReissuable = true |
---|
13 | 13 | | let issueBebra = Issue(name, lendescription, quantity, decimals, isReissuable, unit, 0) |
---|
14 | 14 | | let assetId = calculateAssetId(issueBebra) |
---|
15 | 15 | | let knewToken = "Token" |
---|
16 | 16 | | let getNewToken = valueOrErrorMessage(getString(this, knewToken), "BebraToken is not defined") |
---|
17 | 17 | | let recipient = i.caller |
---|
18 | 18 | | [issueBebra, ScriptTransfer(recipient, 2000, assetId)] |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | @Callable(i) |
---|
24 | 24 | | func tokenTransfer (amount) = nil |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
27 | 27 | | @Verifier(tx) |
---|
28 | | - | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 28 | + | func verify () = match tx { |
---|
| 29 | + | case ttx: TransferTransaction => |
---|
| 30 | + | if ((ttx.fee > 100500000)) |
---|
| 31 | + | then sigVerify(ttx.bodyBytes, ttx.proofs[0], ttx.senderPublicKey) |
---|
| 32 | + | else false |
---|
| 33 | + | case _ => |
---|
| 34 | + | false |
---|
| 35 | + | } |
---|
29 | 36 | | |
---|