tx · 27FZZSLntCpoM23LaSPoVv2mo3oGZrJCNFbfbUZTc7Bo
3N1B3ow9KKCPxJPAbCRnnSjjuFWEfPN9gKS: -0.01000000 Waves
2020.09.23 16:25 [1190006] smart account 3N1B3ow9KKCPxJPAbCRnnSjjuFWEfPN9gKS > SELF 0.00000000 Waves
{
"type": 13,
"id": "27FZZSLntCpoM23LaSPoVv2mo3oGZrJCNFbfbUZTc7Bo",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1600867550906,
"version": 2,
"chainId": 84,
"sender": "3N1B3ow9KKCPxJPAbCRnnSjjuFWEfPN9gKS",
"senderPublicKey": "J5BDeG213y3njDCzMMAhZqjRHZHZyVmoGnv3PAFmfGiX",
"proofs": [
"5eqWE8NmEZh9bAPG81SVziji2CeUXm1ucFmqQ7f7WxHXnrKtxejtuwn1gv9wDDHUHptdtQu2dGhza3kRrvrbsim4"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAALaXNQYXltZW50T2sAAAABAAAAAWkEAAAAEWFjY2VwdGFibGVBc3NldElkAQAAACAiRKbniFR9USiuale6D2n6duEOdzftqEerUh9pTZRCRwMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABhQYXltZW50IG11c3QgYmUgYXR0YWNoZWQEAAAAAXAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAB2Fzc2V0SWQFAAAAByRtYXRjaDADCQAAAAAAAAIFAAAAB2Fzc2V0SWQFAAAAEWFjY2VwdGFibGVBc3NldElkCQAAZwAAAAIIBQAAAAFwAAAABmFtb3VudAAAAAAAHc1lAAcJAABnAAAAAggFAAAAAXAAAAAGYW1vdW50AAAAAAAF9eEAAAAAAQAAAAFpAQAAAARjYWxsAAAAAAMJAQAAAAtpc1BheW1lbnRPawAAAAEFAAAAAWkJAAACAAAAAQIAAAACT0sJAAACAAAAAQIAAAAFV3JvbmcAAAAArBVMgA==",
"height": 1190006,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: BgZQovB51nBXJjt8L98eSjBRvNZAV36oNncF8vF5ACJY
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 4 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func isPaymentOk (i) = { |
---|
| 5 | + | let acceptableAssetId = base58'3JmaWyFqWo8YSA8x3DXCBUW7veesxacvKx19dMv7wTMg' |
---|
| 6 | + | if ((size(i.payments) == 0)) |
---|
| 7 | + | then throw("Payment must be attached") |
---|
| 8 | + | else { |
---|
| 9 | + | let p = i.payments[0] |
---|
| 10 | + | match p.assetId { |
---|
| 11 | + | case assetId: ByteVector => |
---|
| 12 | + | if ((assetId == acceptableAssetId)) |
---|
| 13 | + | then (p.amount >= 500000000) |
---|
| 14 | + | else false |
---|
| 15 | + | case _ => |
---|
| 16 | + | (p.amount >= 100000000) |
---|
| 17 | + | } |
---|
| 18 | + | } |
---|
| 19 | + | } |
---|
| 20 | + | |
---|
| 21 | + | |
---|
| 22 | + | @Callable(i) |
---|
| 23 | + | func call () = if (isPaymentOk(i)) |
---|
| 24 | + | then throw("OK") |
---|
| 25 | + | else throw("Wrong") |
---|
| 26 | + | |
---|
| 27 | + | |
---|