Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ referral.ts
File
referral.ts
packages/console/core/src/referral.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ z } from
"zod"
2
import
{ and, asc, eq, inArray, isNull, sql, Database } from
"./drizzle"
3
import
{ Actor } from
"./actor"
4
import
{ Identifier } from
"./identifier"
Callers
nothing calls this directly
Calls
15
centsToMicroCents
Function · 0.90
fn
Function · 0.90
microCentsToCents
Function · 0.90
ensureCode
Function · 0.85
eq
Function · 0.85
usagePreviewItem
Function · 0.85
workspace
Method · 0.80
transaction
Method · 0.80
find
Method · 0.65
update
Method · 0.65
use
Method · 0.45
all
Method · 0.45
Tested by
no test coverage detected