1import { Ownership, Proxy } from '@urbit/roller-api';
3const isManagementProxy = (owner: Ownership, address: string) =>
4 owner.managementProxy?.address === address;
6const isTransferProxy = (owner: Ownership, address: string) =>
7 owner.transferProxy?.address === address;
9const isSpawnProxy = (owner: Ownership, address: string) =>
10 owner.spawnProxy?.address === address;
12const isOwnerProxy = (owner: Ownership, address: string) =>
13 owner.owner?.address === address;
15export const getSpawnProxy = (owner: Ownership, address: string) =>
16 isOwnerProxy(owner, address)
18 : isSpawnProxy(owner, address)
22export const getManagerProxy = (owner: Ownership, address: string) =>
23 isOwnerProxy(owner, address)
25 : isManagementProxy(owner, address)
29export const getAddressProxy = (
34 isOwnerProxy(owner, address)
36 : proxyType === 'manage' && isManagementProxy(owner, address)
38 : proxyType === 'spawn' && isSpawnProxy(owner, address)
40 : proxyType === 'transfer' && isTransferProxy(owner, address)
44export const getTransferProxy = (owner: Ownership, address: string) =>
45 isOwnerProxy(owner, address)
47 : isTransferProxy(owner, address)
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