tx · 3SRauVH1pf179SP5SMvEQaKjeDfEqPp8SPQbCbdjNAvh
3N2xqkdTrWSis1QWQnpyeJyL95qjkUyP7Ve: -0.01400000 Waves
2021.09.12 00:17 [1698920] smart account 3N2xqkdTrWSis1QWQnpyeJyL95qjkUyP7Ve > SELF 0.00000000 Waves
{
"type": 13,
"id": "3SRauVH1pf179SP5SMvEQaKjeDfEqPp8SPQbCbdjNAvh",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1631395100109,
"version": 2,
"chainId": 84,
"sender": "3N2xqkdTrWSis1QWQnpyeJyL95qjkUyP7Ve",
"senderPublicKey": "GixVPmDAUorToWCPYCpBKvBFRBc7qtQSXhL8zWJsfnVN",
"proofs": [
"3QW1pDUXkzgNiKyrbaGnt9pU4oYS7rFiX4ELubhzpjMWGKiBLboQT9n1kfm8tA8H92qHwdEvPr9hrXJeJAkGBFJQ"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAAAgAAAAAKTURDQXNzZXRJRAEAAAAg8PqWfCOktYC7c/5YZOoZnKjAIi+gpnpsph7Y6R/RtsAAAAAAC1VTRE5Bc3NldElEAQAAACBbw7ZR480OK0QcFbKDWYG/j8XxofSW0CjrC/Oyqq75nQAAAAEAAAABaQEAAAAHRGVwb3NpdAAAAAEAAAAEZGF5cwQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAR05vIHBheW1lbnQgYXR0YWNoZWQsIFBsZWFzZSBBdHRhY2ggTURDIFRva2VuIGFzIHBlciBUSUVSIGluIHBheW1lbnRbMV0uBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAD21heGltdW1sb2NrZGF5cwAAAAAAAAAAWgQAAAAKbG9ja3N0YXR1cwIAAAAGTE9DS0VEBAAAAAR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fU3RhdHVzX09mXwUAAAAKY3VycmVudEtleQUAAAAKbG9ja3N0YXR1cwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5zgp0xg==",
"height": 1698920,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4QGgk46XDSBRgs5LoqcBm9MsSo4eC3gXYMD52MGwgHuS
Next: 3hY84AMibr8ae7Du87oennf7Wi41ztHeCig3ptKA66eL
Diff:
Old | New | | Differences |
---|
27 | 27 | | else if ((1000000000 > e.amount)) |
---|
28 | 28 | | then throw("Please Attach minimum 10,000 MDC To Achieve SILVER TIER.") |
---|
29 | 29 | | else if ((i >= e.amount)) |
---|
30 | | - | then [StringEntry(("TIER_Of_" + f), "SILVER")] |
---|
| 30 | + | then [StringEntry(("TIER_Of_" + f), "SILVER"), IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), m), StringEntry(("Lock_Status_Of_" + f), h)] |
---|
31 | 31 | | else if ((j >= e.amount)) |
---|
32 | 32 | | then [StringEntry(("TIER_Of_" + f), "GOLD")] |
---|
33 | 33 | | else if ((e.amount >= k)) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'HDgUBQhx8vJY2uUmQPtqzEu6C32Ktx4jAD37aprLKV9Z' |
---|
5 | 5 | | |
---|
6 | 6 | | let b = base58'7BDByxoPpx8gjNfkuBi8h1zBTtg9PrxLvYv3q613CES8' |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(c) |
---|
9 | 9 | | func Deposit (d) = { |
---|
10 | 10 | | let e = if ((size(c.payments) == 1)) |
---|
11 | 11 | | then c.payments[0] |
---|
12 | 12 | | else throw("No payment attached, Please Attach MDC Token as per TIER in payment[1].") |
---|
13 | 13 | | let f = toBase58String(c.caller.bytes) |
---|
14 | 14 | | let g = 90 |
---|
15 | 15 | | let h = "LOCKED" |
---|
16 | 16 | | let i = 499999900000 |
---|
17 | 17 | | let j = 999999900000 |
---|
18 | 18 | | let k = 1000000000000 |
---|
19 | 19 | | let l = 1440 |
---|
20 | 20 | | let m = (l * d) |
---|
21 | 21 | | if ((e.assetId != a)) |
---|
22 | 22 | | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " only.")) |
---|
23 | 23 | | else if ((6 >= d)) |
---|
24 | 24 | | then throw("Choose Locking days in between 7 to 90.") |
---|
25 | 25 | | else if ((d > g)) |
---|
26 | 26 | | then throw("You Entered days greater than 90 please Enter no. of days in between 7 to 90.") |
---|
27 | 27 | | else if ((1000000000 > e.amount)) |
---|
28 | 28 | | then throw("Please Attach minimum 10,000 MDC To Achieve SILVER TIER.") |
---|
29 | 29 | | else if ((i >= e.amount)) |
---|
30 | | - | then [StringEntry(("TIER_Of_" + f), "SILVER")] |
---|
| 30 | + | then [StringEntry(("TIER_Of_" + f), "SILVER"), IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), m), StringEntry(("Lock_Status_Of_" + f), h)] |
---|
31 | 31 | | else if ((j >= e.amount)) |
---|
32 | 32 | | then [StringEntry(("TIER_Of_" + f), "GOLD")] |
---|
33 | 33 | | else if ((e.amount >= k)) |
---|
34 | 34 | | then [StringEntry(("TIER_Of_" + f), "DIAMOND")] |
---|
35 | 35 | | else [IntegerEntry(("Deposit_height_Of_" + f), height), IntegerEntry(("Deposit_Amount_Of_" + f), e.amount), IntegerEntry(("Total_Lock_Blocks_Of_" + f), m), StringEntry(("Lock_Status_Of_" + f), h)] |
---|
36 | 36 | | } |
---|
37 | 37 | | |
---|
38 | 38 | | |
---|
39 | 39 | | @Verifier(n) |
---|
40 | 40 | | func o () = { |
---|
41 | 41 | | let p = n |
---|
42 | 42 | | sigVerify(n.bodyBytes, n.proofs[0], n.senderPublicKey) |
---|
43 | 43 | | } |
---|
44 | 44 | | |
---|