tx · Cmhd1rvHdeMeNGyPaUiVmP1iQLd4W8XNA1UDuhHjR5iY 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA: -0.01200000 Waves 2023.08.02 08:21 [2692523] smart account 3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA > SELF 0.00000000 Waves
{ "type": 13, "id": "Cmhd1rvHdeMeNGyPaUiVmP1iQLd4W8XNA1UDuhHjR5iY", "fee": 1200000, "feeAssetId": null, "timestamp": 1690953725101, "version": 2, "chainId": 84, "sender": "3N4ynz2uyA7cErymQd46zgwVJEEfXYDRXtA", "senderPublicKey": "CiRX9ubobzbD36ZwTyuBFiPnPkmzMQ7GDsF3hMoVbcVR", "proofs": [ "4xxM4vVXaqN1TWA2xZ69aEaYopPmNZ5VYnwcvL1eui8uA3MZJrBGmJuYX6C21tzk9kwfR8hxRjGd8cq4yAR1z8uN" ], "script": "base64:AAIEAAAAAAAAAAsIAhIHCgUBAQEBAQAAAAoAAAAAI3ByZXNhbGVfdGltZXN0YW1wX2NvbnRyb2xsZXJfcHVia2V5AQAAACDjrdey1Io21qI8AxObYBZMNWPHMCK947HpXHsKae68IwAAAAASY29udHJvbGxlcl9hZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAACNwcmVzYWxlX3RpbWVzdGFtcF9jb250cm9sbGVyX3B1YmtleQAAAAAMbGF1bmNoX2Vycm9yAgAAACZEYXBwIHdpbGwgc3RhcnQgUHJlLVNhbGUgYXQgVGltZXN0YW1wIAAAAAADbXNnAgAAADQ8aDE+WW91IFRyYW5zYWN0aW9uIFN1Ym1pdHRlZCBTdWNjZXNzZnVsbHkhPC9oMT48YnI+AAAAAAlweW10ZXJyb3ICAAAAL0RBcHAgTmVlZCAwLjEgV0FWRVMgVG9rZW4gYXMgQXR0YWNoIHBheW1lbnRbMV0uAAAAAAd0c2Vycm9yAgAAADBFbmQgVGltZXN0YW1wIGNhbid0IGJlIGxlc3MgdGhhbiBTdGFydCB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RW5kVFMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAA1jdXJyZW50X3JvdW5kAgAAAAxfVG9rZW5fUHJpY2UFAAAAC1Rva2VuX1ByaWNlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAGkAAAAAQUAAAANY3VycmVudF9yb3VuZAIAAAAQX1NvZnRfQ2FwX0Ftb3VudAUAAAAPU29mdF9DYXBfQW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAGkAAAAAQUAAAANY3VycmVudF9yb3VuZAIAAAAPSGFyZF9DYXBfQW1vdW50BQAAAA9IYXJkX0NhcF9BbW91bnQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5SOVU5g==", "height": 2692523, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CjE4Ht59wiHZNFPeK3LTuc2JB8uhyC7jbnVZfauqpvQu Next: 22kwDgFut2xf45SZZrpV4zfDMBX7fxq9Y96ACE3zNdp7 Diff:
Old | New | Differences | |
---|---|---|---|
37 | 37 | let v = (s + 1) | |
38 | 38 | if ((k.caller != b)) | |
39 | 39 | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
40 | - | else if (( | |
41 | - | then throw( | |
42 | - | else if (( | |
43 | - | then throw( | |
44 | - | else if (( | |
45 | - | then throw( | |
46 | - | else if (( | |
47 | - | then throw( | |
40 | + | else if ((size(toString(l)) != 13)) | |
41 | + | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
42 | + | else if ((size(toString(m)) != 13)) | |
43 | + | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
44 | + | else if ((r >= q)) | |
45 | + | then throw(f) | |
46 | + | else if ((o > p)) | |
47 | + | then throw(g) | |
48 | 48 | else [IntegerEntry((toString(v) + "_Presale_Start_TimeStamp"), q), IntegerEntry((toString(v) + "_Presale_End_TimeStamp"), r), IntegerEntry((toString(v) + "_Token_Price"), n), IntegerEntry((toString(v) + "_Soft_Cap_Amount"), o), IntegerEntry((toString(v) + "Hard_Cap_Amount"), p)] | |
49 | 49 | } | |
50 | 50 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr' | |
5 | 5 | ||
6 | 6 | let b = addressFromPublicKey(a) | |
7 | 7 | ||
8 | 8 | let c = "Dapp will start Pre-Sale at Timestamp " | |
9 | 9 | ||
10 | 10 | let d = "<h1>You Transaction Submitted Successfully!</h1><br>" | |
11 | 11 | ||
12 | 12 | let e = "DApp Need 0.1 WAVES Token as Attach payment[1]." | |
13 | 13 | ||
14 | 14 | let f = "End Timestamp can't be less than Start Timestamp" | |
15 | 15 | ||
16 | 16 | let g = "Soft Cap can't be more than Hard Cap." | |
17 | 17 | ||
18 | 18 | let h = "Min. 0.1 WAVES required on Your Address, Please hold min. 0.1 WAVES on your Address." | |
19 | 19 | ||
20 | 20 | let i = "Incorrect asset attach, please attach WAVES Only." | |
21 | 21 | ||
22 | 22 | let j = "Pre-Sale Round is over for this Dapp." | |
23 | 23 | ||
24 | 24 | @Callable(k) | |
25 | 25 | func SetPreSaleParameters (l,m,n,o,p) = { | |
26 | 26 | let q = l | |
27 | 27 | let r = m | |
28 | 28 | let s = { | |
29 | 29 | let t = getInteger(this, "Current_Funding_Round") | |
30 | 30 | if ($isInstanceOf(t, "Int")) | |
31 | 31 | then { | |
32 | 32 | let u = t | |
33 | 33 | u | |
34 | 34 | } | |
35 | 35 | else 0 | |
36 | 36 | } | |
37 | 37 | let v = (s + 1) | |
38 | 38 | if ((k.caller != b)) | |
39 | 39 | then throw((("This Address is not Authorized. Only " + toString(b)) + " is Authorized Address to Sign it.")) | |
40 | - | else if (( | |
41 | - | then throw( | |
42 | - | else if (( | |
43 | - | then throw( | |
44 | - | else if (( | |
45 | - | then throw( | |
46 | - | else if (( | |
47 | - | then throw( | |
40 | + | else if ((size(toString(l)) != 13)) | |
41 | + | then throw("Start Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
42 | + | else if ((size(toString(m)) != 13)) | |
43 | + | then throw("End Timestamp is Wrong. Please Enter a Valid Timestamp. Probably you entered an Timestamp less than 13 Chars.") | |
44 | + | else if ((r >= q)) | |
45 | + | then throw(f) | |
46 | + | else if ((o > p)) | |
47 | + | then throw(g) | |
48 | 48 | else [IntegerEntry((toString(v) + "_Presale_Start_TimeStamp"), q), IntegerEntry((toString(v) + "_Presale_End_TimeStamp"), r), IntegerEntry((toString(v) + "_Token_Price"), n), IntegerEntry((toString(v) + "_Soft_Cap_Amount"), o), IntegerEntry((toString(v) + "Hard_Cap_Amount"), p)] | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | @Verifier(w) | |
53 | 53 | func x () = sigVerify(w.bodyBytes, w.proofs[0], w.senderPublicKey) | |
54 | 54 |
github/deemru/w8io/169f3d6 32.06 ms ◑