Files
zap/v1/codegen/schemas/lp-211-cross-shard.json
zeekay af88152c6f rename v2 -> v1: the typed-view API + codegen is the canonical 1.0 (no v2, ever)
There is one perfected typed ZAP layer and it lives at github.com/luxfi/zap/v1 —
forwards-only, no backwards-compat baggage, never a breaking major. Mechanical,
behavior-preserving: v2/ -> v1/ (git mv), package zapv2 -> zapv1, import path
.../zap/v2 -> .../zap/v1 (incl. the codegen's emitted banner + import so
generated files reference /v1). Codegen golden tests pass; typed layer vets
clean. (Pre-existing CGO 'resolv' link failures in the root package are
unrelated env noise.)
2026-06-23 15:05:15 -07:00

83 lines
2.8 KiB
JSON

{
"lp": "lp-211",
"description": "Cross-shard atomic 2PC (LP-211 §Wire schemas). Schema IDs 0xE2..0xE7.",
"schemas": [
{
"wire_name": "CrossShardTxGroup",
"go_name": "CrossShardTxGroupSchema",
"kind": "0xE2",
"size": 37,
"package": "shardwire",
"out": "lp-211/cross_shard_tx_group_zap.go",
"fields": [
{ "name": "GroupID", "type": "bytes32", "offset": 1 },
{ "name": "PartsOff", "type": "uint32", "offset": 33 }
]
},
{
"wire_name": "CrossShardDispatch",
"go_name": "CrossShardDispatchSchema",
"kind": "0xE3",
"size": 57,
"package": "shardwire",
"out": "lp-211/cross_shard_dispatch_zap.go",
"fields": [
{ "name": "GroupID", "type": "bytes32", "offset": 1 },
{ "name": "CoordinatorID", "type": "bytes20", "offset": 33 },
{ "name": "TxGroupBytesOff", "type": "uint32", "offset": 53 }
]
},
{
"wire_name": "CrossShardPrepareAck",
"go_name": "CrossShardPrepareAckSchema",
"kind": "0xE4",
"size": 73,
"package": "shardwire",
"out": "lp-211/cross_shard_prepare_ack_zap.go",
"fields": [
{ "name": "GroupID", "type": "bytes32", "offset": 1 },
{ "name": "ChainID", "type": "uint32", "offset": 33 },
{ "name": "StateDiffHash", "type": "bytes32", "offset": 37 },
{ "name": "WaveCertOff", "type": "uint32", "offset": 69 }
]
},
{
"wire_name": "CrossShardRefuseAck",
"go_name": "CrossShardRefuseAckSchema",
"kind": "0xE5",
"size": 38,
"package": "shardwire",
"out": "lp-211/cross_shard_refuse_ack_zap.go",
"fields": [
{ "name": "GroupID", "type": "bytes32", "offset": 1 },
{ "name": "ChainID", "type": "uint32", "offset": 33 },
{ "name": "Reason", "type": "uint8", "offset": 37 }
]
},
{
"wire_name": "CrossShardCommitNotify",
"go_name": "CrossShardCommitNotifySchema",
"kind": "0xE6",
"size": 37,
"package": "shardwire",
"out": "lp-211/cross_shard_commit_notify_zap.go",
"fields": [
{ "name": "GroupID", "type": "bytes32", "offset": 1 },
{ "name": "ParentCertOff", "type": "uint32", "offset": 33 }
]
},
{
"wire_name": "CrossShardAbortNotify",
"go_name": "CrossShardAbortNotifySchema",
"kind": "0xE7",
"size": 37,
"package": "shardwire",
"out": "lp-211/cross_shard_abort_notify_zap.go",
"fields": [
{ "name": "GroupID", "type": "bytes32", "offset": 1 },
{ "name": "ParentCertOff", "type": "uint32", "offset": 33 }
]
}
]
}