tx · BpufVR9UDVtFuVTm6gaps7rZxTvqyQnoaVxYR5QTEnNK 3N7CSaNQyh22JX6irCXdMCuftWJsqaXWGQE: -0.10500000 Waves 2019.08.08 16:45 [622062] smart account 3N7CSaNQyh22JX6irCXdMCuftWJsqaXWGQE > SELF 0.00000000 Waves
{ "type": 13, "id": "BpufVR9UDVtFuVTm6gaps7rZxTvqyQnoaVxYR5QTEnNK", "fee": 10500000, "feeAssetId": null, "timestamp": 1565271923415, "version": 1, "sender": "3N7CSaNQyh22JX6irCXdMCuftWJsqaXWGQE", "senderPublicKey": "HY8Qy31uRu7gAFf4mhvMkwJRXTMVKuFLcbAKeRHc6X7d", "proofs": [ "5CwTis6aD4gt23bR7oSJp1CjD2kyxy3gp23CX5xbUKA7tXCUyeXZyVsmxY4TyuwctmMEDSVXLpeZLRFpSiKhEo7o", "2rgH1mUGPqDV6nkjUWDcaFQPXU49pv6kjc7enxs44mDbTTzGdogSYUMFhoJm9FAp5YbAjp17SW6A3wCpzzZC1zmN", "4ZAiLwbuCtPC3FHZq6y6varmDd1XKHcwjLqMX3tBH2iGxj2mtb1XEqeiHZPUAWs6pdbC7SbFRM7ibgp23Fyt863N" ], "script": "base64:AwQAAAAObWF0Y2hlckFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNczhmU2ZBeEJMRGpLdk5WZ0FDUnpRb0JMQ3RDV3h0YXd1BAAAABBtYXRjaGVyUHVibGljS2V5AQAAACBThDuRiQKq/0TcMlLglZN11ZQJlziVeFsi3R5LSjzVTwQAAAAOZ2F0ZXdheUFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNcmh0enY5S0V0ang0bUc0N294Z2phaEhLVzMzb1RudEVWBAAAABB3aGl0ZWxpc3RBZGRyZXNzCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTjZEd1d4VDgybkdKVXdCd2Q3TDUxNHIydTcxZ3I3V2h3SgQ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V3MD Next: DXmTLS7nNvUz1pdfVuHeHo8N3Zq5tc4dxLv8FWp7h4iy Diff:
Old | New | Differences | |
---|---|---|---|
12 | 12 | let pAddress4 = addressFromString("3MtVCmN9MZbWf9qxiMFoEPBrdc2fLp3SvuC") | |
13 | 13 | let pAddress5 = addressFromString("3MuWG8gsTK4RQBsm97sMCuUXW99JvRxwYSg") | |
14 | 14 | let validState = 1000 | |
15 | - | let ver = "2.0. | |
15 | + | let ver = "2.0.2-testnet" | |
16 | 16 | match tx { | |
17 | 17 | case o: Order => | |
18 | 18 | if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let matcherAddress = addressFromString("3Ms8fSfAxBLDjKvNVgACRzQoBLCtCWxtawu") | |
4 | 4 | let matcherPublicKey = base58'6d1nbhBxLCxjUyL9xXcX2VVxj2kcKiYny7VqH4FwbApv' | |
5 | 5 | let gatewayAddress = addressFromString("3Mrhtzv9KEtjx4mG47oxgjahHKW33oTntEV") | |
6 | 6 | let whitelistAddress = addressFromString("3N6DwWxT82nGJUwBwd7L514r2u71gr7WhwJ") | |
7 | 7 | let dAppWhitelistAddress = Address(base58'3N1SPvLZgv6FMfe5WNUtnPzt3okYxcJhYnR') | |
8 | 8 | let gatewayControlAssetAddress = base58'3w8UGTKzu3YvwRrvWeDuXkUVxdg1RuX1VCy6QRw86Fw4' | |
9 | 9 | let pAddress1 = addressFromString("3NCVDaT1ASbRd42hBSw4EG6ojGVRGtvMiz1") | |
10 | 10 | let pAddress2 = addressFromString("3Ms2kTAxdrcXDxwedfbNjSi6ewGCUqt3heZ") | |
11 | 11 | let pAddress3 = addressFromString("3N6ognm7xnQSFiownS1Df1LacJUQXvfDFLe") | |
12 | 12 | let pAddress4 = addressFromString("3MtVCmN9MZbWf9qxiMFoEPBrdc2fLp3SvuC") | |
13 | 13 | let pAddress5 = addressFromString("3MuWG8gsTK4RQBsm97sMCuUXW99JvRxwYSg") | |
14 | 14 | let validState = 1000 | |
15 | - | let ver = "2.0. | |
15 | + | let ver = "2.0.2-testnet" | |
16 | 16 | match tx { | |
17 | 17 | case o: Order => | |
18 | 18 | if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) | |
19 | 19 | then (o.matcherPublicKey == matcherPublicKey) | |
20 | 20 | else false | |
21 | 21 | case tx: TransferTransaction => | |
22 | 22 | if (!(sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))) | |
23 | 23 | then throw("Transaction must be signed by owner") | |
24 | 24 | else { | |
25 | 25 | let userState = getInteger(extract(whitelistAddress), toBase58String(tx.sender.bytes)) | |
26 | 26 | if (!(isDefined(userState))) | |
27 | 27 | then throw("Address not in whitelist") | |
28 | 28 | else if ((userState != validState)) | |
29 | 29 | then throw("User not in valid state") | |
30 | 30 | else if (!(isDefined(tx.assetId))) | |
31 | 31 | then { | |
32 | 32 | let key = (toBase58String(tx.sender.bytes) + "_WAVES") | |
33 | 33 | let minAmount = getInteger(extract(whitelistAddress), key) | |
34 | 34 | if (isDefined(minAmount)) | |
35 | 35 | then { | |
36 | 36 | let curBalance = wavesBalance(extract(tx.sender)) | |
37 | 37 | if ((extract(minAmount) > (curBalance - tx.amount))) | |
38 | 38 | then throw("Unable to send such amount (type=2)") | |
39 | 39 | else true | |
40 | 40 | } | |
41 | 41 | else { | |
42 | 42 | let keyOverall = "res_WAVES" | |
43 | 43 | let minAmountOverall = getInteger(extract(whitelistAddress), keyOverall) | |
44 | 44 | if (isDefined(minAmountOverall)) | |
45 | 45 | then { | |
46 | 46 | let curBalance = wavesBalance(extract(tx.sender)) | |
47 | 47 | if ((extract(minAmountOverall) > (curBalance - tx.amount))) | |
48 | 48 | then throw("Unable to send such amount (type=1)") | |
49 | 49 | else true | |
50 | 50 | } | |
51 | 51 | else true | |
52 | 52 | } | |
53 | 53 | } | |
54 | 54 | else if ((tx.assetId == gatewayControlAssetAddress)) | |
55 | 55 | then (tx.recipient == gatewayAddress) | |
56 | 56 | else { | |
57 | 57 | let white1List = toBase58String(tx.sender.bytes) | |
58 | 58 | let assetTxt = toBase58String(extract(tx.assetId)) | |
59 | 59 | let white1ListAsset = ((white1List + "_") + assetTxt) | |
60 | 60 | let white1ListOverall = ("res_" + assetTxt) | |
61 | 61 | let white1ListAssetEntry = getInteger(extract(whitelistAddress), white1ListAsset) | |
62 | 62 | if (!(isDefined(white1ListAssetEntry))) | |
63 | 63 | then { | |
64 | 64 | let white1ListOverallEntry = getInteger(extract(whitelistAddress), white1ListOverall) | |
65 | 65 | if (!(isDefined(white1ListOverallEntry))) | |
66 | 66 | then true | |
67 | 67 | else { | |
68 | 68 | let cur1Balance = assetBalance(tx.sender, tx.assetId) | |
69 | 69 | if ((extract(white1ListOverallEntry) > (cur1Balance - tx.amount))) | |
70 | 70 | then throw("Unable to send such amount (type=1)") | |
71 | 71 | else true | |
72 | 72 | } | |
73 | 73 | } | |
74 | 74 | else { | |
75 | 75 | let cur1Balance = assetBalance(tx.sender, tx.assetId) | |
76 | 76 | if ((extract(white1ListAssetEntry) > (cur1Balance - tx.amount))) | |
77 | 77 | then throw("Unable to send such amount (type=2)") | |
78 | 78 | else true | |
79 | 79 | } | |
80 | 80 | } | |
81 | 81 | } | |
82 | 82 | case tx: SetScriptTransaction => | |
83 | 83 | let pKey1Signed = if (isDefined(getInteger(extract(pAddress1), toBase58String(tx.id)))) | |
84 | 84 | then 1 | |
85 | 85 | else 0 | |
86 | 86 | let pKey2Signed = if (isDefined(getInteger(extract(pAddress2), toBase58String(tx.id)))) | |
87 | 87 | then 1 | |
88 | 88 | else 0 | |
89 | 89 | let pKey3Signed = if (isDefined(getInteger(extract(pAddress3), toBase58String(tx.id)))) | |
90 | 90 | then 1 | |
91 | 91 | else 0 | |
92 | 92 | let pKey4Signed = if (isDefined(getInteger(extract(pAddress4), toBase58String(tx.id)))) | |
93 | 93 | then 1 | |
94 | 94 | else 0 | |
95 | 95 | let pKey5Signed = if (isDefined(getInteger(extract(pAddress5), toBase58String(tx.id)))) | |
96 | 96 | then 1 | |
97 | 97 | else 0 | |
98 | 98 | (((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) >= 3) | |
99 | 99 | case tx: LeaseTransaction => | |
100 | 100 | false | |
101 | 101 | case tx: SponsorFeeTransaction => | |
102 | 102 | false | |
103 | 103 | case tx: MassTransferTransaction => | |
104 | 104 | false | |
105 | 105 | case tx: IssueTransaction => | |
106 | 106 | false | |
107 | 107 | case tx: ReissueTransaction => | |
108 | 108 | false | |
109 | 109 | case tx: BurnTransaction => | |
110 | 110 | false | |
111 | 111 | case tx: ExchangeTransaction => | |
112 | 112 | false | |
113 | 113 | case tx: InvokeScriptTransaction => | |
114 | 114 | match tx.payment { | |
115 | 115 | case a: AttachedPayment => | |
116 | 116 | match getInteger(dAppWhitelistAddress, toBase58String(addressFromRecipient(tx.dApp).bytes)) { | |
117 | 117 | case unused: Int => | |
118 | 118 | true | |
119 | 119 | case _ => | |
120 | 120 | false | |
121 | 121 | } | |
122 | 122 | case _ => | |
123 | 123 | true | |
124 | 124 | } | |
125 | 125 | case _ => | |
126 | 126 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
127 | 127 | } |
github/deemru/w8io/169f3d6 34.71 ms ◑