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