tx · CEdnnQ5t29abFP7Ym2YHfLS3Rmfz4xAR6LRhk14PygB8 3N5avGf1Wr9gmTPHstXo1CECppRgXEbTj8j: -0.01000000 Waves 2022.11.18 14:52 [2322517] smart account 3N5avGf1Wr9gmTPHstXo1CECppRgXEbTj8j > SELF 0.00000000 Waves
{ "type": 13, "id": "CEdnnQ5t29abFP7Ym2YHfLS3Rmfz4xAR6LRhk14PygB8", "fee": 1000000, "feeAssetId": null, "timestamp": 1668772347599, "version": 2, "chainId": 84, "sender": "3N5avGf1Wr9gmTPHstXo1CECppRgXEbTj8j", "senderPublicKey": "4kBZJBZZeh6bSRrKKgJcTzRaat82QWu7Wn81HDDJiXd7", "proofs": [ "3ASgbZ9UHZUmowJw5twC5dVXdxpdBXh2QemrExhKm84JZnXxUU5pwHDA17pGo4sft7iWQnB1MGeo8QrEJGAy7sAj" ], "script": "base64:BgIECAISAAIABHBvb2wJAQdBZGRyZXNzAQEaAVTB2KtcEnjjNQua4HsTe+ug8V5VbdVon1QACWxwQXNzZXRJZAEg1QqSd49yCESYyQ038h6Ac2KKWasn5pt4QZ1uwfTeInYBAWkBBHRlc3QABAplbWl0QW1vdW50CgABQAkA/AcEBQRwb29sAglwdXRPbmVUa24JAMwIAgAACQDMCAIHBQNuaWwIBQFpCHBheW1lbnRzAwkAAQIFAUACA0ludAUBQAkAAgEJAKwCAgkAAwEFAUACGCBjb3VsZG4ndCBiZSBjYXN0IHRvIEludAMJAAACBQplbWl0QW1vdW50BQplbWl0QW1vdW50BAlvdXRBbW91bnQKAAFACQD8BwQFBHBvb2wCCWdldE9uZVRrbgkAzAgCAgVXQVZFUwkAzAgCAAAFA25pbAkAzAgCCQEPQXR0YWNoZWRQYXltZW50AgUJbHBBc3NldElkBQplbWl0QW1vdW50BQNuaWwDCQABAgUBQAIDSW50BQFACQACAQkArAICCQADAQUBQAIYIGNvdWxkbid0IGJlIGNhc3QgdG8gSW50AwkAAAIFCW91dEFtb3VudAUJb3V0QW1vdW50CQCUCgIFA25pbAUEdW5pdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgDm/8os", "height": 2322517, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 6BuK9gpVA4GnMrzm3owkDVkxhKkR4qetgmidQEev8WJH Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let pool = Address(base58'3N7b3kPunHUXhZp1vMG9NhPMARNEprCMWxT') | |
5 | + | ||
6 | + | let lpAssetId = base58'FLdC14nUVRyiSYjVrMo3X4g8rXQjLbNRaGAyQAm8V68V' | |
7 | + | ||
8 | + | @Callable(i) | |
9 | + | func test () = { | |
10 | + | let emitAmount = { | |
11 | + | let @ = invoke(pool, "putOneTkn", [0, false], i.payments) | |
12 | + | if ($isInstanceOf(@, "Int")) | |
13 | + | then @ | |
14 | + | else throw(($getType(@) + " couldn't be cast to Int")) | |
15 | + | } | |
16 | + | if ((emitAmount == emitAmount)) | |
17 | + | then { | |
18 | + | let outAmount = { | |
19 | + | let @ = invoke(pool, "getOneTkn", ["WAVES", 0], [AttachedPayment(lpAssetId, emitAmount)]) | |
20 | + | if ($isInstanceOf(@, "Int")) | |
21 | + | then @ | |
22 | + | else throw(($getType(@) + " couldn't be cast to Int")) | |
23 | + | } | |
24 | + | if ((outAmount == outAmount)) | |
25 | + | then $Tuple2(nil, unit) | |
26 | + | else throw("Strict value is not equal to itself.") | |
27 | + | } | |
28 | + | else throw("Strict value is not equal to itself.") | |
29 | + | } | |
30 | + | ||
31 | + |
github/deemru/w8io/169f3d6 25.53 ms ◑