0.16.0 • Published 9 months ago

@agoric/web-components v0.16.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
9 months ago

For complete examples and setup see Agoric/ui-kit

import { subscribeLatest } from '@agoric/notifier';
import { makeAgoricChainStorageWatcher } from '@agoric/rpc';
import { makeAgoricWalletConnection } from '@agoric/web-components';

const watcher = makeAgoricChainStorageWatcher(rpc, chainName);
const connection = await makeAgoricWalletConnection(watcher);
const {pursesNotifier, publicSubscribersNotifier} = chainConnection;

// Sign an on-chain offer transaction.
connection.makeOffer(...offer);

// Read the user's token balances.
for await (const purses of subscribeLatest(pursesNotifier)) {
  console.log('Got user purses:', purses);
}
0.6.4-u14.0

1 year ago

0.6.4-u14.1

1 year ago

0.15.0

1 year ago

0.6.4-u13.0

2 years ago

0.16.0

1 year ago

0.6.4-u15.0

1 year ago

0.14.0

1 year ago

0.6.4-u12.0

2 years ago

0.13.2

2 years ago

0.11.0

2 years ago

0.12.0

2 years ago

0.10.0

2 years ago

0.6.4-u11wf.0

2 years ago

0.6.4-u11.0

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.2

2 years ago

0.5.0

3 years ago

0.5.1

2 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago