Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@uns/ts-sdk

spacelephant77MIT4.5.0TypeScript support: included

UNS typescript SDK

readme

Unikname Typescript SDK

How to use

Please visit SDK page from UNN documentation.

How to contribute

Run tests

yarn test

Build project

yarn build

Release

On develop branch: yarn release

NB: use semver

Naming convention

⚠️ universal-name-system, UNS, uns.network are previous names of the unikname.network blockchain.

⚠️ UNIK is the previous name of the UNIKNAME nft token

⚠️ UNS is the previous name of the UNIK protocol token

=> Renaming in codebase will be made progressively.

License

MIT © UNS

changelog

4.5.0 (2021-08-23)

4.4.2-dev.1 (2021-08-23)

Features

4.4.2-dev.0 (2021-08-23)

4.4.1 (2021-07-29)

4.4.1-dev.0 (2021-07-29)

Bug Fixes

4.4.0 (2021-07-28)

4.3.1-dev.4 (2021-07-28)

4.3.1-dev.3 (2021-07-28)

Features

  • add transaction.sendBatch method (0f77569)

4.3.1-dev.2 (2021-07-20)

Features

  • add isResigned to Wallet type (5e9099e)
  • add unik type to ResolutionResult (040c0b0)

4.3.0 (2021-06-01)

4.2.3-dev.3 (2021-06-01)

4.2.3-dev.2 (2021-05-13)

Features

Bug Fixes

  • get current vote wallet api properties (08da6fe)
  • remove dist imports for tree-shaking (8cb7d0d)

4.2.3-dev.0 (2021-05-05)

Features

  • add nft transfer functions and repo (7d9e4e6)

4.2.2 (2021-05-04)

4.2.0 (2021-05-03)

Features

  • add attributes to wallet response type (a840164)
  • add events badge to properties white list (3aaf1c3)
  • add get block transactions function (ef6c873)
  • Add jwtProof in certification request body (498bd15)
  • add lifecyclestatusproof in certified update function (ad5b42a)
  • add nft factory event badge service (0332040)
  • add orderId parameter (fa22862)
  • add pagination for transaction search (b1fdde2)
  • add parameter to not filter properties (f755e3f)
  • add wallet search api (95f3f98)
  • add wallet transactions function (8395ec2)
  • increase timeout to 15s (82be783)
  • remove tokenEcoV1 deadcode (69ca242)
  • split did parse function parsing/checks (ebfe1fe)

Bug Fixes

  • createCertifiedNftMintTransaction parameters order (7ac8f33)
  • Http Post request (a50ff25)
  • pionner badge key (77d2980)

Changelog

All notable changes to this project will be documented in this file.

[Unreleased]

Added

  • add get block transaction endpoint support
  • add event badges to properties white list

Changed

  • http timeouts increased from 10s to 15s

Removed

4.0.0 2020-11-26

Added

  • check if unik is allowed to vote depending on lifecycle (#3096)
  • get pioneer badge value function (#3094)
  • custom service option (#3023)
  • transaction schema check (#3023)
  • Add alive demand services (#2985)
  • token eco V2: set fees to 0 for individual mint (#2999)
  • Each HTTP client functions has been isolated into an importable function to enable tree-shaking in clients. They're callable like fingerprintCompute ({repository}{function} to be searched easier).

Changed

  • HTTP client configuration has changed and has been merged to have a consistent API
    • DEFAULT_UNS_CONFIG is a UNSConfig composed of 3 properties : network, defaultHeaders and endpoints (all by network)
    • chain endpoint has been renamed to network
    • headers becomes defaultHeaders
  • fingerprint.compute takes a DIDTypes instead of a DIDType
  • token eco V2: Set Lifecycle status to MINTED when minting (#2985)
  • Internal file organization has changed
    • 3 folders:
      • clients: configurable http client, atomic http functions and old UNSClient (for backward compatibility)
      • functions: old business functions but grouped by business value
      • utils: SDK internal utilities (not exported)
    • types has been spread into business folders (but they're still exported)

Removed

3.3.0 - 2020-09-24

Added

  • new services endpoint GET /network-unit-services/mint
  • add cost and type in NetworkUnitService type
  • create a new type NetworkUnitMintService inherits NetworkUnitService

3.2.0 - 2020-09-17

Added

  • transaction unconfirmed endpoint (#2952)
  • merge Transaction type with core ITransactionData

3.1.0 - 2020-09-03

Added

  • Add Everlasting service (#2902)
  • Add verified JWT type

3.0.0 - 2020-08-20

Added

  • Add url checkers services (#2866)

Changed

  • Official support of node 12 (#2852)

Removed

  • Webpack bundle build (#2924)