tx · 4p9i8s8ELYDDweTxgtKUbG3zXP2BuuBQLg1VDsXVNwmL 3MrFUxcMycRcQDahrA16JhvuEKnbmMF3QZP: -0.01400000 Waves 2021.11.18 16:43 [1796559] smart account 3MrFUxcMycRcQDahrA16JhvuEKnbmMF3QZP > SELF 0.00000000 Waves
{ "type": 13, "id": "4p9i8s8ELYDDweTxgtKUbG3zXP2BuuBQLg1VDsXVNwmL", "fee": 1400000, "feeAssetId": null, "timestamp": 1637243020461, "version": 2, "chainId": 84, "sender": "3MrFUxcMycRcQDahrA16JhvuEKnbmMF3QZP", "senderPublicKey": "HtiJZF4j7Jo8jR12wxtKDkNhS3qCe3qsk8QxnnjVvXyq", "proofs": [ "3ZupFP5JJwqGUzuZ5i99W2rpXhbFesRWiK6q2gUsqL1m8e3YRanznxu1yF5hQqZaZBKQhTV4FEqfSYoGPbAEhV7H" ], "script": "base64:AAIDAAAAAAAAABAIARIFCgMIAQgSAwoBCBIAAAAAEQAAAAAOb3duZXJQdWJsaWNLZXkBAAAAIPr6UCy9pj38gKwWFLWxgxjXdgaG+HWNPUCI9qmcr64gAAAAAAtwdWJLZXlBbGljZQEAAAAg+vpQLL2mPfyArBYUtbGDGNd2Bob4dY09QIj2qZyvriAAAAAACXB1YktleUJvYgEAAAAglLAkeqfLsZeQupv/2xfSzDiecKRph4OtJwpInBvH10sAAAAADHB1YktleUNvb3BlcgEAAAAgy+JbV1o7QQIJssPuN7nyhSuLgAWQqXd2UgJecSzNQUgAAAAABE5PTkUCAAAABG5vbmUBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAA251bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABdAUAAAAHJG1hdGNoMAUAAAABdAAAAAAAAAAAAAUAAAADbnVtAQAAAAtnZXRTdHJCeUtleQAAAAEAAAADa2V5BAAAAANzdHIEAAAAByRtYXRjaDAJAAQ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FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADm93bmVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGCQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAAAtzaWduZWRBbGljZQUAAAAJc2lnbmVkQm9iBQAAAAxzaWduZWRDb29wZXIAAAAAAAAAAAK/dU+T", "height": 1796559, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9184FjYaMmmKUVzh2434rMhdi5DdN4GNUv3dzTYYCa27 Next: 8RERozAWNashVZxfUPsJ17kmpiRKb4Hg9VJWgHC4tijv Diff:
Old | New | Differences | |
---|---|---|---|
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | + | ||
102 | + | @Callable(i) | |
103 | + | func withdraw () = { | |
104 | + | let supplierAddress = toBase58String(i.caller.bytes) | |
105 | + | let balance = getValueBalanceSupplier(supplierAddress) | |
106 | + | if ((0 >= balance)) | |
107 | + | then throw("no money - no honey") | |
108 | + | else ScriptResult(WriteSet([DataEntry(getKeyBalanceSupplier(supplierAddress), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(supplierAddress), balance, unit)])) | |
109 | + | } | |
110 | + | ||
111 | + | ||
101 | 112 | @Verifier(tx) | |
102 | 113 | func verify () = { | |
103 | 114 | let signedAlice = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], pubKeyAlice)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let ownerPublicKey = base58'HtiJZF4j7Jo8jR12wxtKDkNhS3qCe3qsk8QxnnjVvXyq' | |
5 | 5 | ||
6 | 6 | let pubKeyAlice = base58'HtiJZF4j7Jo8jR12wxtKDkNhS3qCe3qsk8QxnnjVvXyq' | |
7 | 7 | ||
8 | 8 | let pubKeyBob = base58'B1R7zeh6VgTv4Xxe3aHhdoZ9aQgWcqN8LFC9smacE96r' | |
9 | 9 | ||
10 | 10 | let pubKeyCooper = base58'EisxKQktzqqd4UsxE7UgVjSHqoWindUpjoB7dsDwfG4o' | |
11 | 11 | ||
12 | 12 | let NONE = "none" | |
13 | 13 | ||
14 | 14 | func getNumberByKey (key) = { | |
15 | 15 | let num = match getInteger(this, key) { | |
16 | 16 | case t: Int => | |
17 | 17 | t | |
18 | 18 | case _ => | |
19 | 19 | 0 | |
20 | 20 | } | |
21 | 21 | num | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func getStrByKey (key) = { | |
26 | 26 | let str = match getString(this, key) { | |
27 | 27 | case t: String => | |
28 | 28 | t | |
29 | 29 | case _ => | |
30 | 30 | NONE | |
31 | 31 | } | |
32 | 32 | str | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func getKeyItemPrice (item) = (item + "_price") | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func getValueItemPrice (item) = getNumberByKey(getKeyItemPrice(item)) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func getKeyUserItemCounter (user,item) = (((item + "_") + user) + "_cnt") | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item)) | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func getKeyItem (supplier,title) = ("item_" + toBase58String(sha256(toBytes((supplier + title))))) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func getKeyItemData (item) = (item + "_data") | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func getKeyItemSupplier (item) = (item + "_owner") | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func getValueItemSupplier (item) = getStrByKey(getKeyItemSupplier(item)) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func getKeyBalanceSupplier (account) = (account + "_balance") | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func getValueBalanceSupplier (account) = getNumberByKey(getKeyBalanceSupplier(account)) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | @Callable(i) | |
67 | 67 | func addItem (title,price,data) = { | |
68 | 68 | let supplierAddress = toBase58String(i.caller.bytes) | |
69 | 69 | let item = getKeyItem(supplierAddress, title) | |
70 | 70 | if ((0 >= price)) | |
71 | 71 | then throw("purchase amount cannot be less than item price") | |
72 | 72 | else if ((getValueItemSupplier(item) != NONE)) | |
73 | 73 | then throw("an item is already exist") | |
74 | 74 | else WriteSet([DataEntry(getKeyItemSupplier(item), supplierAddress), DataEntry(getKeyItemPrice(item), price), DataEntry(getKeyItemData(item), data)]) | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | ||
79 | 79 | @Callable(i) | |
80 | 80 | func purchase (itemKey) = { | |
81 | 81 | let pmt = extract(i.payment) | |
82 | 82 | if (isDefined(pmt.assetId)) | |
83 | 83 | then throw("can use WAVES only at the moment") | |
84 | 84 | else if (!(isDefined(itemKey))) | |
85 | 85 | then throw("You must select Item") | |
86 | 86 | else { | |
87 | 87 | let customerAddress = toBase58String(i.caller.bytes) | |
88 | 88 | let price = getValueItemPrice(itemKey) | |
89 | 89 | let supplierAddress = getValueItemSupplier(itemKey) | |
90 | 90 | if ((price > pmt.amount)) | |
91 | 91 | then throw("purchase amoun cannot be less than item price") | |
92 | 92 | else if ((pmt.amount > price)) | |
93 | 93 | then throw("purchase amoun cannot be higher than item price") | |
94 | 94 | else if ((supplierAddress == NONE)) | |
95 | 95 | then throw("supplier does not exist") | |
96 | 96 | else WriteSet([DataEntry(getKeyUserItemCounter(customerAddress, itemKey), (getValueUserItemCounter(customerAddress, itemKey) + 1)), DataEntry(getKeyBalanceSupplier(supplierAddress), (getValueBalanceSupplier(supplierAddress) + pmt.amount))]) | |
97 | 97 | } | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | + | ||
102 | + | @Callable(i) | |
103 | + | func withdraw () = { | |
104 | + | let supplierAddress = toBase58String(i.caller.bytes) | |
105 | + | let balance = getValueBalanceSupplier(supplierAddress) | |
106 | + | if ((0 >= balance)) | |
107 | + | then throw("no money - no honey") | |
108 | + | else ScriptResult(WriteSet([DataEntry(getKeyBalanceSupplier(supplierAddress), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(supplierAddress), balance, unit)])) | |
109 | + | } | |
110 | + | ||
111 | + | ||
101 | 112 | @Verifier(tx) | |
102 | 113 | func verify () = { | |
103 | 114 | let signedAlice = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], pubKeyAlice)) | |
104 | 115 | then true | |
105 | 116 | else sigVerify(tx.bodyBytes, tx.proofs[1], pubKeyAlice)) | |
106 | 117 | then true | |
107 | 118 | else sigVerify(tx.bodyBytes, tx.proofs[2], pubKeyAlice)) | |
108 | 119 | then 1 | |
109 | 120 | else 0 | |
110 | 121 | let signedBob = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], pubKeyBob)) | |
111 | 122 | then true | |
112 | 123 | else sigVerify(tx.bodyBytes, tx.proofs[1], pubKeyBob)) | |
113 | 124 | then true | |
114 | 125 | else sigVerify(tx.bodyBytes, tx.proofs[2], pubKeyBob)) | |
115 | 126 | then 1 | |
116 | 127 | else 0 | |
117 | 128 | let signedCooper = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], pubKeyCooper)) | |
118 | 129 | then true | |
119 | 130 | else sigVerify(tx.bodyBytes, tx.proofs[1], pubKeyCooper)) | |
120 | 131 | then true | |
121 | 132 | else sigVerify(tx.bodyBytes, tx.proofs[2], pubKeyCooper)) | |
122 | 133 | then 1 | |
123 | 134 | else 0 | |
124 | 135 | match tx { | |
125 | 136 | case d: SetScriptTransaction => | |
126 | 137 | sigVerify(tx.bodyBytes, tx.proofs[0], ownerPublicKey) | |
127 | 138 | case d: DataTransaction => | |
128 | 139 | true | |
129 | 140 | case _ => | |
130 | 141 | (((signedAlice + signedBob) + signedCooper) >= 2) | |
131 | 142 | } | |
132 | 143 | } | |
133 | 144 |
github/deemru/w8io/026f985 23.79 ms ◑