0.10.0 • Published 9 months ago

@agoric/rpc v0.10.0

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

For more complete examples and setup see Agoric/ui-kit

import {
  makeAgoricChainStorageWatcher,
  AgoricChainStoragePathKind as Kind
} from '@agoric/rpc';

const watcher = makeAgoricChainStorageWatcher(rpc, chainName);

// Watch vstorage children at a given node.
const stopWatching = watcher.watchLatest<string[]>(
  [Kind.Children, 'published.vaultFactory.managers'],
  managerIds => {
    console.log('Got vault manager IDs:', managerIds);
  }
)

// Stop watching.
stopWatching();
0.10.0

1 year ago

0.9.0

2 years ago

0.8.0

2 years ago

0.7.2

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.6.0

2 years ago