@nexusmutual/sdk 0.4.15 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="429" height="214" fill="none"><path fill="#000" d="M0 214h71.376l14.567-39.39-32.775-67.11L0 214ZM189.366 160.75 109.978 1 85.943 55.709 160.96 214H215l-25.634-53.25Z"/><path fill="#000" fill-rule="evenodd" d="M322 214c59.094 0 107-47.906 107-107S381.094 0 322 0 215 47.906 215 107s47.906 107 107 107Zm0-42c35.899 0 65-29.101 65-65 0-35.898-29.101-65-65-65s-65 29.102-65 65c0 35.899 29.101 65 65 65Z" clip-rule="evenodd"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72"><path d="M264.9 70.7c1-.2 1.6-1.3 1.3-2.5-.3-1.1-1.3-1.9-2.3-1.7s-1.6 1.3-1.3 2.5c.3 1.2 1.3 1.9 2.3 1.7z" style="fill:#4a98ea"/><linearGradient id="a" x1="29.325" x2="91.21" y1="48.784" y2="71.312" gradientTransform="matrix(1 0 0 -1 0 120)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#29BCFA"/><stop offset=".43" stop-color="#6464E4"/><stop offset="1" stop-color="#B45AFA"/></linearGradient><path d="m95.8 64.4-2.7-10.5c-.1-.3-.3-.6-.6-.6L82 50.7h-.2c-.2 0-.5.1-.7.2L63.5 68.5l-2.3-9.1c-.1-.3-.3-.6-.6-.6l-9-2.2L69.1 39c.1-.1.2-.2.2-.4.1-.2.1-.4.1-.6l-2.7-10.5c-.1-.3-.3-.6-.6-.6l-10.4-2.6c-.2-.1-.4 0-.6.1-.1 0-.1.1-.1.1l-.1.1-30.1 30-.1.1c-.2.2-.3.5-.2.8l2.9 10.2c.1.3.3.5.6.6l9.8 2.8 2.8 9.8c.1.3.3.5.6.6l9.8 2.8 2.8 9.8c.1.3.3.5.6.6l10.2 2.9h.3c.2 0 .4-.1.6-.3l30.1-30.1c.1-.1.2-.2.2-.4 0 0 .1-.2 0-.4zM82.3 76.1l-2.2-8.6 4.9-4.9 8.4 2.4-11.1 11.1zm-17 17.1-2.2-8.6 8.8-8.8 8.4 2.4-15 15zm6.8-20L70 65.9l7.5 1.9-5.4 5.4zm6.6-4.2 1.9 7.5-7.3-2.1 5.4-5.4zm.3-2.7-8.6-2.1 11-11 2.4 8.3-4.8 4.8zm-10.7 0 2.4 8.3-8.8 8.8-8.6-2.1 15-15zm23.2-11.5 2.2 8.6-8.3-2.4-2.4-8.3 8.5 2.1zM52 80l-2.2-8.6 3.2-3.2 8.4 2.4L52 80zm1.2-14.4-2.1-7.3 7.5 1.9-5.4 5.4zm8.6 3.3-7.3-2.1 5.4-5.4 1.9 7.5zm-10-1.9-3.1 3.1-8.6-2.1 9.3-9.3 2.4 8.3zM42 39.8l2.4 8.3-8.8 8.8-8.6-2.1 15-15zm13-13 2.4 8.3-4.7 4.7-8.6-2.1L55 26.8zm1 22.8L53.8 41l4.8-4.8 8.4 2.4-11 11zm-10.3-2.9-2.1-7.3 7.5 1.9-5.4 5.4zm6.7-4.2 1.9 7.5-7.3-2.1 5.4-5.4zm-6.8 6.8 8.4 2.4-15 15-2.2-8.6 8.8-8.8zm19.5-20.9 2.2 8.6-8.3-2.4-2.4-8.3 8.5 2.1zM26.5 56.5l7.5 1.9-5.4 5.4-2.1-7.3zm3.3 8.6 5.4-5.4 1.9 7.5-7.3-2.1zM42.1 78l-2.4-8.3 8.5 2.1 2.2 8.6-8.3-2.4zm10.8 4.9 7.5 1.9-5.4 5.4-2.1-7.3zm3.3 8.6 5.4-5.4 1.9 7.5-7.3-2.1z" style="fill:url(#a)" transform="translate(-24 -24)"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72"><path d="M264.9 70.7c1-.2 1.6-1.3 1.3-2.5-.3-1.1-1.3-1.9-2.3-1.7s-1.6 1.3-1.3 2.5c.3 1.2 1.3 1.9 2.3 1.7z" style="fill:#4a98ea"/><linearGradient id="a" x1="29.325" x2="91.21" y1="48.784" y2="71.312" gradientTransform="matrix(1 0 0 -1 0 120)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#29BCFA"/><stop offset=".43" stop-color="#6464E4"/><stop offset="1" stop-color="#B45AFA"/></linearGradient><path d="m95.8 64.4-2.7-10.5c-.1-.3-.3-.6-.6-.6L82 50.7h-.2c-.2 0-.5.1-.7.2L63.5 68.5l-2.3-9.1c-.1-.3-.3-.6-.6-.6l-9-2.2L69.1 39c.1-.1.2-.2.2-.4.1-.2.1-.4.1-.6l-2.7-10.5c-.1-.3-.3-.6-.6-.6l-10.4-2.6c-.2-.1-.4 0-.6.1-.1 0-.1.1-.1.1l-.1.1-30.1 30-.1.1c-.2.2-.3.5-.2.8l2.9 10.2c.1.3.3.5.6.6l9.8 2.8 2.8 9.8c.1.3.3.5.6.6l9.8 2.8 2.8 9.8c.1.3.3.5.6.6l10.2 2.9h.3c.2 0 .4-.1.6-.3l30.1-30.1c.1-.1.2-.2.2-.4 0 0 .1-.2 0-.4zM82.3 76.1l-2.2-8.6 4.9-4.9 8.4 2.4-11.1 11.1zm-17 17.1-2.2-8.6 8.8-8.8 8.4 2.4-15 15zm6.8-20L70 65.9l7.5 1.9-5.4 5.4zm6.6-4.2 1.9 7.5-7.3-2.1 5.4-5.4zm.3-2.7-8.6-2.1 11-11 2.4 8.3-4.8 4.8zm-10.7 0 2.4 8.3-8.8 8.8-8.6-2.1 15-15zm23.2-11.5 2.2 8.6-8.3-2.4-2.4-8.3 8.5 2.1zM52 80l-2.2-8.6 3.2-3.2 8.4 2.4L52 80zm1.2-14.4-2.1-7.3 7.5 1.9-5.4 5.4zm8.6 3.3-7.3-2.1 5.4-5.4 1.9 7.5zm-10-1.9-3.1 3.1-8.6-2.1 9.3-9.3 2.4 8.3zM42 39.8l2.4 8.3-8.8 8.8-8.6-2.1 15-15zm13-13 2.4 8.3-4.7 4.7-8.6-2.1L55 26.8zm1 22.8L53.8 41l4.8-4.8 8.4 2.4-11 11zm-10.3-2.9-2.1-7.3 7.5 1.9-5.4 5.4zm6.7-4.2 1.9 7.5-7.3-2.1 5.4-5.4zm-6.8 6.8 8.4 2.4-15 15-2.2-8.6 8.8-8.8zm19.5-20.9 2.2 8.6-8.3-2.4-2.4-8.3 8.5 2.1zM26.5 56.5l7.5 1.9-5.4 5.4-2.1-7.3zm3.3 8.6 5.4-5.4 1.9 7.5-7.3-2.1zM42.1 78l-2.4-8.3 8.5 2.1 2.2 8.6-8.3-2.4zm10.8 4.9 7.5 1.9-5.4 5.4-2.1-7.3zm3.3 8.6 5.4-5.4 1.9 7.5-7.3-2.1z" style="fill:url(#a)" transform="translate(-24 -24)"/></svg>
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="346" height="347" fill="none"><circle cx="173" cy="173.728" r="173" fill="url(#a)"/><path fill="#fff" d="M106.836 219.209h-24.62c2.01 38.436 34.166 71.848 91.193 71.848 56.775 0 92.95-31.151 92.95-71.346 0-76.37-115.309-72.099-115.309-116.313 0-12.31 9.295-26.88 30.9-26.88 24.117 0 52.504 18.84 54.514 42.958h24.368c-2.512-38.939-40.446-66.07-88.679-66.07-49.993 0-87.675 29.14-87.675 70.34 0 78.631 115.308 68.331 115.308 116.816 0 15.073-9.295 27.634-32.658 27.634-29.141 0-58.533-20.348-60.292-48.987Zm20.6-110.033c0 59.789 114.304 47.982 114.304 111.791 0 19.093-12.561 35.924-27.634 40.195 5.275-5.024 9.295-16.078 9.295-26.629 0-59.036-114.555-50.997-114.555-111.54 0-20.349 13.063-36.678 29.392-41.702-6.28 7.536-10.802 17.334-10.802 27.885Z"/><defs><radialGradient id="a" cx="0" cy="0" r="1" gradientTransform="matrix(0 -538.897 538.897 0 173 539.624)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFEF79"/><stop offset="1" stop-color="#00C2A1"/></radialGradient></defs></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 483.18 483.18"><defs><radialGradient id="a" cx="-487.23" cy="-182.8" r="1" fx="-487.23" fy="-182.8" gradientTransform="rotate(-139.19 -50782.59 -44165.126) scale(243.05)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a273ff"/><stop offset="1" stop-color="#4331e9"/></radialGradient><radialGradient id="b" cx="-487.23" cy="-179.89" r="1" fx="-487.23" fy="-179.89" gradientTransform="rotate(-98.99 -41042.656 -73713.096) scale(247.39)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#f7a7f9"/><stop offset="1" stop-color="#00ddfb"/></radialGradient><radialGradient id="c" cx="241.59" cy="-265.17" r="247.57" fx="241.59" fy="-265.17" gradientTransform="matrix(1 0 0 -1 0 -23.58)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff3d0"/><stop offset="1" stop-color="#ffc044"/></radialGradient><radialGradient id="d" cx="-486.98" cy="-179.28" r="1" fx="-486.98" fy="-179.28" gradientTransform="rotate(-90 -37781.06 -82329.4) scale(247.14)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a273ff"/><stop offset=".5" stop-color="#9faeff"/><stop offset="1" stop-color="#aaf2e1"/></radialGradient><radialGradient id="e" cx="-479.46" cy="-179.36" r="1" fx="-479.46" fy="-179.36" gradientTransform="rotate(35.99 -127366.082 160268.03) scale(246.43)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#0075ff"/><stop offset="1" stop-color="#00ddfb"/></radialGradient><radialGradient id="f" cx="-479.52" cy="-183.19" r="1" fx="-479.52" fy="-183.19" gradientTransform="rotate(90 -81956.85 36889.39) scale(247.34)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffcd6b"/><stop offset="1" stop-color="#eb5edf"/></radialGradient><radialGradient id="g" cx="-479.53" cy="-183.18" r="1" fx="-479.53" fy="-183.18" gradientTransform="rotate(90 -82126.95 36966.7) scale(247.85)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#d4faff"/><stop offset="1" stop-color="#00ddfb"/></radialGradient><radialGradient id="h" cx="-480.82" cy="-184.32" r="1" fx="-480.82" fy="-184.32" gradientTransform="rotate(114.17 -79417.724 16999.602) scale(264.81)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffd2b9"/><stop offset=".29" stop-color="#c99bed"/><stop offset="1" stop-color="#0075ff"/></radialGradient><radialGradient id="i" cx="-484.75" cy="-184.1" r="1" fx="-484.75" fy="-184.1" gradientTransform="matrix(-321.8 0 0 -321.8 -155751 -59001.13)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#6d28ff"/><stop offset="1" stop-color="#f7a7f9"/></radialGradient><radialGradient id="j" cx="-486.98" cy="-179.28" r="1" fx="-486.98" fy="-179.28" gradientTransform="rotate(-90 -37781.06 -82329.4) scale(247.14)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a273ff"/><stop offset=".5" stop-color="#9faeff"/><stop offset="1" stop-color="#aaf2e1"/></radialGradient><radialGradient id="k" cx="-1608.95" cy="-188.31" r="1" fx="-1608.95" fy="-188.31" gradientTransform="rotate(90 -222267.44 175932.81) scale(247.34)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ffcd6b"/><stop offset="1" stop-color="#eb5edf"/></radialGradient><radialGradient id="l" cx="-487.23" cy="-182.8" r="1" fx="-487.23" fy="-182.8" gradientTransform="rotate(-139.19 -50782.59 -44165.126) scale(243.05)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a273ff"/><stop offset="1" stop-color="#4331e9"/></radialGradient><radialGradient id="m" cx="-485.2" cy="-184.96" r="1" fx="-485.2" fy="-184.96" gradientTransform="rotate(-180 -59936.865 -22773.03) scale(247.56)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff3d0"/><stop offset="1" stop-color="#ffc044"/></radialGradient><radialGradient id="n" cx="-487.23" cy="-182.8" r="1" fx="-487.23" fy="-182.8" gradientTransform="rotate(-139.19 -50782.59 -44165.126) scale(243.05)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a273ff"/><stop offset="1" stop-color="#4331e9"/></radialGradient></defs><g data-name="Sky-Logo-Dark_Background-RGB"><path d="M46.14 99.59a241.613 241.613 0 0 1 24.62-28.83l3 1.65 166.25 167.15 1.58 2.03-195.45-142Z" style="fill:url(#a)"/><path d="M70.76 70.76A241.651 241.651 0 0 1 203.8 2.97l1.67 4.59 36.12 230.82v3.2L70.76 70.76Z" data-name="Element" style="fill:url(#b)"/><path d="M351.3 26.35a240.45 240.45 0 0 1 32.3 19.8l-.43 3.76-140.7 190.98-.88.7L351.3 26.35Z" data-name="Element" style="fill:url(#c)"/><path d="M483.18 241.59c0 25.35-3.99 50.54-11.82 74.66l-5.71.92-222.28-74.67-1.78-.9h241.59Z" data-name="Element" style="fill:url(#d)"/><path d="M471.36 316.24a241.524 241.524 0 0 1-34.31 67.35l-5.51-.93-188.81-139.88-1.14-1.19 229.77 74.65Z" data-name="Element" style="fill:url(#e)"/><path d="M316.25 471.36a241.666 241.666 0 0 1-112.45 8.85l-1.51-4.63L240.5 245.7l1.09-4.11 74.66 229.77Z" data-name="Element" style="fill:url(#f)"/><path d="M203.8 480.21a241.51 241.51 0 0 1-36.86-8.85l-.67-5.59 73.95-221.66 1.38-2.52-37.79 238.62Z" data-name="Element" style="fill:url(#g)"/><path d="M166.94 471.36a241.286 241.286 0 0 1-67.35-34.32v-4.37l139.53-188.62 2.47-2.46-74.66 229.77Z" data-name="Element" style="fill:url(#h)"/><path d="M26.33 351.27A241.558 241.558 0 0 1 0 241.59l3.09-1.14h230.69l7.82 1.14L26.33 351.27Z" data-name="Element" style="fill:url(#i)"/><path d="M203.78 2.98c37.67-5.97 76.21-2.94 112.47 8.85L241.59 241.6 203.78 2.98Z" data-name="Element" style="fill:url(#j)"/><path d="M383.6 46.14a241.643 241.643 0 0 1 87.76 120.79l-229.77 74.66L383.6 46.14Z" data-name="Element" style="fill:url(#k)"/><path d="M99.59 437.04a241.551 241.551 0 0 1-53.45-53.45l195.45-142-142 195.45Z" data-name="Element" style="fill:url(#l)"/><path d="M0 241.59c0-25.35 3.99-50.55 11.82-74.66l229.77 74.66H0Z" data-name="Element" style="fill:url(#m)"/><path d="M437.05 383.58a241.551 241.551 0 0 1-53.45 53.45L241.59 241.59l195.46 141.99Z" data-name="Element" style="fill:url(#n)"/></g></svg>
package/package.json CHANGED
@@ -1,15 +1,18 @@
1
1
  {
2
2
  "name": "@nexusmutual/sdk",
3
- "version": "0.4.15",
3
+ "version": "0.5.1",
4
4
  "description": "Nexus Mutual SDK",
5
5
  "scripts": {
6
6
  "build": "node scripts/build.js",
7
- "lint": "eslint --max-warnings 0 .",
8
- "lint:fix": "npm run lint -- --fix",
7
+ "lint": "eslint --quiet --max-warnings 0 .",
8
+ "lint:fix": "npm run lint -- --fix --quiet",
9
9
  "format": "prettier --loglevel silent --check 'src/**/*.{js,jsx,ts,tsx}'",
10
10
  "format:fix": "prettier --loglevel silent --write 'src/**/*.{js,jsx,ts,tsx}'",
11
11
  "test": "jest",
12
12
  "test:watch": "jest --watch",
13
+ "ts:check": "npm run ts:check-types && npm run ts:circular-check",
14
+ "ts:check-types": "tsc --noEmit",
15
+ "ts:circular-check": "dpdm --no-output --no-tree --no-warning --exit-code circular:1 -T ./src/**/*.ts",
13
16
  "list:products": "node scripts/list-products.js",
14
17
  "list:product-types": "node scripts/list-product-types.js",
15
18
  "publish:next": "npm publish --access public --tag next"
@@ -46,6 +49,7 @@
46
49
  "@typescript-eslint/eslint-plugin": "^7.5.0",
47
50
  "@typescript-eslint/parser": "^7.5.0",
48
51
  "dotenv": "^16.0.3",
52
+ "dpdm": "3.11.0",
49
53
  "eslint": "^8.33.0",
50
54
  "eslint-config-prettier": "^8.6.0",
51
55
  "eslint-config-semistandard": "^17.0.0",
@@ -58,7 +62,7 @@
58
62
  "eslint-plugin-promise": "^6.1.1",
59
63
  "eslint-plugin-standard": "^5.0.0",
60
64
  "ethers": "^5.7.2",
61
- "husky": "9.0.11",
65
+ "husky": "^9.1.6",
62
66
  "is-ci": "3.0.1",
63
67
  "jest": "^29.7.0",
64
68
  "jest-mock-axios": "^4.7.3",
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" aria-hidden="true" viewBox="0 0 600 600"><defs><linearGradient id="a" x1="300" x2="300" y1="602" y2="2" gradientTransform="matrix(1 0 0 -1 0 602)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#4fa89b"/><stop offset="1" stop-color="#6acebb"/></linearGradient></defs><g data-name="Layer 2"><g data-name="Layer 1"><circle cx="300" cy="300" r="300" style="fill:url(#a)"/><path d="M152.34 390V248.8l107.08 80.59V390h27.33v-66.3a15.94 15.94 0 0 0-6.35-12.7l-129.86-97.77A16 16 0 0 0 125 226v164Zm296.14 0V248.8L341.4 329.39V390h-27.33v-66.3a15.94 15.94 0 0 1 6.35-12.7l129.86-97.73A16 16 0 0 1 475.82 226v164Z" style="fill:#fff"/></g></g></svg>