husdsettlement

package
v1.46.40 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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