mirror of
https://github.com/luxfi/captable.git
synced 2026-10-30 17:01:02 +00:00
New packages (types.go + repository.go + service.go each): - safe: YC SAFE taxonomy (pre/post money, cap, discount, MFN, pro rata) - note: convertible notes (interest accrual, conversion triggers) - warrant: exercise price, expiration, cash/cashless exercise - vesting: schedules with tranches, cliff, frequency, performance conditions - kyc: KYC/AML submissions, accreditation verification, provider hooks - omnisub: Alpaca OmniSub accounts, sub-accounts, orders, positions, tax Enhanced existing packages: - securities/types.go: ContractAddress, ChainID, Exemption enum (Reg D/S/A+/CF) - compliance/types.go: RegDCheck (506b/c), RegSCheck, full Rule144Check
14 lines
510 B
Go
14 lines
510 B
Go
package warrant
|
|
|
|
import "context"
|
|
|
|
// Repository defines storage for warrant operations.
|
|
type Repository interface {
|
|
Create(ctx context.Context, w *Warrant) error
|
|
Get(ctx context.Context, id string) (*Warrant, error)
|
|
Update(ctx context.Context, w *Warrant) error
|
|
List(ctx context.Context, companyID string) ([]*Warrant, error)
|
|
ListByStakeholder(ctx context.Context, stakeholderID string) ([]*Warrant, error)
|
|
ListByStatus(ctx context.Context, companyID string, status WarrantStatus) ([]*Warrant, error)
|
|
}
|