tx · 6LJxxk9LVmZM637kDQsjgL9UbVmxwWaRtbYW1k4SSotp
3MyV9Fm9cwW9W68VCGfPvejLujx7xVpJiKW: -0.01400000 Waves
2020.01.04 03:04 [838393] smart account 3MyV9Fm9cwW9W68VCGfPvejLujx7xVpJiKW > SELF 0.00000000 Waves
{
"type": 13,
"id": "6LJxxk9LVmZM637kDQsjgL9UbVmxwWaRtbYW1k4SSotp",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1578096252662,
"version": 1,
"sender": "3MyV9Fm9cwW9W68VCGfPvejLujx7xVpJiKW",
"senderPublicKey": "8zVjiVAuhkkAyQsSHHvjkNNoN8WDKJAEBV5nSpiyyYWr",
"proofs": [
"31dcPdz3E7BDfA1apquNyEMXR3GtTTZzxR8peLEdMAmmHow1So8SWTMjctAqzrSxViwftkqZY21pZ86P7ECRFCcx"
],
"script": "base64:AAIDAAAAAAAAAA4IARIECgIBCBIECgIBCAAAAAYAAAAAEGRhcHBBY291bnRQdWJLZXkBAAAAIFxIRFJtzw8EQGNgJYi+FoqGy/ftVpr8Tfeuof0vU4NYAAAAAAZwYXI3SWQBAAAAIM5YQP2Y4rTFk3fjHMVSaCtBnCyxqxHVfGnKN+eS6UeMAAAAAAZ1c2RuSWQBAAAAICJkPx6+YEbpEWoTE9ymM/4Wfgf5d+mz8hX8mUkqMAo3AAAAAAVidGNJZAEAAAAguec/qo8QJtuj3bookxh1fq0CogDYmuE6CdbFUTcLG40AAAAABmV1cm9JZAEAAAAgksOaihajKoQqnq8MtxuSVjR9ECuhi4KGdaumzXMlMJsAAAAACGNvbXBlTnVtAgAAAAYxMTExMTEAAAACAAAAAWkBAAAAB2RlcG9zaXQAAAACAAAACmNvbXBlU3RhcnQAAAACaWQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAlwYXltZW50SWQIBQAAAANwbXQAAAAHYXNzZXRJZAQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWk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,
"height": 838393,
"spentComplexity": 0
}
View: original | compacted
Prev: GjNKi1PG2RNBCNwvQnYG8hY5R65nXmd6im3r3Yda6LNx
Next: 6DEjRXmCMd8DYiZqmQA4WsQAXF6756XS61FVBcgFXkGB
Diff:
Old | New | | Differences |
---|
11 | 11 | | |
---|
12 | 12 | | let euroId = base58'AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ' |
---|
13 | 13 | | |
---|
| 14 | + | let compeNum = "111111" |
---|
| 15 | + | |
---|
14 | 16 | | @Callable(i) |
---|
15 | 17 | | func deposit (compeStart,id) = { |
---|
16 | 18 | | let pmt = extract(i.payment) |
---|
|
23 | 25 | | 0 |
---|
24 | 26 | | } |
---|
25 | 27 | | let newAmount = (currentAmount + pmt.amount) |
---|
26 | | - | WriteSet([DataEntry(((id + "_") + currentKey), newAmount), DataEntry((((id + "_") + "_compeStart_") + currentKey), compeStart)]) |
---|
| 28 | + | WriteSet([DataEntry(((((id + "_") + compeNum) + "_") + currentKey), newAmount), DataEntry(((((id + "_compeStart_") + compeNum) + "_") + currentKey), compeStart)]) |
---|
27 | 29 | | } |
---|
28 | 30 | | |
---|
29 | 31 | | |
---|
|
31 | 33 | | @Callable(i) |
---|
32 | 34 | | func withdraw (amount,id) = { |
---|
33 | 35 | | let currentKey = toBase58String(i.caller.bytes) |
---|
34 | | - | let compeStart = match getInteger(this, (((id + "_") + "_compeStart_") + currentKey)) { |
---|
| 36 | + | let compeStart = match getInteger(this, ((((id + "_compeStart_") + compeNum) + "_") + currentKey)) { |
---|
35 | 37 | | case a: Int => |
---|
36 | 38 | | a |
---|
37 | 39 | | case _ => |
---|
38 | 40 | | 0 |
---|
39 | 41 | | } |
---|
40 | | - | let currentAmount = match getInteger(this, ((id + "_") + currentKey)) { |
---|
| 42 | + | let currentAmount = match getInteger(this, ((((id + "_") + compeNum) + "_") + currentKey)) { |
---|
41 | 43 | | case a: Int => |
---|
42 | 44 | | a |
---|
43 | 45 | | case _ => |
---|
|
51 | 53 | | else if ((0 > newAmount)) |
---|
52 | 54 | | then throw("Not enough balance") |
---|
53 | 55 | | else if ((id == "EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm")) |
---|
54 | | - | then ScriptResult(WriteSet([DataEntry(((id + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, par7Id)])) |
---|
| 56 | + | then ScriptResult(WriteSet([DataEntry(((((id + "_") + compeNum) + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, par7Id)])) |
---|
55 | 57 | | else if ((id == "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC")) |
---|
56 | | - | then ScriptResult(WriteSet([DataEntry(((id + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, usdnId)])) |
---|
| 58 | + | then ScriptResult(WriteSet([DataEntry(((((id + "_") + compeNum) + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, usdnId)])) |
---|
57 | 59 | | else if ((id == "DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn")) |
---|
58 | | - | then ScriptResult(WriteSet([DataEntry(((id + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, btcId)])) |
---|
| 60 | + | then ScriptResult(WriteSet([DataEntry(((((id + "_") + compeNum) + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, btcId)])) |
---|
59 | 61 | | else if ((id == "AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ")) |
---|
60 | | - | then ScriptResult(WriteSet([DataEntry(((id + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, euroId)])) |
---|
| 62 | + | then ScriptResult(WriteSet([DataEntry(((((id + "_") + compeNum) + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, euroId)])) |
---|
61 | 63 | | else if ((id == "WAVES")) |
---|
62 | | - | then ScriptResult(WriteSet([DataEntry(((id + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, unit)])) |
---|
| 64 | + | then ScriptResult(WriteSet([DataEntry(((((id + "_") + compeNum) + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, unit)])) |
---|
63 | 65 | | else throw("Can't withdraw") |
---|
64 | 66 | | } |
---|
65 | 67 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let dappAcountPubKey = base58'7DERSZYEoBTSwaTrN1ktwnx1Y5D46mSpMSayUNs8CmcK' |
---|
5 | 5 | | |
---|
6 | 6 | | let par7Id = base58'EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm' |
---|
7 | 7 | | |
---|
8 | 8 | | let usdnId = base58'3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC' |
---|
9 | 9 | | |
---|
10 | 10 | | let btcId = base58'DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn' |
---|
11 | 11 | | |
---|
12 | 12 | | let euroId = base58'AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ' |
---|
13 | 13 | | |
---|
| 14 | + | let compeNum = "111111" |
---|
| 15 | + | |
---|
14 | 16 | | @Callable(i) |
---|
15 | 17 | | func deposit (compeStart,id) = { |
---|
16 | 18 | | let pmt = extract(i.payment) |
---|
17 | 19 | | let paymentId = pmt.assetId |
---|
18 | 20 | | let currentKey = toBase58String(i.caller.bytes) |
---|
19 | 21 | | let currentAmount = match getInteger(this, currentKey) { |
---|
20 | 22 | | case a: Int => |
---|
21 | 23 | | a |
---|
22 | 24 | | case _ => |
---|
23 | 25 | | 0 |
---|
24 | 26 | | } |
---|
25 | 27 | | let newAmount = (currentAmount + pmt.amount) |
---|
26 | | - | WriteSet([DataEntry(((id + "_") + currentKey), newAmount), DataEntry((((id + "_") + "_compeStart_") + currentKey), compeStart)]) |
---|
| 28 | + | WriteSet([DataEntry(((((id + "_") + compeNum) + "_") + currentKey), newAmount), DataEntry(((((id + "_compeStart_") + compeNum) + "_") + currentKey), compeStart)]) |
---|
27 | 29 | | } |
---|
28 | 30 | | |
---|
29 | 31 | | |
---|
30 | 32 | | |
---|
31 | 33 | | @Callable(i) |
---|
32 | 34 | | func withdraw (amount,id) = { |
---|
33 | 35 | | let currentKey = toBase58String(i.caller.bytes) |
---|
34 | | - | let compeStart = match getInteger(this, (((id + "_") + "_compeStart_") + currentKey)) { |
---|
| 36 | + | let compeStart = match getInteger(this, ((((id + "_compeStart_") + compeNum) + "_") + currentKey)) { |
---|
35 | 37 | | case a: Int => |
---|
36 | 38 | | a |
---|
37 | 39 | | case _ => |
---|
38 | 40 | | 0 |
---|
39 | 41 | | } |
---|
40 | | - | let currentAmount = match getInteger(this, ((id + "_") + currentKey)) { |
---|
| 42 | + | let currentAmount = match getInteger(this, ((((id + "_") + compeNum) + "_") + currentKey)) { |
---|
41 | 43 | | case a: Int => |
---|
42 | 44 | | a |
---|
43 | 45 | | case _ => |
---|
44 | 46 | | 0 |
---|
45 | 47 | | } |
---|
46 | 48 | | let newAmount = (currentAmount - amount) |
---|
47 | 49 | | if ((lastBlock.timestamp > compeStart)) |
---|
48 | 50 | | then throw("Can't withdraw compe start") |
---|
49 | 51 | | else if ((0 > amount)) |
---|
50 | 52 | | then throw("Can't withdraw negative amount") |
---|
51 | 53 | | else if ((0 > newAmount)) |
---|
52 | 54 | | then throw("Not enough balance") |
---|
53 | 55 | | else if ((id == "EtV3CXQ4wqm28WPB1KaBv5B9ke2bpXRZMutYNEJUQcXm")) |
---|
54 | | - | then ScriptResult(WriteSet([DataEntry(((id + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, par7Id)])) |
---|
| 56 | + | then ScriptResult(WriteSet([DataEntry(((((id + "_") + compeNum) + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, par7Id)])) |
---|
55 | 57 | | else if ((id == "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC")) |
---|
56 | | - | then ScriptResult(WriteSet([DataEntry(((id + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, usdnId)])) |
---|
| 58 | + | then ScriptResult(WriteSet([DataEntry(((((id + "_") + compeNum) + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, usdnId)])) |
---|
57 | 59 | | else if ((id == "DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn")) |
---|
58 | | - | then ScriptResult(WriteSet([DataEntry(((id + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, btcId)])) |
---|
| 60 | + | then ScriptResult(WriteSet([DataEntry(((((id + "_") + compeNum) + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, btcId)])) |
---|
59 | 61 | | else if ((id == "AsuWyM9MUUsMmWkK7jS48L3ky6gA1pxx7QtEYPbfLjAJ")) |
---|
60 | | - | then ScriptResult(WriteSet([DataEntry(((id + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, euroId)])) |
---|
| 62 | + | then ScriptResult(WriteSet([DataEntry(((((id + "_") + compeNum) + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, euroId)])) |
---|
61 | 63 | | else if ((id == "WAVES")) |
---|
62 | | - | then ScriptResult(WriteSet([DataEntry(((id + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, unit)])) |
---|
| 64 | + | then ScriptResult(WriteSet([DataEntry(((((id + "_") + compeNum) + "_") + currentKey), newAmount)]), TransferSet([ScriptTransfer(i.caller, amount, unit)])) |
---|
63 | 65 | | else throw("Can't withdraw") |
---|
64 | 66 | | } |
---|
65 | 67 | | |
---|
66 | 68 | | |
---|
67 | 69 | | @Verifier(tx) |
---|
68 | 70 | | func verify () = match tx { |
---|
69 | 71 | | case ttx: TransferTransaction => |
---|
70 | 72 | | sigVerify(ttx.bodyBytes, ttx.proofs[0], ttx.senderPublicKey) |
---|
71 | 73 | | case stx: SetScriptTransaction => |
---|
72 | 74 | | sigVerify(stx.bodyBytes, stx.proofs[0], stx.senderPublicKey) |
---|
73 | 75 | | case _ => |
---|
74 | 76 | | true |
---|
75 | 77 | | } |
---|
76 | 78 | | |
---|