tx · AtTAPrb1nheMJ3j2RZEYz2ZaNX41RNt27zGtQRyUmCWR 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo: -0.01400000 Waves 2021.10.09 16:46 [1738795] smart account 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo > SELF 0.00000000 Waves
{ "type": 13, "id": "AtTAPrb1nheMJ3j2RZEYz2ZaNX41RNt27zGtQRyUmCWR", "fee": 1400000, "feeAssetId": null, "timestamp": 1633787217307, "version": 2, "chainId": 84, "sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo", "senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x", "proofs": [ "DGBK9VKJxppHGcDofWVbLiSvEeMW74dQw6YgqtQiPnvsqG4CV6phmyeRVNGAdamCfUnZjWQdWvsnTQHKLrWL9nK" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAACgAAAAALQ09ERUFzc2V0SUQBAAAAINAEYRpFnLQZXHk7APbo5tWij1YQ2cG3R/UN12TTTH73AAAAAAtTdGFydEhlaWdodAAAAAAAABwPmAAAAAAJYmxvY2tkaWZmCQAAZQAAAAIFAAAABmhlaWdodAUAAAALU3RhcnRIZWlnaHQAAAAAB29uZWhvdXIAAAAAAAA27oAAAAAABm9uZWRheQAAAAAABSZcAAAAAAAHb25ld2VlawAAAAAAJAyEAAAAAAAIb25lbW9udGgAAAAAAJy/kEAAAAAADlN0YXJ0SW5mbGF0aW9uCQAAZAAAAAIJAABpAAAAAgAAAAAAABX5AAkAAGgAAAACCQAAaAAAAAIJAABpAAAAAgAAAAAAAAAAAQAAAAAAAAAFoAUAAAAJYmxvY2tkaWZmAAAAAAAAAAWgAAAAAAAAAAAGAAAAAApGZWVBZGRyZXNzAQAAACBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAAAAAAKZGV2QWRkcmVzcwEAAAAgcT857UGuwl6lKR6zURKH3pDKrZTlUMsXWQXYx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AAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAB21lc3NhZ2UCAAAAJjxoMT5DT0RFIElzc3VlZCBTdWNjZXNzZnVsbHkhPC9oMT48YnI+BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleZU1osY=", "height": 1738795, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2VpcP9ovu63xsx6aXAjPm9uQBf4tXLXSyRsazPkmofuS Next: ErVnoFXwxqn1pWzay1k8UDrR64W4F3if7in7iLW6xQ82 Diff:
Old | New | Differences | |
---|---|---|---|
33 | 33 | else if ((5000000 > pmt.amount)) | |
34 | 34 | then throw("Please Attach minimum 0.05 CODE To Issue CODE Asset.") | |
35 | 35 | else if ((StartHeight > height)) | |
36 | - | then throw((("DApp is Not Started Yet please Wait until " + toString(( | |
36 | + | then throw((("DApp is Not Started Yet please Wait until " + toString((StartHeight - height))) + " blocks")) | |
37 | 37 | else [IntegerEntry("Inflation", StartInflation), StringEntry("message", "<h1>CODE Issued Successfully!</h1><br>")] | |
38 | 38 | } | |
39 | 39 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let CODEAssetID = base58'F11g74azdw3SZN83raygbu9useimfTwSQ7HmTLggAq26' | |
5 | 5 | ||
6 | 6 | let StartHeight = 1839000 | |
7 | 7 | ||
8 | 8 | let blockdiff = (height - StartHeight) | |
9 | 9 | ||
10 | 10 | let onehour = 3600000 | |
11 | 11 | ||
12 | 12 | let oneday = 86400000 | |
13 | 13 | ||
14 | 14 | let oneweek = 604800000 | |
15 | 15 | ||
16 | 16 | let onemonth = 2629800000 | |
17 | 17 | ||
18 | 18 | let StartInflation = ((1440000 / (((1 / 1440) * blockdiff) * 1440)) + 6) | |
19 | 19 | ||
20 | 20 | let FeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR' | |
21 | 21 | ||
22 | 22 | let devAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene' | |
23 | 23 | ||
24 | 24 | @Callable(i) | |
25 | 25 | func Claim () = { | |
26 | 26 | let pmt = value(i.payments[0]) | |
27 | 27 | let currentKey = toBase58String(i.caller.bytes) | |
28 | 28 | let NewCODEToUser = (StartInflation * pmt.amount) | |
29 | 29 | let PreviousIssuedCODE = getIntegerValue(this, "Total_Issued_CODE:") | |
30 | 30 | let TotalIssuedCODE = (PreviousIssuedCODE + NewCODEToUser) | |
31 | 31 | if ((pmt.assetId != CODEAssetID)) | |
32 | 32 | then throw(("Incorrect asset attached, please attach " + toBase58String(CODEAssetID))) | |
33 | 33 | else if ((5000000 > pmt.amount)) | |
34 | 34 | then throw("Please Attach minimum 0.05 CODE To Issue CODE Asset.") | |
35 | 35 | else if ((StartHeight > height)) | |
36 | - | then throw((("DApp is Not Started Yet please Wait until " + toString(( | |
36 | + | then throw((("DApp is Not Started Yet please Wait until " + toString((StartHeight - height))) + " blocks")) | |
37 | 37 | else [IntegerEntry("Inflation", StartInflation), StringEntry("message", "<h1>CODE Issued Successfully!</h1><br>")] | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | @Verifier(tx) | |
42 | 42 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
43 | 43 |
github/deemru/w8io/169f3d6 39.66 ms ◑