Documentation
¶
Overview ¶
Package husdsettlement is the audit record of ONE org→treasury HUSD settlement: the on-chain sweep that reconciles an org's on-chain balance back down to its off-chain ledger balance after metered usage (and reclaimed/expired grants) drew it down. It carries no key material; its TxHash is the on-chain anchor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HUSDSettlement ¶
type HUSDSettlement struct {
mixin.Model[HUSDSettlement]
OrgID string `json:"orgId"`
OrgAddress string `json:"orgAddress"`
AmountCents int64 `json:"amountCents"`
Test bool `json:"test"`
ChainID int64 `json:"chainId"`
// TxHash is INDEXED (audit lookup) — the on-chain org→treasury transfer.
TxHash string `json:"txHash"`
SettledAt time.Time `json:"settledAt"`
}
HUSDSettlement records one settlement sweep for an org.
func New ¶
func New(db *datastore.Datastore) *HUSDSettlement
New returns an initialized HUSDSettlement bound to db.
Click to show internal directories.
Click to hide internal directories.