tx · 44vX1DNTB2L3omWZXCSFM5NzGpcrML52b9H7DpfVp42H 3MppNCm5DNcq9NGSEd8qcwdwebmnhEiYE4o: -0.01000000 Waves 2023.01.30 14:29 [2427645] smart account 3MppNCm5DNcq9NGSEd8qcwdwebmnhEiYE4o > SELF 0.00000000 Waves
{ "type": 13, "id": "44vX1DNTB2L3omWZXCSFM5NzGpcrML52b9H7DpfVp42H", "fee": 1000000, "feeAssetId": null, "timestamp": 1675078223906, "version": 2, "chainId": 84, "sender": "3MppNCm5DNcq9NGSEd8qcwdwebmnhEiYE4o", "senderPublicKey": "5mRitb3ddKjtCqYvL1wanLFrri8MuS5uK4n2G1bHP1Eu", "proofs": [ "22zLV9RATqSDh9oCXzWESp6joc5yiTDPvpyemuSbexcp21zMAbFJb1TgWYx6TjjceGYkDfDr8dxgQjyWviBac7xy" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAACwAAAAAEdXNkbgEAAAAgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQAAAAACHVzZG5UZXN0AgAAAB1TdWNjZXNmdWxseSBkZXRlcm1pbmVkIHRjaSBpZAAAAAAFd2F2ZXMBAAAABBOr2TMAAAAACXdhdmVzVGVzdAIAAAAdU3VjY2VzZnVsbHkgZGV0ZXJtaW5lZCB0Y2kgaWQAAAAACnVzZGNVc2RuTFABAAAAIANpAfwbCpgKiM2P/hFZhYUmkTKzWpL8JulIXdOf3lx2AAAAAA11c2RjVXNkbkxQVENJAQAAACD2Ajfd05/vhkUvXCNHD5Vf0TptoSvCp7SbVEEHUvVuxgAAAAAKdXNkY1VzZHRMUAEAAAAgxvikdBtWSFYQn5B+wjP0MWuLBEosK/2ZS4f1hZt85IwAAAAADXVzZGNVc2R0TFBUQ0kBAAAAIALGhXwESzPH4u+HZ4dS+1WC/bPfhCO2oFrFNd3PV0r+AAAAAAxwdXp6bGVVc2RuTFABAAAAIMMzxnTOI6qkIt9JJOXEmWt4BLB3VoJ0/7jRHUqNHNGeAAAAAA9wdXp6bGVVc2RuTFBUQ0kBAAAAILyU+s8HBwEdV39jR5qmDf31BdfGxHvOc1pvfCmSiEe1AQAAAAhnZXRUY2lJZAAAAAEAAAACaWQDCQAAAAAAAAIFAAAAAmlkBQAAAAR1c2RuBQAAAAh1c2RuVGVzdAMJAAAAAAAAAgUAAAACaWQFAAAABXdhdmVzBQAAAAl3YXZlc1Rlc3QJAAACAAAAAQIAAAANaW52YWxpZCBhc3NldAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAB2Fzc2V0SWQICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQEAAAACXBtdEFtb3VudAgJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAAV0Y2lJZAkBAAAACGdldFRjaUlkAAAAAQUAAAAHYXNzZXRJZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAR0ZXN0BQAAAAV0Y2lJZAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmObyAO", "height": 2427645, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: EKg8zNRJquvz1sG88CqBp5aDrn4sJgFG7ui7QsWg2fKe Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let usdn = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
5 | + | ||
6 | + | let usdnTest = "Succesfully determined tci id" | |
7 | + | ||
8 | + | let waves = base58'WAVES' | |
9 | + | ||
10 | + | let wavesTest = "Succesfully determined tci id" | |
11 | + | ||
12 | + | let usdcUsdnLP = base58'EK6N7S38xbtBT3SxAqoGdDLCiX6rojX6G169CnSyuE5' | |
13 | + | ||
14 | + | let usdcUsdnLPTCI = base58'HZKFpNfyPG5gt4D6Nfy1zQSg2Ptmqv932GjNTCyBEeKP' | |
15 | + | ||
16 | + | let usdcUsdtLP = base58'EPhdEfmQaNcHyvDmRGhnLhgcJtKZ2a4k3ZBmKWtAEWyH' | |
17 | + | ||
18 | + | let usdcUsdtLPTCI = base58'BqPYkaiz7Le6fFu1rjZ54anrpT57EpvyugZCUqrsjXj' | |
19 | + | ||
20 | + | let puzzleUsdnLP = base58'E8zHu33GfcNyGLypX77gZiUXfvuZQeaYmiEfsy7VYNwP' | |
21 | + | ||
22 | + | let puzzleUsdnLPTCI = base58'Dh9QXSSABE5V6aRfu3mCbDAUokbpE7ER7pbZV6cvyg1A' | |
23 | + | ||
24 | + | func getTciId (id) = if ((id == usdn)) | |
25 | + | then usdnTest | |
26 | + | else if ((id == waves)) | |
27 | + | then wavesTest | |
28 | + | else throw("invalid asset") | |
29 | + | ||
30 | + | ||
31 | + | @Callable(i) | |
32 | + | func deposit () = { | |
33 | + | let assetId = i.payments[0].assetId | |
34 | + | let pmtAmount = value(i.payments[0]).amount | |
35 | + | let tciId = getTciId(assetId) | |
36 | + | [StringEntry("test", tciId)] | |
37 | + | } | |
38 | + | ||
39 | + | ||
40 | + | @Verifier(tx) | |
41 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
42 | + |
github/deemru/w8io/026f985 16.78 ms ◑