tx · CTMNAAjhqwv4DB3BgGCDcxqSFPxWHAQKSbHbxeJquJou

3MovRKHzcaxx3B5Tcb5KiLNiZ5gabqh13ZT:  -0.00200000 Waves

2022.09.12 23:57 [2226405] smart account 3MovRKHzcaxx3B5Tcb5KiLNiZ5gabqh13ZT > SELF 0.00000000 Waves

{ "type": 13, "id": "CTMNAAjhqwv4DB3BgGCDcxqSFPxWHAQKSbHbxeJquJou", "fee": 200000, "feeAssetId": null, "timestamp": 1663016268554, "version": 2, "chainId": 84, "sender": "3MovRKHzcaxx3B5Tcb5KiLNiZ5gabqh13ZT", "senderPublicKey": "BuMZnGzFnTR4casvcVSFibwoXdtFMySvF3Y4RhtTh3gq", "proofs": [ "23mFsdispY9WkMXUGftM2VaEApRfJiycT32gY167ArMWrfLZTz126CMgg1ZFTZvsuiPoU5tM7vvocqg4dpyJ1bBo" ], "script": "base64:BgIRCAISABIDCgEBEgYKBAQCAQgGABhnbG9iYWxPbmJvYXJpbmdBbW91bnRLZXkCF2dsb2JhbF9vbmJvYXJkaW5nQW1vdW50ARNvbmJvYXJkaW5nU3RhdHVzS2V5AQZudW1iZXIJAKwCAgkArAICAgtvbmJvYXJkaW5nXwkApAMBBQZudW1iZXICB19zdGF0dXMBF3VzZXJPbmJvYXJkaW5nQW1vdW50S2V5AQR1c2VyCQCsAgIFBHVzZXICEV9vbmJvYXJkaW5nQW1vdW50ARF1c2VyT25ib2FyZGluZ0tleQIEdXNlcgZudW1iZXIJAKwCAgkArAICCQCsAgIJAKwCAgILb25ib2FyZGluZ18FBHVzZXICAV8JAKQDAQUGbnVtYmVyAgVfZGF0YQENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAXgFByRtYXRjaDAFAXgAAAEVY2FsY3VsYXRlU3Rha2VkQW1vdW50AQR1c2VyAJWa7zoDAWkBDWFkZE9uYm9hcmRpbmcABAR1c2VyCQClCAEIBQFpB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8CBXdvcmxkBQNuaWwAkDW4QA==", "height": 2226405, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GPhLQbfcy2motf11BbC2Z2eHwbRvD23Bu7HoNefLKbLQ Next: pytV4bVnNbkQec51rSUc4HXdLWR36G1rcZaqCBm7Q1G Diff:
OldNewDifferences
2424
2525
2626 @Callable(i)
27-func addOnboarding (user) = {
27+func addOnboarding () = {
28+ let user = toString(i.caller)
2829 let totalOnboardings = (tryGetInteger(globalOnboaringAmountKey) + 1)
2930 let userOnboarings = (tryGetInteger(userOnboardingAmountKey(user)) + 1)
3031 let userOnboarding = (("{\"startHeight\": 3291790, \"finishHeight\": 3307630, \"startAmount\": 25568667009, \"finishAmount\": 27199947964, \"premium\": 638, \"assetId\": \"WAVES\", \"globalNum\": " + toString(totalOnboardings)) + "}")
3435
3536
3637 @Callable(i)
37-func finishOnboarding () = {
38- let totalOnboardings = tryGetInteger(globalOnboaringAmountKey)
39-[StringEntry(onboardingStatusKey(totalOnboardings), "finished")]
40- }
38+func finishOnboarding (number) = [StringEntry(onboardingStatusKey(number), "finished")]
4139
4240
4341
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let globalOnboaringAmountKey = "global_onboardingAmount"
55
66 func onboardingStatusKey (number) = (("onboarding_" + toString(number)) + "_status")
77
88
99 func userOnboardingAmountKey (user) = (user + "_onboardingAmount")
1010
1111
1212 func userOnboardingKey (user,number) = (((("onboarding_" + user) + "_") + toString(number)) + "_data")
1313
1414
1515 func tryGetInteger (key) = match getInteger(this, key) {
1616 case x: Int =>
1717 x
1818 case _ =>
1919 0
2020 }
2121
2222
2323 func calculateStakedAmount (user) = 123456789
2424
2525
2626 @Callable(i)
27-func addOnboarding (user) = {
27+func addOnboarding () = {
28+ let user = toString(i.caller)
2829 let totalOnboardings = (tryGetInteger(globalOnboaringAmountKey) + 1)
2930 let userOnboarings = (tryGetInteger(userOnboardingAmountKey(user)) + 1)
3031 let userOnboarding = (("{\"startHeight\": 3291790, \"finishHeight\": 3307630, \"startAmount\": 25568667009, \"finishAmount\": 27199947964, \"premium\": 638, \"assetId\": \"WAVES\", \"globalNum\": " + toString(totalOnboardings)) + "}")
3132 [IntegerEntry(globalOnboaringAmountKey, totalOnboardings), StringEntry(onboardingStatusKey(totalOnboardings), "started"), IntegerEntry(userOnboardingAmountKey(user), userOnboarings), StringEntry(userOnboardingKey(user, userOnboarings), userOnboarding)]
3233 }
3334
3435
3536
3637 @Callable(i)
37-func finishOnboarding () = {
38- let totalOnboardings = tryGetInteger(globalOnboaringAmountKey)
39-[StringEntry(onboardingStatusKey(totalOnboardings), "finished")]
40- }
38+func finishOnboarding (number) = [StringEntry(onboardingStatusKey(number), "finished")]
4139
4240
4341
4442 @Callable(i)
4543 func args (bool,byteVector,int,string) = [StringEntry("hello", "world")]
4644
4745

github/deemru/w8io/169f3d6 
45.18 ms