tx · 6NZgQj1w47GjxNBB8NuCDG4XDCj6RqxHVDriZQavcGhT

3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL:  -0.01400000 Waves

2020.01.31 12:01 [878312] smart account 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL > SELF 0.00000000 Waves

{ "type": 13, "id": "6NZgQj1w47GjxNBB8NuCDG4XDCj6RqxHVDriZQavcGhT", "fee": 1400000, "feeAssetId": null, "timestamp": 1580461326083, "version": 1, "sender": "3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL", "senderPublicKey": "f1NbgbpkRpbigsrHaDkWZAkPgcqd8GM5G5eNmqnTD6z", "proofs": [ "32qp6BT3zyABce8EzE4HMvuxhrksSYgtYTdm1zhJdpWQj4v58MWpvNQHUTEpdrqUyZiRcena3P3T8HwMKphd1QkJ" ], "script": "base64:AAIDAAAAAAAAAA8IARIFCgMICAgSBAoCCAgAAAAHAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAMY3VycmVudFByaWNlAAAAAAAO5rKAAAAAAARiYW5rAgAAACMzTXpZTGtRNnFDd3RieGFZUTJ5azFrZFV1ZHpiTmc0SmlURwEAAAAIaXNBZHJlc3MAAAABAAAABGFkZHIDAwkAAAAAAAACCQABMQAAAAEFAAAABGFkZHIAAAAAAAAAACMJAAAAAAAAAgkAAS8AAAACBQAAAARhZGRyAAAAAAAAAAACAgAAAAIzTgcGCQAAAAAAAAIJAAEvAAAAAgUAAAAEYWRkcgAAAAAAAAAAAgIAAAACM00BAAAADGNvdW50UGFydGllcwAAAAIAAAALYWNjdW11bGF0b3IAAAAEYWRkcgMJAABmAAAAAgkAATEAAAABBQAAAARhZGRyAAAAAAAAAAAACQAAZAAAAAIFAAAAC2FjY3VtdWxhdG9yAAAAAAAAAAABCQAAZAAAAAIFAAAAC2FjY3VtdWxhdG9yAAAAAAAAAAAAAQAAAA5nZXRWYWx1ZVN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AAIFAAAABmFtb3VudAUAAAAMY3VycmVudFByaWNlCQAAAgAAAAECAAAAElRoZSBwcmljZSBpcyB3cm9uZwkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAZzaWduZXICAAAABF9NQV8JAAJYAAAAAQUAAAACaWQCAAAABlNJR05FRAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAEYmFuawUAAAAGYW1vdW50BQAAAA1hY2NlcHRlZFRva2VuBQAAAANuaWwAAAAALaEahA==", "chainId": 84, "height": 878312, "spentComplexity": 0 } View: original | compacted Prev: BwtNn43nLxo8Qgtn6Y7QYARb5SvyiNYHtHBN3jCD5q59 Next: HdmBb4jvHbRBJ7L8348ggN49ZDn98SfuHv5qjFTqWUEz Diff:
OldNewDifferences
77
88 let bank = "3MzYLkQ6qCwtbxaYQ2yk1kdUudzbNg4JiTG"
99
10-func countParties (accumulator,addr) = if ((size(addr) == 35))
10+func isAdress (addr) = if (if ((size(addr) == 35))
11+ then (take(addr, 2) == "3N")
12+ else false)
13+ then true
14+ else (take(addr, 2) == "3M")
15+
16+
17+func countParties (accumulator,addr) = if ((size(addr) > 0))
1118 then (accumulator + 1)
1219 else (accumulator + 0)
1320
3643 let address6 = getValue(addresses, "address6")
3744 let addressesArray = [address1, address2, address3, address4, address5, address6]
3845 let totalAddresses = {
39- let $list14931533 = addressesArray
40- let $size14931533 = size($list14931533)
41- let $acc014931533 = 0
42- if (($size14931533 == 0))
43- then $acc014931533
46+ let $list16111651 = addressesArray
47+ let $size16111651 = size($list16111651)
48+ let $acc016111651 = 0
49+ if (($size16111651 == 0))
50+ then $acc016111651
4451 else {
45- let $acc114931533 = countParties($acc014931533, $list14931533[0])
46- if (($size14931533 == 1))
47- then $acc114931533
52+ let $acc116111651 = countParties($acc016111651, $list16111651[0])
53+ if (($size16111651 == 1))
54+ then $acc116111651
4855 else {
49- let $acc214931533 = countParties($acc114931533, $list14931533[1])
50- if (($size14931533 == 2))
51- then $acc214931533
56+ let $acc216111651 = countParties($acc116111651, $list16111651[1])
57+ if (($size16111651 == 2))
58+ then $acc216111651
5259 else {
53- let $acc314931533 = countParties($acc214931533, $list14931533[2])
54- if (($size14931533 == 3))
55- then $acc314931533
60+ let $acc316111651 = countParties($acc216111651, $list16111651[2])
61+ if (($size16111651 == 3))
62+ then $acc316111651
5663 else {
57- let $acc414931533 = countParties($acc314931533, $list14931533[3])
58- if (($size14931533 == 4))
59- then $acc414931533
64+ let $acc416111651 = countParties($acc316111651, $list16111651[3])
65+ if (($size16111651 == 4))
66+ then $acc416111651
6067 else {
61- let $acc514931533 = countParties($acc414931533, $list14931533[4])
62- if (($size14931533 == 5))
63- then $acc514931533
68+ let $acc516111651 = countParties($acc416111651, $list16111651[4])
69+ if (($size16111651 == 5))
70+ then $acc516111651
6471 else {
65- let $acc614931533 = countParties($acc514931533, $list14931533[5])
66- if (($size14931533 == 6))
67- then $acc614931533
72+ let $acc616111651 = countParties($acc516111651, $list16111651[5])
73+ if (($size16111651 == 6))
74+ then $acc616111651
6875 else {
69- let $acc714931533 = countParties($acc614931533, $list14931533[6])
76+ let $acc716111651 = countParties($acc616111651, $list16111651[6])
7077 throw("List size exceed 6")
7178 }
7279 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let acceptedToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
55
66 let currentPrice = 250000000
77
88 let bank = "3MzYLkQ6qCwtbxaYQ2yk1kdUudzbNg4JiTG"
99
10-func countParties (accumulator,addr) = if ((size(addr) == 35))
10+func isAdress (addr) = if (if ((size(addr) == 35))
11+ then (take(addr, 2) == "3N")
12+ else false)
13+ then true
14+ else (take(addr, 2) == "3M")
15+
16+
17+func countParties (accumulator,addr) = if ((size(addr) > 0))
1118 then (accumulator + 1)
1219 else (accumulator + 0)
1320
1421
1522 func getValueString (json) = take(drop(json, 1), value(indexOf(drop(json, 1), "\"")))
1623
1724
1825 func getValue (json,key) = {
1926 let keyIndex = value(indexOf(json, (("\"" + key) + "\":")))
2027 let data = drop(json, ((keyIndex + size(key)) + 3))
2128 let jsonValue = getValueString(data)
2229 jsonValue
2330 }
2431
2532
2633 @Callable(invoke)
2734 func createAgreement (hash,title,addresses) = {
2835 let payment = extract(invoke.payment)
2936 let amount = extract(payment.amount)
3037 let id = extract(invoke.transactionId)
3138 let address1 = getValue(addresses, "address1")
3239 let address2 = getValue(addresses, "address2")
3340 let address3 = getValue(addresses, "address3")
3441 let address4 = getValue(addresses, "address4")
3542 let address5 = getValue(addresses, "address5")
3643 let address6 = getValue(addresses, "address6")
3744 let addressesArray = [address1, address2, address3, address4, address5, address6]
3845 let totalAddresses = {
39- let $list14931533 = addressesArray
40- let $size14931533 = size($list14931533)
41- let $acc014931533 = 0
42- if (($size14931533 == 0))
43- then $acc014931533
46+ let $list16111651 = addressesArray
47+ let $size16111651 = size($list16111651)
48+ let $acc016111651 = 0
49+ if (($size16111651 == 0))
50+ then $acc016111651
4451 else {
45- let $acc114931533 = countParties($acc014931533, $list14931533[0])
46- if (($size14931533 == 1))
47- then $acc114931533
52+ let $acc116111651 = countParties($acc016111651, $list16111651[0])
53+ if (($size16111651 == 1))
54+ then $acc116111651
4855 else {
49- let $acc214931533 = countParties($acc114931533, $list14931533[1])
50- if (($size14931533 == 2))
51- then $acc214931533
56+ let $acc216111651 = countParties($acc116111651, $list16111651[1])
57+ if (($size16111651 == 2))
58+ then $acc216111651
5259 else {
53- let $acc314931533 = countParties($acc214931533, $list14931533[2])
54- if (($size14931533 == 3))
55- then $acc314931533
60+ let $acc316111651 = countParties($acc216111651, $list16111651[2])
61+ if (($size16111651 == 3))
62+ then $acc316111651
5663 else {
57- let $acc414931533 = countParties($acc314931533, $list14931533[3])
58- if (($size14931533 == 4))
59- then $acc414931533
64+ let $acc416111651 = countParties($acc316111651, $list16111651[3])
65+ if (($size16111651 == 4))
66+ then $acc416111651
6067 else {
61- let $acc514931533 = countParties($acc414931533, $list14931533[4])
62- if (($size14931533 == 5))
63- then $acc514931533
68+ let $acc516111651 = countParties($acc416111651, $list16111651[4])
69+ if (($size16111651 == 5))
70+ then $acc516111651
6471 else {
65- let $acc614931533 = countParties($acc514931533, $list14931533[5])
66- if (($size14931533 == 6))
67- then $acc614931533
72+ let $acc616111651 = countParties($acc516111651, $list16111651[5])
73+ if (($size16111651 == 6))
74+ then $acc616111651
6875 else {
69- let $acc714931533 = countParties($acc614931533, $list14931533[6])
76+ let $acc716111651 = countParties($acc616111651, $list16111651[6])
7077 throw("List size exceed 6")
7178 }
7279 }
7380 }
7481 }
7582 }
7683 }
7784 }
7885 }
7986 let agreementDataObject = (((((((((((((((((("{id: '" + toBase58String(id)) + "', title: '") + title) + "' hash: '") + hash) + "', address1: '") + addressesArray[0]) + "', address2: '") + addressesArray[1]) + "', address3: '") + addressesArray[2]) + "', address4: '") + addressesArray[3]) + "', address5: '") + addressesArray[4]) + "', address6: '") + addressesArray[5]) + "'}")
8087 let paymentAssetId = if (isDefined(payment.assetId))
8188 then extract(payment.assetId)
8289 else throw("Waves is not accepted as payment")
8390 if ((paymentAssetId != acceptedToken))
8491 then throw("Only payments in SIGN are allowed at the moment")
8592 else if (((currentPrice * totalAddresses) > amount))
8693 then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses))))
8794 else if ((totalAddresses == 6))
8895 then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), agreementDataObject), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[5] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[5]), 0, acceptedToken)]))
8996 else if ((totalAddresses == 5))
9097 then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), agreementDataObject), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken)]))
9198 else if ((totalAddresses == 4))
9299 then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), agreementDataObject), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken)]))
93100 else if ((totalAddresses == 3))
94101 then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), agreementDataObject), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)]))
95102 else if ((totalAddresses == 2))
96103 then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), agreementDataObject), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)]))
97104 else throw(("Needs 2 to 6 parties addresses" + toString(totalAddresses)))
98105 }
99106
100107
101108
102109 @Callable(invoke)
103110 func signAgreement (hash,agreementId) = {
104111 let payment = extract(invoke.payment)
105112 let amount = extract(payment.amount)
106113 let id = extract(invoke.transactionId)
107114 let signer = toBase58String(invoke.caller.bytes)
108115 let signingRequestExist = match getString(this, ((signer + "_MA_") + toBase58String(id))) {
109116 case s: String =>
110117 s
111118 case _ =>
112119 throw("There is no corresponding signing request")
113120 }
114121 let paymentAssetId = if (isDefined(payment.assetId))
115122 then extract(payment.assetId)
116123 else throw("Waves is not accepted as payment")
117124 if ((paymentAssetId != acceptedToken))
118125 then throw("Only payments in SIGN are allowed at the moment")
119126 else if ((amount != currentPrice))
120127 then throw("The price is wrong")
121128 else ScriptResult(WriteSet([DataEntry(((signer + "_MA_") + toBase58String(id)), "SIGNED")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken)]))
122129 }
123130
124131

github/deemru/w8io/169f3d6 
57.46 ms