You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 826B

12345678910111213141516171819202122
  1. // cuurently I do not have write access to the key-exchange-client
  2. // to build this file will replace example/src/index.js in the key-exchange-client repo
  3. // we build the repo
  4. // wasm-pack build web-client --target bundler --out-dir ../pkg
  5. // cd example
  6. // npm install
  7. // npm run build
  8. // we take the output from example/dist and put it in tmp_hot_rld/key_exchange_dist in relays-io/video
  9. import { connect, WalletConnection, keyStores, Near } from 'near-api-js';
  10. const web_client = await import("../../pkg/web_client");
  11. const { KeyProvisioner, ProvisionerConfig } = await import("../../pkg/web_client");
  12. import * as near_api from 'near-api-js';
  13. Object.assign(glob_rx.react.modules,{near_api,web_client})
  14. Object.assign(glob_rx.react.i,{connect, WalletConnection, keyStores, Near,KeyProvisioner, ProvisionerConfig})