npm.io
0.1.3-40 • Published 4 years ago

@anchor-protocol/crossanchor-sdk

Licence
Apache-2.0
Version
0.1.3-40
Deps
5
Size
692 kB
Vulns
0
Weekly
0

Crossanchor-sdk

TypeScript SDK for accessing Cross-chain Anchor APIs.

Development setup

As the library is hosted in a private github repo, and hence not published to npm, development and setup has to be done locally.

Perform the setup using the below steps:

  • Clone the repo on the same level as anchor-web-app project.
  • Link crossanchor-sdk as local dependency from anchor-web-app project.
    • ~/anchor-web-app/npm link ../crosssanchor-sdk should do it.
    • Your package.json should show a newly added dependency similar to "@crossanchor/sdk": "portal:${user}/crossanchor-sdk".
  • ~/anchor-web-app/yarn install
  • If configured, remove vite's readable-stream override. @certus-one/wormhole-sdk doesn't fit well with browser stream pollyfills.
      'readable-stream': 'vite-compatible-readable-stream/readable-browser.js',

TODO:

  • Complete readme.