@lukso/web-components 1.131.0 → 1.132.0
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.
- package/dist/{cn-b6daa995.cjs → cn-CNdKneQ1.cjs} +141 -165
- package/dist/{cn-90c03edf.js → cn-Cu9aP49j.js} +139 -163
- package/dist/components/index.cjs +31 -40
- package/dist/components/index.js +4 -13
- package/dist/components/lukso-button/index.cjs +6 -7
- package/dist/components/lukso-button/index.d.ts +7 -7
- package/dist/components/lukso-button/index.js +6 -7
- package/dist/components/lukso-button/lukso-button.stories.d.ts +1 -1
- package/dist/components/lukso-card/index.cjs +10 -12
- package/dist/components/lukso-card/index.d.ts +8 -8
- package/dist/components/lukso-card/index.js +10 -12
- package/dist/components/lukso-card/lukso-card.stories.d.ts +1 -1
- package/dist/components/lukso-checkbox/index.cjs +5 -7
- package/dist/components/lukso-checkbox/index.d.ts +5 -5
- package/dist/components/lukso-checkbox/index.js +5 -7
- package/dist/components/lukso-checkbox/lukso-checkbox.stories.d.ts +1 -1
- package/dist/components/lukso-color-picker/index.cjs +7 -9
- package/dist/components/lukso-color-picker/index.d.ts +8 -8
- package/dist/components/lukso-color-picker/index.js +7 -9
- package/dist/components/lukso-color-picker/lukso-color-picker.stories.d.ts +1 -1
- package/dist/components/lukso-dropdown/index.cjs +7 -15
- package/dist/components/lukso-dropdown/index.d.ts +4 -4
- package/dist/components/lukso-dropdown/index.js +7 -15
- package/dist/components/lukso-dropdown/lukso-dropdown.stories.d.ts +1 -1
- package/dist/components/lukso-dropdown-option/index.cjs +4 -5
- package/dist/components/lukso-dropdown-option/index.d.ts +3 -3
- package/dist/components/lukso-dropdown-option/index.js +4 -5
- package/dist/components/lukso-dropdown-option/lukso-dropdown-option.stories.d.ts +1 -1
- package/dist/components/lukso-footer/index.cjs +3 -4
- package/dist/components/lukso-footer/index.d.ts +1 -1
- package/dist/components/lukso-footer/index.js +3 -4
- package/dist/components/lukso-footer/lukso-footer.stories.d.ts +1 -1
- package/dist/components/lukso-icon/icons/add-grid.d.ts +2 -2
- package/dist/components/lukso-icon/icons/add-grid.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/add-photo.d.ts +2 -2
- package/dist/components/lukso-icon/icons/add-photo.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-down-lg.d.ts +2 -2
- package/dist/components/lukso-icon/icons/arrow-down-lg.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-down-sm.d.ts +2 -2
- package/dist/components/lukso-icon/icons/arrow-down-sm.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-left-lg.d.ts +2 -2
- package/dist/components/lukso-icon/icons/arrow-left-lg.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-left-sm.d.ts +2 -2
- package/dist/components/lukso-icon/icons/arrow-left-sm.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-long-down.d.ts +2 -2
- package/dist/components/lukso-icon/icons/arrow-long-down.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-right-lg.d.ts +2 -2
- package/dist/components/lukso-icon/icons/arrow-right-lg.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-right-sm.d.ts +2 -2
- package/dist/components/lukso-icon/icons/arrow-right-sm.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-up-lg.d.ts +2 -2
- package/dist/components/lukso-icon/icons/arrow-up-lg.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-up-sm.d.ts +2 -2
- package/dist/components/lukso-icon/icons/arrow-up-sm.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/barbell-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/barbell-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/bitcoin-convert.d.ts +2 -2
- package/dist/components/lukso-icon/icons/bitcoin-convert.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/bulb-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/bulb-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/camera.d.ts +2 -2
- package/dist/components/lukso-icon/icons/camera.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/category.d.ts +2 -2
- package/dist/components/lukso-icon/icons/category.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/chart.d.ts +2 -2
- package/dist/components/lukso-icon/icons/chart.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/clipboard.d.ts +2 -2
- package/dist/components/lukso-icon/icons/clipboard.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/clock.d.ts +2 -2
- package/dist/components/lukso-icon/icons/clock.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/close-lg.d.ts +2 -2
- package/dist/components/lukso-icon/icons/close-lg.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/close-sm.d.ts +2 -2
- package/dist/components/lukso-icon/icons/close-sm.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/cloud.d.ts +2 -2
- package/dist/components/lukso-icon/icons/cloud.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/code-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/code-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/compass-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/compass-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/complete-filled-fade-in.d.ts +2 -2
- package/dist/components/lukso-icon/icons/complete-filled-fade-in.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/complete-filled.d.ts +2 -2
- package/dist/components/lukso-icon/icons/complete-filled.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/complete-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/complete-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/connect.d.ts +2 -2
- package/dist/components/lukso-icon/icons/connect.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/connections.d.ts +2 -2
- package/dist/components/lukso-icon/icons/connections.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/contract-lock.d.ts +2 -2
- package/dist/components/lukso-icon/icons/contract-lock.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/contract-signed.d.ts +2 -2
- package/dist/components/lukso-icon/icons/contract-signed.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/controller.d.ts +2 -2
- package/dist/components/lukso-icon/icons/controller.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/copy.d.ts +2 -2
- package/dist/components/lukso-icon/icons/copy.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/cross-filled-fade-in.d.ts +2 -2
- package/dist/components/lukso-icon/icons/cross-filled-fade-in.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/cross-filled.d.ts +2 -2
- package/dist/components/lukso-icon/icons/cross-filled.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/cross-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/cross-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/cube-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/cube-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/database.d.ts +2 -2
- package/dist/components/lukso-icon/icons/database.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/desktop-sharp.d.ts +2 -2
- package/dist/components/lukso-icon/icons/desktop-sharp.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/document-code.d.ts +2 -2
- package/dist/components/lukso-icon/icons/document-code.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/document-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/document-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/document-text.d.ts +2 -2
- package/dist/components/lukso-icon/icons/document-text.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/dots.d.ts +2 -2
- package/dist/components/lukso-icon/icons/dots.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/earth.d.ts +2 -2
- package/dist/components/lukso-icon/icons/earth.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/edit-doc.d.ts +2 -2
- package/dist/components/lukso-icon/icons/edit-doc.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/edit.d.ts +2 -2
- package/dist/components/lukso-icon/icons/edit.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/empty-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/empty-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/error.d.ts +2 -2
- package/dist/components/lukso-icon/icons/error.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/eth-logo.d.ts +2 -2
- package/dist/components/lukso-icon/icons/eth-logo.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/expand.d.ts +2 -2
- package/dist/components/lukso-icon/icons/expand.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/extension-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/extension-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/extension.d.ts +2 -2
- package/dist/components/lukso-icon/icons/extension.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/eye-hide.d.ts +2 -2
- package/dist/components/lukso-icon/icons/eye-hide.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/eye-show.d.ts +2 -2
- package/dist/components/lukso-icon/icons/eye-show.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/face-id.d.ts +2 -2
- package/dist/components/lukso-icon/icons/face-id.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/film-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/film-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/filter.d.ts +2 -2
- package/dist/components/lukso-icon/icons/filter.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/fingerprint.d.ts +2 -2
- package/dist/components/lukso-icon/icons/fingerprint.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/fish-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/fish-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/flag-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/flag-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/flash.d.ts +2 -2
- package/dist/components/lukso-icon/icons/flash.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/flip.d.ts +2 -2
- package/dist/components/lukso-icon/icons/flip.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/gallery.d.ts +2 -2
- package/dist/components/lukso-icon/icons/gallery.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/gas.d.ts +2 -2
- package/dist/components/lukso-icon/icons/gas.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/glasses.d.ts +2 -2
- package/dist/components/lukso-icon/icons/glasses.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/globe.d.ts +2 -2
- package/dist/components/lukso-icon/icons/globe.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/google-color.d.ts +2 -2
- package/dist/components/lukso-icon/icons/google-color.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/hamburger.d.ts +2 -2
- package/dist/components/lukso-icon/icons/hamburger.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/hammer.d.ts +2 -2
- package/dist/components/lukso-icon/icons/hammer.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/hand-heart.d.ts +2 -2
- package/dist/components/lukso-icon/icons/hand-heart.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/hand-right-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/hand-right-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/headset-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/headset-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/infinite.d.ts +2 -2
- package/dist/components/lukso-icon/icons/infinite.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/information.d.ts +2 -2
- package/dist/components/lukso-icon/icons/information.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/key-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/key-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/link.d.ts +2 -2
- package/dist/components/lukso-icon/icons/link.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/link1.d.ts +2 -2
- package/dist/components/lukso-icon/icons/link1.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/link2.d.ts +2 -2
- package/dist/components/lukso-icon/icons/link2.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/link3.d.ts +2 -2
- package/dist/components/lukso-icon/icons/link3.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/link4.d.ts +2 -2
- package/dist/components/lukso-icon/icons/link4.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/loading.d.ts +2 -2
- package/dist/components/lukso-icon/icons/loading.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/location.d.ts +2 -2
- package/dist/components/lukso-icon/icons/location.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/locked.d.ts +2 -2
- package/dist/components/lukso-icon/icons/locked.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/login-2.d.ts +2 -2
- package/dist/components/lukso-icon/icons/login-2.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/login-3.d.ts +2 -2
- package/dist/components/lukso-icon/icons/login-3.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/login.d.ts +2 -2
- package/dist/components/lukso-icon/icons/login.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-brave.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-brave.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-chrome.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-chrome.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-discord-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-discord-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-edge.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-edge.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-elfsight-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-elfsight-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-facebook-round.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-facebook-round.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-facebook.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-facebook.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-fantom.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-fantom.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-farcaster-round.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-farcaster-round.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-farcaster.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-farcaster.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-firefox.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-firefox.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-github-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-github-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-google-calendar-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-google-calendar-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-instagram-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-instagram-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-linkedin-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-linkedin-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-linkedin-round.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-linkedin-round.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-linkedin.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-linkedin.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-medium-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-medium-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-opera.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-opera.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-polygon.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-polygon.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-safari.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-safari.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-snapchat-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-snapchat-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-soundcloud-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-soundcloud-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-spotify-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-spotify-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-substack-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-substack-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-telegram-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-telegram-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-universal-page-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-universal-page-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-warpcast-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-warpcast-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-whatsapp-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-whatsapp-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-x-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-x-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-x-round.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-x-round.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-x.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-x.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-youtube-mono.d.ts +2 -2
- package/dist/components/lukso-icon/icons/logo-youtube-mono.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/lukso-logo.d.ts +2 -2
- package/dist/components/lukso-icon/icons/lukso-logo.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/lyx-logo.d.ts +2 -2
- package/dist/components/lukso-icon/icons/lyx-logo.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/mail.d.ts +2 -2
- package/dist/components/lukso-icon/icons/mail.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/maximize-vertical.d.ts +2 -2
- package/dist/components/lukso-icon/icons/maximize-vertical.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/medal-star.d.ts +3 -0
- package/dist/components/lukso-icon/icons/medal-star.d.ts.map +1 -0
- package/dist/components/lukso-icon/icons/menu-1.d.ts +2 -2
- package/dist/components/lukso-icon/icons/menu-1.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/menu-2.d.ts +2 -2
- package/dist/components/lukso-icon/icons/menu-2.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/metamask-logo.d.ts +2 -2
- package/dist/components/lukso-icon/icons/metamask-logo.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/migrate.d.ts +2 -2
- package/dist/components/lukso-icon/icons/migrate.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/minimize-vertical.d.ts +2 -2
- package/dist/components/lukso-icon/icons/minimize-vertical.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/minimize.d.ts +2 -2
- package/dist/components/lukso-icon/icons/minimize.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/minus-filled.d.ts +2 -2
- package/dist/components/lukso-icon/icons/minus-filled.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/minus.d.ts +2 -2
- package/dist/components/lukso-icon/icons/minus.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/network.d.ts +2 -2
- package/dist/components/lukso-icon/icons/network.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/nft.d.ts +2 -2
- package/dist/components/lukso-icon/icons/nft.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/notifications.d.ts +2 -2
- package/dist/components/lukso-icon/icons/notifications.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/parachute.d.ts +2 -2
- package/dist/components/lukso-icon/icons/parachute.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/people.d.ts +2 -2
- package/dist/components/lukso-icon/icons/people.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/phone-portrait-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/phone-portrait-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/pin.d.ts +2 -2
- package/dist/components/lukso-icon/icons/pin.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/play-filled.d.ts +2 -2
- package/dist/components/lukso-icon/icons/play-filled.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/play-linear.d.ts +2 -2
- package/dist/components/lukso-icon/icons/play-linear.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/play-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/play-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/plus.d.ts +2 -2
- package/dist/components/lukso-icon/icons/plus.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-add.d.ts +2 -2
- package/dist/components/lukso-icon/icons/profile-add.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-circle.d.ts +2 -2
- package/dist/components/lukso-icon/icons/profile-circle.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-export.d.ts +2 -2
- package/dist/components/lukso-icon/icons/profile-export.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-file.d.ts +2 -2
- package/dist/components/lukso-icon/icons/profile-file.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-import.d.ts +2 -2
- package/dist/components/lukso-icon/icons/profile-import.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-recovery-2.d.ts +2 -2
- package/dist/components/lukso-icon/icons/profile-recovery-2.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-recovery.d.ts +2 -2
- package/dist/components/lukso-icon/icons/profile-recovery.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-remove.d.ts +2 -2
- package/dist/components/lukso-icon/icons/profile-remove.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-restore-no-setup.d.ts +2 -2
- package/dist/components/lukso-icon/icons/profile-restore-no-setup.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-restore.d.ts +2 -2
- package/dist/components/lukso-icon/icons/profile-restore.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile.d.ts +2 -2
- package/dist/components/lukso-icon/icons/profile.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/progress-complete.d.ts +2 -2
- package/dist/components/lukso-icon/icons/progress-complete.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/progress-indicator-alt.d.ts +2 -2
- package/dist/components/lukso-icon/icons/progress-indicator-alt.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/progress-indicator.d.ts +2 -2
- package/dist/components/lukso-icon/icons/progress-indicator.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/pulse-dot.d.ts +2 -2
- package/dist/components/lukso-icon/icons/pulse-dot.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/qr-code-scan.d.ts +2 -2
- package/dist/components/lukso-icon/icons/qr-code-scan.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/qr-code.d.ts +2 -2
- package/dist/components/lukso-icon/icons/qr-code.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/relayer.d.ts +2 -2
- package/dist/components/lukso-icon/icons/relayer.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/reload.d.ts +2 -2
- package/dist/components/lukso-icon/icons/reload.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/return-down.d.ts +2 -2
- package/dist/components/lukso-icon/icons/return-down.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/return-left.d.ts +2 -2
- package/dist/components/lukso-icon/icons/return-left.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/return-right.d.ts +2 -2
- package/dist/components/lukso-icon/icons/return-right.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/return-up.d.ts +2 -2
- package/dist/components/lukso-icon/icons/return-up.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/save-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/save-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/scan.d.ts +2 -2
- package/dist/components/lukso-icon/icons/scan.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/search.d.ts +2 -2
- package/dist/components/lukso-icon/icons/search.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/settings.d.ts +2 -2
- package/dist/components/lukso-icon/icons/settings.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/share.d.ts +2 -2
- package/dist/components/lukso-icon/icons/share.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/smart-contract-doc.d.ts +2 -2
- package/dist/components/lukso-icon/icons/smart-contract-doc.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/smart-contract.d.ts +2 -2
- package/dist/components/lukso-icon/icons/smart-contract.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/spinner.d.ts +2 -2
- package/dist/components/lukso-icon/icons/spinner.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/star-filled.d.ts +2 -2
- package/dist/components/lukso-icon/icons/star-filled.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/star-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/star-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/step-dot.d.ts +2 -2
- package/dist/components/lukso-icon/icons/step-dot.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/step-progress.d.ts +2 -2
- package/dist/components/lukso-icon/icons/step-progress.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/steps.d.ts +2 -2
- package/dist/components/lukso-icon/icons/steps.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/stop-linear.d.ts +2 -2
- package/dist/components/lukso-icon/icons/stop-linear.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/switched.d.ts +2 -2
- package/dist/components/lukso-icon/icons/switched.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/tick.d.ts +2 -2
- package/dist/components/lukso-icon/icons/tick.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/timer-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/timer-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/token-id.d.ts +2 -2
- package/dist/components/lukso-icon/icons/token-id.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/transaction-receive.d.ts +2 -2
- package/dist/components/lukso-icon/icons/transaction-receive.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/transaction-send.d.ts +2 -2
- package/dist/components/lukso-icon/icons/transaction-send.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/transfer-send.d.ts +2 -2
- package/dist/components/lukso-icon/icons/transfer-send.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/transfer.d.ts +2 -2
- package/dist/components/lukso-icon/icons/transfer.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/trash.d.ts +2 -2
- package/dist/components/lukso-icon/icons/trash.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/turn-down.d.ts +2 -2
- package/dist/components/lukso-icon/icons/turn-down.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/turn-left.d.ts +2 -2
- package/dist/components/lukso-icon/icons/turn-left.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/turn-right.d.ts +2 -2
- package/dist/components/lukso-icon/icons/turn-right.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/turn-up.d.ts +2 -2
- package/dist/components/lukso-icon/icons/turn-up.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/unlink.d.ts +2 -2
- package/dist/components/lukso-icon/icons/unlink.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/unlocked.d.ts +2 -2
- package/dist/components/lukso-icon/icons/unlocked.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/user-circle-add.d.ts +2 -2
- package/dist/components/lukso-icon/icons/user-circle-add.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/video-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/video-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/wallet-outline.d.ts +2 -2
- package/dist/components/lukso-icon/icons/wallet-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/wallet-restore.d.ts +2 -2
- package/dist/components/lukso-icon/icons/wallet-restore.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/warning-round.d.ts +2 -2
- package/dist/components/lukso-icon/icons/warning-round.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/warning-triangle.d.ts +2 -2
- package/dist/components/lukso-icon/icons/warning-triangle.d.ts.map +1 -1
- package/dist/components/lukso-icon/index.cjs +44 -7
- package/dist/components/lukso-icon/index.d.ts +2 -2
- package/dist/components/lukso-icon/index.d.ts.map +1 -1
- package/dist/components/lukso-icon/index.js +44 -7
- package/dist/components/lukso-icon/lukso-icon.stories.d.ts +1 -1
- package/dist/components/lukso-image/index.cjs +6 -8
- package/dist/components/lukso-image/index.d.ts +2 -2
- package/dist/components/lukso-image/index.js +6 -8
- package/dist/components/lukso-image/lukso-image.stories.d.ts +1 -1
- package/dist/components/lukso-input/index.cjs +6 -9
- package/dist/components/lukso-input/index.d.ts +9 -9
- package/dist/components/lukso-input/index.js +6 -9
- package/dist/components/lukso-input/lukso-input.stories.d.ts +1 -1
- package/dist/components/lukso-modal/index.cjs +4 -5
- package/dist/components/lukso-modal/index.d.ts +1 -1
- package/dist/components/lukso-modal/index.js +4 -5
- package/dist/components/lukso-modal/lukso-modal.stories.d.ts +1 -1
- package/dist/components/lukso-navbar/index.cjs +5 -9
- package/dist/components/lukso-navbar/index.d.ts +5 -5
- package/dist/components/lukso-navbar/index.js +5 -9
- package/dist/components/lukso-navbar/lukso-navbar.stories.d.ts +1 -1
- package/dist/components/lukso-pagination/index.cjs +6 -12
- package/dist/components/lukso-pagination/index.d.ts +4 -4
- package/dist/components/lukso-pagination/index.js +6 -12
- package/dist/components/lukso-pagination/lukso-pagination.stories.d.ts +1 -1
- package/dist/components/lukso-profile/index.cjs +5 -8
- package/dist/components/lukso-profile/index.d.ts +1 -1
- package/dist/components/lukso-profile/index.js +4 -7
- package/dist/components/lukso-profile/lukso-profile.stories.d.ts +1 -1
- package/dist/components/lukso-progress/index.cjs +5 -7
- package/dist/components/lukso-progress/index.d.ts +1 -1
- package/dist/components/lukso-progress/index.js +5 -7
- package/dist/components/lukso-progress/lukso-progress.stories.d.ts +1 -1
- package/dist/components/lukso-sanitize/index.cjs +287 -616
- package/dist/components/lukso-sanitize/index.d.ts +2 -2
- package/dist/components/lukso-sanitize/index.js +287 -616
- package/dist/components/lukso-sanitize/lukso-sanitize.stories.d.ts +1 -1
- package/dist/components/lukso-search/index.cjs +9 -16
- package/dist/components/lukso-search/index.d.ts +3 -3
- package/dist/components/lukso-search/index.js +9 -16
- package/dist/components/lukso-search/lukso-search.stories.d.ts +1 -1
- package/dist/components/lukso-select/index.cjs +76 -83
- package/dist/components/lukso-select/index.d.ts +3 -3
- package/dist/components/lukso-select/index.js +76 -83
- package/dist/components/lukso-select/lukso-select.stories.d.ts +1 -1
- package/dist/components/lukso-share/index.cjs +28 -26
- package/dist/components/lukso-share/index.d.ts +3 -3
- package/dist/components/lukso-share/index.js +28 -26
- package/dist/components/lukso-share/lukso-share.stories.d.ts +1 -1
- package/dist/components/lukso-switch/index.cjs +53 -55
- package/dist/components/lukso-switch/index.d.ts +4 -4
- package/dist/components/lukso-switch/index.js +53 -55
- package/dist/components/lukso-switch/lukso-switch.stories.d.ts +1 -1
- package/dist/components/lukso-tag/index.cjs +37 -36
- package/dist/components/lukso-tag/index.d.ts +2 -2
- package/dist/components/lukso-tag/index.js +37 -36
- package/dist/components/lukso-tag/lukso-tag.stories.d.ts +1 -1
- package/dist/components/lukso-terms/index.cjs +11 -11
- package/dist/components/lukso-terms/index.d.ts +2 -2
- package/dist/components/lukso-terms/index.js +11 -11
- package/dist/components/lukso-terms/lukso-terms.stories.d.ts +1 -1
- package/dist/components/lukso-test/index.cjs +23 -40
- package/dist/components/lukso-test/index.d.ts +2 -2
- package/dist/components/lukso-test/index.js +28 -45
- package/dist/components/lukso-test/test.stories.d.ts +2 -2
- package/dist/components/lukso-textarea/index.cjs +88 -88
- package/dist/components/lukso-textarea/index.d.ts +7 -7
- package/dist/components/lukso-textarea/index.js +88 -88
- package/dist/components/lukso-textarea/lukso-textarea.stories.d.ts +1 -1
- package/dist/components/lukso-tooltip/index.cjs +40 -41
- package/dist/components/lukso-tooltip/index.d.ts +3 -3
- package/dist/components/lukso-tooltip/index.js +40 -41
- package/dist/components/lukso-tooltip/lukso-tooltip.stories.d.ts +1 -1
- package/dist/components/lukso-username/index.cjs +7 -8
- package/dist/components/lukso-username/index.d.ts +2 -2
- package/dist/components/lukso-username/index.js +6 -7
- package/dist/components/lukso-username/lukso-username.stories.d.ts +1 -1
- package/dist/components/lukso-wizard/index.cjs +50 -53
- package/dist/components/lukso-wizard/index.d.ts +3 -3
- package/dist/components/lukso-wizard/index.js +51 -54
- package/dist/components/lukso-wizard/lukso-wizard.stories.d.ts +1 -1
- package/dist/directive-BKuZRRPO.js +8 -0
- package/dist/directive-DT5Y-Nw0.cjs +12 -0
- package/dist/directive-helpers-BbrBWb9B.js +9 -0
- package/dist/directive-helpers-D3mI9lsC.cjs +16 -0
- package/dist/{index-ba49f23a.cjs → index-B-jWYFR1.cjs} +695 -260
- package/dist/{index-d14b6a34.js → index-B9iart53.js} +1 -1
- package/dist/{index-9ba001cb.js → index-BKL0rD0t.js} +695 -260
- package/dist/index-BitOdrRJ.cjs +50 -0
- package/dist/{index-5df012eb.cjs → index-BqVcbfZx.cjs} +2 -2
- package/dist/index-BwDu-qJI.js +606 -0
- package/dist/index-CBUB36kH.cjs +608 -0
- package/dist/{index-2b104ecb.cjs → index-CaJky2qL.cjs} +1 -1
- package/dist/{index-e9668573.cjs → index-D0nCA-7X.cjs} +1 -1
- package/dist/index-DqnJ63Q8.js +41 -0
- package/dist/{index-5387057e.js → index-DvI1czUV.js} +2 -2
- package/dist/{index-5e194caf.js → index-F8ll4iy2.js} +1 -1
- package/dist/index.cjs +31 -40
- package/dist/index.js +4 -13
- package/dist/property-BmOVhAsp.cjs +19 -0
- package/dist/property-BqHUZDET.js +16 -0
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.d.ts +1 -1
- package/dist/shared/tailwind-element/index.d.ts.map +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/state-C3Y3QGjX.js +9 -0
- package/dist/state-CfjNOKrO.cjs +11 -0
- package/dist/{style-map-b13b92c1.cjs → style-map-DUOdo8Aw.cjs} +2 -2
- package/dist/{style-map-9e6bb4a6.js → style-map-DpzNuCXP.js} +2 -2
- package/dist/styles/main.css +27 -0
- package/dist/styles/main.css.map +1 -1
- package/dist/tailwind-config.cjs +22 -6
- package/dist/tailwind-config.d.ts +5 -0
- package/dist/tailwind-config.d.ts.map +1 -1
- package/dist/tailwind-config.js +20 -7
- package/dist/vitest.config.d.ts +1 -1
- package/package.json +5 -5
- package/tools/assets/fonts/index.cjs +1 -1
- package/tools/assets/images/index.cjs +1 -1
- package/tools/assets/index.cjs +1 -1
- package/tools/cn.cjs +139 -163
- package/tools/cn.d.ts +1 -1
- package/tools/cn.d.ts.map +1 -1
- package/tools/cn.js +139 -163
- package/tools/copy-assets.cjs +1 -1
- package/tools/copy-assets.d.ts.map +1 -1
- package/tools/copy-assets.js +1 -1
- package/tools/debounceFunction.d.ts.map +1 -1
- package/tools/detect-social-media.d.ts.map +1 -1
- package/tools/hsl-color-map.d.ts.map +1 -1
- package/tools/index.cjs +1 -13
- package/tools/index.d.ts +0 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +1 -1
- package/tools/sass/colors.scss +27 -1
- package/tools/slice-address.d.ts.map +1 -1
- package/tools/styles/index.cjs +1 -1
- package/tools/styles/main.css +27 -0
- package/tools/{tailwind-config-20125010.cjs → tailwind-config-B1HOgutt.cjs} +22 -6
- package/tools/{tailwind-config-c5a676c5.js → tailwind-config-DKplCTSo.js} +20 -7
- package/tools/tailwind-config.cjs +4 -1
- package/tools/tailwind-config.d.ts +5 -0
- package/tools/tailwind-config.d.ts.map +1 -1
- package/tools/tailwind-config.js +1 -1
- package/dist/directive-2bb7789e.js +0 -8
- package/dist/directive-8278ab14.cjs +0 -12
- package/dist/index-2d057f81.js +0 -37
- package/dist/index-38990f38.js +0 -600
- package/dist/index-96bba619.cjs +0 -46
- package/dist/index-9c39357d.cjs +0 -602
- package/dist/property-5367c26a.js +0 -16
- package/dist/property-98f7e05b.cjs +0 -19
- package/dist/state-bdfaec36.js +0 -9
- package/dist/state-eba8ded5.cjs +0 -11
- /package/dist/{uniq-id-ce2d165c.js → uniq-id-CGUN-pJV.js} +0 -0
- /package/dist/{uniq-id-f0b18085.cjs → uniq-id-Cszs24DQ.cjs} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const shared_tailwindElement_index = require('./index-
|
|
4
|
-
const property = require('./property-
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const index$1 = require('./index-
|
|
3
|
+
const shared_tailwindElement_index = require('./index-BitOdrRJ.cjs');
|
|
4
|
+
const property = require('./property-BmOVhAsp.cjs');
|
|
5
|
+
const index = require('./index-CaJky2qL.cjs');
|
|
6
|
+
const index$1 = require('./index-BqVcbfZx.cjs');
|
|
7
7
|
require('./tailwind-config.cjs');
|
|
8
|
-
const cn = require('./cn-
|
|
8
|
+
const cn = require('./cn-CNdKneQ1.cjs');
|
|
9
9
|
|
|
10
10
|
const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
|
|
11
11
|
if (!address || typeof address !== "string") {
|
|
@@ -61,7 +61,6 @@ function output(out, instance) {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
const assert = { number, bool, bytes, hash, exists, output };
|
|
64
|
-
const assert$1 = assert;
|
|
65
64
|
|
|
66
65
|
const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
67
66
|
const _32n = /* @__PURE__ */ BigInt(32);
|
|
@@ -339,12 +338,10 @@ const gen = (suffix, blockLen, outputLen) => wrapConstructor(() => new Keccak(bl
|
|
|
339
338
|
*/
|
|
340
339
|
const keccak_256 = /* @__PURE__ */ gen(0x01, 136, 256 / 8);
|
|
341
340
|
|
|
342
|
-
assert$1.bool;
|
|
343
|
-
assert$1.bytes;
|
|
344
341
|
// Internal utils
|
|
345
342
|
function wrapHash(hash) {
|
|
346
343
|
return (msg) => {
|
|
347
|
-
assert
|
|
344
|
+
assert.bytes(msg);
|
|
348
345
|
return hash(msg);
|
|
349
346
|
};
|
|
350
347
|
}
|
|
@@ -383,29 +380,28 @@ You should have received a copy of the GNU Lesser General Public License
|
|
|
383
380
|
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
|
|
384
381
|
*/
|
|
385
382
|
// Response error
|
|
386
|
-
const ERR_MULTIPLE_ERRORS = 208;
|
|
383
|
+
const ERR_MULTIPLE_ERRORS$1 = 208;
|
|
387
384
|
// RPC error codes (EIP-1193)
|
|
388
385
|
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md#provider-errors
|
|
389
|
-
const JSONRPC_ERR_REJECTED_REQUEST = 4001;
|
|
390
|
-
const JSONRPC_ERR_UNAUTHORIZED = 4100;
|
|
391
|
-
const JSONRPC_ERR_UNSUPPORTED_METHOD = 4200;
|
|
392
|
-
const JSONRPC_ERR_DISCONNECTED = 4900;
|
|
393
|
-
const JSONRPC_ERR_CHAIN_DISCONNECTED = 4901;
|
|
394
|
-
const ERR_INVALID_ADDRESS = 1005;
|
|
386
|
+
const JSONRPC_ERR_REJECTED_REQUEST$1 = 4001;
|
|
387
|
+
const JSONRPC_ERR_UNAUTHORIZED$1 = 4100;
|
|
388
|
+
const JSONRPC_ERR_UNSUPPORTED_METHOD$1 = 4200;
|
|
389
|
+
const JSONRPC_ERR_DISCONNECTED$1 = 4900;
|
|
390
|
+
const JSONRPC_ERR_CHAIN_DISCONNECTED$1 = 4901;
|
|
395
391
|
// RPC error codes (EIP-1474)
|
|
396
392
|
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1474.md
|
|
397
|
-
const ERR_RPC_INVALID_JSON = -32700;
|
|
398
|
-
const ERR_RPC_INVALID_REQUEST = -32600;
|
|
399
|
-
const ERR_RPC_INVALID_METHOD = -32601;
|
|
400
|
-
const ERR_RPC_INVALID_PARAMS = -32602;
|
|
401
|
-
const ERR_RPC_INTERNAL_ERROR = -32603;
|
|
402
|
-
const ERR_RPC_INVALID_INPUT = -
|
|
403
|
-
const ERR_RPC_MISSING_RESOURCE = -32001;
|
|
404
|
-
const ERR_RPC_UNAVAILABLE_RESOURCE = -32002;
|
|
405
|
-
const ERR_RPC_TRANSACTION_REJECTED = -32003;
|
|
406
|
-
const ERR_RPC_UNSUPPORTED_METHOD = -32004;
|
|
407
|
-
const ERR_RPC_LIMIT_EXCEEDED = -32005;
|
|
408
|
-
const ERR_RPC_NOT_SUPPORTED = -32006;
|
|
393
|
+
const ERR_RPC_INVALID_JSON$1 = -32700;
|
|
394
|
+
const ERR_RPC_INVALID_REQUEST$1 = -32600;
|
|
395
|
+
const ERR_RPC_INVALID_METHOD$1 = -32601;
|
|
396
|
+
const ERR_RPC_INVALID_PARAMS$1 = -32602;
|
|
397
|
+
const ERR_RPC_INTERNAL_ERROR$1 = -32603;
|
|
398
|
+
const ERR_RPC_INVALID_INPUT$1 = -32e3;
|
|
399
|
+
const ERR_RPC_MISSING_RESOURCE$1 = -32001;
|
|
400
|
+
const ERR_RPC_UNAVAILABLE_RESOURCE$1 = -32002;
|
|
401
|
+
const ERR_RPC_TRANSACTION_REJECTED$1 = -32003;
|
|
402
|
+
const ERR_RPC_UNSUPPORTED_METHOD$1 = -32004;
|
|
403
|
+
const ERR_RPC_LIMIT_EXCEEDED$1 = -32005;
|
|
404
|
+
const ERR_RPC_NOT_SUPPORTED$1 = -32006;
|
|
409
405
|
|
|
410
406
|
/*
|
|
411
407
|
This file is part of web3.js.
|
|
@@ -426,12 +422,12 @@ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
|
|
|
426
422
|
/**
|
|
427
423
|
* Base class for Web3 errors.
|
|
428
424
|
*/
|
|
429
|
-
class BaseWeb3Error extends Error {
|
|
425
|
+
let BaseWeb3Error$1 = class BaseWeb3Error extends Error {
|
|
430
426
|
constructor(msg, cause) {
|
|
431
427
|
super(msg);
|
|
432
428
|
if (Array.isArray(cause)) {
|
|
433
429
|
// eslint-disable-next-line no-use-before-define
|
|
434
|
-
this.cause = new MultipleErrors(cause);
|
|
430
|
+
this.cause = new MultipleErrors$1(cause);
|
|
435
431
|
}
|
|
436
432
|
else {
|
|
437
433
|
this.cause = cause;
|
|
@@ -449,7 +445,7 @@ class BaseWeb3Error extends Error {
|
|
|
449
445
|
*/
|
|
450
446
|
get innerError() {
|
|
451
447
|
// eslint-disable-next-line no-use-before-define
|
|
452
|
-
if (this.cause instanceof MultipleErrors) {
|
|
448
|
+
if (this.cause instanceof MultipleErrors$1) {
|
|
453
449
|
return this.cause.errors;
|
|
454
450
|
}
|
|
455
451
|
return this.cause;
|
|
@@ -460,7 +456,7 @@ class BaseWeb3Error extends Error {
|
|
|
460
456
|
set innerError(cause) {
|
|
461
457
|
if (Array.isArray(cause)) {
|
|
462
458
|
// eslint-disable-next-line no-use-before-define
|
|
463
|
-
this.cause = new MultipleErrors(cause);
|
|
459
|
+
this.cause = new MultipleErrors$1(cause);
|
|
464
460
|
}
|
|
465
461
|
else {
|
|
466
462
|
this.cause = cause;
|
|
@@ -486,44 +482,14 @@ class BaseWeb3Error extends Error {
|
|
|
486
482
|
innerError: this.cause,
|
|
487
483
|
};
|
|
488
484
|
}
|
|
489
|
-
}
|
|
490
|
-
class MultipleErrors extends BaseWeb3Error {
|
|
485
|
+
};
|
|
486
|
+
let MultipleErrors$1 = class MultipleErrors extends BaseWeb3Error$1 {
|
|
491
487
|
constructor(errors) {
|
|
492
488
|
super(`Multiple errors occurred: [${errors.map(e => e.message).join('], [')}]`);
|
|
493
|
-
this.code = ERR_MULTIPLE_ERRORS;
|
|
489
|
+
this.code = ERR_MULTIPLE_ERRORS$1;
|
|
494
490
|
this.errors = errors;
|
|
495
491
|
}
|
|
496
|
-
}
|
|
497
|
-
class InvalidValueError extends BaseWeb3Error {
|
|
498
|
-
constructor(value, msg) {
|
|
499
|
-
super(`Invalid value given "${BaseWeb3Error.convertToString(value, true)}". Error: ${msg}.`);
|
|
500
|
-
this.name = this.constructor.name;
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
/*
|
|
505
|
-
This file is part of web3.js.
|
|
506
|
-
|
|
507
|
-
web3.js is free software: you can redistribute it and/or modify
|
|
508
|
-
it under the terms of the GNU Lesser General Public License as published by
|
|
509
|
-
the Free Software Foundation, either version 3 of the License, or
|
|
510
|
-
(at your option) any later version.
|
|
511
|
-
|
|
512
|
-
web3.js is distributed in the hope that it will be useful,
|
|
513
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
514
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
515
|
-
GNU Lesser General Public License for more details.
|
|
516
|
-
|
|
517
|
-
You should have received a copy of the GNU Lesser General Public License
|
|
518
|
-
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
|
|
519
|
-
*/
|
|
520
|
-
/* eslint-disable max-classes-per-file */
|
|
521
|
-
class InvalidAddressError extends InvalidValueError {
|
|
522
|
-
constructor(value) {
|
|
523
|
-
super(value, 'invalid ethereum address');
|
|
524
|
-
this.code = ERR_INVALID_ADDRESS;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
492
|
+
};
|
|
527
493
|
|
|
528
494
|
/*
|
|
529
495
|
This file is part of web3.js.
|
|
@@ -546,78 +512,78 @@ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
|
|
|
546
512
|
* Note: consider in next version that a spelling mistake could be corrected for `occured` and the value could be:
|
|
547
513
|
* `An Rpc error has occurred with a code of *code*`
|
|
548
514
|
*/
|
|
549
|
-
const genericRpcErrorMessageTemplate = 'An Rpc error has occured with a code of *code*';
|
|
515
|
+
const genericRpcErrorMessageTemplate$1 = 'An Rpc error has occured with a code of *code*';
|
|
550
516
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
551
|
-
const RpcErrorMessages = {
|
|
517
|
+
const RpcErrorMessages$1 = {
|
|
552
518
|
// EIP-1474 & JSON RPC 2.0
|
|
553
519
|
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1474.md
|
|
554
|
-
[ERR_RPC_INVALID_JSON]: {
|
|
520
|
+
[ERR_RPC_INVALID_JSON$1]: {
|
|
555
521
|
message: 'Parse error',
|
|
556
522
|
description: 'Invalid JSON',
|
|
557
523
|
},
|
|
558
|
-
[ERR_RPC_INVALID_REQUEST]: {
|
|
524
|
+
[ERR_RPC_INVALID_REQUEST$1]: {
|
|
559
525
|
message: 'Invalid request',
|
|
560
526
|
description: 'JSON is not a valid request object ',
|
|
561
527
|
},
|
|
562
|
-
[ERR_RPC_INVALID_METHOD]: {
|
|
528
|
+
[ERR_RPC_INVALID_METHOD$1]: {
|
|
563
529
|
message: 'Method not found',
|
|
564
530
|
description: 'Method does not exist ',
|
|
565
531
|
},
|
|
566
|
-
[ERR_RPC_INVALID_PARAMS]: {
|
|
532
|
+
[ERR_RPC_INVALID_PARAMS$1]: {
|
|
567
533
|
message: 'Invalid params',
|
|
568
534
|
description: 'Invalid method parameters',
|
|
569
535
|
},
|
|
570
|
-
[ERR_RPC_INTERNAL_ERROR]: {
|
|
536
|
+
[ERR_RPC_INTERNAL_ERROR$1]: {
|
|
571
537
|
message: 'Internal error',
|
|
572
538
|
description: 'Internal JSON-RPC error',
|
|
573
539
|
},
|
|
574
|
-
[ERR_RPC_INVALID_INPUT]: {
|
|
540
|
+
[ERR_RPC_INVALID_INPUT$1]: {
|
|
575
541
|
message: 'Invalid input',
|
|
576
542
|
description: 'Missing or invalid parameters',
|
|
577
543
|
},
|
|
578
|
-
[ERR_RPC_MISSING_RESOURCE]: {
|
|
544
|
+
[ERR_RPC_MISSING_RESOURCE$1]: {
|
|
579
545
|
message: 'Resource not found',
|
|
580
546
|
description: 'Requested resource not found',
|
|
581
547
|
},
|
|
582
|
-
[ERR_RPC_UNAVAILABLE_RESOURCE]: {
|
|
548
|
+
[ERR_RPC_UNAVAILABLE_RESOURCE$1]: {
|
|
583
549
|
message: 'Resource unavailable',
|
|
584
550
|
description: 'Requested resource not available',
|
|
585
551
|
},
|
|
586
|
-
[ERR_RPC_TRANSACTION_REJECTED]: {
|
|
552
|
+
[ERR_RPC_TRANSACTION_REJECTED$1]: {
|
|
587
553
|
message: 'Transaction rejected',
|
|
588
554
|
description: 'Transaction creation failed',
|
|
589
555
|
},
|
|
590
|
-
[ERR_RPC_UNSUPPORTED_METHOD]: {
|
|
556
|
+
[ERR_RPC_UNSUPPORTED_METHOD$1]: {
|
|
591
557
|
message: 'Method not supported',
|
|
592
558
|
description: 'Method is not implemented',
|
|
593
559
|
},
|
|
594
|
-
[ERR_RPC_LIMIT_EXCEEDED]: {
|
|
560
|
+
[ERR_RPC_LIMIT_EXCEEDED$1]: {
|
|
595
561
|
message: 'Limit exceeded',
|
|
596
562
|
description: 'Request exceeds defined limit',
|
|
597
563
|
},
|
|
598
|
-
[ERR_RPC_NOT_SUPPORTED]: {
|
|
564
|
+
[ERR_RPC_NOT_SUPPORTED$1]: {
|
|
599
565
|
message: 'JSON-RPC version not supported',
|
|
600
566
|
description: 'Version of JSON-RPC protocol is not supported',
|
|
601
567
|
},
|
|
602
568
|
// EIP-1193
|
|
603
569
|
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md#provider-errors
|
|
604
|
-
[JSONRPC_ERR_REJECTED_REQUEST]: {
|
|
570
|
+
[JSONRPC_ERR_REJECTED_REQUEST$1]: {
|
|
605
571
|
name: 'User Rejected Request',
|
|
606
572
|
message: 'The user rejected the request.',
|
|
607
573
|
},
|
|
608
|
-
[JSONRPC_ERR_UNAUTHORIZED]: {
|
|
574
|
+
[JSONRPC_ERR_UNAUTHORIZED$1]: {
|
|
609
575
|
name: 'Unauthorized',
|
|
610
576
|
message: 'The requested method and/or account has not been authorized by the user.',
|
|
611
577
|
},
|
|
612
|
-
[JSONRPC_ERR_UNSUPPORTED_METHOD]: {
|
|
578
|
+
[JSONRPC_ERR_UNSUPPORTED_METHOD$1]: {
|
|
613
579
|
name: 'Unsupported Method',
|
|
614
580
|
message: 'The Provider does not support the requested method.',
|
|
615
581
|
},
|
|
616
|
-
[JSONRPC_ERR_DISCONNECTED]: {
|
|
582
|
+
[JSONRPC_ERR_DISCONNECTED$1]: {
|
|
617
583
|
name: 'Disconnected',
|
|
618
584
|
message: 'The Provider is disconnected from all chains.',
|
|
619
585
|
},
|
|
620
|
-
[JSONRPC_ERR_CHAIN_DISCONNECTED]: {
|
|
586
|
+
[JSONRPC_ERR_CHAIN_DISCONNECTED$1]: {
|
|
621
587
|
name: 'Chain Disconnected',
|
|
622
588
|
message: 'The Provider is not connected to the requested chain.',
|
|
623
589
|
},
|
|
@@ -721,9 +687,9 @@ GNU Lesser General Public License for more details.
|
|
|
721
687
|
You should have received a copy of the GNU Lesser General Public License
|
|
722
688
|
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
|
|
723
689
|
*/
|
|
724
|
-
class RpcError extends BaseWeb3Error {
|
|
690
|
+
let RpcError$1 = class RpcError extends BaseWeb3Error$1 {
|
|
725
691
|
constructor(rpcError, message) {
|
|
726
|
-
super(message !== null && message !== void 0 ? message : genericRpcErrorMessageTemplate.replace('*code*', rpcError.error.code.toString()));
|
|
692
|
+
super(message !== null && message !== void 0 ? message : genericRpcErrorMessageTemplate$1.replace('*code*', rpcError.error.code.toString()));
|
|
727
693
|
this.code = rpcError.error.code;
|
|
728
694
|
this.id = rpcError.id;
|
|
729
695
|
this.jsonrpc = rpcError.jsonrpc;
|
|
@@ -732,106 +698,106 @@ class RpcError extends BaseWeb3Error {
|
|
|
732
698
|
toJSON() {
|
|
733
699
|
return Object.assign(Object.assign({}, super.toJSON()), { error: this.jsonRpcError, id: this.id, jsonRpc: this.jsonrpc });
|
|
734
700
|
}
|
|
735
|
-
}
|
|
736
|
-
class ParseError extends RpcError {
|
|
701
|
+
};
|
|
702
|
+
let ParseError$1 = class ParseError extends RpcError$1 {
|
|
737
703
|
constructor(rpcError) {
|
|
738
|
-
super(rpcError, RpcErrorMessages[ERR_RPC_INVALID_JSON].message);
|
|
739
|
-
this.code = ERR_RPC_INVALID_JSON;
|
|
704
|
+
super(rpcError, RpcErrorMessages$1[ERR_RPC_INVALID_JSON$1].message);
|
|
705
|
+
this.code = ERR_RPC_INVALID_JSON$1;
|
|
740
706
|
}
|
|
741
|
-
}
|
|
742
|
-
class InvalidRequestError extends RpcError {
|
|
707
|
+
};
|
|
708
|
+
let InvalidRequestError$1 = class InvalidRequestError extends RpcError$1 {
|
|
743
709
|
constructor(rpcError) {
|
|
744
|
-
super(rpcError, RpcErrorMessages[ERR_RPC_INVALID_REQUEST].message);
|
|
745
|
-
this.code = ERR_RPC_INVALID_REQUEST;
|
|
710
|
+
super(rpcError, RpcErrorMessages$1[ERR_RPC_INVALID_REQUEST$1].message);
|
|
711
|
+
this.code = ERR_RPC_INVALID_REQUEST$1;
|
|
746
712
|
}
|
|
747
|
-
}
|
|
748
|
-
class MethodNotFoundError extends RpcError {
|
|
713
|
+
};
|
|
714
|
+
let MethodNotFoundError$1 = class MethodNotFoundError extends RpcError$1 {
|
|
749
715
|
constructor(rpcError) {
|
|
750
|
-
super(rpcError, RpcErrorMessages[ERR_RPC_INVALID_METHOD].message);
|
|
751
|
-
this.code = ERR_RPC_INVALID_METHOD;
|
|
716
|
+
super(rpcError, RpcErrorMessages$1[ERR_RPC_INVALID_METHOD$1].message);
|
|
717
|
+
this.code = ERR_RPC_INVALID_METHOD$1;
|
|
752
718
|
}
|
|
753
|
-
}
|
|
754
|
-
class InvalidParamsError extends RpcError {
|
|
719
|
+
};
|
|
720
|
+
let InvalidParamsError$1 = class InvalidParamsError extends RpcError$1 {
|
|
755
721
|
constructor(rpcError) {
|
|
756
|
-
super(rpcError, RpcErrorMessages[ERR_RPC_INVALID_PARAMS].message);
|
|
757
|
-
this.code = ERR_RPC_INVALID_PARAMS;
|
|
722
|
+
super(rpcError, RpcErrorMessages$1[ERR_RPC_INVALID_PARAMS$1].message);
|
|
723
|
+
this.code = ERR_RPC_INVALID_PARAMS$1;
|
|
758
724
|
}
|
|
759
|
-
}
|
|
760
|
-
class InternalError extends RpcError {
|
|
725
|
+
};
|
|
726
|
+
let InternalError$1 = class InternalError extends RpcError$1 {
|
|
761
727
|
constructor(rpcError) {
|
|
762
|
-
super(rpcError, RpcErrorMessages[ERR_RPC_INTERNAL_ERROR].message);
|
|
763
|
-
this.code = ERR_RPC_INTERNAL_ERROR;
|
|
728
|
+
super(rpcError, RpcErrorMessages$1[ERR_RPC_INTERNAL_ERROR$1].message);
|
|
729
|
+
this.code = ERR_RPC_INTERNAL_ERROR$1;
|
|
764
730
|
}
|
|
765
|
-
}
|
|
766
|
-
class InvalidInputError extends RpcError {
|
|
731
|
+
};
|
|
732
|
+
let InvalidInputError$1 = class InvalidInputError extends RpcError$1 {
|
|
767
733
|
constructor(rpcError) {
|
|
768
|
-
super(rpcError, RpcErrorMessages[ERR_RPC_INVALID_INPUT].message);
|
|
769
|
-
this.code = ERR_RPC_INVALID_INPUT;
|
|
734
|
+
super(rpcError, RpcErrorMessages$1[ERR_RPC_INVALID_INPUT$1].message);
|
|
735
|
+
this.code = ERR_RPC_INVALID_INPUT$1;
|
|
770
736
|
}
|
|
771
|
-
}
|
|
772
|
-
class MethodNotSupported extends RpcError {
|
|
737
|
+
};
|
|
738
|
+
let MethodNotSupported$1 = class MethodNotSupported extends RpcError$1 {
|
|
773
739
|
constructor(rpcError) {
|
|
774
|
-
super(rpcError, RpcErrorMessages[ERR_RPC_UNSUPPORTED_METHOD].message);
|
|
775
|
-
this.code = ERR_RPC_UNSUPPORTED_METHOD;
|
|
740
|
+
super(rpcError, RpcErrorMessages$1[ERR_RPC_UNSUPPORTED_METHOD$1].message);
|
|
741
|
+
this.code = ERR_RPC_UNSUPPORTED_METHOD$1;
|
|
776
742
|
}
|
|
777
|
-
}
|
|
778
|
-
class ResourceUnavailableError extends RpcError {
|
|
743
|
+
};
|
|
744
|
+
let ResourceUnavailableError$1 = class ResourceUnavailableError extends RpcError$1 {
|
|
779
745
|
constructor(rpcError) {
|
|
780
|
-
super(rpcError, RpcErrorMessages[ERR_RPC_UNAVAILABLE_RESOURCE].message);
|
|
781
|
-
this.code = ERR_RPC_UNAVAILABLE_RESOURCE;
|
|
746
|
+
super(rpcError, RpcErrorMessages$1[ERR_RPC_UNAVAILABLE_RESOURCE$1].message);
|
|
747
|
+
this.code = ERR_RPC_UNAVAILABLE_RESOURCE$1;
|
|
782
748
|
}
|
|
783
|
-
}
|
|
784
|
-
class ResourcesNotFoundError extends RpcError {
|
|
749
|
+
};
|
|
750
|
+
let ResourcesNotFoundError$1 = class ResourcesNotFoundError extends RpcError$1 {
|
|
785
751
|
constructor(rpcError) {
|
|
786
|
-
super(rpcError, RpcErrorMessages[ERR_RPC_MISSING_RESOURCE].message);
|
|
787
|
-
this.code = ERR_RPC_MISSING_RESOURCE;
|
|
752
|
+
super(rpcError, RpcErrorMessages$1[ERR_RPC_MISSING_RESOURCE$1].message);
|
|
753
|
+
this.code = ERR_RPC_MISSING_RESOURCE$1;
|
|
788
754
|
}
|
|
789
|
-
}
|
|
790
|
-
class VersionNotSupportedError extends RpcError {
|
|
755
|
+
};
|
|
756
|
+
let VersionNotSupportedError$1 = class VersionNotSupportedError extends RpcError$1 {
|
|
791
757
|
constructor(rpcError) {
|
|
792
|
-
super(rpcError, RpcErrorMessages[ERR_RPC_NOT_SUPPORTED].message);
|
|
793
|
-
this.code = ERR_RPC_NOT_SUPPORTED;
|
|
758
|
+
super(rpcError, RpcErrorMessages$1[ERR_RPC_NOT_SUPPORTED$1].message);
|
|
759
|
+
this.code = ERR_RPC_NOT_SUPPORTED$1;
|
|
794
760
|
}
|
|
795
|
-
}
|
|
796
|
-
class TransactionRejectedError extends RpcError {
|
|
761
|
+
};
|
|
762
|
+
let TransactionRejectedError$1 = class TransactionRejectedError extends RpcError$1 {
|
|
797
763
|
constructor(rpcError) {
|
|
798
|
-
super(rpcError, RpcErrorMessages[ERR_RPC_TRANSACTION_REJECTED].message);
|
|
799
|
-
this.code = ERR_RPC_TRANSACTION_REJECTED;
|
|
764
|
+
super(rpcError, RpcErrorMessages$1[ERR_RPC_TRANSACTION_REJECTED$1].message);
|
|
765
|
+
this.code = ERR_RPC_TRANSACTION_REJECTED$1;
|
|
800
766
|
}
|
|
801
|
-
}
|
|
802
|
-
class LimitExceededError extends RpcError {
|
|
767
|
+
};
|
|
768
|
+
let LimitExceededError$1 = class LimitExceededError extends RpcError$1 {
|
|
803
769
|
constructor(rpcError) {
|
|
804
|
-
super(rpcError, RpcErrorMessages[ERR_RPC_LIMIT_EXCEEDED].message);
|
|
805
|
-
this.code = ERR_RPC_LIMIT_EXCEEDED;
|
|
770
|
+
super(rpcError, RpcErrorMessages$1[ERR_RPC_LIMIT_EXCEEDED$1].message);
|
|
771
|
+
this.code = ERR_RPC_LIMIT_EXCEEDED$1;
|
|
806
772
|
}
|
|
807
|
-
}
|
|
808
|
-
const rpcErrorsMap = new Map();
|
|
809
|
-
rpcErrorsMap.set(ERR_RPC_INVALID_JSON, { error: ParseError });
|
|
810
|
-
rpcErrorsMap.set(ERR_RPC_INVALID_REQUEST, {
|
|
811
|
-
error: InvalidRequestError,
|
|
773
|
+
};
|
|
774
|
+
const rpcErrorsMap$1 = new Map();
|
|
775
|
+
rpcErrorsMap$1.set(ERR_RPC_INVALID_JSON$1, { error: ParseError$1 });
|
|
776
|
+
rpcErrorsMap$1.set(ERR_RPC_INVALID_REQUEST$1, {
|
|
777
|
+
error: InvalidRequestError$1,
|
|
812
778
|
});
|
|
813
|
-
rpcErrorsMap.set(ERR_RPC_INVALID_METHOD, {
|
|
814
|
-
error: MethodNotFoundError,
|
|
779
|
+
rpcErrorsMap$1.set(ERR_RPC_INVALID_METHOD$1, {
|
|
780
|
+
error: MethodNotFoundError$1,
|
|
815
781
|
});
|
|
816
|
-
rpcErrorsMap.set(ERR_RPC_INVALID_PARAMS, { error: InvalidParamsError });
|
|
817
|
-
rpcErrorsMap.set(ERR_RPC_INTERNAL_ERROR, { error: InternalError });
|
|
818
|
-
rpcErrorsMap.set(ERR_RPC_INVALID_INPUT, { error: InvalidInputError });
|
|
819
|
-
rpcErrorsMap.set(ERR_RPC_UNSUPPORTED_METHOD, {
|
|
820
|
-
error: MethodNotSupported,
|
|
782
|
+
rpcErrorsMap$1.set(ERR_RPC_INVALID_PARAMS$1, { error: InvalidParamsError$1 });
|
|
783
|
+
rpcErrorsMap$1.set(ERR_RPC_INTERNAL_ERROR$1, { error: InternalError$1 });
|
|
784
|
+
rpcErrorsMap$1.set(ERR_RPC_INVALID_INPUT$1, { error: InvalidInputError$1 });
|
|
785
|
+
rpcErrorsMap$1.set(ERR_RPC_UNSUPPORTED_METHOD$1, {
|
|
786
|
+
error: MethodNotSupported$1,
|
|
821
787
|
});
|
|
822
|
-
rpcErrorsMap.set(ERR_RPC_UNAVAILABLE_RESOURCE, {
|
|
823
|
-
error: ResourceUnavailableError,
|
|
788
|
+
rpcErrorsMap$1.set(ERR_RPC_UNAVAILABLE_RESOURCE$1, {
|
|
789
|
+
error: ResourceUnavailableError$1,
|
|
824
790
|
});
|
|
825
|
-
rpcErrorsMap.set(ERR_RPC_TRANSACTION_REJECTED, {
|
|
826
|
-
error: TransactionRejectedError,
|
|
791
|
+
rpcErrorsMap$1.set(ERR_RPC_TRANSACTION_REJECTED$1, {
|
|
792
|
+
error: TransactionRejectedError$1,
|
|
827
793
|
});
|
|
828
|
-
rpcErrorsMap.set(ERR_RPC_MISSING_RESOURCE, {
|
|
829
|
-
error: ResourcesNotFoundError,
|
|
794
|
+
rpcErrorsMap$1.set(ERR_RPC_MISSING_RESOURCE$1, {
|
|
795
|
+
error: ResourcesNotFoundError$1,
|
|
830
796
|
});
|
|
831
|
-
rpcErrorsMap.set(ERR_RPC_NOT_SUPPORTED, {
|
|
832
|
-
error: VersionNotSupportedError,
|
|
797
|
+
rpcErrorsMap$1.set(ERR_RPC_NOT_SUPPORTED$1, {
|
|
798
|
+
error: VersionNotSupportedError$1,
|
|
833
799
|
});
|
|
834
|
-
rpcErrorsMap.set(ERR_RPC_LIMIT_EXCEEDED, { error: LimitExceededError });
|
|
800
|
+
rpcErrorsMap$1.set(ERR_RPC_LIMIT_EXCEEDED$1, { error: LimitExceededError$1 });
|
|
835
801
|
|
|
836
802
|
/*
|
|
837
803
|
This file is part of web3.js.
|
|
@@ -1041,7 +1007,7 @@ var HardforksOrdered;
|
|
|
1041
1007
|
HardforksOrdered["shanghai"] = "shanghai";
|
|
1042
1008
|
})(HardforksOrdered || (HardforksOrdered = {}));
|
|
1043
1009
|
|
|
1044
|
-
(
|
|
1010
|
+
(undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
1045
1011
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1046
1012
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1047
1013
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -1087,65 +1053,532 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
1087
1053
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1088
1054
|
GNU Lesser General Public License for more details.
|
|
1089
1055
|
|
|
1056
|
+
You should have received a copy of the GNU Lesser General Public License
|
|
1057
|
+
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
|
|
1058
|
+
*/
|
|
1059
|
+
// Response error
|
|
1060
|
+
const ERR_MULTIPLE_ERRORS = 208;
|
|
1061
|
+
// RPC error codes (EIP-1193)
|
|
1062
|
+
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md#provider-errors
|
|
1063
|
+
const JSONRPC_ERR_REJECTED_REQUEST = 4001;
|
|
1064
|
+
const JSONRPC_ERR_UNAUTHORIZED = 4100;
|
|
1065
|
+
const JSONRPC_ERR_UNSUPPORTED_METHOD = 4200;
|
|
1066
|
+
const JSONRPC_ERR_DISCONNECTED = 4900;
|
|
1067
|
+
const JSONRPC_ERR_CHAIN_DISCONNECTED = 4901;
|
|
1068
|
+
const ERR_INVALID_ADDRESS = 1005;
|
|
1069
|
+
// RPC error codes (EIP-1474)
|
|
1070
|
+
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1474.md
|
|
1071
|
+
const ERR_RPC_INVALID_JSON = -32700;
|
|
1072
|
+
const ERR_RPC_INVALID_REQUEST = -32600;
|
|
1073
|
+
const ERR_RPC_INVALID_METHOD = -32601;
|
|
1074
|
+
const ERR_RPC_INVALID_PARAMS = -32602;
|
|
1075
|
+
const ERR_RPC_INTERNAL_ERROR = -32603;
|
|
1076
|
+
const ERR_RPC_INVALID_INPUT = -32e3;
|
|
1077
|
+
const ERR_RPC_MISSING_RESOURCE = -32001;
|
|
1078
|
+
const ERR_RPC_UNAVAILABLE_RESOURCE = -32002;
|
|
1079
|
+
const ERR_RPC_TRANSACTION_REJECTED = -32003;
|
|
1080
|
+
const ERR_RPC_UNSUPPORTED_METHOD = -32004;
|
|
1081
|
+
const ERR_RPC_LIMIT_EXCEEDED = -32005;
|
|
1082
|
+
const ERR_RPC_NOT_SUPPORTED = -32006;
|
|
1083
|
+
|
|
1084
|
+
/*
|
|
1085
|
+
This file is part of web3.js.
|
|
1086
|
+
|
|
1087
|
+
web3.js is free software: you can redistribute it and/or modify
|
|
1088
|
+
it under the terms of the GNU Lesser General Public License as published by
|
|
1089
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
1090
|
+
(at your option) any later version.
|
|
1091
|
+
|
|
1092
|
+
web3.js is distributed in the hope that it will be useful,
|
|
1093
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1094
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1095
|
+
GNU Lesser General Public License for more details.
|
|
1096
|
+
|
|
1090
1097
|
You should have received a copy of the GNU Lesser General Public License
|
|
1091
1098
|
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
|
|
1092
1099
|
*/
|
|
1093
1100
|
/**
|
|
1094
|
-
*
|
|
1095
|
-
*/
|
|
1096
|
-
// Ref: https://ethdocs.org/en/latest/ether.html
|
|
1097
|
-
// Note: this could be simplified using ** operator, but babel does not handle it well (https://github.com/babel/babel/issues/13109)
|
|
1098
|
-
/** @internal */
|
|
1099
|
-
({
|
|
1100
|
-
noether: BigInt(0),
|
|
1101
|
-
wei: BigInt(1),
|
|
1102
|
-
kwei: BigInt(1000),
|
|
1103
|
-
Kwei: BigInt(1000),
|
|
1104
|
-
babbage: BigInt(1000),
|
|
1105
|
-
femtoether: BigInt(1000),
|
|
1106
|
-
mwei: BigInt(1000000),
|
|
1107
|
-
Mwei: BigInt(1000000),
|
|
1108
|
-
lovelace: BigInt(1000000),
|
|
1109
|
-
picoether: BigInt(1000000),
|
|
1110
|
-
gwei: BigInt(1000000000),
|
|
1111
|
-
Gwei: BigInt(1000000000),
|
|
1112
|
-
shannon: BigInt(1000000000),
|
|
1113
|
-
nanoether: BigInt(1000000000),
|
|
1114
|
-
nano: BigInt(1000000000),
|
|
1115
|
-
szabo: BigInt(1000000000000),
|
|
1116
|
-
microether: BigInt(1000000000000),
|
|
1117
|
-
micro: BigInt(1000000000000),
|
|
1118
|
-
finney: BigInt(1000000000000000),
|
|
1119
|
-
milliether: BigInt(1000000000000000),
|
|
1120
|
-
milli: BigInt(1000000000000000),
|
|
1121
|
-
ether: BigInt('1000000000000000000'),
|
|
1122
|
-
kether: BigInt('1000000000000000000000'),
|
|
1123
|
-
grand: BigInt('1000000000000000000000'),
|
|
1124
|
-
mether: BigInt('1000000000000000000000000'),
|
|
1125
|
-
gether: BigInt('1000000000000000000000000000'),
|
|
1126
|
-
tether: BigInt('1000000000000000000000000000000'),
|
|
1127
|
-
});
|
|
1128
|
-
const utf8ToBytes = utf8ToBytes$1;
|
|
1129
|
-
/**
|
|
1130
|
-
* Will convert an upper or lowercase Ethereum address to a checksum address.
|
|
1131
|
-
* @param address - An address string
|
|
1132
|
-
* @returns The checksum address
|
|
1133
|
-
* @example
|
|
1134
|
-
* ```ts
|
|
1135
|
-
* web3.utils.toChecksumAddress('0xc1912fee45d61c87cc5ea59dae31190fffff232d');
|
|
1136
|
-
* > "0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d"
|
|
1137
|
-
* ```
|
|
1101
|
+
* Base class for Web3 errors.
|
|
1138
1102
|
*/
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1103
|
+
class BaseWeb3Error extends Error {
|
|
1104
|
+
/**
|
|
1105
|
+
* @deprecated Use the `cause` property instead.
|
|
1106
|
+
*/
|
|
1107
|
+
get innerError() {
|
|
1108
|
+
// eslint-disable-next-line no-use-before-define
|
|
1109
|
+
if (this.cause instanceof MultipleErrors) {
|
|
1110
|
+
return this.cause.errors;
|
|
1111
|
+
}
|
|
1112
|
+
return this.cause;
|
|
1113
|
+
}
|
|
1114
|
+
/**
|
|
1115
|
+
* @deprecated Use the `cause` property instead.
|
|
1116
|
+
*/
|
|
1117
|
+
set innerError(cause) {
|
|
1118
|
+
if (Array.isArray(cause)) {
|
|
1119
|
+
// eslint-disable-next-line no-use-before-define
|
|
1120
|
+
this.cause = new MultipleErrors(cause);
|
|
1121
|
+
}
|
|
1122
|
+
else {
|
|
1123
|
+
this.cause = cause;
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
constructor(msg, cause) {
|
|
1127
|
+
super(msg);
|
|
1128
|
+
if (Array.isArray(cause)) {
|
|
1129
|
+
// eslint-disable-next-line no-use-before-define
|
|
1130
|
+
this.cause = new MultipleErrors(cause);
|
|
1131
|
+
}
|
|
1132
|
+
else {
|
|
1133
|
+
this.cause = cause;
|
|
1134
|
+
}
|
|
1135
|
+
this.name = this.constructor.name;
|
|
1136
|
+
if (typeof Error.captureStackTrace === 'function') {
|
|
1137
|
+
Error.captureStackTrace(new.target.constructor);
|
|
1138
|
+
}
|
|
1139
|
+
else {
|
|
1140
|
+
this.stack = new Error().stack;
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
static convertToString(value, unquotValue = false) {
|
|
1144
|
+
// Using "null" value intentionally for validation
|
|
1145
|
+
// eslint-disable-next-line no-null/no-null
|
|
1146
|
+
if (value === null || value === undefined)
|
|
1147
|
+
return 'undefined';
|
|
1148
|
+
const result = JSON.stringify(value, (_, v) => (typeof v === 'bigint' ? v.toString() : v));
|
|
1149
|
+
return unquotValue && ['bigint', 'string'].includes(typeof value)
|
|
1150
|
+
? result.replace(/['\\"]+/g, '')
|
|
1151
|
+
: result;
|
|
1152
|
+
}
|
|
1153
|
+
toJSON() {
|
|
1154
|
+
return {
|
|
1155
|
+
name: this.name,
|
|
1156
|
+
code: this.code,
|
|
1157
|
+
message: this.message,
|
|
1158
|
+
cause: this.cause,
|
|
1159
|
+
// deprecated
|
|
1160
|
+
innerError: this.cause,
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
class MultipleErrors extends BaseWeb3Error {
|
|
1165
|
+
constructor(errors) {
|
|
1166
|
+
super(`Multiple errors occurred: [${errors.map(e => e.message).join('], [')}]`);
|
|
1167
|
+
this.code = ERR_MULTIPLE_ERRORS;
|
|
1168
|
+
this.errors = errors;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
class InvalidValueError extends BaseWeb3Error {
|
|
1172
|
+
constructor(value, msg) {
|
|
1173
|
+
super(`Invalid value given "${BaseWeb3Error.convertToString(value, true)}". Error: ${msg}.`);
|
|
1174
|
+
this.name = this.constructor.name;
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
/*
|
|
1179
|
+
This file is part of web3.js.
|
|
1180
|
+
|
|
1181
|
+
web3.js is free software: you can redistribute it and/or modify
|
|
1182
|
+
it under the terms of the GNU Lesser General Public License as published by
|
|
1183
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
1184
|
+
(at your option) any later version.
|
|
1185
|
+
|
|
1186
|
+
web3.js is distributed in the hope that it will be useful,
|
|
1187
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1188
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1189
|
+
GNU Lesser General Public License for more details.
|
|
1190
|
+
|
|
1191
|
+
You should have received a copy of the GNU Lesser General Public License
|
|
1192
|
+
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
|
|
1193
|
+
*/
|
|
1194
|
+
/* eslint-disable max-classes-per-file */
|
|
1195
|
+
class InvalidAddressError extends InvalidValueError {
|
|
1196
|
+
constructor(value) {
|
|
1197
|
+
super(value, 'invalid ethereum address');
|
|
1198
|
+
this.code = ERR_INVALID_ADDRESS;
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
/*
|
|
1203
|
+
This file is part of web3.js.
|
|
1204
|
+
|
|
1205
|
+
web3.js is free software: you can redistribute it and/or modify
|
|
1206
|
+
it under the terms of the GNU Lesser General Public License as published by
|
|
1207
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
1208
|
+
(at your option) any later version.
|
|
1209
|
+
|
|
1210
|
+
web3.js is distributed in the hope that it will be useful,
|
|
1211
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1212
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1213
|
+
GNU Lesser General Public License for more details.
|
|
1214
|
+
|
|
1215
|
+
You should have received a copy of the GNU Lesser General Public License
|
|
1216
|
+
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
|
|
1217
|
+
*/
|
|
1218
|
+
/**
|
|
1219
|
+
* A template string for a generic Rpc Error. The `*code*` will be replaced with the code number.
|
|
1220
|
+
* Note: consider in next version that a spelling mistake could be corrected for `occured` and the value could be:
|
|
1221
|
+
* `An Rpc error has occurred with a code of *code*`
|
|
1222
|
+
*/
|
|
1223
|
+
const genericRpcErrorMessageTemplate = 'An Rpc error has occured with a code of *code*';
|
|
1224
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
1225
|
+
const RpcErrorMessages = {
|
|
1226
|
+
// EIP-1474 & JSON RPC 2.0
|
|
1227
|
+
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1474.md
|
|
1228
|
+
[ERR_RPC_INVALID_JSON]: {
|
|
1229
|
+
message: 'Parse error',
|
|
1230
|
+
description: 'Invalid JSON',
|
|
1231
|
+
},
|
|
1232
|
+
[ERR_RPC_INVALID_REQUEST]: {
|
|
1233
|
+
message: 'Invalid request',
|
|
1234
|
+
description: 'JSON is not a valid request object ',
|
|
1235
|
+
},
|
|
1236
|
+
[ERR_RPC_INVALID_METHOD]: {
|
|
1237
|
+
message: 'Method not found',
|
|
1238
|
+
description: 'Method does not exist ',
|
|
1239
|
+
},
|
|
1240
|
+
[ERR_RPC_INVALID_PARAMS]: {
|
|
1241
|
+
message: 'Invalid params',
|
|
1242
|
+
description: 'Invalid method parameters',
|
|
1243
|
+
},
|
|
1244
|
+
[ERR_RPC_INTERNAL_ERROR]: {
|
|
1245
|
+
message: 'Internal error',
|
|
1246
|
+
description: 'Internal JSON-RPC error',
|
|
1247
|
+
},
|
|
1248
|
+
[ERR_RPC_INVALID_INPUT]: {
|
|
1249
|
+
message: 'Invalid input',
|
|
1250
|
+
description: 'Missing or invalid parameters',
|
|
1251
|
+
},
|
|
1252
|
+
[ERR_RPC_MISSING_RESOURCE]: {
|
|
1253
|
+
message: 'Resource not found',
|
|
1254
|
+
description: 'Requested resource not found',
|
|
1255
|
+
},
|
|
1256
|
+
[ERR_RPC_UNAVAILABLE_RESOURCE]: {
|
|
1257
|
+
message: 'Resource unavailable',
|
|
1258
|
+
description: 'Requested resource not available',
|
|
1259
|
+
},
|
|
1260
|
+
[ERR_RPC_TRANSACTION_REJECTED]: {
|
|
1261
|
+
message: 'Transaction rejected',
|
|
1262
|
+
description: 'Transaction creation failed',
|
|
1263
|
+
},
|
|
1264
|
+
[ERR_RPC_UNSUPPORTED_METHOD]: {
|
|
1265
|
+
message: 'Method not supported',
|
|
1266
|
+
description: 'Method is not implemented',
|
|
1267
|
+
},
|
|
1268
|
+
[ERR_RPC_LIMIT_EXCEEDED]: {
|
|
1269
|
+
message: 'Limit exceeded',
|
|
1270
|
+
description: 'Request exceeds defined limit',
|
|
1271
|
+
},
|
|
1272
|
+
[ERR_RPC_NOT_SUPPORTED]: {
|
|
1273
|
+
message: 'JSON-RPC version not supported',
|
|
1274
|
+
description: 'Version of JSON-RPC protocol is not supported',
|
|
1275
|
+
},
|
|
1276
|
+
// EIP-1193
|
|
1277
|
+
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md#provider-errors
|
|
1278
|
+
[JSONRPC_ERR_REJECTED_REQUEST]: {
|
|
1279
|
+
name: 'User Rejected Request',
|
|
1280
|
+
message: 'The user rejected the request.',
|
|
1281
|
+
},
|
|
1282
|
+
[JSONRPC_ERR_UNAUTHORIZED]: {
|
|
1283
|
+
name: 'Unauthorized',
|
|
1284
|
+
message: 'The requested method and/or account has not been authorized by the user.',
|
|
1285
|
+
},
|
|
1286
|
+
[JSONRPC_ERR_UNSUPPORTED_METHOD]: {
|
|
1287
|
+
name: 'Unsupported Method',
|
|
1288
|
+
message: 'The Provider does not support the requested method.',
|
|
1289
|
+
},
|
|
1290
|
+
[JSONRPC_ERR_DISCONNECTED]: {
|
|
1291
|
+
name: 'Disconnected',
|
|
1292
|
+
message: 'The Provider is disconnected from all chains.',
|
|
1293
|
+
},
|
|
1294
|
+
[JSONRPC_ERR_CHAIN_DISCONNECTED]: {
|
|
1295
|
+
name: 'Chain Disconnected',
|
|
1296
|
+
message: 'The Provider is not connected to the requested chain.',
|
|
1297
|
+
},
|
|
1298
|
+
// EIP-1193 - CloseEvent
|
|
1299
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/code
|
|
1300
|
+
'0-999': {
|
|
1301
|
+
name: '',
|
|
1302
|
+
message: 'Not used.',
|
|
1303
|
+
},
|
|
1304
|
+
1000: {
|
|
1305
|
+
name: 'Normal Closure',
|
|
1306
|
+
message: 'The connection successfully completed the purpose for which it was created.',
|
|
1307
|
+
},
|
|
1308
|
+
1001: {
|
|
1309
|
+
name: 'Going Away',
|
|
1310
|
+
message: 'The endpoint is going away, either because of a server failure or because the browser is navigating away from the page that opened the connection.',
|
|
1311
|
+
},
|
|
1312
|
+
1002: {
|
|
1313
|
+
name: 'Protocol error',
|
|
1314
|
+
message: 'The endpoint is terminating the connection due to a protocol error.',
|
|
1315
|
+
},
|
|
1316
|
+
1003: {
|
|
1317
|
+
name: 'Unsupported Data',
|
|
1318
|
+
message: 'The connection is being terminated because the endpoint received data of a type it cannot accept. (For example, a text-only endpoint received binary data.)',
|
|
1319
|
+
},
|
|
1320
|
+
1004: {
|
|
1321
|
+
name: 'Reserved',
|
|
1322
|
+
message: 'Reserved. A meaning might be defined in the future.',
|
|
1323
|
+
},
|
|
1324
|
+
1005: {
|
|
1325
|
+
name: 'No Status Rcvd',
|
|
1326
|
+
message: 'Reserved. Indicates that no status code was provided even though one was expected.',
|
|
1327
|
+
},
|
|
1328
|
+
1006: {
|
|
1329
|
+
name: 'Abnormal Closure',
|
|
1330
|
+
message: 'Reserved. Indicates that a connection was closed abnormally (that is, with no close frame being sent) when a status code is expected.',
|
|
1331
|
+
},
|
|
1332
|
+
1007: {
|
|
1333
|
+
name: 'Invalid frame payload data',
|
|
1334
|
+
message: 'The endpoint is terminating the connection because a message was received that contained inconsistent data (e.g., non-UTF-8 data within a text message).',
|
|
1335
|
+
},
|
|
1336
|
+
1008: {
|
|
1337
|
+
name: 'Policy Violation',
|
|
1338
|
+
message: 'The endpoint is terminating the connection because it received a message that violates its policy. This is a generic status code, used when codes 1003 and 1009 are not suitable.',
|
|
1339
|
+
},
|
|
1340
|
+
1009: {
|
|
1341
|
+
name: 'Message Too Big',
|
|
1342
|
+
message: 'The endpoint is terminating the connection because a data frame was received that is too large.',
|
|
1343
|
+
},
|
|
1344
|
+
1010: {
|
|
1345
|
+
name: 'Mandatory Ext.',
|
|
1346
|
+
message: "The client is terminating the connection because it expected the server to negotiate one or more extension, but the server didn't.",
|
|
1347
|
+
},
|
|
1348
|
+
1011: {
|
|
1349
|
+
name: 'Internal Error',
|
|
1350
|
+
message: 'The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.',
|
|
1351
|
+
},
|
|
1352
|
+
1012: {
|
|
1353
|
+
name: 'Service Restart',
|
|
1354
|
+
message: 'The server is terminating the connection because it is restarting.',
|
|
1355
|
+
},
|
|
1356
|
+
1013: {
|
|
1357
|
+
name: 'Try Again Later',
|
|
1358
|
+
message: 'The server is terminating the connection due to a temporary condition, e.g. it is overloaded and is casting off some of its clients.',
|
|
1359
|
+
},
|
|
1360
|
+
1014: {
|
|
1361
|
+
name: 'Bad Gateway',
|
|
1362
|
+
message: 'The server was acting as a gateway or proxy and received an invalid response from the upstream server. This is similar to 502 HTTP Status Code.',
|
|
1363
|
+
},
|
|
1364
|
+
1015: {
|
|
1365
|
+
name: 'TLS handshake',
|
|
1366
|
+
message: "Reserved. Indicates that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified).",
|
|
1367
|
+
},
|
|
1368
|
+
'1016-2999': {
|
|
1369
|
+
name: '',
|
|
1370
|
+
message: 'For definition by future revisions of the WebSocket Protocol specification, and for definition by extension specifications.',
|
|
1371
|
+
},
|
|
1372
|
+
'3000-3999': {
|
|
1373
|
+
name: '',
|
|
1374
|
+
message: 'For use by libraries, frameworks, and applications. These status codes are registered directly with IANA. The interpretation of these codes is undefined by the WebSocket protocol.',
|
|
1375
|
+
},
|
|
1376
|
+
'4000-4999': {
|
|
1377
|
+
name: '',
|
|
1378
|
+
message: "For private use, and thus can't be registered. Such codes can be used by prior agreements between WebSocket applications. The interpretation of these codes is undefined by the WebSocket protocol.",
|
|
1379
|
+
},
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1382
|
+
/*
|
|
1383
|
+
This file is part of web3.js.
|
|
1384
|
+
|
|
1385
|
+
web3.js is free software: you can redistribute it and/or modify
|
|
1386
|
+
it under the terms of the GNU Lesser General Public License as published by
|
|
1387
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
1388
|
+
(at your option) any later version.
|
|
1389
|
+
|
|
1390
|
+
web3.js is distributed in the hope that it will be useful,
|
|
1391
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1392
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1393
|
+
GNU Lesser General Public License for more details.
|
|
1394
|
+
|
|
1395
|
+
You should have received a copy of the GNU Lesser General Public License
|
|
1396
|
+
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
|
|
1397
|
+
*/
|
|
1398
|
+
class RpcError extends BaseWeb3Error {
|
|
1399
|
+
constructor(rpcError, message) {
|
|
1400
|
+
super(message !== null && message !== void 0 ? message : genericRpcErrorMessageTemplate.replace('*code*', rpcError.error.code.toString()));
|
|
1401
|
+
this.code = rpcError.error.code;
|
|
1402
|
+
this.id = rpcError.id;
|
|
1403
|
+
this.jsonrpc = rpcError.jsonrpc;
|
|
1404
|
+
this.jsonRpcError = rpcError.error;
|
|
1405
|
+
}
|
|
1406
|
+
toJSON() {
|
|
1407
|
+
return Object.assign(Object.assign({}, super.toJSON()), { error: this.jsonRpcError, id: this.id, jsonRpc: this.jsonrpc });
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
class ParseError extends RpcError {
|
|
1411
|
+
constructor(rpcError) {
|
|
1412
|
+
super(rpcError, RpcErrorMessages[ERR_RPC_INVALID_JSON].message);
|
|
1413
|
+
this.code = ERR_RPC_INVALID_JSON;
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
class InvalidRequestError extends RpcError {
|
|
1417
|
+
constructor(rpcError) {
|
|
1418
|
+
super(rpcError, RpcErrorMessages[ERR_RPC_INVALID_REQUEST].message);
|
|
1419
|
+
this.code = ERR_RPC_INVALID_REQUEST;
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
class MethodNotFoundError extends RpcError {
|
|
1423
|
+
constructor(rpcError) {
|
|
1424
|
+
super(rpcError, RpcErrorMessages[ERR_RPC_INVALID_METHOD].message);
|
|
1425
|
+
this.code = ERR_RPC_INVALID_METHOD;
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
class InvalidParamsError extends RpcError {
|
|
1429
|
+
constructor(rpcError) {
|
|
1430
|
+
super(rpcError, RpcErrorMessages[ERR_RPC_INVALID_PARAMS].message);
|
|
1431
|
+
this.code = ERR_RPC_INVALID_PARAMS;
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
class InternalError extends RpcError {
|
|
1435
|
+
constructor(rpcError) {
|
|
1436
|
+
super(rpcError, RpcErrorMessages[ERR_RPC_INTERNAL_ERROR].message);
|
|
1437
|
+
this.code = ERR_RPC_INTERNAL_ERROR;
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
class InvalidInputError extends RpcError {
|
|
1441
|
+
constructor(rpcError) {
|
|
1442
|
+
super(rpcError, RpcErrorMessages[ERR_RPC_INVALID_INPUT].message);
|
|
1443
|
+
this.code = ERR_RPC_INVALID_INPUT;
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
class MethodNotSupported extends RpcError {
|
|
1447
|
+
constructor(rpcError) {
|
|
1448
|
+
super(rpcError, RpcErrorMessages[ERR_RPC_UNSUPPORTED_METHOD].message);
|
|
1449
|
+
this.code = ERR_RPC_UNSUPPORTED_METHOD;
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
class ResourceUnavailableError extends RpcError {
|
|
1453
|
+
constructor(rpcError) {
|
|
1454
|
+
super(rpcError, RpcErrorMessages[ERR_RPC_UNAVAILABLE_RESOURCE].message);
|
|
1455
|
+
this.code = ERR_RPC_UNAVAILABLE_RESOURCE;
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
class ResourcesNotFoundError extends RpcError {
|
|
1459
|
+
constructor(rpcError) {
|
|
1460
|
+
super(rpcError, RpcErrorMessages[ERR_RPC_MISSING_RESOURCE].message);
|
|
1461
|
+
this.code = ERR_RPC_MISSING_RESOURCE;
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
class VersionNotSupportedError extends RpcError {
|
|
1465
|
+
constructor(rpcError) {
|
|
1466
|
+
super(rpcError, RpcErrorMessages[ERR_RPC_NOT_SUPPORTED].message);
|
|
1467
|
+
this.code = ERR_RPC_NOT_SUPPORTED;
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
class TransactionRejectedError extends RpcError {
|
|
1471
|
+
constructor(rpcError) {
|
|
1472
|
+
super(rpcError, RpcErrorMessages[ERR_RPC_TRANSACTION_REJECTED].message);
|
|
1473
|
+
this.code = ERR_RPC_TRANSACTION_REJECTED;
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
class LimitExceededError extends RpcError {
|
|
1477
|
+
constructor(rpcError) {
|
|
1478
|
+
super(rpcError, RpcErrorMessages[ERR_RPC_LIMIT_EXCEEDED].message);
|
|
1479
|
+
this.code = ERR_RPC_LIMIT_EXCEEDED;
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
const rpcErrorsMap = new Map();
|
|
1483
|
+
rpcErrorsMap.set(ERR_RPC_INVALID_JSON, { error: ParseError });
|
|
1484
|
+
rpcErrorsMap.set(ERR_RPC_INVALID_REQUEST, {
|
|
1485
|
+
error: InvalidRequestError,
|
|
1486
|
+
});
|
|
1487
|
+
rpcErrorsMap.set(ERR_RPC_INVALID_METHOD, {
|
|
1488
|
+
error: MethodNotFoundError,
|
|
1489
|
+
});
|
|
1490
|
+
rpcErrorsMap.set(ERR_RPC_INVALID_PARAMS, { error: InvalidParamsError });
|
|
1491
|
+
rpcErrorsMap.set(ERR_RPC_INTERNAL_ERROR, { error: InternalError });
|
|
1492
|
+
rpcErrorsMap.set(ERR_RPC_INVALID_INPUT, { error: InvalidInputError });
|
|
1493
|
+
rpcErrorsMap.set(ERR_RPC_UNSUPPORTED_METHOD, {
|
|
1494
|
+
error: MethodNotSupported,
|
|
1495
|
+
});
|
|
1496
|
+
rpcErrorsMap.set(ERR_RPC_UNAVAILABLE_RESOURCE, {
|
|
1497
|
+
error: ResourceUnavailableError,
|
|
1498
|
+
});
|
|
1499
|
+
rpcErrorsMap.set(ERR_RPC_TRANSACTION_REJECTED, {
|
|
1500
|
+
error: TransactionRejectedError,
|
|
1501
|
+
});
|
|
1502
|
+
rpcErrorsMap.set(ERR_RPC_MISSING_RESOURCE, {
|
|
1503
|
+
error: ResourcesNotFoundError,
|
|
1504
|
+
});
|
|
1505
|
+
rpcErrorsMap.set(ERR_RPC_NOT_SUPPORTED, {
|
|
1506
|
+
error: VersionNotSupportedError,
|
|
1507
|
+
});
|
|
1508
|
+
rpcErrorsMap.set(ERR_RPC_LIMIT_EXCEEDED, { error: LimitExceededError });
|
|
1509
|
+
|
|
1510
|
+
/*
|
|
1511
|
+
This file is part of web3.js.
|
|
1512
|
+
|
|
1513
|
+
web3.js is free software: you can redistribute it and/or modify
|
|
1514
|
+
it under the terms of the GNU Lesser General Public License as published by
|
|
1515
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
1516
|
+
(at your option) any later version.
|
|
1517
|
+
|
|
1518
|
+
web3.js is distributed in the hope that it will be useful,
|
|
1519
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
1520
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
1521
|
+
GNU Lesser General Public License for more details.
|
|
1522
|
+
|
|
1523
|
+
You should have received a copy of the GNU Lesser General Public License
|
|
1524
|
+
along with web3.js. If not, see <http://www.gnu.org/licenses/>.
|
|
1525
|
+
*/
|
|
1526
|
+
/**
|
|
1527
|
+
* @module Utils
|
|
1528
|
+
*/
|
|
1529
|
+
// Ref: https://ethdocs.org/en/latest/ether.html
|
|
1530
|
+
// Note: this could be simplified using ** operator, but babel does not handle it well (https://github.com/babel/babel/issues/13109)
|
|
1531
|
+
/** @internal */
|
|
1532
|
+
({
|
|
1533
|
+
noether: BigInt(0),
|
|
1534
|
+
wei: BigInt(1),
|
|
1535
|
+
kwei: BigInt(1000),
|
|
1536
|
+
Kwei: BigInt(1000),
|
|
1537
|
+
babbage: BigInt(1000),
|
|
1538
|
+
femtoether: BigInt(1000),
|
|
1539
|
+
mwei: BigInt(1000000),
|
|
1540
|
+
Mwei: BigInt(1000000),
|
|
1541
|
+
lovelace: BigInt(1000000),
|
|
1542
|
+
picoether: BigInt(1000000),
|
|
1543
|
+
gwei: BigInt(1000000000),
|
|
1544
|
+
Gwei: BigInt(1000000000),
|
|
1545
|
+
shannon: BigInt(1000000000),
|
|
1546
|
+
nanoether: BigInt(1000000000),
|
|
1547
|
+
nano: BigInt(1000000000),
|
|
1548
|
+
szabo: BigInt(1000000000000),
|
|
1549
|
+
microether: BigInt(1000000000000),
|
|
1550
|
+
micro: BigInt(1000000000000),
|
|
1551
|
+
finney: BigInt(1000000000000000),
|
|
1552
|
+
milliether: BigInt(1000000000000000),
|
|
1553
|
+
milli: BigInt(1000000000000000),
|
|
1554
|
+
ether: BigInt('1000000000000000000'),
|
|
1555
|
+
kether: BigInt('1000000000000000000000'),
|
|
1556
|
+
grand: BigInt('1000000000000000000000'),
|
|
1557
|
+
mether: BigInt('1000000000000000000000000'),
|
|
1558
|
+
gether: BigInt('1000000000000000000000000000'),
|
|
1559
|
+
tether: BigInt('1000000000000000000000000000000'),
|
|
1560
|
+
});
|
|
1561
|
+
const utf8ToBytes = utf8ToBytes$1;
|
|
1562
|
+
/**
|
|
1563
|
+
* Will convert an upper or lowercase Ethereum address to a checksum address.
|
|
1564
|
+
* @param address - An address string
|
|
1565
|
+
* @returns The checksum address
|
|
1566
|
+
* @example
|
|
1567
|
+
* ```ts
|
|
1568
|
+
* web3.utils.toChecksumAddress('0xc1912fee45d61c87cc5ea59dae31190fffff232d');
|
|
1569
|
+
* > "0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d"
|
|
1570
|
+
* ```
|
|
1571
|
+
*/
|
|
1572
|
+
const toChecksumAddress = (address) => {
|
|
1573
|
+
if (!isAddress(address, false)) {
|
|
1574
|
+
throw new InvalidAddressError(address);
|
|
1575
|
+
}
|
|
1576
|
+
const lowerCaseAddress = address.toLowerCase().replace(/^0x/i, '');
|
|
1577
|
+
// calling `Uint8Array.from` because `noble-hashes` checks with `instanceof Uint8Array` that fails in some edge cases:
|
|
1578
|
+
// https://github.com/paulmillr/noble-hashes/issues/25#issuecomment-1750106284
|
|
1579
|
+
const hash = uint8ArrayToHexString(keccak256(ensureIfUint8Array(utf8ToBytes(lowerCaseAddress))));
|
|
1580
|
+
if (isNullish(hash) ||
|
|
1581
|
+
hash === '0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470')
|
|
1149
1582
|
return ''; // // EIP-1052 if hash is equal to c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470, keccak was given empty data
|
|
1150
1583
|
let checksumAddress = '0x';
|
|
1151
1584
|
const addressHash = hash.replace(/^0x/i, '');
|
|
@@ -1170,62 +1603,64 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
1170
1603
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
1171
1604
|
if (decorator = decorators[i])
|
|
1172
1605
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
1173
|
-
if (kind && result)
|
|
1174
|
-
__defProp(target, key, result);
|
|
1606
|
+
if (kind && result) __defProp(target, key, result);
|
|
1175
1607
|
return result;
|
|
1176
1608
|
};
|
|
1177
1609
|
exports.LuksoUsername = class LuksoUsername extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1610
|
+
constructor() {
|
|
1611
|
+
super(...arguments);
|
|
1612
|
+
this.name = "";
|
|
1613
|
+
this.address = "";
|
|
1614
|
+
this.maxWidth = 200;
|
|
1615
|
+
this.size = "large";
|
|
1616
|
+
this.sliceBy = 8;
|
|
1617
|
+
this.addressColor = "";
|
|
1618
|
+
this.nameColor = "";
|
|
1619
|
+
this.customClass = "";
|
|
1620
|
+
this.hidePrefix = false;
|
|
1621
|
+
this.prefix = "@";
|
|
1622
|
+
this.noTransform = false;
|
|
1623
|
+
/** Width of the first 4 bytes of the address */
|
|
1624
|
+
this.bytesWidth = 52;
|
|
1625
|
+
this.styles = index.ce({
|
|
1626
|
+
slots: {
|
|
1627
|
+
wrapper: "inline-flex",
|
|
1628
|
+
name: "inline-block whitespace-nowrap overflow-hidden text-ellipsis",
|
|
1629
|
+
address: "inline-block",
|
|
1630
|
+
bytes: "inline-block"
|
|
1631
|
+
},
|
|
1632
|
+
variants: {
|
|
1633
|
+
size: {
|
|
1634
|
+
"x-small": {
|
|
1635
|
+
wrapper: "paragraph-ptmono-10-bold"
|
|
1636
|
+
},
|
|
1637
|
+
small: {
|
|
1638
|
+
wrapper: "paragraph-ptmono-12-bold"
|
|
1639
|
+
},
|
|
1640
|
+
medium: {
|
|
1641
|
+
wrapper: "paragraph-ptmono-14-bold"
|
|
1642
|
+
},
|
|
1643
|
+
large: {
|
|
1644
|
+
wrapper: "paragraph-ptmono-16-bold"
|
|
1645
|
+
},
|
|
1646
|
+
"x-large": {
|
|
1647
|
+
wrapper: "paragraph-ptmono-24-bold"
|
|
1648
|
+
}
|
|
1208
1649
|
},
|
|
1209
|
-
|
|
1210
|
-
|
|
1650
|
+
hasNameColor: {
|
|
1651
|
+
false: {
|
|
1652
|
+
name: "text-transparent bg-clip-text bg-gradient-to-r from-gradient-1-start to-gradient-1-end"
|
|
1653
|
+
}
|
|
1211
1654
|
},
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
false: {
|
|
1218
|
-
name: "text-transparent bg-clip-text bg-gradient-to-r from-gradient-1-start to-gradient-1-end"
|
|
1219
|
-
}
|
|
1220
|
-
},
|
|
1221
|
-
hasAddressColor: {
|
|
1222
|
-
false: {
|
|
1223
|
-
address: "text-neutral-20",
|
|
1224
|
-
bytes: "text-neutral-60"
|
|
1655
|
+
hasAddressColor: {
|
|
1656
|
+
false: {
|
|
1657
|
+
address: "text-neutral-20",
|
|
1658
|
+
bytes: "text-neutral-60"
|
|
1659
|
+
}
|
|
1225
1660
|
}
|
|
1226
1661
|
}
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1229
1664
|
transformName(name) {
|
|
1230
1665
|
if (this.noTransform) {
|
|
1231
1666
|
return name;
|