1.0.0 • Published 2 years ago

axonv2sdk v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Uniswap SDK

code style: prettier Actions Status npm version npm bundle size (scoped version)

In-depth documentation on this SDK is available at uniswap.org.

Running tests

To run the tests, follow these steps. You must have at least node v10 and yarn installed.

First clone the repository:

git clone https://github.com/Uniswap/uniswap-sdk.git

Move into the uniswap-sdk working directory

cd uniswap-sdk/

Install dependencies

yarn install

Run tests

yarn test

You should see output like the following:

yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
acornacorn-globalsababacorn-jsxacorn-walkansi-escapesansi-colorsajvansi-stylesansi-regexanymatcharia-queryargparsearr-unionarray.prototype.flatarr-flattenarr-diffarray-includesarray-uniquearray-equalassert-plusarray.prototype.flatmapasync-eachasn1assign-symbolsastral-regexast-types-flowasync-limiterasyncroatobasynckitaws-sign2axobject-querybabel-code-frameaws4axe-corebabel-plugin-annotate-pure-callsbabel-jestbabel-eslintbabel-messagesbabel-plugin-dynamic-import-nodebabel-plugin-dev-expressionbabel-plugin-istanbulbabel-plugin-jest-hoistbabel-plugin-transform-async-to-promisesbabel-plugin-transform-rename-importbabel-plugin-macrosbabel-plugin-transform-jsbi-to-bigintbabel-preset-jestbabel-runtimebabel-typesbabel-traversebabylonbasebalanced-matchbcrypt-pbkdfbig.jsbracesbluebirdbinary-extensionsbrace-expansionbrowser-process-hrtimebrorandbn.jsbrowser-resolvebs-loggerbserbrowserslistcache-basebuiltin-modulesbuffer-fromcamel-casecamelcasecaniuse-litecapture-exitcallsitescaselesschokidarchardetchalkchokidar-clici-infoclass-utilscli-cursorcli-spinnerscliuicli-widthclonecocollection-visitcolor-namecombined-streamcolor-convertcommandercomponent-emittercommondirconcat-mapcontains-pathconfusing-browser-globalscopy-descriptorconvert-source-mapcore-util-iscore-js-compatcore-jscore-js-purecosmiconfigcross-spawncross-envcssomcssstyledashdashdamerau-levenshteindecamelizedebugdata-urlsdecimal.js-lightdefaultsdeep-isdecode-uri-componentdefine-propertiesdefine-propertydiff-sequencesdelayed-streamdoctrinedetect-newlineellipticecc-jsbnelectron-to-chromiumdomexceptionend-of-streamenquireremoji-regexerror-exescaladees-abstractes-to-primitiveescape-string-regexpeslint-config-prettiereslintescodegeneslint-config-react-appeslint-module-utilseslint-plugin-importeslint-import-resolver-nodeeslint-plugin-flowtypeeslint-plugin-reacteslint-plugin-jsx-a11yeslint-plugin-prettiereslint-plugin-react-hookseslint-utilseslint-scopeeslint-visitor-keysespreeesqueryesprimaestraverseesrecurseexitexec-shesutilsestree-walkerexpectextendexecaexpand-bracketsexternal-editorextsprintfextend-shallowfast-deep-equalfast-difffast-json-stable-stringifyfast-levenshteinextglobfiguresfile-entry-cachefill-rangefb-watchmanfind-upflattedfind-cache-dirflat-cachefor-inforever-agentform-datafragment-cachefs.realpathfunctional-red-black-treefunction-bindfs-extragensyncget-streamget-stdinget-caller-fileglob-parentget-valuegetpassglobglobalsglobrexgraceful-fsglobalyzerhar-schemagrowlyhashar-validatorhas-symbolshas-ansihas-valuehas-flaghas-valueshosted-git-infohash.jshmac-drbghtml-encoding-snifferhttp-signaturehtml-escaperhumanize-durationhuman-signalsignoreimport-freshimport-localiconv-liteinheritsinflightinquirerimurmurhashinternal-slotinterpretis-accessor-descriptorinvariantis-callableis-bufferis-arrayishis-binary-pathis-data-descriptoris-descriptoris-ciis-date-objectis-extendableis-generator-fnis-extglobis-fullwidth-code-pointis-moduleis-plain-objectis-numberis-globis-streamis-stringis-referenceis-regexis-typedarrayis-wslis-symbolis-windowsisstreamisobjectisarrayisexeistanbul-lib-coverageistanbul-lib-source-mapsistanbul-lib-instrumentistanbul-lib-reportistanbul-reportsjest-changed-filesjest-clijestjest-diffjest-configjest-eachjest-docblockjest-get-typejest-environment-jsdomjest-environment-nodejest-haste-mapjest-leak-detectorjest-jasmine2jest-message-utiljest-matcher-utilsjest-mockjest-resolvejest-pnp-resolverjest-regex-utiljest-resolve-dependenciesjest-serializerjest-runnerjest-runtimejest-snapshotjest-validatejest-watch-typeaheadjest-utiljest-watcherjpjsjs-sha3jest-workerjs-tokensjsbnjs-yamljsbijsdomjson-schemajson-parse-better-errorsjsescjson-schema-traversejson-stringify-safejson-stable-stringify-without-jsonifyjson5jsonfilejsx-ast-utilslanguage-tagskind-ofjsprimleft-padlanguage-subtag-registrykleurlevenarylevenlines-and-columnslevnload-json-filelocate-pathlodashlodash.memoizelodash.mergelog-symbolslog-updatelodash.sortbyloose-envifylower-casemake-dirmagic-stringmake-errormap-cachemerge-streammakeerrormap-visitmime-dbmicromatchmime-typesmimic-fnminimalistic-assertminimistminimalistic-crypto-utilsminimatchmixin-deepmkdirpmute-streammsnanomatchmrinice-tryno-casenode-int64natural-comparenode-notifiernormalize-package-datanode-modules-regexpnode-releasesnormalize-pathnpm-run-pathnwsapioauth-signobject-copyobject-assignobject-visitobject-keysobject-inspectobject.assignobject.fromentriesobject.entriesobject.getownpropertydescriptorsobject.pickonceobject.valuesonetimeoraos-tmpdiroptionatorp-each-seriesp-finallyp-limitp-reducep-locatep-tryparse-jsonparent-moduleparse5pascal-casepascalcasepath-dirnamepath-keypath-is-absolutepath-parsepath-existspath-typeperformance-nowpifypkg-dirpicomatchpiratesposix-character-classespnprettierprettier-linter-helperspretty-formatprocess-nextick-argsprelude-lsprogressprogress-estimatorpromptsprop-typespumppunycodepslread-pkgreact-isqsread-pkg-upreadable-streamrechoirrealpath-nativereaddirpregenerateregenerator-runtimeregenerate-unicode-propertiesregenerator-transformregex-notregexppregexp.prototype.flagsregexpu-coreregjsgenremove-trailing-separatorregjsparserrepeat-stringrepeat-elementrequestrequest-promise-corerequest-promise-nativerequire-directoryresolverequire-main-filenameresolve-cwdresolve-fromrestore-cursorresolve-urlretrimrafrollup-plugin-sourcemapsrollup-plugin-babelrolluprollup-plugin-terserrsvprollup-pluginutilsrollup-plugin-typescript2run-asyncsafe-bufferrxjssadesafe-regexsanesafer-buffersaxserialize-javascriptset-valuesemverset-blockingshebang-commandshelljsshebang-regexshellwordssignal-exitslashside-channelsisteransislice-ansisnapdragon-utilsnapdragonsnapdragon-nodesource-mapsource-map-urlsource-map-resolvesourcemap-codecsource-map-supportspdx-correctspdx-exceptionssprintf-jsspdx-expression-parsespdx-license-idsstack-utilssplit-stringstatic-extendsshpkstring-lengthstring-widthstealthy-requirestring_decoderstring.prototype.matchallstrip-bomstring.prototype.trimendstrip-ansistring.prototype.trimstartstrip-eofstrip-json-commentssupports-colorstrip-final-newlinetablesymbol-treetersertest-excludethroughtiny-globthroattext-tabletiny-invariantto-object-pathtiny-warningtmptoformatto-fast-propertiesto-regex-rangetmplto-regextr46ts-jesttough-cookietsutilstsdxtslibtsconfig-pathstunnel-agenttype-festtype-checktweetnacltypescriptunicode-match-property-value-ecmascriptunicode-property-aliases-ecmascriptunicode-canonical-property-names-ecmascriptuniversalifyunicode-match-property-ecmascriptupper-caseunion-valueunset-valueupathupper-case-firstuseuri-jsutil.promisifyurixuuidv8-compile-cachew3c-hr-timevalidate-npm-package-licenseutil-deprecatewalkerwebidl-conversionswcwidthverrorwhatwg-mimetypewhich-modulewhatwg-encodingwhatwg-urlwhichwrap-ansiwriteword-wrapwrappywrite-file-atomicxml-name-validatoryamly18nwsyargsyargs-parser
1.0.0

2 years ago