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