spec

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package spec holds the normative tables of ABI 1 (docs/plan/durable-core/ABI.md sections 4-8) and computes abi_id, the sha256 of their canonical rendering. It is build tooling, not core: the core carries the result as the constant abi.ID, which go generate ./durable/core/abi writes and this package's test checks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Canonical

func Canonical() string

Canonical renders every normative table in a fixed order, one line per row.

func EventKindByName

func EventKindByName(name string) (abi.EventKind, bool)

EventKindByName resolves an event name of the section 5 table.

func Exports

func Exports() []string

Exports returns the name of every export of section 4.1.

func ID

func ID() string

ID is the abi_id every core exports: the hex sha256 of Canonical.

func IDSource

func IDSource() string

IDSource renders durable/core/abi/id.go.

func Imports

func Imports() []string

Imports returns the module.name of every import the host provides (section 4.2).

func JSON

func JSON() ([]byte, error)

JSON renders the tables and ID as the abi.json the shim imports.

Types

This section is empty.

Directories

Path Synopsis
cmd
abigen command
Command abigen writes durable/core/abi/id.go (the abi_id constant the core exports) and durable/core/abi/abi.json (the tables and abi_id the JavaScript hosts read) from the tables in package spec.
Command abigen writes durable/core/abi/id.go (the abi_id constant the core exports) and durable/core/abi/abi.json (the tables and abi_id the JavaScript hosts read) from the tables in package spec.

Jump to

Keyboard shortcuts

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