husdsettlement

package
v1.799.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2026 License: Apache-2.0, MIT Imports: 4 Imported by: 0

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

func Query

Query returns a datastore query over the husd-settlement kind (audit/rollup).

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

New returns an initialized HUSDSettlement bound to db.

func (*HUSDSettlement) Load

func (s *HUSDSettlement) Load(ps []datastore.Property) error

func (*HUSDSettlement) Save

func (s *HUSDSettlement) Save() ([]datastore.Property, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL