tx · EamjdpPJBpjpX3gRm3DL1m1LwzCRzwBE1GxHkMtnE7zQ 3MxW2aG6PcdZeNjj1DuzGSbmWoy2BDvmtSD: -0.01000000 Waves 2024.10.26 16:49 [3343889] smart account 3MxW2aG6PcdZeNjj1DuzGSbmWoy2BDvmtSD > SELF 0.00000000 Waves
{ "type": 13, "id": "EamjdpPJBpjpX3gRm3DL1m1LwzCRzwBE1GxHkMtnE7zQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1729950560077, "version": 2, "chainId": 84, "sender": "3MxW2aG6PcdZeNjj1DuzGSbmWoy2BDvmtSD", "senderPublicKey": "HtED8Ks6yPKYzEnXYAoLvskVyZuFW3YcZH8JF5NWbMvb", "proofs": [ "4A5JVhfERvFyHvR4vNds8qQvGJWSio4KtqkWkeQ23MNnH43oqreAqNyh4HLkNuoyJUFxfiRp6X2WKP1eu4um224E" ], "script": "base64:AAIFAAAAAAAAAA4IAhIECgIICBIECgIICAAAAAIAAAAADEJBSV9DT05UUkFDVAIAAAAjM045dEtpeHpxVFlXbkVYUXhyRFE1cEJUR3ZRZDZzRnN2bVYAAAAADEJBSV9BU1NFVF9JRAEAAAAgk+FyOHEEm2rommMfBCS3ZFOXLD68ZguDdK9ouySN4kIAAAACAAAAAWkBAAAAEGdldEFuc3dlckZvckNoYXQAAAACAAAABmNoYXRJZAAAAANjaWQEAAAAEG51bWJlck9mUGF5bWVudHMJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMDCQEAAAACIT0AAAACBQAAABBudW1iZXJPZlBheW1lbnRzAAAAAAAAAAABCQAAAgAAAAECAAAAElBheW1lbnQgbmVjZXNzYXJ5IQQAAAAHcGF5bWVudAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAADZmVlCAUAAAAHcGF5bWVudAAAAAZhbW91bnQEAAAACmZlZUFzc2V0SWQIBQAAAAdwYXltZW50AAAAB2Fzc2V0SWQEAAAABm1pbkZlZQQAAAAHJG1hdGNo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AGdGFza0lkBQAAAAZjaGF0SWQFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABaQEAAAAIY2FsbGJhY2sAAAACAAAABnRhc2tJZAAAAANjaWQEAAAABmNoYXRJZAQAAAAHJG1hdGNoMAkABCIAAAABBQAAAAZ0YXNrSWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABcwUAAAAHJG1hdGNoMAUAAAABcwkAAAIAAAABAgAAAB5DaGF0IElEIGZvciB0YXNrIGlkIG5vdCBmb3VuZCEJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACBQAAAAZjaGF0SWQCAAAAB19sYXRlc3QFAAAAA2NpZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIFAAAABmNoYXRJZAIAAAAHX3N0YXR1cwIAAAAEZG9uZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnbCtMF", "height": 3343889, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 52J27mwPQxE6zAUGtd8E4ipsnPnrFgCXyj28vbyNo7vL Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV" | |
5 | + | ||
6 | + | let b = base58'AxGKQRxKo4F2EbhrRq6N2tdLsxtMnpzQsS4QemV6V1W1' | |
7 | + | ||
8 | + | @Callable(c) | |
9 | + | func getAnswerForChat (d,e) = { | |
10 | + | let f = size(c.payments) | |
11 | + | if ((f != 1)) | |
12 | + | then throw("Payment necessary!") | |
13 | + | else { | |
14 | + | let g = c.payments[0] | |
15 | + | let h = g.amount | |
16 | + | let i = g.assetId | |
17 | + | let j = { | |
18 | + | let k = getInteger(Address(fromBase58String(a)), "price_tictactoe") | |
19 | + | if ($isInstanceOf(k, "Int")) | |
20 | + | then { | |
21 | + | let l = k | |
22 | + | l | |
23 | + | } | |
24 | + | else 0 | |
25 | + | } | |
26 | + | if (if ((i != b)) | |
27 | + | then true | |
28 | + | else (j > h)) | |
29 | + | then throw("Payment of the minimal BAI amount necessary!") | |
30 | + | else { | |
31 | + | let m = invoke(Address(fromBase58String(a)), "registerTaskCallback", [e, "fullchatgpt", "callback"], [AttachedPayment(b, 10000000)]) | |
32 | + | if ((m == m)) | |
33 | + | then { | |
34 | + | let n = { | |
35 | + | let k = m | |
36 | + | if ($isInstanceOf(k, "String")) | |
37 | + | then { | |
38 | + | let o = k | |
39 | + | o | |
40 | + | } | |
41 | + | else throw("Unknown task id!") | |
42 | + | } | |
43 | + | [StringEntry((d + "_latest"), e), StringEntry((d + "_status"), "waiting"), StringEntry(n, d)] | |
44 | + | } | |
45 | + | else throw("Strict value is not equal to itself.") | |
46 | + | } | |
47 | + | } | |
48 | + | } | |
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | @Callable(c) | |
53 | + | func callback (n,e) = { | |
54 | + | let d = { | |
55 | + | let k = getString(n) | |
56 | + | if ($isInstanceOf(k, "String")) | |
57 | + | then { | |
58 | + | let o = k | |
59 | + | o | |
60 | + | } | |
61 | + | else throw("Chat ID for task id not found!") | |
62 | + | } | |
63 | + | [StringEntry((d + "_latest"), e), StringEntry((d + "_status"), "done")] | |
64 | + | } | |
65 | + | ||
66 | + | ||
67 | + | @Verifier(p) | |
68 | + | func q () = sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey) | |
69 | + |
github/deemru/w8io/fabc49c 10.30 ms ◑