tx · BWNdM2q6vLy8BdZvTE68oKBhHfnqitwFx5kZ7xQ2ZPQY 3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1: -0.01400000 Waves 2022.03.18 13:07 [1969266] smart account 3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1 > SELF 0.00000000 Waves
{ "type": 13, "id": "BWNdM2q6vLy8BdZvTE68oKBhHfnqitwFx5kZ7xQ2ZPQY", "fee": 1400000, "feeAssetId": null, "timestamp": 1647598021246, "version": 2, "chainId": 84, "sender": "3Mqzhyb3ayfeb2bnZzAthD1W8oKsNaw7on1", "senderPublicKey": "Ehngpik6DXwbcV8tpLbd3qBFjChSdW49YqyxinREgabT", "proofs": [ "5hhetyzgVQYPFLAnuZBZSKuhQHQkQ9EeTzacaaTgHrAYq1pRhxAsxcjJ255ENgk81MXXUUnewnsGaqTkUZbUR8ZR" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAABwAAAAAHRGFwcEZlZQAAAAAAAX14QAAAAAAPZ2V0Y3VycmVudHJvdW5kCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAA1jdXJyZW50X3JvdW5kAAAAAAt4VVNEQXNzZXRJRAEAAAAg0Lu/O3QesIxKF0bGFNVbUhIki1aRRKqygJD6isrRyXcAAAAADEZBSVRIQXNzZXRJRAEAAAAAAAAAABFDb2xsZWN0RmVlQWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQEAAAAgUoPZoIvXkJI7M+XgQERyG3Ox4PxeH5gdLMWeskjH4iAAAAAADmZldGNodG90YWx0eG5zBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMCAAAAClRvdGFsX1R4bnMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAAAAAAJdG90YWx0eG5zCQAAZAAAAAIFAAAADmZldGNodG90YWx0eG5z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GVwb3NpdF9BbW91bnRfT2ZfBQAAAApjdXJyZW50S2V5CAUAAAAEcG10MQAAAAZhbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAARQ3VycmVudF9Sb3VuZF9PZl8FAAAACmN1cnJlbnRLZXkFAAAAD2dldGN1cnJlbnRyb3VuZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAAEENsYWltX1N0YXR1c19PZl8FAAAACmN1cnJlbnRLZXkCAAAAB1BFTkRJTkcJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAPTm9fT2ZfRGVwb3NpdHNfBQAAAApjdXJyZW50S2V5BQAAABhTdW1wdXBvZlVzZXJOb09mRGVwb3NpdHMJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAARQ29sbGVjdEZlZUFkZHJlc3MFAAAAB0RhcHBGZWUFAAAAC3hVU0RBc3NldElEBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl7tFn1", "height": 1969266, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 272XAisGhaNdcnXAHxXVkdDh432eSYsi7Szq4L7qTTLC Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let DappFee = 25000000 | |
5 | + | ||
6 | + | let getcurrentround = getIntegerValue(this, "current_round") | |
7 | + | ||
8 | + | let xUSDAssetID = base58'F3or3Nn6NTcSkRvzqtoCoyuCfdqNSuP8rjLboS2AemPL' | |
9 | + | ||
10 | + | let FAITHAssetID = base58'' | |
11 | + | ||
12 | + | let CollectFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR') | |
13 | + | ||
14 | + | let fetchtotaltxns = match getInteger(this, "Total_Txns") { | |
15 | + | case a: Int => | |
16 | + | a | |
17 | + | case _ => | |
18 | + | 0 | |
19 | + | } | |
20 | + | ||
21 | + | let totaltxns = (fetchtotaltxns + 1) | |
22 | + | ||
23 | + | @Callable(i) | |
24 | + | func Deposit () = { | |
25 | + | let pmt1 = if ((size(i.payments) == 1)) | |
26 | + | then i.payments[0] | |
27 | + | else throw((("No Payments Attached Please Attach " + toBase58String(xUSDAssetID)) + " Asset Only.")) | |
28 | + | let maxdepositamt = 1000000000000 | |
29 | + | let currentKey = toBase58String(i.caller.bytes) | |
30 | + | let oneround = 240 | |
31 | + | let fetchtotalusertxns = match getInteger(this, ("Total_UserTxns_" + currentKey)) { | |
32 | + | case a: Int => | |
33 | + | a | |
34 | + | case _ => | |
35 | + | 0 | |
36 | + | } | |
37 | + | let usertotaltxns = (fetchtotalusertxns + 1) | |
38 | + | let UserNoOfDeposits = match getInteger(this, ("No_Of_Deposits_" + currentKey)) { | |
39 | + | case a: Int => | |
40 | + | a | |
41 | + | case _ => | |
42 | + | 0 | |
43 | + | } | |
44 | + | let SumpupofUserNoOfDeposits = (UserNoOfDeposits + 1) | |
45 | + | if ((pmt1.assetId != xUSDAssetID)) | |
46 | + | then throw("Incorrect asset attached, please attach only xUSD AssetID.") | |
47 | + | else if ((499999999 >= pmt1.amount)) | |
48 | + | then throw("Please attach minimum 5xUSD to deposit to enter round.") | |
49 | + | else if ((pmt1.amount > maxdepositamt)) | |
50 | + | then throw("Please attach correct amount in between [5-10000] xUSD.") | |
51 | + | else if ((size(i.payments) > 1)) | |
52 | + | then throw("Two assets attached, Kindly Attach only payment1 = xUSD with in [5-10000] xUSD Range.") | |
53 | + | else if ((UserNoOfDeposits == 1)) | |
54 | + | then throw("You Already participated for an Round, Which has not been settled Yet. Wait until round end and re-enter again.") | |
55 | + | else [IntegerEntry("Total_Txns", totaltxns), IntegerEntry(("Total_UserTxns_" + currentKey), usertotaltxns), IntegerEntry(("Deposit_Amount_Of_" + currentKey), pmt1.amount), IntegerEntry(("Current_Round_Of_" + currentKey), getcurrentround), StringEntry(("Claim_Status_Of_" + currentKey), "PENDING"), IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), ScriptTransfer(CollectFeeAddress, DappFee, xUSDAssetID)] | |
56 | + | } | |
57 | + | ||
58 | + | ||
59 | + | @Verifier(tx) | |
60 | + | func verify () = match tx { | |
61 | + | case _ => | |
62 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
63 | + | } | |
64 | + |
github/deemru/w8io/026f985 14.59 ms ◑