0.1.1 • Published 1 year ago

@summonlabs/use-ada-handle-resolver v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ADA Handle resolver

This is useful hook for react based apps to resolve ADA handles as Cardano addresses

Debounced, with custom delay

Works on mainnnet and the old testnet

Example

Use it on input, and show the resolved address to an user. Address is returned as an empty string when no handle is resolved.

const BLOCKFROST_PROJECT_ID = `<project_id>`
const App = () => {

  const { address, handleInputChangeDebounced } = useAdaHandleResolver({ blockfrostProjectId: BLOCKFROST_PROJECT_ID, delay: 500 })

  return (
    <form>
      <input type={'text'} onChange={handleInputChangeDebounced} />
      {address ? `Resolved as ${address}` : ``}
    </form>
  );
};
acorn-walkacornajvacorn-globalsababacorn-jsxansi-escapesansi-stylesansi-regexansi-colorsargparseanymatcharia-queryarr-flattenarr-diffarr-unionarray-equalarray-uniquearray-includesarray.prototype.flatmaparray-unionarray.prototype.flatasn1assert-plusassign-symbolsastral-regexast-types-flowasynckitasyncroat-least-nodeatobaws-sign2aws4axe-coreaxobject-querybabel-eslintbabel-jestbabel-plugin-dev-expressionbabel-plugin-annotate-pure-callsbabel-plugin-istanbulbabel-plugin-macrosbabel-plugin-jest-hoistbabel-plugin-polyfill-corejs2babel-plugin-polyfill-corejs3babel-plugin-polyfill-regeneratorbabel-preset-current-node-syntaxbabel-plugin-transform-rename-importbabel-preset-jestbalanced-matchbasebinary-extensionsbcrypt-pbkdfbrace-expansionbracesbrowser-process-hrtimebrowser-resolvebrowserslistbs-loggerbuiltin-modulesbuffer-fromcache-basebytes-iecbsercall-bindcallsitescamelcasecaniuse-litecapture-exitchalkcaselesschardetchokidarci-job-numberclass-utilsci-infocli-cursorcli-spinnerscli-widthclonecliuicocollect-v8-coveragecolor-convertcollection-visitcolor-namecombined-streamcommandercomponent-emittercommondirconcat-mapconfusing-browser-globalscopy-descriptorconvert-source-mapcore-js-compatcore-js-purecore-util-iscross-spawncosmiconfigcssomcssstylecsstypedamerau-levenshteindata-urlsdashdashdebugdecode-uri-componentdecamelizedeep-isdeepmergedefaultsdefine-propertiesdefine-propertydelayed-streamdetect-newlinediff-sequencesdir-globdoctrinedomexceptionecc-jsbnelectron-to-chromiumemoji-regexenquirerend-of-streamerror-exes-abstractes-to-primitivees-shim-unscopablesesbuildesbuild-windows-64escaladeescape-string-regexpescodegeneslint-config-react-appeslint-config-prettiereslinteslint-import-resolver-nodeeslint-plugin-flowtypeeslint-plugin-jsx-a11yeslint-plugin-importeslint-plugin-prettiereslint-module-utilseslint-plugin-reacteslint-plugin-react-hookseslint-scopeeslint-utilseslint-visitor-keysespreeesprimaesqueryesrecurseestree-walkeresutilsexec-shestraverseexecaexitexpand-bracketsexpectextendextend-shallowexternal-editorextglobextsprintffast-deep-equalfast-difffast-globfast-json-stable-stringifyfast-levenshteinfastqfb-watchmanfiguresfile-entry-cachefill-rangefind-cache-dirflat-cachefind-upflattedfor-inforever-agentform-datafragment-cachefs-extrafs.realpathfunction-bindfunctional-red-black-treefunction.prototype.namefunctions-have-namesget-caller-fileget-package-typeget-stdinget-streamgetpassglobgensyncget-symbol-descriptionglob-parentglobalyzerglobalsget-intrinsicget-valueglobbyglobrexgraceful-fsgrowlyhar-schemahar-validatorhashas-flaghas-property-descriptorshas-bigintshas-symbolshas-tostringtaghas-valuehas-valueshosted-git-infohtml-encoding-snifferhtml-escaperhttp-signaturehuman-signalshumanize-durationiconv-liteignoreimport-freshimport-localimurmurhashinflightinheritsinterpretinternal-slotinquirerip-regexis-arrayishis-accessor-descriptoris-bigintis-binary-pathis-boolean-objectis-callableis-ciis-bufferis-core-moduleis-data-descriptoris-date-objectis-descriptoris-dockeris-extendableis-fullwidth-code-pointis-extglobis-globis-generator-fnis-interactiveis-moduleis-negative-zerois-numberis-number-objectis-plain-objectis-referenceis-shared-array-bufferis-regexis-streamis-stringis-symbolis-weakrefis-typedarrayis-windowsistanbul-lib-coverageis-wslisarrayistanbul-lib-reportistanbul-lib-instrumentisexeistanbul-lib-source-mapsistanbul-reportsjestjest-changed-filesjest-cliisobjectjest-diffjest-configjest-docblockjest-eachjest-environment-jsdomjest-environment-nodejest-get-typeisstreamjest-haste-mapjest-leak-detectorjest-jasmine2jest-matcher-utilsjest-message-utiljest-mockjest-pnp-resolverjest-regex-utiljest-resolvejest-resolve-dependenciesjest-runnerjest-runtimejest-serializerjest-snapshotjest-utiljest-validatejest-watch-typeaheadjest-watcherjest-workerjpjsjs-tokensjs-yamljsbnjsdomjsescjson-parse-even-better-errorsjson-schemajson-schema-traversejson-stable-stringify-without-jsonifyjson-stringify-safejson5jsonfilejsprimjsx-ast-utilskind-ofkleurlanguage-subtag-registrylanguage-tagslevenlevnlilconfiglocate-pathlines-and-columnslodashlodash.debouncelodash.memoizelodash.mergelodash.sortbylog-symbolslog-updatelolexloose-envifylower-casemagic-stringlru-cachemake-dirmake-errormakeerrormap-cachemerge-streammap-visitmerge2mime-typesmimic-fnminimistmixin-deepminimatchmkdirpmicromatchmrimsnanoidnanospinnernatural-comparenanomatchnice-trymute-streamno-casemime-dbnode-int64node-notifiernode-releasesnormalize-package-datanormalize-pathnpm-run-pathnwsapiobject-copyobject-keysobject-assignobject-inspectobject-visitobject.assignobject.entriesoauth-signobject.fromentriesobject.hasownobject.pickobject.valuesonceonetimeoptionatororaos-tmpdirp-each-seriesp-finallyp-limitp-locatep-tryparent-moduleparse-jsonpascal-caseparse5pascalcasepath-existspath-is-absolutepath-keypath-parsepath-typeperformance-nowpicocolorspiratespkg-dirpicomatchpnposix-character-classesprelude-lsprettierpretty-formatprettier-linter-helpersprogressprogress-estimatorprop-typespromptspslpumppunycodeqsqueue-microtaskrandombytesreact-isread-pkgread-pkg-upreaddirprealpath-nativerechoirregenerateregenerate-unicode-propertiesregenerator-runtimeregenerator-transformregex-notregexppregexp.prototype.flagsregexpu-coreregjsgenregjsparserremove-trailing-separatorrepeat-elementrequestrepeat-stringrequest-promise-corerequest-promise-nativerequire-directoryresolverequire-main-filenameresolve-fromrestore-cursorretresolve-urlreusifyrimrafresolve-cwdrolluprollup-plugin-sourcemapsrollup-plugin-terserrollup-pluginutilsrsvprun-asyncrun-parallelrxjssadesafe-buffersafe-regexsafe-regex-testsafer-buffersanesaxesschedulersemverserialize-javascriptset-blockingset-valueshebang-regexshebang-commandshelljsshellwordssignal-exitside-channelsisteransislashslice-ansisnapdragonsnapdragon-nodesnapdragon-utilsource-mapsource-map-resolvesource-map-supportsource-map-urlsourcemap-codecspdx-correctspdx-exceptionsspdx-expression-parsespdx-license-idssplit-stringsprintf-jssshpkstatic-extendstack-utilsstealthy-requirestring-widthstring-lengthstring.prototype.matchallstring.prototype.trimendstring.prototype.trimstartstrip-ansistrip-bomstrip-eofstrip-final-newlinestrip-json-commentssupports-hyperlinkssupports-colorsupports-preserve-symlinks-flagsymbol-treetableterminal-linktersertest-excludetext-tablethroatthroughtiny-globtmpto-object-pathtmplto-regexto-regex-rangetough-cookieto-fast-propertiestr46tsconfig-pathstsutilstunnel-agenttweetnacltype-checktype-detecttype-festtypedarray-to-bufferunbox-primitiveunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascriptunicode-match-property-value-ecmascriptunicode-property-aliases-ecmascriptunion-valueuniversalifyunset-valueupdate-browserslist-dburi-jsurixuseuuidv8-compile-cachev8-to-istanbulvalidate-npm-package-licenseverrorw3c-hr-timew3c-xmlserializerwalkerwcwidthwebidl-conversionswhatwg-encodingwhatwg-mimetypewhatwg-urlwhichwhich-boxed-primitivewhich-moduleword-wrapwrap-ansiwrappywrite-file-atomicwsxml-name-validatorxmlcharsyallisty18nyamlyargs-parseryargswrite
0.1.1

1 year ago

0.1.0

1 year ago