tx · HjLZDDLyYqxWA8WU53Yp8Hi68dzfUD3aLi2DFPRwX6he
3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo: -0.01400000 Waves
2021.10.09 08:03 [1738471] smart account 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo > SELF 0.00000000 Waves
{
"type": 13,
"id": "HjLZDDLyYqxWA8WU53Yp8Hi68dzfUD3aLi2DFPRwX6he",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1633766697166,
"version": 2,
"chainId": 84,
"sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo",
"senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x",
"proofs": [
"3qH2dhNrrCuxn9zuDABPzjXTPdgQvz993oYcpxd9k5c2XA5jecvWChtSZEKyw4tqW3UiM9ZkCZiwsSLo9LJjAPqc"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAACQAAAAALQ09ERUFzc2V0SUQBAAAAINAEYRpFnLQZXHk7APbo5tWij1YQ2cG3R/UN12TTTH73AAAAAAdXZWVrMFRTAAAAAXxnf8gAAAAAAAdvbmVob3VyAAAAAAAANu6AAAAAAAZvbmVkYXkAAAAAAAUmXAAAAAAAB29uZXdlZWsAAAAAACQMhAAAAAAACG9uZW1vbnRoAAAAAACcv5BAAAAAAA5TdGFydEluZmxhdGlvbgkAAGwAAAAGAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAACBQAAAAJVUAAAAAAKRmVlQWRkcmVzcwEAAAAgUoPZoIvXkJI7M+XgQERyG3Ox4PxeH5gdLMWeskjH4iAAAAAACmRldkFkZHJlc3MBAAAAIHE/Oe1BrsJepSkes1ESh96Qyq2U5VDLF1kF2MXI1ngbAAAAAQAAAAFpAQAAAAVDbGFpbQAAAAAEAAAAA3BtdAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAtDT0RFQXNzZXRJRAkAAAIAAAABCQABLAAAAAICAAAAKEluY29ycmVjdCBhc3NldCBhdHRhY2hlZCwgcGxlYXNlIGF0dGFjaCAJAAJYAAAAAQUAAAALQ09ERUFzc2V0SUQDCQAAZgAAAAIAAAAAAABMS0AIBQAAAANwbXQAAAAGYW1vdW50CQAAAgAAAAECAAAAMlBsZWFzZSBBdHRhY2ggbWluaW11bSAwLjA1IFROIFRvIElzc3VlIENPREUgQXNzZXQuAwkAAGYAAAACBQAAAAdXZWVrMFRTCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAqREFwcCBpcyBOb3QgU3RhcnRlZCBZZXQgcGxlYXNlIFdhaXQgdW50aWwgCQABpAAAAAEJAABpAAAAAgkAAGUAAAACBQAAAAdXZWVrMFRTCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAAAAAAAAADqYAIAAAAIIE1pbnV0ZXMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACUluZmxhdGlvbgUAAAAOU3RhcnRJbmZsYXRpb24FAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5uf7uvA==",
"height": 1738471,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 3stDvzzk5umsmBptDpSfBhtPkNiKv5wjhSov5TwA39YK
Next: 2VpcP9ovu63xsx6aXAjPm9uQBf4tXLXSyRsazPkmofuS
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let CODEAssetID = base58'F11g74azdw3SZN83raygbu9useimfTwSQ7HmTLggAq26' |
---|
| 5 | + | |
---|
| 6 | + | let Week0TS = 1633824000000 |
---|
5 | 7 | | |
---|
6 | 8 | | let onehour = 3600000 |
---|
7 | 9 | | |
---|
|
25 | 27 | | then throw(("Incorrect asset attached, please attach " + toBase58String(CODEAssetID))) |
---|
26 | 28 | | else if ((5000000 > pmt.amount)) |
---|
27 | 29 | | then throw("Please Attach minimum 0.05 TN To Issue CODE Asset.") |
---|
28 | | - | else [IntegerEntry("Inflation", StartInflation)] |
---|
| 30 | + | else if ((Week0TS > lastBlock.timestamp)) |
---|
| 31 | + | then throw((("DApp is Not Started Yet please Wait until " + toString(((Week0TS - lastBlock.timestamp) / 60000))) + " Minutes")) |
---|
| 32 | + | else [IntegerEntry("Inflation", StartInflation)] |
---|
29 | 33 | | } |
---|
30 | 34 | | |
---|
31 | 35 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let CODEAssetID = base58'F11g74azdw3SZN83raygbu9useimfTwSQ7HmTLggAq26' |
---|
| 5 | + | |
---|
| 6 | + | let Week0TS = 1633824000000 |
---|
5 | 7 | | |
---|
6 | 8 | | let onehour = 3600000 |
---|
7 | 9 | | |
---|
8 | 10 | | let oneday = 86400000 |
---|
9 | 11 | | |
---|
10 | 12 | | let oneweek = 604800000 |
---|
11 | 13 | | |
---|
12 | 14 | | let onemonth = 2629800000 |
---|
13 | 15 | | |
---|
14 | 16 | | let StartInflation = pow(10, 0, 3, 0, 2, UP) |
---|
15 | 17 | | |
---|
16 | 18 | | let FeeAddress = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR' |
---|
17 | 19 | | |
---|
18 | 20 | | let devAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene' |
---|
19 | 21 | | |
---|
20 | 22 | | @Callable(i) |
---|
21 | 23 | | func Claim () = { |
---|
22 | 24 | | let pmt = value(i.payments[0]) |
---|
23 | 25 | | let currentKey = toBase58String(i.caller.bytes) |
---|
24 | 26 | | if ((pmt.assetId != CODEAssetID)) |
---|
25 | 27 | | then throw(("Incorrect asset attached, please attach " + toBase58String(CODEAssetID))) |
---|
26 | 28 | | else if ((5000000 > pmt.amount)) |
---|
27 | 29 | | then throw("Please Attach minimum 0.05 TN To Issue CODE Asset.") |
---|
28 | | - | else [IntegerEntry("Inflation", StartInflation)] |
---|
| 30 | + | else if ((Week0TS > lastBlock.timestamp)) |
---|
| 31 | + | then throw((("DApp is Not Started Yet please Wait until " + toString(((Week0TS - lastBlock.timestamp) / 60000))) + " Minutes")) |
---|
| 32 | + | else [IntegerEntry("Inflation", StartInflation)] |
---|
29 | 33 | | } |
---|
30 | 34 | | |
---|
31 | 35 | | |
---|
32 | 36 | | @Verifier(tx) |
---|
33 | 37 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
34 | 38 | | |
---|