import { FOUNDATION_METADATA } from './generated/foundation-metadata.js';
import { OPERATOR_CONTRACT } from './generated/operator-contract.js';
import { OPERATOR_METHOD_IDS } from './generated/operator-method-ids.js';
import { PEER_CONTRACT } from './generated/peer-contract.js';
import { PEER_ENDPOINT_IDS } from './generated/peer-endpoint-ids.js';
export { FOUNDATION_METADATA } from './generated/foundation-metadata.js';
export { OPERATOR_CONTRACT } from './generated/operator-contract.js';
export { OPERATOR_METHOD_IDS } from './generated/operator-method-ids.js';
export { PEER_CONTRACT } from './generated/peer-contract.js';
export { PEER_ENDPOINT_IDS } from './generated/peer-endpoint-ids.js';
export { RUNTIME_EVENT_DOMAINS, isRuntimeEventDomain } from './generated/runtime-event-domains.js';
export function getOperatorContract() {
    return OPERATOR_CONTRACT;
}
export function getPeerContract() {
    return PEER_CONTRACT;
}
export function getOperatorMethod(methodId) {
    return getOperatorContract().operator.methods.find((method) => method.id === methodId);
}
export function getPeerEndpoint(endpointId) {
    return getPeerContract().endpoints.find((endpoint) => endpoint.id === endpointId);
}
export function listOperatorMethods() {
    return getOperatorContract().operator.methods;
}
export function listPeerEndpoints() {
    return getPeerContract().endpoints;
}
export function isOperatorMethodId(value) {
    return OPERATOR_METHOD_IDS.includes(value);
}
export function isPeerEndpointId(value) {
    return PEER_ENDPOINT_IDS.includes(value);
}
