MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / field

Function field

libatomic/proto/check_contract.py:151–153  ·  view source on GitHub ↗
(message, name, kind)

Source from the content-addressed store, hash-verified

149 check(set(opt.Extensions[options.effect]) == {options.RPC_EFFECT_REPOSITORY_WRITE}, "SandboxService.SubmitAttestation: requires repository-write effect only")
150
151 def field(message, name, kind):
152 fields = messages[f".atomic.{message}"].field
153 check(any(f.name == name and f.type_name == f".atomic.{kind}" for f in fields), f"{message}.{name}: missing {kind}")
154
155 for name, numbers in RETIRED_FIELDS.items():
156 msg = messages[f".atomic.{name}"]

Callers 1

mainFunction · 0.70

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected