tx · FRTxriXUcneuVFG4cpGXe1BHxJszHhHPiNbaVt28gUTZ 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh: -0.01000000 Waves 2023.04.12 10:59 [2531077] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves
{ "type": 13, "id": "FRTxriXUcneuVFG4cpGXe1BHxJszHhHPiNbaVt28gUTZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1681286442703, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "tjssGkVU9RDZtuaa386Ya6ncUKfGskd5Nb52MTVL5UipLq31LGm8LXMLP1tWgnTv3EWuhqKVVTtyDLdWXJ9kcKj" ], "script": "base64:BgICCAIBAANmb28CA2ZvbwABAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAMJAAECBQckbWF0Y2gwAgVPcmRlcgQBbwUHJG1hdGNoMAkAZgIJARFAZXh0ck5hdGl2ZSgxMDUwKQIFBHRoaXMFA2ZvbwALCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5d3p16Q==", "height": 2531077, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ArAaAFKfYWsmLXtjYbFgim8zXsr6FzfyUzFnxhzsLCXz Next: 4edS2hBsJFvTXtgDGu519XpLiQyNFDuSUfhhHeMGQ3ah Full:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let foo = "foo" | |
4 | 5 | ||
5 | 6 | ||
6 | - | @Callable(i) | |
7 | - | func lease (poolAddress) = { | |
8 | - | let payment = i.payments[0] | |
9 | - | let lease = Lease(Address(fromBase58String(poolAddress)), payment.amount) | |
10 | - | let id = calculateLeaseId(lease) | |
11 | - | [lease, StringEntry("b58leaseID", toBase58String(id))] | |
12 | - | } | |
13 | - | ||
14 | - | ||
15 | - | ||
16 | - | @Callable(i) | |
17 | - | func leaseCancel (leaseTx) = [LeaseCancel(fromBase58String(leaseTx))] | |
18 | - | ||
19 | - | ||
20 | - | ||
21 | - | @Callable(i) | |
22 | - | func foo (bar) = [StringEntry((toBase58String(i.caller.bytes) + "_bar"), bar)] | |
23 | - | ||
7 | + | @Verifier(tx) | |
8 | + | func verify () = match tx { | |
9 | + | case o: Order => | |
10 | + | (getIntegerValue(this, foo) > 11) | |
11 | + | case _ => | |
12 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
13 | + | } | |
24 | 14 |
github/deemru/w8io/026f985 47.72 ms ◑