@ozdao/prometheus-framework 0.2.86 → 0.2.88

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. package/dist/auth.server.js +0 -16
  2. package/dist/auth.server.mjs +0 -16
  3. package/dist/community.server.js +0 -24
  4. package/dist/community.server.mjs +0 -24
  5. package/dist/events.server.js +0 -16
  6. package/dist/events.server.mjs +0 -16
  7. package/dist/files.server.js +0 -8
  8. package/dist/files.server.mjs +0 -8
  9. package/dist/gallery.server.js +0 -8
  10. package/dist/gallery.server.mjs +0 -8
  11. package/dist/main-Bw0PvTs-.mjs +13616 -0
  12. package/dist/main-D8gNZLSa.js +92 -0
  13. package/dist/main.css +1 -1
  14. package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -1
  15. package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +180 -180
  16. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -1
  17. package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +5 -5
  18. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  19. package/dist/node_modules/@noble/hashes/esm/_u64.js +16 -61
  20. package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.cjs +1 -1
  21. package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.js +9 -10
  22. package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs +1 -1
  23. package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +1 -1
  24. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
  25. package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +9 -9
  26. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
  27. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +33 -33
  28. package/dist/node_modules/web3-eth-abi/lib/esm/utils.cjs +1 -1
  29. package/dist/node_modules/web3-eth-abi/lib/esm/utils.js +24 -24
  30. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -1
  31. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +30 -30
  32. package/dist/node_modules/web3-validator/lib/esm/validation/string.cjs +1 -1
  33. package/dist/node_modules/web3-validator/lib/esm/validation/string.js +9 -9
  34. package/dist/organizations.server.js +0 -32
  35. package/dist/organizations.server.mjs +0 -32
  36. package/dist/products.server.js +0 -20
  37. package/dist/products.server.mjs +0 -20
  38. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
  39. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +3046 -2899
  40. package/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +1 -1
  41. package/dist/prometheus-framework/node_modules/axios/lib/axios.js +1 -2
  42. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.cjs +1 -1
  43. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.js +1 -2
  44. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +1 -1
  45. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +18 -19
  46. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.cjs +2 -2
  47. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.js +66 -67
  48. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
  49. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +38 -39
  50. package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.cjs +1 -1
  51. package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.js +1 -2
  52. package/dist/prometheus-framework/node_modules/date-fns/eachDayOfInterval.cjs +1 -1
  53. package/dist/prometheus-framework/node_modules/date-fns/eachDayOfInterval.js +13 -16
  54. package/dist/prometheus-framework/node_modules/date-fns/eachQuarterOfInterval.cjs +1 -1
  55. package/dist/prometheus-framework/node_modules/date-fns/eachQuarterOfInterval.js +13 -16
  56. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/ParseError.cjs +1 -1
  57. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/ParseError.js +45 -51
  58. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/PhoneNumber.cjs +1 -1
  59. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/PhoneNumber.js +56 -56
  60. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/format.cjs +2 -2
  61. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/format.js +14 -14
  62. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.cjs +1 -1
  63. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +8 -16
  64. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.cjs +1 -1
  65. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +4 -6
  66. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.cjs +1 -1
  67. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +5 -9
  68. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.cjs +2 -2
  69. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +4 -4
  70. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs +2 -2
  71. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +35 -35
  72. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.cjs +1 -1
  73. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.js +13 -13
  74. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs +2 -2
  75. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +9 -16
  76. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
  77. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  78. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  80. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -73
  82. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  83. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +73 -1
  84. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -103
  86. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  87. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +103 -1
  88. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  90. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  91. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  92. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +29 -29
  94. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +31 -31
  96. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +2 -2
  98. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +15 -14
  100. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  102. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  104. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  106. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  107. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
  108. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  109. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  110. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  112. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  116. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +10 -10
  118. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +15 -15
  120. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
  121. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +6 -5
  122. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  124. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  128. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +1 -13
  134. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +13 -1
  136. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +20 -20
  138. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +19 -19
  142. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  143. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  144. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  145. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  146. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  147. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  148. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  149. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  150. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  151. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  152. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +4 -4
  154. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  155. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +11 -11
  156. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  157. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  158. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  159. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  160. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  161. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +20 -20
  162. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  164. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  166. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  168. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  170. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  171. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +3 -3
  172. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  174. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  175. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  176. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +1 -1
  178. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  180. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  181. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  182. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  184. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +1 -1
  186. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
  188. package/dist/prometheus-framework.cjs.js +1 -1
  189. package/dist/prometheus-framework.es.js +1 -1
  190. package/dist/reports.server.js +0 -8
  191. package/dist/reports.server.mjs +0 -8
  192. package/dist/style.css +1 -1
  193. package/dist/users.server.js +0 -8
  194. package/dist/users.server.mjs +0 -8
  195. package/dist/wallet.server.js +0 -4
  196. package/dist/wallet.server.mjs +0 -4
  197. package/dist/web-CciQvENI.js +1 -0
  198. package/dist/web-nVxTNRH4.mjs +54 -0
  199. package/package.json +1 -1
  200. package/src/modules/auth/routes/auth.routes.js +2 -2
  201. package/src/modules/organizations/routes/memberships.routes.js +0 -1
@@ -1,39 +1,39 @@
1
- import { AbiError as f } from "../../../web3-errors/lib/esm/errors/generic_errors.js";
1
+ import { AbiError as u } from "../../../web3-errors/lib/esm/errors/generic_errors.js";
2
2
  import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
3
3
  import { isNullish as s } from "../../../web3-utils/lib/esm/validation.js";
4
- const u = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "error", y = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "event", l = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "function", g = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "constructor", j = (t) => typeof t == "object" && typeof t.components > "u" && typeof t.name > "u", a = (t) => t.includes("[]") ? { type: "tuple[]", name: t.slice(0, -2) } : { type: "tuple", name: t }, b = (t) => {
4
+ const f = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "error", y = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "event", l = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "function", g = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "constructor", m = (t) => typeof t == "object" && typeof t.components > "u" && typeof t.name > "u", a = (t) => t.includes("[]") ? { type: "tuple[]", name: t.slice(0, -2) } : { type: "tuple", name: t }, b = (t) => {
5
5
  const n = [];
6
- for (const e of Object.keys(t)) {
7
- const o = t[e];
8
- typeof o == "object" ? n.push(Object.assign(Object.assign({}, a(e)), { components: b(o) })) : n.push({
9
- name: e,
10
- type: t[e]
6
+ for (const o of Object.keys(t)) {
7
+ const e = t[o];
8
+ typeof e == "object" ? n.push(Object.assign(Object.assign({}, a(o)), { components: b(e) })) : n.push({
9
+ name: o,
10
+ type: t[o]
11
11
  });
12
12
  }
13
13
  return n;
14
- }, i = (t, n) => {
15
- const e = [];
16
- return n.forEach((o) => {
17
- if (typeof o.components == "object") {
18
- if (!o.type.startsWith("tuple"))
19
- throw new f(`Invalid value given "${o.type}". Error: components found but type is not tuple.`);
20
- const r = o.type.indexOf("["), c = r >= 0 ? o.type.substring(r) : "", p = i(t, o.components);
21
- Array.isArray(p) && t ? e.push(`tuple(${p.join(",")})${c}`) : t ? e.push(`(${p.join()})`) : e.push(`(${p.join(",")})${c}`);
14
+ }, c = (t, n) => {
15
+ const o = [];
16
+ return n.forEach((e) => {
17
+ if (typeof e.components == "object") {
18
+ if (!e.type.startsWith("tuple"))
19
+ throw new u(`Invalid value given "${e.type}". Error: components found but type is not tuple.`);
20
+ const r = e.type.indexOf("["), i = r >= 0 ? e.type.substring(r) : "", p = c(t, e.components);
21
+ Array.isArray(p) && t ? o.push(`tuple(${p.join(",")})${i}`) : o.push(`(${p.join(",")})${i}`);
22
22
  } else
23
- e.push(o.type);
24
- }), e;
25
- }, m = (t) => {
26
- var n, e, o, r;
27
- return u(t) || y(t) || l(t) ? !((n = t.name) === null || n === void 0) && n.includes("(") ? t.name : `${(e = t.name) !== null && e !== void 0 ? e : ""}(${i(!1, (o = t.inputs) !== null && o !== void 0 ? o : []).join(",")})` : `(${i(!1, (r = t.inputs) !== null && r !== void 0 ? r : []).join(",")})`;
23
+ o.push(e.type);
24
+ }), o;
25
+ }, j = (t) => {
26
+ var n, o, e, r;
27
+ return f(t) || y(t) || l(t) ? !((n = t.name) === null || n === void 0) && n.includes("(") ? t.name : `${(o = t.name) !== null && o !== void 0 ? o : ""}(${c(!1, (e = t.inputs) !== null && e !== void 0 ? e : []).join(",")})` : `(${c(!1, (r = t.inputs) !== null && r !== void 0 ? r : []).join(",")})`;
28
28
  };
29
29
  export {
30
- i as flattenTypes,
30
+ c as flattenTypes,
31
31
  g as isAbiConstructorFragment,
32
- u as isAbiErrorFragment,
32
+ f as isAbiErrorFragment,
33
33
  y as isAbiEventFragment,
34
34
  l as isAbiFunctionFragment,
35
- j as isSimplifiedStructFormat,
36
- m as jsonInterfaceMethodToString,
35
+ m as isSimplifiedStructFormat,
36
+ j as jsonInterfaceMethodToString,
37
37
  a as mapStructNameAndType,
38
38
  b as mapStructToCoderFormat
39
39
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");const m=require("../../../../web3-validator/lib/esm/validation/string.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");const L=require("../tx/constants.cjs"),a=require("./enums.cjs"),k=require("./types.cjs"),p=require("../../../../web3-utils/lib/esm/converters.cjs"),R=require("../../../../web3-utils/lib/esm/uint8array.cjs"),I=r=>{if(typeof r!="string")throw new Error(`[stripHexPrefix] input must be type 'string', received ${typeof r}`);return m.isHexPrefixed(r)?r.slice(2):r};function D(r){return!r||r==="0x0"?"0x0000000000000000":m.isHexPrefixed(r)?`0x${I(r).padStart(16,"0")}`:`0x${r.padStart(16,"0")}`}const U=function(r){if(!Number.isSafeInteger(r)||r<0)throw new Error(`Received an invalid integer type: ${r}`);return`0x${r.toString(16)}`};function O(r,e=!0){var i,o;const{name:x,config:n,difficulty:E,mixHash:M,gasLimit:_,coinbase:N,baseFeePerGas:G}=r;let{extraData:T,timestamp:c,nonce:h}=r;const v=Number(c),{chainId:B}=n;if(T===""&&(T="0x"),m.isHexPrefixed(c)||(c=U(parseInt(c))),h.length!==18&&(h=D(h)),n.eip155Block!==n.eip158Block)throw new Error("EIP155 block number must equal EIP 158 block number since both are part of SpuriousDragon hardfork and the client only supports activating the full hardfork");const s={name:x,chainId:B,networkId:B,genesis:{timestamp:c,gasLimit:parseInt(_),difficulty:parseInt(E),nonce:h,extraData:T,mixHash:M,coinbase:N,baseFeePerGas:G},hardfork:void 0,hardforks:[],bootstrapNodes:[],consensus:n.clique!==void 0?{type:"poa",algorithm:"clique",clique:{period:(i=n.clique.period)!==null&&i!==void 0?i:n.clique.blockperiodseconds,epoch:(o=n.clique.epoch)!==null&&o!==void 0?o:n.clique.epochlength}}:{type:"pow",algorithm:"ethash",ethash:{}}},l={[a.Hardfork.Homestead]:{name:"homesteadBlock"},[a.Hardfork.Dao]:{name:"daoForkBlock"},[a.Hardfork.TangerineWhistle]:{name:"eip150Block"},[a.Hardfork.SpuriousDragon]:{name:"eip155Block"},[a.Hardfork.Byzantium]:{name:"byzantiumBlock"},[a.Hardfork.Constantinople]:{name:"constantinopleBlock"},[a.Hardfork.Petersburg]:{name:"petersburgBlock"},[a.Hardfork.Istanbul]:{name:"istanbulBlock"},[a.Hardfork.MuirGlacier]:{name:"muirGlacierBlock"},[a.Hardfork.Berlin]:{name:"berlinBlock"},[a.Hardfork.London]:{name:"londonBlock"},[a.Hardfork.MergeForkIdTransition]:{name:"mergeForkBlock",postMerge:e},[a.Hardfork.Shanghai]:{name:"shanghaiTime",postMerge:!0,isTimestamp:!0},[a.Hardfork.ShardingForkDev]:{name:"shardingForkTime",postMerge:!0,isTimestamp:!0}},b=Object.keys(l).reduce((t,f)=>(t[l[f].name]=f,t),{}),F=Object.keys(n).filter(t=>b[t]!==void 0&&n[t]!==void 0&&n[t]!==null);if(s.hardforks=F.map(t=>({name:b[t],block:l[b[t]].isTimestamp===!0||typeof n[t]!="number"?null:n[t],timestamp:l[b[t]].isTimestamp===!0&&typeof n[t]=="number"?n[t]:void 0})).filter(t=>t.block!==null||t.timestamp!==void 0),s.hardforks.sort((t,f)=>{var d,u;return((d=t.block)!==null&&d!==void 0?d:1/0)-((u=f.block)!==null&&u!==void 0?u:1/0)}),s.hardforks.sort((t,f)=>{var d,u;return((d=t.timestamp)!==null&&d!==void 0?d:v)-((u=f.timestamp)!==null&&u!==void 0?u:v)}),n.terminalTotalDifficulty!==void 0){const t={name:a.Hardfork.Merge,ttd:n.terminalTotalDifficulty,block:null},f=s.hardforks.findIndex(d=>{var u;return((u=l[d.name])===null||u===void 0?void 0:u.postMerge)===!0});f!==-1?s.hardforks.splice(f,0,t):s.hardforks.push(t)}const w=s.hardforks.length>0?s.hardforks.slice(-1)[0]:void 0;return s.hardfork=w==null?void 0:w.name,s.hardforks.unshift({name:a.Hardfork.Chainstart,block:0}),s}function C(r,e,i){try{if(["config","difficulty","gasLimit","alloc"].some(o=>!(o in r)))throw new Error("Invalid format, expected geth genesis fields missing");return e!==void 0&&(r.name=e),O(r,i)}catch(o){throw new Error(`Error parsing parameters file: ${o.message}`)}}function A(r){let e=r;if(typeof e!="string")throw new Error(`[padToEven] value must be type 'string', received ${typeof e}`);return e.length%2&&(e=`0${e}`),e}const z=function(r){const e=U(r);return p.hexToBytes(`0x${A(e.slice(2))}`)},g=function(r){var e;if(r==null)return new Uint8Array;if(r instanceof Uint8Array)return r;if(((e=r==null?void 0:r.constructor)===null||e===void 0?void 0:e.name)==="Uint8Array"||Array.isArray(r))return Uint8Array.from(r);if(typeof r=="string"){if(!m.isHexString(r))throw new Error(`Cannot convert string to Uint8Array. only supports 0x-prefixed hex strings and this string was given: ${r}`);return p.hexToBytes(A(I(r)))}if(typeof r=="number")return g(p.numberToHex(r));if(typeof r=="bigint"){if(r<BigInt(0))throw new Error(`Cannot convert negative bigint to Uint8Array. Given: ${r}`);let i=r.toString(16);return i.length%2&&(i=`0${i}`),g(`0x${i}`)}if(r.toArray)return Uint8Array.from(r.toArray());throw new Error("invalid type")};function y(r){const e=p.bytesToHex(r);return BigInt(e==="0x"?0:e)}function S(r){return g(`0x${r.toString(16)}`)}const q=function(r){return new Uint8Array(r).fill(0)},K=function(r,e,i){const o=q(e);return i?r.length<e?(o.set(r),o):r.subarray(0,e):r.length<e?(o.set(r,e-r.length),o):r.subarray(-e)};function H(r){if(!R.isUint8Array(r)){const e=`This method only supports Uint8Array but input was: ${r}`;throw new Error(e)}}const X=function(r,e){return H(r),K(r,e,!1)};function $(r){let e=r[0];for(;r.length>0&&e.toString()==="0";)r=r.slice(1),e=r[0];return r}const P=function(r){return H(r),$(r)},Z=r=>`0x${r.toString(16)}`;function V(r){return P(S(r))}function W(r,e){return r===BigInt(0)||r===BigInt(1)?r:e===void 0?r-BigInt(27):r-(e*BigInt(2)+BigInt(35))}function j(r){return r===BigInt(0)||r===BigInt(1)}const J=function(r,e,i,o,x){const n=W(e,x);if(!j(n))throw new Error("Invalid signature v value");return new L.secp256k1.Signature(y(i),y(o)).addRecoveryBit(Number(n)).recoverPublicKey(r).toRawBytes(!1).slice(1)};function Q(r,e){if(r===null)return null;if(r===void 0)return;if(typeof r=="string"&&!m.isHexString(r))throw new Error(`A string must be provided with a 0x-prefix, given: ${r}`);if(typeof r=="number"&&!Number.isSafeInteger(r))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const i=g(r);switch(e){case k.TypeOutput.Uint8Array:return i;case k.TypeOutput.BigInt:return y(i);case k.TypeOutput.Number:{const o=y(i);if(o>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(o)}case k.TypeOutput.PrefixedHexString:return p.bytesToHex(i);default:throw new Error("unknown outputType")}}exports.assertIsUint8Array=H;exports.bigIntToHex=Z;exports.bigIntToUint8Array=S;exports.bigIntToUnpaddedUint8Array=V;exports.ecrecover=J;exports.intToUint8Array=z;exports.padToEven=A;exports.parseGethGenesis=C;exports.setLengthLeft=X;exports.stripHexPrefix=I;exports.stripZeros=$;exports.toType=Q;exports.toUint8Array=g;exports.uint8ArrayToBigInt=y;exports.unpadUint8Array=P;exports.zeros=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");const y=require("../../../../web3-validator/lib/esm/validation/string.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");const L=require("../tx/constants.cjs"),o=require("./enums.cjs"),k=require("./types.cjs"),p=require("../../../../web3-utils/lib/esm/converters.cjs"),R=require("../../../../web3-utils/lib/esm/uint8array.cjs"),I=r=>{if(typeof r!="string")throw new Error(`[stripHexPrefix] input must be type 'string', received ${typeof r}`);return y.isHexPrefixed(r)?r.slice(2):r};function D(r){return!r||r==="0x0"?"0x0000000000000000":y.isHexPrefixed(r)?`0x${I(r).padStart(16,"0")}`:`0x${r.padStart(16,"0")}`}const U=function(r){if(!Number.isSafeInteger(r)||r<0)throw new Error(`Received an invalid integer type: ${r}`);return`0x${r.toString(16)}`};function O(r,e=!0){var i,a;const{name:x,config:n,difficulty:E,mixHash:M,gasLimit:_,coinbase:N,baseFeePerGas:G}=r;let{extraData:T,timestamp:c,nonce:h}=r;const v=Number(c),{chainId:B}=n;if(T===""&&(T="0x"),y.isHexPrefixed(c)||(c=U(parseInt(c))),h.length!==18&&(h=D(h)),n.eip155Block!==n.eip158Block)throw new Error("EIP155 block number must equal EIP 158 block number since both are part of SpuriousDragon hardfork and the client only supports activating the full hardfork");const s={name:x,chainId:B,networkId:B,genesis:{timestamp:c,gasLimit:parseInt(_),difficulty:parseInt(E),nonce:h,extraData:T,mixHash:M,coinbase:N,baseFeePerGas:G},hardfork:void 0,hardforks:[],bootstrapNodes:[],consensus:n.clique!==void 0?{type:"poa",algorithm:"clique",clique:{period:(i=n.clique.period)!==null&&i!==void 0?i:n.clique.blockperiodseconds,epoch:(a=n.clique.epoch)!==null&&a!==void 0?a:n.clique.epochlength}}:{type:"pow",algorithm:"ethash",ethash:{}}},l={[o.Hardfork.Homestead]:{name:"homesteadBlock"},[o.Hardfork.Dao]:{name:"daoForkBlock"},[o.Hardfork.TangerineWhistle]:{name:"eip150Block"},[o.Hardfork.SpuriousDragon]:{name:"eip155Block"},[o.Hardfork.Byzantium]:{name:"byzantiumBlock"},[o.Hardfork.Constantinople]:{name:"constantinopleBlock"},[o.Hardfork.Petersburg]:{name:"petersburgBlock"},[o.Hardfork.Istanbul]:{name:"istanbulBlock"},[o.Hardfork.MuirGlacier]:{name:"muirGlacierBlock"},[o.Hardfork.Berlin]:{name:"berlinBlock"},[o.Hardfork.London]:{name:"londonBlock"},[o.Hardfork.MergeForkIdTransition]:{name:"mergeForkBlock",postMerge:e},[o.Hardfork.Shanghai]:{name:"shanghaiTime",postMerge:!0,isTimestamp:!0},[o.Hardfork.ShardingForkDev]:{name:"shardingForkTime",postMerge:!0,isTimestamp:!0}},b=Object.keys(l).reduce((t,f)=>(t[l[f].name]=f,t),{}),F=Object.keys(n).filter(t=>b[t]!==void 0&&n[t]!==void 0&&n[t]!==null);if(s.hardforks=F.map(t=>({name:b[t],block:l[b[t]].isTimestamp===!0||typeof n[t]!="number"?null:n[t],timestamp:l[b[t]].isTimestamp===!0&&typeof n[t]=="number"?n[t]:void 0})).filter(t=>t.block!==null||t.timestamp!==void 0),s.hardforks.sort((t,f)=>{var d,u;return((d=t.block)!==null&&d!==void 0?d:1/0)-((u=f.block)!==null&&u!==void 0?u:1/0)}),s.hardforks.sort((t,f)=>{var d,u;return((d=t.timestamp)!==null&&d!==void 0?d:v)-((u=f.timestamp)!==null&&u!==void 0?u:v)}),n.terminalTotalDifficulty!==void 0){const t={name:o.Hardfork.Merge,ttd:n.terminalTotalDifficulty,block:null},f=s.hardforks.findIndex(d=>{var u;return((u=l[d.name])===null||u===void 0?void 0:u.postMerge)===!0});f!==-1?s.hardforks.splice(f,0,t):s.hardforks.push(t)}const w=s.hardforks.length>0?s.hardforks.slice(-1)[0]:void 0;return s.hardfork=w==null?void 0:w.name,s.hardforks.unshift({name:o.Hardfork.Chainstart,block:0}),s}function C(r,e,i){try{if(["config","difficulty","gasLimit","alloc"].some(a=>!(a in r)))throw new Error("Invalid format, expected geth genesis fields missing");return e!==void 0&&(r.name=e),O(r,i)}catch(a){throw new Error(`Error parsing parameters file: ${a.message}`)}}function A(r){let e=r;if(typeof e!="string")throw new Error(`[padToEven] value must be type 'string', received ${typeof e}`);return e.length%2&&(e=`0${e}`),e}const z=function(r){const e=U(r);return p.hexToBytes(`0x${A(e.slice(2))}`)},g=function(r){var e;if(r==null)return new Uint8Array;if(r instanceof Uint8Array)return r;if(((e=r==null?void 0:r.constructor)===null||e===void 0?void 0:e.name)==="Uint8Array"||Array.isArray(r))return Uint8Array.from(r);if(typeof r=="string"){if(!y.isHexString(r))throw new Error(`Cannot convert string to Uint8Array. only supports 0x-prefixed hex strings and this string was given: ${r}`);return p.hexToBytes(A(I(r)))}if(typeof r=="number")return g(p.numberToHex(r));if(typeof r=="bigint"){if(r<BigInt(0))throw new Error(`Cannot convert negative bigint to Uint8Array. Given: ${r}`);let i=r.toString(16);return i.length%2&&(i=`0${i}`),g(`0x${i}`)}if(r.toArray)return Uint8Array.from(r.toArray());throw new Error("invalid type")};function m(r){const e=p.bytesToHex(r);return BigInt(e==="0x"?0:e)}function S(r){return g(`0x${r.toString(16)}`)}const q=function(r){return new Uint8Array(r).fill(0)},K=function(r,e,i){const a=q(e);return r.length<e?(a.set(r,e-r.length),a):r.subarray(-e)};function H(r){if(!R.isUint8Array(r)){const e=`This method only supports Uint8Array but input was: ${r}`;throw new Error(e)}}const X=function(r,e){return H(r),K(r,e)};function $(r){let e=r[0];for(;r.length>0&&e.toString()==="0";)r=r.slice(1),e=r[0];return r}const P=function(r){return H(r),$(r)},Z=r=>`0x${r.toString(16)}`;function V(r){return P(S(r))}function W(r,e){return r===BigInt(0)||r===BigInt(1)?r:e===void 0?r-BigInt(27):r-(e*BigInt(2)+BigInt(35))}function j(r){return r===BigInt(0)||r===BigInt(1)}const J=function(r,e,i,a,x){const n=W(e,x);if(!j(n))throw new Error("Invalid signature v value");return new L.secp256k1.Signature(m(i),m(a)).addRecoveryBit(Number(n)).recoverPublicKey(r).toRawBytes(!1).slice(1)};function Q(r,e){if(r===null)return null;if(r===void 0)return;if(typeof r=="string"&&!y.isHexString(r))throw new Error(`A string must be provided with a 0x-prefix, given: ${r}`);if(typeof r=="number"&&!Number.isSafeInteger(r))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const i=g(r);switch(e){case k.TypeOutput.Uint8Array:return i;case k.TypeOutput.BigInt:return m(i);case k.TypeOutput.Number:{const a=m(i);if(a>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(a)}case k.TypeOutput.PrefixedHexString:return p.bytesToHex(i);default:throw new Error("unknown outputType")}}exports.assertIsUint8Array=H;exports.bigIntToHex=Z;exports.bigIntToUint8Array=S;exports.bigIntToUnpaddedUint8Array=V;exports.ecrecover=J;exports.intToUint8Array=z;exports.padToEven=A;exports.parseGethGenesis=C;exports.setLengthLeft=X;exports.stripHexPrefix=I;exports.stripZeros=$;exports.toType=Q;exports.toUint8Array=g;exports.uint8ArrayToBigInt=m;exports.unpadUint8Array=P;exports.zeros=q;
@@ -6,7 +6,7 @@ import "../../../../web3-types/lib/esm/data_format_types.js";
6
6
  import "../../../../web3-types/lib/esm/eth_types.js";
7
7
  import "../../../../web3-types/lib/esm/web3_base_provider.js";
8
8
  import { secp256k1 as F } from "../tx/constants.js";
9
- import { Hardfork as a } from "./enums.js";
9
+ import { Hardfork as o } from "./enums.js";
10
10
  import { TypeOutput as g } from "./types.js";
11
11
  import { hexToBytes as B, numberToHex as R, bytesToHex as v } from "../../../../web3-utils/lib/esm/converters.js";
12
12
  import { isUint8Array as q } from "../../../../web3-utils/lib/esm/uint8array.js";
@@ -24,7 +24,7 @@ const U = function(r) {
24
24
  return `0x${r.toString(16)}`;
25
25
  };
26
26
  function L(r, e = !0) {
27
- var i, o;
27
+ var i, a;
28
28
  const { name: b, config: n, difficulty: I, mixHash: _, gasLimit: M, coinbase: N, baseFeePerGas: P } = r;
29
29
  let { extraData: k, timestamp: c, nonce: p } = r;
30
30
  const T = Number(c), { chainId: A } = n;
@@ -61,7 +61,7 @@ function L(r, e = !0) {
61
61
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
62
62
  period: (i = n.clique.period) !== null && i !== void 0 ? i : n.clique.blockperiodseconds,
63
63
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
64
- epoch: (o = n.clique.epoch) !== null && o !== void 0 ? o : n.clique.epochlength
64
+ epoch: (a = n.clique.epoch) !== null && a !== void 0 ? a : n.clique.epochlength
65
65
  }
66
66
  } : {
67
67
  type: "pow",
@@ -70,23 +70,23 @@ function L(r, e = !0) {
70
70
  }
71
71
  )
72
72
  }, d = {
73
- [a.Homestead]: { name: "homesteadBlock" },
74
- [a.Dao]: { name: "daoForkBlock" },
75
- [a.TangerineWhistle]: { name: "eip150Block" },
76
- [a.SpuriousDragon]: { name: "eip155Block" },
77
- [a.Byzantium]: { name: "byzantiumBlock" },
78
- [a.Constantinople]: { name: "constantinopleBlock" },
79
- [a.Petersburg]: { name: "petersburgBlock" },
80
- [a.Istanbul]: { name: "istanbulBlock" },
81
- [a.MuirGlacier]: { name: "muirGlacierBlock" },
82
- [a.Berlin]: { name: "berlinBlock" },
83
- [a.London]: { name: "londonBlock" },
84
- [a.MergeForkIdTransition]: {
73
+ [o.Homestead]: { name: "homesteadBlock" },
74
+ [o.Dao]: { name: "daoForkBlock" },
75
+ [o.TangerineWhistle]: { name: "eip150Block" },
76
+ [o.SpuriousDragon]: { name: "eip155Block" },
77
+ [o.Byzantium]: { name: "byzantiumBlock" },
78
+ [o.Constantinople]: { name: "constantinopleBlock" },
79
+ [o.Petersburg]: { name: "petersburgBlock" },
80
+ [o.Istanbul]: { name: "istanbulBlock" },
81
+ [o.MuirGlacier]: { name: "muirGlacierBlock" },
82
+ [o.Berlin]: { name: "berlinBlock" },
83
+ [o.London]: { name: "londonBlock" },
84
+ [o.MergeForkIdTransition]: {
85
85
  name: "mergeForkBlock",
86
86
  postMerge: e
87
87
  },
88
- [a.Shanghai]: { name: "shanghaiTime", postMerge: !0, isTimestamp: !0 },
89
- [a.ShardingForkDev]: {
88
+ [o.Shanghai]: { name: "shanghaiTime", postMerge: !0, isTimestamp: !0 },
89
+ [o.ShardingForkDev]: {
90
90
  name: "shardingForkTime",
91
91
  postMerge: !0,
92
92
  isTimestamp: !0
@@ -126,7 +126,7 @@ function L(r, e = !0) {
126
126
  return ((l = t.timestamp) !== null && l !== void 0 ? l : T) - ((u = f.timestamp) !== null && u !== void 0 ? u : T);
127
127
  }), n.terminalTotalDifficulty !== void 0) {
128
128
  const t = {
129
- name: a.Merge,
129
+ name: o.Merge,
130
130
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
131
131
  ttd: n.terminalTotalDifficulty,
132
132
  // eslint-disable-next-line no-null/no-null
@@ -141,15 +141,15 @@ function L(r, e = !0) {
141
141
  f !== -1 ? s.hardforks.splice(f, 0, t) : s.hardforks.push(t);
142
142
  }
143
143
  const w = s.hardforks.length > 0 ? s.hardforks.slice(-1)[0] : void 0;
144
- return s.hardfork = w == null ? void 0 : w.name, s.hardforks.unshift({ name: a.Chainstart, block: 0 }), s;
144
+ return s.hardfork = w == null ? void 0 : w.name, s.hardforks.unshift({ name: o.Chainstart, block: 0 }), s;
145
145
  }
146
146
  function sr(r, e, i) {
147
147
  try {
148
- if (["config", "difficulty", "gasLimit", "alloc"].some((o) => !(o in r)))
148
+ if (["config", "difficulty", "gasLimit", "alloc"].some((a) => !(a in r)))
149
149
  throw new Error("Invalid format, expected geth genesis fields missing");
150
150
  return e !== void 0 && (r.name = e), L(r, i);
151
- } catch (o) {
152
- throw new Error(`Error parsing parameters file: ${o.message}`);
151
+ } catch (a) {
152
+ throw new Error(`Error parsing parameters file: ${a.message}`);
153
153
  }
154
154
  }
155
155
  function $(r) {
@@ -196,8 +196,8 @@ function C(r) {
196
196
  const z = function(r) {
197
197
  return new Uint8Array(r).fill(0);
198
198
  }, K = function(r, e, i) {
199
- const o = z(e);
200
- return i ? r.length < e ? (o.set(r), o) : r.subarray(0, e) : r.length < e ? (o.set(r, e - r.length), o) : r.subarray(-e);
199
+ const a = z(e);
200
+ return r.length < e ? (a.set(r, e - r.length), a) : r.subarray(-e);
201
201
  };
202
202
  function H(r) {
203
203
  if (!q(r)) {
@@ -206,7 +206,7 @@ function H(r) {
206
206
  }
207
207
  }
208
208
  const fr = function(r, e) {
209
- return H(r), K(r, e, !1);
209
+ return H(r), K(r, e);
210
210
  };
211
211
  function O(r) {
212
212
  let e = r[0];
@@ -226,11 +226,11 @@ function V(r, e) {
226
226
  function W(r) {
227
227
  return r === BigInt(0) || r === BigInt(1);
228
228
  }
229
- const dr = function(r, e, i, o, b) {
229
+ const dr = function(r, e, i, a, b) {
230
230
  const n = V(e, b);
231
231
  if (!W(n))
232
232
  throw new Error("Invalid signature v value");
233
- return new F.Signature(y(i), y(o)).addRecoveryBit(Number(n)).recoverPublicKey(r).toRawBytes(!1).slice(1);
233
+ return new F.Signature(y(i), y(a)).addRecoveryBit(Number(n)).recoverPublicKey(r).toRawBytes(!1).slice(1);
234
234
  };
235
235
  function pr(r, e) {
236
236
  if (r === null)
@@ -248,10 +248,10 @@ function pr(r, e) {
248
248
  case g.BigInt:
249
249
  return y(i);
250
250
  case g.Number: {
251
- const o = y(i);
252
- if (o > BigInt(Number.MAX_SAFE_INTEGER))
251
+ const a = y(i);
252
+ if (a > BigInt(Number.MAX_SAFE_INTEGER))
253
253
  throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");
254
- return Number(o);
254
+ return Number(a);
255
255
  }
256
256
  case g.PrefixedHexString:
257
257
  return v(i);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=e=>typeof e=="string",n=e=>typeof e=="string"&&/^((-)?0x[0-9a-f]+|(0x))$/i.test(e);function o(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||typeof t<"u"&&t>0&&e.length!==2+2*t)}const s=e=>typeof e=="number"||typeof e=="bigint"||typeof e=="string"&&/^((-0x|0x|-)?[0-9a-f]+|(0x))$/i.test(e);function f(e){if(typeof e!="string")throw new Error(`[isHexPrefixed] input must be type 'string', received type ${typeof e}`);return e.startsWith("0x")}const c=function(e){for(const[t,i]of Object.entries(e))if(i!==void 0&&i.length>0&&i[0]===0)throw new Error(`${t} cannot have leading zeroes, received: ${i.toString()}`)};exports.isHex=s;exports.isHexPrefixed=f;exports.isHexStrict=n;exports.isHexString=o;exports.isString=r;exports.validateNoLeadingZeroes=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=e=>typeof e=="string",r=e=>typeof e=="string"&&/^((-)?0x[0-9a-f]+|(0x))$/i.test(e);function o(e,i){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/))}const s=e=>typeof e=="number"||typeof e=="bigint"||typeof e=="string"&&/^((-0x|0x|-)?[0-9a-f]+|(0x))$/i.test(e);function f(e){if(typeof e!="string")throw new Error(`[isHexPrefixed] input must be type 'string', received type ${typeof e}`);return e.startsWith("0x")}const g=function(e){for(const[i,t]of Object.entries(e))if(t!==void 0&&t.length>0&&t[0]===0)throw new Error(`${i} cannot have leading zeroes, received: ${t.toString()}`)};exports.isHex=s;exports.isHexPrefixed=f;exports.isHexStrict=r;exports.isHexString=o;exports.isString=n;exports.validateNoLeadingZeroes=g;
@@ -1,21 +1,21 @@
1
1
  const n = (t) => typeof t == "string", r = (t) => typeof t == "string" && /^((-)?0x[0-9a-f]+|(0x))$/i.test(t);
2
- function o(t, e) {
3
- return !(typeof t != "string" || !t.match(/^0x[0-9A-Fa-f]*$/) || typeof e < "u" && e > 0 && t.length !== 2 + 2 * e);
2
+ function o(t, i) {
3
+ return !(typeof t != "string" || !t.match(/^0x[0-9A-Fa-f]*$/));
4
4
  }
5
- const f = (t) => typeof t == "number" || typeof t == "bigint" || typeof t == "string" && /^((-0x|0x|-)?[0-9a-f]+|(0x))$/i.test(t);
6
- function s(t) {
5
+ const s = (t) => typeof t == "number" || typeof t == "bigint" || typeof t == "string" && /^((-0x|0x|-)?[0-9a-f]+|(0x))$/i.test(t);
6
+ function f(t) {
7
7
  if (typeof t != "string")
8
8
  throw new Error(`[isHexPrefixed] input must be type 'string', received type ${typeof t}`);
9
9
  return t.startsWith("0x");
10
10
  }
11
11
  const c = function(t) {
12
- for (const [e, i] of Object.entries(t))
13
- if (i !== void 0 && i.length > 0 && i[0] === 0)
14
- throw new Error(`${e} cannot have leading zeroes, received: ${i.toString()}`);
12
+ for (const [i, e] of Object.entries(t))
13
+ if (e !== void 0 && e.length > 0 && e[0] === 0)
14
+ throw new Error(`${i} cannot have leading zeroes, received: ${e.toString()}`);
15
15
  };
16
16
  export {
17
- f as isHex,
18
- s as isHexPrefixed,
17
+ s as isHex,
18
+ f as isHexPrefixed,
19
19
  r as isHexStrict,
20
20
  o as isHexString,
21
21
  n as isString,
@@ -746,14 +746,6 @@ const accessMiddlewaresFactory = verifyAccesses;
746
746
  var departments_routes = function(app, db) {
747
747
  const controller = controllerFactory$3(db);
748
748
  accessMiddlewaresFactory(db);
749
- app.use(function(req, res2, next) {
750
- res2.header(
751
- "Access-Control-Allow-Headers",
752
- "Access-Control-Allow-Origin",
753
- "x-access-token, Origin, Content-Type, Accept"
754
- );
755
- next();
756
- });
757
749
  app.get(
758
750
  "/api/departments/read",
759
751
  // [
@@ -769,14 +761,6 @@ var departments_routes = function(app, db) {
769
761
  const controllerFactory$2 = organizations_controller;
770
762
  var organizations_routes = function(app, db) {
771
763
  const controller = controllerFactory$2(db);
772
- app.use(function(req, res2, next) {
773
- res2.header(
774
- "Access-Control-Allow-Headers",
775
- "Access-Control-Allow-Origin",
776
- "x-access-token, Origin, Content-Type, Accept"
777
- );
778
- next();
779
- });
780
764
  app.get(
781
765
  "/api/organizations",
782
766
  controller.read
@@ -797,14 +781,6 @@ var organizations_routes = function(app, db) {
797
781
  const controllerFactory$1 = memberships_controller;
798
782
  var memberships_routes = function(app, db) {
799
783
  const controller = controllerFactory$1(db);
800
- app.use(function(req, res2, next) {
801
- res2.header(
802
- "Access-Control-Allow-Headers",
803
- "Access-Control-Allow-Origin",
804
- "x-access-token, Origin, Content-Type, Accept"
805
- );
806
- next();
807
- });
808
784
  app.get(
809
785
  "/api/memberships",
810
786
  controller.read
@@ -827,14 +803,6 @@ const middlewareFactory = index.server;
827
803
  var invites_routes = function(app, db) {
828
804
  const controller = controllerFactory(db);
829
805
  const { verifyInvites } = middlewareFactory(db);
830
- app.use(function(req, res2, next) {
831
- res2.header(
832
- "Access-Control-Allow-Headers",
833
- "Access-Control-Allow-Origin",
834
- "x-access-token, Origin, Content-Type, Accept"
835
- );
836
- next();
837
- });
838
806
  app.get(
839
807
  "/api/invites/get/:_id",
840
808
  controller.getOneByCode
@@ -745,14 +745,6 @@ const accessMiddlewaresFactory = verifyAccesses;
745
745
  var departments_routes = function(app, db) {
746
746
  const controller = controllerFactory$3(db);
747
747
  accessMiddlewaresFactory(db);
748
- app.use(function(req, res2, next) {
749
- res2.header(
750
- "Access-Control-Allow-Headers",
751
- "Access-Control-Allow-Origin",
752
- "x-access-token, Origin, Content-Type, Accept"
753
- );
754
- next();
755
- });
756
748
  app.get(
757
749
  "/api/departments/read",
758
750
  // [
@@ -768,14 +760,6 @@ var departments_routes = function(app, db) {
768
760
  const controllerFactory$2 = organizations_controller;
769
761
  var organizations_routes = function(app, db) {
770
762
  const controller = controllerFactory$2(db);
771
- app.use(function(req, res2, next) {
772
- res2.header(
773
- "Access-Control-Allow-Headers",
774
- "Access-Control-Allow-Origin",
775
- "x-access-token, Origin, Content-Type, Accept"
776
- );
777
- next();
778
- });
779
763
  app.get(
780
764
  "/api/organizations",
781
765
  controller.read
@@ -796,14 +780,6 @@ var organizations_routes = function(app, db) {
796
780
  const controllerFactory$1 = memberships_controller;
797
781
  var memberships_routes = function(app, db) {
798
782
  const controller = controllerFactory$1(db);
799
- app.use(function(req, res2, next) {
800
- res2.header(
801
- "Access-Control-Allow-Headers",
802
- "Access-Control-Allow-Origin",
803
- "x-access-token, Origin, Content-Type, Accept"
804
- );
805
- next();
806
- });
807
783
  app.get(
808
784
  "/api/memberships",
809
785
  controller.read
@@ -826,14 +802,6 @@ const middlewareFactory = server;
826
802
  var invites_routes = function(app, db) {
827
803
  const controller = controllerFactory(db);
828
804
  const { verifyInvites } = middlewareFactory(db);
829
- app.use(function(req, res2, next) {
830
- res2.header(
831
- "Access-Control-Allow-Headers",
832
- "Access-Control-Allow-Origin",
833
- "x-access-token, Origin, Content-Type, Accept"
834
- );
835
- next();
836
- });
837
805
  app.get(
838
806
  "/api/invites/get/:_id",
839
807
  controller.getOneByCode
@@ -670,14 +670,6 @@ var products_controller = controllerFactory$5;
670
670
  const controllerFactory$4 = products_controller;
671
671
  var products_routes = function(app, db, allowedOrigins) {
672
672
  const controller = controllerFactory$4(db);
673
- app.use(function(req, res, next) {
674
- res.header(
675
- "Access-Control-Allow-Headers",
676
- "Access-Control-Allow-Origin: *",
677
- "x-access-token, Origin, Content-Type, Accept"
678
- );
679
- next();
680
- });
681
673
  app.post(
682
674
  "/api/products/create",
683
675
  controller.Create
@@ -809,14 +801,6 @@ const middlewareFactory = index.server;
809
801
  var categories_routes = function(app, db) {
810
802
  const controller = controllerFactory$2(db);
811
803
  const { verifyCategory } = middlewareFactory(db);
812
- app.use(function(req, res, next) {
813
- res.header(
814
- "Access-Control-Allow-Headers",
815
- "Access-Control-Allow-Origin",
816
- "x-access-token, Origin, Content-Type, Accept"
817
- );
818
- next();
819
- });
820
804
  app.get(
821
805
  "/categories",
822
806
  controller.getCategories
@@ -968,10 +952,6 @@ var leftovers_controller = controllerFactory$1;
968
952
  const controllerFactory = leftovers_controller;
969
953
  var leftovers_routes = function(app, db) {
970
954
  const controller = controllerFactory(db);
971
- app.use(function(req, res, next) {
972
- res.header("Access-Control-Allow-Headers", "Access-Control-Allow-Origin: *", "x-access-token, Origin, Content-Type, Accept");
973
- next();
974
- });
975
955
  app.get(
976
956
  "/leftovers",
977
957
  controller.read
@@ -668,14 +668,6 @@ var products_controller = controllerFactory$5;
668
668
  const controllerFactory$4 = products_controller;
669
669
  var products_routes = function(app, db, allowedOrigins) {
670
670
  const controller = controllerFactory$4(db);
671
- app.use(function(req, res, next) {
672
- res.header(
673
- "Access-Control-Allow-Headers",
674
- "Access-Control-Allow-Origin: *",
675
- "x-access-token, Origin, Content-Type, Accept"
676
- );
677
- next();
678
- });
679
671
  app.post(
680
672
  "/api/products/create",
681
673
  controller.Create
@@ -807,14 +799,6 @@ const middlewareFactory = server;
807
799
  var categories_routes = function(app, db) {
808
800
  const controller = controllerFactory$2(db);
809
801
  const { verifyCategory } = middlewareFactory(db);
810
- app.use(function(req, res, next) {
811
- res.header(
812
- "Access-Control-Allow-Headers",
813
- "Access-Control-Allow-Origin",
814
- "x-access-token, Origin, Content-Type, Accept"
815
- );
816
- next();
817
- });
818
802
  app.get(
819
803
  "/categories",
820
804
  controller.getCategories
@@ -966,10 +950,6 @@ var leftovers_controller = controllerFactory$1;
966
950
  const controllerFactory = leftovers_controller;
967
951
  var leftovers_routes = function(app, db) {
968
952
  const controller = controllerFactory(db);
969
- app.use(function(req, res, next) {
970
- res.header("Access-Control-Allow-Headers", "Access-Control-Allow-Origin: *", "x-access-token, Origin, Content-Type, Accept");
971
- next();
972
- });
973
953
  app.get(
974
954
  "/leftovers",
975
955
  controller.read