1import { useCallback, useState } from 'react';
2import * as azimuth from 'azimuth-js';
4import { useNetwork } from 'store/network';
6export default function useEclipticOwnerStore() {
7 const { contracts } = useNetwork();
8 const [eclipticOwner, _setEclipticOwner] = useState(null);
10 const syncEclipticOwner = useCallback(async () => {
11 // owner is generally immutable
16 const _contracts = contracts.getOrElse(null);
21 const owner = await azimuth.ecliptic.owner(_contracts);
22 _setEclipticOwner(owner);
23 }, [contracts, eclipticOwner]);
25 return { eclipticOwner, syncEclipticOwner };
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list