@cancore/contracts 0.2.0-rc.15 → 0.2.0-rc.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/deployments.ts","../src/generated/typedData.ts","../src/protocol/bytes.ts","../src/protocol/hash.ts","../src/eip712.ts","../src/constants.ts","../src/encoding.ts","../src/protocol/identity.ts","../src/protocol/typedData.ts","../src/order.ts","../src/fee.ts","../src/cantonDestination.ts","../src/protocol/digests.ts","../src/protocol/envelope.ts","../src/protocol/draw.ts","../src/protocol/gateway.ts","../src/protocol/messages.ts","../spec/protocol/asyncapi.json","../spec/protocol/messages.schema.json","../spec/protocol/records.schema.json","../spec/protocol/rest.schema.json","../src/protocol/schemas.ts","../src/protocol/settleAttestations.ts","../src/generated/meta.ts","../src/index.ts"],"names":["utf8ToBytes","concatBytes","NETWORKS"],"mappings":";;;;;;AA+BO,IAAM,WAAA,GAAyE;AAAA,EACpF,OAAA,EAAS;AAAA,IACP,EAAE,OAAA,EAAS,UAAA,EAAY,OAAA,EAAS,CAAA,EAAG,MAAM,4CAAA,EAA8C,SAAA,EAAW,QAAA,EAAU,mBAAA,EAAqB,4CAAA,EAA6C;AAAA,IAC9K,EAAE,OAAA,EAAS,KAAA,EAAO,OAAA,EAAS,EAAA,EAAI,MAAM,4CAAA,EAA8C,SAAA,EAAW,QAAA,EAAU,mBAAA,EAAqB,4CAAA,EAA6C;AAAA,IAC1K,EAAE,OAAA,EAAS,UAAA,EAAY,OAAA,EAAS,KAAA,EAAO,MAAM,4CAAA,EAA8C,SAAA,EAAW,SAAA,EAAW,mBAAA,EAAqB,4CAAA,EAA6C;AAAA,IACnL,EAAE,OAAA,EAAS,WAAA,EAAa,OAAA,EAAS,IAAA,EAAM,MAAM,4CAAA,EAA8C,SAAA,EAAW,QAAA,EAAU,mBAAA,EAAqB,4CAAA;AAA6C,GACpL;AAAA,EACA,OAA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5B;AAAA,EACA,mBAAA,EAAqB;AAAA,IACnB,cAAA,EAAgB,kEAAA;AAAA,IAChB,sBAAA,EAAwB,kEAAA;AAAA,IACxB,gBAAA,EAAkB,KAAA;AAAA,IAClB,wBAAA,EAA0B;AAAA,GAC5B;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,cAAA,EAAgB,kEAAA;AAAA,IAChB,sBAAA,EAAwB,kEAAA;AAAA,IACxB,gBAAA,EAAkB,KAAA;AAAA,IAClB,wBAAA,EAA0B;AAAA;AAE9B;;;ACxGO,SAAS,cAAA,CAAe,gBAAwB,MAAA,EAA6E;AAClI,EAAA,MAAM,WAAW,cAAA,CAAe,KAAA,CAAM,CAAA,EAAG,EAAE,EAAE,WAAA,EAAY;AACzD,EAAA,KAAA,MAAW,SAAS,MAAA,EAAQ;AAC1B,IAAA,MAAM,GAAA,GAAM,MAAM,QAAQ,CAAA;AAC1B,IAAA,IAAI,KAAK,OAAO,GAAA;AAAA,EAClB;AACA,EAAA,OAAO,MAAA;AACT","file":"index.js","sourcesContent":["/**\n * Where the contracts are deployed, per environment.\n *\n * Three environments because three independent deployments: what is on Sepolia\n * for the dev stand is not what is on Sepolia for testnet. Pinned here per\n * release of this package, so an integrator on 0.1.x talks to the deployment\n * the backend of that period talks to; `htlcBlock` is where to start an event\n * scan, not before.\n *\n * `BUILD_HASHES` pins the build of each release: sha256 of the UTF-8 text of\n * the artifact's 0x-prefixed hex, not keccak256 and not over `eth_getCode`, so it\n * identifies what was built rather than proving what an address runs\n * (immutables alone change runtime code).\n */\n\nexport type DeploymentEnv = 'mainnet' | 'testnet' | 'devnet';\n\nexport interface EvmDeployment {\n /** Key into `NETWORKS`. */\n network: string;\n chainId: number;\n htlc: `0x${string}`;\n /** Block the HTLC was deployed in — the floor for an event scan. */\n htlcBlock?: number;\n multiBalanceChecker?: `0x${string}`;\n /** The intent router (`CancoreRouter`) of this environment on this chain; absent where none is deployed. */\n router?: `0x${string}`;\n /** Block the router was deployed in — the floor for an event scan. */\n routerBlock?: number;\n}\n\nexport const DEPLOYMENTS: Readonly<Record<DeploymentEnv, readonly EvmDeployment[]>> = {\n mainnet: [\n { network: 'ethereum', chainId: 1, htlc: '0xB3f8BD762fa2a895Ba8Cd35142b7b82b8b413F76', htlcBlock: 24699416, multiBalanceChecker: '0xe025CcCDf82F4165633C6033B7F13690B16c8a84' },\n { network: 'bnb', chainId: 56, htlc: '0xB3f8BD762fa2a895Ba8Cd35142b7b82b8b413F76', htlcBlock: 87710517, multiBalanceChecker: '0xe025CcCDf82F4165633C6033B7F13690B16c8a84' },\n { network: 'arbitrum', chainId: 42161, htlc: '0x1794fe17eB780619FAD46BAf80F7628F7495378b', htlcBlock: 443810007, multiBalanceChecker: '0x9ed2e0220e8d069C515972AE369C3FCE3bB29239' },\n { network: 'robinhood', chainId: 4663, htlc: '0xB3f8BD762fa2a895Ba8Cd35142b7b82b8b413F76', htlcBlock: 26837336, multiBalanceChecker: '0x1794fe17eB780619FAD46BAf80F7628F7495378b' },\n ],\n testnet: [\n { network: 'sepolia', chainId: 11155111, htlc: '0xc705C735278AEeF773acb6d1028D8A241D8a9556', htlcBlock: 10334457, multiBalanceChecker: '0x99182E3F18555CFB08e6443e68a11982eF686522' },\n { network: 'bnb_testnet', chainId: 97, htlc: '0x36D7BEBDB5f93b7b926D621E412132dF89628810', htlcBlock: 92435953, multiBalanceChecker: '0x079bDc94B34EC0e905DcfDB516bdE2f292Efcef2' },\n { network: 'arbitrum_sepolia', chainId: 421614, htlc: '0x07a6ccF1f0113e2329Bb2460b28eC0d169f5080E', htlcBlock: 245190705, multiBalanceChecker: '0x555Bef5d2f89Fc81c77b930AB6c0D6734bDE569e' },\n { network: 'robinhood_testnet', chainId: 46630, htlc: '0x5eBf3faAf3a86c37dDf6a46075b8366Ed4D8021A', htlcBlock: 96742769, multiBalanceChecker: '0x9548fd6fA8A3869b215E9D86F6a2628Bf2BEFB74' },\n ],\n devnet: [\n // Routers: evm-contracts deployments/router/dev/*.json (#120, CAN-2327), verified on chain 2026-10-14.\n { network: 'sepolia', chainId: 11155111, htlc: '0xc74469B26206A7b3Aee2781EC21F9F47a1552DD6', htlcBlock: 10469876, router: '0xfd227a0de77807206f4eEF9eE6eDd5795a45EF95', routerBlock: 11913649 },\n { network: 'bnb_testnet', chainId: 97, htlc: '0xC649d578FD0122E2Ce3Bcf6b89E3ef2564d1a30D', htlcBlock: 96439032, router: '0x57A8ad8392C5fF21aF52Fc3Cf246C1a464aCc6B1', routerBlock: 136752813 },\n { network: 'arbitrum_sepolia', chainId: 421614, htlc: '0xE23A046Df3542C4C548162adab4397956b136031', htlcBlock: 251260393, router: '0x7e27831316F7Ee8E44B96056F4354A6D1a22953a', routerBlock: 319105856 },\n { network: 'robinhood_testnet', chainId: 46630, htlc: '0x58D154441Fd7efEd22E49Eda369909DdbE54cC0a', htlcBlock: 96651438, multiBalanceChecker: '0x1b2A32A976F904a1fca87D427239635Ccd97FaFb', router: '0xF833A980ae858fe3cD14a79a9f610525AbB95BF9', routerBlock: 135089078 },\n ],\n};\n\n/** Uniswap Permit2 — one canonical address across mainnets. */\nexport const PERMIT2_ADDRESS = '0x000000000022D473030F116dDEE9F6B43aC78BA3' as const;\n\nexport function deploymentOf(env: DeploymentEnv, network: string): EvmDeployment | undefined {\n return DEPLOYMENTS[env].find((d) => d.network === network);\n}\n","// Generated by scripts/sync-typed-data.mjs from evm-contracts/abi/typed-data — do not edit.\n\n/** `FillProof(uint8 kind,bytes32 orderHash,bytes32 destination,bytes32 fillRef,bytes32 recipient,bytes32 outputAsset,uint256 amountDelivered,uint64 filledAt,bytes32 fillerId,bytes32 repayTo,uint32 attempt,uint32 setId)` — from evm-contracts/abi/typed-data/FillProof.json. */\nexport const FILL_PROOF_TYPES = {\n \"FillProof\": [\n {\n \"name\": \"kind\",\n \"type\": \"uint8\"\n },\n {\n \"name\": \"orderHash\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"destination\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"fillRef\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"recipient\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"outputAsset\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"amountDelivered\",\n \"type\": \"uint256\"\n },\n {\n \"name\": \"filledAt\",\n \"type\": \"uint64\"\n },\n {\n \"name\": \"fillerId\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"repayTo\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"attempt\",\n \"type\": \"uint32\"\n },\n {\n \"name\": \"setId\",\n \"type\": \"uint32\"\n }\n ]\n} as const;\n\nexport const FILL_PROOF_TYPE_STRING = \"FillProof(uint8 kind,bytes32 orderHash,bytes32 destination,bytes32 fillRef,bytes32 recipient,bytes32 outputAsset,uint256 amountDelivered,uint64 filledAt,bytes32 fillerId,bytes32 repayTo,uint32 attempt,uint32 setId)\";\n\n/** Name and version of the domain; chain id and verifying contract are the deployment's. */\nexport const FILL_PROOF_DOMAIN = {\"name\":\"CancoreRouter\",\"version\":\"1\"} as const;\n\n/** `FillTicket(bytes32 orderHash,bytes32 fillerId,address deliveryKey,bytes32 repayTo,uint32 attempt,uint64 validFrom,uint64 validUntil)` — from evm-contracts/abi/typed-data/FillTicket.json. */\nexport const FILL_TICKET_TYPES = {\n \"FillTicket\": [\n {\n \"name\": \"orderHash\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"fillerId\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"deliveryKey\",\n \"type\": \"address\"\n },\n {\n \"name\": \"repayTo\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"attempt\",\n \"type\": \"uint32\"\n },\n {\n \"name\": \"validFrom\",\n \"type\": \"uint64\"\n },\n {\n \"name\": \"validUntil\",\n \"type\": \"uint64\"\n }\n ]\n} as const;\n\nexport const FILL_TICKET_TYPE_STRING = \"FillTicket(bytes32 orderHash,bytes32 fillerId,address deliveryKey,bytes32 repayTo,uint32 attempt,uint64 validFrom,uint64 validUntil)\";\n\n/** Name and version of the domain; chain id and verifying contract are the deployment's. */\nexport const FILL_TICKET_DOMAIN = {\"name\":\"CancoreFillTicket\",\"version\":\"1\"} as const;\n\n/** `Order(address user,uint64 originChainId,address inputToken,uint256 inputAmount,bytes32 destination,bytes32 outputAsset,uint256 minReceived,bytes32 recipient,uint64 createdAt,uint64 fillDeadline,uint16 feeBps,bytes32 fillerId)` — from evm-contracts/abi/typed-data/Order.json. */\nexport const ORDER_TYPES = {\n \"Order\": [\n {\n \"name\": \"user\",\n \"type\": \"address\"\n },\n {\n \"name\": \"originChainId\",\n \"type\": \"uint64\"\n },\n {\n \"name\": \"inputToken\",\n \"type\": \"address\"\n },\n {\n \"name\": \"inputAmount\",\n \"type\": \"uint256\"\n },\n {\n \"name\": \"destination\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"outputAsset\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"minReceived\",\n \"type\": \"uint256\"\n },\n {\n \"name\": \"recipient\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"createdAt\",\n \"type\": \"uint64\"\n },\n {\n \"name\": \"fillDeadline\",\n \"type\": \"uint64\"\n },\n {\n \"name\": \"feeBps\",\n \"type\": \"uint16\"\n },\n {\n \"name\": \"fillerId\",\n \"type\": \"bytes32\"\n }\n ]\n} as const;\n\nexport const ORDER_TYPE_STRING = \"Order(address user,uint64 originChainId,address inputToken,uint256 inputAmount,bytes32 destination,bytes32 outputAsset,uint256 minReceived,bytes32 recipient,uint64 createdAt,uint64 fillDeadline,uint16 feeBps,bytes32 fillerId)\";\n\n/** Name and version of the domain; chain id and verifying contract are the deployment's. */\nexport const ORDER_DOMAIN = {\"name\":\"CancoreRouter\",\"version\":\"1\"} as const;\n\n/** `Quote(bytes32 orderHash,uint64 quoteDeadline)` — from evm-contracts/abi/typed-data/Quote.json. */\nexport const QUOTE_TYPES = {\n \"Quote\": [\n {\n \"name\": \"orderHash\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"quoteDeadline\",\n \"type\": \"uint64\"\n }\n ]\n} as const;\n\nexport const QUOTE_TYPE_STRING = \"Quote(bytes32 orderHash,uint64 quoteDeadline)\";\n\n/** Name and version of the domain; chain id and verifying contract are the deployment's. */\nexport const QUOTE_DOMAIN = {\"name\":\"CancoreRouter\",\"version\":\"1\"} as const;\n","// Internal: the few byte conversions hash.ts and draw.ts share. Not exported\n// from the package — a consumer has @noble/hashes for this.\nimport { keccak_256 } from '@noble/hashes/sha3';\nimport { bytesToHex, hexToBytes } from '@noble/hashes/utils';\nimport type { Hex } from './typedData';\n\nexport const toHex = (bytes: Uint8Array): Hex => `0x${bytesToHex(bytes)}`;\n\nexport const keccak = (bytes: Uint8Array): Uint8Array => keccak_256(bytes);\n\n/** `0x`-prefixed hex of exactly `length` bytes (any length when omitted); either letter case. */\nexport function hexBytes(value: unknown, field: string, length?: number): Uint8Array {\n if (typeof value !== 'string' || !/^0x([0-9a-fA-F]{2})*$/.test(value)) throw new TypeError(`${field}: expected 0x-prefixed hex, got ${String(value)}`);\n const bytes = hexToBytes(value.slice(2));\n if (length !== undefined && bytes.length !== length) throw new TypeError(`${field}: expected ${length} bytes, got ${bytes.length}`);\n return bytes;\n}\n\n/**\n * An unsigned integer below 2^bits from a bigint, a safe-integer number or a\n * canonical decimal string (the wire encoding: digits only, no leading zero).\n */\nexport function uint(value: unknown, bits: number, field: string): bigint {\n let n: bigint;\n if (typeof value === 'bigint') n = value;\n else if (typeof value === 'number' && Number.isSafeInteger(value)) n = BigInt(value);\n else if (typeof value === 'string' && /^(0|[1-9][0-9]*)$/.test(value)) n = BigInt(value);\n else throw new TypeError(`${field}: expected an unsigned integer, got ${String(value)}`);\n if (n < 0n || n >= 1n << BigInt(bits)) throw new RangeError(`${field}: ${n} does not fit uint${bits}`);\n return n;\n}\n\n/** Big-endian, left-padded to `size` bytes. */\nexport const beBytes = (n: bigint, size: number): Uint8Array => hexToBytes(n.toString(16).padStart(size * 2, '0'));\n","/**\n * EIP-712 hashing for the flat structs of the intent rail, RFC 8785 JCS, and\n * the two protocol hashes built on them. No signing here: a digest is what a\n * consumer hands its own secp256k1 implementation (protocol §3.3, SDK §7).\n */\nimport { concatBytes, utf8ToBytes } from '@noble/hashes/utils';\nimport { beBytes, hexBytes, keccak, toHex, uint } from './bytes';\nimport type { Hex, UintLike } from './typedData';\n\nexport interface TypedField {\n readonly name: string;\n readonly type: string;\n}\n\nexport type TypedDataTypes = Readonly<Record<string, readonly TypedField[]>>;\n\nexport type TypedValue = string | number | bigint | boolean;\n\nexport interface TypedDataDomain {\n name?: string;\n version?: string;\n chainId?: UintLike;\n verifyingContract?: Hex | string;\n salt?: Hex | string;\n}\n\nexport interface TypedDataInput {\n domain: TypedDataDomain;\n types: TypedDataTypes;\n primaryType: string;\n message: Readonly<Record<string, unknown>>;\n}\n\n/** A JSON value JCS can canonicalise: numbers are safe integers only. */\nexport type JsonValue = string | number | boolean | null | readonly JsonValue[] | { readonly [key: string]: JsonValue };\n\nconst ATOMIC = /^(address|bool|string|bytes([1-9]|[12][0-9]|3[0-2])?|uint(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256))$/;\n\nconst flatOnly = (type: string, field: string) =>\n new TypeError(`${field}: type ${type} is not supported — hashTypedData encodes flat structs of address/bool/bytes/bytesN/string/uintN only`);\n\n/** One member as its 32-byte EIP-712 word. */\nfunction encodeValue(type: string, value: unknown, field: string): Uint8Array {\n if (type === 'address') return padded(hexBytes(value, field, 20), 12);\n if (type === 'string') {\n if (typeof value !== 'string') throw new TypeError(`${field}: expected a string`);\n return keccak(utf8ToBytes(value));\n }\n if (type === 'bool') {\n if (typeof value !== 'boolean') throw new TypeError(`${field}: expected a boolean`);\n return beBytes(value ? 1n : 0n, 32);\n }\n if (type === 'bytes') return keccak(hexBytes(value, field));\n if (type.startsWith('bytes')) return padded(hexBytes(value, field, Number(type.slice(5))), 0);\n return beBytes(uint(value, Number(type.slice(4)), field), 32);\n}\n\n/** A 32-byte word with `bytes` placed at `offset`: 12 left-pads an address, 0 right-pads a bytesN. */\nfunction padded(bytes: Uint8Array, offset: number): Uint8Array {\n const word = new Uint8Array(32);\n word.set(bytes, offset);\n return word;\n}\n\nfunction fieldsOf(types: TypedDataTypes, primaryType: string): readonly TypedField[] {\n const fields = types[primaryType];\n if (!fields) throw new TypeError(`no type ${primaryType}`);\n for (const f of fields) if (!ATOMIC.test(f.type)) throw flatOnly(f.type, `${primaryType}.${f.name}`);\n return fields;\n}\n\n/** `Name(type1 name1,…)` of a flat struct. */\nexport function encodeType(types: TypedDataTypes, primaryType: string): string {\n return `${primaryType}(${fieldsOf(types, primaryType).map((f) => `${f.type} ${f.name}`).join(',')})`;\n}\n\nexport function typeHash(types: TypedDataTypes, primaryType: string): Hex {\n return toHex(keccak(utf8ToBytes(encodeType(types, primaryType))));\n}\n\nfunction structHash(types: TypedDataTypes, primaryType: string, message: Readonly<Record<string, unknown>>): Uint8Array {\n const words = fieldsOf(types, primaryType).map((f) => encodeValue(f.type, message[f.name], `${primaryType}.${f.name}`));\n return keccak(concatBytes(keccak(utf8ToBytes(encodeType(types, primaryType))), ...words));\n}\n\nexport function hashStruct(types: TypedDataTypes, primaryType: string, message: Readonly<Record<string, unknown>>): Hex {\n return toHex(structHash(types, primaryType, message));\n}\n\nconst DOMAIN_FIELDS: readonly TypedField[] = [\n { name: 'name', type: 'string' },\n { name: 'version', type: 'string' },\n { name: 'chainId', type: 'uint256' },\n { name: 'verifyingContract', type: 'address' },\n { name: 'salt', type: 'bytes32' },\n];\n\n/** The domain separator; `EIP712Domain` lists exactly the members present, in the standard order. */\nexport function hashDomain(domain: TypedDataDomain): Hex {\n const present = DOMAIN_FIELDS.filter((f) => domain[f.name as keyof TypedDataDomain] !== undefined);\n return hashStruct({ EIP712Domain: present }, 'EIP712Domain', domain as Record<string, unknown>);\n}\n\n/** The EIP-712 digest `keccak256(0x1901 ‖ domainSeparator ‖ hashStruct(message))` — what a signature is over. */\nexport function hashTypedData({ domain, types, primaryType, message }: TypedDataInput): Hex {\n const separator = hexBytes(hashDomain(domain), 'domain', 32);\n return toHex(keccak(concatBytes(new Uint8Array([0x19, 0x01]), separator, structHash(types, primaryType, message))));\n}\n\n/**\n * RFC 8785 canonical JSON. Keys sorted by UTF-16 code units (`Array#sort`),\n * strings as `JSON.stringify` writes them. Numbers are safe integers only —\n * the wire carries every wider value as a decimal string — so the ECMAScript\n * number serialisation JCS borrows is never exercised beyond integers.\n */\nexport function jcs(value: unknown): string {\n if (value === null || typeof value === 'boolean') return JSON.stringify(value);\n if (typeof value === 'string') {\n if (/\\p{Cs}/u.test(value)) throw new TypeError('jcs: lone surrogate in a string');\n return JSON.stringify(value);\n }\n if (typeof value === 'number') {\n if (!Number.isSafeInteger(value)) throw new TypeError(`jcs: ${value} is not a safe integer`);\n return JSON.stringify(value);\n }\n if (Array.isArray(value)) return `[${value.map(jcs).join(',')}]`;\n if (typeof value === 'object') {\n const obj = value as Record<string, unknown>;\n return `{${Object.keys(obj).sort().map((k) => `${jcs(k)}:${jcs(obj[k])}`).join(',')}}`;\n }\n throw new TypeError(`jcs: a ${typeof value} has no JSON form`);\n}\n\n/** `GatewayMessage.bodyHash`: keccak256 of the JCS text of an S→F message without its `sig`. */\nexport function gatewayBodyHash(message: Readonly<Record<string, unknown>>): Hex {\n const { sig: _sig, ...body } = message;\n return toHex(keccak(utf8ToBytes(jcs(body))));\n}\n\n/** `FillerMessage.bodyHash`: keccak256 of the JCS text of a filler message without its `msgSig`; `id`, `fillerId`, `sentAt` and any inner `sig` stay in. */\nexport function fillerMessageBodyHash(message: object): Hex {\n const { msgSig: _msgSig, ...body } = message as Readonly<Record<string, unknown>>;\n return toHex(keccak(utf8ToBytes(jcs(body))));\n}\n\n/** `FillerQuote.requestId`: keccak256(utf8(requestId)); the id is 1..64 printable ASCII (`Canonical.daml:90-93`). */\nexport function requestIdHash(requestId: string): Hex {\n if (!/^[\\x21-\\x7e]{1,64}$/.test(requestId)) throw new TypeError(`requestId must be 1..64 printable ASCII characters: ${JSON.stringify(requestId)}`);\n return toHex(keccak(utf8ToBytes(requestId)));\n}\n","/**\n * The EIP-712 voucher `FeeVault.redeem` accepts: a signer the vault trusts\n * signs `FeeClaim` over this domain, and whoever holds the signature redeems it\n * on-chain. The struct and the domain are the contract's — this file has to\n * stay in lock-step with `FeeVault.sol` and with the backend's signer, which is\n * why both are written here once rather than re-typed by each consumer.\n */\nimport { FILL_PROOF_DOMAIN, FILL_PROOF_TYPES } from './generated/typedData';\nimport { hashTypedData } from './protocol/hash';\n\nexport const FEE_CLAIM_DOMAIN_NAME = 'CancoreFeeVault';\nexport const FEE_CLAIM_DOMAIN_VERSION = '1';\n\n/** `FeeClaim(address token,address to,uint256 amount,uint256 nonce,uint256 deadline)` */\nexport const FEE_CLAIM_TYPES = {\n FeeClaim: [\n { name: 'token', type: 'address' },\n { name: 'to', type: 'address' },\n { name: 'amount', type: 'uint256' },\n { name: 'nonce', type: 'uint256' },\n { name: 'deadline', type: 'uint256' },\n ],\n} as const;\n\nexport interface FeeClaim {\n token: `0x${string}`;\n to: `0x${string}`;\n amount: bigint;\n nonce: bigint;\n deadline: bigint;\n}\n\n/** The typed-data domain for one FeeVault deployment. */\nexport function feeClaimDomain(chainId: number, verifyingContract: `0x${string}`) {\n return {\n name: FEE_CLAIM_DOMAIN_NAME,\n version: FEE_CLAIM_DOMAIN_VERSION,\n chainId,\n verifyingContract,\n } as const;\n}\n\nexport { FILL_PROOF_DOMAIN, FILL_PROOF_TYPES, FILL_PROOF_TYPE_STRING } from './generated/typedData';\n\n/** `FillProof.kind` of v1: k-of-n attestor signatures — the only kind `settle` accepts. */\nexport const PROOF_KIND_ATTESTATION = 1;\n\n/**\n * What the attestors sign and `CancoreRouter.settle` verifies: the fact of a\n * delivery on the destination chain, for one order. Written by hand from the\n * contract's schema (`FILL_PROOF_TYPES`, which is generated); fillProof.test.ts\n * fails to compile if the two stop naming the same fields.\n */\nexport interface FillProof {\n kind: number;\n orderHash: `0x${string}`;\n /** bytes32: EVM — the destination chain id, left-padded; Canton — `keccak256(utf8(\"canton:<network>\"))`. */\n destination: `0x${string}`;\n /** EVM: the delivery transaction hash; Canton: keccak256 of the update id. */\n fillRef: `0x${string}`;\n recipient: `0x${string}`;\n outputAsset: `0x${string}`;\n /** What arrived, not what was sent. */\n amountDelivered: bigint;\n filledAt: bigint;\n /** `fillerIdHash(fillerId)`: `Filled.fillerId` (EVM destination) or the hashed `DeliveryReceipt.fillerId` (Canton destination). */\n fillerId: `0x${string}`;\n /** The payee of `settle`, encoded for the source chain: `Filled.repayTo` or `DeliveryReceipt.repayTo`. */\n repayTo: `0x${string}`;\n attempt: number;\n /** The attestor set live when the order opened — `attestationSetFor(orderHash)`, never `currentSetId`. */\n setId: number;\n}\n\n/**\n * The typed-data domain of a proof: the order's SOURCE router. `settle`\n * recomputes the digest in its own domain, so a proof never verifies on\n * another chain or another router. A Canton source (Daml settles) is\n * CANTON_ORIGIN_ID = 2^63 + n, above Number.MAX_SAFE_INTEGER: pass a bigint.\n */\nexport function fillProofDomain(chainId: number | bigint, verifyingContract: `0x${string}`) {\n return { ...FILL_PROOF_DOMAIN, chainId, verifyingContract } as const;\n}\n\n/**\n * The router's `hashFillProof`: the digest attestors sign and `settle` (or Daml\n * `SwapIntent_SettleWithProof` on a Canton source) verifies, in the domain of\n * the order's source router.\n */\nexport function hashFillProof(proof: FillProof, chainId: number | bigint, verifyingContract: `0x${string}`): `0x${string}` {\n return hashTypedData({ domain: fillProofDomain(chainId, verifyingContract), types: FILL_PROOF_TYPES, primaryType: 'FillProof', message: { ...proof } });\n}\n","/**\n * The constants of the intent rail: the router's public constants (held to the\n * contract by `spec/constants.json`, which `npm run sync` reads out of the\n * Solidity source — SDK-6) and the constants of the Canton-source encoding\n * (held to `spec/vectors/canton-order.json`, protocol.md §3.8).\n * `PROOF_KIND_ATTESTATION` lives in `./eip712`, next to `FillProof`.\n */\n\n/** `CancoreRouter.BPS`: basis points in one whole. */\nexport const BPS = 10_000;\n\n/** `CancoreRouter.MAX_FEE_BPS`: the highest `Order.feeBps` `openFor` accepts — 10 % on top of the net, 1/11 of the total. */\nexport const MAX_FEE_BPS = 1_000;\n\n/** `CancoreRouter.MIN_FILL_TTL`, seconds: `openFor` needs `fillDeadline ≥ now + MIN_FILL_TTL`. */\nexport const MIN_FILL_TTL = 60;\n\n/** `AttestorSet.MAX_FILL_TTL`, seconds (24 h): `openFor` needs `fillDeadline ≤ now + MAX_FILL_TTL`. */\nexport const MAX_FILL_TTL = 86_400;\n\n/** `AttestorSet.MAX_SIG_TTL`, seconds (24 h): `openFor` needs `createdAt ≤ now ≤ createdAt + MAX_SIG_TTL`. */\nexport const MAX_SIG_TTL = 86_400;\n\n/** `AttestorSet.MAX_PROOF_WINDOW`, seconds (4 h): the cap of `proofWindow`, so `refundAfter ≤ fillDeadline + MAX_PROOF_WINDOW`. */\nexport const MAX_PROOF_WINDOW = 14_400;\n\n/** `AttestorSet.GRACE`, seconds (28 h): the longest intent lifetime; a replaced attestor set keeps verifying this long. */\nexport const GRACE = MAX_FILL_TTL + MAX_PROOF_WINDOW;\n\n/** `AttestorSet.SET_DELAY`, seconds (72 h): a proposed attestor set activates this late; above `MAX_SIG_TTL + GRACE`. */\nexport const SET_DELAY = 259_200;\n\n/** ⌊(2⁶⁴ − 1) / 2⌋ − 36, the largest EVM chain id EIP-2294 allows: every Canton origin id is above it. */\nexport const EIP2294_MAX_CHAIN_ID = 9_223_372_036_854_775_771n;\n\n/** `Order.originChainId` of a Canton-source order, per Canton network: 2⁶³ + n (2⁶³ itself is unassigned). */\nexport const CANTON_ORIGIN_ID = {\n mainnet: 9_223_372_036_854_775_809n,\n testnet: 9_223_372_036_854_775_810n,\n devnet: 9_223_372_036_854_775_811n,\n} as const;\n\n/**\n * `verifyingContract` of the Canton source domain, one for every Canton network:\n * `address(uint160(uint256(keccak256(\"cancore:canton-source-anchor:v1\"))))`, an address no router can be deployed at.\n */\nexport const CANTON_SOURCE_ANCHOR = '0x2f37b46Ea93001829498b145985fb53028033701' as const;\n\n/** Domain-separation tag of the owner label (`Order.user` of a Canton-source order). */\nexport const OWNER_LABEL_TAG = 'cancore:owner:v1';\n\n/** Domain-separation tag of the instrument label (`Order.inputToken` of a Canton-source order). */\nexport const INSTRUMENT_LABEL_TAG = 'cancore:instrument:v1';\n\n/** Daml `Numeric 10`: Canton amounts are exact at 10⁻¹⁰, and their EVM form is the amount × 10¹⁰. */\nexport const DAML_NUMERIC_SCALE = 10;\n","// Internal: the decimal and ABI encodings order.ts and cantonDestination.ts share. Not exported from the package.\nimport { concatBytes, utf8ToBytes } from '@noble/hashes/utils';\nimport { beBytes } from './protocol/bytes';\n\n/** A decimal string at exactly `decimals` scale, in base units; anything that does not land on a whole unit is refused. */\nexport function exactUnits(value: unknown, decimals: number, field: string): bigint {\n if (typeof value !== 'string' || !/^\\d+(\\.\\d+)?$/.test(value)) throw new TypeError(`${field}: not a plain decimal string: ${String(value)}`);\n if (!Number.isSafeInteger(decimals) || decimals < 0) throw new TypeError(`${field}: decimals must be a non-negative integer`);\n const [whole, fraction = ''] = value.split('.');\n if (fraction.length > decimals) throw new RangeError(`${field}: ${value} does not fit ${decimals} decimals exactly`);\n return BigInt(whole! + fraction.padEnd(decimals, '0'));\n}\n\n/** `abi.encode(string, …, string)`: one offset word per string, then each as length word and right-padded bytes. */\nexport function abiEncodeStrings(values: readonly string[]): Uint8Array {\n const tails = values.map((v) => {\n const bytes = utf8ToBytes(v);\n const body = new Uint8Array(Math.ceil(bytes.length / 32) * 32);\n body.set(bytes);\n return concatBytes(beBytes(BigInt(bytes.length), 32), body);\n });\n let offset = BigInt(values.length * 32);\n const heads = tails.map((t) => {\n const head = beBytes(offset, 32);\n offset += BigInt(t.length);\n return head;\n });\n return concatBytes(...heads, ...tails);\n}\n","/**\n * The filler's identity and payout address in on-chain form, and the shape of\n * a message-key signature (protocol §3.1, §3.15, §3.16). Everyone who writes\n * or reads `fillerId` and `repayTo` — trading, filler-gateway, the attestors,\n * the filler SDK — encodes them here, so a ticket, a `Filled` event and a\n * `FillProof` always carry the same 32 bytes. No secp256k1: recovering the\n * signer stays with the consumer's own library.\n */\nimport { utf8ToBytes } from '@noble/hashes/utils';\nimport { hexBytes, keccak, toHex } from './bytes';\nimport type { Hex } from './typedData';\n\n/** `fillerId`: issued by Cancore at onboarding, ASCII so the draw's UTF-8 byte order is plain byte order (D-H). */\nexport const FILLER_ID_PATTERN = /^[a-z0-9][a-z0-9-]{0,62}$/;\n\n/** secp256k1 group order; a message-key signature has `0 < r < N` and `0 < s ≤ N / 2` (low-s). */\nconst SECP256K1_N = 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141n;\n\n/** The on-chain form of a filler id, `keccak256(utf8(fillerId))` — `FillTicket`, `Filled`, `FillProof`, `Settled`. */\nexport function fillerIdHash(fillerId: string): Hex {\n if (typeof fillerId !== 'string' || !FILLER_ID_PATTERN.test(fillerId)) throw new TypeError(`fillerId must match ${FILLER_ID_PATTERN}: ${JSON.stringify(fillerId)}`);\n return toHex(keccak(utf8ToBytes(fillerId)));\n}\n\n/**\n * `repayTo` for an EVM source: the address left-padded with zeros to 32 bytes.\n * Refuses the zero address, which `settle` refuses too (`ZeroAddress`).\n */\nexport function repayToFromEvm(address: string): Hex {\n const bytes = hexBytes(address, 'repayTo address', 20);\n if (bytes.every((b) => b === 0)) throw new RangeError('repayTo: the zero address is not a payee');\n return `0x${'00'.repeat(12)}${address.slice(2).toLowerCase()}`;\n}\n\n/** `repayTo` for a Canton source: `keccak256(utf8(partyId))` of the filler's party registered under its `fillerId`. */\nexport function repayToFromParty(partyId: string): Hex {\n if (typeof partyId !== 'string' || partyId.length === 0) throw new TypeError('repayTo: a Canton party id is a non-empty string');\n return toHex(keccak(utf8ToBytes(partyId)));\n}\n\n/** Whether `repayTo` is payable on an EVM source: zero top 12 bytes (`InvalidBytes32Address`) and not the zero address (`ZeroAddress`). */\nexport function isEvmRepayTo(repayTo: string): boolean {\n return /^0x0{24}[0-9a-fA-F]{40}$/.test(repayTo) && !/^0x0{64}$/.test(repayTo);\n}\n\n/** The address `settle` pays on an EVM source, `address(uint160(uint256(repayTo)))`; throws where the router reverts. */\nexport function evmAddressFromRepayTo(repayTo: string): Hex {\n hexBytes(repayTo, 'repayTo', 32);\n if (!isEvmRepayTo(repayTo)) throw new RangeError(`repayTo ${repayTo} is not a padded, non-zero EVM address`);\n return `0x${repayTo.slice(26).toLowerCase()}`;\n}\n\n/**\n * Whether `sig` has the shape a message key (an EOA) produces and the protocol\n * accepts: 65 bytes `r ‖ s ‖ v`, `v ∈ {27, 28}`, `0 < r < n`, low-s\n * `0 < s ≤ n/2`. Anything else is refused before recovery — an EIP-1271\n * smart-wallet signature among them: the message key is an EOA, verified by\n * ecrecover only. Passing this check says nothing about WHO signed: recover\n * the address and compare it with the registered key.\n */\nexport function isEoaSignature(sig: unknown): sig is Hex {\n if (typeof sig !== 'string' || !/^0x[0-9a-fA-F]{128}(1[bB]|1[cC])$/.test(sig)) return false;\n const r = BigInt(`0x${sig.slice(2, 66)}`);\n const s = BigInt(`0x${sig.slice(66, 130)}`);\n return r > 0n && r < SECP256K1_N && s > 0n && s <= SECP256K1_N / 2n;\n}\n","/**\n * The EIP-712 types and domains of the Cancore intent rail, filler protocol v1.\n *\n * The CODE types (`Order`, `Quote`, `FillTicket`; `FillProof` lives in\n * `../eip712`) come from evm-contracts/abi/typed-data through npm run sync.\n * Their public names stay here so callers use the same synchronized schemas.\n * The PROTOCOL types are off-chain,\n * signed in the `CancoreFillerProtocol` domain by the filler's one message key\n * (or the gateway key), and fixed by this package: a field reordered here\n * changes every digest, and the golden vectors under `spec/protocol/typed-data`\n * fail the moment it happens.\n */\n\nimport { ORDER_DOMAIN } from '../generated/typedData';\nexport { ORDER_TYPES, QUOTE_TYPES, FILL_TICKET_TYPES, FILL_TICKET_DOMAIN } from '../generated/typedData';\n\nexport type Hex = `0x${string}`;\n\n/** A wide unsigned integer as the wire carries it (decimal string) or as code holds it. */\nexport type UintLike = bigint | number | string;\n\n/** Name and version of the domain every off-chain protocol struct is signed in — no chain id, no verifying contract. */\nexport const FILLER_PROTOCOL_DOMAIN = { name: 'CancoreFillerProtocol', version: '1' } as const;\n\n/** The source-router domain `Order` and `Quote` are hashed in. Canton source: `CANTON_ORIGIN_ID` and the anchor. */\nexport function routerDomain(chainId: UintLike, verifyingContract: Hex) {\n return { ...ORDER_DOMAIN, chainId, verifyingContract } as const;\n}\n\n/** `FillerQuote(bytes32 requestId,string fillerId,uint256 amountOut,uint64 validUntil,uint64 nonce)` — signed by the message key. */\nexport const FILLER_QUOTE_TYPES = {\n FillerQuote: [\n { name: 'requestId', type: 'bytes32' },\n { name: 'fillerId', type: 'string' },\n { name: 'amountOut', type: 'uint256' },\n { name: 'validUntil', type: 'uint64' },\n { name: 'nonce', type: 'uint64' },\n ],\n} as const;\n\n/**\n * `TicketIntent(bytes32 orderHash,uint32 attempt,uint64 validFrom,uint64 validUntil,string fillerId,address deliveryKey,bytes32 repayTo)`\n * — the filler's consent to an offered ticket, signed by its message key; `deliveryKey` and `repayTo` go into the `FillTicket` as they are.\n */\nexport const TICKET_INTENT_TYPES = {\n TicketIntent: [\n { name: 'orderHash', type: 'bytes32' },\n { name: 'attempt', type: 'uint32' },\n { name: 'validFrom', type: 'uint64' },\n { name: 'validUntil', type: 'uint64' },\n { name: 'fillerId', type: 'string' },\n { name: 'deliveryKey', type: 'address' },\n { name: 'repayTo', type: 'bytes32' },\n ],\n} as const;\n\n/** `TicketReceipt(bytes32 ticketHash,bytes32 ticketSigHash)` — signed by the message key. */\nexport const TICKET_RECEIPT_TYPES = {\n TicketReceipt: [\n { name: 'ticketHash', type: 'bytes32' },\n { name: 'ticketSigHash', type: 'bytes32' },\n ],\n} as const;\n\n/**\n * `CantonTicketReceipt(bytes32 orderHash,uint32 attempt,bytes32 deliveryOrderCidHash,uint64 validUntil)` — the receipt of a\n * Canton-form ticket, which has no `FillTicket` and no `ticketSig`; signed by the message key. `fillerId` and `repayTo`\n * are not in it: they travel in `ticket.issued` (protocol.md §3.3, §10 D-O).\n */\nexport const CANTON_TICKET_RECEIPT_TYPES = {\n CantonTicketReceipt: [\n { name: 'orderHash', type: 'bytes32' },\n { name: 'attempt', type: 'uint32' },\n { name: 'deliveryOrderCidHash', type: 'bytes32' },\n { name: 'validUntil', type: 'uint64' },\n ],\n} as const;\n\n/** `StakeBinding(string partnerId,address stakingAddress,uint256 chainId,uint64 nonce)` — signed by the staking address. */\nexport const STAKE_BINDING_TYPES = {\n StakeBinding: [\n { name: 'partnerId', type: 'string' },\n { name: 'stakingAddress', type: 'address' },\n { name: 'chainId', type: 'uint256' },\n { name: 'nonce', type: 'uint64' },\n ],\n} as const;\n\n/** `FillerAuth(string fillerId,bytes32 nonce,uint64 expiresAt)` — signed by the message key. */\nexport const FILLER_AUTH_TYPES = {\n FillerAuth: [\n { name: 'fillerId', type: 'string' },\n { name: 'nonce', type: 'bytes32' },\n { name: 'expiresAt', type: 'uint64' },\n ],\n} as const;\n\n/** `GatewayMessage(bytes32 bodyHash)` — signed by the gateway key; `bodyHash = gatewayBodyHash(message)`. */\nexport const GATEWAY_MESSAGE_TYPES = {\n GatewayMessage: [{ name: 'bodyHash', type: 'bytes32' }],\n} as const;\n\n/** `FillerMessage(bytes32 bodyHash)` — the envelope `msgSig` of every filler message, by the message key; `bodyHash = fillerMessageBodyHash(message)`. */\nexport const FILLER_MESSAGE_TYPES = {\n FillerMessage: [{ name: 'bodyHash', type: 'bytes32' }],\n} as const;\n\n/**\n * `FillerKeyRegistration(string fillerId,address messageKey,uint64 issuedAt)` — proof of possession of a message key,\n * signed by that key: at onboarding, and with the NEW key at a manual key change by Cancore staff. There is no rotation type.\n */\nexport const FILLER_KEY_REGISTRATION_TYPES = {\n FillerKeyRegistration: [\n { name: 'fillerId', type: 'string' },\n { name: 'messageKey', type: 'address' },\n { name: 'issuedAt', type: 'uint64' },\n ],\n} as const;\n\nexport interface Order {\n user: Hex;\n originChainId: UintLike;\n inputToken: Hex;\n inputAmount: UintLike;\n destination: Hex;\n outputAsset: Hex;\n minReceived: UintLike;\n recipient: Hex;\n createdAt: UintLike;\n fillDeadline: UintLike;\n feeBps: number | string;\n /** `fillerIdHash(fillerId)` of the filler the user picked: only its ticket fills the order and only a proof naming it settles it (`WrongFiller`). */\n fillerId: Hex;\n}\n\nexport interface Quote {\n orderHash: Hex;\n quoteDeadline: UintLike;\n}\n\nexport interface FillTicket {\n orderHash: Hex;\n /** `fillerIdHash(fillerId)`: the on-chain form of the filler's id. */\n fillerId: Hex;\n /** The only address `fill` accepts this ticket from; the zero address never reaches a router (Canton destinations have no `FillTicket`). */\n deliveryKey: Hex;\n /** Where `settle` pays, encoded for the source chain (`repayToFromEvm`, `repayToFromParty`). */\n repayTo: Hex;\n attempt: number;\n validFrom: UintLike;\n validUntil: UintLike;\n}\n\nexport interface FillerQuote {\n /** `requestIdHash(requestId)`, not the string. */\n requestId: Hex;\n fillerId: string;\n amountOut: UintLike;\n validUntil: UintLike;\n nonce: UintLike;\n}\n\nexport interface TicketIntent {\n orderHash: Hex;\n attempt: number;\n validFrom: UintLike;\n validUntil: UintLike;\n /** The signer's own id, the string form. */\n fillerId: string;\n /** The address that will send `fill` on the destination; the zero address for a Canton destination. */\n deliveryKey: Hex;\n /** Where `settle` pays, encoded for the source chain. */\n repayTo: Hex;\n}\n\nexport interface TicketReceipt {\n /** `hashTypedData` of the `FillTicket` in `FILL_TICKET_DOMAIN`. */\n ticketHash: Hex;\n /** keccak256 of the 65 raw signature bytes. */\n ticketSigHash: Hex;\n}\n\nexport interface CantonTicketReceipt {\n orderHash: Hex;\n attempt: number;\n /** `deliveryOrderCidHash(deliveryOrderCid)`: keccak256 of the contract id exactly as `ticket.issued` sent it. */\n deliveryOrderCidHash: Hex;\n /** `ticket.issued.validUntil` (= `DeliveryOrder.validUntil`), unix seconds. */\n validUntil: UintLike;\n}\n\nexport interface StakeBinding {\n partnerId: string;\n stakingAddress: Hex;\n chainId: UintLike;\n nonce: UintLike;\n}\n\nexport interface FillerAuth {\n fillerId: string;\n nonce: Hex;\n expiresAt: UintLike;\n}\n\nexport interface GatewayMessage {\n bodyHash: Hex;\n}\n\nexport interface FillerMessage {\n bodyHash: Hex;\n}\n\nexport interface FillerKeyRegistration {\n fillerId: string;\n /** The address derived from the key being registered. */\n messageKey: Hex;\n /** Unix seconds. */\n issuedAt: UintLike;\n}\n","/**\n * Order hashing of the intent rail: the router's `hashOrder` and\n * `sourceOrderHash`, the EVM-form `Order` of a Canton-source intent\n * (protocol.md §3.7, a port of evm-contracts `test/helpers/cantonOrder.ts`),\n * and the Permit2 witness a maker signs to open an EVM-source intent\n * (`CancoreRouter.WITNESS_TYPE_STRING`). Digests only: signing stays with the\n * consumer's own secp256k1 key.\n */\nimport { concatBytes, utf8ToBytes } from '@noble/hashes/utils';\nimport { CANTON_ORIGIN_ID, CANTON_SOURCE_ANCHOR, DAML_NUMERIC_SCALE, EIP2294_MAX_CHAIN_ID, INSTRUMENT_LABEL_TAG, MAX_FEE_BPS, OWNER_LABEL_TAG } from './constants';\nimport { PERMIT2_ADDRESS } from './deployments';\nimport { abiEncodeStrings, exactUnits } from './encoding';\nimport { beBytes, hexBytes, keccak, toHex, uint } from './protocol/bytes';\nimport { encodeType, hashDomain, hashStruct, hashTypedData } from './protocol/hash';\nimport { fillerIdHash } from './protocol/identity';\nimport { ORDER_TYPES, routerDomain, type Hex, type Order, type UintLike } from './protocol/typedData';\n\n/** The source-router domain an order is hashed in: its chain id and router (Canton: `CANTON_ORIGIN_ID`, `CANTON_SOURCE_ANCHOR`). */\nexport interface OrderDomain {\n chainId: UintLike;\n verifyingContract: Hex | string;\n}\n\n/** `CancoreRouter.hashOrder`: the EIP-712 digest of `order` in the router domain `{chainId, verifyingContract}` — the `orderHash`. */\nexport function hashOrder(order: Order, domain: OrderDomain): Hex {\n return hashTypedData({ domain: routerDomain(domain.chainId, domain.verifyingContract as Hex), types: ORDER_TYPES, primaryType: 'Order', message: { ...order } });\n}\n\n/** Whether `chainId` is the `Order.originChainId` of a Canton network (`CANTON_ORIGIN_ID`). */\nexport function isCantonOriginId(chainId: UintLike): boolean {\n let id: bigint;\n try {\n id = uint(chainId, 64, 'chainId');\n } catch {\n return false;\n }\n return Object.values(CANTON_ORIGIN_ID).includes(id as (typeof CANTON_ORIGIN_ID)[keyof typeof CANTON_ORIGIN_ID]);\n}\n\n/**\n * `CancoreRouter.sourceOrderHash`: the order hash as its SOURCE router computed it — what a destination\n * keys `filled` on. A Canton origin hashes under `CANTON_SOURCE_ANCHOR`; an EVM origin needs the source\n * router registered for it (`sourceRouter[originChainId]`), and is refused without one as the router\n * reverts `SourceRouterUnknown`.\n */\nexport function sourceOrderHash(order: Order, sourceRouter?: Hex | string): Hex {\n const router = sourceRouter ?? (isCantonOriginId(order.originChainId) ? CANTON_SOURCE_ANCHOR : undefined);\n if (router === undefined) throw new Error(`sourceOrderHash: no source router for originChainId ${String(order.originChainId)} (SourceRouterUnknown)`);\n return hashOrder(order, { chainId: order.originChainId, verifyingContract: router });\n}\n\n/** A Canton-source intent as its owner signs it (`SwapIntentRequest`), the input of `buildCantonSourceOrder`. */\nexport interface CantonSourceIntent {\n /** Canton party id of the owner, e.g. `alice::1220abc…`. */\n ownerPartyId: string;\n /** `requestId` of the signed request; without it two identical requests would share a hash. */\n requestId: string;\n /** Party id of the instrument admin (registry operator). */\n instrumentAdmin: string;\n /** Instrument id inside that registry, e.g. `CNRX`. */\n instrumentId: string;\n /** Amount given (the total T, fee included), a Daml decimal string, at most 10 decimal places. */\n amount: string;\n /** EVM chain the output is delivered on. */\n destinationChainId: UintLike;\n /** ERC-20 delivered there. */\n wantToken: string;\n /** Its `decimals()`. */\n wantDecimals: number;\n /** Lower bound of the delivery, a decimal string in `wantToken` units. */\n minReceived: string;\n /** Receiver on the destination, an EVM address. */\n recipient: string;\n /** The owner-signed `orderCreatedAt` of the request (not the ledger time of Execute), unix seconds, a whole second. */\n createdAt: number | string;\n /** Unix seconds, a whole second. */\n fillDeadline: number | string;\n /** Inclusive fee rate as a decimal string, e.g. `\"0.003\"`; at most 4 decimal places, at most `MAX_FEE_BPS / 10 000`. */\n feeRate: string;\n /** One of `CANTON_ORIGIN_ID`. */\n cantonOriginId: UintLike;\n /** Id of the filler the owner picked, as Cancore issued it (e.g. `acme`); the order carries `keccak256(utf8(fillerId))`. */\n fillerId: string;\n}\n\nexport interface CantonSourceOrder {\n /** The EVM-form `Order`: wide integers as decimal strings, addresses EIP-55, words lowercase. */\n order: Order;\n /** The Canton source domain: `CancoreRouter` v1, `CANTON_ORIGIN_ID`, `CANTON_SOURCE_ANCHOR`. */\n domain: { name: 'CancoreRouter'; version: '1'; chainId: string; verifyingContract: typeof CANTON_SOURCE_ANCHOR };\n orderHash: Hex;\n}\n\n/**\n * The EVM-form `Order` of a Canton-source intent and its source-domain hash (protocol.md §3.7).\n * Refuses rather than rounds: an amount, a fee or a time the chain cannot represent exactly is\n * rejected BEFORE the owner signs, because after that the `orderHash` is fixed.\n */\nexport function buildCantonSourceOrder(intent: CantonSourceIntent): CantonSourceOrder {\n for (const field of ['ownerPartyId', 'requestId', 'instrumentAdmin', 'instrumentId'] as const) {\n if (typeof intent[field] !== 'string' || intent[field].length === 0) throw new TypeError(`${field}: a non-empty string`);\n }\n const originChainId = uint(intent.cantonOriginId, 64, 'cantonOriginId');\n if (originChainId <= EIP2294_MAX_CHAIN_ID) throw new RangeError(`cantonOriginId: ${originChainId} collides with the EVM chain-id range`);\n const feeBps = exactUnits(intent.feeRate, 4, 'feeRate');\n if (feeBps > BigInt(MAX_FEE_BPS)) throw new RangeError(`feeRate: ${intent.feeRate} exceeds MAX_FEE_BPS`);\n\n const order: Order = {\n user: label(OWNER_LABEL_TAG, intent.ownerPartyId, intent.requestId),\n originChainId: originChainId.toString(),\n inputToken: label(INSTRUMENT_LABEL_TAG, intent.instrumentAdmin, intent.instrumentId),\n inputAmount: exactUnits(intent.amount, DAML_NUMERIC_SCALE, 'amount').toString(),\n destination: toHex(beBytes(uint(intent.destinationChainId, 256, 'destinationChainId'), 32)),\n outputAsset: addressWord(intent.wantToken, 'wantToken'),\n minReceived: exactUnits(intent.minReceived, intent.wantDecimals, 'minReceived').toString(),\n recipient: addressWord(intent.recipient, 'recipient'),\n createdAt: wholeSecond(intent.createdAt, 'createdAt'),\n fillDeadline: wholeSecond(intent.fillDeadline, 'fillDeadline'),\n feeBps: feeBps.toString(),\n // refuses an empty or malformed id: an order with no picked filler can be filled by nobody\n fillerId: fillerIdHash(intent.fillerId),\n };\n const domain = { name: 'CancoreRouter', version: '1', chainId: originChainId.toString(), verifyingContract: CANTON_SOURCE_ANCHOR } as const;\n return { order, domain, orderHash: hashOrder(order, domain) };\n}\n\n/** `TokenPermissions(address token,uint256 amount)` of Permit2. */\nconst TOKEN_PERMISSIONS_TYPES = {\n TokenPermissions: [\n { name: 'token', type: 'address' },\n { name: 'amount', type: 'uint256' },\n ],\n} as const;\n\n/**\n * `CancoreRouter.WITNESS_TYPE_STRING`: the tail Permit2 appends after\n * `\"PermitWitnessTransferFrom(TokenPermissions permitted,address spender,uint256 nonce,uint256 deadline,\"`.\n */\nexport const PERMIT2_WITNESS_TYPE_STRING = `Order witness)${encodeType(ORDER_TYPES, 'Order')}${encodeType(TOKEN_PERMISSIONS_TYPES, 'TokenPermissions')}`;\n\nconst PERMIT_WITNESS_TYPEHASH = keccak(\n utf8ToBytes(`PermitWitnessTransferFrom(TokenPermissions permitted,address spender,uint256 nonce,uint256 deadline,${PERMIT2_WITNESS_TYPE_STRING}`),\n);\n\n/** The Permit2 witness typed data a wallet renders and signs (`eth_signTypedData_v4` types), the `Order` nested as `witness`. */\nexport const PERMIT_WITNESS_TYPES = {\n PermitWitnessTransferFrom: [\n { name: 'permitted', type: 'TokenPermissions' },\n { name: 'spender', type: 'address' },\n { name: 'nonce', type: 'uint256' },\n { name: 'deadline', type: 'uint256' },\n { name: 'witness', type: 'Order' },\n ],\n ...TOKEN_PERMISSIONS_TYPES,\n ...ORDER_TYPES,\n} as const;\n\n/** The message of `PERMIT_WITNESS_TYPES`: `spender` is the source router, `permitted` the order's input token and amount. */\nexport interface PermitWitness {\n permitted: { token: Hex | string; amount: UintLike };\n spender: Hex | string;\n nonce: UintLike;\n deadline: UintLike;\n witness: Order;\n}\n\n/** The Permit2 domain: `{name: \"Permit2\", chainId, verifyingContract}` — no version. */\nexport function permit2Domain(chainId: UintLike, permit2: Hex | string = PERMIT2_ADDRESS) {\n return { name: 'Permit2', chainId, verifyingContract: permit2 } as const;\n}\n\n/** The digest the maker signs for `openFor`: `PermitWitnessTransferFrom` with the order as witness, in the Permit2 domain. */\nexport function hashPermitWitness(permit: PermitWitness, chainId: UintLike, permit2: Hex | string = PERMIT2_ADDRESS): Hex {\n const struct = keccak(\n concatBytes(\n PERMIT_WITNESS_TYPEHASH,\n hexBytes(hashStruct(TOKEN_PERMISSIONS_TYPES, 'TokenPermissions', permit.permitted), 'permitted', 32),\n hexBytes(addressWord(permit.spender, 'spender'), 'spender', 32),\n beBytes(uint(permit.nonce, 256, 'nonce'), 32),\n beBytes(uint(permit.deadline, 256, 'deadline'), 32),\n hexBytes(hashStruct(ORDER_TYPES, 'Order', { ...permit.witness }), 'witness', 32),\n ),\n );\n const separator = hexBytes(hashDomain(permit2Domain(chainId, permit2)), 'domain', 32);\n return toHex(keccak(concatBytes(new Uint8Array([0x19, 0x01]), separator, struct)));\n}\n\n// --- encoding helpers\n\n/** Unix seconds as a whole second (a safe integer or a canonical decimal string), within uint64. */\nfunction wholeSecond(value: unknown, field: string): string {\n return uint(value, 64, `${field} (a whole second)`).toString();\n}\n\n/** An EVM address as the left-padded lowercase 32-byte word of `bytes32(uint256(uint160(address)))`. */\nfunction addressWord(value: unknown, field: string): Hex {\n const address = checksumAddress(value, field);\n return `0x${'00'.repeat(12)}${address.slice(2).toLowerCase()}`;\n}\n\n/** EIP-55; a mixed-case input must already carry the right checksum, as ethers `getAddress` requires. */\nfunction checksumAddress(value: unknown, field: string): Hex {\n hexBytes(value, field, 20);\n const lower = (value as string).slice(2).toLowerCase();\n const hash = toHex(keccak(utf8ToBytes(lower))).slice(2);\n const sum = `0x${[...lower].map((c, i) => (parseInt(hash[i]!, 16) >= 8 ? c.toUpperCase() : c)).join('')}` as Hex;\n const body = (value as string).slice(2);\n if (body !== body.toLowerCase() && body !== body.toUpperCase() && `0x${body}` !== sum) throw new TypeError(`${field}: bad EIP-55 checksum: ${String(value)}`);\n return sum;\n}\n\n/** `address(uint160(uint256(keccak256(abi.encode(tag, a, b)))))`, EIP-55 — the owner and instrument labels. */\nfunction label(tag: string, a: string, b: string): Hex {\n const hash = toHex(keccak(abiEncodeStrings([tag, a, b])));\n return checksumAddress(`0x${hash.slice(-40)}`, 'label');\n}\n","/**\n * The inclusive fee of the intent rail (protocol.md §3.11): the maker hands over\n * the total `T = N + F`, the filler is paid the net, Cancore keeps the rest.\n * `T` and the result are in the input's base units (a Canton source: 10⁻¹⁰ units\n * of the give instrument, its EVM form of §3.7).\n */\nimport { BPS, MAX_FEE_BPS } from './constants';\nimport { uint } from './protocol/bytes';\nimport type { UintLike } from './protocol/typedData';\n\nexport interface FeeSplit {\n /** What the filler is paid. */\n payout: bigint;\n /** What Cancore keeps: `total − payout`. */\n fee: bigint;\n}\n\nfunction operands(total: UintLike, feeBps: UintLike): [bigint, bigint] {\n const t = uint(total, 256, 'total');\n const bps = uint(feeBps, 16, 'feeBps');\n if (bps > BigInt(MAX_FEE_BPS)) throw new RangeError(`feeBps: ${bps} exceeds MAX_FEE_BPS (${MAX_FEE_BPS})`);\n return [t, bps];\n}\n\n/**\n * EVM source, `CancoreRouter.settle`: `payout = ⌊T × 10 000 / (10 000 + feeBps)⌋`, `fee = T − payout`.\n * The rounding dust goes to the fee; a total below one net unit (`T × 10 000 < 10 000 + feeBps`)\n * pays 0 and is all fee.\n */\nexport function inclusiveFeeSplit(total: UintLike, feeBps: UintLike): FeeSplit {\n const [t, bps] = operands(total, feeBps);\n const payout = (t * BigInt(BPS)) / (BigInt(BPS) + bps);\n return { payout, fee: t - payout };\n}\n\n/**\n * Canton source, Daml `inclusiveFee amount feeRate = amount − amount / (1.0 + feeRate)` in EVM-form\n * units: the same quotient rounded half to even (Daml `Numeric 10` division), so the payout is the\n * EVM one or one unit more. A filler prices a Canton-source order on this, never on the EVM formula (T-12).\n */\nexport function cantonInclusiveFeeSplit(total: UintLike, feeBps: UintLike): FeeSplit {\n const [t, bps] = operands(total, feeBps);\n const n = t * BigInt(BPS);\n const d = BigInt(BPS) + bps;\n const q = n / d;\n const r = n - q * d;\n const payout = 2n * r > d || (2n * r === d && q % 2n === 1n) ? q + 1n : q;\n return { payout, fee: t - payout };\n}\n","/**\n * Canton-destination orders and proofs in EVM form (protocol.md §3.13): an\n * EVM-source order whose output is delivered on Canton, and the `FillProof` of\n * that delivery, carry Canton values in EVM fields. This is the one encoder the\n * backend OrderBuilder, the web app, the filler node and the attestors use;\n * nobody re-implements it.\n */\nimport { utf8ToBytes } from '@noble/hashes/utils';\nimport { CANTON_ORIGIN_ID, DAML_NUMERIC_SCALE, INSTRUMENT_LABEL_TAG } from './constants';\nimport { abiEncodeStrings, exactUnits } from './encoding';\nimport { keccak, toHex } from './protocol/bytes';\nimport type { Hex } from './protocol/typedData';\n\n/** A Canton network, as in its CAIP-2 id `canton:<network>`. */\nexport type CantonNetwork = keyof typeof CANTON_ORIGIN_ID;\n\nconst NETWORKS = Object.keys(CANTON_ORIGIN_ID) as CantonNetwork[];\n\nconst utf8Hash = (text: string): Hex => toHex(keccak(utf8ToBytes(text)));\n\nconst nonEmpty = (value: unknown, field: string): string => {\n if (typeof value !== 'string' || value.length === 0) throw new TypeError(`${field}: a non-empty string`);\n return value;\n};\n\n/** `Order.destination` and `FillProof.destination` of a Canton network: `keccak256(utf8(\"canton:<network>\"))`. */\nexport function encodeCantonDestination(network: CantonNetwork): Hex {\n if (!NETWORKS.includes(network)) throw new TypeError(`network: one of ${NETWORKS.join(', ')}, got ${JSON.stringify(network)}`);\n return utf8Hash(`canton:${network}`);\n}\n\n/** The Canton network an order's `destination` names, or `undefined` when it is not a Canton destination. */\nexport function cantonNetworkOfDestination(destination: string): CantonNetwork | undefined {\n const word = typeof destination === 'string' ? destination.toLowerCase() : '';\n return NETWORKS.find((network) => encodeCantonDestination(network) === word);\n}\n\n/**\n * `Order.outputAsset` and `FillProof.outputAsset` of a Canton instrument:\n * `keccak256(abi.encode(\"cancore:instrument:v1\", admin, id))`, the full 32 bytes — the same hash a\n * Canton-source `inputToken` label truncates to 20 bytes.\n */\nexport function encodeCantonOutputAsset(instrument: { admin: string; id: string }): Hex {\n return toHex(keccak(abiEncodeStrings([INSTRUMENT_LABEL_TAG, nonEmpty(instrument.admin, 'instrument.admin'), nonEmpty(instrument.id, 'instrument.id')])));\n}\n\n/** `Order.recipient` and `FillProof.recipient` of a Canton party: `keccak256(utf8(partyId))` over the full party id. */\nexport function encodeCantonRecipient(partyId: string): Hex {\n return utf8Hash(nonEmpty(partyId, 'partyId'));\n}\n\n/**\n * `Order.minReceived` and `FillProof.amountDelivered` of a Canton amount: the Daml `Numeric 10`\n * decimal × 10¹⁰. No rounding: an amount that is not exact at 10⁻¹⁰ is refused before anyone signs.\n */\nexport function encodeCantonAmount(amount: string): bigint {\n return exactUnits(amount, DAML_NUMERIC_SCALE, 'amount');\n}\n","/**\n * One digest helper per signed type of the intent rail's settlement design:\n * what a signer hands its secp256k1 key and what a verifier recovers from.\n * Each is `hashTypedData` over the type and domain of this package, so no\n * consumer re-types a struct (SDK S1). `FillProof` is `hashFillProof` in\n * `../eip712`, next to its domain.\n */\nimport { utf8ToBytes } from '@noble/hashes/utils';\nimport { hexBytes, keccak, toHex, uint } from './bytes';\nimport { hashTypedData, fillerMessageBodyHash } from './hash';\nimport type { TicketIssuedCanton } from './messages';\nimport {\n CANTON_TICKET_RECEIPT_TYPES, FILL_TICKET_DOMAIN, FILL_TICKET_TYPES, FILLER_KEY_REGISTRATION_TYPES, FILLER_MESSAGE_TYPES, FILLER_PROTOCOL_DOMAIN,\n FILLER_QUOTE_TYPES, TICKET_INTENT_TYPES,\n type CantonTicketReceipt, type FillerKeyRegistration, type FillerQuote, type FillTicket, type Hex, type TicketIntent,\n} from './typedData';\n\n/** `hashTicket` of the router: the `FillTicket` digest in the ticket domain, the same on every chain. */\nexport const hashFillTicket = (ticket: FillTicket): Hex =>\n hashTypedData({ domain: FILL_TICKET_DOMAIN, types: FILL_TICKET_TYPES, primaryType: 'FillTicket', message: { ...ticket } });\n\n/** The `FillerQuote` digest; `quote.requestId` is already `requestIdHash(requestId)`. */\nexport const hashFillerQuote = (quote: FillerQuote): Hex =>\n hashTypedData({ domain: FILLER_PROTOCOL_DOMAIN, types: FILLER_QUOTE_TYPES, primaryType: 'FillerQuote', message: { ...quote } });\n\n/** The `TicketIntent` digest — the inner `sig` of `ticket.intent`. */\nexport const hashTicketIntent = (intent: TicketIntent): Hex =>\n hashTypedData({ domain: FILLER_PROTOCOL_DOMAIN, types: TICKET_INTENT_TYPES, primaryType: 'TicketIntent', message: { ...intent } });\n\n/** What `msgSig` of a filler → filler-gateway message is over: `FillerMessage{bodyHash}` of the message without `msgSig`. */\nexport const hashFillerMessage = (message: object): Hex =>\n hashTypedData({ domain: FILLER_PROTOCOL_DOMAIN, types: FILLER_MESSAGE_TYPES, primaryType: 'FillerMessage', message: { bodyHash: fillerMessageBodyHash(message) } });\n\n/** The `FillerKeyRegistration` digest; the registered key signs it, and it must recover to `messageKey`. */\nexport const hashFillerKeyRegistration = (registration: FillerKeyRegistration): Hex =>\n hashTypedData({ domain: FILLER_PROTOCOL_DOMAIN, types: FILLER_KEY_REGISTRATION_TYPES, primaryType: 'FillerKeyRegistration', message: { ...registration } });\n\n/** `keccak256(utf8(deliveryOrderCid))` over the contract id exactly as `ticket.issued` sent it: no trimming, no case change. */\nexport function deliveryOrderCidHash(deliveryOrderCid: string): Hex {\n if (typeof deliveryOrderCid !== 'string' || deliveryOrderCid.length === 0) throw new TypeError('deliveryOrderCid: a Canton contract id is a non-empty string');\n return toHex(keccak(utf8ToBytes(deliveryOrderCid)));\n}\n\n/**\n * The `CantonTicketReceipt` of a Canton-form ticket, from the fields that name it — the filler reads them from\n * `ticket.issued`, filler-gateway from the `ticket.receipt` it verifies; both get the same struct. Any other field of\n * the frame (`fillerId`, `repayTo`) is not part of the receipt and is ignored.\n */\nexport function cantonTicketReceipt(ticket: Pick<TicketIssuedCanton, 'orderHash' | 'attempt' | 'deliveryOrderCid' | 'validUntil'>): CantonTicketReceipt {\n hexBytes(ticket.orderHash, 'orderHash', 32);\n return {\n orderHash: ticket.orderHash.toLowerCase() as Hex,\n attempt: Number(uint(ticket.attempt, 32, 'attempt')),\n deliveryOrderCidHash: deliveryOrderCidHash(ticket.deliveryOrderCid),\n validUntil: uint(ticket.validUntil, 64, 'validUntil').toString(),\n };\n}\n\n/** The `CantonTicketReceipt` digest — the inner `sig` of a Canton-form `ticket.receipt`. */\nexport const hashCantonTicketReceipt = (receipt: CantonTicketReceipt): Hex =>\n hashTypedData({ domain: FILLER_PROTOCOL_DOMAIN, types: CANTON_TICKET_RECEIPT_TYPES, primaryType: 'CantonTicketReceipt', message: { ...receipt } });\n","/**\n * The checks of protocol §3.4 a filler → filler-gateway message must pass\n * before it is processed, as far as they need no key and no state. What stays\n * with the receiver: recovering `msgSig` and comparing it with the message key\n * registered for `fillerId` (check 1 proper, S-24), and refusing an `id`\n * already accepted from that `fillerId` (check 4, `REPLAYED_MESSAGE`) — kept\n * until `messageIdRetainUntil`, so no replay outlives the record of its id.\n */\nimport { isEoaSignature } from './identity';\nimport type { ErrorCode } from './messages';\n\nexport interface FillerEnvelopeContext {\n /** The `fillerId` the session (or bearer token) is authenticated for. */\n fillerId: string;\n /** Arrival time, unix ms, the receiver's clock. */\n receivedAt: number;\n /** `GET /v1/gateway` `maxMessageAgeMs`. */\n maxMessageAgeMs: number;\n}\n\n/**\n * The error code the gateway answers for the first envelope check `message`\n * fails, in the order of §3.4, or `null` when every key-free check passes:\n * `BAD_SIGNATURE` — `msgSig` missing or not a 65-byte low-s EOA signature;\n * `UNAUTHENTICATED` — `fillerId` is not the session's; `BAD_REQUEST` — `sentAt`\n * not unix milliseconds, or no valid `id`; `STALE_MESSAGE` — `sentAt` further\n * than `maxMessageAgeMs` from `receivedAt`.\n */\nexport function fillerEnvelopeError(message: object, ctx: FillerEnvelopeContext): ErrorCode | null {\n const { msgSig, fillerId, sentAt, id } = message as Readonly<Record<string, unknown>>;\n if (!isEoaSignature(msgSig)) return 'BAD_SIGNATURE';\n if (fillerId !== ctx.fillerId) return 'UNAUTHENTICATED';\n if (typeof sentAt !== 'number' || !Number.isSafeInteger(sentAt) || sentAt < 1e12) return 'BAD_REQUEST';\n if (Math.abs(ctx.receivedAt - sentAt) > ctx.maxMessageAgeMs) return 'STALE_MESSAGE';\n if (typeof id !== 'string' || id.length < 1 || id.length > 64) return 'BAD_REQUEST';\n return null;\n}\n\n/**\n * Until when (unix ms, receiver clock) the receiver must remember an accepted\n * message `id` to refuse its replay: `max(receivedAt, sentAt) + maxMessageAgeMs`.\n * Freshness is symmetric (`|receivedAt − sentAt| ≤ maxMessageAgeMs`), so a\n * message whose `sentAt` runs ahead of the receiver's clock stays fresh until\n * `sentAt + maxMessageAgeMs` — later than `receivedAt + maxMessageAgeMs`.\n * Forgetting the id earlier would let the byte-identical message in again;\n * after this time a replay fails the freshness check by itself.\n */\nexport function messageIdRetainUntil(sentAt: number, receivedAt: number, maxMessageAgeMs: number): number {\n return Math.max(receivedAt, sentAt) + maxMessageAgeMs;\n}\n","/**\n * The draw of auction-and-draw §3.6: who gets attempt k of an order, from a\n * drand quicknet round nobody knew when the order was fixed. Pure arithmetic —\n * fetching the round and checking its BLS signature is the verifier's job\n * (`@cancore/trader/taker` verifyDraw), not this package's.\n */\nimport { concatBytes, utf8ToBytes } from '@noble/hashes/utils';\nimport { beBytes, hexBytes, keccak, toHex, uint } from './bytes';\nimport type { Hex } from './typedData';\n\nexport interface DrawCandidate {\n fillerId: string;\n /** Decimal string on the wire; the integer weight of auction-and-draw A-11. */\n weight: string | bigint;\n}\n\nexport interface DrawOutcome {\n r: bigint;\n winnerFillerId: string;\n}\n\n/** drand quicknet, the randomness beacon of the draw (auction-and-draw §4). */\nexport const DRAND_QUICKNET = {\n chainHash: '52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971',\n publicKey:\n '83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a',\n scheme: 'bls-unchained-g1-rfc9380',\n genesisTime: 1692803367,\n period: 3,\n} as const;\n\n/** The first quicknet round whose time is at or after `unixSeconds` (A-20: `round_k` for `t_k + δ_drand`). */\nexport function firstRoundAtOrAfter(unixSeconds: bigint | number): bigint {\n const t = BigInt(unixSeconds);\n const genesis = BigInt(DRAND_QUICKNET.genesisTime);\n const period = BigInt(DRAND_QUICKNET.period);\n return t <= genesis ? 1n : (t - genesis + period - 1n) / period + 1n;\n}\n\n/** `h = uint256(keccak256(randomness ‖ orderHash ‖ uint32be(attempt)))` — the 68-byte preimage of A-21. */\nexport function drawValue(randomness: Hex | string, orderHash: Hex, attempt: number): bigint {\n const rand = hexBytes(randomness.startsWith('0x') ? randomness : `0x${randomness}`, 'randomness', 32);\n const preimage = concatBytes(rand, hexBytes(orderHash, 'orderHash', 32), beBytes(uint(attempt, 32, 'attempt'), 4));\n return BigInt(toHex(keccak(preimage)));\n}\n\nfunction compareUtf8(a: Uint8Array, b: Uint8Array): number {\n const n = Math.min(a.length, b.length);\n for (let i = 0; i < n; i++) if (a[i] !== b[i]) return a[i]! - b[i]!;\n return a.length - b.length;\n}\n\n/**\n * `r = h mod Σw`; the winner is the first candidate, in ascending UTF-8 byte\n * order of `fillerId` (A-22), whose cumulative weight exceeds `r`. Sorts a copy\n * itself, so a verifier compares the outcome, not the order it was served in.\n */\nexport function drawWinner(h: bigint, candidates: readonly DrawCandidate[]): DrawOutcome {\n const sorted = candidates\n .map((c) => ({ id: c.fillerId, key: utf8ToBytes(c.fillerId), weight: uint(c.weight, 256, `weight of ${c.fillerId}`) }))\n .sort((a, b) => compareUtf8(a.key, b.key));\n if (new Set(sorted.map((c) => c.id)).size !== sorted.length) throw new Error('draw: duplicated fillerId');\n const total = sorted.reduce((sum, c) => sum + c.weight, 0n);\n if (total === 0n) throw new Error('draw: no candidate with a positive weight');\n const r = h % total;\n let acc = 0n;\n const winner = sorted.find((c) => (acc += c.weight) > r)!;\n return { r, winnerFillerId: winner.id };\n}\n","import type { DeploymentEnv } from '../deployments';\nimport type { Hex } from './typedData';\n\n/** The protocol major this package describes: the `/v1` path and `auth.response.protocolVersion`. */\nexport const PROTOCOL_VERSION = '1';\n\n/**\n * The WebSocket subprotocol of filler protocol v1. A filler offers it on the\n * upgrade of `/v1` together with `bearer.<token>`; filler-gateway answers with\n * this one only and never echoes the token.\n */\nexport const FILLER_WS_SUBPROTOCOL = 'cancore-filler.v1';\n/** Prefix of the second subprotocol a filler offers: `bearer.` + the token of `POST /v1/filler/auth`. */\nexport const FILLER_WS_BEARER_PREFIX = 'bearer.';\n\n/**\n * The subprotocols a filler offers on the upgrade (`Sec-WebSocket-Protocol`):\n * `['cancore-filler.v1', 'bearer.<token>']`. In a browser\n * `new WebSocket(url, fillerWsProtocols(token))`; with `ws` the same array.\n * The second entry carries the bearer token: never log it.\n */\nexport function fillerWsProtocols(token: string): readonly [string, string] {\n return [FILLER_WS_SUBPROTOCOL, `${FILLER_WS_BEARER_PREFIX}${token}`];\n}\n\n/** Close codes filler-gateway closes a filler session with (protocol §3.1). */\nexport const FILLER_CLOSE_CODES = {\n /** filler-gateway is shutting down. */\n GOING_AWAY: 1001,\n /** The filler missed its heartbeats. */\n HEARTBEAT_MISSED: 4000,\n /** A newer session of this fillerId superseded this one. */\n SUPERSEDED: 4001,\n /** Cancore staff changed the message key the session was opened with: log in again with the new key. */\n KEY_CHANGED: 4002,\n /** The filler is no longer `ACTIVE` (suspended). */\n NOT_ACTIVE: 4003,\n /** This session's inbound queue overflowed (count or bytes); only this session is closed. */\n QUEUE_OVERFLOW: 4008,\n /**\n * Sustained excess over the rate limits: every session of the fillerId is\n * closed and its upgrades and bearer requests are refused for a cooldown;\n * the `error RATE_LIMITED` sent just before carries `retryAfterMs` = the\n * remaining cooldown.\n */\n RATE_LIMITED: 4029,\n} as const;\nexport type FillerCloseCode = (typeof FILLER_CLOSE_CODES)[keyof typeof FILLER_CLOSE_CODES];\n\n/**\n * HTTP statuses filler-gateway refuses the WebSocket upgrade with — a plain\n * HTTP response, no WebSocket, nothing signed. A client sees the upgrade fail\n * before the socket opens.\n */\nexport const FILLER_UPGRADE_REFUSALS = {\n /** `cancore-filler.v1` not offered, or not exactly one `bearer.` entry. */\n 400: 'BAD_REQUEST',\n /** The token is missing, unknown or expired, or the message key changed. */\n 401: 'UNAUTHENTICATED',\n /** The filler is unknown or not `ACTIVE`. */\n 403: 'NOT_ACTIVE',\n /** The login rate class is over its limit, or the fillerId is cooling down; `Retry-After` in seconds. */\n 429: 'RATE_LIMITED',\n /** The replica is at its connection limit, or the fillerId already holds its maximum of live sessions. */\n 503: 'UNAVAILABLE',\n} as const;\n\nexport interface FillerGateway {\n /** The key every S→F message is signed with (`GatewayMessage`); null until the environment has one. */\n gateway: Hex | null;\n /** Keys that sign `FillTicket`; the same set is registered on every router of the environment. */\n ticketSigners: readonly Hex[];\n}\n\n/**\n * The published gateway key and ticket signers per environment — the release\n * data a taker checks every S→F signature and every ticket against, and never\n * takes from a gateway message. A key that does not exist yet is null or\n * absent (O-6); the gateway release fills it in. Test keys never appear here.\n */\nexport const FILLER_GATEWAYS: Readonly<Record<DeploymentEnv, FillerGateway>> = {\n mainnet: { gateway: null, ticketSigners: [] },\n testnet: { gateway: null, ticketSigners: [] },\n // The ticket signer every dev router registers (evm-contracts deployments/router/dev/*.input.json, CAN-2331).\n // The gateway key is published with the gateway release.\n devnet: { gateway: null, ticketSigners: ['0x9a3fc3f44cddbdfb036a8c8a528a903d0c835c1c'] },\n};\n\n/**\n * The Cancore participant per environment: the participant a filler's Canton\n * party is hosted on (protocol §3.19, decision Ын-1). The node checks the\n * hosting of its party against this release value when it signs\n * `party.allocate`, never against a value the backend sends. A participant id\n * as the JSON Ledger API prints it (`<name>::<fingerprint>`, no `PAR::`);\n * null where there is none yet.\n */\nexport const CANTON_PARTICIPANTS: Readonly<Record<DeploymentEnv, string | null>> = {\n mainnet: null,\n testnet: null,\n // GET /v2/parties/participant-id on the devnet Ledger API, 15.10.2026.\n devnet: 'Cancore-devnet-1::12204f383aca6af056f6d83c9b5758fbc53c27a743e2f9d591e61bc657202172524b',\n};\n","/**\n * The wire shapes of filler protocol v1 — WebSocket frames on `/v1`, REST\n * bodies and the public draw/epoch records — as TypeScript. The JSON Schemas\n * under `spec/protocol/` are normative; schemas.test.ts holds the enums below\n * to them. Encoding (protocol §3.1): uint64 and wider as decimal strings,\n * uint8/16/32 as JSON integers, on-chain times in seconds (decimal string),\n * gateway times in milliseconds (JSON integer), hex lowercase.\n *\n * Every frame in both directions is signed by its sender (protocol §3.4):\n * `sig` (gateway key, `GatewayMessage`) on S→F, `msgSig` (the filler's message\n * key, `FillerMessage`) on F→S, and carries `id`, `fillerId` and `sentAt`.\n *\n * Receivers ignore unknown fields and unknown S→F types (V-2), so none of\n * these types is closed. The enum types list the known values; the schemas\n * accept any UPPER_SNAKE value besides them, and a receiver treats an unknown\n * one as OTHER/generic (V-2).\n */\nimport type { SettleAttestations } from './settleAttestations';\nimport type { Hex } from './typedData';\n\n/** Unsigned decimal string: uint64 and wider. */\nexport type DecString = string;\n/** Unix milliseconds, gateway clock. */\nexport type TimeMs = number;\n/** EVM token address, or a Canton instrument. */\nexport type WireAsset = Hex | { admin: string; id: string };\n\nexport const DECLINE_REASONS = [\n 'NO_INVENTORY', 'RISK_LIMIT', 'PRICE_MOVED', 'PAUSED', 'OTHER',\n 'TICKET_SIGNER_UNKNOWN', 'TICKET_MISMATCH', 'TICKET_TTL_TOO_SHORT', 'TICKET_ISSUED_LATE', 'TICKET_BEYOND_DEADLINE',\n 'ESCROW_NOT_OPEN', 'ESCROW_MISMATCH', 'PROOF_WINDOW_TOO_SHORT', 'SKEW_MARGIN_TOO_SHORT', 'DRAW_MISMATCH',\n] as const;\nexport const ERROR_CODES = [\n 'BAD_REQUEST', 'UNAUTHENTICATED', 'UNSUPPORTED_VERSION', 'UNSUPPORTED_TYPE', 'BAD_SIGNATURE',\n 'STALE_MESSAGE', 'REPLAYED_MESSAGE', 'TICKET_REFUSED',\n 'UNKNOWN_REQUEST', 'UNKNOWN_TICKET', 'TICKET_CLOSED', 'NOT_ELIGIBLE', 'RATE_LIMITED', 'INTERNAL',\n 'ATTESTATIONS_NOT_READY', 'CANTON_NOT_READY', 'CANTON_REFUSED', 'CANTON_UNAVAILABLE', 'OPERATION_EXPIRED',\n] as const;\n/** HTTP status of each error code on the REST fallback. */\nexport const ERROR_HTTP_STATUS: Readonly<Record<ErrorCode, number>> = {\n BAD_REQUEST: 400, UNAUTHENTICATED: 401, UNSUPPORTED_VERSION: 400, UNSUPPORTED_TYPE: 400, BAD_SIGNATURE: 422,\n STALE_MESSAGE: 400, REPLAYED_MESSAGE: 409, TICKET_REFUSED: 409,\n UNKNOWN_REQUEST: 404, UNKNOWN_TICKET: 404, TICKET_CLOSED: 409, NOT_ELIGIBLE: 403, RATE_LIMITED: 429, INTERNAL: 500,\n ATTESTATIONS_NOT_READY: 404, CANTON_NOT_READY: 409, CANTON_REFUSED: 422, CANTON_UNAVAILABLE: 503, OPERATION_EXPIRED: 410,\n};\n/** `error.reason` with `TICKET_REFUSED`: the pre-ticket check that failed (S-21). */\nexport const TICKET_REFUSED_REASONS = [\n 'REPAY_TO_INVALID', 'REPAY_TO_BLOCKLISTED', 'DELIVERY_KEY_INVALID', 'PAYOUT_NOT_READY', 'RECIPIENT_NOT_READY',\n 'OPEN_TICKET_LIMIT', 'PROOF_WINDOW_TOO_SHORT', 'ATTESTOR_REVOCATION_PENDING', 'SERVICE_DEGRADED', 'OTHER',\n] as const;\nexport const EXPIRED_RESULTS = ['FILLED', 'NO_SHOW', 'NO_SHOW_UNCONFIRMED', 'EXEMPT'] as const;\nexport const EXEMPT_REASONS = ['DESTINATION_HALTED', 'GATEWAY_FAULT', 'REORGED_AFTER_INCLUSION', 'RECIPIENT_NOT_READY', 'OTHER'] as const;\n/** Verdict at receipt time, on the `quote.ack`. */\nexport const QUOTE_ACK_STATUSES = ['COUNTED', 'LATE', 'SHORT_TTL'] as const;\n/** Final status of a quote, `GET /v1/filler/quotes`. */\nexport const QUOTE_FINAL_STATUSES = [...QUOTE_ACK_STATUSES, 'REPLACED', 'BAD_SIG', 'OUTLIER', 'IN_BAND', 'OUT_OF_BAND', 'WON', 'LOST'] as const;\n/** `penalty.applied.step`: a violation recorded, a ban, a ban lifted by Cancore staff (penalties.md §4.2). */\nexport const PENALTY_STEPS = ['RECORDED', 'BANNED', 'UNBANNED'] as const;\nexport const DRAW_CLOSED_BY = ['OFFER_TIMEOUT', 'OFFER_DECLINE', 'TICKET_DECLINE', 'TICKET_EXPIRED', 'FILLED'] as const;\nexport const TICKET_LIST_STATUSES = ['OFFERED', 'ISSUED'] as const;\n/** The Canton operations of the filler's own party (§3.19): the backend prepares and submits, the node signs with its party key. */\nexport const CANTON_OPS = ['party.allocate', 'registry.accept', 'delivery.fill', 'intent.settle', 'holdings.transfer'] as const;\n/** `holdings.transfer` result: the receiver holds it, or a TransferInstruction waits for it to accept. */\nexport const CANTON_TRANSFER_OUTCOMES = ['COMPLETED', 'PENDING'] as const;\nexport const CANTON_LEG_KINDS = ['transaction', 'topology'] as const;\nexport const CANTON_REGISTRY_STATES = ['NONE', 'PROPOSED', 'ACTIVE', 'REMOVED'] as const;\n\nexport type DeclineReason = (typeof DECLINE_REASONS)[number];\nexport type ErrorCode = (typeof ERROR_CODES)[number];\nexport type TicketRefusedReason = (typeof TICKET_REFUSED_REASONS)[number];\nexport type ExpiredResult = (typeof EXPIRED_RESULTS)[number];\nexport type ExemptReason = (typeof EXEMPT_REASONS)[number];\nexport type QuoteAckStatus = (typeof QUOTE_ACK_STATUSES)[number];\nexport type QuoteFinalStatus = (typeof QUOTE_FINAL_STATUSES)[number];\nexport type PenaltyStep = (typeof PENALTY_STEPS)[number];\nexport type DrawClosedBy = (typeof DRAW_CLOSED_BY)[number];\nexport type CantonOp = (typeof CANTON_OPS)[number];\nexport type CantonLegKind = (typeof CANTON_LEG_KINDS)[number];\nexport type CantonRegistryState = (typeof CANTON_REGISTRY_STATES)[number];\n\n/** `ICancoreRouter.Order` on the wire: every numeric field a decimal string, as `canton-order.json`. */\nexport interface OrderJson {\n user: Hex; originChainId: DecString; inputToken: Hex; inputAmount: DecString; destination: Hex; outputAsset: Hex;\n minReceived: DecString; recipient: Hex; createdAt: DecString; fillDeadline: DecString; feeBps: DecString;\n fillerId: Hex;\n}\n\n/** Every S→F frame: signed by the gateway (`GatewayMessage`), addressed (`fillerId`) and timed (`sentAt`). */\nexport interface S2FBase {\n type: string;\n id: string;\n /** The addressee. Absent only on an `error` that refuses a login (`POST /v1/filler/auth`). */\n fillerId?: string;\n sentAt: TimeMs;\n sig: Hex;\n /** The F→S `id` this frame answers. */\n re?: string;\n}\n/**\n * What every filler → filler-gateway message and REST request body carries (S-19, T-13): `id` unique per\n * `fillerId` and direction, ≤ 64 characters; the sender's `fillerId`; `sentAt`; `msgSig` by the message key over\n * `FillerMessage{bodyHash: fillerMessageBodyHash(message)}`.\n */\nexport interface F2SEnvelope {\n id: string;\n fillerId: string;\n sentAt: TimeMs;\n msgSig: Hex;\n /** The S→F `id` this message answers. */\n re?: string;\n}\nexport interface F2SBase extends F2SEnvelope {\n type: string;\n}\n\n/**\n * The login challenge: the body of `GET /v1/filler/auth/challenge?fillerId=`, addressed to that\n * `fillerId`. REST only — never on the WebSocket.\n */\nexport interface AuthChallenge extends S2FBase { type: 'auth.challenge'; fillerId: string; nonce: Hex; expiresAt: DecString }\n/** The body of `POST /v1/filler/auth` (→ `AuthToken`). REST only — never on the WebSocket. */\nexport interface AuthResponse extends F2SBase {\n type: 'auth.response';\n fillerId: string;\n keyAddress: Hex;\n protocolVersion: '1';\n /** The `auth.challenge` nonce this answers (optional; senders should send it), so the login finds its challenge directly. */\n nonce?: Hex;\n sig: Hex;\n}\nexport interface AuthOk extends S2FBase { type: 'auth.ok'; fillerId: string; heartbeatIntervalMs: number }\n/** Heartbeat from the filler: signed with `msgSig`, like every F→S frame. */\nexport interface PingF2S extends F2SBase { type: 'ping' }\nexport interface PongF2S extends F2SBase { type: 'pong'; re: string }\n/** Heartbeat from the gateway: signed, addressed and timed, like every S→F frame (D-C). */\nexport interface PingS2F extends S2FBase { type: 'ping'; fillerId: string }\nexport interface PongS2F extends S2FBase { type: 'pong'; fillerId: string; re: string }\nexport type Ping = PingF2S | PingS2F;\nexport type Pong = PongF2S | PongS2F;\nexport interface ErrorMessage extends S2FBase {\n type: 'error';\n code: ErrorCode;\n message: string;\n reason?: TicketRefusedReason;\n /** With `RATE_LIMITED`: ms (≥ 1) until the refused rate class may be used again, or until the cooldown ends. */\n retryAfterMs?: number;\n}\n/**\n * An unsigned, unaddressed refusal, so a filler cannot verify it; a hint only. Every 429 (`RATE_LIMITED`,\n * on every route), and the refusals of the login routes decided before any signature check:\n * 400 `BAD_REQUEST`, 404 `UNKNOWN_REQUEST`, and on `POST /v1/filler/auth` 401 `UNAUTHENTICATED`\n * (no live challenge for the fillerId: ask for a new one).\n */\nexport interface UnsignedErrorBody { type: 'error'; code: ErrorCode; message: string; retryAfterMs?: number }\n/** The filler's reply to a gateway frame it cannot handle; informational. */\nexport interface ErrorF2S extends F2SBase { type: 'error'; re: string; code: ErrorCode; message: string }\nexport interface EpochWeights extends S2FBase { type: 'epoch.weights'; epochId: DecString; startsAt: DecString; endsAt: DecString; weightsRoot: Hex }\n\nexport interface QuoteRequest extends S2FBase {\n type: 'quote.request';\n requestId: string;\n route: { src: string; dst: string };\n inputToken: WireAsset;\n /** The total T the maker deposits, input base units. */\n inputAmount: DecString;\n outputAsset: WireAsset;\n feeBps: number;\n fillDeadlineHint: DecString;\n windowCloseAt: TimeMs;\n quoteTtlMs: number;\n imbalanceHint?: { dstAsset: WireAsset; netFlow24hUsd: string };\n}\n/** `sig` = `FillerQuote{requestIdHash(requestId), fillerId, amountOut, validUntil, nonce}` by the message key. */\nexport interface QuoteMessage extends F2SBase { type: 'quote'; requestId: string; amountOut: DecString; validUntil: DecString; nonce: DecString; sig: Hex }\nexport interface QuoteAck extends S2FBase { type: 'quote.ack'; requestId: string; quoteHash: Hex; receivedAt: TimeMs; status: QuoteAckStatus }\nexport interface QuoteReconfirm extends S2FBase {\n type: 'quote.reconfirm'; orderHash: Hex; requestId: string; order: OrderJson; amountOut: DecString; ticketTtl: number; replyBy: TimeMs;\n}\nexport interface QuoteReconfirmReply extends F2SBase {\n type: 'quote.reconfirm.reply'; orderHash: Hex; accept: boolean; validUntil?: DecString; nonce?: DecString; sig?: Hex;\n}\n\nexport interface TicketOffer extends S2FBase {\n type: 'ticket.offer'; orderHash: Hex; attempt: number; order: OrderJson; amountOut: DecString; validFrom: DecString; validUntil: DecString; acceptBy: TimeMs;\n}\n/** `sig` = `TicketIntent{orderHash, attempt, validFrom, validUntil, fillerId, deliveryKey, repayTo}` by the message key. */\nexport interface TicketIntentMessage extends F2SBase {\n type: 'ticket.intent'; orderHash: Hex; attempt: number; validFrom: DecString; validUntil: DecString;\n /** The address that will send `fill`; the zero address for a Canton destination. */\n deliveryKey: Hex;\n /** Where `settle` pays, encoded for the source chain. */\n repayTo: Hex;\n sig: Hex;\n}\nexport interface TicketDecline extends F2SBase { type: 'ticket.decline'; orderHash: Hex; attempt: number; reason: DeclineReason; detail?: string }\nexport interface TicketIntentAck extends S2FBase { type: 'ticket.intent.ack'; orderHash: Hex; attempt: number; intentHash: Hex; receivedAt: TimeMs }\n/** `FillTicket` on the wire; `fillerId` is the on-chain form, `fillerIdHash(fillerId)`. */\nexport interface TicketJson { orderHash: Hex; fillerId: Hex; deliveryKey: Hex; repayTo: Hex; attempt: number; validFrom: DecString; validUntil: DecString }\nexport interface TicketIssuedEvm extends S2FBase { type: 'ticket.issued'; form: 'evm'; orderHash: Hex; attempt: number; ticket: TicketJson; ticketSig: Hex }\nexport interface TicketIssuedCanton extends S2FBase {\n type: 'ticket.issued'; form: 'canton'; orderHash: Hex; attempt: number; deliveryOrderCid: string; validUntil: DecString; repayTo: Hex;\n}\nexport type TicketIssued = TicketIssuedEvm | TicketIssuedCanton;\n/** EVM-form receipt (`form` absent or `\"evm\"`): `sig` = `TicketReceipt{ticketHash, ticketSigHash}` by the message key. */\nexport interface TicketReceiptEvm extends F2SBase {\n type: 'ticket.receipt'; form?: 'evm'; orderHash: Hex; attempt: number; ticketHash: Hex; ticketSigHash: Hex; sig: Hex;\n}\n/** Canton-form receipt: `sig` = `CantonTicketReceipt` (`cantonTicketReceipt(frame)`) by the message key; fields as in `ticket.issued`. */\nexport interface TicketReceiptCanton extends F2SBase {\n type: 'ticket.receipt'; form: 'canton'; orderHash: Hex; attempt: number; deliveryOrderCid: string; validUntil: DecString; sig: Hex;\n}\nexport type TicketReceiptMessage = TicketReceiptEvm | TicketReceiptCanton;\nexport interface FillReported extends F2SBase { type: 'fill.reported'; orderHash: Hex; attempt: number; txRef: string }\nexport interface TicketExpired extends S2FBase { type: 'ticket.expired'; orderHash: Hex; attempt: number; result: ExpiredResult; exemptReason?: ExemptReason }\nexport interface OrderSettled extends S2FBase {\n type: 'order.settled'; orderHash: Hex; payout: DecString; fee: DecString; penaltyWithheld: DecString; txRef: string;\n}\nexport interface PenaltyApplied extends S2FBase { type: 'penalty.applied'; violationId: string; code: string; step: PenaltyStep; details: Record<string, unknown> }\n\n// --- Canton operations of the filler's own party (§3.19). Hashes and party-key material are lowercase hex; the\n// node signs the bytes of each leg's hash with its Ed25519 party key and never talks to a Ledger API.\n\n/** A Canton asset: the instrument admin party and its id. */\nexport interface CantonAsset { admin: string; id: string }\n/** What each op takes: the backend picks every contract itself. */\nexport interface CantonOpParams {\n 'party.allocate': { publicKey: Hex };\n 'registry.accept': Record<string, never>;\n 'delivery.fill': { orderHash: Hex; attempt: number };\n 'intent.settle': { orderHash: Hex };\n /** To a party other than the filler's own; never what the party's open delivery orders need. */\n 'holdings.transfer': { asset: CantonAsset; amount: string; toParty: string };\n}\n/** What the prepared legs do, by op: the node checks it before it signs. */\nexport interface CantonOpSummary {\n 'party.allocate': {\n partyId: string; publicKey: Hex;\n /** On the Cancore participant alone, Confirmation, threshold 1: the node checks the decoded topology against it. */\n hosting: { participantUid: string; permission: 'CONFIRMATION'; threshold: 1 };\n };\n 'registry.accept': { fillerId: string; party: string; operator: string; proposalCid: string };\n 'delivery.fill': {\n orderHash: Hex; attempt: number; deliveryOrderCid: string; recipient: string; asset: CantonAsset; amount: string; repayTo: Hex; validUntil: DecString;\n /** The party's holdings the transfer spends; what they hold beyond `amount` comes back as change. */\n inputHoldingCids: string[];\n /** The transfer's executeBefore: the order's fillDeadline. */\n executeBefore: DecString;\n /** The registry factory the order pins. */\n transferFactoryCid: string;\n };\n 'intent.settle': {\n orderHash: Hex; intentCid: string; asset: CantonAsset;\n /** What the payee is paid: `giveAmount` less `fee.amount`. */\n amount: string;\n executeBefore: DecString;\n /** The filler's own party. */\n payee: string;\n /** The intent's committed give, fee-inclusive. */\n giveAmount: string;\n /** The fee leg to the operator; amount 0 when there is none. */\n fee: { receiver: string; amount: string };\n };\n 'holdings.transfer': { asset: CantonAsset; amount: string; receiver: string; inputHoldingCids: string[]; executeBefore: DecString };\n}\n/** What the committed operation created, by op. */\nexport interface CantonOpResult {\n 'party.allocate': { partyId: string };\n 'registry.accept': { entryCid: string };\n 'delivery.fill': { receiptCid: string };\n 'intent.settle': Record<string, never>;\n 'holdings.transfer': { outcome: (typeof CANTON_TRANSFER_OUTCOMES)[number]; transferInstructionCid?: string };\n}\n/**\n * A prepared transaction to sign. The node MUST, before signing (§3.19): recompute `hash` from\n * `preparedTransaction` with the hashing of `hashingSchemeVersion`, decode the transaction and check it against\n * the `summary` of the op (template and choice, parties, instrument, amount); on any difference, not sign.\n */\nexport interface CantonLegTransaction {\n legId: string;\n kind: 'transaction';\n /** 32 bytes. */\n hash: Hex;\n /** Base64 protobuf. Never logged. */\n preparedTransaction: string;\n /** e.g. `HASHING_SCHEME_VERSION_V2`. */\n hashingSchemeVersion: string;\n}\n/**\n * The party's onboarding topology, in `party.allocate` only. The node MUST, before signing (§3.19): recompute\n * the multihash over `topologyTransactions` and check they create `summary.partyId` with `summary.publicKey` as\n * its only signing key, hosted on the Cancore participant; on any difference, not sign.\n */\nexport interface CantonLegTopology {\n legId: string;\n kind: 'topology';\n /** `0x1220` ‖ sha256: 34 bytes. */\n hash: Hex;\n /** Base64 protobuf, in order. */\n topologyTransactions: string[];\n}\n/** One thing to sign. The kind is closed: a leg of any other kind is refused, never signed. */\nexport type CantonLeg = CantonLegTransaction | CantonLegTopology;\nexport interface CantonSignature { legId: string; signature: Hex }\nexport type CantonPrepare = { [K in CantonOp]: F2SBase & { type: 'canton.prepare'; op: K; params: CantonOpParams[K] } }[CantonOp];\nexport type CantonPrepared = {\n [K in CantonOp]: S2FBase & {\n type: 'canton.prepared'; fillerId: string; re: string; operationId: string; op: K;\n /** Topology legs with `party.allocate` only. */\n legs: K extends 'party.allocate' ? CantonLegTopology[] : CantonLegTransaction[];\n summary: CantonOpSummary[K]; expiresAt: TimeMs;\n };\n}[CantonOp];\n/** Idempotent per `operationId`: a repeat gets the same `canton.submitted`. */\nexport interface CantonSubmit extends F2SBase { type: 'canton.submit'; operationId: string; signatures: CantonSignature[] }\nexport type CantonSubmitted = {\n [K in CantonOp]: S2FBase & { type: 'canton.submitted'; fillerId: string; re: string; operationId: string; op: K; updateId?: string; result: CantonOpResult[K] };\n}[CantonOp];\n\nexport type S2FMessage =\n | AuthChallenge | AuthOk | PingS2F | PongS2F | ErrorMessage | EpochWeights | QuoteRequest | QuoteAck | QuoteReconfirm\n | TicketOffer | TicketIntentAck | TicketIssued | TicketExpired | OrderSettled | PenaltyApplied | SettleAttestations\n | CantonPrepared | CantonSubmitted;\nexport type F2SMessage =\n | AuthResponse | PingF2S | PongF2S | ErrorF2S | QuoteMessage | QuoteReconfirmReply | TicketIntentMessage | TicketDecline | TicketReceiptMessage | FillReported\n | CantonPrepare | CantonSubmit;\n\n// --- REST (protocol §3.6); an error body is the `error` message itself.\n\n/** `POST /v1/filler/auth`: the bearer token of REST and of the WebSocket upgrade, bound to (fillerId, message key). */\nexport interface AuthToken { token: string; expiresAt: TimeMs }\n/** `GET /v1/filler/auth/challenge` query. */\nexport interface ChallengeQuery { fillerId: string }\nexport interface Page<T> { items: T[]; nextCursor: string | null }\nexport type TicketList = Page<TicketOffer | TicketIssued>;\nexport interface QuoteRecord { quote: QuoteMessage; ack: QuoteAck; status: QuoteFinalStatus }\nexport type QuoteList = Page<QuoteRecord>;\n/** `GET /v1/filler/attestations/{orderHash}`: the `settle.attestations` frame itself, freshly signed. */\nexport type AttestationsResponse = SettleAttestations;\nexport interface StakeBindingRequest extends F2SEnvelope { partnerId: string; stakingAddress: Hex; chainId: DecString; nonce: DecString; sig: Hex }\nexport interface FillerStats { won: number; delivered: number; noShow: number; reliability: number; capacityUsd: string; inFlightUsd: string }\nexport interface PenaltyRecord { violationId: string; code: string; step: PenaltyStep; orderHash?: Hex; attempt?: number; at: TimeMs; details: Record<string, unknown> }\nexport type PenaltyList = Page<PenaltyRecord>;\n/** `GET /v1/filler/canton/party`: the party registered for the fillerId and its `FillerRegistryEntry`. */\nexport interface CantonParty {\n party: string | null;\n publicKey: Hex | null;\n registry: { state: CantonRegistryState; proposalCid: string | null; entryCid: string | null };\n}\nexport interface CantonHolding { contractId: string; asset: CantonAsset; amount: string; locked: boolean }\n/** `GET /v1/filler/canton/holdings`. */\nexport type CantonHoldingList = Page<CantonHolding>;\nexport interface CantonDeliveryOrder {\n deliveryOrderCid: string; orderHash: Hex; attempt: number; asset: CantonAsset; amount: string; recipient: string; repayTo: Hex; validUntil: DecString;\n}\n/** `GET /v1/filler/canton/delivery-orders`. */\nexport type CantonDeliveryOrderList = Page<CantonDeliveryOrder>;\n/** One leg side of an AllocationV2 view; `otherside` is the owner of the other account. */\nexport interface CantonAllocationLeg { legId: string; side: 'SENDER' | 'RECEIVER'; otherside: string | null; amount: string; instrumentId: string }\n/** A Token Standard V2 allocation by its view, as the operator (an executor) reads it. */\nexport interface CantonAllocation {\n contractId: string;\n /** `<package id>:<module>:<entity>`. */\n templateId: string;\n admin: string;\n /** The owner of the authorizer account. */\n authorizer: string | null;\n committed: boolean;\n settlementId: string;\n executors: string[];\n /** Unix seconds; null when the allocation has none. */\n settlementDeadline: DecString | null;\n legs: CantonAllocationLeg[];\n}\n/**\n * `GET /v1/filler/canton/intents/{orderHash}`: the live Canton-source `SwapIntent` naming the party as its\n * filler, as that party sees it, and its committed allocation (null when not live). The node checks it\n * before `ticket.receipt` (fillers.md V-C1…V-C6) and recomputes `orderHash` from these fields itself.\n */\nexport interface CantonIntent {\n intentCid: string;\n templateId: string;\n orderHash: Hex;\n owner: string;\n operator: string;\n filler: string;\n fillerId: string;\n requestId: string;\n asset: CantonAsset;\n /** The committed give, fee-inclusive, Daml Decimal. */\n amount: string;\n /** `Destination.Evm`. */\n destination: { chainId: DecString; token: Hex; recipient: Hex };\n minReceived: { units: DecString; decimals: number };\n feeRate: string;\n fillDeadline: DecString;\n refundAfter: DecString;\n /** The owner's signing time: the order's `createdAt`. */\n orderCreatedAt: DecString;\n allocationCid: string;\n allocation: CantonAllocation | null;\n}\n\n// --- Public records (auction-and-draw §3.3–3.4) and the gateway identity.\n\nexport interface DrawAttempt {\n attempt: number;\n tBase: DecString;\n closedBy: DrawClosedBy | null;\n drandRound: DecString;\n drandRandomness: Hex;\n drandSignature: Hex;\n candidates: { fillerId: string; weight: DecString }[];\n r: DecString;\n winnerFillerId: string;\n fallbackReason: 'DRAW_FALLBACK' | null;\n}\nexport interface DrawRecord {\n orderHash: Hex; source: string; openRef: string; t0: DecString; epochId: DecString; deltaDrand: number; attempts: DrawAttempt[]; sig: Hex;\n}\nexport interface EpochLeaf { fillerId: string; base: DecString; tier: number; reliabilityBps: number }\nexport interface EpochRecord {\n epochId: DecString;\n startsAt: DecString;\n endsAt: DecString;\n weightsRoot: Hex;\n leaves: EpochLeaf[];\n stakeSteps: { tier: number; minStake: DecString; step: DecString }[];\n rMinBps: number;\n snapshotBlocks: Record<string, DecString>;\n sig: Hex;\n}\n/** `GET /v1/gateway`: the mirror of `FILLER_GATEWAYS` for one environment. */\nexport interface GatewayInfo { env: string; gateway: Hex; ticketSigners: Hex[]; protocolVersion: '1'; maxMessageAgeMs: number }\n\n/**\n * `FillerKeyRegistration` with its signature by the key being registered (§3.16): handed to Cancore at\n * onboarding and, signed by the NEW key, at a manual key change by staff. Not a frame — no message changes a key.\n */\nexport interface SignedFillerKeyRegistration { fillerId: string; messageKey: Hex; issuedAt: DecString; sig: Hex }\n","{\n \"asyncapi\": \"3.0.0\",\n \"info\": {\n \"title\": \"Cancore filler protocol\",\n \"version\": \"1.0.0-rc.2\",\n \"description\": \"The WebSocket protocol between a filler and the Cancore filler gateway, v1 (release candidate). Operations are the gateway's: it sends S→F frames and receives F→S frames. Every frame carries id, fillerId and sentAt and is signed in the CancoreFillerProtocol v1 domain: S→F with sig = the gateway key over GatewayMessage{bodyHash}, F→S with msgSig = the filler's message key over FillerMessage{bodyHash}, bodyHash = keccak256(JCS(frame without that field)). Payload schemas: messages.schema.json. Generated by scripts/gen-protocol-docs.mjs.\",\n \"license\": {\n \"name\": \"Apache-2.0\"\n }\n },\n \"defaultContentType\": \"application/json\",\n \"servers\": {\n \"devnet\": {\n \"host\": \"{gatewayHost}\",\n \"protocol\": \"wss\",\n \"description\": \"Published per environment (O-6)\",\n \"variables\": {\n \"gatewayHost\": {\n \"default\": \"filler.dev.cancore.io\"\n }\n }\n }\n },\n \"channels\": {\n \"filler\": {\n \"address\": \"/v1\",\n \"description\": \"One JSON object per text frame. Connect only after login: the filler logs in over REST (GET /v1/filler/auth/challenge?fillerId=, POST /v1/filler/auth → {token, expiresAt}, rest.schema.json) and offers two subprotocols on the upgrade, cancore-filler.v1 and bearer.<token>; Authorization and the query string are not read. filler-gateway checks them before the upgrade and refuses with a plain HTTP response (x-upgrade-refusals: no WebSocket, nothing signed, Retry-After in seconds on 429). On success it answers Sec-WebSocket-Protocol: cancore-filler.v1 (the token is never echoed), the session is authenticated from the first byte, and the first frame is a signed auth.ok. auth.challenge and auth.response never travel on the socket (auth.response here is UNSUPPORTED_TYPE). Over a per-fillerId rate limit a frame is dropped unverified and the filler gets error RATE_LIMITED with retryAfterMs at most once per window and rate class; sustained excess closes every session of the fillerId with 4029. Close codes: x-close-codes.\",\n \"bindings\": {\n \"ws\": {\n \"method\": \"GET\",\n \"headers\": {\n \"type\": \"object\",\n \"required\": [\n \"Sec-WebSocket-Protocol\"\n ],\n \"properties\": {\n \"Sec-WebSocket-Protocol\": {\n \"type\": \"string\",\n \"pattern\": \"^cancore-filler\\\\.v1, ?bearer\\\\.[A-Za-z0-9_-]+$|^bearer\\\\.[A-Za-z0-9_-]+, ?cancore-filler\\\\.v1$\",\n \"description\": \"cancore-filler.v1 and exactly one bearer.<token>, the token of POST /v1/filler/auth (base64url). The server selects cancore-filler.v1\"\n }\n }\n },\n \"bindingVersion\": \"0.1.0\"\n }\n },\n \"x-upgrade-refusals\": {\n \"400\": \"cancore-filler.v1 not offered, or not exactly one bearer. entry\",\n \"401\": \"token missing, unknown or expired, or the message key changed\",\n \"403\": \"filler unknown or not ACTIVE\",\n \"429\": \"login rate class over its limit, or the fillerId is cooling down; Retry-After (seconds, rounded up)\",\n \"503\": \"the replica is at its connection limit, or the fillerId already holds its maximum of live sessions (across replicas)\"\n },\n \"x-close-codes\": {\n \"1001\": \"filler-gateway shutting down\",\n \"4000\": \"heartbeats missed\",\n \"4001\": \"superseded by a newer session of this fillerId\",\n \"4002\": \"the message key of the session was changed by staff\",\n \"4003\": \"the filler is no longer ACTIVE (suspended)\",\n \"4008\": \"this session's inbound queue overflowed (count or bytes); only this session\",\n \"4029\": \"sustained over-limit: every session of the fillerId closed, cooling down; the error RATE_LIMITED sent just before carries retryAfterMs = the remaining cooldown\"\n },\n \"messages\": {\n \"auth.ok\": {\n \"$ref\": \"#/components/messages/auth.ok\"\n },\n \"pingS2F\": {\n \"$ref\": \"#/components/messages/pingS2F\"\n },\n \"pingF2S\": {\n \"$ref\": \"#/components/messages/pingF2S\"\n },\n \"pongS2F\": {\n \"$ref\": \"#/components/messages/pongS2F\"\n },\n \"pongF2S\": {\n \"$ref\": \"#/components/messages/pongF2S\"\n },\n \"errorS2F\": {\n \"$ref\": \"#/components/messages/errorS2F\"\n },\n \"errorF2S\": {\n \"$ref\": \"#/components/messages/errorF2S\"\n },\n \"epoch.weights\": {\n \"$ref\": \"#/components/messages/epoch.weights\"\n },\n \"quote.request\": {\n \"$ref\": \"#/components/messages/quote.request\"\n },\n \"quote\": {\n \"$ref\": \"#/components/messages/quote\"\n },\n \"quote.ack\": {\n \"$ref\": \"#/components/messages/quote.ack\"\n },\n \"quote.reconfirm\": {\n \"$ref\": \"#/components/messages/quote.reconfirm\"\n },\n \"quote.reconfirm.reply\": {\n \"$ref\": \"#/components/messages/quote.reconfirm.reply\"\n },\n \"ticket.offer\": {\n \"$ref\": \"#/components/messages/ticket.offer\"\n },\n \"ticket.intent\": {\n \"$ref\": \"#/components/messages/ticket.intent\"\n },\n \"ticket.decline\": {\n \"$ref\": \"#/components/messages/ticket.decline\"\n },\n \"ticket.intent.ack\": {\n \"$ref\": \"#/components/messages/ticket.intent.ack\"\n },\n \"ticket.issued\": {\n \"$ref\": \"#/components/messages/ticket.issued\"\n },\n \"ticket.receipt\": {\n \"$ref\": \"#/components/messages/ticket.receipt\"\n },\n \"fill.reported\": {\n \"$ref\": \"#/components/messages/fill.reported\"\n },\n \"ticket.expired\": {\n \"$ref\": \"#/components/messages/ticket.expired\"\n },\n \"order.settled\": {\n \"$ref\": \"#/components/messages/order.settled\"\n },\n \"penalty.applied\": {\n \"$ref\": \"#/components/messages/penalty.applied\"\n },\n \"settle.attestations\": {\n \"$ref\": \"#/components/messages/settle.attestations\"\n },\n \"canton.prepare\": {\n \"$ref\": \"#/components/messages/canton.prepare\"\n },\n \"canton.prepared\": {\n \"$ref\": \"#/components/messages/canton.prepared\"\n },\n \"canton.submit\": {\n \"$ref\": \"#/components/messages/canton.submit\"\n },\n \"canton.submitted\": {\n \"$ref\": \"#/components/messages/canton.submitted\"\n }\n }\n }\n },\n \"operations\": {\n \"sendAuthOk\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/auth.ok\"\n }\n ]\n },\n \"sendPing\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/pingS2F\"\n }\n ]\n },\n \"receivePing\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/pingF2S\"\n }\n ]\n },\n \"sendPong\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/pongS2F\"\n }\n ]\n },\n \"receivePong\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/pongF2S\"\n }\n ]\n },\n \"sendError\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/errorS2F\"\n }\n ]\n },\n \"receiveError\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/errorF2S\"\n }\n ]\n },\n \"sendEpochWeights\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/epoch.weights\"\n }\n ]\n },\n \"sendQuoteRequest\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/quote.request\"\n }\n ]\n },\n \"receiveQuote\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/quote\"\n }\n ]\n },\n \"sendQuoteAck\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/quote.ack\"\n }\n ]\n },\n \"sendQuoteReconfirm\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/quote.reconfirm\"\n }\n ]\n },\n \"receiveQuoteReconfirmReply\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/quote.reconfirm.reply\"\n }\n ]\n },\n \"sendTicketOffer\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/ticket.offer\"\n }\n ]\n },\n \"receiveTicketIntent\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/ticket.intent\"\n }\n ]\n },\n \"receiveTicketDecline\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/ticket.decline\"\n }\n ]\n },\n \"sendTicketIntentAck\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/ticket.intent.ack\"\n }\n ]\n },\n \"sendTicketIssued\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/ticket.issued\"\n }\n ]\n },\n \"receiveTicketReceipt\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/ticket.receipt\"\n }\n ]\n },\n \"receiveFillReported\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/fill.reported\"\n }\n ]\n },\n \"sendTicketExpired\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/ticket.expired\"\n }\n ]\n },\n \"sendOrderSettled\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/order.settled\"\n }\n ]\n },\n \"sendPenaltyApplied\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/penalty.applied\"\n }\n ]\n },\n \"sendSettleAttestations\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/settle.attestations\"\n }\n ]\n },\n \"receiveCantonPrepare\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/canton.prepare\"\n }\n ]\n },\n \"sendCantonPrepared\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/canton.prepared\"\n }\n ]\n },\n \"receiveCantonSubmit\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/canton.submit\"\n }\n ]\n },\n \"sendCantonSubmitted\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/canton.submitted\"\n }\n ]\n }\n },\n \"components\": {\n \"messages\": {\n \"auth.ok\": {\n \"name\": \"auth.ok\",\n \"title\": \"auth.ok (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/auth.ok\"\n }\n },\n \"examples\": [\n {\n \"name\": \"auth-ok-1\",\n \"payload\": {\n \"type\": \"auth.ok\",\n \"id\": \"g-2\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789999980200,\n \"re\": \"a-1\",\n \"heartbeatIntervalMs\": 15000\n }\n }\n ]\n },\n \"pingS2F\": {\n \"name\": \"ping\",\n \"title\": \"ping (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/pingS2F\"\n }\n },\n \"examples\": [\n {\n \"name\": \"pingS2F-1\",\n \"payload\": {\n \"type\": \"ping\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789999995000,\n \"id\": \"gp-1\"\n }\n }\n ]\n },\n \"pingF2S\": {\n \"name\": \"ping\",\n \"title\": \"ping (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/pingF2S\"\n }\n },\n \"examples\": [\n {\n \"name\": \"pingF2S-1\",\n \"payload\": {\n \"type\": \"ping\",\n \"id\": \"p-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1789999994000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n }\n ]\n },\n \"pongS2F\": {\n \"name\": \"pong\",\n \"title\": \"pong (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/pongS2F\"\n }\n },\n \"examples\": [\n {\n \"name\": \"pongS2F-1\",\n \"payload\": {\n \"type\": \"pong\",\n \"id\": \"g-3\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789999994100,\n \"re\": \"p-1\"\n }\n }\n ]\n },\n \"pongF2S\": {\n \"name\": \"pong\",\n \"title\": \"pong (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/pongF2S\"\n }\n },\n \"examples\": [\n {\n \"name\": \"pongF2S-1\",\n \"payload\": {\n \"type\": \"pong\",\n \"id\": \"po-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1789999995100,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"re\": \"gp-1\"\n }\n }\n ]\n },\n \"errorS2F\": {\n \"name\": \"error\",\n \"title\": \"error (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/errorS2F\"\n }\n },\n \"examples\": [\n {\n \"name\": \"errorS2F-1\",\n \"payload\": {\n \"type\": \"error\",\n \"id\": \"g-4\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000023500,\n \"re\": \"i-2\",\n \"code\": \"TICKET_CLOSED\",\n \"message\": \"ticket.intent after acceptBy\"\n }\n },\n {\n \"name\": \"errorS2F-2\",\n \"payload\": {\n \"type\": \"error\",\n \"id\": \"g-5\",\n \"sentAt\": 1789999980150,\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"re\": \"a-2\",\n \"code\": \"UNAUTHENTICATED\",\n \"message\": \"no live challenge of this fillerId with this nonce\"\n }\n },\n {\n \"name\": \"errorS2F-3\",\n \"payload\": {\n \"type\": \"error\",\n \"id\": \"g-6\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000021500,\n \"re\": \"i-3\",\n \"code\": \"TICKET_REFUSED\",\n \"reason\": \"REPAY_TO_BLOCKLISTED\",\n \"message\": \"repayTo is blocklisted by the input token\"\n }\n },\n {\n \"name\": \"errorS2F-4\",\n \"payload\": {\n \"type\": \"error\",\n \"id\": \"g-18\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789999991500,\n \"re\": \"q-2\",\n \"code\": \"RATE_LIMITED\",\n \"message\": \"quote rate class over its limit\",\n \"retryAfterMs\": 850\n }\n }\n ]\n },\n \"errorF2S\": {\n \"name\": \"error\",\n \"title\": \"error (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/errorF2S\"\n }\n },\n \"examples\": [\n {\n \"name\": \"errorF2S-1\",\n \"payload\": {\n \"type\": \"error\",\n \"id\": \"e-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000030000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"re\": \"g-77\",\n \"code\": \"UNKNOWN_TICKET\",\n \"message\": \"no ticket for this orderHash\"\n }\n }\n ]\n },\n \"epoch.weights\": {\n \"name\": \"epoch.weights\",\n \"title\": \"epoch.weights (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/epoch.weights\"\n }\n },\n \"examples\": [\n {\n \"name\": \"epoch-weights-1\",\n \"payload\": {\n \"type\": \"epoch.weights\",\n \"id\": \"g-7\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789999980300,\n \"epochId\": \"20717\",\n \"startsAt\": \"1789948800\",\n \"endsAt\": \"1790035200\",\n \"weightsRoot\": \"0xa1c24765b55b34e0c206f808d2fac2e448d9db6f154d89f898921a80bad76e92\"\n }\n }\n ]\n },\n \"quote.request\": {\n \"name\": \"quote.request\",\n \"title\": \"quote.request (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/quote.request\"\n }\n },\n \"examples\": [\n {\n \"name\": \"quote-request-1\",\n \"payload\": {\n \"type\": \"quote.request\",\n \"id\": \"g-8\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789999990000,\n \"requestId\": \"req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31\",\n \"route\": {\n \"src\": \"eip155:11155111\",\n \"dst\": \"eip155:421614\"\n },\n \"inputToken\": \"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238\",\n \"inputAmount\": \"1003000000\",\n \"outputAsset\": \"0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d\",\n \"feeBps\": 30,\n \"fillDeadlineHint\": \"1790000600\",\n \"windowCloseAt\": 1789999992000,\n \"quoteTtlMs\": 60000,\n \"imbalanceHint\": {\n \"dstAsset\": \"0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d\",\n \"netFlow24hUsd\": \"-12500.50\"\n }\n }\n }\n ]\n },\n \"quote\": {\n \"name\": \"quote\",\n \"title\": \"quote (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/quote\"\n }\n },\n \"examples\": [\n {\n \"name\": \"quote-1\",\n \"payload\": {\n \"type\": \"quote\",\n \"id\": \"q-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1789999991000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"requestId\": \"req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31\",\n \"amountOut\": \"999000000\",\n \"validUntil\": \"1790000060\",\n \"nonce\": \"1\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n }\n ]\n },\n \"quote.ack\": {\n \"name\": \"quote.ack\",\n \"title\": \"quote.ack (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/quote.ack\"\n }\n },\n \"examples\": [\n {\n \"name\": \"quote-ack-1\",\n \"payload\": {\n \"type\": \"quote.ack\",\n \"id\": \"g-9\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789999991001,\n \"re\": \"q-1\",\n \"requestId\": \"req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31\",\n \"quoteHash\": \"0xe3b63a6ae2730532fb841002059d6e8c92124d95e98c09857d7e0f5ba3512e3b\",\n \"receivedAt\": 1789999991000,\n \"status\": \"COUNTED\"\n }\n }\n ]\n },\n \"quote.reconfirm\": {\n \"name\": \"quote.reconfirm\",\n \"title\": \"quote.reconfirm (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/quote.reconfirm\"\n }\n },\n \"examples\": [\n {\n \"name\": \"quote-reconfirm-1\",\n \"payload\": {\n \"type\": \"quote.reconfirm\",\n \"id\": \"g-10\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000013000,\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"requestId\": \"req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31\",\n \"order\": {\n \"user\": \"0xa11ce00000000000000000000000000000000001\",\n \"originChainId\": \"11155111\",\n \"inputToken\": \"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238\",\n \"inputAmount\": \"1003000000\",\n \"destination\": \"0x0000000000000000000000000000000000000000000000000000000000066eee\",\n \"outputAsset\": \"0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d\",\n \"minReceived\": \"999000000\",\n \"recipient\": \"0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e\",\n \"createdAt\": \"1790000000\",\n \"fillDeadline\": \"1790000600\",\n \"feeBps\": \"30\",\n \"fillerId\": \"0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5\"\n },\n \"amountOut\": \"999000000\",\n \"ticketTtl\": 360,\n \"replyBy\": 1790000016000\n }\n }\n ]\n },\n \"quote.reconfirm.reply\": {\n \"name\": \"quote.reconfirm.reply\",\n \"title\": \"quote.reconfirm.reply (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/quote.reconfirm.reply\"\n }\n },\n \"examples\": [\n {\n \"name\": \"quote-reconfirm-reply-1\",\n \"payload\": {\n \"type\": \"quote.reconfirm.reply\",\n \"id\": \"r-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000014000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"accept\": true,\n \"validUntil\": \"1790000400\",\n \"nonce\": \"2\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n },\n {\n \"name\": \"quote-reconfirm-reply-2\",\n \"payload\": {\n \"type\": \"quote.reconfirm.reply\",\n \"id\": \"r-2\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000014000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"accept\": false\n }\n }\n ]\n },\n \"ticket.offer\": {\n \"name\": \"ticket.offer\",\n \"title\": \"ticket.offer (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/ticket.offer\"\n }\n },\n \"examples\": [\n {\n \"name\": \"ticket-offer-1\",\n \"payload\": {\n \"type\": \"ticket.offer\",\n \"id\": \"g-20\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000020000,\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"order\": {\n \"user\": \"0xa11ce00000000000000000000000000000000001\",\n \"originChainId\": \"11155111\",\n \"inputToken\": \"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238\",\n \"inputAmount\": \"1003000000\",\n \"destination\": \"0x0000000000000000000000000000000000000000000000000000000000066eee\",\n \"outputAsset\": \"0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d\",\n \"minReceived\": \"999000000\",\n \"recipient\": \"0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e\",\n \"createdAt\": \"1790000000\",\n \"fillDeadline\": \"1790000600\",\n \"feeBps\": \"30\",\n \"fillerId\": \"0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5\"\n },\n \"amountOut\": \"999000000\",\n \"validFrom\": \"1790000040\",\n \"validUntil\": \"1790000400\",\n \"acceptBy\": 1790000023000,\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n }\n ]\n },\n \"ticket.intent\": {\n \"name\": \"ticket.intent\",\n \"title\": \"ticket.intent (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/ticket.intent\"\n }\n },\n \"examples\": [\n {\n \"name\": \"ticket-intent-1\",\n \"payload\": {\n \"type\": \"ticket.intent\",\n \"id\": \"i-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000021000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"validFrom\": \"1790000040\",\n \"validUntil\": \"1790000400\",\n \"deliveryKey\": \"0x742d35cc6634c0532925a3b844bc454e4438f44e\",\n \"repayTo\": \"0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n },\n {\n \"name\": \"ticket-intent-2\",\n \"payload\": {\n \"type\": \"ticket.intent\",\n \"id\": \"i-4\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000021000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 2,\n \"validFrom\": \"1790000040\",\n \"validUntil\": \"1790000400\",\n \"deliveryKey\": \"0x0000000000000000000000000000000000000000\",\n \"repayTo\": \"0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n }\n ]\n },\n \"ticket.decline\": {\n \"name\": \"ticket.decline\",\n \"title\": \"ticket.decline (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/ticket.decline\"\n }\n },\n \"examples\": [\n {\n \"name\": \"ticket-decline-1\",\n \"payload\": {\n \"type\": \"ticket.decline\",\n \"id\": \"d-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000027001,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"reason\": \"TICKET_ISSUED_LATE\",\n \"detail\": \"ticket.issued 3001 ms after acceptBy\"\n }\n }\n ]\n },\n \"ticket.intent.ack\": {\n \"name\": \"ticket.intent.ack\",\n \"title\": \"ticket.intent.ack (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/ticket.intent.ack\"\n }\n },\n \"examples\": [\n {\n \"name\": \"ticket-intent-ack-1\",\n \"payload\": {\n \"type\": \"ticket.intent.ack\",\n \"id\": \"g-11\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000021001,\n \"re\": \"i-1\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"intentHash\": \"0x53dcabb35a92525e69f2637f618e2cd1eed25bb9ee3caf608e7e9025825abfe0\",\n \"receivedAt\": 1790000021000\n }\n }\n ]\n },\n \"ticket.issued\": {\n \"name\": \"ticket.issued\",\n \"title\": \"ticket.issued (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/ticket.issued\"\n }\n },\n \"examples\": [\n {\n \"name\": \"ticket-issued-1\",\n \"payload\": {\n \"type\": \"ticket.issued\",\n \"id\": \"g-12\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000024000,\n \"form\": \"evm\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"ticket\": {\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"fillerId\": \"0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5\",\n \"deliveryKey\": \"0x742d35cc6634c0532925a3b844bc454e4438f44e\",\n \"repayTo\": \"0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc\",\n \"attempt\": 0,\n \"validFrom\": \"1790000040\",\n \"validUntil\": \"1790000400\"\n },\n \"ticketSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n },\n {\n \"name\": \"ticket-issued-2\",\n \"payload\": {\n \"type\": \"ticket.issued\",\n \"id\": \"g-13\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000024000,\n \"form\": \"canton\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 2,\n \"deliveryOrderCid\": \"00a1b2c3d4e5f6#fixture-delivery-order\",\n \"validUntil\": \"1790000400\",\n \"repayTo\": \"0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc\"\n }\n }\n ]\n },\n \"ticket.receipt\": {\n \"name\": \"ticket.receipt\",\n \"title\": \"ticket.receipt (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/ticket.receipt\"\n }\n },\n \"examples\": [\n {\n \"name\": \"ticket-receipt-1\",\n \"payload\": {\n \"type\": \"ticket.receipt\",\n \"id\": \"rc-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000025000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"ticketHash\": \"0x963e823a2d9709d6630515731512094e45976407536974cb9f81817591ed1f16\",\n \"ticketSigHash\": \"0x9d30145c6e97cad96cf7cee181ac9d5b879dea7fed0730d7197e84e28487292b\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n },\n {\n \"name\": \"ticket-receipt-2\",\n \"payload\": {\n \"type\": \"ticket.receipt\",\n \"id\": \"rc-2\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000025000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"form\": \"canton\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 2,\n \"deliveryOrderCid\": \"00a1b2c3d4e5f6#fixture-delivery-order\",\n \"validUntil\": \"1790000400\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n }\n ]\n },\n \"fill.reported\": {\n \"name\": \"fill.reported\",\n \"title\": \"fill.reported (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/fill.reported\"\n }\n },\n \"examples\": [\n {\n \"name\": \"fill-reported-1\",\n \"payload\": {\n \"type\": \"fill.reported\",\n \"id\": \"f-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000060000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"txRef\": \"0xfc4cba975d6b96ed2be00adae2d970f61413b963279089dcfc6402ddccc42740\"\n }\n }\n ]\n },\n \"ticket.expired\": {\n \"name\": \"ticket.expired\",\n \"title\": \"ticket.expired (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/ticket.expired\"\n }\n },\n \"examples\": [\n {\n \"name\": \"ticket-expired-1\",\n \"payload\": {\n \"type\": \"ticket.expired\",\n \"id\": \"g-14\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000460000,\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"result\": \"FILLED\"\n }\n },\n {\n \"name\": \"ticket-expired-2\",\n \"payload\": {\n \"type\": \"ticket.expired\",\n \"id\": \"g-15\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000460000,\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"result\": \"EXEMPT\",\n \"exemptReason\": \"DESTINATION_HALTED\"\n }\n }\n ]\n },\n \"order.settled\": {\n \"name\": \"order.settled\",\n \"title\": \"order.settled (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/order.settled\"\n }\n },\n \"examples\": [\n {\n \"name\": \"order-settled-1\",\n \"payload\": {\n \"type\": \"order.settled\",\n \"id\": \"g-16\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000900000,\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"payout\": \"1000000000\",\n \"fee\": \"3000000\",\n \"penaltyWithheld\": \"0\",\n \"txRef\": \"0x8d99b79edaf0d9c062753bb308a72f52ec1ed8873fe06580c14524bb66a9f614\"\n }\n }\n ]\n },\n \"penalty.applied\": {\n \"name\": \"penalty.applied\",\n \"title\": \"penalty.applied (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/penalty.applied\"\n }\n },\n \"examples\": [\n {\n \"name\": \"penalty-applied-1\",\n \"payload\": {\n \"type\": \"penalty.applied\",\n \"id\": \"g-17\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790001000000,\n \"violationId\": \"v-1\",\n \"code\": \"NO_SHOW\",\n \"step\": \"RECORDED\",\n \"details\": {\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0\n }\n }\n }\n ]\n },\n \"settle.attestations\": {\n \"name\": \"settle.attestations\",\n \"title\": \"settle.attestations (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/settle.attestations\"\n }\n },\n \"examples\": [\n {\n \"name\": \"settle-attestations-1\",\n \"payload\": {\n \"type\": \"settle.attestations\",\n \"id\": \"g-sa-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000160000,\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"sourceChainId\": \"eip155:11155111\",\n \"proof\": {\n \"kind\": 1,\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"destination\": \"0x0000000000000000000000000000000000000000000000000000000000066eee\",\n \"fillRef\": \"0xfc4cba975d6b96ed2be00adae2d970f61413b963279089dcfc6402ddccc42740\",\n \"recipient\": \"0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e\",\n \"outputAsset\": \"0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d\",\n \"amountDelivered\": \"999000000\",\n \"filledAt\": \"1790000100\",\n \"fillerId\": \"0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5\",\n \"repayTo\": \"0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e\",\n \"attempt\": 0,\n \"setId\": 1\n },\n \"signatures\": [\n {\n \"signer\": \"0x5e877d05b3bfef8b53a59dde76b911fb521415cd\",\n \"signature\": \"0x280a1c67572079434e423c51ee29272a0afb87bc485b3292192fb08242aeef687bcd1417aff35025ab16da3f43a73972585877b131a2b4dfe83d1ae4f5ef0fad1b\"\n },\n {\n \"signer\": \"0x6805cf7ce01e1c392d47806813503e367c932544\",\n \"signature\": \"0x77cba7cedee87b88ac9d90ce0440bb55fa510930318e1a7cb9e2567f198208fb3784a5ca3343c3df2d7dfc29b0a2eae3b87b475893b4d134fa6ce9d8df2a88521b\"\n }\n ],\n \"setId\": 1,\n \"threshold\": 2,\n \"refundAfter\": \"1790002400\",\n \"sig\": \"0x703468572b0f0d056f7c8547a2a70dbb76469888d23059926e906d23cc0468ac54cd96efe6a0f298750a225cd4a7e6acb511f144631076ed2825de0bf0e40b1e1b\"\n }\n },\n {\n \"name\": \"settle-attestations-2\",\n \"payload\": {\n \"type\": \"settle.attestations\",\n \"id\": \"g-sa-3\",\n \"fillerId\": \"acme\",\n \"sentAt\": 1789999760000,\n \"orderHash\": \"0x22e3a53ab72c6990b1971fd50b9ec6c527a003d987cd58d26058b380dd7ae79a\",\n \"attempt\": 1,\n \"sourceChainId\": \"canton:mainnet\",\n \"proof\": {\n \"kind\": 1,\n \"orderHash\": \"0x22e3a53ab72c6990b1971fd50b9ec6c527a003d987cd58d26058b380dd7ae79a\",\n \"destination\": \"0x0000000000000000000000000000000000000000000000000000000000000001\",\n \"fillRef\": \"0xfba8fd8a079872a9efe9646fcf34cfbbe8711ebd63665e8f2e0924949264c471\",\n \"recipient\": \"0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e\",\n \"outputAsset\": \"0x000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\",\n \"amountDelivered\": \"1200250000\",\n \"filledAt\": \"1789999700\",\n \"fillerId\": \"0xe29dae06ef4c3e336b7538b6d4f52ca1ecec009b1df6fb501320e11b223aeeaf\",\n \"repayTo\": \"0x4fa94ace29856f88ebea07ce6d18e21f52c60b4f66d147134c03c82b62957f9d\",\n \"attempt\": 1,\n \"setId\": 3\n },\n \"signatures\": [\n {\n \"signer\": \"0x5e877d05b3bfef8b53a59dde76b911fb521415cd\",\n \"pubKey\": \"0x3056301006072a8648ce3d020106052b8104000a034200046e4ce4835ad9bacce317724d5a85bfb72f73c0e0e0d9bb0ece443a23c405994056f031b0c83296033a1fd06fc21cbfdab8a821b09c0172ed64ef1b1ee3469be3\",\n \"signature\": \"0x3044022048f14c61c1f52f541ab136ef92bbbcfca14dd0560db802feb510f7fce19477b20220230a636d4d10c7e5c16b997394a8261185a899f0e8d8e5ffad14db4d4123dd16\"\n },\n {\n \"signer\": \"0x6805cf7ce01e1c392d47806813503e367c932544\",\n \"pubKey\": \"0x3056301006072a8648ce3d020106052b8104000a034200044f15010d9f9457006502d7cbe0cfc5ed67076c2d6f2d4d034b8412e1c07561c370356c5da930ec7a271c3c8d11d00a14e36a3cd3a2a4fad8c05b367357f15b7e\",\n \"signature\": \"0x3045022100d4cb2f8a3084bf5749871a06fa543a9ba80889471eb2799ab4c4c08b31ee7e2902203e2b4af4e08f263168a046a4b6a6370398c7b03de7797f1a011910c0d784f4bc\"\n },\n {\n \"signer\": \"0x695ba7eb3c2a35bfc8d16562560a01ba1f9931d0\",\n \"pubKey\": \"0x3056301006072a8648ce3d020106052b8104000a0342000479d89465d2de95e32eb728c63c58f4554dbecd39dacf7b680a326672cbc601af2abda0dd84f5b8a4bf8efebcb5eb0d24643dc0cc32af3f76a6ef877b71e19e2b\",\n \"signature\": \"0x304402200a300c658594fe20fb429c4f32e23e0b3e444a017f320622cb636792d6f13ca802200cbd9bcb4ea5719f63f8a510e7e9f3d730a47691a7b6eb8e78ec787218997e02\"\n }\n ],\n \"setId\": 3,\n \"threshold\": 2,\n \"refundAfter\": \"1790001800\",\n \"sig\": \"0x481041cd0c07174f6db63b7acdc96a0bcc399de0be60df07faea3be6f0f09c83553a59f5e5443a6d7d1763789404d732a4b5cdc57758b729adf50245b8f96c2d1b\"\n }\n }\n ]\n },\n \"canton.prepare\": {\n \"name\": \"canton.prepare\",\n \"title\": \"canton.prepare (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/canton.prepare\"\n }\n },\n \"examples\": [\n {\n \"name\": \"canton-prepare-1\",\n \"payload\": {\n \"type\": \"canton.prepare\",\n \"id\": \"cp-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1789990000000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"op\": \"party.allocate\",\n \"params\": {\n \"publicKey\": \"0x1111111111111111111111111111111111111111111111111111111111111111\"\n }\n }\n },\n {\n \"name\": \"canton-prepare-2\",\n \"payload\": {\n \"type\": \"canton.prepare\",\n \"id\": \"cp-2\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1789990100000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"op\": \"registry.accept\",\n \"params\": {}\n }\n },\n {\n \"name\": \"canton-prepare-3\",\n \"payload\": {\n \"type\": \"canton.prepare\",\n \"id\": \"cp-3\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000026000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"op\": \"delivery.fill\",\n \"params\": {\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 2\n }\n }\n },\n {\n \"name\": \"canton-prepare-4\",\n \"payload\": {\n \"type\": \"canton.prepare\",\n \"id\": \"cp-4\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000700000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"op\": \"intent.settle\",\n \"params\": {\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\"\n }\n }\n },\n {\n \"name\": \"canton-prepare-5\",\n \"payload\": {\n \"type\": \"canton.prepare\",\n \"id\": \"cp-5\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790001000000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"op\": \"holdings.transfer\",\n \"params\": {\n \"asset\": {\n \"admin\": \"cancore-registry::1220aa\",\n \"id\": \"CNRX\"\n },\n \"amount\": \"250.5\",\n \"toParty\": \"alice::1220f0e1d2c3b4a5968778695a4b3c2d1e0ff0e1d2c3b4a5968778695a4b3c2d1e0f\"\n }\n }\n }\n ]\n },\n \"canton.prepared\": {\n \"name\": \"canton.prepared\",\n \"title\": \"canton.prepared (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/canton.prepared\"\n }\n },\n \"examples\": [\n {\n \"name\": \"canton-prepared-1\",\n \"payload\": {\n \"type\": \"canton.prepared\",\n \"id\": \"g-19\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789990000200,\n \"re\": \"cp-1\",\n \"operationId\": \"op-1\",\n \"op\": \"party.allocate\",\n \"legs\": [\n {\n \"legId\": \"topology-0\",\n \"kind\": \"topology\",\n \"hash\": \"0x12203d71f7c09428bb0f75651436e3a1c92b3a12490049882ff50711337cf5c9de0a\",\n \"topologyTransactions\": [\n \"CgMyLjESBTAuMC4x\",\n \"CgMyLjESBTAuMC4y\"\n ]\n }\n ],\n \"summary\": {\n \"partyId\": \"acme-markets::1220a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90\",\n \"publicKey\": \"0x1111111111111111111111111111111111111111111111111111111111111111\",\n \"hosting\": {\n \"participantUid\": \"PAR::cancore::1220c0ffee\",\n \"permission\": \"CONFIRMATION\",\n \"threshold\": 1\n }\n },\n \"expiresAt\": 1789990300200\n }\n },\n {\n \"name\": \"canton-prepared-2\",\n \"payload\": {\n \"type\": \"canton.prepared\",\n \"id\": \"g-20\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000026300,\n \"re\": \"cp-3\",\n \"operationId\": \"op-3\",\n \"op\": \"delivery.fill\",\n \"legs\": [\n {\n \"legId\": \"delivery-fill-0\",\n \"kind\": \"transaction\",\n \"hash\": \"0xf85381267321fc9b5122e45db048de3313dbc0dce8b36202673245d6c6d92840\",\n \"preparedTransaction\": \"CgMyLjESBTAuMC4x\",\n \"hashingSchemeVersion\": \"HASHING_SCHEME_VERSION_V2\"\n }\n ],\n \"summary\": {\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 2,\n \"deliveryOrderCid\": \"00a1b2c3d4e5f6#fixture-delivery-order\",\n \"recipient\": \"alice::1220f0e1d2c3b4a5968778695a4b3c2d1e0ff0e1d2c3b4a5968778695a4b3c2d1e0f\",\n \"asset\": {\n \"admin\": \"cancore-registry::1220aa\",\n \"id\": \"CNRX\"\n },\n \"amount\": \"999.0\",\n \"repayTo\": \"0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc\",\n \"validUntil\": \"1790000400\",\n \"inputHoldingCids\": [\n \"00h1\",\n \"00h2\"\n ],\n \"executeBefore\": \"1790000400\",\n \"transferFactoryCid\": \"00tf\"\n },\n \"expiresAt\": 1790000326300\n }\n }\n ]\n },\n \"canton.submit\": {\n \"name\": \"canton.submit\",\n \"title\": \"canton.submit (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/canton.submit\"\n }\n },\n \"examples\": [\n {\n \"name\": \"canton-submit-1\",\n \"payload\": {\n \"type\": \"canton.submit\",\n \"id\": \"cs-3\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000027000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"operationId\": \"op-3\",\n \"signatures\": [\n {\n \"legId\": \"delivery-fill-0\",\n \"signature\": \"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\"\n }\n ]\n }\n }\n ]\n },\n \"canton.submitted\": {\n \"name\": \"canton.submitted\",\n \"title\": \"canton.submitted (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/canton.submitted\"\n }\n },\n \"examples\": [\n {\n \"name\": \"canton-submitted-1\",\n \"payload\": {\n \"type\": \"canton.submitted\",\n \"id\": \"g-21\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000029000,\n \"re\": \"cs-3\",\n \"operationId\": \"op-3\",\n \"op\": \"delivery.fill\",\n \"updateId\": \"1220ab0c\",\n \"result\": {\n \"receiptCid\": \"00c1d2\"\n }\n }\n },\n {\n \"name\": \"canton-submitted-2\",\n \"payload\": {\n \"type\": \"canton.submitted\",\n \"id\": \"g-22\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789990002000,\n \"re\": \"cs-1\",\n \"operationId\": \"op-1\",\n \"op\": \"party.allocate\",\n \"result\": {\n \"partyId\": \"acme-markets::1220a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90\"\n }\n }\n },\n {\n \"name\": \"canton-submitted-3\",\n \"payload\": {\n \"type\": \"canton.submitted\",\n \"id\": \"g-23\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790001002000,\n \"re\": \"cs-5\",\n \"operationId\": \"op-5\",\n \"op\": \"holdings.transfer\",\n \"updateId\": \"1220ab0d\",\n \"result\": {\n \"outcome\": \"PENDING\",\n \"transferInstructionCid\": \"00ti\"\n }\n }\n }\n ]\n }\n }\n }\n}\n","{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://cancore.io/schemas/filler-protocol/v1/messages.schema.json\",\n \"title\": \"Cancore filler protocol v1 — WebSocket frames\",\n \"$comment\": \"One $def per frame type, validated by name ($defs/<type>). The schemas encode the SENDER rule (protocol §3.1): lowercase hex, uint64 and wider as canonical decimal strings, uint8/16/32 as JSON integers, gateway times in milliseconds. No object is closed (V-2): receivers ignore unknown fields, takers ignore unknown S→F types, and treat an unknown reason/result/code as OTHER/generic. Every enum is open: anyOf [known values, futureEnumValue]. x-direction: S2F = gateway to filler, F2S = filler to gateway, both = either way (ping, pong, error; <type>S2F is the gateway's copy, <type>F2S the filler's). x-rest-only: the type travels only as a REST body (auth.challenge, auth.response: the login of protocol §3.6), never on the WebSocket. Every frame in both directions carries id, sentAt and fillerId (optional only on a gateway error that refuses a login, POST /v1/filler/auth) and is signed (protocol §3.4): `sig` = the gateway key over GatewayMessage{bodyHash} on S2F, `msgSig` = the filler's message key over FillerMessage{bodyHash} on F2S, bodyHash = keccak256(JCS(frame without that field)). No exceptions: ticket.decline, a declining quote.reconfirm.reply, fill.reported, pong and error from the filler are signed too.\",\n \"$defs\": {\n \"uintDec64\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)$\", \"maxLength\": 20, \"description\": \"uint64 as a decimal string: digits only, no sign, no exponent, no leading zero\" },\n \"uintDec256\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)$\", \"maxLength\": 78, \"description\": \"uint256 as a decimal string\" },\n \"intDecUsd\": { \"type\": \"string\", \"pattern\": \"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?$\", \"description\": \"signed decimal USD amount\" },\n \"uint8\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 255 },\n \"uint16\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 65535 },\n \"uint32\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 4294967295 },\n \"address\": { \"type\": \"string\", \"pattern\": \"^0x[0-9a-f]{40}$\", \"description\": \"EVM address, lowercase hex\" },\n \"bytes32\": { \"type\": \"string\", \"pattern\": \"^0x[0-9a-f]{64}$\" },\n \"repayTo\": { \"$ref\": \"#/$defs/bytes32\", \"description\": \"where settle pays the filler, encoded for the SOURCE chain (protocol §3.15): EVM — the address left-padded to 32 bytes (repayToEvm); Canton — keccak256(utf8(partyId)) of the filler's registered party\" },\n \"repayToEvm\": { \"type\": \"string\", \"pattern\": \"^0x0{24}(?!0{40})[0-9a-f]{40}$\", \"description\": \"repayTo for an EVM source: zero top 12 bytes (the router refuses others, InvalidBytes32Address) and not the zero address (ZeroAddress). A receiver that knows the source chain checks repayTo against this\" },\n \"deliveryKey\": { \"$ref\": \"#/$defs/address\", \"description\": \"the address that sends fill on the destination (FillTicket.deliveryKey); the zero address for a Canton destination\" },\n \"sig65\": { \"type\": \"string\", \"pattern\": \"^0x[0-9a-f]{64}[0-7][0-9a-f]{63}(1b|1c)$\", \"description\": \"65-byte r ‖ s ‖ v of an EOA, low-s, v ∈ {27, 28}; no EIP-1271. The pattern refuses any other length or v and an s with its top bit set; isEoaSignature checks the exact bound s ≤ n/2\" },\n \"timeMs\": { \"type\": \"integer\", \"minimum\": 1000000000000, \"maximum\": 9007199254740991, \"description\": \"unix milliseconds, gateway clock; the minimum rejects seconds\" },\n \"durationMs\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 9007199254740991 },\n \"timeS\": { \"$ref\": \"#/$defs/uintDec64\", \"description\": \"unix seconds as a decimal string (on-chain and signed times)\" },\n \"caip2\": { \"type\": \"string\", \"pattern\": \"^(eip155:[1-9][0-9]*|canton:(mainnet|testnet|devnet))$\" },\n \"cantonAsset\": {\n \"type\": \"object\",\n \"required\": [\"admin\", \"id\"],\n \"properties\": { \"admin\": { \"type\": \"string\", \"minLength\": 1 }, \"id\": { \"type\": \"string\", \"minLength\": 1 } }\n },\n \"asset\": { \"oneOf\": [{ \"$ref\": \"#/$defs/address\" }, { \"$ref\": \"#/$defs/cantonAsset\" }] },\n \"requestId\": { \"type\": \"string\", \"pattern\": \"^[!-~]{1,64}$\", \"description\": \"1..64 printable ASCII (Canonical.daml:90-93)\" },\n \"fillerId\": { \"type\": \"string\", \"pattern\": \"^[a-z0-9][a-z0-9-]{0,62}$\" },\n \"messageId\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 64, \"description\": \"unique per fillerId and direction across every session of that fillerId; never reused by its sender within maxMessageAgeMs\" },\n \"protocolVersion\": { \"const\": \"1\" },\n \"order\": {\n \"type\": \"object\",\n \"description\": \"ICancoreRouter.Order, twelve fields, every numeric field a decimal string (the shape of canton-order.json vector.order)\",\n \"required\": [\"user\", \"originChainId\", \"inputToken\", \"inputAmount\", \"destination\", \"outputAsset\", \"minReceived\", \"recipient\", \"createdAt\", \"fillDeadline\", \"feeBps\", \"fillerId\"],\n \"properties\": {\n \"user\": { \"$ref\": \"#/$defs/address\" },\n \"originChainId\": { \"$ref\": \"#/$defs/uintDec64\" },\n \"inputToken\": { \"$ref\": \"#/$defs/address\" },\n \"inputAmount\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"destination\": { \"$ref\": \"#/$defs/bytes32\" },\n \"outputAsset\": { \"$ref\": \"#/$defs/bytes32\" },\n \"minReceived\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"recipient\": { \"$ref\": \"#/$defs/bytes32\" },\n \"createdAt\": { \"$ref\": \"#/$defs/timeS\" },\n \"fillDeadline\": { \"$ref\": \"#/$defs/timeS\" },\n \"feeBps\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$\", \"description\": \"uint16\" },\n \"fillerId\": { \"$ref\": \"#/$defs/bytes32\", \"description\": \"keccak256(utf8(fillerId)) of the filler the user picked\" }\n }\n },\n \"ticket\": {\n \"type\": \"object\",\n \"description\": \"FillTicket(bytes32 orderHash,bytes32 fillerId,address deliveryKey,bytes32 repayTo,uint32 attempt,uint64 validFrom,uint64 validUntil); fillerId is keccak256(utf8(fillerId)), deliveryKey and repayTo are those of the filler's signed ticket.intent (S-22)\",\n \"required\": [\"orderHash\", \"fillerId\", \"deliveryKey\", \"repayTo\", \"attempt\", \"validFrom\", \"validUntil\"],\n \"properties\": {\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"fillerId\": { \"$ref\": \"#/$defs/bytes32\" },\n \"deliveryKey\": { \"$ref\": \"#/$defs/address\" },\n \"repayTo\": { \"$ref\": \"#/$defs/repayTo\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"validFrom\": { \"$ref\": \"#/$defs/timeS\" },\n \"validUntil\": { \"$ref\": \"#/$defs/timeS\" }\n }\n },\n \"futureEnumValue\": { \"type\": \"string\", \"pattern\": \"^[A-Z][A-Z0-9_]*$\", \"description\": \"a value added to an open enum within v1 (V-2); the receiver treats it as OTHER/generic. Every protocol enum is `anyOf: [{enum: known values}, futureEnumValue]`\" },\n \"declineReason\": {\n \"anyOf\": [\n { \"enum\": [\"NO_INVENTORY\", \"RISK_LIMIT\", \"PRICE_MOVED\", \"PAUSED\", \"OTHER\", \"TICKET_SIGNER_UNKNOWN\", \"TICKET_MISMATCH\", \"TICKET_TTL_TOO_SHORT\", \"TICKET_ISSUED_LATE\", \"TICKET_BEYOND_DEADLINE\", \"ESCROW_NOT_OPEN\", \"ESCROW_MISMATCH\", \"PROOF_WINDOW_TOO_SHORT\", \"SKEW_MARGIN_TOO_SHORT\", \"DRAW_MISMATCH\"] },\n { \"$ref\": \"#/$defs/futureEnumValue\" }\n ]\n },\n \"errorCode\": {\n \"anyOf\": [\n { \"enum\": [\"BAD_REQUEST\", \"UNAUTHENTICATED\", \"UNSUPPORTED_VERSION\", \"UNSUPPORTED_TYPE\", \"BAD_SIGNATURE\", \"STALE_MESSAGE\", \"REPLAYED_MESSAGE\", \"TICKET_REFUSED\", \"UNKNOWN_REQUEST\", \"UNKNOWN_TICKET\", \"TICKET_CLOSED\", \"NOT_ELIGIBLE\", \"RATE_LIMITED\", \"INTERNAL\", \"ATTESTATIONS_NOT_READY\", \"CANTON_NOT_READY\", \"CANTON_REFUSED\", \"CANTON_UNAVAILABLE\", \"OPERATION_EXPIRED\"] },\n { \"$ref\": \"#/$defs/futureEnumValue\" }\n ]\n },\n \"ticketRefusedReason\": {\n \"anyOf\": [\n { \"enum\": [\"REPAY_TO_INVALID\", \"REPAY_TO_BLOCKLISTED\", \"DELIVERY_KEY_INVALID\", \"PAYOUT_NOT_READY\", \"RECIPIENT_NOT_READY\", \"OPEN_TICKET_LIMIT\", \"PROOF_WINDOW_TOO_SHORT\", \"ATTESTOR_REVOCATION_PENDING\", \"SERVICE_DEGRADED\", \"OTHER\"] },\n { \"$ref\": \"#/$defs/futureEnumValue\" }\n ],\n \"description\": \"error.reason with TICKET_REFUSED: the pre-ticket check that failed (S-21); the order is re-drawn, nothing is recorded against the filler\"\n },\n \"expiredResult\": { \"anyOf\": [{ \"enum\": [\"FILLED\", \"NO_SHOW\", \"NO_SHOW_UNCONFIRMED\", \"EXEMPT\"] }, { \"$ref\": \"#/$defs/futureEnumValue\" }] },\n \"exemptReason\": { \"anyOf\": [{ \"enum\": [\"DESTINATION_HALTED\", \"GATEWAY_FAULT\", \"REORGED_AFTER_INCLUSION\", \"RECIPIENT_NOT_READY\", \"OTHER\"] }, { \"$ref\": \"#/$defs/futureEnumValue\" }] },\n \"quoteAckStatus\": { \"anyOf\": [{ \"enum\": [\"COUNTED\", \"LATE\", \"SHORT_TTL\"] }, { \"$ref\": \"#/$defs/futureEnumValue\" }], \"description\": \"verdict at receipt time; the final status is on GET /v1/filler/quotes\" },\n \"penaltyStep\": { \"anyOf\": [{ \"enum\": [\"RECORDED\", \"BANNED\", \"UNBANNED\"] }, { \"$ref\": \"#/$defs/futureEnumValue\" }] },\n \"s2fEnvelope\": {\n \"type\": \"object\",\n \"required\": [\"type\", \"id\", \"sentAt\", \"sig\"],\n \"properties\": {\n \"type\": { \"type\": \"string\" },\n \"id\": { \"$ref\": \"#/$defs/messageId\" },\n \"fillerId\": { \"$ref\": \"#/$defs/fillerId\", \"description\": \"the addressee\" },\n \"sentAt\": { \"$ref\": \"#/$defs/timeMs\" },\n \"sig\": { \"$ref\": \"#/$defs/sig65\", \"description\": \"gateway key over GatewayMessage{bodyHash = keccak256(JCS(frame without sig))}\" },\n \"re\": { \"$ref\": \"#/$defs/messageId\" }\n }\n },\n \"s2fBase\": { \"allOf\": [{ \"$ref\": \"#/$defs/s2fEnvelope\" }, { \"type\": \"object\", \"required\": [\"fillerId\"], \"properties\": { \"fillerId\": { \"$ref\": \"#/$defs/fillerId\" } } }] },\n \"f2sEnvelope\": {\n \"type\": \"object\",\n \"description\": \"What every filler → filler-gateway message and REST request body carries (protocol §3.4, S-19): the gateway refuses one without it, with another fillerId than the session's, with a stale sentAt or a reused id\",\n \"required\": [\"id\", \"fillerId\", \"sentAt\", \"msgSig\"],\n \"properties\": {\n \"id\": { \"$ref\": \"#/$defs/messageId\" },\n \"fillerId\": { \"$ref\": \"#/$defs/fillerId\", \"description\": \"the sender; must be the fillerId the session is authenticated for\" },\n \"sentAt\": { \"$ref\": \"#/$defs/timeMs\" },\n \"msgSig\": { \"$ref\": \"#/$defs/sig65\", \"description\": \"the filler's message key over FillerMessage{bodyHash = keccak256(JCS(message without msgSig))}; the body keeps id, fillerId, sentAt and any inner sig\" },\n \"re\": { \"$ref\": \"#/$defs/messageId\" }\n }\n },\n \"f2sBase\": { \"allOf\": [{ \"$ref\": \"#/$defs/f2sEnvelope\" }, { \"type\": \"object\", \"required\": [\"type\"], \"properties\": { \"type\": { \"type\": \"string\" } } }] },\n \"fillerKeyRegistration\": {\n \"type\": \"object\",\n \"description\": \"Proof of possession of a message key (protocol §3.16): FillerKeyRegistration{fillerId, messageKey, issuedAt} signed by that key — at onboarding, and with the NEW key at a manual key change by Cancore staff, who submit it to the key registry of filler-gateway. Not a frame: there is no key-change message. sig must be an EOA signature (65 bytes, low-s, v ∈ {27, 28}) that recovers to messageKey; an EIP-1271 signature is refused\",\n \"required\": [\"fillerId\", \"messageKey\", \"issuedAt\", \"sig\"],\n \"properties\": {\n \"fillerId\": { \"$ref\": \"#/$defs/fillerId\" },\n \"messageKey\": { \"$ref\": \"#/$defs/address\" },\n \"issuedAt\": { \"$ref\": \"#/$defs/timeS\" },\n \"sig\": { \"$ref\": \"#/$defs/sig65\" }\n }\n },\n \"auth.challenge\": {\n \"x-direction\": \"S2F\",\n \"x-rest-only\": true,\n \"type\": \"object\",\n \"description\": \"The login challenge, addressed to the fillerId it was asked for: the 200 body of GET /v1/filler/auth/challenge?fillerId=. Never sent on the WebSocket. The filler checks the gateway sig and that fillerId is its own before it signs FillerAuth{fillerId, nonce, expiresAt}\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"nonce\", \"expiresAt\"],\n \"properties\": { \"type\": { \"const\": \"auth.challenge\" }, \"nonce\": { \"$ref\": \"#/$defs/bytes32\" }, \"expiresAt\": { \"$ref\": \"#/$defs/timeS\" } }\n },\n \"auth.response\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"x-rest-only\": true,\n \"description\": \"The body of POST /v1/filler/auth, answered with {token, expiresAt}. sig = FillerAuth{fillerId, nonce, expiresAt} by the registered message key of fillerId (keyAddress = its address); msgSig by the same key. Never sent on the WebSocket: a WebSocket connection is authenticated by the bearer token offered on the upgrade\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"fillerId\", \"keyAddress\", \"protocolVersion\", \"sig\"],\n \"properties\": {\n \"type\": { \"const\": \"auth.response\" },\n \"fillerId\": { \"$ref\": \"#/$defs/fillerId\" },\n \"keyAddress\": { \"$ref\": \"#/$defs/address\" },\n \"protocolVersion\": { \"type\": \"string\", \"description\": \"the gateway answers UNSUPPORTED_VERSION to anything it does not serve; v1 senders send \\\"1\\\"\" },\n \"nonce\": { \"$ref\": \"#/$defs/bytes32\", \"description\": \"the auth.challenge nonce this response answers (optional; senders SHOULD send it), so POST /v1/filler/auth finds the live challenge of this fillerId without trying every one\" },\n \"sig\": { \"$ref\": \"#/$defs/sig65\" }\n }\n },\n \"auth.ok\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"heartbeatIntervalMs\"],\n \"properties\": { \"type\": { \"const\": \"auth.ok\" }, \"heartbeatIntervalMs\": { \"$ref\": \"#/$defs/durationMs\" } }\n },\n \"ping\": {\n \"x-direction\": \"both\",\n \"description\": \"Heartbeat, either way. A receiver checks the copy of its direction: pingS2F (gateway sig) or pingF2S (filler msgSig)\",\n \"anyOf\": [{ \"$ref\": \"#/$defs/pingF2S\" }, { \"$ref\": \"#/$defs/pingS2F\" }]\n },\n \"pingF2S\": {\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"id\"],\n \"properties\": { \"type\": { \"const\": \"ping\" }, \"id\": { \"$ref\": \"#/$defs/messageId\" } }\n },\n \"pingS2F\": {\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"id\"],\n \"properties\": { \"type\": { \"const\": \"ping\" }, \"id\": { \"$ref\": \"#/$defs/messageId\" } }\n },\n \"pong\": {\n \"x-direction\": \"both\",\n \"description\": \"Answer to a ping, re = ping.id. A receiver checks the copy of its direction: pongS2F (gateway sig) or pongF2S (filler msgSig)\",\n \"anyOf\": [{ \"$ref\": \"#/$defs/pongF2S\" }, { \"$ref\": \"#/$defs/pongS2F\" }]\n },\n \"pongF2S\": {\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"re\"],\n \"properties\": { \"type\": { \"const\": \"pong\" }, \"re\": { \"$ref\": \"#/$defs/messageId\" } }\n },\n \"pongS2F\": {\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"re\"],\n \"properties\": { \"type\": { \"const\": \"pong\" }, \"re\": { \"$ref\": \"#/$defs/messageId\" } }\n },\n \"error\": {\n \"x-direction\": \"both\",\n \"description\": \"Either way. A receiver checks the copy of its direction: errorS2F (the gateway's reply, also the REST error body) or errorF2S (the filler's reply to a gateway frame it cannot handle)\",\n \"anyOf\": [{ \"$ref\": \"#/$defs/errorF2S\" }, { \"$ref\": \"#/$defs/errorS2F\" }]\n },\n \"errorS2F\": {\n \"type\": \"object\",\n \"description\": \"Reply to the F→S frame `re`; also the REST error body. fillerId may be absent on a refusal of POST /v1/filler/auth, which is not authenticated yet. reason names the failed pre-ticket check with TICKET_REFUSED. retryAfterMs comes with RATE_LIMITED only\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fEnvelope\" }],\n \"required\": [\"type\", \"code\", \"message\"],\n \"properties\": {\n \"type\": { \"const\": \"error\" },\n \"code\": { \"$ref\": \"#/$defs/errorCode\" },\n \"message\": { \"type\": \"string\" },\n \"reason\": { \"$ref\": \"#/$defs/ticketRefusedReason\" },\n \"retryAfterMs\": { \"$ref\": \"#/$defs/durationMs\", \"type\": \"integer\", \"minimum\": 1, \"description\": \"with RATE_LIMITED: ms (≥ 1) until the rate class of the refused message holds a token again, or until the cooldown of the fillerId ends; the filler sends nothing of that class before it\" }\n },\n \"if\": { \"type\": \"object\", \"properties\": { \"code\": { \"const\": \"TICKET_REFUSED\" } }, \"required\": [\"code\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"reason\"], \"properties\": { \"reason\": true } }\n },\n \"errorF2S\": {\n \"type\": \"object\",\n \"description\": \"The filler's reply to the S→F frame `re` it cannot handle (malformed, unknown orderHash); informational, it changes no state in filler-gateway. Signed like every filler message\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"re\", \"code\", \"message\"],\n \"properties\": { \"type\": { \"const\": \"error\" }, \"re\": { \"$ref\": \"#/$defs/messageId\" }, \"code\": { \"$ref\": \"#/$defs/errorCode\" }, \"message\": { \"type\": \"string\" } }\n },\n \"epoch.weights\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"epochId\", \"startsAt\", \"endsAt\", \"weightsRoot\"],\n \"properties\": {\n \"type\": { \"const\": \"epoch.weights\" },\n \"epochId\": { \"$ref\": \"#/$defs/uintDec64\" },\n \"startsAt\": { \"$ref\": \"#/$defs/timeS\" },\n \"endsAt\": { \"$ref\": \"#/$defs/timeS\" },\n \"weightsRoot\": { \"$ref\": \"#/$defs/bytes32\" }\n }\n },\n \"quote.request\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"requestId\", \"route\", \"inputToken\", \"inputAmount\", \"outputAsset\", \"feeBps\", \"fillDeadlineHint\", \"windowCloseAt\", \"quoteTtlMs\"],\n \"properties\": {\n \"type\": { \"const\": \"quote.request\" },\n \"requestId\": { \"$ref\": \"#/$defs/requestId\" },\n \"route\": {\n \"type\": \"object\",\n \"required\": [\"src\", \"dst\"],\n \"properties\": { \"src\": { \"$ref\": \"#/$defs/caip2\" }, \"dst\": { \"$ref\": \"#/$defs/caip2\" } }\n },\n \"inputToken\": { \"$ref\": \"#/$defs/asset\" },\n \"inputAmount\": { \"$ref\": \"#/$defs/uintDec256\", \"description\": \"the total T the maker deposits (inclusive fee), input base units\" },\n \"outputAsset\": { \"$ref\": \"#/$defs/asset\" },\n \"feeBps\": { \"$ref\": \"#/$defs/uint16\" },\n \"fillDeadlineHint\": { \"$ref\": \"#/$defs/timeS\" },\n \"windowCloseAt\": { \"$ref\": \"#/$defs/timeMs\" },\n \"quoteTtlMs\": { \"$ref\": \"#/$defs/durationMs\" },\n \"imbalanceHint\": {\n \"type\": \"object\",\n \"required\": [\"dstAsset\", \"netFlow24hUsd\"],\n \"properties\": { \"dstAsset\": { \"$ref\": \"#/$defs/asset\" }, \"netFlow24hUsd\": { \"$ref\": \"#/$defs/intDecUsd\" } }\n }\n }\n },\n \"quote\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"description\": \"sig = FillerQuote{keccak256(utf8(requestId)), fillerId, amountOut, validUntil, nonce} by the message key, fillerId the envelope's; counts only if validUntil × 1000 ≥ windowCloseAt + quoteTtlMs\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"requestId\", \"amountOut\", \"validUntil\", \"nonce\", \"sig\"],\n \"properties\": {\n \"type\": { \"const\": \"quote\" },\n \"requestId\": { \"$ref\": \"#/$defs/requestId\" },\n \"amountOut\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"validUntil\": { \"$ref\": \"#/$defs/timeS\" },\n \"nonce\": { \"$ref\": \"#/$defs/uintDec64\" },\n \"sig\": { \"$ref\": \"#/$defs/sig65\" }\n }\n },\n \"quote.ack\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"description\": \"For every well-formed, correctly signed quote, late ones included (S-12)\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"requestId\", \"quoteHash\", \"receivedAt\", \"status\"],\n \"properties\": {\n \"type\": { \"const\": \"quote.ack\" },\n \"requestId\": { \"$ref\": \"#/$defs/requestId\" },\n \"quoteHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"receivedAt\": { \"$ref\": \"#/$defs/timeMs\" },\n \"status\": { \"$ref\": \"#/$defs/quoteAckStatus\" }\n }\n },\n \"quote.reconfirm\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"orderHash\", \"requestId\", \"order\", \"amountOut\", \"ticketTtl\", \"replyBy\"],\n \"properties\": {\n \"type\": { \"const\": \"quote.reconfirm\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"requestId\": { \"$ref\": \"#/$defs/requestId\" },\n \"order\": { \"$ref\": \"#/$defs/order\" },\n \"amountOut\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"ticketTtl\": { \"$ref\": \"#/$defs/uint32\", \"description\": \"seconds\" },\n \"replyBy\": { \"$ref\": \"#/$defs/timeMs\" }\n }\n },\n \"quote.reconfirm.reply\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"description\": \"An accept carries sig = FillerQuote{keccak256(utf8(requestId)), fillerId, amountOut, validUntil, nonce} by the message key; a decline carries only the envelope msgSig\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"orderHash\", \"accept\"],\n \"properties\": {\n \"type\": { \"const\": \"quote.reconfirm.reply\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"accept\": { \"type\": \"boolean\" },\n \"validUntil\": { \"$ref\": \"#/$defs/timeS\" },\n \"nonce\": { \"$ref\": \"#/$defs/uintDec64\" },\n \"sig\": { \"$ref\": \"#/$defs/sig65\" }\n },\n \"if\": { \"type\": \"object\", \"properties\": { \"accept\": { \"const\": true } }, \"required\": [\"accept\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"validUntil\", \"nonce\", \"sig\"], \"properties\": { \"validUntil\": true, \"nonce\": true, \"sig\": true } }\n },\n \"ticket.offer\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"order\", \"amountOut\", \"validFrom\", \"validUntil\", \"acceptBy\"],\n \"properties\": {\n \"type\": { \"const\": \"ticket.offer\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"order\": { \"$ref\": \"#/$defs/order\" },\n \"amountOut\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"validFrom\": { \"$ref\": \"#/$defs/timeS\" },\n \"validUntil\": { \"$ref\": \"#/$defs/timeS\" },\n \"acceptBy\": { \"$ref\": \"#/$defs/timeMs\" }\n }\n },\n \"ticket.intent\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"description\": \"sig = TicketIntent{orderHash, attempt, validFrom, validUntil, fillerId, deliveryKey, repayTo} by the message key, fillerId the envelope's; orderHash, attempt, validFrom, validUntil equal the offer; the issued ticket carries exactly this deliveryKey and repayTo (S-22), or the gateway answers error TICKET_REFUSED (S-21)\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"validFrom\", \"validUntil\", \"deliveryKey\", \"repayTo\", \"sig\"],\n \"properties\": {\n \"type\": { \"const\": \"ticket.intent\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"validFrom\": { \"$ref\": \"#/$defs/timeS\" },\n \"validUntil\": { \"$ref\": \"#/$defs/timeS\" },\n \"deliveryKey\": { \"$ref\": \"#/$defs/deliveryKey\" },\n \"repayTo\": { \"$ref\": \"#/$defs/repayTo\" },\n \"sig\": { \"$ref\": \"#/$defs/sig65\" }\n }\n },\n \"ticket.decline\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"reason\"],\n \"properties\": {\n \"type\": { \"const\": \"ticket.decline\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"reason\": { \"$ref\": \"#/$defs/declineReason\" },\n \"detail\": { \"type\": \"string\" }\n }\n },\n \"ticket.intent.ack\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"description\": \"Idempotent: a repeated identical intent gets the identical ack\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"intentHash\", \"receivedAt\"],\n \"properties\": {\n \"type\": { \"const\": \"ticket.intent.ack\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"intentHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"receivedAt\": { \"$ref\": \"#/$defs/timeMs\" }\n }\n },\n \"ticket.issued\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"description\": \"form discriminates the EVM-destination ticket (FillTicket + ticketSig) from the Canton-destination one (DeliveryOrder, with its repayTo); a form added within v1 (V-2) is checked against the common fields only. The filler checks fillerId, deliveryKey and repayTo against its own ticket.intent before it delivers (T-15)\",\n \"required\": [\"type\", \"form\", \"orderHash\", \"attempt\"],\n \"properties\": {\n \"type\": { \"const\": \"ticket.issued\" },\n \"form\": { \"anyOf\": [{ \"enum\": [\"evm\", \"canton\"] }, { \"type\": \"string\", \"pattern\": \"^[a-z][a-z0-9-]*$\" }] },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" }\n },\n \"allOf\": [\n { \"$ref\": \"#/$defs/s2fBase\" },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"form\": { \"const\": \"evm\" } }, \"required\": [\"form\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"ticket\", \"ticketSig\"], \"properties\": { \"ticket\": { \"$ref\": \"#/$defs/ticket\" }, \"ticketSig\": { \"$ref\": \"#/$defs/sig65\" } } }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"form\": { \"const\": \"canton\" } }, \"required\": [\"form\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"deliveryOrderCid\", \"validUntil\", \"repayTo\"], \"properties\": { \"deliveryOrderCid\": { \"type\": \"string\", \"minLength\": 1 }, \"validUntil\": { \"$ref\": \"#/$defs/timeS\" }, \"repayTo\": { \"$ref\": \"#/$defs/repayTo\", \"description\": \"the repayTo of the DeliveryOrder, = the filler's signed ticket.intent (S-22); fillerId is the envelope's\" } } }\n }\n ]\n },\n \"ticket.receipt\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"description\": \"form follows the issued ticket (S-14). EVM form (form absent or \\\"evm\\\"): sig = TicketReceipt{ticketHash, ticketSigHash} by the message key. Canton form: sig = CantonTicketReceipt{orderHash, attempt, deliveryOrderCidHash = keccak256(utf8(deliveryOrderCid)), validUntil} by the message key, deliveryOrderCid and validUntil exactly as in ticket.issued; fillerId and repayTo are not part of it (protocol §3.3, §10 D-O)\",\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"sig\"],\n \"properties\": {\n \"type\": { \"const\": \"ticket.receipt\" },\n \"form\": { \"anyOf\": [{ \"enum\": [\"evm\", \"canton\"] }, { \"type\": \"string\", \"pattern\": \"^[a-z][a-z0-9-]*$\" }] },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"sig\": { \"$ref\": \"#/$defs/sig65\" }\n },\n \"allOf\": [\n { \"$ref\": \"#/$defs/f2sBase\" },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"form\": { \"const\": \"evm\" } } },\n \"then\": { \"type\": \"object\", \"required\": [\"ticketHash\", \"ticketSigHash\"], \"properties\": { \"ticketHash\": { \"$ref\": \"#/$defs/bytes32\" }, \"ticketSigHash\": { \"$ref\": \"#/$defs/bytes32\" } } }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"form\": { \"const\": \"canton\" } }, \"required\": [\"form\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"deliveryOrderCid\", \"validUntil\"], \"properties\": { \"deliveryOrderCid\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"the contract id of the DeliveryOrder, exactly as ticket.issued sent it\" }, \"validUntil\": { \"$ref\": \"#/$defs/timeS\", \"description\": \"= ticket.issued.validUntil\" } } }\n }\n ]\n },\n \"fill.reported\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"txRef\"],\n \"properties\": {\n \"type\": { \"const\": \"fill.reported\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"txRef\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"EVM tx hash or Canton update id\" }\n }\n },\n \"ticket.expired\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"result\"],\n \"properties\": {\n \"type\": { \"const\": \"ticket.expired\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"result\": { \"$ref\": \"#/$defs/expiredResult\" },\n \"exemptReason\": { \"$ref\": \"#/$defs/exemptReason\" }\n },\n \"if\": { \"type\": \"object\", \"properties\": { \"result\": { \"const\": \"EXEMPT\" } }, \"required\": [\"result\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"exemptReason\"], \"properties\": { \"exemptReason\": true } }\n },\n \"order.settled\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"orderHash\", \"payout\", \"fee\", \"penaltyWithheld\", \"txRef\"],\n \"properties\": {\n \"type\": { \"const\": \"order.settled\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"payout\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"fee\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"penaltyWithheld\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"txRef\": { \"type\": \"string\", \"minLength\": 1 }\n }\n },\n \"penalty.applied\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"violationId\", \"code\", \"step\", \"details\"],\n \"properties\": {\n \"type\": { \"const\": \"penalty.applied\" },\n \"violationId\": { \"type\": \"string\", \"minLength\": 1 },\n \"code\": { \"type\": \"string\", \"minLength\": 1 },\n \"step\": { \"$ref\": \"#/$defs/penaltyStep\" },\n \"details\": { \"type\": \"object\" }\n }\n },\n \"fillProof\": {\n \"type\": \"object\",\n \"description\": \"FillProof as the source router hashes it (FILL_PROOF_TYPES, the twelve variant A fields, protocol §3.3), encoded per protocol §3.1: kind, attempt, setId JSON integers; amountDelivered, filledAt decimal strings; fillerId the on-chain form keccak256(utf8(fillerId))\",\n \"required\": [\"kind\", \"orderHash\", \"destination\", \"fillRef\", \"recipient\", \"outputAsset\", \"amountDelivered\", \"filledAt\", \"fillerId\", \"repayTo\", \"attempt\", \"setId\"],\n \"properties\": {\n \"kind\": { \"$ref\": \"#/$defs/uint8\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"destination\": { \"$ref\": \"#/$defs/bytes32\" },\n \"fillRef\": { \"$ref\": \"#/$defs/bytes32\" },\n \"recipient\": { \"$ref\": \"#/$defs/bytes32\" },\n \"outputAsset\": { \"$ref\": \"#/$defs/bytes32\" },\n \"amountDelivered\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"filledAt\": { \"$ref\": \"#/$defs/timeS\" },\n \"fillerId\": { \"$ref\": \"#/$defs/bytes32\", \"description\": \"keccak256(utf8(fillerId)) of the filler that delivered: this filler's\" },\n \"repayTo\": { \"$ref\": \"#/$defs/repayTo\", \"description\": \"the payee of settle, encoded for the source chain: the repayTo of this filler's ticket\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"setId\": { \"$ref\": \"#/$defs/uint32\" }\n }\n },\n \"attestationEvm\": {\n \"type\": \"object\",\n \"description\": \"One attestor signature for an EVM source: EIP-712 over FillProof in the source-router domain; in the payload's order the signature values are the sigs argument of settle\",\n \"required\": [\"signer\", \"signature\"],\n \"properties\": { \"signer\": { \"$ref\": \"#/$defs/address\" }, \"signature\": { \"$ref\": \"#/$defs/sig65\" } }\n },\n \"attestationCanton\": {\n \"type\": \"object\",\n \"description\": \"One attestor signature for a Canton source: the same digest, carried as SwapIntent_SettleWithProof takes it (SigEntry {pubKey, sig}; strip 0x for Daml). signer is the address Daml derives from pubKey\",\n \"required\": [\"signer\", \"pubKey\", \"signature\"],\n \"properties\": {\n \"signer\": { \"$ref\": \"#/$defs/address\" },\n \"pubKey\": { \"type\": \"string\", \"pattern\": \"^0x3056301006072a8648ce3d020106052b8104000a03420004[0-9a-f]{128}$\", \"description\": \"DER SubjectPublicKeyInfo of the uncompressed secp256k1 key (88 bytes), as KMS GetPublicKey returns it\" },\n \"signature\": { \"type\": \"string\", \"pattern\": \"^0x30([0-9a-f]{2}){7,71}$\", \"description\": \"minimal DER ECDSA signature, low-s, no recovery byte\" }\n }\n },\n \"settle.attestations\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"description\": \"≥ threshold attestor signatures over the filler's FillProof (§10 D-N, S-13). Sent once per (orderHash, attempt); GET /v1/filler/attestations/{orderHash} serves the same payload. signatures: at least threshold entries, strictly ascending by signer (not expressible here; settleAttestationsErrors checks it). sourceChainId picks the entry form: eip155 → attestationEvm, canton → attestationCanton\",\n \"allOf\": [\n { \"$ref\": \"#/$defs/s2fBase\" },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"sourceChainId\": { \"type\": \"string\", \"pattern\": \"^canton:\" } }, \"required\": [\"sourceChainId\"] },\n \"then\": { \"type\": \"object\", \"properties\": { \"signatures\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/attestationCanton\" } } } },\n \"else\": { \"type\": \"object\", \"properties\": { \"signatures\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/attestationEvm\" } } } }\n }\n ],\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"sourceChainId\", \"proof\", \"signatures\", \"setId\", \"threshold\", \"refundAfter\"],\n \"properties\": {\n \"type\": { \"const\": \"settle.attestations\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\", \"description\": \"equals proof.attempt\" },\n \"sourceChainId\": { \"$ref\": \"#/$defs/caip2\", \"description\": \"where settle is submitted\" },\n \"proof\": { \"$ref\": \"#/$defs/fillProof\" },\n \"signatures\": { \"type\": \"array\", \"minItems\": 1 },\n \"setId\": { \"$ref\": \"#/$defs/uint32\", \"description\": \"equals proof.setId; EVM: attestationSetFor(orderHash)\" },\n \"threshold\": { \"type\": \"integer\", \"minimum\": 1, \"maximum\": 4294967295, \"description\": \"k of that set\" },\n \"refundAfter\": { \"$ref\": \"#/$defs/timeS\", \"description\": \"from this time settle reverts; the node gets its settle included before it\" }\n }\n },\n \"cantonOp\": {\n \"description\": \"A Canton operation of the filler's own external party on the Cancore participant (protocol §3.19): the backend prepares and submits it, the node signs it with its party key and never talks to a Ledger API. party.allocate creates the party (topology); registry.accept accepts the FillerRegistryEntryProposal of the fillerId; delivery.fill exercises DeliveryOrder_Fill of a Canton ticket issued to the filler; intent.settle exercises SwapIntent_SettleWithProof of a Canton-source order the filler delivered; holdings.transfer moves the party's own holdings to a party it names (TransferFactory_Transfer)\",\n \"anyOf\": [\n { \"enum\": [\"party.allocate\", \"registry.accept\", \"delivery.fill\", \"intent.settle\", \"holdings.transfer\"] },\n { \"type\": \"string\", \"pattern\": \"^[a-z][a-z0-9-]*(\\\\.[a-z][a-z0-9-]*)+$\" }\n ]\n },\n \"operationId\": {\n \"type\": \"string\",\n \"pattern\": \"^[!-~]{1,64}$\",\n \"description\": \"the handle canton.prepared hands out for canton.submit: opaque, 1..64 printable ASCII, valid until expiresAt\"\n },\n \"edPublicKey\": { \"type\": \"string\", \"pattern\": \"^0x[0-9a-f]{64}$\", \"description\": \"the raw 32-byte Ed25519 public key of the filler's Canton party, lowercase hex\" },\n \"edSignature\": { \"type\": \"string\", \"pattern\": \"^0x[0-9a-f]{128}$\", \"description\": \"64-byte Ed25519 signature by the party key over the bytes of a leg's hash, lowercase hex\" },\n \"cantonLegTransaction\": {\n \"type\": \"object\",\n \"description\": \"A prepared Canton transaction to sign. MUST before signing (protocol §3.19): the node recomputes `hash` from `preparedTransaction` with the participant's prepared-transaction hashing of `hashingSchemeVersion`, decodes the transaction and checks it against `summary` for the op of the message — template and choice, acting and receiving parties, instrument, amount; on any difference it does not sign. It signs the 32 hash bytes with its party key\",\n \"required\": [\"legId\", \"kind\", \"hash\", \"preparedTransaction\", \"hashingSchemeVersion\"],\n \"properties\": {\n \"legId\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 128 },\n \"kind\": { \"const\": \"transaction\" },\n \"hash\": { \"type\": \"string\", \"pattern\": \"^0x[0-9a-f]{64}$\", \"description\": \"the 32-byte prepared-transaction hash\" },\n \"preparedTransaction\": {\n \"type\": \"string\",\n \"minLength\": 1,\n \"pattern\": \"^[A-Za-z0-9+/]+={0,2}$\",\n \"description\": \"the prepared transaction (base64 protobuf) the hash is over. Never logged\"\n },\n \"hashingSchemeVersion\": {\n \"type\": \"string\",\n \"pattern\": \"^HASHING_SCHEME_VERSION_V[0-9]+$\",\n \"description\": \"the participant's prepared-transaction hashing scheme the hash was computed with\"\n }\n }\n },\n \"cantonLegTopology\": {\n \"type\": \"object\",\n \"description\": \"The onboarding topology of the filler's party, in `party.allocate` only (a topology leg in any other op is refused by the schema). MUST before signing (protocol §3.19): the node recomputes the multihash over `topologyTransactions` and checks that they create the party of `summary.partyId` with the key of `summary.publicKey` as its only signing key, hosted on the Cancore participant; on any difference it does not sign. It signs the 34 multihash bytes with its party key\",\n \"required\": [\"legId\", \"kind\", \"hash\", \"topologyTransactions\"],\n \"properties\": {\n \"legId\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 128 },\n \"kind\": { \"const\": \"topology\" },\n \"hash\": { \"type\": \"string\", \"pattern\": \"^0x1220[0-9a-f]{64}$\", \"description\": \"the topology multihash: 0x1220 ‖ sha256\" },\n \"topologyTransactions\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": { \"type\": \"string\", \"minLength\": 1, \"pattern\": \"^[A-Za-z0-9+/]+={0,2}$\" },\n \"description\": \"the topology transactions (base64 protobuf) the multihash is over, in order\"\n }\n }\n },\n \"cantonSignature\": {\n \"type\": \"object\",\n \"required\": [\"legId\", \"signature\"],\n \"properties\": { \"legId\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 128 }, \"signature\": { \"$ref\": \"#/$defs/edSignature\" } }\n },\n \"canton.prepare\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"description\": \"Prepare a Canton operation of the sender's own party (§3.19); answered by canton.prepared (re = this id) or error. params select the operation only: the backend picks every contract itself (holdings, delivery order, intent, registry entry, disclosed contracts, attestor signatures). Admission: party.allocate — the fillerId has no party yet, or this key's party; registry.accept — a proposal for the fillerId and its party is live; delivery.fill — an ISSUED Canton ticket of this filler for (orderHash, attempt), before validUntil; intent.settle — a Canton-source order this filler delivered, with attestations held; holdings.transfer — enough unlocked holdings of the asset beyond what the party's open delivery orders need, to a party other than its own. Each prepare prepares afresh and replaces the filler's open operation of the same op and target\",\n \"allOf\": [\n { \"$ref\": \"#/$defs/f2sBase\" },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"party.allocate\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"params\"],\n \"properties\": { \"params\": { \"type\": \"object\", \"required\": [\"publicKey\"], \"properties\": { \"publicKey\": { \"$ref\": \"#/$defs/edPublicKey\" } } } }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"registry.accept\" } }, \"required\": [\"op\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"params\"], \"properties\": { \"params\": { \"type\": \"object\" } } }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"delivery.fill\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"params\"],\n \"properties\": {\n \"params\": {\n \"type\": \"object\",\n \"required\": [\"orderHash\", \"attempt\"],\n \"properties\": { \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" }, \"attempt\": { \"$ref\": \"#/$defs/uint32\" } }\n }\n }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"intent.settle\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"params\"],\n \"properties\": { \"params\": { \"type\": \"object\", \"required\": [\"orderHash\"], \"properties\": { \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" } } } }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"holdings.transfer\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"params\"],\n \"properties\": {\n \"params\": {\n \"type\": \"object\",\n \"required\": [\"asset\", \"amount\", \"toParty\"],\n \"properties\": {\n \"asset\": { \"$ref\": \"#/$defs/cantonAsset\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"Daml Decimal, > 0\" },\n \"toParty\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 255, \"description\": \"the receiving Canton party; never the filler's own\" }\n }\n }\n }\n }\n }\n ],\n \"required\": [\"type\", \"op\", \"params\"],\n \"properties\": { \"type\": { \"const\": \"canton.prepare\" }, \"op\": { \"$ref\": \"#/$defs/cantonOp\" }, \"params\": { \"type\": \"object\" } }\n },\n \"canton.prepared\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"description\": \"A prepared operation. The node MUST verify every leg before it signs it (cantonLegTransaction, cantonLegTopology): what it signs is what Cancore assembled, and summary is only what Cancore says about it — a leg that does not match summary, or summary that does not match what the node expects of the op, is not signed. Topology legs come with party.allocate only; every other op prepares transactions. Then the node signs every leg's hash with its party key and sends canton.submit before expiresAt. An operationId stays valid until its own expiresAt whatever is prepared after it\",\n \"allOf\": [\n { \"$ref\": \"#/$defs/s2fBase\" },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"party.allocate\" } }, \"required\": [\"op\"] },\n \"then\": { \"type\": \"object\", \"properties\": { \"legs\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/cantonLegTopology\" } } } },\n \"else\": { \"type\": \"object\", \"properties\": { \"legs\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/cantonLegTransaction\" } } } }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"party.allocate\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"summary\"],\n \"properties\": {\n \"summary\": {\n \"type\": \"object\",\n \"required\": [\"partyId\", \"publicKey\", \"hosting\"],\n \"properties\": {\n \"partyId\": { \"type\": \"string\", \"minLength\": 1 },\n \"publicKey\": { \"$ref\": \"#/$defs/edPublicKey\" },\n \"hosting\": {\n \"type\": \"object\",\n \"required\": [\"participantUid\", \"permission\", \"threshold\"],\n \"description\": \"how the topology hosts the party: on the Cancore participant alone, with Confirmation permission, threshold 1 — the node checks the decoded topology against it\",\n \"properties\": { \"participantUid\": { \"type\": \"string\", \"minLength\": 1 }, \"permission\": { \"const\": \"CONFIRMATION\" }, \"threshold\": { \"const\": 1 } }\n }\n }\n }\n }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"registry.accept\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"summary\"],\n \"properties\": {\n \"summary\": {\n \"type\": \"object\",\n \"required\": [\"fillerId\", \"party\", \"operator\", \"proposalCid\"],\n \"properties\": {\n \"fillerId\": { \"$ref\": \"#/$defs/fillerId\" },\n \"party\": { \"type\": \"string\", \"minLength\": 1 },\n \"operator\": { \"type\": \"string\", \"minLength\": 1 },\n \"proposalCid\": { \"type\": \"string\", \"minLength\": 1 }\n }\n }\n }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"delivery.fill\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"summary\"],\n \"properties\": {\n \"summary\": {\n \"type\": \"object\",\n \"required\": [\n \"orderHash\",\n \"attempt\",\n \"deliveryOrderCid\",\n \"recipient\",\n \"asset\",\n \"amount\",\n \"repayTo\",\n \"validUntil\",\n \"inputHoldingCids\",\n \"executeBefore\",\n \"transferFactoryCid\"\n ],\n \"properties\": {\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"deliveryOrderCid\": { \"type\": \"string\", \"minLength\": 1 },\n \"recipient\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"the Canton party the order delivers to\" },\n \"asset\": { \"$ref\": \"#/$defs/cantonAsset\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"DeliveryOrder.amount, Daml Decimal\" },\n \"repayTo\": { \"$ref\": \"#/$defs/repayTo\" },\n \"validUntil\": { \"$ref\": \"#/$defs/timeS\" },\n \"inputHoldingCids\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": { \"type\": \"string\", \"minLength\": 1 },\n \"description\": \"the party's holdings the transfer spends; whatever they hold beyond amount comes back as change\"\n },\n \"executeBefore\": { \"$ref\": \"#/$defs/timeS\", \"description\": \"the transfer's executeBefore: the order's fillDeadline\" },\n \"transferFactoryCid\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"the registry factory the order pins\" }\n }\n }\n }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"intent.settle\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"summary\"],\n \"properties\": {\n \"summary\": {\n \"type\": \"object\",\n \"required\": [\"orderHash\", \"intentCid\", \"asset\", \"amount\", \"executeBefore\", \"payee\", \"giveAmount\", \"fee\"],\n \"properties\": {\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"intentCid\": { \"type\": \"string\", \"minLength\": 1 },\n \"asset\": { \"$ref\": \"#/$defs/cantonAsset\" },\n \"amount\": {\n \"type\": \"string\",\n \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\",\n \"description\": \"what the settlement pays the payee: giveAmount less fee.amount, Daml Decimal\"\n },\n \"executeBefore\": { \"$ref\": \"#/$defs/timeS\" },\n \"payee\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"the party paid: the filler's own\" },\n \"giveAmount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"the intent's committed give, fee-inclusive\" },\n \"fee\": {\n \"type\": \"object\",\n \"required\": [\"receiver\", \"amount\"],\n \"properties\": {\n \"receiver\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"the operator party\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\" }\n },\n \"description\": \"the settlement's fee leg; amount 0 when there is none\"\n }\n }\n }\n }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"holdings.transfer\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"summary\"],\n \"properties\": {\n \"summary\": {\n \"type\": \"object\",\n \"required\": [\"asset\", \"amount\", \"receiver\", \"inputHoldingCids\", \"executeBefore\"],\n \"properties\": {\n \"asset\": { \"$ref\": \"#/$defs/cantonAsset\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\" },\n \"receiver\": { \"type\": \"string\", \"minLength\": 1 },\n \"inputHoldingCids\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": { \"type\": \"string\", \"minLength\": 1 },\n \"description\": \"the party's holdings the transfer spends; what they hold beyond amount comes back as change\"\n },\n \"executeBefore\": { \"$ref\": \"#/$defs/timeS\" }\n }\n }\n }\n }\n }\n ],\n \"required\": [\"type\", \"re\", \"operationId\", \"op\", \"legs\", \"summary\", \"expiresAt\"],\n \"properties\": {\n \"type\": { \"const\": \"canton.prepared\" },\n \"re\": { \"$ref\": \"#/$defs/messageId\" },\n \"operationId\": { \"$ref\": \"#/$defs/operationId\" },\n \"op\": { \"$ref\": \"#/$defs/cantonOp\" },\n \"legs\": { \"type\": \"array\", \"minItems\": 1 },\n \"summary\": { \"type\": \"object\" },\n \"expiresAt\": { \"$ref\": \"#/$defs/timeMs\" }\n }\n },\n \"canton.submit\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"description\": \"Submit a prepared operation: one party-key signature per leg. Idempotent per operationId: a repeat (after a lost answer or CANTON_UNAVAILABLE) is answered with the same canton.submitted and never executes twice. OPERATION_EXPIRED: prepare again\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"operationId\", \"signatures\"],\n \"properties\": {\n \"type\": { \"const\": \"canton.submit\" },\n \"operationId\": { \"$ref\": \"#/$defs/operationId\" },\n \"signatures\": { \"type\": \"array\", \"minItems\": 1, \"items\": { \"$ref\": \"#/$defs/cantonSignature\" } }\n }\n },\n \"canton.submitted\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"description\": \"The operation committed. updateId is its Canton update (absent for party.allocate, a topology change); result names what it created, by op\",\n \"allOf\": [\n { \"$ref\": \"#/$defs/s2fBase\" },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"party.allocate\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"result\"],\n \"properties\": { \"result\": { \"type\": \"object\", \"required\": [\"partyId\"], \"properties\": { \"partyId\": { \"type\": \"string\", \"minLength\": 1 } } } }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"registry.accept\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"result\"],\n \"properties\": { \"result\": { \"type\": \"object\", \"required\": [\"entryCid\"], \"properties\": { \"entryCid\": { \"type\": \"string\", \"minLength\": 1 } } } }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"delivery.fill\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"result\"],\n \"properties\": { \"result\": { \"type\": \"object\", \"required\": [\"receiptCid\"], \"properties\": { \"receiptCid\": { \"type\": \"string\", \"minLength\": 1 } } } }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"intent.settle\" } }, \"required\": [\"op\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"result\"], \"properties\": { \"result\": { \"type\": \"object\" } } }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"holdings.transfer\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"result\"],\n \"properties\": {\n \"result\": {\n \"type\": \"object\",\n \"required\": [\"outcome\"],\n \"properties\": {\n \"outcome\": {\n \"anyOf\": [{ \"enum\": [\"COMPLETED\", \"PENDING\"] }, { \"$ref\": \"#/$defs/futureEnumValue\" }],\n \"description\": \"COMPLETED: the receiver holds it (a preapproval accepted it); PENDING: a TransferInstruction waits for the receiver to accept\"\n },\n \"transferInstructionCid\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"with PENDING\" }\n }\n }\n }\n }\n }\n ],\n \"required\": [\"type\", \"re\", \"operationId\", \"op\", \"result\"],\n \"properties\": {\n \"type\": { \"const\": \"canton.submitted\" },\n \"re\": { \"$ref\": \"#/$defs/messageId\" },\n \"operationId\": { \"$ref\": \"#/$defs/operationId\" },\n \"op\": { \"$ref\": \"#/$defs/cantonOp\" },\n \"updateId\": { \"type\": \"string\", \"minLength\": 1 },\n \"result\": { \"type\": \"object\" }\n }\n }\n }\n}\n","{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://cancore.io/schemas/filler-protocol/v1/records.schema.json\",\n \"title\": \"Cancore filler protocol v1 — public records\",\n \"$comment\": \"The draw record (GET /v1/draws/{orderHash}), the epoch record (GET /v1/draws/epochs/{id}) — auction-and-draw §3.3–3.4 — and the gateway identity (GET /v1/gateway). Records are signed by the gateway like an S→F frame (sig over GatewayMessage{keccak256(JCS(record without sig))}) but are public: no fillerId, no sentAt.\",\n \"$defs\": {\n \"drawCandidate\": {\n \"type\": \"object\",\n \"required\": [\"fillerId\", \"weight\"],\n \"properties\": { \"fillerId\": { \"$ref\": \"messages.schema.json#/$defs/fillerId\" }, \"weight\": { \"$ref\": \"messages.schema.json#/$defs/uintDec256\" } }\n },\n \"drawAttempt\": {\n \"type\": \"object\",\n \"required\": [\"attempt\", \"tBase\", \"closedBy\", \"drandRound\", \"drandRandomness\", \"drandSignature\", \"candidates\", \"r\", \"winnerFillerId\", \"fallbackReason\"],\n \"properties\": {\n \"attempt\": { \"$ref\": \"messages.schema.json#/$defs/uint32\" },\n \"tBase\": { \"$ref\": \"messages.schema.json#/$defs/timeS\" },\n \"closedBy\": { \"anyOf\": [{ \"enum\": [\"OFFER_TIMEOUT\", \"OFFER_DECLINE\", \"TICKET_DECLINE\", \"TICKET_EXPIRED\", \"FILLED\", null] }, { \"$ref\": \"messages.schema.json#/$defs/futureEnumValue\" }] },\n \"drandRound\": { \"$ref\": \"messages.schema.json#/$defs/uintDec64\" },\n \"drandRandomness\": { \"$ref\": \"messages.schema.json#/$defs/bytes32\" },\n \"drandSignature\": { \"type\": \"string\", \"pattern\": \"^0x[0-9a-f]{96}$\", \"description\": \"BLS signature of the round, 48 bytes (G1)\" },\n \"candidates\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/drawCandidate\" }, \"description\": \"ascending by the UTF-8 bytes of fillerId (A-22)\" },\n \"r\": { \"$ref\": \"messages.schema.json#/$defs/uintDec256\" },\n \"winnerFillerId\": { \"$ref\": \"messages.schema.json#/$defs/fillerId\" },\n \"fallbackReason\": { \"anyOf\": [{ \"enum\": [\"DRAW_FALLBACK\", null] }, { \"$ref\": \"messages.schema.json#/$defs/futureEnumValue\" }] }\n }\n },\n \"drawRecord\": {\n \"type\": \"object\",\n \"required\": [\"orderHash\", \"source\", \"openRef\", \"t0\", \"epochId\", \"deltaDrand\", \"attempts\", \"sig\"],\n \"properties\": {\n \"orderHash\": { \"$ref\": \"messages.schema.json#/$defs/bytes32\" },\n \"source\": { \"$ref\": \"messages.schema.json#/$defs/caip2\" },\n \"openRef\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"EVM: open tx hash; Canton: Execute update id\" },\n \"t0\": { \"$ref\": \"messages.schema.json#/$defs/timeS\" },\n \"epochId\": { \"$ref\": \"messages.schema.json#/$defs/uintDec64\" },\n \"deltaDrand\": { \"$ref\": \"messages.schema.json#/$defs/uint32\", \"description\": \"seconds\" },\n \"attempts\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/drawAttempt\" } },\n \"sig\": { \"$ref\": \"messages.schema.json#/$defs/sig65\" }\n }\n },\n \"epochLeaf\": {\n \"type\": \"object\",\n \"description\": \"StandardMerkleTree leaf [\\\"string\\\", \\\"uint256\\\", \\\"uint8\\\", \\\"uint16\\\"] = (fillerId, base, tier, reliabilityBps)\",\n \"required\": [\"fillerId\", \"base\", \"tier\", \"reliabilityBps\"],\n \"properties\": {\n \"fillerId\": { \"$ref\": \"messages.schema.json#/$defs/fillerId\" },\n \"base\": { \"$ref\": \"messages.schema.json#/$defs/uintDec256\" },\n \"tier\": { \"$ref\": \"messages.schema.json#/$defs/uint8\" },\n \"reliabilityBps\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 10000 }\n }\n },\n \"stakeStep\": {\n \"type\": \"object\",\n \"required\": [\"tier\", \"minStake\", \"step\"],\n \"properties\": {\n \"tier\": { \"$ref\": \"messages.schema.json#/$defs/uint8\" },\n \"minStake\": { \"$ref\": \"messages.schema.json#/$defs/uintDec256\" },\n \"step\": { \"$ref\": \"messages.schema.json#/$defs/uintDec256\" }\n }\n },\n \"epochRecord\": {\n \"type\": \"object\",\n \"required\": [\"epochId\", \"startsAt\", \"endsAt\", \"weightsRoot\", \"leaves\", \"stakeSteps\", \"rMinBps\", \"snapshotBlocks\", \"sig\"],\n \"properties\": {\n \"epochId\": { \"$ref\": \"messages.schema.json#/$defs/uintDec64\" },\n \"startsAt\": { \"$ref\": \"messages.schema.json#/$defs/timeS\" },\n \"endsAt\": { \"$ref\": \"messages.schema.json#/$defs/timeS\" },\n \"weightsRoot\": { \"$ref\": \"messages.schema.json#/$defs/bytes32\" },\n \"leaves\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/epochLeaf\" } },\n \"stakeSteps\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/stakeStep\" } },\n \"rMinBps\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 10000 },\n \"snapshotBlocks\": {\n \"type\": \"object\",\n \"propertyNames\": { \"$ref\": \"messages.schema.json#/$defs/caip2\" },\n \"additionalProperties\": { \"$ref\": \"messages.schema.json#/$defs/uintDec64\" }\n },\n \"sig\": { \"$ref\": \"messages.schema.json#/$defs/sig65\" }\n }\n },\n \"gatewayInfo\": {\n \"type\": \"object\",\n \"description\": \"GET /v1/gateway: the mirror of @cancore/contracts FILLER_GATEWAYS for this environment. A taker trusts the package, and uses this to notice a rotation\",\n \"required\": [\"env\", \"gateway\", \"ticketSigners\", \"protocolVersion\", \"maxMessageAgeMs\"],\n \"properties\": {\n \"env\": { \"type\": \"string\", \"minLength\": 1 },\n \"gateway\": { \"$ref\": \"messages.schema.json#/$defs/address\" },\n \"ticketSigners\": { \"type\": \"array\", \"items\": { \"$ref\": \"messages.schema.json#/$defs/address\" } },\n \"protocolVersion\": { \"$ref\": \"messages.schema.json#/$defs/protocolVersion\" },\n \"maxMessageAgeMs\": { \"$ref\": \"messages.schema.json#/$defs/durationMs\", \"description\": \"freshness bound of §3.4 in both directions: |receivedAt − sentAt| ≤ maxMessageAgeMs, and a message id is not reused within it\" }\n }\n }\n }\n}\n","{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://cancore.io/schemas/filler-protocol/v1/rest.schema.json\",\n \"title\": \"Cancore filler protocol v1 — REST fallback\",\n \"$comment\": \"protocol §3.6. Bodies are the WebSocket frames: every request body is a filler message with its envelope (id, fillerId, sentAt) and msgSig, verified before processing as on the WebSocket (S-19); every response is a freshly signed S→F message. Login: GET /v1/filler/auth/challenge?fillerId= returns a signed auth.challenge addressed to that fillerId; POST /v1/filler/auth with the auth.response (FillerAuth over it) returns {token, expiresAt}. The challenge route is anonymous and its refusals are UNSIGNED (unsignedErrorBody, no sig, nothing journalled): 400 BAD_REQUEST — fillerId missing or not a fillerId; 404 UNKNOWN_REQUEST — fillerId unknown or not ACTIVE; the anonymous login steps are charged to no fillerId's rate limits (knowing a fillerId cannot lock its filler out); a 429 here comes only from the per-IP limit in front of filler-gateway. POST /v1/filler/auth refuses UNSIGNED too as long as it has checked no signature: 400 BAD_REQUEST — no or a malformed fillerId; 404 UNKNOWN_REQUEST — fillerId unknown or not ACTIVE; 401 UNAUTHENTICATED — the fillerId holds no live challenge (evicted, expired or used: ask for a new one). Its refusals after the signature checks (BAD_SIGNATURE, STALE_MESSAGE, REPLAYED_MESSAGE, UNSUPPORTED_VERSION, NOT_ELIGIBLE, UNAUTHENTICATED) are the signed error. The other /v1/filler/* routes need `Authorization: Bearer <token>`; the token is bound to (fillerId, message key) and stops working when it expires, when the message key is changed, or when the filler is no longer ACTIVE. The same token opens the WebSocket (asyncapi.json: offered as the subprotocol bearer.<token>). A ticket of another filler is 404 UNKNOWN_TICKET. Rate limits are per fillerId and rate class (quote, ticket, service, read for every bearer GET, login, cantonPrepare for canton.prepare of §3.19 — an hourly budget per filler, 60 by default — and canton for canton.submit, so a spent prepare budget never holds back the submit of an operation already prepared), shared by REST and every WebSocket session of it: over the limit a bearer route answers 429 with an UNSIGNED unsignedErrorBody {type: error, code: RATE_LIMITED, message, retryAfterMs} and a Retry-After header (seconds, rounded up), journals nothing one by one, and the request changes nothing; during the cooldown after sustained excess every bearer route answers so. Every 429 is unsigned, on every route; a filler decides by the status and takes retryAfterMs (else Retry-After) as a hint. Every other non-2xx of a bearer route is the signed error. GET /v1/filler/attestations/{orderHash} answers 404 ATTESTATIONS_NOT_READY until the gateway holds ≥ threshold verified signatures for this filler's fill, and 404 UNKNOWN_TICKET when this filler holds no ticket on the order. /v1/filler/canton/* (§3.19) serve only the caller's own party: POST prepare and submit take the canton.prepare and canton.submit messages and answer canton.prepared and canton.submitted (the same frames as on the WebSocket); GET party, holdings, delivery-orders and intents/{orderHash} read the party registered for the fillerId, and answer 409 CANTON_NOT_READY while it has none; intents/{orderHash} answers 404 UNKNOWN_TICKET when no live SwapIntent with that orderHash names the party. /v1/draws/* and /v1/gateway are public. Every non-2xx body is the signed `error` frame, with the HTTP status of x-error-status — except a 429 (always unsignedErrorBody) and the unsigned refusals of an endpoint that names an errorBody. x-endpoints: request/query/response/errorBody name a $def here or in messages.schema.json.\",\n \"x-endpoints\": [\n { \"method\": \"GET\", \"path\": \"/v1/filler/auth/challenge\", \"auth\": \"none\", \"query\": \"#/$defs/challengeQuery\", \"response\": \"messages.schema.json#/$defs/auth.challenge\", \"errorBody\": \"#/$defs/unsignedErrorBody\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/auth\", \"auth\": \"none\", \"request\": \"messages.schema.json#/$defs/auth.response\", \"response\": \"#/$defs/authToken\", \"errorBody\": \"#/$defs/unsignedErrorBody\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/tickets\", \"auth\": \"bearer\", \"query\": \"#/$defs/ticketListQuery\", \"response\": \"#/$defs/ticketList\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/tickets/{orderHash}/{attempt}/intent\", \"auth\": \"bearer\", \"request\": \"messages.schema.json#/$defs/ticket.intent\", \"response\": \"messages.schema.json#/$defs/ticket.intent.ack\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/tickets/{orderHash}/{attempt}/receipt\", \"auth\": \"bearer\", \"request\": \"messages.schema.json#/$defs/ticket.receipt\", \"response\": \"#/$defs/empty\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/tickets/{orderHash}/{attempt}/decline\", \"auth\": \"bearer\", \"request\": \"messages.schema.json#/$defs/ticket.decline\", \"response\": \"#/$defs/empty\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/stake-bindings\", \"auth\": \"bearer\", \"request\": \"#/$defs/stakeBindingRequest\", \"response\": \"#/$defs/empty\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/quotes\", \"auth\": \"bearer\", \"query\": \"#/$defs/quoteListQuery\", \"response\": \"#/$defs/quoteList\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/stats\", \"auth\": \"bearer\", \"response\": \"#/$defs/fillerStats\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/penalties\", \"auth\": \"bearer\", \"query\": \"#/$defs/pageQuery\", \"response\": \"#/$defs/penaltyList\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/attestations/{orderHash}\", \"auth\": \"bearer\", \"response\": \"messages.schema.json#/$defs/settle.attestations\" },\n { \"method\": \"GET\", \"path\": \"/v1/draws/{orderHash}\", \"auth\": \"none\", \"response\": \"records.schema.json#/$defs/drawRecord\" },\n { \"method\": \"GET\", \"path\": \"/v1/draws/epochs/{id}\", \"auth\": \"none\", \"response\": \"records.schema.json#/$defs/epochRecord\" },\n { \"method\": \"GET\", \"path\": \"/v1/gateway\", \"auth\": \"none\", \"response\": \"records.schema.json#/$defs/gatewayInfo\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/canton/prepare\", \"auth\": \"bearer\", \"request\": \"messages.schema.json#/$defs/canton.prepare\", \"response\": \"messages.schema.json#/$defs/canton.prepared\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/canton/submit\", \"auth\": \"bearer\", \"request\": \"messages.schema.json#/$defs/canton.submit\", \"response\": \"messages.schema.json#/$defs/canton.submitted\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/canton/party\", \"auth\": \"bearer\", \"response\": \"#/$defs/cantonParty\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/canton/holdings\", \"auth\": \"bearer\", \"query\": \"#/$defs/pageQuery\", \"response\": \"#/$defs/cantonHoldingList\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/canton/delivery-orders\", \"auth\": \"bearer\", \"query\": \"#/$defs/pageQuery\", \"response\": \"#/$defs/cantonDeliveryOrderList\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/canton/intents/{orderHash}\", \"auth\": \"bearer\", \"response\": \"#/$defs/cantonIntent\" }\n ],\n \"x-error-status\": {\n \"BAD_REQUEST\": 400, \"UNAUTHENTICATED\": 401, \"UNSUPPORTED_VERSION\": 400, \"UNSUPPORTED_TYPE\": 400, \"BAD_SIGNATURE\": 422,\n \"STALE_MESSAGE\": 400, \"REPLAYED_MESSAGE\": 409, \"TICKET_REFUSED\": 409, \"UNKNOWN_REQUEST\": 404, \"UNKNOWN_TICKET\": 404, \"TICKET_CLOSED\": 409, \"NOT_ELIGIBLE\": 403, \"RATE_LIMITED\": 429, \"INTERNAL\": 500,\n \"ATTESTATIONS_NOT_READY\": 404, \"CANTON_NOT_READY\": 409, \"CANTON_REFUSED\": 422, \"CANTON_UNAVAILABLE\": 503, \"OPERATION_EXPIRED\": 410\n },\n \"$defs\": {\n \"errorBody\": { \"$ref\": \"messages.schema.json#/$defs/errorS2F\" },\n \"unsignedErrorBody\": {\n \"type\": \"object\",\n \"description\": \"An unsigned refusal: every 429, and the refusals of the login routes decided before any signature check. Not signed, not addressed, nothing journalled; a filler cannot verify it and treats it as a hint only (status, code, retryAfterMs)\",\n \"required\": [\"type\", \"code\", \"message\"],\n \"properties\": {\n \"type\": { \"const\": \"error\" },\n \"code\": { \"$ref\": \"messages.schema.json#/$defs/errorCode\" },\n \"message\": { \"type\": \"string\" },\n \"retryAfterMs\": { \"$ref\": \"messages.schema.json#/$defs/durationMs\", \"type\": \"integer\", \"minimum\": 1, \"description\": \"with RATE_LIMITED (429): ms until the rate class may be used again\" }\n }\n },\n \"challengeQuery\": {\n \"type\": \"object\",\n \"required\": [\"fillerId\"],\n \"properties\": { \"fillerId\": { \"$ref\": \"messages.schema.json#/$defs/fillerId\", \"description\": \"the filler logging in; the challenge is addressed to it and answerable only by it\" } }\n },\n \"empty\": { \"type\": \"object\", \"description\": \"no fields in v1; receivers ignore unknown ones (V-2)\" },\n \"authToken\": {\n \"type\": \"object\",\n \"required\": [\"token\", \"expiresAt\"],\n \"properties\": { \"token\": { \"type\": \"string\", \"minLength\": 1 }, \"expiresAt\": { \"$ref\": \"messages.schema.json#/$defs/timeMs\" } }\n },\n \"pageQuery\": {\n \"type\": \"object\",\n \"properties\": { \"cursor\": { \"type\": \"string\", \"minLength\": 1 }, \"limit\": { \"type\": \"string\", \"pattern\": \"^([1-9][0-9]?|100)$\", \"description\": \"1..100, default 50\" } }\n },\n \"ticketListQuery\": {\n \"allOf\": [{ \"$ref\": \"#/$defs/pageQuery\" }],\n \"type\": \"object\",\n \"properties\": { \"status\": { \"enum\": [\"OFFERED\", \"ISSUED\"], \"description\": \"a request filter: the gateway owns the list, so it is closed\" } }\n },\n \"quoteListQuery\": {\n \"allOf\": [{ \"$ref\": \"#/$defs/pageQuery\" }],\n \"type\": \"object\",\n \"properties\": { \"since\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)$\", \"description\": \"unix ms\" } }\n },\n \"ticketList\": {\n \"type\": \"object\",\n \"required\": [\"items\", \"nextCursor\"],\n \"properties\": {\n \"items\": {\n \"type\": \"array\",\n \"items\": { \"oneOf\": [{ \"$ref\": \"messages.schema.json#/$defs/ticket.offer\" }, { \"$ref\": \"messages.schema.json#/$defs/ticket.issued\" }] }\n },\n \"nextCursor\": { \"type\": [\"string\", \"null\"] }\n }\n },\n \"stakeBindingRequest\": {\n \"type\": \"object\",\n \"description\": \"sig = StakeBinding{partnerId, stakingAddress, chainId, nonce} by the staking address; the body carries the filler envelope and msgSig like every request body\",\n \"allOf\": [{ \"$ref\": \"messages.schema.json#/$defs/f2sEnvelope\" }],\n \"required\": [\"partnerId\", \"stakingAddress\", \"chainId\", \"nonce\", \"sig\"],\n \"properties\": {\n \"partnerId\": { \"$ref\": \"messages.schema.json#/$defs/fillerId\" },\n \"stakingAddress\": { \"$ref\": \"messages.schema.json#/$defs/address\" },\n \"chainId\": { \"$ref\": \"messages.schema.json#/$defs/uintDec256\" },\n \"nonce\": { \"$ref\": \"messages.schema.json#/$defs/uintDec64\" },\n \"sig\": { \"$ref\": \"messages.schema.json#/$defs/sig65\" }\n }\n },\n \"quoteRecord\": {\n \"type\": \"object\",\n \"required\": [\"quote\", \"ack\", \"status\"],\n \"properties\": {\n \"quote\": { \"$ref\": \"messages.schema.json#/$defs/quote\" },\n \"ack\": { \"$ref\": \"messages.schema.json#/$defs/quote.ack\" },\n \"status\": { \"anyOf\": [{ \"enum\": [\"COUNTED\", \"LATE\", \"SHORT_TTL\", \"REPLACED\", \"BAD_SIG\", \"OUTLIER\", \"IN_BAND\", \"OUT_OF_BAND\", \"WON\", \"LOST\"] }, { \"$ref\": \"messages.schema.json#/$defs/futureEnumValue\" }] }\n }\n },\n \"quoteList\": {\n \"type\": \"object\",\n \"required\": [\"items\", \"nextCursor\"],\n \"properties\": { \"items\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/quoteRecord\" } }, \"nextCursor\": { \"type\": [\"string\", \"null\"] } }\n },\n \"fillerStats\": {\n \"type\": \"object\",\n \"required\": [\"won\", \"delivered\", \"noShow\", \"reliability\", \"capacityUsd\", \"inFlightUsd\"],\n \"properties\": {\n \"won\": { \"type\": \"integer\", \"minimum\": 0 },\n \"delivered\": { \"type\": \"integer\", \"minimum\": 0 },\n \"noShow\": { \"type\": \"integer\", \"minimum\": 0 },\n \"reliability\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 10000, \"description\": \"basis points\" },\n \"capacityUsd\": { \"$ref\": \"messages.schema.json#/$defs/intDecUsd\" },\n \"inFlightUsd\": { \"$ref\": \"messages.schema.json#/$defs/intDecUsd\" }\n }\n },\n \"penaltyRecord\": {\n \"type\": \"object\",\n \"required\": [\"violationId\", \"code\", \"step\", \"at\", \"details\"],\n \"properties\": {\n \"violationId\": { \"type\": \"string\", \"minLength\": 1 },\n \"code\": { \"type\": \"string\", \"minLength\": 1 },\n \"step\": { \"$ref\": \"messages.schema.json#/$defs/penaltyStep\" },\n \"orderHash\": { \"$ref\": \"messages.schema.json#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"messages.schema.json#/$defs/uint32\" },\n \"at\": { \"$ref\": \"messages.schema.json#/$defs/timeMs\" },\n \"details\": { \"type\": \"object\" }\n }\n },\n \"penaltyList\": {\n \"type\": \"object\",\n \"required\": [\"items\", \"nextCursor\"],\n \"properties\": { \"items\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/penaltyRecord\" } }, \"nextCursor\": { \"type\": [\"string\", \"null\"] } }\n },\n \"cantonParty\": {\n \"type\": \"object\",\n \"description\": \"The filler's Canton party and its FillerRegistryEntry with the operator. party null: none allocated or registered yet (party.allocate). registry.state NONE: no proposal yet; PROPOSED: accept it (registry.accept); ACTIVE: the Canton routes may be activated; REMOVED: staff removed the entry\",\n \"required\": [\"party\", \"publicKey\", \"registry\"],\n \"properties\": {\n \"party\": { \"type\": [\"string\", \"null\"], \"minLength\": 1 },\n \"publicKey\": { \"anyOf\": [{ \"$ref\": \"messages.schema.json#/$defs/edPublicKey\" }, { \"type\": \"null\" }] },\n \"registry\": {\n \"type\": \"object\",\n \"required\": [\"state\", \"proposalCid\", \"entryCid\"],\n \"properties\": {\n \"state\": { \"anyOf\": [{ \"enum\": [\"NONE\", \"PROPOSED\", \"ACTIVE\", \"REMOVED\"] }, { \"$ref\": \"messages.schema.json#/$defs/futureEnumValue\" }] },\n \"proposalCid\": { \"type\": [\"string\", \"null\"] },\n \"entryCid\": { \"type\": [\"string\", \"null\"] }\n }\n }\n }\n },\n \"cantonHolding\": {\n \"type\": \"object\",\n \"required\": [\"contractId\", \"asset\", \"amount\", \"locked\"],\n \"properties\": {\n \"contractId\": { \"type\": \"string\", \"minLength\": 1 },\n \"asset\": { \"$ref\": \"messages.schema.json#/$defs/cantonAsset\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"Daml Decimal\" },\n \"locked\": { \"type\": \"boolean\", \"description\": \"held by a lock (an allocation or a pending transfer); not spendable by delivery.fill\" }\n }\n },\n \"cantonHoldingList\": {\n \"type\": \"object\",\n \"description\": \"Holdings of the party (CNRX and Canton Coin among them), oldest first\",\n \"required\": [\"items\", \"nextCursor\"],\n \"properties\": { \"items\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/cantonHolding\" } }, \"nextCursor\": { \"type\": [\"string\", \"null\"] } }\n },\n \"cantonDeliveryOrder\": {\n \"type\": \"object\",\n \"required\": [\"deliveryOrderCid\", \"orderHash\", \"attempt\", \"asset\", \"amount\", \"recipient\", \"repayTo\", \"validUntil\"],\n \"properties\": {\n \"deliveryOrderCid\": { \"type\": \"string\", \"minLength\": 1 },\n \"orderHash\": { \"$ref\": \"messages.schema.json#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"messages.schema.json#/$defs/uint32\" },\n \"asset\": { \"$ref\": \"messages.schema.json#/$defs/cantonAsset\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"Daml Decimal\" },\n \"recipient\": { \"type\": \"string\", \"minLength\": 1 },\n \"repayTo\": { \"$ref\": \"messages.schema.json#/$defs/repayTo\" },\n \"validUntil\": { \"$ref\": \"messages.schema.json#/$defs/timeS\" }\n }\n },\n \"cantonDeliveryOrderList\": {\n \"type\": \"object\",\n \"description\": \"The live DeliveryOrders naming the party as filler, oldest first\",\n \"required\": [\"items\", \"nextCursor\"],\n \"properties\": { \"items\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/cantonDeliveryOrder\" } }, \"nextCursor\": { \"type\": [\"string\", \"null\"] } }\n },\n \"cantonIntent\": {\n \"type\": \"object\",\n \"description\": \"A live SwapIntent of a Canton source that names the caller's party as its filler, as that party sees it (an observer), with its committed allocation as the operator reads it (an executor). What the node checks before ticket.receipt (fillers.md V-C1…V-C6); the node recomputes orderHash from these fields itself. 404 UNKNOWN_TICKET when no live SwapIntent with this orderHash names the party; 409 CANTON_NOT_READY when the fillerId has no party\",\n \"required\": [\"intentCid\", \"templateId\", \"orderHash\", \"owner\", \"operator\", \"filler\", \"fillerId\", \"requestId\", \"asset\", \"amount\", \"destination\", \"minReceived\", \"feeRate\", \"fillDeadline\", \"refundAfter\", \"orderCreatedAt\", \"allocationCid\", \"allocation\"],\n \"properties\": {\n \"intentCid\": { \"type\": \"string\", \"minLength\": 1 },\n \"templateId\": { \"type\": \"string\", \"pattern\": \"^[0-9a-f]{64}:[A-Za-z0-9_.]+:[A-Za-z0-9_]+$\", \"description\": \"<package id>:Intent.SwapIntent:SwapIntent\" },\n \"orderHash\": { \"$ref\": \"messages.schema.json#/$defs/bytes32\" },\n \"owner\": { \"type\": \"string\", \"minLength\": 1 },\n \"operator\": { \"type\": \"string\", \"minLength\": 1 },\n \"filler\": { \"type\": \"string\", \"minLength\": 1 },\n \"fillerId\": { \"type\": \"string\", \"minLength\": 1 },\n \"requestId\": { \"type\": \"string\", \"minLength\": 1 },\n \"asset\": { \"$ref\": \"messages.schema.json#/$defs/cantonAsset\", \"description\": \"SwapIntent.instrumentId\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"Daml Decimal: the committed give, fee-inclusive\" },\n \"destination\": {\n \"type\": \"object\",\n \"description\": \"an EVM destination (Destination.Evm); an intent to any other destination is not served\",\n \"required\": [\"chainId\", \"token\", \"recipient\"],\n \"properties\": {\n \"chainId\": { \"$ref\": \"messages.schema.json#/$defs/uintDec64\" },\n \"token\": { \"$ref\": \"messages.schema.json#/$defs/address\" },\n \"recipient\": { \"$ref\": \"messages.schema.json#/$defs/address\" }\n }\n },\n \"minReceived\": {\n \"type\": \"object\",\n \"required\": [\"units\", \"decimals\"],\n \"properties\": { \"units\": { \"$ref\": \"messages.schema.json#/$defs/uintDec256\" }, \"decimals\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 255 } }\n },\n \"feeRate\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"Daml Decimal\" },\n \"fillDeadline\": { \"$ref\": \"messages.schema.json#/$defs/timeS\" },\n \"refundAfter\": { \"$ref\": \"messages.schema.json#/$defs/timeS\" },\n \"orderCreatedAt\": { \"$ref\": \"messages.schema.json#/$defs/timeS\", \"description\": \"the owner's signing time: the order's createdAt\" },\n \"allocationCid\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"SwapIntent.allocationCid\" },\n \"allocation\": {\n \"anyOf\": [{ \"$ref\": \"#/$defs/cantonAllocation\" }, { \"type\": \"null\" }],\n \"description\": \"the contract allocationCid names, by its AllocationV2 view; null when it is not live\"\n }\n }\n },\n \"cantonAllocation\": {\n \"type\": \"object\",\n \"required\": [\"contractId\", \"templateId\", \"admin\", \"authorizer\", \"committed\", \"settlementId\", \"executors\", \"settlementDeadline\", \"legs\"],\n \"properties\": {\n \"contractId\": { \"type\": \"string\", \"minLength\": 1 },\n \"templateId\": { \"type\": \"string\", \"pattern\": \"^[0-9a-f]{64}:[A-Za-z0-9_.]+:[A-Za-z0-9_]+$\" },\n \"admin\": { \"type\": \"string\", \"minLength\": 1 },\n \"authorizer\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"description\": \"the owner of the authorizer account; null for an account without one\" },\n \"committed\": { \"type\": \"boolean\" },\n \"settlementId\": { \"type\": \"string\" },\n \"executors\": { \"type\": \"array\", \"items\": { \"type\": \"string\", \"minLength\": 1 } },\n \"settlementDeadline\": { \"anyOf\": [{ \"$ref\": \"messages.schema.json#/$defs/timeS\" }, { \"type\": \"null\" }] },\n \"legs\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\"legId\", \"side\", \"otherside\", \"amount\", \"instrumentId\"],\n \"properties\": {\n \"legId\": { \"type\": \"string\" },\n \"side\": { \"anyOf\": [{ \"enum\": [\"SENDER\", \"RECEIVER\"] }, { \"$ref\": \"messages.schema.json#/$defs/futureEnumValue\" }], \"description\": \"a side the node does not know is refused by it\" },\n \"otherside\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"description\": \"the owner of the other side's account\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"Daml Decimal\" },\n \"instrumentId\": { \"type\": \"string\", \"minLength\": 1 }\n }\n }\n }\n }\n }\n }\n}\n","/**\n * The JSON Schemas (draft 2020-12) and the AsyncAPI 3.0 document of filler\n * protocol v1, bundled into the package; the same files ship under\n * `@cancore/contracts/spec/protocol/*` for tools that read JSON. Every export\n * is typed by hand so the declaration files do not inline the JSON.\n *\n * Validating with ajv: `new Ajv2020()`, `ajv.addVocabulary([...SCHEMA_VOCABULARY])`,\n * `addSchema` the three schemas, then `ajv.validate(messageSchemaRef(frame.type, 'S2F'), frame)`\n * (a taker; the gateway passes 'F2S').\n */\nimport asyncapi from '../../spec/protocol/asyncapi.json';\nimport messages from '../../spec/protocol/messages.schema.json';\nimport records from '../../spec/protocol/records.schema.json';\nimport rest from '../../spec/protocol/rest.schema.json';\n\nexport type JsonSchema = Readonly<Record<string, unknown>>;\nexport type MessageDirection = 'S2F' | 'F2S' | 'both';\n\nexport interface RestEndpoint {\n method: 'GET' | 'POST';\n path: string;\n auth: 'none' | 'bearer';\n /** A `$ref` into rest.schema.json (`#/…`) or a sibling schema (`messages.schema.json#/…`). */\n request?: string;\n query?: string;\n response: string;\n /** An unsigned refusal body (`unsignedErrorBody`) this endpoint may answer instead of the signed `error` (the login routes). Every 429 is one, on every route. */\n errorBody?: string;\n}\n\nexport const PROTOCOL_SCHEMAS: { readonly messages: JsonSchema; readonly rest: JsonSchema; readonly records: JsonSchema } = { messages, rest, records };\n\nexport const ASYNCAPI: JsonSchema = asyncapi;\n\n/** The annotation keywords the schemas use; a strict validator must be told they exist. */\nexport const SCHEMA_VOCABULARY: readonly string[] = ['x-direction', 'x-rest-only', 'x-endpoints', 'x-error-status'];\n\n/** Frame type → who sends it: S2F gateway to taker, F2S taker to gateway, both. */\nexport const MESSAGE_DIRECTIONS: Readonly<Record<string, MessageDirection>> = Object.fromEntries(\n Object.entries(messages.$defs as Record<string, { 'x-direction'?: MessageDirection }>)\n .filter(([, def]) => def['x-direction'])\n .map(([type, def]) => [type, def['x-direction']!]),\n);\n\n/**\n * Frame types that travel only as REST bodies — the login, `auth.challenge` and `auth.response` —\n * never on the WebSocket, which is authenticated by the bearer token offered on the upgrade.\n */\nexport const REST_ONLY_TYPES: readonly string[] = Object.entries(messages.$defs as Record<string, { 'x-rest-only'?: boolean }>)\n .filter(([, def]) => def['x-rest-only'] === true)\n .map(([type]) => type);\n\nexport const REST_ENDPOINTS: readonly RestEndpoint[] = rest['x-endpoints'] as RestEndpoint[];\n\n/**\n * The absolute `$ref` of a frame type's schema (or any other `$def` of messages.schema.json).\n * `direction` picks the copy of a type that goes both ways: `ping`/`pong` from the gateway are\n * signed (`pingS2F`), from a taker they are not (`pingF2S`); without it, either copy passes.\n */\nexport function messageSchemaRef(type: string, direction?: 'S2F' | 'F2S'): string {\n const def = direction && MESSAGE_DIRECTIONS[type] === 'both' ? `${type}${direction}` : type;\n return `${messages.$id}#/$defs/${def}`;\n}\n","/**\n * filler-gateway → filler `settle.attestations` and its REST twin\n * `GET /v1/filler/attestations/{orderHash}` (protocol §3.5, §3.6, §10 D-N):\n * ≥ k attestor signatures over the filler's `FillProof`, which the filler node\n * submits itself — `settle` on an EVM source, `SwapIntent_SettleWithProof` on\n * a Canton source. Both channels carry the same payload; the SDK takes the\n * first and deduplicates by `(orderHash, attempt)`.\n *\n * No secp256k1 here: `settleAttestationsErrors` checks what the schema cannot\n * express, and recovering each signer and checking it against\n * `attestationSetFor(orderHash)` stays with the consumer (T-7).\n */\nimport { utf8ToBytes } from '@noble/hashes/utils';\nimport { keccak, toHex } from './bytes';\nimport { jcs } from './hash';\nimport type { DecString, S2FBase } from './messages';\nimport type { Hex } from './typedData';\n\n/**\n * `FillProof` on the wire (§3.1), field for field the struct the source router\n * hashes (`FILL_PROOF_TYPES`, the twelve variant A fields of protocol §3.3).\n */\nexport interface FillProofJson {\n kind: number;\n orderHash: Hex;\n destination: Hex;\n fillRef: Hex;\n recipient: Hex;\n outputAsset: Hex;\n amountDelivered: DecString;\n filledAt: DecString;\n /** `fillerIdHash(fillerId)` of the filler that delivered. */\n fillerId: Hex;\n /** The payee of `settle`, encoded for the source chain: the `repayTo` of the filler's ticket. */\n repayTo: Hex;\n attempt: number;\n setId: number;\n}\n\n/** EVM source: 65-byte `r ‖ s ‖ v`; in payload order the `signature` values are the `sigs` of `settle`. */\nexport interface AttestationEvm {\n signer: Hex;\n signature: Hex;\n}\n\n/**\n * Canton source: a `SigEntry` of `SwapIntent_SettleWithProof` with `0x`\n * (strip it for Daml) — the 88-byte DER SubjectPublicKeyInfo of the signer's\n * uncompressed key and a minimal DER signature — plus the address Daml derives\n * from the key.\n */\nexport interface AttestationCanton {\n signer: Hex;\n pubKey: Hex;\n signature: Hex;\n}\n\nexport interface SettleAttestations extends S2FBase {\n type: 'settle.attestations';\n fillerId: string;\n orderHash: Hex;\n /** Equals `proof.attempt`. */\n attempt: number;\n /** CAIP-2 of the chain `settle` is submitted on: `eip155:<id>` or `canton:<network>`. */\n sourceChainId: string;\n proof: FillProofJson;\n /** At least `threshold`, strictly ascending by `signer`. */\n signatures: AttestationEvm[] | AttestationCanton[];\n /** Equals `proof.setId`; EVM: `attestationSetFor(orderHash)`. */\n setId: number;\n threshold: number;\n /** Unix seconds: `settle` must be included before it. */\n refundAfter: DecString;\n}\n\n/** What `settle.attestations` carries apart from its envelope: identical on WebSocket and REST. */\nexport type SettleAttestationsPayload = Omit<SettleAttestations, 'type' | 'id' | 'fillerId' | 'sentAt' | 'sig' | 're'>;\n\nconst ENVELOPE = new Set(['type', 'id', 'fillerId', 'sentAt', 'sig', 're']);\n\n/** The payload of a `settle.attestations` frame or REST body: everything but `type`, `id`, `fillerId`, `sentAt`, `sig`, `re`. */\nexport function settleAttestationsPayload(frame: object): SettleAttestationsPayload {\n return Object.fromEntries(Object.entries(frame).filter(([k]) => !ENVELOPE.has(k))) as unknown as SettleAttestationsPayload;\n}\n\n/**\n * `keccak256(utf8(JCS(payload)))`: equal for the pushed frame and the pulled\n * body of the same delivery, whatever their `id`, `sentAt` and `sig`.\n */\nexport function settleAttestationsPayloadHash(frame: object): Hex {\n return toHex(keccak(utf8ToBytes(jcs(settleAttestationsPayload(frame)))));\n}\n\n/** Whether `settle` for this payload goes to Daml (`SwapIntent_SettleWithProof`) rather than an EVM router. */\nexport const isCantonSource = (sourceChainId: string): boolean => sourceChainId.startsWith('canton:');\n\n/**\n * The rules of a schema-valid `settle.attestations` that JSON Schema cannot\n * state: `attempt`, `setId` and `orderHash` equal the proof's, at least\n * `threshold` signatures, signers strictly ascending (no duplicates).\n * Returns one message per broken rule, empty when none is.\n */\nexport function settleAttestationsErrors(payload: SettleAttestationsPayload): string[] {\n const errors: string[] = [];\n if (payload.attempt !== payload.proof.attempt) errors.push(`attempt ${payload.attempt} differs from proof.attempt ${payload.proof.attempt}`);\n if (payload.setId !== payload.proof.setId) errors.push(`setId ${payload.setId} differs from proof.setId ${payload.proof.setId}`);\n if (payload.orderHash.toLowerCase() !== payload.proof.orderHash.toLowerCase()) errors.push('orderHash differs from proof.orderHash');\n if (payload.signatures.length < payload.threshold) errors.push(`${payload.signatures.length} signatures, fewer than threshold ${payload.threshold}`);\n const signers = payload.signatures.map((s) => s.signer.toLowerCase());\n for (let i = 1; i < signers.length; i++) {\n if (signers[i]! <= signers[i - 1]!) {\n errors.push(`signers not strictly ascending at index ${i}`);\n break;\n }\n }\n return errors;\n}\n\n/** EVM source: the `sigs` argument of `CancoreRouter.settle(order, proof, sigs)`, in payload order. */\nexport function settleSigs(payload: SettleAttestationsPayload): Hex[] {\n if (isCantonSource(payload.sourceChainId)) throw new TypeError(`${payload.sourceChainId} is a Canton source: use cantonSigEntries`);\n return (payload.signatures as AttestationEvm[]).map((s) => s.signature);\n}\n\n/** Canton source: the `bundle : [SigEntry]` of `SwapIntent_SettleWithProof` — lowercase hex without `0x`, in payload order. */\nexport function cantonSigEntries(payload: SettleAttestationsPayload): { pubKey: string; sig: string }[] {\n if (!isCantonSource(payload.sourceChainId)) throw new TypeError(`${payload.sourceChainId} is not a Canton source: use settleSigs`);\n return (payload.signatures as AttestationCanton[]).map((s) => ({ pubKey: s.pubKey.slice(2).toLowerCase(), sig: s.signature.slice(2).toLowerCase() }));\n}\n","// Generated by scripts/sync.mjs from evm-contracts/version.json and abi/bytecode-hashes.json.\n\n/** The evm-contracts release these ABIs were taken from, and the commit of the checkout they were read at. */\nexport const CONTRACTS_RELEASE = {\n \"version\": \"1.4.0-dev\",\n \"releaseChannel\": \"dev\",\n \"updatedAt\": \"2026-07-24T19:55:00Z\",\n \"commit\": \"2f681b9bb74db55c0fe9fec31282bca54b997985\"\n} as const;\n\n/**\n * Per contract, the build of the release, as evm-contracts\n * scripts/tools/check-bytecode-match.mjs records it. `creationHexSha256` and\n * `runtimeHexSha256` are sha256 of the UTF-8 text of the artifact's 0x-prefixed hex of the\n * creation and runtime bytecode (not keccak256, not of the bytes); `creationHexLength` and\n * `runtimeHexLength` are the length of that text including the 0x. It pins the build a\n * release was made from. It is not a hash of `eth_getCode` — a contract with immutables\n * (CancoreRouter, FeeVault) never matches one — so checking a live deployment against it\n * needs a rebuild, not a lookup.\n */\nexport const BUILD_HASHES = {\n \"HTLC\": {\n \"creationHexSha256\": \"93a991d3a6451f7c3f02dfb70b365a48d29bebccc7f16d8dbe3d56d3dfee0af1\",\n \"runtimeHexSha256\": \"40ab52456c3b5a04365fc1fad837eb79bbe4b85c8dbd990f549468ae48f97e3a\",\n \"creationHexLength\": 14976,\n \"runtimeHexLength\": 14686\n },\n \"FeeVault\": {\n \"creationHexSha256\": \"1c97d27c8d3e584f879bb57549d75ef10394a56a298eaf4a772516b9316e2248\",\n \"runtimeHexSha256\": \"0631177a64cde0829c2cec8426c08a507564f7d8b084e0237d724ed63faea0e9\",\n \"creationHexLength\": 13176,\n \"runtimeHexLength\": 10968\n },\n \"MultiBalanceChecker\": {\n \"creationHexSha256\": \"c0a0326694f2a1594e332ba06120692cc98bc06c57d6d8981cb3768e01fad423\",\n \"runtimeHexSha256\": \"93a1f0aa251715cc6a1b6a472f10762463b5c24668886630cbc6da5632e5739b\",\n \"creationHexLength\": 2456,\n \"runtimeHexLength\": 2394\n },\n \"CancoreRouter\": {\n \"creationHexSha256\": \"361c33f0b5c50625ea1fab280886f9df5f96e6353d8d0d7e9fbce11d64cde5f8\",\n \"runtimeHexSha256\": \"d3374648eaf5bdd0ddfc3ef6a67cd41ffea64b0551b24baded93cf2cb0aca1e0\",\n \"creationHexLength\": 49814,\n \"runtimeHexLength\": 44242\n },\n \"CNRXStaking\": {\n \"creationHexSha256\": \"dfda056ee22b593e2f2e1fc4e679fbb9dc34b04964f389b46914402c422b40fb\",\n \"runtimeHexSha256\": \"d11534242f166e52f4ad063b5b6b59146e31634d3932f7ad63db05d83a1485f6\",\n \"creationHexLength\": 7412,\n \"runtimeHexLength\": 6240\n },\n \"PointsClaim\": {\n \"creationHexSha256\": \"0f29890b609f7e15ef4dbcda17a7f2cd7482d016a0057a5f6c4270d7780ff38d\",\n \"runtimeHexSha256\": \"f2b10c4ec8458c0d6ab0f465481e645524f618f7a3327822e8ae5d3fd42fa46c\",\n \"creationHexLength\": 14300,\n \"runtimeHexLength\": 11504\n },\n \"BurnMintTokenPool\": {\n \"creationHexSha256\": \"b5b19721149d9dd63e0650d0a1f95ac82affa4b9c650fdffd375db6ea361e416\",\n \"runtimeHexSha256\": \"c9aaa6a40ef4f0caadeb66f0a9adc68b1191949e9e0bdb420f331132bf651c3a\",\n \"creationHexLength\": 41756,\n \"runtimeHexLength\": 39936\n },\n \"CNRX\": {\n \"creationHexSha256\": \"61b4e114722e99f93aac4bd4ef3cfb7973dd050b66e6ffb326efad29d4cc8c95\",\n \"runtimeHexSha256\": \"2b23774e41fb25f820227a50de4f48d7ad79b0bd131c1956aab07c100e0c3948\",\n \"creationHexLength\": 21266,\n \"runtimeHexLength\": 17374\n }\n} as const;\n\n/**\n * @deprecated Use `BUILD_HASHES`: the same values under names that say what they are\n * (bytecodeHash → creationHexSha256, deployedBytecodeHash → runtimeHexSha256,\n * bytecodeLength → creationHexLength, deployedBytecodeLength → runtimeHexLength).\n * Kept for one release candidate; removed before 0.2.0.\n */\nexport const BYTECODE_HASHES = {\n \"HTLC\": {\n \"bytecodeHash\": \"93a991d3a6451f7c3f02dfb70b365a48d29bebccc7f16d8dbe3d56d3dfee0af1\",\n \"deployedBytecodeHash\": \"40ab52456c3b5a04365fc1fad837eb79bbe4b85c8dbd990f549468ae48f97e3a\",\n \"bytecodeLength\": 14976,\n \"deployedBytecodeLength\": 14686\n },\n \"FeeVault\": {\n \"bytecodeHash\": \"1c97d27c8d3e584f879bb57549d75ef10394a56a298eaf4a772516b9316e2248\",\n \"deployedBytecodeHash\": \"0631177a64cde0829c2cec8426c08a507564f7d8b084e0237d724ed63faea0e9\",\n \"bytecodeLength\": 13176,\n \"deployedBytecodeLength\": 10968\n },\n \"MultiBalanceChecker\": {\n \"bytecodeHash\": \"c0a0326694f2a1594e332ba06120692cc98bc06c57d6d8981cb3768e01fad423\",\n \"deployedBytecodeHash\": \"93a1f0aa251715cc6a1b6a472f10762463b5c24668886630cbc6da5632e5739b\",\n \"bytecodeLength\": 2456,\n \"deployedBytecodeLength\": 2394\n },\n \"CancoreRouter\": {\n \"bytecodeHash\": \"361c33f0b5c50625ea1fab280886f9df5f96e6353d8d0d7e9fbce11d64cde5f8\",\n \"deployedBytecodeHash\": \"d3374648eaf5bdd0ddfc3ef6a67cd41ffea64b0551b24baded93cf2cb0aca1e0\",\n \"bytecodeLength\": 49814,\n \"deployedBytecodeLength\": 44242\n },\n \"CNRXStaking\": {\n \"bytecodeHash\": \"dfda056ee22b593e2f2e1fc4e679fbb9dc34b04964f389b46914402c422b40fb\",\n \"deployedBytecodeHash\": \"d11534242f166e52f4ad063b5b6b59146e31634d3932f7ad63db05d83a1485f6\",\n \"bytecodeLength\": 7412,\n \"deployedBytecodeLength\": 6240\n },\n \"PointsClaim\": {\n \"bytecodeHash\": \"0f29890b609f7e15ef4dbcda17a7f2cd7482d016a0057a5f6c4270d7780ff38d\",\n \"deployedBytecodeHash\": \"f2b10c4ec8458c0d6ab0f465481e645524f618f7a3327822e8ae5d3fd42fa46c\",\n \"bytecodeLength\": 14300,\n \"deployedBytecodeLength\": 11504\n },\n \"BurnMintTokenPool\": {\n \"bytecodeHash\": \"b5b19721149d9dd63e0650d0a1f95ac82affa4b9c650fdffd375db6ea361e416\",\n \"deployedBytecodeHash\": \"c9aaa6a40ef4f0caadeb66f0a9adc68b1191949e9e0bdb420f331132bf651c3a\",\n \"bytecodeLength\": 41756,\n \"deployedBytecodeLength\": 39936\n },\n \"CNRX\": {\n \"bytecodeHash\": \"61b4e114722e99f93aac4bd4ef3cfb7973dd050b66e6ffb326efad29d4cc8c95\",\n \"deployedBytecodeHash\": \"2b23774e41fb25f820227a50de4f48d7ad79b0bd131c1956aab07c100e0c3948\",\n \"bytecodeLength\": 21266,\n \"deployedBytecodeLength\": 17374\n }\n} as const;\n","/**\n * `@cancore/contracts` — the Cancore EVM contracts as data.\n *\n * ABIs (`./abi`), the network registry (`./networks`), the EIP-712 voucher and\n * the release identity; and the filler protocol v1 (`./protocol`): its EIP-712\n * types, hashing helpers and wire shapes. What an integrator\n * needs to talk to the contracts without copying files out of our repositories,\n * and what our own frontend, backend and MCP server can stop carrying four\n * separate copies of.\n */\nexport * from './abi';\nexport * from './networks';\nexport * from './deployments';\nexport * from './eip712';\nexport * from './constants';\nexport * from './order';\nexport * from './fee';\nexport * from './cantonDestination';\nexport * from './protocol';\nexport { BUILD_HASHES, BYTECODE_HASHES, CONTRACTS_RELEASE } from './generated/meta';\n\n/** Decode a revert's 4-byte selector into the custom error it names, if it is one of ours. */\nexport function describeRevert(selectorOrData: string, tables: ReadonlyArray<Readonly<Record<string, string>>>): string | undefined {\n const selector = selectorOrData.slice(0, 10).toLowerCase();\n for (const table of tables) {\n const hit = table[selector];\n if (hit) return hit;\n }\n return undefined;\n}\n"]}
1
+ {"version":3,"sources":["../src/deployments.ts","../src/generated/typedData.ts","../src/protocol/bytes.ts","../src/protocol/hash.ts","../src/eip712.ts","../src/constants.ts","../src/encoding.ts","../src/protocol/identity.ts","../src/protocol/typedData.ts","../src/order.ts","../src/fee.ts","../src/cantonDestination.ts","../src/protocol/digests.ts","../src/protocol/envelope.ts","../src/protocol/draw.ts","../src/protocol/gateway.ts","../src/protocol/messages.ts","../spec/protocol/asyncapi.json","../spec/protocol/messages.schema.json","../spec/protocol/records.schema.json","../spec/protocol/rest.schema.json","../src/protocol/schemas.ts","../src/protocol/settleAttestations.ts","../src/generated/meta.ts","../src/index.ts"],"names":["utf8ToBytes","concatBytes","NETWORKS"],"mappings":";;;;;;AA+BO,IAAM,WAAA,GAAyE;AAAA,EACpF,OAAA,EAAS;AAAA,IACP,EAAE,OAAA,EAAS,UAAA,EAAY,OAAA,EAAS,CAAA,EAAG,MAAM,4CAAA,EAA8C,SAAA,EAAW,QAAA,EAAU,mBAAA,EAAqB,4CAAA,EAA6C;AAAA,IAC9K,EAAE,OAAA,EAAS,KAAA,EAAO,OAAA,EAAS,EAAA,EAAI,MAAM,4CAAA,EAA8C,SAAA,EAAW,QAAA,EAAU,mBAAA,EAAqB,4CAAA,EAA6C;AAAA,IAC1K,EAAE,OAAA,EAAS,UAAA,EAAY,OAAA,EAAS,KAAA,EAAO,MAAM,4CAAA,EAA8C,SAAA,EAAW,SAAA,EAAW,mBAAA,EAAqB,4CAAA,E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AkB,IAAA;AAAA,IAClB,wBAAA,EAA0B;AAAA,GAC5B;AAAA,EACA,aAAA,EAAe;AAAA,IACb,cAAA,EAAgB,kEAAA;AAAA,IAChB,sBAAA,EAAwB,kEAAA;AAAA,IACxB,gBAAA,EAAkB,KAAA;AAAA,IAClB,wBAAA,EAA0B;AAAA,GAC5B;AAAA,EACA,mBAAA,EAAqB;AAAA,IACnB,cAAA,EAAgB,kEAAA;AAAA,IAChB,sBAAA,EAAwB,kEAAA;AAAA,IACxB,gBAAA,EAAkB,KAAA;AAAA,IAClB,wBAAA,EAA0B;AAAA,GAC5B;AAAA,EACA,MAAA,EAAQ;AAAA,IACN,cAAA,EAAgB,kEAAA;AAAA,IAChB,sBAAA,EAAwB,kEAAA;AAAA,IACxB,gBAAA,EAAkB,KAAA;AAAA,IAClB,wBAAA,EAA0B;AAAA;AAE9B;;;ACxGO,SAAS,cAAA,CAAe,gBAAwB,MAAA,EAA6E;AAClI,EAAA,MAAM,WAAW,cAAA,CAAe,KAAA,CAAM,CAAA,EAAG,EAAE,EAAE,WAAA,EAAY;AACzD,EAAA,KAAA,MAAW,SAAS,MAAA,EAAQ;AAC1B,IAAA,MAAM,GAAA,GAAM,MAAM,QAAQ,CAAA;AAC1B,IAAA,IAAI,KAAK,OAAO,GAAA;AAAA,EAClB;AACA,EAAA,OAAO,MAAA;AACT","file":"index.js","sourcesContent":["/**\n * Where the contracts are deployed, per environment.\n *\n * Three environments because three independent deployments: what is on Sepolia\n * for the dev stand is not what is on Sepolia for testnet. Pinned here per\n * release of this package, so an integrator on 0.1.x talks to the deployment\n * the backend of that period talks to; `htlcBlock` is where to start an event\n * scan, not before.\n *\n * `BUILD_HASHES` pins the build of each release: sha256 of the UTF-8 text of\n * the artifact's 0x-prefixed hex, not keccak256 and not over `eth_getCode`, so it\n * identifies what was built rather than proving what an address runs\n * (immutables alone change runtime code).\n */\n\nexport type DeploymentEnv = 'mainnet' | 'testnet' | 'devnet';\n\nexport interface EvmDeployment {\n /** Key into `NETWORKS`. */\n network: string;\n chainId: number;\n htlc: `0x${string}`;\n /** Block the HTLC was deployed in — the floor for an event scan. */\n htlcBlock?: number;\n multiBalanceChecker?: `0x${string}`;\n /** The intent router (`CancoreRouter`) of this environment on this chain; absent where none is deployed. */\n router?: `0x${string}`;\n /** Block the router was deployed in — the floor for an event scan. */\n routerBlock?: number;\n}\n\nexport const DEPLOYMENTS: Readonly<Record<DeploymentEnv, readonly EvmDeployment[]>> = {\n mainnet: [\n { network: 'ethereum', chainId: 1, htlc: '0xB3f8BD762fa2a895Ba8Cd35142b7b82b8b413F76', htlcBlock: 24699416, multiBalanceChecker: '0xe025CcCDf82F4165633C6033B7F13690B16c8a84' },\n { network: 'bnb', chainId: 56, htlc: '0xB3f8BD762fa2a895Ba8Cd35142b7b82b8b413F76', htlcBlock: 87710517, multiBalanceChecker: '0xe025CcCDf82F4165633C6033B7F13690B16c8a84' },\n { network: 'arbitrum', chainId: 42161, htlc: '0x1794fe17eB780619FAD46BAf80F7628F7495378b', htlcBlock: 443810007, multiBalanceChecker: '0x9ed2e0220e8d069C515972AE369C3FCE3bB29239' },\n { network: 'robinhood', chainId: 4663, htlc: '0xB3f8BD762fa2a895Ba8Cd35142b7b82b8b413F76', htlcBlock: 26837336, multiBalanceChecker: '0x1794fe17eB780619FAD46BAf80F7628F7495378b' },\n ],\n testnet: [\n { network: 'sepolia', chainId: 11155111, htlc: '0xc705C735278AEeF773acb6d1028D8A241D8a9556', htlcBlock: 10334457, multiBalanceChecker: '0x99182E3F18555CFB08e6443e68a11982eF686522' },\n { network: 'bnb_testnet', chainId: 97, htlc: '0x36D7BEBDB5f93b7b926D621E412132dF89628810', htlcBlock: 92435953, multiBalanceChecker: '0x079bDc94B34EC0e905DcfDB516bdE2f292Efcef2' },\n { network: 'arbitrum_sepolia', chainId: 421614, htlc: '0x07a6ccF1f0113e2329Bb2460b28eC0d169f5080E', htlcBlock: 245190705, multiBalanceChecker: '0x555Bef5d2f89Fc81c77b930AB6c0D6734bDE569e' },\n { network: 'robinhood_testnet', chainId: 46630, htlc: '0x5eBf3faAf3a86c37dDf6a46075b8366Ed4D8021A', htlcBlock: 96742769, multiBalanceChecker: '0x9548fd6fA8A3869b215E9D86F6a2628Bf2BEFB74' },\n ],\n devnet: [\n // Routers: evm-contracts deployments/router/dev/*.json (#120, CAN-2327), verified on chain 2026-10-14.\n { network: 'sepolia', chainId: 11155111, htlc: '0xc74469B26206A7b3Aee2781EC21F9F47a1552DD6', htlcBlock: 10469876, router: '0xfd227a0de77807206f4eEF9eE6eDd5795a45EF95', routerBlock: 11913649 },\n { network: 'bnb_testnet', chainId: 97, htlc: '0xC649d578FD0122E2Ce3Bcf6b89E3ef2564d1a30D', htlcBlock: 96439032, router: '0x57A8ad8392C5fF21aF52Fc3Cf246C1a464aCc6B1', routerBlock: 136752813 },\n { network: 'arbitrum_sepolia', chainId: 421614, htlc: '0xE23A046Df3542C4C548162adab4397956b136031', htlcBlock: 251260393, router: '0x7e27831316F7Ee8E44B96056F4354A6D1a22953a', routerBlock: 319105856 },\n { network: 'robinhood_testnet', chainId: 46630, htlc: '0x58D154441Fd7efEd22E49Eda369909DdbE54cC0a', htlcBlock: 96651438, multiBalanceChecker: '0x1b2A32A976F904a1fca87D427239635Ccd97FaFb', router: '0xF833A980ae858fe3cD14a79a9f610525AbB95BF9', routerBlock: 135089078 },\n ],\n};\n\n/** Uniswap Permit2 — one canonical address across mainnets. */\nexport const PERMIT2_ADDRESS = '0x000000000022D473030F116dDEE9F6B43aC78BA3' as const;\n\nexport function deploymentOf(env: DeploymentEnv, network: string): EvmDeployment | undefined {\n return DEPLOYMENTS[env].find((d) => d.network === network);\n}\n","// Generated by scripts/sync-typed-data.mjs from evm-contracts/abi/typed-data — do not edit.\n\n/** `FillProof(uint8 kind,bytes32 orderHash,bytes32 destination,bytes32 fillRef,bytes32 recipient,bytes32 outputAsset,uint256 amountDelivered,uint64 filledAt,bytes32 fillerId,bytes32 repayTo,uint32 attempt,uint32 setId)` — from evm-contracts/abi/typed-data/FillProof.json. */\nexport const FILL_PROOF_TYPES = {\n \"FillProof\": [\n {\n \"name\": \"kind\",\n \"type\": \"uint8\"\n },\n {\n \"name\": \"orderHash\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"destination\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"fillRef\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"recipient\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"outputAsset\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"amountDelivered\",\n \"type\": \"uint256\"\n },\n {\n \"name\": \"filledAt\",\n \"type\": \"uint64\"\n },\n {\n \"name\": \"fillerId\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"repayTo\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"attempt\",\n \"type\": \"uint32\"\n },\n {\n \"name\": \"setId\",\n \"type\": \"uint32\"\n }\n ]\n} as const;\n\nexport const FILL_PROOF_TYPE_STRING = \"FillProof(uint8 kind,bytes32 orderHash,bytes32 destination,bytes32 fillRef,bytes32 recipient,bytes32 outputAsset,uint256 amountDelivered,uint64 filledAt,bytes32 fillerId,bytes32 repayTo,uint32 attempt,uint32 setId)\";\n\n/** Name and version of the domain; chain id and verifying contract are the deployment's. */\nexport const FILL_PROOF_DOMAIN = {\"name\":\"CancoreRouter\",\"version\":\"1\"} as const;\n\n/** `FillTicket(bytes32 orderHash,bytes32 fillerId,address deliveryKey,bytes32 repayTo,uint32 attempt,uint64 validFrom,uint64 validUntil)` — from evm-contracts/abi/typed-data/FillTicket.json. */\nexport const FILL_TICKET_TYPES = {\n \"FillTicket\": [\n {\n \"name\": \"orderHash\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"fillerId\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"deliveryKey\",\n \"type\": \"address\"\n },\n {\n \"name\": \"repayTo\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"attempt\",\n \"type\": \"uint32\"\n },\n {\n \"name\": \"validFrom\",\n \"type\": \"uint64\"\n },\n {\n \"name\": \"validUntil\",\n \"type\": \"uint64\"\n }\n ]\n} as const;\n\nexport const FILL_TICKET_TYPE_STRING = \"FillTicket(bytes32 orderHash,bytes32 fillerId,address deliveryKey,bytes32 repayTo,uint32 attempt,uint64 validFrom,uint64 validUntil)\";\n\n/** Name and version of the domain; chain id and verifying contract are the deployment's. */\nexport const FILL_TICKET_DOMAIN = {\"name\":\"CancoreFillTicket\",\"version\":\"1\"} as const;\n\n/** `Order(address user,uint64 originChainId,address inputToken,uint256 inputAmount,bytes32 destination,bytes32 outputAsset,uint256 minReceived,bytes32 recipient,uint64 createdAt,uint64 fillDeadline,uint16 feeBps,bytes32 fillerId)` — from evm-contracts/abi/typed-data/Order.json. */\nexport const ORDER_TYPES = {\n \"Order\": [\n {\n \"name\": \"user\",\n \"type\": \"address\"\n },\n {\n \"name\": \"originChainId\",\n \"type\": \"uint64\"\n },\n {\n \"name\": \"inputToken\",\n \"type\": \"address\"\n },\n {\n \"name\": \"inputAmount\",\n \"type\": \"uint256\"\n },\n {\n \"name\": \"destination\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"outputAsset\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"minReceived\",\n \"type\": \"uint256\"\n },\n {\n \"name\": \"recipient\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"createdAt\",\n \"type\": \"uint64\"\n },\n {\n \"name\": \"fillDeadline\",\n \"type\": \"uint64\"\n },\n {\n \"name\": \"feeBps\",\n \"type\": \"uint16\"\n },\n {\n \"name\": \"fillerId\",\n \"type\": \"bytes32\"\n }\n ]\n} as const;\n\nexport const ORDER_TYPE_STRING = \"Order(address user,uint64 originChainId,address inputToken,uint256 inputAmount,bytes32 destination,bytes32 outputAsset,uint256 minReceived,bytes32 recipient,uint64 createdAt,uint64 fillDeadline,uint16 feeBps,bytes32 fillerId)\";\n\n/** Name and version of the domain; chain id and verifying contract are the deployment's. */\nexport const ORDER_DOMAIN = {\"name\":\"CancoreRouter\",\"version\":\"1\"} as const;\n\n/** `Quote(bytes32 orderHash,uint64 quoteDeadline)` — from evm-contracts/abi/typed-data/Quote.json. */\nexport const QUOTE_TYPES = {\n \"Quote\": [\n {\n \"name\": \"orderHash\",\n \"type\": \"bytes32\"\n },\n {\n \"name\": \"quoteDeadline\",\n \"type\": \"uint64\"\n }\n ]\n} as const;\n\nexport const QUOTE_TYPE_STRING = \"Quote(bytes32 orderHash,uint64 quoteDeadline)\";\n\n/** Name and version of the domain; chain id and verifying contract are the deployment's. */\nexport const QUOTE_DOMAIN = {\"name\":\"CancoreRouter\",\"version\":\"1\"} as const;\n","// Internal: the few byte conversions hash.ts and draw.ts share. Not exported\n// from the package — a consumer has @noble/hashes for this.\nimport { keccak_256 } from '@noble/hashes/sha3';\nimport { bytesToHex, hexToBytes } from '@noble/hashes/utils';\nimport type { Hex } from './typedData';\n\nexport const toHex = (bytes: Uint8Array): Hex => `0x${bytesToHex(bytes)}`;\n\nexport const keccak = (bytes: Uint8Array): Uint8Array => keccak_256(bytes);\n\n/** `0x`-prefixed hex of exactly `length` bytes (any length when omitted); either letter case. */\nexport function hexBytes(value: unknown, field: string, length?: number): Uint8Array {\n if (typeof value !== 'string' || !/^0x([0-9a-fA-F]{2})*$/.test(value)) throw new TypeError(`${field}: expected 0x-prefixed hex, got ${String(value)}`);\n const bytes = hexToBytes(value.slice(2));\n if (length !== undefined && bytes.length !== length) throw new TypeError(`${field}: expected ${length} bytes, got ${bytes.length}`);\n return bytes;\n}\n\n/**\n * An unsigned integer below 2^bits from a bigint, a safe-integer number or a\n * canonical decimal string (the wire encoding: digits only, no leading zero).\n */\nexport function uint(value: unknown, bits: number, field: string): bigint {\n let n: bigint;\n if (typeof value === 'bigint') n = value;\n else if (typeof value === 'number' && Number.isSafeInteger(value)) n = BigInt(value);\n else if (typeof value === 'string' && /^(0|[1-9][0-9]*)$/.test(value)) n = BigInt(value);\n else throw new TypeError(`${field}: expected an unsigned integer, got ${String(value)}`);\n if (n < 0n || n >= 1n << BigInt(bits)) throw new RangeError(`${field}: ${n} does not fit uint${bits}`);\n return n;\n}\n\n/** Big-endian, left-padded to `size` bytes. */\nexport const beBytes = (n: bigint, size: number): Uint8Array => hexToBytes(n.toString(16).padStart(size * 2, '0'));\n","/**\n * EIP-712 hashing for the flat structs of the intent rail, RFC 8785 JCS, and\n * the two protocol hashes built on them. No signing here: a digest is what a\n * consumer hands its own secp256k1 implementation (protocol §3.3, SDK §7).\n */\nimport { concatBytes, utf8ToBytes } from '@noble/hashes/utils';\nimport { beBytes, hexBytes, keccak, toHex, uint } from './bytes';\nimport type { Hex, UintLike } from './typedData';\n\nexport interface TypedField {\n readonly name: string;\n readonly type: string;\n}\n\nexport type TypedDataTypes = Readonly<Record<string, readonly TypedField[]>>;\n\nexport type TypedValue = string | number | bigint | boolean;\n\nexport interface TypedDataDomain {\n name?: string;\n version?: string;\n chainId?: UintLike;\n verifyingContract?: Hex | string;\n salt?: Hex | string;\n}\n\nexport interface TypedDataInput {\n domain: TypedDataDomain;\n types: TypedDataTypes;\n primaryType: string;\n message: Readonly<Record<string, unknown>>;\n}\n\n/** A JSON value JCS can canonicalise: numbers are safe integers only. */\nexport type JsonValue = string | number | boolean | null | readonly JsonValue[] | { readonly [key: string]: JsonValue };\n\nconst ATOMIC = /^(address|bool|string|bytes([1-9]|[12][0-9]|3[0-2])?|uint(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256))$/;\n\nconst flatOnly = (type: string, field: string) =>\n new TypeError(`${field}: type ${type} is not supported — hashTypedData encodes flat structs of address/bool/bytes/bytesN/string/uintN only`);\n\n/** One member as its 32-byte EIP-712 word. */\nfunction encodeValue(type: string, value: unknown, field: string): Uint8Array {\n if (type === 'address') return padded(hexBytes(value, field, 20), 12);\n if (type === 'string') {\n if (typeof value !== 'string') throw new TypeError(`${field}: expected a string`);\n return keccak(utf8ToBytes(value));\n }\n if (type === 'bool') {\n if (typeof value !== 'boolean') throw new TypeError(`${field}: expected a boolean`);\n return beBytes(value ? 1n : 0n, 32);\n }\n if (type === 'bytes') return keccak(hexBytes(value, field));\n if (type.startsWith('bytes')) return padded(hexBytes(value, field, Number(type.slice(5))), 0);\n return beBytes(uint(value, Number(type.slice(4)), field), 32);\n}\n\n/** A 32-byte word with `bytes` placed at `offset`: 12 left-pads an address, 0 right-pads a bytesN. */\nfunction padded(bytes: Uint8Array, offset: number): Uint8Array {\n const word = new Uint8Array(32);\n word.set(bytes, offset);\n return word;\n}\n\nfunction fieldsOf(types: TypedDataTypes, primaryType: string): readonly TypedField[] {\n const fields = types[primaryType];\n if (!fields) throw new TypeError(`no type ${primaryType}`);\n for (const f of fields) if (!ATOMIC.test(f.type)) throw flatOnly(f.type, `${primaryType}.${f.name}`);\n return fields;\n}\n\n/** `Name(type1 name1,…)` of a flat struct. */\nexport function encodeType(types: TypedDataTypes, primaryType: string): string {\n return `${primaryType}(${fieldsOf(types, primaryType).map((f) => `${f.type} ${f.name}`).join(',')})`;\n}\n\nexport function typeHash(types: TypedDataTypes, primaryType: string): Hex {\n return toHex(keccak(utf8ToBytes(encodeType(types, primaryType))));\n}\n\nfunction structHash(types: TypedDataTypes, primaryType: string, message: Readonly<Record<string, unknown>>): Uint8Array {\n const words = fieldsOf(types, primaryType).map((f) => encodeValue(f.type, message[f.name], `${primaryType}.${f.name}`));\n return keccak(concatBytes(keccak(utf8ToBytes(encodeType(types, primaryType))), ...words));\n}\n\nexport function hashStruct(types: TypedDataTypes, primaryType: string, message: Readonly<Record<string, unknown>>): Hex {\n return toHex(structHash(types, primaryType, message));\n}\n\nconst DOMAIN_FIELDS: readonly TypedField[] = [\n { name: 'name', type: 'string' },\n { name: 'version', type: 'string' },\n { name: 'chainId', type: 'uint256' },\n { name: 'verifyingContract', type: 'address' },\n { name: 'salt', type: 'bytes32' },\n];\n\n/** The domain separator; `EIP712Domain` lists exactly the members present, in the standard order. */\nexport function hashDomain(domain: TypedDataDomain): Hex {\n const present = DOMAIN_FIELDS.filter((f) => domain[f.name as keyof TypedDataDomain] !== undefined);\n return hashStruct({ EIP712Domain: present }, 'EIP712Domain', domain as Record<string, unknown>);\n}\n\n/** The EIP-712 digest `keccak256(0x1901 ‖ domainSeparator ‖ hashStruct(message))` — what a signature is over. */\nexport function hashTypedData({ domain, types, primaryType, message }: TypedDataInput): Hex {\n const separator = hexBytes(hashDomain(domain), 'domain', 32);\n return toHex(keccak(concatBytes(new Uint8Array([0x19, 0x01]), separator, structHash(types, primaryType, message))));\n}\n\n/**\n * RFC 8785 canonical JSON. Keys sorted by UTF-16 code units (`Array#sort`),\n * strings as `JSON.stringify` writes them. Numbers are safe integers only —\n * the wire carries every wider value as a decimal string — so the ECMAScript\n * number serialisation JCS borrows is never exercised beyond integers.\n */\nexport function jcs(value: unknown): string {\n if (value === null || typeof value === 'boolean') return JSON.stringify(value);\n if (typeof value === 'string') {\n if (/\\p{Cs}/u.test(value)) throw new TypeError('jcs: lone surrogate in a string');\n return JSON.stringify(value);\n }\n if (typeof value === 'number') {\n if (!Number.isSafeInteger(value)) throw new TypeError(`jcs: ${value} is not a safe integer`);\n return JSON.stringify(value);\n }\n if (Array.isArray(value)) return `[${value.map(jcs).join(',')}]`;\n if (typeof value === 'object') {\n const obj = value as Record<string, unknown>;\n return `{${Object.keys(obj).sort().map((k) => `${jcs(k)}:${jcs(obj[k])}`).join(',')}}`;\n }\n throw new TypeError(`jcs: a ${typeof value} has no JSON form`);\n}\n\n/** `GatewayMessage.bodyHash`: keccak256 of the JCS text of an S→F message without its `sig`. */\nexport function gatewayBodyHash(message: Readonly<Record<string, unknown>>): Hex {\n const { sig: _sig, ...body } = message;\n return toHex(keccak(utf8ToBytes(jcs(body))));\n}\n\n/** `FillerMessage.bodyHash`: keccak256 of the JCS text of a filler message without its `msgSig`; `id`, `fillerId`, `sentAt` and any inner `sig` stay in. */\nexport function fillerMessageBodyHash(message: object): Hex {\n const { msgSig: _msgSig, ...body } = message as Readonly<Record<string, unknown>>;\n return toHex(keccak(utf8ToBytes(jcs(body))));\n}\n\n/** `FillerQuote.requestId`: keccak256(utf8(requestId)); the id is 1..64 printable ASCII (`Canonical.daml:90-93`). */\nexport function requestIdHash(requestId: string): Hex {\n if (!/^[\\x21-\\x7e]{1,64}$/.test(requestId)) throw new TypeError(`requestId must be 1..64 printable ASCII characters: ${JSON.stringify(requestId)}`);\n return toHex(keccak(utf8ToBytes(requestId)));\n}\n","/**\n * The EIP-712 voucher `FeeVault.redeem` accepts: a signer the vault trusts\n * signs `FeeClaim` over this domain, and whoever holds the signature redeems it\n * on-chain. The struct and the domain are the contract's — this file has to\n * stay in lock-step with `FeeVault.sol` and with the backend's signer, which is\n * why both are written here once rather than re-typed by each consumer.\n */\nimport { FILL_PROOF_DOMAIN, FILL_PROOF_TYPES } from './generated/typedData';\nimport { hashTypedData } from './protocol/hash';\n\nexport const FEE_CLAIM_DOMAIN_NAME = 'CancoreFeeVault';\nexport const FEE_CLAIM_DOMAIN_VERSION = '1';\n\n/** `FeeClaim(address token,address to,uint256 amount,uint256 nonce,uint256 deadline)` */\nexport const FEE_CLAIM_TYPES = {\n FeeClaim: [\n { name: 'token', type: 'address' },\n { name: 'to', type: 'address' },\n { name: 'amount', type: 'uint256' },\n { name: 'nonce', type: 'uint256' },\n { name: 'deadline', type: 'uint256' },\n ],\n} as const;\n\nexport interface FeeClaim {\n token: `0x${string}`;\n to: `0x${string}`;\n amount: bigint;\n nonce: bigint;\n deadline: bigint;\n}\n\n/** The typed-data domain for one FeeVault deployment. */\nexport function feeClaimDomain(chainId: number, verifyingContract: `0x${string}`) {\n return {\n name: FEE_CLAIM_DOMAIN_NAME,\n version: FEE_CLAIM_DOMAIN_VERSION,\n chainId,\n verifyingContract,\n } as const;\n}\n\nexport { FILL_PROOF_DOMAIN, FILL_PROOF_TYPES, FILL_PROOF_TYPE_STRING } from './generated/typedData';\n\n/** `FillProof.kind` of v1: k-of-n attestor signatures — the only kind `settle` accepts. */\nexport const PROOF_KIND_ATTESTATION = 1;\n\n/**\n * What the attestors sign and `CancoreRouter.settle` verifies: the fact of a\n * delivery on the destination chain, for one order. Written by hand from the\n * contract's schema (`FILL_PROOF_TYPES`, which is generated); fillProof.test.ts\n * fails to compile if the two stop naming the same fields.\n */\nexport interface FillProof {\n kind: number;\n orderHash: `0x${string}`;\n /** bytes32: EVM — the destination chain id, left-padded; Canton — `keccak256(utf8(\"canton:<network>\"))`. */\n destination: `0x${string}`;\n /** EVM: the delivery transaction hash; Canton: keccak256 of the update id. */\n fillRef: `0x${string}`;\n recipient: `0x${string}`;\n outputAsset: `0x${string}`;\n /** What arrived, not what was sent. */\n amountDelivered: bigint;\n filledAt: bigint;\n /** `fillerIdHash(fillerId)`: `Filled.fillerId` (EVM destination) or the hashed `DeliveryReceipt.fillerId` (Canton destination). */\n fillerId: `0x${string}`;\n /** The payee of `settle`, encoded for the source chain: `Filled.repayTo` or `DeliveryReceipt.repayTo`. */\n repayTo: `0x${string}`;\n attempt: number;\n /** The attestor set live when the order opened — `attestationSetFor(orderHash)`, never `currentSetId`. */\n setId: number;\n}\n\n/**\n * The typed-data domain of a proof: the order's SOURCE router. `settle`\n * recomputes the digest in its own domain, so a proof never verifies on\n * another chain or another router. A Canton source (Daml settles) is\n * CANTON_ORIGIN_ID = 2^63 + n, above Number.MAX_SAFE_INTEGER: pass a bigint.\n */\nexport function fillProofDomain(chainId: number | bigint, verifyingContract: `0x${string}`) {\n return { ...FILL_PROOF_DOMAIN, chainId, verifyingContract } as const;\n}\n\n/**\n * The router's `hashFillProof`: the digest attestors sign and `settle` (or Daml\n * `SwapIntent_SettleWithProof` on a Canton source) verifies, in the domain of\n * the order's source router.\n */\nexport function hashFillProof(proof: FillProof, chainId: number | bigint, verifyingContract: `0x${string}`): `0x${string}` {\n return hashTypedData({ domain: fillProofDomain(chainId, verifyingContract), types: FILL_PROOF_TYPES, primaryType: 'FillProof', message: { ...proof } });\n}\n","/**\n * The constants of the intent rail: the router's public constants (held to the\n * contract by `spec/constants.json`, which `npm run sync` reads out of the\n * Solidity source — SDK-6) and the constants of the Canton-source encoding\n * (held to `spec/vectors/canton-order.json`, protocol.md §3.8).\n * `PROOF_KIND_ATTESTATION` lives in `./eip712`, next to `FillProof`.\n */\n\n/** `CancoreRouter.BPS`: basis points in one whole. */\nexport const BPS = 10_000;\n\n/** `CancoreRouter.MAX_FEE_BPS`: the highest `Order.feeBps` `openFor` accepts — 10 % on top of the net, 1/11 of the total. */\nexport const MAX_FEE_BPS = 1_000;\n\n/** `CancoreRouter.MIN_FILL_TTL`, seconds: `openFor` needs `fillDeadline ≥ now + MIN_FILL_TTL`. */\nexport const MIN_FILL_TTL = 60;\n\n/** `AttestorSet.MAX_FILL_TTL`, seconds (24 h): `openFor` needs `fillDeadline ≤ now + MAX_FILL_TTL`. */\nexport const MAX_FILL_TTL = 86_400;\n\n/** `AttestorSet.MAX_SIG_TTL`, seconds (24 h): `openFor` needs `createdAt ≤ now ≤ createdAt + MAX_SIG_TTL`. */\nexport const MAX_SIG_TTL = 86_400;\n\n/** `AttestorSet.MAX_PROOF_WINDOW`, seconds (4 h): the cap of `proofWindow`, so `refundAfter ≤ fillDeadline + MAX_PROOF_WINDOW`. */\nexport const MAX_PROOF_WINDOW = 14_400;\n\n/** `AttestorSet.GRACE`, seconds (28 h): the longest intent lifetime; a replaced attestor set keeps verifying this long. */\nexport const GRACE = MAX_FILL_TTL + MAX_PROOF_WINDOW;\n\n/** `AttestorSet.SET_DELAY`, seconds (72 h): a proposed attestor set activates this late; above `MAX_SIG_TTL + GRACE`. */\nexport const SET_DELAY = 259_200;\n\n/** ⌊(2⁶⁴ − 1) / 2⌋ − 36, the largest EVM chain id EIP-2294 allows: every Canton origin id is above it. */\nexport const EIP2294_MAX_CHAIN_ID = 9_223_372_036_854_775_771n;\n\n/** `Order.originChainId` of a Canton-source order, per Canton network: 2⁶³ + n (2⁶³ itself is unassigned). */\nexport const CANTON_ORIGIN_ID = {\n mainnet: 9_223_372_036_854_775_809n,\n testnet: 9_223_372_036_854_775_810n,\n devnet: 9_223_372_036_854_775_811n,\n} as const;\n\n/**\n * `verifyingContract` of the Canton source domain, one for every Canton network:\n * `address(uint160(uint256(keccak256(\"cancore:canton-source-anchor:v1\"))))`, an address no router can be deployed at.\n */\nexport const CANTON_SOURCE_ANCHOR = '0x2f37b46Ea93001829498b145985fb53028033701' as const;\n\n/** Domain-separation tag of the owner label (`Order.user` of a Canton-source order). */\nexport const OWNER_LABEL_TAG = 'cancore:owner:v1';\n\n/** Domain-separation tag of the instrument label (`Order.inputToken` of a Canton-source order). */\nexport const INSTRUMENT_LABEL_TAG = 'cancore:instrument:v1';\n\n/** Daml `Numeric 10`: Canton amounts are exact at 10⁻¹⁰, and their EVM form is the amount × 10¹⁰. */\nexport const DAML_NUMERIC_SCALE = 10;\n","// Internal: the decimal and ABI encodings order.ts and cantonDestination.ts share. Not exported from the package.\nimport { concatBytes, utf8ToBytes } from '@noble/hashes/utils';\nimport { beBytes } from './protocol/bytes';\n\n/** A decimal string at exactly `decimals` scale, in base units; anything that does not land on a whole unit is refused. */\nexport function exactUnits(value: unknown, decimals: number, field: string): bigint {\n if (typeof value !== 'string' || !/^\\d+(\\.\\d+)?$/.test(value)) throw new TypeError(`${field}: not a plain decimal string: ${String(value)}`);\n if (!Number.isSafeInteger(decimals) || decimals < 0) throw new TypeError(`${field}: decimals must be a non-negative integer`);\n const [whole, fraction = ''] = value.split('.');\n if (fraction.length > decimals) throw new RangeError(`${field}: ${value} does not fit ${decimals} decimals exactly`);\n return BigInt(whole! + fraction.padEnd(decimals, '0'));\n}\n\n/** `abi.encode(string, …, string)`: one offset word per string, then each as length word and right-padded bytes. */\nexport function abiEncodeStrings(values: readonly string[]): Uint8Array {\n const tails = values.map((v) => {\n const bytes = utf8ToBytes(v);\n const body = new Uint8Array(Math.ceil(bytes.length / 32) * 32);\n body.set(bytes);\n return concatBytes(beBytes(BigInt(bytes.length), 32), body);\n });\n let offset = BigInt(values.length * 32);\n const heads = tails.map((t) => {\n const head = beBytes(offset, 32);\n offset += BigInt(t.length);\n return head;\n });\n return concatBytes(...heads, ...tails);\n}\n","/**\n * The filler's identity and payout address in on-chain form, and the shape of\n * a message-key signature (protocol §3.1, §3.15, §3.16). Everyone who writes\n * or reads `fillerId` and `repayTo` — trading, filler-gateway, the attestors,\n * the filler SDK — encodes them here, so a ticket, a `Filled` event and a\n * `FillProof` always carry the same 32 bytes. No secp256k1: recovering the\n * signer stays with the consumer's own library.\n */\nimport { utf8ToBytes } from '@noble/hashes/utils';\nimport { hexBytes, keccak, toHex } from './bytes';\nimport type { Hex } from './typedData';\n\n/** `fillerId`: issued by Cancore at onboarding, ASCII so the draw's UTF-8 byte order is plain byte order (D-H). */\nexport const FILLER_ID_PATTERN = /^[a-z0-9][a-z0-9-]{0,62}$/;\n\n/** secp256k1 group order; a message-key signature has `0 < r < N` and `0 < s ≤ N / 2` (low-s). */\nconst SECP256K1_N = 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141n;\n\n/** The on-chain form of a filler id, `keccak256(utf8(fillerId))` — `FillTicket`, `Filled`, `FillProof`, `Settled`. */\nexport function fillerIdHash(fillerId: string): Hex {\n if (typeof fillerId !== 'string' || !FILLER_ID_PATTERN.test(fillerId)) throw new TypeError(`fillerId must match ${FILLER_ID_PATTERN}: ${JSON.stringify(fillerId)}`);\n return toHex(keccak(utf8ToBytes(fillerId)));\n}\n\n/**\n * `repayTo` for an EVM source: the address left-padded with zeros to 32 bytes.\n * Refuses the zero address, which `settle` refuses too (`ZeroAddress`).\n */\nexport function repayToFromEvm(address: string): Hex {\n const bytes = hexBytes(address, 'repayTo address', 20);\n if (bytes.every((b) => b === 0)) throw new RangeError('repayTo: the zero address is not a payee');\n return `0x${'00'.repeat(12)}${address.slice(2).toLowerCase()}`;\n}\n\n/** `repayTo` for a Canton source: `keccak256(utf8(partyId))` of the filler's party registered under its `fillerId`. */\nexport function repayToFromParty(partyId: string): Hex {\n if (typeof partyId !== 'string' || partyId.length === 0) throw new TypeError('repayTo: a Canton party id is a non-empty string');\n return toHex(keccak(utf8ToBytes(partyId)));\n}\n\n/** Whether `repayTo` is payable on an EVM source: zero top 12 bytes (`InvalidBytes32Address`) and not the zero address (`ZeroAddress`). */\nexport function isEvmRepayTo(repayTo: string): boolean {\n return /^0x0{24}[0-9a-fA-F]{40}$/.test(repayTo) && !/^0x0{64}$/.test(repayTo);\n}\n\n/** The address `settle` pays on an EVM source, `address(uint160(uint256(repayTo)))`; throws where the router reverts. */\nexport function evmAddressFromRepayTo(repayTo: string): Hex {\n hexBytes(repayTo, 'repayTo', 32);\n if (!isEvmRepayTo(repayTo)) throw new RangeError(`repayTo ${repayTo} is not a padded, non-zero EVM address`);\n return `0x${repayTo.slice(26).toLowerCase()}`;\n}\n\n/**\n * Whether `sig` has the shape a message key (an EOA) produces and the protocol\n * accepts: 65 bytes `r ‖ s ‖ v`, `v ∈ {27, 28}`, `0 < r < n`, low-s\n * `0 < s ≤ n/2`. Anything else is refused before recovery — an EIP-1271\n * smart-wallet signature among them: the message key is an EOA, verified by\n * ecrecover only. Passing this check says nothing about WHO signed: recover\n * the address and compare it with the registered key.\n */\nexport function isEoaSignature(sig: unknown): sig is Hex {\n if (typeof sig !== 'string' || !/^0x[0-9a-fA-F]{128}(1[bB]|1[cC])$/.test(sig)) return false;\n const r = BigInt(`0x${sig.slice(2, 66)}`);\n const s = BigInt(`0x${sig.slice(66, 130)}`);\n return r > 0n && r < SECP256K1_N && s > 0n && s <= SECP256K1_N / 2n;\n}\n","/**\n * The EIP-712 types and domains of the Cancore intent rail, filler protocol v1.\n *\n * The CODE types (`Order`, `Quote`, `FillTicket`; `FillProof` lives in\n * `../eip712`) come from evm-contracts/abi/typed-data through npm run sync.\n * Their public names stay here so callers use the same synchronized schemas.\n * The PROTOCOL types are off-chain,\n * signed in the `CancoreFillerProtocol` domain by the filler's one message key\n * (or the gateway key), and fixed by this package: a field reordered here\n * changes every digest, and the golden vectors under `spec/protocol/typed-data`\n * fail the moment it happens.\n */\n\nimport { ORDER_DOMAIN } from '../generated/typedData';\nexport { ORDER_TYPES, QUOTE_TYPES, FILL_TICKET_TYPES, FILL_TICKET_DOMAIN } from '../generated/typedData';\n\nexport type Hex = `0x${string}`;\n\n/** A wide unsigned integer as the wire carries it (decimal string) or as code holds it. */\nexport type UintLike = bigint | number | string;\n\n/** Name and version of the domain every off-chain protocol struct is signed in — no chain id, no verifying contract. */\nexport const FILLER_PROTOCOL_DOMAIN = { name: 'CancoreFillerProtocol', version: '1' } as const;\n\n/** The source-router domain `Order` and `Quote` are hashed in. Canton source: `CANTON_ORIGIN_ID` and the anchor. */\nexport function routerDomain(chainId: UintLike, verifyingContract: Hex) {\n return { ...ORDER_DOMAIN, chainId, verifyingContract } as const;\n}\n\n/** `FillerQuote(bytes32 requestId,string fillerId,uint256 amountOut,uint64 validUntil,uint64 nonce)` — signed by the message key. */\nexport const FILLER_QUOTE_TYPES = {\n FillerQuote: [\n { name: 'requestId', type: 'bytes32' },\n { name: 'fillerId', type: 'string' },\n { name: 'amountOut', type: 'uint256' },\n { name: 'validUntil', type: 'uint64' },\n { name: 'nonce', type: 'uint64' },\n ],\n} as const;\n\n/**\n * `TicketIntent(bytes32 orderHash,uint32 attempt,uint64 validFrom,uint64 validUntil,string fillerId,address deliveryKey,bytes32 repayTo)`\n * — the filler's consent to an offered ticket, signed by its message key; `deliveryKey` and `repayTo` go into the `FillTicket` as they are.\n */\nexport const TICKET_INTENT_TYPES = {\n TicketIntent: [\n { name: 'orderHash', type: 'bytes32' },\n { name: 'attempt', type: 'uint32' },\n { name: 'validFrom', type: 'uint64' },\n { name: 'validUntil', type: 'uint64' },\n { name: 'fillerId', type: 'string' },\n { name: 'deliveryKey', type: 'address' },\n { name: 'repayTo', type: 'bytes32' },\n ],\n} as const;\n\n/** `TicketReceipt(bytes32 ticketHash,bytes32 ticketSigHash)` — signed by the message key. */\nexport const TICKET_RECEIPT_TYPES = {\n TicketReceipt: [\n { name: 'ticketHash', type: 'bytes32' },\n { name: 'ticketSigHash', type: 'bytes32' },\n ],\n} as const;\n\n/**\n * `CantonTicketReceipt(bytes32 orderHash,uint32 attempt,bytes32 deliveryOrderCidHash,uint64 validUntil)` — the receipt of a\n * Canton-form ticket, which has no `FillTicket` and no `ticketSig`; signed by the message key. `fillerId` and `repayTo`\n * are not in it: they travel in `ticket.issued` (protocol.md §3.3, §10 D-O).\n */\nexport const CANTON_TICKET_RECEIPT_TYPES = {\n CantonTicketReceipt: [\n { name: 'orderHash', type: 'bytes32' },\n { name: 'attempt', type: 'uint32' },\n { name: 'deliveryOrderCidHash', type: 'bytes32' },\n { name: 'validUntil', type: 'uint64' },\n ],\n} as const;\n\n/** `StakeBinding(string partnerId,address stakingAddress,uint256 chainId,uint64 nonce)` — signed by the staking address. */\nexport const STAKE_BINDING_TYPES = {\n StakeBinding: [\n { name: 'partnerId', type: 'string' },\n { name: 'stakingAddress', type: 'address' },\n { name: 'chainId', type: 'uint256' },\n { name: 'nonce', type: 'uint64' },\n ],\n} as const;\n\n/** `FillerAuth(string fillerId,bytes32 nonce,uint64 expiresAt)` — signed by the message key. */\nexport const FILLER_AUTH_TYPES = {\n FillerAuth: [\n { name: 'fillerId', type: 'string' },\n { name: 'nonce', type: 'bytes32' },\n { name: 'expiresAt', type: 'uint64' },\n ],\n} as const;\n\n/** `GatewayMessage(bytes32 bodyHash)` — signed by the gateway key; `bodyHash = gatewayBodyHash(message)`. */\nexport const GATEWAY_MESSAGE_TYPES = {\n GatewayMessage: [{ name: 'bodyHash', type: 'bytes32' }],\n} as const;\n\n/** `FillerMessage(bytes32 bodyHash)` — the envelope `msgSig` of every filler message, by the message key; `bodyHash = fillerMessageBodyHash(message)`. */\nexport const FILLER_MESSAGE_TYPES = {\n FillerMessage: [{ name: 'bodyHash', type: 'bytes32' }],\n} as const;\n\n/**\n * `FillerKeyRegistration(string fillerId,address messageKey,uint64 issuedAt)` — proof of possession of a message key,\n * signed by that key: at onboarding, and with the NEW key at a manual key change by Cancore staff. There is no rotation type.\n */\nexport const FILLER_KEY_REGISTRATION_TYPES = {\n FillerKeyRegistration: [\n { name: 'fillerId', type: 'string' },\n { name: 'messageKey', type: 'address' },\n { name: 'issuedAt', type: 'uint64' },\n ],\n} as const;\n\nexport interface Order {\n user: Hex;\n originChainId: UintLike;\n inputToken: Hex;\n inputAmount: UintLike;\n destination: Hex;\n outputAsset: Hex;\n minReceived: UintLike;\n recipient: Hex;\n createdAt: UintLike;\n fillDeadline: UintLike;\n feeBps: number | string;\n /** `fillerIdHash(fillerId)` of the filler the user picked: only its ticket fills the order and only a proof naming it settles it (`WrongFiller`). */\n fillerId: Hex;\n}\n\nexport interface Quote {\n orderHash: Hex;\n quoteDeadline: UintLike;\n}\n\nexport interface FillTicket {\n orderHash: Hex;\n /** `fillerIdHash(fillerId)`: the on-chain form of the filler's id. */\n fillerId: Hex;\n /** The only address `fill` accepts this ticket from; the zero address never reaches a router (Canton destinations have no `FillTicket`). */\n deliveryKey: Hex;\n /** Where `settle` pays, encoded for the source chain (`repayToFromEvm`, `repayToFromParty`). */\n repayTo: Hex;\n attempt: number;\n validFrom: UintLike;\n validUntil: UintLike;\n}\n\nexport interface FillerQuote {\n /** `requestIdHash(requestId)`, not the string. */\n requestId: Hex;\n fillerId: string;\n amountOut: UintLike;\n validUntil: UintLike;\n nonce: UintLike;\n}\n\nexport interface TicketIntent {\n orderHash: Hex;\n attempt: number;\n validFrom: UintLike;\n validUntil: UintLike;\n /** The signer's own id, the string form. */\n fillerId: string;\n /** The address that will send `fill` on the destination; the zero address for a Canton destination. */\n deliveryKey: Hex;\n /** Where `settle` pays, encoded for the source chain. */\n repayTo: Hex;\n}\n\nexport interface TicketReceipt {\n /** `hashTypedData` of the `FillTicket` in `FILL_TICKET_DOMAIN`. */\n ticketHash: Hex;\n /** keccak256 of the 65 raw signature bytes. */\n ticketSigHash: Hex;\n}\n\nexport interface CantonTicketReceipt {\n orderHash: Hex;\n attempt: number;\n /** `deliveryOrderCidHash(deliveryOrderCid)`: keccak256 of the contract id exactly as `ticket.issued` sent it. */\n deliveryOrderCidHash: Hex;\n /** `ticket.issued.validUntil` (= `DeliveryOrder.validUntil`), unix seconds. */\n validUntil: UintLike;\n}\n\nexport interface StakeBinding {\n partnerId: string;\n stakingAddress: Hex;\n chainId: UintLike;\n nonce: UintLike;\n}\n\nexport interface FillerAuth {\n fillerId: string;\n nonce: Hex;\n expiresAt: UintLike;\n}\n\nexport interface GatewayMessage {\n bodyHash: Hex;\n}\n\nexport interface FillerMessage {\n bodyHash: Hex;\n}\n\nexport interface FillerKeyRegistration {\n fillerId: string;\n /** The address derived from the key being registered. */\n messageKey: Hex;\n /** Unix seconds. */\n issuedAt: UintLike;\n}\n","/**\n * Order hashing of the intent rail: the router's `hashOrder` and\n * `sourceOrderHash`, the EVM-form `Order` of a Canton-source intent\n * (protocol.md §3.7, a port of evm-contracts `test/helpers/cantonOrder.ts`),\n * and the Permit2 witness a maker signs to open an EVM-source intent\n * (`CancoreRouter.WITNESS_TYPE_STRING`). Digests only: signing stays with the\n * consumer's own secp256k1 key.\n */\nimport { concatBytes, utf8ToBytes } from '@noble/hashes/utils';\nimport { CANTON_ORIGIN_ID, CANTON_SOURCE_ANCHOR, DAML_NUMERIC_SCALE, EIP2294_MAX_CHAIN_ID, INSTRUMENT_LABEL_TAG, MAX_FEE_BPS, OWNER_LABEL_TAG } from './constants';\nimport { PERMIT2_ADDRESS } from './deployments';\nimport { abiEncodeStrings, exactUnits } from './encoding';\nimport { beBytes, hexBytes, keccak, toHex, uint } from './protocol/bytes';\nimport { encodeType, hashDomain, hashStruct, hashTypedData } from './protocol/hash';\nimport { fillerIdHash } from './protocol/identity';\nimport { ORDER_TYPES, routerDomain, type Hex, type Order, type UintLike } from './protocol/typedData';\n\n/** The source-router domain an order is hashed in: its chain id and router (Canton: `CANTON_ORIGIN_ID`, `CANTON_SOURCE_ANCHOR`). */\nexport interface OrderDomain {\n chainId: UintLike;\n verifyingContract: Hex | string;\n}\n\n/** `CancoreRouter.hashOrder`: the EIP-712 digest of `order` in the router domain `{chainId, verifyingContract}` — the `orderHash`. */\nexport function hashOrder(order: Order, domain: OrderDomain): Hex {\n return hashTypedData({ domain: routerDomain(domain.chainId, domain.verifyingContract as Hex), types: ORDER_TYPES, primaryType: 'Order', message: { ...order } });\n}\n\n/** Whether `chainId` is the `Order.originChainId` of a Canton network (`CANTON_ORIGIN_ID`). */\nexport function isCantonOriginId(chainId: UintLike): boolean {\n let id: bigint;\n try {\n id = uint(chainId, 64, 'chainId');\n } catch {\n return false;\n }\n return Object.values(CANTON_ORIGIN_ID).includes(id as (typeof CANTON_ORIGIN_ID)[keyof typeof CANTON_ORIGIN_ID]);\n}\n\n/**\n * `CancoreRouter.sourceOrderHash`: the order hash as its SOURCE router computed it — what a destination\n * keys `filled` on. A Canton origin hashes under `CANTON_SOURCE_ANCHOR`; an EVM origin needs the source\n * router registered for it (`sourceRouter[originChainId]`), and is refused without one as the router\n * reverts `SourceRouterUnknown`.\n */\nexport function sourceOrderHash(order: Order, sourceRouter?: Hex | string): Hex {\n const router = sourceRouter ?? (isCantonOriginId(order.originChainId) ? CANTON_SOURCE_ANCHOR : undefined);\n if (router === undefined) throw new Error(`sourceOrderHash: no source router for originChainId ${String(order.originChainId)} (SourceRouterUnknown)`);\n return hashOrder(order, { chainId: order.originChainId, verifyingContract: router });\n}\n\n/** A Canton-source intent as its owner signs it (`SwapIntentRequest`), the input of `buildCantonSourceOrder`. */\nexport interface CantonSourceIntent {\n /** Canton party id of the owner, e.g. `alice::1220abc…`. */\n ownerPartyId: string;\n /** `requestId` of the signed request; without it two identical requests would share a hash. */\n requestId: string;\n /** Party id of the instrument admin (registry operator). */\n instrumentAdmin: string;\n /** Instrument id inside that registry, e.g. `CNRX`. */\n instrumentId: string;\n /** Amount given (the total T, fee included), a Daml decimal string, at most 10 decimal places. */\n amount: string;\n /** EVM chain the output is delivered on. */\n destinationChainId: UintLike;\n /** ERC-20 delivered there. */\n wantToken: string;\n /** Its `decimals()`. */\n wantDecimals: number;\n /** Lower bound of the delivery, a decimal string in `wantToken` units. */\n minReceived: string;\n /** Receiver on the destination, an EVM address. */\n recipient: string;\n /** The owner-signed `orderCreatedAt` of the request (not the ledger time of Execute), unix seconds, a whole second. */\n createdAt: number | string;\n /** Unix seconds, a whole second. */\n fillDeadline: number | string;\n /** Inclusive fee rate as a decimal string, e.g. `\"0.003\"`; at most 4 decimal places, at most `MAX_FEE_BPS / 10 000`. */\n feeRate: string;\n /** One of `CANTON_ORIGIN_ID`. */\n cantonOriginId: UintLike;\n /** Id of the filler the owner picked, as Cancore issued it (e.g. `acme`); the order carries `keccak256(utf8(fillerId))`. */\n fillerId: string;\n}\n\nexport interface CantonSourceOrder {\n /** The EVM-form `Order`: wide integers as decimal strings, addresses EIP-55, words lowercase. */\n order: Order;\n /** The Canton source domain: `CancoreRouter` v1, `CANTON_ORIGIN_ID`, `CANTON_SOURCE_ANCHOR`. */\n domain: { name: 'CancoreRouter'; version: '1'; chainId: string; verifyingContract: typeof CANTON_SOURCE_ANCHOR };\n orderHash: Hex;\n}\n\n/**\n * The EVM-form `Order` of a Canton-source intent and its source-domain hash (protocol.md §3.7).\n * Refuses rather than rounds: an amount, a fee or a time the chain cannot represent exactly is\n * rejected BEFORE the owner signs, because after that the `orderHash` is fixed.\n */\nexport function buildCantonSourceOrder(intent: CantonSourceIntent): CantonSourceOrder {\n for (const field of ['ownerPartyId', 'requestId', 'instrumentAdmin', 'instrumentId'] as const) {\n if (typeof intent[field] !== 'string' || intent[field].length === 0) throw new TypeError(`${field}: a non-empty string`);\n }\n const originChainId = uint(intent.cantonOriginId, 64, 'cantonOriginId');\n if (originChainId <= EIP2294_MAX_CHAIN_ID) throw new RangeError(`cantonOriginId: ${originChainId} collides with the EVM chain-id range`);\n const feeBps = exactUnits(intent.feeRate, 4, 'feeRate');\n if (feeBps > BigInt(MAX_FEE_BPS)) throw new RangeError(`feeRate: ${intent.feeRate} exceeds MAX_FEE_BPS`);\n\n const order: Order = {\n user: label(OWNER_LABEL_TAG, intent.ownerPartyId, intent.requestId),\n originChainId: originChainId.toString(),\n inputToken: label(INSTRUMENT_LABEL_TAG, intent.instrumentAdmin, intent.instrumentId),\n inputAmount: exactUnits(intent.amount, DAML_NUMERIC_SCALE, 'amount').toString(),\n destination: toHex(beBytes(uint(intent.destinationChainId, 256, 'destinationChainId'), 32)),\n outputAsset: addressWord(intent.wantToken, 'wantToken'),\n minReceived: exactUnits(intent.minReceived, intent.wantDecimals, 'minReceived').toString(),\n recipient: addressWord(intent.recipient, 'recipient'),\n createdAt: wholeSecond(intent.createdAt, 'createdAt'),\n fillDeadline: wholeSecond(intent.fillDeadline, 'fillDeadline'),\n feeBps: feeBps.toString(),\n // refuses an empty or malformed id: an order with no picked filler can be filled by nobody\n fillerId: fillerIdHash(intent.fillerId),\n };\n const domain = { name: 'CancoreRouter', version: '1', chainId: originChainId.toString(), verifyingContract: CANTON_SOURCE_ANCHOR } as const;\n return { order, domain, orderHash: hashOrder(order, domain) };\n}\n\n/** `TokenPermissions(address token,uint256 amount)` of Permit2. */\nconst TOKEN_PERMISSIONS_TYPES = {\n TokenPermissions: [\n { name: 'token', type: 'address' },\n { name: 'amount', type: 'uint256' },\n ],\n} as const;\n\n/**\n * `CancoreRouter.WITNESS_TYPE_STRING`: the tail Permit2 appends after\n * `\"PermitWitnessTransferFrom(TokenPermissions permitted,address spender,uint256 nonce,uint256 deadline,\"`.\n */\nexport const PERMIT2_WITNESS_TYPE_STRING = `Order witness)${encodeType(ORDER_TYPES, 'Order')}${encodeType(TOKEN_PERMISSIONS_TYPES, 'TokenPermissions')}`;\n\nconst PERMIT_WITNESS_TYPEHASH = keccak(\n utf8ToBytes(`PermitWitnessTransferFrom(TokenPermissions permitted,address spender,uint256 nonce,uint256 deadline,${PERMIT2_WITNESS_TYPE_STRING}`),\n);\n\n/** The Permit2 witness typed data a wallet renders and signs (`eth_signTypedData_v4` types), the `Order` nested as `witness`. */\nexport const PERMIT_WITNESS_TYPES = {\n PermitWitnessTransferFrom: [\n { name: 'permitted', type: 'TokenPermissions' },\n { name: 'spender', type: 'address' },\n { name: 'nonce', type: 'uint256' },\n { name: 'deadline', type: 'uint256' },\n { name: 'witness', type: 'Order' },\n ],\n ...TOKEN_PERMISSIONS_TYPES,\n ...ORDER_TYPES,\n} as const;\n\n/** The message of `PERMIT_WITNESS_TYPES`: `spender` is the source router, `permitted` the order's input token and amount. */\nexport interface PermitWitness {\n permitted: { token: Hex | string; amount: UintLike };\n spender: Hex | string;\n nonce: UintLike;\n deadline: UintLike;\n witness: Order;\n}\n\n/** The Permit2 domain: `{name: \"Permit2\", chainId, verifyingContract}` — no version. */\nexport function permit2Domain(chainId: UintLike, permit2: Hex | string = PERMIT2_ADDRESS) {\n return { name: 'Permit2', chainId, verifyingContract: permit2 } as const;\n}\n\n/** The digest the maker signs for `openFor`: `PermitWitnessTransferFrom` with the order as witness, in the Permit2 domain. */\nexport function hashPermitWitness(permit: PermitWitness, chainId: UintLike, permit2: Hex | string = PERMIT2_ADDRESS): Hex {\n const struct = keccak(\n concatBytes(\n PERMIT_WITNESS_TYPEHASH,\n hexBytes(hashStruct(TOKEN_PERMISSIONS_TYPES, 'TokenPermissions', permit.permitted), 'permitted', 32),\n hexBytes(addressWord(permit.spender, 'spender'), 'spender', 32),\n beBytes(uint(permit.nonce, 256, 'nonce'), 32),\n beBytes(uint(permit.deadline, 256, 'deadline'), 32),\n hexBytes(hashStruct(ORDER_TYPES, 'Order', { ...permit.witness }), 'witness', 32),\n ),\n );\n const separator = hexBytes(hashDomain(permit2Domain(chainId, permit2)), 'domain', 32);\n return toHex(keccak(concatBytes(new Uint8Array([0x19, 0x01]), separator, struct)));\n}\n\n// --- encoding helpers\n\n/** Unix seconds as a whole second (a safe integer or a canonical decimal string), within uint64. */\nfunction wholeSecond(value: unknown, field: string): string {\n return uint(value, 64, `${field} (a whole second)`).toString();\n}\n\n/** An EVM address as the left-padded lowercase 32-byte word of `bytes32(uint256(uint160(address)))`. */\nfunction addressWord(value: unknown, field: string): Hex {\n const address = checksumAddress(value, field);\n return `0x${'00'.repeat(12)}${address.slice(2).toLowerCase()}`;\n}\n\n/** EIP-55; a mixed-case input must already carry the right checksum, as ethers `getAddress` requires. */\nfunction checksumAddress(value: unknown, field: string): Hex {\n hexBytes(value, field, 20);\n const lower = (value as string).slice(2).toLowerCase();\n const hash = toHex(keccak(utf8ToBytes(lower))).slice(2);\n const sum = `0x${[...lower].map((c, i) => (parseInt(hash[i]!, 16) >= 8 ? c.toUpperCase() : c)).join('')}` as Hex;\n const body = (value as string).slice(2);\n if (body !== body.toLowerCase() && body !== body.toUpperCase() && `0x${body}` !== sum) throw new TypeError(`${field}: bad EIP-55 checksum: ${String(value)}`);\n return sum;\n}\n\n/** `address(uint160(uint256(keccak256(abi.encode(tag, a, b)))))`, EIP-55 — the owner and instrument labels. */\nfunction label(tag: string, a: string, b: string): Hex {\n const hash = toHex(keccak(abiEncodeStrings([tag, a, b])));\n return checksumAddress(`0x${hash.slice(-40)}`, 'label');\n}\n","/**\n * The inclusive fee of the intent rail (protocol.md §3.11): the maker hands over\n * the total `T = N + F`, the filler is paid the net, Cancore keeps the rest.\n * `T` and the result are in the input's base units (a Canton source: 10⁻¹⁰ units\n * of the give instrument, its EVM form of §3.7).\n */\nimport { BPS, MAX_FEE_BPS } from './constants';\nimport { uint } from './protocol/bytes';\nimport type { UintLike } from './protocol/typedData';\n\nexport interface FeeSplit {\n /** What the filler is paid. */\n payout: bigint;\n /** What Cancore keeps: `total − payout`. */\n fee: bigint;\n}\n\nfunction operands(total: UintLike, feeBps: UintLike): [bigint, bigint] {\n const t = uint(total, 256, 'total');\n const bps = uint(feeBps, 16, 'feeBps');\n if (bps > BigInt(MAX_FEE_BPS)) throw new RangeError(`feeBps: ${bps} exceeds MAX_FEE_BPS (${MAX_FEE_BPS})`);\n return [t, bps];\n}\n\n/**\n * EVM source, `CancoreRouter.settle`: `payout = ⌊T × 10 000 / (10 000 + feeBps)⌋`, `fee = T − payout`.\n * The rounding dust goes to the fee; a total below one net unit (`T × 10 000 < 10 000 + feeBps`)\n * pays 0 and is all fee.\n */\nexport function inclusiveFeeSplit(total: UintLike, feeBps: UintLike): FeeSplit {\n const [t, bps] = operands(total, feeBps);\n const payout = (t * BigInt(BPS)) / (BigInt(BPS) + bps);\n return { payout, fee: t - payout };\n}\n\n/**\n * Canton source, Daml `inclusiveFee amount feeRate = amount − amount / (1.0 + feeRate)` in EVM-form\n * units: the same quotient rounded half to even (Daml `Numeric 10` division), so the payout is the\n * EVM one or one unit more. A filler prices a Canton-source order on this, never on the EVM formula (T-12).\n */\nexport function cantonInclusiveFeeSplit(total: UintLike, feeBps: UintLike): FeeSplit {\n const [t, bps] = operands(total, feeBps);\n const n = t * BigInt(BPS);\n const d = BigInt(BPS) + bps;\n const q = n / d;\n const r = n - q * d;\n const payout = 2n * r > d || (2n * r === d && q % 2n === 1n) ? q + 1n : q;\n return { payout, fee: t - payout };\n}\n","/**\n * Canton-destination orders and proofs in EVM form (protocol.md §3.13): an\n * EVM-source order whose output is delivered on Canton, and the `FillProof` of\n * that delivery, carry Canton values in EVM fields. This is the one encoder the\n * backend OrderBuilder, the web app, the filler node and the attestors use;\n * nobody re-implements it.\n */\nimport { utf8ToBytes } from '@noble/hashes/utils';\nimport { CANTON_ORIGIN_ID, DAML_NUMERIC_SCALE, INSTRUMENT_LABEL_TAG } from './constants';\nimport { abiEncodeStrings, exactUnits } from './encoding';\nimport { keccak, toHex } from './protocol/bytes';\nimport type { Hex } from './protocol/typedData';\n\n/** A Canton network, as in its CAIP-2 id `canton:<network>`. */\nexport type CantonNetwork = keyof typeof CANTON_ORIGIN_ID;\n\nconst NETWORKS = Object.keys(CANTON_ORIGIN_ID) as CantonNetwork[];\n\nconst utf8Hash = (text: string): Hex => toHex(keccak(utf8ToBytes(text)));\n\nconst nonEmpty = (value: unknown, field: string): string => {\n if (typeof value !== 'string' || value.length === 0) throw new TypeError(`${field}: a non-empty string`);\n return value;\n};\n\n/** `Order.destination` and `FillProof.destination` of a Canton network: `keccak256(utf8(\"canton:<network>\"))`. */\nexport function encodeCantonDestination(network: CantonNetwork): Hex {\n if (!NETWORKS.includes(network)) throw new TypeError(`network: one of ${NETWORKS.join(', ')}, got ${JSON.stringify(network)}`);\n return utf8Hash(`canton:${network}`);\n}\n\n/** The Canton network an order's `destination` names, or `undefined` when it is not a Canton destination. */\nexport function cantonNetworkOfDestination(destination: string): CantonNetwork | undefined {\n const word = typeof destination === 'string' ? destination.toLowerCase() : '';\n return NETWORKS.find((network) => encodeCantonDestination(network) === word);\n}\n\n/**\n * `Order.outputAsset` and `FillProof.outputAsset` of a Canton instrument:\n * `keccak256(abi.encode(\"cancore:instrument:v1\", admin, id))`, the full 32 bytes — the same hash a\n * Canton-source `inputToken` label truncates to 20 bytes.\n */\nexport function encodeCantonOutputAsset(instrument: { admin: string; id: string }): Hex {\n return toHex(keccak(abiEncodeStrings([INSTRUMENT_LABEL_TAG, nonEmpty(instrument.admin, 'instrument.admin'), nonEmpty(instrument.id, 'instrument.id')])));\n}\n\n/** `Order.recipient` and `FillProof.recipient` of a Canton party: `keccak256(utf8(partyId))` over the full party id. */\nexport function encodeCantonRecipient(partyId: string): Hex {\n return utf8Hash(nonEmpty(partyId, 'partyId'));\n}\n\n/**\n * `Order.minReceived` and `FillProof.amountDelivered` of a Canton amount: the Daml `Numeric 10`\n * decimal × 10¹⁰. No rounding: an amount that is not exact at 10⁻¹⁰ is refused before anyone signs.\n */\nexport function encodeCantonAmount(amount: string): bigint {\n return exactUnits(amount, DAML_NUMERIC_SCALE, 'amount');\n}\n","/**\n * One digest helper per signed type of the intent rail's settlement design:\n * what a signer hands its secp256k1 key and what a verifier recovers from.\n * Each is `hashTypedData` over the type and domain of this package, so no\n * consumer re-types a struct (SDK S1). `FillProof` is `hashFillProof` in\n * `../eip712`, next to its domain.\n */\nimport { utf8ToBytes } from '@noble/hashes/utils';\nimport { hexBytes, keccak, toHex, uint } from './bytes';\nimport { hashTypedData, fillerMessageBodyHash } from './hash';\nimport type { TicketIssuedCanton } from './messages';\nimport {\n CANTON_TICKET_RECEIPT_TYPES, FILL_TICKET_DOMAIN, FILL_TICKET_TYPES, FILLER_KEY_REGISTRATION_TYPES, FILLER_MESSAGE_TYPES, FILLER_PROTOCOL_DOMAIN,\n FILLER_QUOTE_TYPES, TICKET_INTENT_TYPES,\n type CantonTicketReceipt, type FillerKeyRegistration, type FillerQuote, type FillTicket, type Hex, type TicketIntent,\n} from './typedData';\n\n/** `hashTicket` of the router: the `FillTicket` digest in the ticket domain, the same on every chain. */\nexport const hashFillTicket = (ticket: FillTicket): Hex =>\n hashTypedData({ domain: FILL_TICKET_DOMAIN, types: FILL_TICKET_TYPES, primaryType: 'FillTicket', message: { ...ticket } });\n\n/** The `FillerQuote` digest; `quote.requestId` is already `requestIdHash(requestId)`. */\nexport const hashFillerQuote = (quote: FillerQuote): Hex =>\n hashTypedData({ domain: FILLER_PROTOCOL_DOMAIN, types: FILLER_QUOTE_TYPES, primaryType: 'FillerQuote', message: { ...quote } });\n\n/** The `TicketIntent` digest — the inner `sig` of `ticket.intent`. */\nexport const hashTicketIntent = (intent: TicketIntent): Hex =>\n hashTypedData({ domain: FILLER_PROTOCOL_DOMAIN, types: TICKET_INTENT_TYPES, primaryType: 'TicketIntent', message: { ...intent } });\n\n/** What `msgSig` of a filler → filler-gateway message is over: `FillerMessage{bodyHash}` of the message without `msgSig`. */\nexport const hashFillerMessage = (message: object): Hex =>\n hashTypedData({ domain: FILLER_PROTOCOL_DOMAIN, types: FILLER_MESSAGE_TYPES, primaryType: 'FillerMessage', message: { bodyHash: fillerMessageBodyHash(message) } });\n\n/** The `FillerKeyRegistration` digest; the registered key signs it, and it must recover to `messageKey`. */\nexport const hashFillerKeyRegistration = (registration: FillerKeyRegistration): Hex =>\n hashTypedData({ domain: FILLER_PROTOCOL_DOMAIN, types: FILLER_KEY_REGISTRATION_TYPES, primaryType: 'FillerKeyRegistration', message: { ...registration } });\n\n/** `keccak256(utf8(deliveryOrderCid))` over the contract id exactly as `ticket.issued` sent it: no trimming, no case change. */\nexport function deliveryOrderCidHash(deliveryOrderCid: string): Hex {\n if (typeof deliveryOrderCid !== 'string' || deliveryOrderCid.length === 0) throw new TypeError('deliveryOrderCid: a Canton contract id is a non-empty string');\n return toHex(keccak(utf8ToBytes(deliveryOrderCid)));\n}\n\n/**\n * The `CantonTicketReceipt` of a Canton-form ticket, from the fields that name it — the filler reads them from\n * `ticket.issued`, filler-gateway from the `ticket.receipt` it verifies; both get the same struct. Any other field of\n * the frame (`fillerId`, `repayTo`) is not part of the receipt and is ignored.\n */\nexport function cantonTicketReceipt(ticket: Pick<TicketIssuedCanton, 'orderHash' | 'attempt' | 'deliveryOrderCid' | 'validUntil'>): CantonTicketReceipt {\n hexBytes(ticket.orderHash, 'orderHash', 32);\n return {\n orderHash: ticket.orderHash.toLowerCase() as Hex,\n attempt: Number(uint(ticket.attempt, 32, 'attempt')),\n deliveryOrderCidHash: deliveryOrderCidHash(ticket.deliveryOrderCid),\n validUntil: uint(ticket.validUntil, 64, 'validUntil').toString(),\n };\n}\n\n/** The `CantonTicketReceipt` digest — the inner `sig` of a Canton-form `ticket.receipt`. */\nexport const hashCantonTicketReceipt = (receipt: CantonTicketReceipt): Hex =>\n hashTypedData({ domain: FILLER_PROTOCOL_DOMAIN, types: CANTON_TICKET_RECEIPT_TYPES, primaryType: 'CantonTicketReceipt', message: { ...receipt } });\n","/**\n * The checks of protocol §3.4 a filler → filler-gateway message must pass\n * before it is processed, as far as they need no key and no state. What stays\n * with the receiver: recovering `msgSig` and comparing it with the message key\n * registered for `fillerId` (check 1 proper, S-24), and refusing an `id`\n * already accepted from that `fillerId` (check 4, `REPLAYED_MESSAGE`) — kept\n * until `messageIdRetainUntil`, so no replay outlives the record of its id.\n */\nimport { isEoaSignature } from './identity';\nimport type { ErrorCode } from './messages';\n\nexport interface FillerEnvelopeContext {\n /** The `fillerId` the session (or bearer token) is authenticated for. */\n fillerId: string;\n /** Arrival time, unix ms, the receiver's clock. */\n receivedAt: number;\n /** `GET /v1/gateway` `maxMessageAgeMs`. */\n maxMessageAgeMs: number;\n}\n\n/**\n * The error code the gateway answers for the first envelope check `message`\n * fails, in the order of §3.4, or `null` when every key-free check passes:\n * `BAD_SIGNATURE` — `msgSig` missing or not a 65-byte low-s EOA signature;\n * `UNAUTHENTICATED` — `fillerId` is not the session's; `BAD_REQUEST` — `sentAt`\n * not unix milliseconds, or no valid `id`; `STALE_MESSAGE` — `sentAt` further\n * than `maxMessageAgeMs` from `receivedAt`.\n */\nexport function fillerEnvelopeError(message: object, ctx: FillerEnvelopeContext): ErrorCode | null {\n const { msgSig, fillerId, sentAt, id } = message as Readonly<Record<string, unknown>>;\n if (!isEoaSignature(msgSig)) return 'BAD_SIGNATURE';\n if (fillerId !== ctx.fillerId) return 'UNAUTHENTICATED';\n if (typeof sentAt !== 'number' || !Number.isSafeInteger(sentAt) || sentAt < 1e12) return 'BAD_REQUEST';\n if (Math.abs(ctx.receivedAt - sentAt) > ctx.maxMessageAgeMs) return 'STALE_MESSAGE';\n if (typeof id !== 'string' || id.length < 1 || id.length > 64) return 'BAD_REQUEST';\n return null;\n}\n\n/**\n * Until when (unix ms, receiver clock) the receiver must remember an accepted\n * message `id` to refuse its replay: `max(receivedAt, sentAt) + maxMessageAgeMs`.\n * Freshness is symmetric (`|receivedAt − sentAt| ≤ maxMessageAgeMs`), so a\n * message whose `sentAt` runs ahead of the receiver's clock stays fresh until\n * `sentAt + maxMessageAgeMs` — later than `receivedAt + maxMessageAgeMs`.\n * Forgetting the id earlier would let the byte-identical message in again;\n * after this time a replay fails the freshness check by itself.\n */\nexport function messageIdRetainUntil(sentAt: number, receivedAt: number, maxMessageAgeMs: number): number {\n return Math.max(receivedAt, sentAt) + maxMessageAgeMs;\n}\n","/**\n * The draw of auction-and-draw §3.6: who gets attempt k of an order, from a\n * drand quicknet round nobody knew when the order was fixed. Pure arithmetic —\n * fetching the round and checking its BLS signature is the verifier's job\n * (`@cancore/trader/taker` verifyDraw), not this package's.\n */\nimport { concatBytes, utf8ToBytes } from '@noble/hashes/utils';\nimport { beBytes, hexBytes, keccak, toHex, uint } from './bytes';\nimport type { Hex } from './typedData';\n\nexport interface DrawCandidate {\n fillerId: string;\n /** Decimal string on the wire; the integer weight of auction-and-draw A-11. */\n weight: string | bigint;\n}\n\nexport interface DrawOutcome {\n r: bigint;\n winnerFillerId: string;\n}\n\n/** drand quicknet, the randomness beacon of the draw (auction-and-draw §4). */\nexport const DRAND_QUICKNET = {\n chainHash: '52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971',\n publicKey:\n '83cf0f2896adee7eb8b5f01fcad3912212c437e0073e911fb90022d3e760183c8c4b450b6a0a6c3ac6a5776a2d1064510d1fec758c921cc22b0e17e63aaf4bcb5ed66304de9cf809bd274ca73bab4af5a6e9c76a4bc09e76eae8991ef5ece45a',\n scheme: 'bls-unchained-g1-rfc9380',\n genesisTime: 1692803367,\n period: 3,\n} as const;\n\n/** The first quicknet round whose time is at or after `unixSeconds` (A-20: `round_k` for `t_k + δ_drand`). */\nexport function firstRoundAtOrAfter(unixSeconds: bigint | number): bigint {\n const t = BigInt(unixSeconds);\n const genesis = BigInt(DRAND_QUICKNET.genesisTime);\n const period = BigInt(DRAND_QUICKNET.period);\n return t <= genesis ? 1n : (t - genesis + period - 1n) / period + 1n;\n}\n\n/** `h = uint256(keccak256(randomness ‖ orderHash ‖ uint32be(attempt)))` — the 68-byte preimage of A-21. */\nexport function drawValue(randomness: Hex | string, orderHash: Hex, attempt: number): bigint {\n const rand = hexBytes(randomness.startsWith('0x') ? randomness : `0x${randomness}`, 'randomness', 32);\n const preimage = concatBytes(rand, hexBytes(orderHash, 'orderHash', 32), beBytes(uint(attempt, 32, 'attempt'), 4));\n return BigInt(toHex(keccak(preimage)));\n}\n\nfunction compareUtf8(a: Uint8Array, b: Uint8Array): number {\n const n = Math.min(a.length, b.length);\n for (let i = 0; i < n; i++) if (a[i] !== b[i]) return a[i]! - b[i]!;\n return a.length - b.length;\n}\n\n/**\n * `r = h mod Σw`; the winner is the first candidate, in ascending UTF-8 byte\n * order of `fillerId` (A-22), whose cumulative weight exceeds `r`. Sorts a copy\n * itself, so a verifier compares the outcome, not the order it was served in.\n */\nexport function drawWinner(h: bigint, candidates: readonly DrawCandidate[]): DrawOutcome {\n const sorted = candidates\n .map((c) => ({ id: c.fillerId, key: utf8ToBytes(c.fillerId), weight: uint(c.weight, 256, `weight of ${c.fillerId}`) }))\n .sort((a, b) => compareUtf8(a.key, b.key));\n if (new Set(sorted.map((c) => c.id)).size !== sorted.length) throw new Error('draw: duplicated fillerId');\n const total = sorted.reduce((sum, c) => sum + c.weight, 0n);\n if (total === 0n) throw new Error('draw: no candidate with a positive weight');\n const r = h % total;\n let acc = 0n;\n const winner = sorted.find((c) => (acc += c.weight) > r)!;\n return { r, winnerFillerId: winner.id };\n}\n","import type { DeploymentEnv } from '../deployments';\nimport type { Hex } from './typedData';\n\n/** The protocol major this package describes: the `/v1` path and `auth.response.protocolVersion`. */\nexport const PROTOCOL_VERSION = '1';\n\n/**\n * The WebSocket subprotocol of filler protocol v1. A filler offers it on the\n * upgrade of `/v1` together with `bearer.<token>`; filler-gateway answers with\n * this one only and never echoes the token.\n */\nexport const FILLER_WS_SUBPROTOCOL = 'cancore-filler.v1';\n/** Prefix of the second subprotocol a filler offers: `bearer.` + the token of `POST /v1/filler/auth`. */\nexport const FILLER_WS_BEARER_PREFIX = 'bearer.';\n\n/**\n * The subprotocols a filler offers on the upgrade (`Sec-WebSocket-Protocol`):\n * `['cancore-filler.v1', 'bearer.<token>']`. In a browser\n * `new WebSocket(url, fillerWsProtocols(token))`; with `ws` the same array.\n * The second entry carries the bearer token: never log it.\n */\nexport function fillerWsProtocols(token: string): readonly [string, string] {\n return [FILLER_WS_SUBPROTOCOL, `${FILLER_WS_BEARER_PREFIX}${token}`];\n}\n\n/** Close codes filler-gateway closes a filler session with (protocol §3.1). */\nexport const FILLER_CLOSE_CODES = {\n /** filler-gateway is shutting down. */\n GOING_AWAY: 1001,\n /** The filler missed its heartbeats. */\n HEARTBEAT_MISSED: 4000,\n /** A newer session of this fillerId superseded this one. */\n SUPERSEDED: 4001,\n /** Cancore staff changed the message key the session was opened with: log in again with the new key. */\n KEY_CHANGED: 4002,\n /** The filler is no longer `ACTIVE` (suspended). */\n NOT_ACTIVE: 4003,\n /** This session's inbound queue overflowed (count or bytes); only this session is closed. */\n QUEUE_OVERFLOW: 4008,\n /**\n * Sustained excess over the rate limits: every session of the fillerId is\n * closed and its upgrades and bearer requests are refused for a cooldown;\n * the `error RATE_LIMITED` sent just before carries `retryAfterMs` = the\n * remaining cooldown.\n */\n RATE_LIMITED: 4029,\n} as const;\nexport type FillerCloseCode = (typeof FILLER_CLOSE_CODES)[keyof typeof FILLER_CLOSE_CODES];\n\n/**\n * HTTP statuses filler-gateway refuses the WebSocket upgrade with — a plain\n * HTTP response, no WebSocket, nothing signed. A client sees the upgrade fail\n * before the socket opens.\n */\nexport const FILLER_UPGRADE_REFUSALS = {\n /** `cancore-filler.v1` not offered, or not exactly one `bearer.` entry. */\n 400: 'BAD_REQUEST',\n /** The token is missing, unknown or expired, or the message key changed. */\n 401: 'UNAUTHENTICATED',\n /** The filler is unknown or not `ACTIVE`. */\n 403: 'NOT_ACTIVE',\n /** The login rate class is over its limit, or the fillerId is cooling down; `Retry-After` in seconds. */\n 429: 'RATE_LIMITED',\n /** The replica is at its connection limit, or the fillerId already holds its maximum of live sessions. */\n 503: 'UNAVAILABLE',\n} as const;\n\nexport interface FillerGateway {\n /** The key every S→F message is signed with (`GatewayMessage`); null until the environment has one. */\n gateway: Hex | null;\n /** Keys that sign `FillTicket`; the same set is registered on every router of the environment. */\n ticketSigners: readonly Hex[];\n}\n\n/**\n * The published gateway key and ticket signers per environment — the release\n * data a taker checks every S→F signature and every ticket against, and never\n * takes from a gateway message. A key that does not exist yet is null or\n * absent (O-6); the gateway release fills it in. Test keys never appear here.\n */\nexport const FILLER_GATEWAYS: Readonly<Record<DeploymentEnv, FillerGateway>> = {\n mainnet: { gateway: null, ticketSigners: [] },\n testnet: { gateway: null, ticketSigners: [] },\n // The ticket signer every dev router registers (evm-contracts deployments/router/dev/*.input.json, CAN-2331).\n // The gateway key is published with the gateway release.\n devnet: { gateway: null, ticketSigners: ['0x9a3fc3f44cddbdfb036a8c8a528a903d0c835c1c'] },\n};\n\n/**\n * The Cancore participant per environment: the participant a filler's Canton\n * party is hosted on (protocol §3.19, decision Ын-1). The node checks the\n * hosting of its party against this release value when it signs\n * `party.allocate`, never against a value the backend sends. A participant id\n * as the JSON Ledger API prints it (`<name>::<fingerprint>`, no `PAR::`);\n * null where there is none yet.\n */\nexport const CANTON_PARTICIPANTS: Readonly<Record<DeploymentEnv, string | null>> = {\n mainnet: null,\n testnet: null,\n // GET /v2/parties/participant-id on the devnet Ledger API, 15.10.2026.\n devnet: 'Cancore-devnet-1::12204f383aca6af056f6d83c9b5758fbc53c27a743e2f9d591e61bc657202172524b',\n};\n","/**\n * The wire shapes of filler protocol v1 — WebSocket frames on `/v1`, REST\n * bodies and the public draw/epoch records — as TypeScript. The JSON Schemas\n * under `spec/protocol/` are normative; schemas.test.ts holds the enums below\n * to them. Encoding (protocol §3.1): uint64 and wider as decimal strings,\n * uint8/16/32 as JSON integers, on-chain times in seconds (decimal string),\n * gateway times in milliseconds (JSON integer), hex lowercase.\n *\n * Every frame in both directions is signed by its sender (protocol §3.4):\n * `sig` (gateway key, `GatewayMessage`) on S→F, `msgSig` (the filler's message\n * key, `FillerMessage`) on F→S, and carries `id`, `fillerId` and `sentAt`.\n *\n * Receivers ignore unknown fields and unknown S→F types (V-2), so none of\n * these types is closed. The enum types list the known values; the schemas\n * accept any UPPER_SNAKE value besides them, and a receiver treats an unknown\n * one as OTHER/generic (V-2).\n */\nimport type { SettleAttestations } from './settleAttestations';\nimport type { Hex } from './typedData';\n\n/** Unsigned decimal string: uint64 and wider. */\nexport type DecString = string;\n/** Unix milliseconds, gateway clock. */\nexport type TimeMs = number;\n/** EVM token address, or a Canton instrument. */\nexport type WireAsset = Hex | { admin: string; id: string };\n\nexport const DECLINE_REASONS = [\n 'NO_INVENTORY', 'RISK_LIMIT', 'PRICE_MOVED', 'PAUSED', 'OTHER',\n 'TICKET_SIGNER_UNKNOWN', 'TICKET_MISMATCH', 'TICKET_TTL_TOO_SHORT', 'TICKET_ISSUED_LATE', 'TICKET_BEYOND_DEADLINE',\n 'ESCROW_NOT_OPEN', 'ESCROW_MISMATCH', 'PROOF_WINDOW_TOO_SHORT', 'SKEW_MARGIN_TOO_SHORT', 'DRAW_MISMATCH',\n] as const;\nexport const ERROR_CODES = [\n 'BAD_REQUEST', 'UNAUTHENTICATED', 'UNSUPPORTED_VERSION', 'UNSUPPORTED_TYPE', 'BAD_SIGNATURE',\n 'STALE_MESSAGE', 'REPLAYED_MESSAGE', 'TICKET_REFUSED',\n 'UNKNOWN_REQUEST', 'UNKNOWN_TICKET', 'TICKET_CLOSED', 'NOT_ELIGIBLE', 'RATE_LIMITED', 'INTERNAL',\n 'ATTESTATIONS_NOT_READY', 'CANTON_NOT_READY', 'CANTON_REFUSED', 'CANTON_UNAVAILABLE', 'OPERATION_EXPIRED',\n 'ROUTE_NOT_APPROVED',\n] as const;\n/** HTTP status of each error code on the REST fallback. */\nexport const ERROR_HTTP_STATUS: Readonly<Record<ErrorCode, number>> = {\n BAD_REQUEST: 400, UNAUTHENTICATED: 401, UNSUPPORTED_VERSION: 400, UNSUPPORTED_TYPE: 400, BAD_SIGNATURE: 422,\n STALE_MESSAGE: 400, REPLAYED_MESSAGE: 409, TICKET_REFUSED: 409,\n UNKNOWN_REQUEST: 404, UNKNOWN_TICKET: 404, TICKET_CLOSED: 409, NOT_ELIGIBLE: 403, RATE_LIMITED: 429, INTERNAL: 500,\n ATTESTATIONS_NOT_READY: 404, CANTON_NOT_READY: 409, CANTON_REFUSED: 422, CANTON_UNAVAILABLE: 503, OPERATION_EXPIRED: 410,\n ROUTE_NOT_APPROVED: 403,\n};\n/** `error.reason` with `TICKET_REFUSED`: the pre-ticket check that failed (S-21). */\nexport const TICKET_REFUSED_REASONS = [\n 'REPAY_TO_INVALID', 'REPAY_TO_BLOCKLISTED', 'DELIVERY_KEY_INVALID', 'PAYOUT_NOT_READY', 'RECIPIENT_NOT_READY',\n 'OPEN_TICKET_LIMIT', 'PROOF_WINDOW_TOO_SHORT', 'ATTESTOR_REVOCATION_PENDING', 'SERVICE_DEGRADED', 'OTHER',\n] as const;\nexport const EXPIRED_RESULTS = ['FILLED', 'NO_SHOW', 'NO_SHOW_UNCONFIRMED', 'EXEMPT'] as const;\nexport const EXEMPT_REASONS = ['DESTINATION_HALTED', 'GATEWAY_FAULT', 'REORGED_AFTER_INCLUSION', 'RECIPIENT_NOT_READY', 'OTHER'] as const;\n/** Verdict at receipt time, on the `quote.ack`. */\nexport const QUOTE_ACK_STATUSES = ['COUNTED', 'LATE', 'SHORT_TTL'] as const;\n/** Final status of a quote, `GET /v1/filler/quotes`. */\nexport const QUOTE_FINAL_STATUSES = [...QUOTE_ACK_STATUSES, 'REPLACED', 'BAD_SIG', 'OUTLIER', 'IN_BAND', 'OUT_OF_BAND', 'WON', 'LOST'] as const;\n/** `penalty.applied.step`: a violation recorded, a ban, a ban lifted by Cancore staff (penalties.md §4.2). */\nexport const PENALTY_STEPS = ['RECORDED', 'BANNED', 'UNBANNED'] as const;\nexport const DRAW_CLOSED_BY = ['OFFER_TIMEOUT', 'OFFER_DECLINE', 'TICKET_DECLINE', 'TICKET_EXPIRED', 'FILLED'] as const;\nexport const TICKET_LIST_STATUSES = ['OFFERED', 'ISSUED'] as const;\n/** The Canton operations of the filler's own party (§3.19): the backend prepares and submits, the node signs with its party key. */\nexport const CANTON_OPS = ['party.allocate', 'registry.accept', 'delivery.fill', 'intent.settle', 'holdings.transfer', 'preapproval.create'] as const;\n/** `holdings.transfer` result: the receiver holds it, or a TransferInstruction waits for it to accept. */\nexport const CANTON_TRANSFER_OUTCOMES = ['COMPLETED', 'PENDING'] as const;\nexport const CANTON_LEG_KINDS = ['transaction', 'topology'] as const;\nexport const CANTON_REGISTRY_STATES = ['NONE', 'PROPOSED', 'ACTIVE', 'REMOVED'] as const;\n\nexport type DeclineReason = (typeof DECLINE_REASONS)[number];\nexport type ErrorCode = (typeof ERROR_CODES)[number];\nexport type TicketRefusedReason = (typeof TICKET_REFUSED_REASONS)[number];\nexport type ExpiredResult = (typeof EXPIRED_RESULTS)[number];\nexport type ExemptReason = (typeof EXEMPT_REASONS)[number];\nexport type QuoteAckStatus = (typeof QUOTE_ACK_STATUSES)[number];\nexport type QuoteFinalStatus = (typeof QUOTE_FINAL_STATUSES)[number];\nexport type PenaltyStep = (typeof PENALTY_STEPS)[number];\nexport type DrawClosedBy = (typeof DRAW_CLOSED_BY)[number];\nexport type CantonOp = (typeof CANTON_OPS)[number];\nexport type CantonLegKind = (typeof CANTON_LEG_KINDS)[number];\nexport type CantonRegistryState = (typeof CANTON_REGISTRY_STATES)[number];\n\n/** `ICancoreRouter.Order` on the wire: every numeric field a decimal string, as `canton-order.json`. */\nexport interface OrderJson {\n user: Hex; originChainId: DecString; inputToken: Hex; inputAmount: DecString; destination: Hex; outputAsset: Hex;\n minReceived: DecString; recipient: Hex; createdAt: DecString; fillDeadline: DecString; feeBps: DecString;\n fillerId: Hex;\n}\n\n/** Every S→F frame: signed by the gateway (`GatewayMessage`), addressed (`fillerId`) and timed (`sentAt`). */\nexport interface S2FBase {\n type: string;\n id: string;\n /** The addressee. Absent only on an `error` that refuses a login (`POST /v1/filler/auth`). */\n fillerId?: string;\n sentAt: TimeMs;\n sig: Hex;\n /** The F→S `id` this frame answers. */\n re?: string;\n}\n/**\n * What every filler → filler-gateway message and REST request body carries (S-19, T-13): `id` unique per\n * `fillerId` and direction, ≤ 64 characters; the sender's `fillerId`; `sentAt`; `msgSig` by the message key over\n * `FillerMessage{bodyHash: fillerMessageBodyHash(message)}`.\n */\nexport interface F2SEnvelope {\n id: string;\n fillerId: string;\n sentAt: TimeMs;\n msgSig: Hex;\n /** The S→F `id` this message answers. */\n re?: string;\n}\nexport interface F2SBase extends F2SEnvelope {\n type: string;\n}\n\n/**\n * The login challenge: the body of `GET /v1/filler/auth/challenge?fillerId=`, addressed to that\n * `fillerId`. REST only — never on the WebSocket.\n */\nexport interface AuthChallenge extends S2FBase { type: 'auth.challenge'; fillerId: string; nonce: Hex; expiresAt: DecString }\n/** The body of `POST /v1/filler/auth` (→ `AuthToken`). REST only — never on the WebSocket. */\nexport interface AuthResponse extends F2SBase {\n type: 'auth.response';\n fillerId: string;\n keyAddress: Hex;\n protocolVersion: '1';\n /** The `auth.challenge` nonce this answers (optional; senders should send it), so the login finds its challenge directly. */\n nonce?: Hex;\n sig: Hex;\n}\nexport interface AuthOk extends S2FBase { type: 'auth.ok'; fillerId: string; heartbeatIntervalMs: number }\n/** Heartbeat from the filler: signed with `msgSig`, like every F→S frame. */\nexport interface PingF2S extends F2SBase { type: 'ping' }\nexport interface PongF2S extends F2SBase { type: 'pong'; re: string }\n/** Heartbeat from the gateway: signed, addressed and timed, like every S→F frame (D-C). */\nexport interface PingS2F extends S2FBase { type: 'ping'; fillerId: string }\nexport interface PongS2F extends S2FBase { type: 'pong'; fillerId: string; re: string }\nexport type Ping = PingF2S | PingS2F;\nexport type Pong = PongF2S | PongS2F;\nexport interface ErrorMessage extends S2FBase {\n type: 'error';\n code: ErrorCode;\n message: string;\n reason?: TicketRefusedReason;\n /** With `RATE_LIMITED`: ms (≥ 1) until the refused rate class may be used again, or until the cooldown ends. */\n retryAfterMs?: number;\n}\n/**\n * An unsigned, unaddressed refusal, so a filler cannot verify it; a hint only. Every 429 (`RATE_LIMITED`,\n * on every route), and the refusals of the login routes decided before any signature check:\n * 400 `BAD_REQUEST`, 404 `UNKNOWN_REQUEST`, and on `POST /v1/filler/auth` 401 `UNAUTHENTICATED`\n * (no live challenge for the fillerId: ask for a new one).\n */\nexport interface UnsignedErrorBody { type: 'error'; code: ErrorCode; message: string; retryAfterMs?: number }\n/** The filler's reply to a gateway frame it cannot handle; informational. */\nexport interface ErrorF2S extends F2SBase { type: 'error'; re: string; code: ErrorCode; message: string }\nexport interface EpochWeights extends S2FBase { type: 'epoch.weights'; epochId: DecString; startsAt: DecString; endsAt: DecString; weightsRoot: Hex }\n\nexport interface QuoteRequest extends S2FBase {\n type: 'quote.request';\n requestId: string;\n route: { src: string; dst: string };\n inputToken: WireAsset;\n /** The total T the maker deposits, input base units. */\n inputAmount: DecString;\n outputAsset: WireAsset;\n feeBps: number;\n fillDeadlineHint: DecString;\n windowCloseAt: TimeMs;\n quoteTtlMs: number;\n imbalanceHint?: { dstAsset: WireAsset; netFlow24hUsd: string };\n}\n/** `sig` = `FillerQuote{requestIdHash(requestId), fillerId, amountOut, validUntil, nonce}` by the message key. */\nexport interface QuoteMessage extends F2SBase { type: 'quote'; requestId: string; amountOut: DecString; validUntil: DecString; nonce: DecString; sig: Hex }\nexport interface QuoteAck extends S2FBase { type: 'quote.ack'; requestId: string; quoteHash: Hex; receivedAt: TimeMs; status: QuoteAckStatus }\nexport interface QuoteReconfirm extends S2FBase {\n type: 'quote.reconfirm'; orderHash: Hex; requestId: string; order: OrderJson; amountOut: DecString; ticketTtl: number; replyBy: TimeMs;\n}\nexport interface QuoteReconfirmReply extends F2SBase {\n type: 'quote.reconfirm.reply'; orderHash: Hex; accept: boolean; validUntil?: DecString; nonce?: DecString; sig?: Hex;\n}\n\nexport interface TicketOffer extends S2FBase {\n type: 'ticket.offer'; orderHash: Hex; attempt: number; order: OrderJson; amountOut: DecString; validFrom: DecString; validUntil: DecString; acceptBy: TimeMs;\n}\n/** `sig` = `TicketIntent{orderHash, attempt, validFrom, validUntil, fillerId, deliveryKey, repayTo}` by the message key. */\nexport interface TicketIntentMessage extends F2SBase {\n type: 'ticket.intent'; orderHash: Hex; attempt: number; validFrom: DecString; validUntil: DecString;\n /** The address that will send `fill`; the zero address for a Canton destination. */\n deliveryKey: Hex;\n /** Where `settle` pays, encoded for the source chain. */\n repayTo: Hex;\n sig: Hex;\n}\nexport interface TicketDecline extends F2SBase { type: 'ticket.decline'; orderHash: Hex; attempt: number; reason: DeclineReason; detail?: string }\nexport interface TicketIntentAck extends S2FBase { type: 'ticket.intent.ack'; orderHash: Hex; attempt: number; intentHash: Hex; receivedAt: TimeMs }\n/** `FillTicket` on the wire; `fillerId` is the on-chain form, `fillerIdHash(fillerId)`. */\nexport interface TicketJson { orderHash: Hex; fillerId: Hex; deliveryKey: Hex; repayTo: Hex; attempt: number; validFrom: DecString; validUntil: DecString }\nexport interface TicketIssuedEvm extends S2FBase { type: 'ticket.issued'; form: 'evm'; orderHash: Hex; attempt: number; ticket: TicketJson; ticketSig: Hex }\nexport interface TicketIssuedCanton extends S2FBase {\n type: 'ticket.issued'; form: 'canton'; orderHash: Hex; attempt: number; deliveryOrderCid: string; validUntil: DecString; repayTo: Hex;\n}\nexport type TicketIssued = TicketIssuedEvm | TicketIssuedCanton;\n/** EVM-form receipt (`form` absent or `\"evm\"`): `sig` = `TicketReceipt{ticketHash, ticketSigHash}` by the message key. */\nexport interface TicketReceiptEvm extends F2SBase {\n type: 'ticket.receipt'; form?: 'evm'; orderHash: Hex; attempt: number; ticketHash: Hex; ticketSigHash: Hex; sig: Hex;\n}\n/** Canton-form receipt: `sig` = `CantonTicketReceipt` (`cantonTicketReceipt(frame)`) by the message key; fields as in `ticket.issued`. */\nexport interface TicketReceiptCanton extends F2SBase {\n type: 'ticket.receipt'; form: 'canton'; orderHash: Hex; attempt: number; deliveryOrderCid: string; validUntil: DecString; sig: Hex;\n}\nexport type TicketReceiptMessage = TicketReceiptEvm | TicketReceiptCanton;\nexport interface FillReported extends F2SBase { type: 'fill.reported'; orderHash: Hex; attempt: number; txRef: string }\nexport interface TicketExpired extends S2FBase { type: 'ticket.expired'; orderHash: Hex; attempt: number; result: ExpiredResult; exemptReason?: ExemptReason }\nexport interface OrderSettled extends S2FBase {\n type: 'order.settled'; orderHash: Hex; payout: DecString; fee: DecString; penaltyWithheld: DecString; txRef: string;\n}\nexport interface PenaltyApplied extends S2FBase { type: 'penalty.applied'; violationId: string; code: string; step: PenaltyStep; details: Record<string, unknown> }\n\n// --- Canton operations of the filler's own party (§3.19). Hashes and party-key material are lowercase hex; the\n// node signs the bytes of each leg's hash with its Ed25519 party key and never talks to a Ledger API.\n\n/** A Canton asset: the instrument admin party and its id. */\nexport interface CantonAsset { admin: string; id: string }\n/** What each op takes: the backend picks every contract itself. */\nexport interface CantonOpParams {\n 'party.allocate': { publicKey: Hex };\n 'registry.accept': Record<string, never>;\n 'delivery.fill': { orderHash: Hex; attempt: number };\n 'intent.settle': { orderHash: Hex };\n /** To a party other than the filler's own; never what the party's open delivery orders need. */\n 'holdings.transfer': { asset: CantonAsset; amount: string; toParty: string };\n /** The party's transfer preapproval with the registry of the instrument admin `admin`: transfers to it complete at once. */\n 'preapproval.create': { admin: string };\n}\n/** What the prepared legs do, by op: the node checks it before it signs. */\nexport interface CantonOpSummary {\n 'party.allocate': {\n partyId: string; publicKey: Hex;\n /** On the Cancore participant alone, Confirmation, threshold 1: the node checks the decoded topology against it. */\n hosting: { participantUid: string; permission: 'CONFIRMATION'; threshold: 1 };\n };\n 'registry.accept': { fillerId: string; party: string; operator: string; proposalCid: string };\n 'delivery.fill': {\n orderHash: Hex; attempt: number; deliveryOrderCid: string; recipient: string; asset: CantonAsset; amount: string; repayTo: Hex; validUntil: DecString;\n /** The party's holdings the transfer spends; what they hold beyond `amount` comes back as change. */\n inputHoldingCids: string[];\n /** The transfer's executeBefore: the order's fillDeadline. */\n executeBefore: DecString;\n /** The registry factory the order pins. */\n transferFactoryCid: string;\n };\n 'intent.settle': {\n orderHash: Hex; intentCid: string; asset: CantonAsset;\n /** What the payee is paid: `giveAmount` less `fee.amount`. */\n amount: string;\n executeBefore: DecString;\n /** The filler's own party. */\n payee: string;\n /** The intent's committed give, fee-inclusive. */\n giveAmount: string;\n /** The fee leg to the operator; amount 0 when there is none. */\n fee: { receiver: string; amount: string };\n };\n 'holdings.transfer': { asset: CantonAsset; amount: string; receiver: string; inputHoldingCids: string[]; executeBefore: DecString };\n 'preapproval.create': {\n /** The receiver: the filler's own party. */\n party: string;\n /** The registry's instrument admin, as asked. */\n admin: string;\n /** Instrument ids the preapproval is limited to; empty: every instrument of the admin. */\n instrumentAllowances: string[];\n /** Unix s; null for a registry whose preapproval has no validity window (DA Utilities). */\n requestedAt: DecString | null;\n /** Unix s: the preapproval expires then; renew it before. null: it never lapses. */\n executeBefore: DecString | null;\n /** DA Utilities only: the registry operator the preapproval names. */\n operator?: string;\n };\n}\n/** What the committed operation created, by op. */\nexport interface CantonOpResult {\n 'party.allocate': { partyId: string };\n 'registry.accept': { entryCid: string };\n 'delivery.fill': { receiptCid: string };\n 'intent.settle': Record<string, never>;\n 'holdings.transfer': { outcome: (typeof CANTON_TRANSFER_OUTCOMES)[number]; transferInstructionCid?: string };\n 'preapproval.create': { preapprovalCid: string };\n}\n/**\n * A prepared transaction to sign. The node MUST, before signing (§3.19): recompute `hash` from\n * `preparedTransaction` with the hashing of `hashingSchemeVersion`, decode the transaction and check it against\n * the `summary` of the op (template and choice, parties, instrument, amount); on any difference, not sign.\n */\nexport interface CantonLegTransaction {\n legId: string;\n kind: 'transaction';\n /** 32 bytes. */\n hash: Hex;\n /** Base64 protobuf. Never logged. */\n preparedTransaction: string;\n /** e.g. `HASHING_SCHEME_VERSION_V2`. */\n hashingSchemeVersion: string;\n}\n/**\n * The party's onboarding topology, in `party.allocate` only. The node MUST, before signing (§3.19): recompute\n * the multihash over `topologyTransactions` and check they create `summary.partyId` with `summary.publicKey` as\n * its only signing key, hosted on the Cancore participant; on any difference, not sign.\n */\nexport interface CantonLegTopology {\n legId: string;\n kind: 'topology';\n /** `0x1220` ‖ sha256: 34 bytes. */\n hash: Hex;\n /** Base64 protobuf, in order. */\n topologyTransactions: string[];\n}\n/** One thing to sign. The kind is closed: a leg of any other kind is refused, never signed. */\nexport type CantonLeg = CantonLegTransaction | CantonLegTopology;\nexport interface CantonSignature { legId: string; signature: Hex }\nexport type CantonPrepare = { [K in CantonOp]: F2SBase & { type: 'canton.prepare'; op: K; params: CantonOpParams[K] } }[CantonOp];\nexport type CantonPrepared = {\n [K in CantonOp]: S2FBase & {\n type: 'canton.prepared'; fillerId: string; re: string; operationId: string; op: K;\n /** Topology legs with `party.allocate` only. */\n legs: K extends 'party.allocate' ? CantonLegTopology[] : CantonLegTransaction[];\n summary: CantonOpSummary[K]; expiresAt: TimeMs;\n };\n}[CantonOp];\n/** Idempotent per `operationId`: a repeat gets the same `canton.submitted`. */\nexport interface CantonSubmit extends F2SBase { type: 'canton.submit'; operationId: string; signatures: CantonSignature[] }\nexport type CantonSubmitted = {\n [K in CantonOp]: S2FBase & { type: 'canton.submitted'; fillerId: string; re: string; operationId: string; op: K; updateId?: string; result: CantonOpResult[K] };\n}[CantonOp];\n\n/** A route of the catalogue: CAIP-2 source and destination. */\nexport interface RouteRef { src: string; dst: string }\n/** The full list of routes the filler serves from now on (§3.20); each must be approved for it, else ROUTE_NOT_APPROVED and nothing changes. */\nexport interface RoutesSet extends F2SBase { type: 'routes.set'; routes: RouteRef[] }\n/** Every route approved for the filler; it is asked for quotes on a route only while `active`. */\nexport interface RoutesState extends S2FBase { type: 'routes.state'; fillerId: string; routes: (RouteRef & { active: boolean })[] }\n\nexport type S2FMessage =\n | AuthChallenge | AuthOk | PingS2F | PongS2F | ErrorMessage | EpochWeights | QuoteRequest | QuoteAck | QuoteReconfirm\n | TicketOffer | TicketIntentAck | TicketIssued | TicketExpired | OrderSettled | PenaltyApplied | SettleAttestations\n | CantonPrepared | CantonSubmitted | RoutesState;\nexport type F2SMessage =\n | AuthResponse | PingF2S | PongF2S | ErrorF2S | QuoteMessage | QuoteReconfirmReply | TicketIntentMessage | TicketDecline | TicketReceiptMessage | FillReported\n | CantonPrepare | CantonSubmit | RoutesSet;\n\n// --- REST (protocol §3.6); an error body is the `error` message itself.\n\n/** `POST /v1/filler/auth`: the bearer token of REST and of the WebSocket upgrade, bound to (fillerId, message key). */\nexport interface AuthToken { token: string; expiresAt: TimeMs }\n/** `GET /v1/filler/auth/challenge` query. */\nexport interface ChallengeQuery { fillerId: string }\nexport interface Page<T> { items: T[]; nextCursor: string | null }\nexport type TicketList = Page<TicketOffer | TicketIssued>;\nexport interface QuoteRecord { quote: QuoteMessage; ack: QuoteAck; status: QuoteFinalStatus }\nexport type QuoteList = Page<QuoteRecord>;\n/** `GET /v1/filler/attestations/{orderHash}`: the `settle.attestations` frame itself, freshly signed. */\nexport type AttestationsResponse = SettleAttestations;\nexport interface StakeBindingRequest extends F2SEnvelope { partnerId: string; stakingAddress: Hex; chainId: DecString; nonce: DecString; sig: Hex }\nexport interface FillerStats { won: number; delivered: number; noShow: number; reliability: number; capacityUsd: string; inFlightUsd: string }\nexport interface PenaltyRecord { violationId: string; code: string; step: PenaltyStep; orderHash?: Hex; attempt?: number; at: TimeMs; details: Record<string, unknown> }\nexport type PenaltyList = Page<PenaltyRecord>;\n/** A live transfer preapproval of the party with one registry (`preapproval.create`); `executeBefore` in unix s (the Daml Time cut to seconds). */\n/** `executeBefore` null: the registry's preapproval has no validity window (DA Utilities) and never lapses. */\nexport interface CantonPreapproval { admin: string; contractId: string; instrumentAllowances: string[]; executeBefore: DecString | null }\n/** `GET /v1/filler/canton/party`: the party registered for the fillerId and its `FillerRegistryEntry`. */\nexport interface CantonParty {\n party: string | null;\n publicKey: Hex | null;\n registry: { state: CantonRegistryState; proposalCid: string | null; entryCid: string | null };\n /** The party's live transfer preapprovals, one per registry admin at most; absent from a gateway that predates them. */\n preapprovals?: CantonPreapproval[];\n}\nexport interface CantonHolding { contractId: string; asset: CantonAsset; amount: string; locked: boolean }\n/** `GET /v1/filler/canton/holdings`. */\nexport type CantonHoldingList = Page<CantonHolding>;\nexport interface CantonDeliveryOrder {\n deliveryOrderCid: string; orderHash: Hex; attempt: number; asset: CantonAsset; amount: string; recipient: string; repayTo: Hex; validUntil: DecString;\n}\n/** `GET /v1/filler/canton/delivery-orders`. */\nexport type CantonDeliveryOrderList = Page<CantonDeliveryOrder>;\n/** One leg side of an AllocationV2 view; `otherside` is the owner of the other account. */\nexport interface CantonAllocationLeg { legId: string; side: 'SENDER' | 'RECEIVER'; otherside: string | null; amount: string; instrumentId: string }\n/** A Token Standard V2 allocation by its view, as the operator (an executor) reads it. */\nexport interface CantonAllocation {\n contractId: string;\n /** `<package id>:<module>:<entity>`. */\n templateId: string;\n admin: string;\n /** The owner of the authorizer account. */\n authorizer: string | null;\n committed: boolean;\n settlementId: string;\n executors: string[];\n /** Unix seconds; null when the allocation has none. */\n settlementDeadline: DecString | null;\n legs: CantonAllocationLeg[];\n}\n/**\n * `GET /v1/filler/canton/intents/{orderHash}`: the live Canton-source `SwapIntent` naming the party as its\n * filler, as that party sees it, and its committed allocation (null when not live). The node checks it\n * before `ticket.receipt` (fillers.md V-C1…V-C6) and recomputes `orderHash` from these fields itself.\n */\nexport interface CantonIntent {\n intentCid: string;\n templateId: string;\n orderHash: Hex;\n owner: string;\n operator: string;\n filler: string;\n fillerId: string;\n requestId: string;\n asset: CantonAsset;\n /** The committed give, fee-inclusive, Daml Decimal. */\n amount: string;\n /** `Destination.Evm`. */\n destination: { chainId: DecString; token: Hex; recipient: Hex };\n minReceived: { units: DecString; decimals: number };\n feeRate: string;\n fillDeadline: DecString;\n refundAfter: DecString;\n /** The owner's signing time: the order's `createdAt`. */\n orderCreatedAt: DecString;\n allocationCid: string;\n allocation: CantonAllocation | null;\n}\n\n// --- Public records (auction-and-draw §3.3–3.4) and the gateway identity.\n\nexport interface DrawAttempt {\n attempt: number;\n tBase: DecString;\n closedBy: DrawClosedBy | null;\n drandRound: DecString;\n drandRandomness: Hex;\n drandSignature: Hex;\n candidates: { fillerId: string; weight: DecString }[];\n r: DecString;\n winnerFillerId: string;\n fallbackReason: 'DRAW_FALLBACK' | null;\n}\nexport interface DrawRecord {\n orderHash: Hex; source: string; openRef: string; t0: DecString; epochId: DecString; deltaDrand: number; attempts: DrawAttempt[]; sig: Hex;\n}\nexport interface EpochLeaf { fillerId: string; base: DecString; tier: number; reliabilityBps: number }\nexport interface EpochRecord {\n epochId: DecString;\n startsAt: DecString;\n endsAt: DecString;\n weightsRoot: Hex;\n leaves: EpochLeaf[];\n stakeSteps: { tier: number; minStake: DecString; step: DecString }[];\n rMinBps: number;\n snapshotBlocks: Record<string, DecString>;\n sig: Hex;\n}\n/** `GET /v1/gateway`: the mirror of `FILLER_GATEWAYS` for one environment. */\nexport interface GatewayInfo { env: string; gateway: Hex; ticketSigners: Hex[]; protocolVersion: '1'; maxMessageAgeMs: number }\n\n/**\n * `FillerKeyRegistration` with its signature by the key being registered (§3.16): handed to Cancore at\n * onboarding and, signed by the NEW key, at a manual key change by staff. Not a frame — no message changes a key.\n */\nexport interface SignedFillerKeyRegistration { fillerId: string; messageKey: Hex; issuedAt: DecString; sig: Hex }\n","{\n \"asyncapi\": \"3.0.0\",\n \"info\": {\n \"title\": \"Cancore filler protocol\",\n \"version\": \"1.0.0-rc.2\",\n \"description\": \"The WebSocket protocol between a filler and the Cancore filler gateway, v1 (release candidate). Operations are the gateway's: it sends S→F frames and receives F→S frames. Every frame carries id, fillerId and sentAt and is signed in the CancoreFillerProtocol v1 domain: S→F with sig = the gateway key over GatewayMessage{bodyHash}, F→S with msgSig = the filler's message key over FillerMessage{bodyHash}, bodyHash = keccak256(JCS(frame without that field)). Payload schemas: messages.schema.json. Generated by scripts/gen-protocol-docs.mjs.\",\n \"license\": {\n \"name\": \"Apache-2.0\"\n }\n },\n \"defaultContentType\": \"application/json\",\n \"servers\": {\n \"devnet\": {\n \"host\": \"{gatewayHost}\",\n \"protocol\": \"wss\",\n \"description\": \"Published per environment (O-6)\",\n \"variables\": {\n \"gatewayHost\": {\n \"default\": \"filler.dev.cancore.io\"\n }\n }\n }\n },\n \"channels\": {\n \"filler\": {\n \"address\": \"/v1\",\n \"description\": \"One JSON object per text frame. Connect only after login: the filler logs in over REST (GET /v1/filler/auth/challenge?fillerId=, POST /v1/filler/auth → {token, expiresAt}, rest.schema.json) and offers two subprotocols on the upgrade, cancore-filler.v1 and bearer.<token>; Authorization and the query string are not read. filler-gateway checks them before the upgrade and refuses with a plain HTTP response (x-upgrade-refusals: no WebSocket, nothing signed, Retry-After in seconds on 429). On success it answers Sec-WebSocket-Protocol: cancore-filler.v1 (the token is never echoed), the session is authenticated from the first byte, and the first frame is a signed auth.ok. auth.challenge and auth.response never travel on the socket (auth.response here is UNSUPPORTED_TYPE). Over a per-fillerId rate limit a frame is dropped unverified and the filler gets error RATE_LIMITED with retryAfterMs at most once per window and rate class; sustained excess closes every session of the fillerId with 4029. Close codes: x-close-codes.\",\n \"bindings\": {\n \"ws\": {\n \"method\": \"GET\",\n \"headers\": {\n \"type\": \"object\",\n \"required\": [\n \"Sec-WebSocket-Protocol\"\n ],\n \"properties\": {\n \"Sec-WebSocket-Protocol\": {\n \"type\": \"string\",\n \"pattern\": \"^cancore-filler\\\\.v1, ?bearer\\\\.[A-Za-z0-9_-]+$|^bearer\\\\.[A-Za-z0-9_-]+, ?cancore-filler\\\\.v1$\",\n \"description\": \"cancore-filler.v1 and exactly one bearer.<token>, the token of POST /v1/filler/auth (base64url). The server selects cancore-filler.v1\"\n }\n }\n },\n \"bindingVersion\": \"0.1.0\"\n }\n },\n \"x-upgrade-refusals\": {\n \"400\": \"cancore-filler.v1 not offered, or not exactly one bearer. entry\",\n \"401\": \"token missing, unknown or expired, or the message key changed\",\n \"403\": \"filler unknown or not ACTIVE\",\n \"429\": \"login rate class over its limit, or the fillerId is cooling down; Retry-After (seconds, rounded up)\",\n \"503\": \"the replica is at its connection limit, or the fillerId already holds its maximum of live sessions (across replicas)\"\n },\n \"x-close-codes\": {\n \"1001\": \"filler-gateway shutting down\",\n \"4000\": \"heartbeats missed\",\n \"4001\": \"superseded by a newer session of this fillerId\",\n \"4002\": \"the message key of the session was changed by staff\",\n \"4003\": \"the filler is no longer ACTIVE (suspended)\",\n \"4008\": \"this session's inbound queue overflowed (count or bytes); only this session\",\n \"4029\": \"sustained over-limit: every session of the fillerId closed, cooling down; the error RATE_LIMITED sent just before carries retryAfterMs = the remaining cooldown\"\n },\n \"messages\": {\n \"auth.ok\": {\n \"$ref\": \"#/components/messages/auth.ok\"\n },\n \"pingS2F\": {\n \"$ref\": \"#/components/messages/pingS2F\"\n },\n \"pingF2S\": {\n \"$ref\": \"#/components/messages/pingF2S\"\n },\n \"pongS2F\": {\n \"$ref\": \"#/components/messages/pongS2F\"\n },\n \"pongF2S\": {\n \"$ref\": \"#/components/messages/pongF2S\"\n },\n \"errorS2F\": {\n \"$ref\": \"#/components/messages/errorS2F\"\n },\n \"errorF2S\": {\n \"$ref\": \"#/components/messages/errorF2S\"\n },\n \"epoch.weights\": {\n \"$ref\": \"#/components/messages/epoch.weights\"\n },\n \"quote.request\": {\n \"$ref\": \"#/components/messages/quote.request\"\n },\n \"quote\": {\n \"$ref\": \"#/components/messages/quote\"\n },\n \"quote.ack\": {\n \"$ref\": \"#/components/messages/quote.ack\"\n },\n \"quote.reconfirm\": {\n \"$ref\": \"#/components/messages/quote.reconfirm\"\n },\n \"quote.reconfirm.reply\": {\n \"$ref\": \"#/components/messages/quote.reconfirm.reply\"\n },\n \"ticket.offer\": {\n \"$ref\": \"#/components/messages/ticket.offer\"\n },\n \"ticket.intent\": {\n \"$ref\": \"#/components/messages/ticket.intent\"\n },\n \"ticket.decline\": {\n \"$ref\": \"#/components/messages/ticket.decline\"\n },\n \"ticket.intent.ack\": {\n \"$ref\": \"#/components/messages/ticket.intent.ack\"\n },\n \"ticket.issued\": {\n \"$ref\": \"#/components/messages/ticket.issued\"\n },\n \"ticket.receipt\": {\n \"$ref\": \"#/components/messages/ticket.receipt\"\n },\n \"fill.reported\": {\n \"$ref\": \"#/components/messages/fill.reported\"\n },\n \"ticket.expired\": {\n \"$ref\": \"#/components/messages/ticket.expired\"\n },\n \"order.settled\": {\n \"$ref\": \"#/components/messages/order.settled\"\n },\n \"penalty.applied\": {\n \"$ref\": \"#/components/messages/penalty.applied\"\n },\n \"settle.attestations\": {\n \"$ref\": \"#/components/messages/settle.attestations\"\n },\n \"canton.prepare\": {\n \"$ref\": \"#/components/messages/canton.prepare\"\n },\n \"canton.prepared\": {\n \"$ref\": \"#/components/messages/canton.prepared\"\n },\n \"canton.submit\": {\n \"$ref\": \"#/components/messages/canton.submit\"\n },\n \"canton.submitted\": {\n \"$ref\": \"#/components/messages/canton.submitted\"\n }\n }\n }\n },\n \"operations\": {\n \"sendAuthOk\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/auth.ok\"\n }\n ]\n },\n \"sendPing\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/pingS2F\"\n }\n ]\n },\n \"receivePing\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/pingF2S\"\n }\n ]\n },\n \"sendPong\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/pongS2F\"\n }\n ]\n },\n \"receivePong\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/pongF2S\"\n }\n ]\n },\n \"sendError\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/errorS2F\"\n }\n ]\n },\n \"receiveError\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/errorF2S\"\n }\n ]\n },\n \"sendEpochWeights\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/epoch.weights\"\n }\n ]\n },\n \"sendQuoteRequest\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/quote.request\"\n }\n ]\n },\n \"receiveQuote\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/quote\"\n }\n ]\n },\n \"sendQuoteAck\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/quote.ack\"\n }\n ]\n },\n \"sendQuoteReconfirm\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/quote.reconfirm\"\n }\n ]\n },\n \"receiveQuoteReconfirmReply\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/quote.reconfirm.reply\"\n }\n ]\n },\n \"sendTicketOffer\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/ticket.offer\"\n }\n ]\n },\n \"receiveTicketIntent\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/ticket.intent\"\n }\n ]\n },\n \"receiveTicketDecline\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/ticket.decline\"\n }\n ]\n },\n \"sendTicketIntentAck\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/ticket.intent.ack\"\n }\n ]\n },\n \"sendTicketIssued\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/ticket.issued\"\n }\n ]\n },\n \"receiveTicketReceipt\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/ticket.receipt\"\n }\n ]\n },\n \"receiveFillReported\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/fill.reported\"\n }\n ]\n },\n \"sendTicketExpired\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/ticket.expired\"\n }\n ]\n },\n \"sendOrderSettled\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/order.settled\"\n }\n ]\n },\n \"sendPenaltyApplied\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/penalty.applied\"\n }\n ]\n },\n \"sendSettleAttestations\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/settle.attestations\"\n }\n ]\n },\n \"receiveCantonPrepare\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/canton.prepare\"\n }\n ]\n },\n \"sendCantonPrepared\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/canton.prepared\"\n }\n ]\n },\n \"receiveCantonSubmit\": {\n \"action\": \"receive\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/canton.submit\"\n }\n ]\n },\n \"sendCantonSubmitted\": {\n \"action\": \"send\",\n \"channel\": {\n \"$ref\": \"#/channels/filler\"\n },\n \"messages\": [\n {\n \"$ref\": \"#/channels/filler/messages/canton.submitted\"\n }\n ]\n }\n },\n \"components\": {\n \"messages\": {\n \"auth.ok\": {\n \"name\": \"auth.ok\",\n \"title\": \"auth.ok (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/auth.ok\"\n }\n },\n \"examples\": [\n {\n \"name\": \"auth-ok-1\",\n \"payload\": {\n \"type\": \"auth.ok\",\n \"id\": \"g-2\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789999980200,\n \"re\": \"a-1\",\n \"heartbeatIntervalMs\": 15000\n }\n }\n ]\n },\n \"pingS2F\": {\n \"name\": \"ping\",\n \"title\": \"ping (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/pingS2F\"\n }\n },\n \"examples\": [\n {\n \"name\": \"pingS2F-1\",\n \"payload\": {\n \"type\": \"ping\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789999995000,\n \"id\": \"gp-1\"\n }\n }\n ]\n },\n \"pingF2S\": {\n \"name\": \"ping\",\n \"title\": \"ping (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/pingF2S\"\n }\n },\n \"examples\": [\n {\n \"name\": \"pingF2S-1\",\n \"payload\": {\n \"type\": \"ping\",\n \"id\": \"p-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1789999994000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n }\n ]\n },\n \"pongS2F\": {\n \"name\": \"pong\",\n \"title\": \"pong (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/pongS2F\"\n }\n },\n \"examples\": [\n {\n \"name\": \"pongS2F-1\",\n \"payload\": {\n \"type\": \"pong\",\n \"id\": \"g-3\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789999994100,\n \"re\": \"p-1\"\n }\n }\n ]\n },\n \"pongF2S\": {\n \"name\": \"pong\",\n \"title\": \"pong (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/pongF2S\"\n }\n },\n \"examples\": [\n {\n \"name\": \"pongF2S-1\",\n \"payload\": {\n \"type\": \"pong\",\n \"id\": \"po-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1789999995100,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"re\": \"gp-1\"\n }\n }\n ]\n },\n \"errorS2F\": {\n \"name\": \"error\",\n \"title\": \"error (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/errorS2F\"\n }\n },\n \"examples\": [\n {\n \"name\": \"errorS2F-1\",\n \"payload\": {\n \"type\": \"error\",\n \"id\": \"g-4\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000023500,\n \"re\": \"i-2\",\n \"code\": \"TICKET_CLOSED\",\n \"message\": \"ticket.intent after acceptBy\"\n }\n },\n {\n \"name\": \"errorS2F-2\",\n \"payload\": {\n \"type\": \"error\",\n \"id\": \"g-5\",\n \"sentAt\": 1789999980150,\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"re\": \"a-2\",\n \"code\": \"UNAUTHENTICATED\",\n \"message\": \"no live challenge of this fillerId with this nonce\"\n }\n },\n {\n \"name\": \"errorS2F-3\",\n \"payload\": {\n \"type\": \"error\",\n \"id\": \"g-6\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000021500,\n \"re\": \"i-3\",\n \"code\": \"TICKET_REFUSED\",\n \"reason\": \"REPAY_TO_BLOCKLISTED\",\n \"message\": \"repayTo is blocklisted by the input token\"\n }\n },\n {\n \"name\": \"errorS2F-4\",\n \"payload\": {\n \"type\": \"error\",\n \"id\": \"g-18\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789999991500,\n \"re\": \"q-2\",\n \"code\": \"RATE_LIMITED\",\n \"message\": \"quote rate class over its limit\",\n \"retryAfterMs\": 850\n }\n }\n ]\n },\n \"errorF2S\": {\n \"name\": \"error\",\n \"title\": \"error (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/errorF2S\"\n }\n },\n \"examples\": [\n {\n \"name\": \"errorF2S-1\",\n \"payload\": {\n \"type\": \"error\",\n \"id\": \"e-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000030000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"re\": \"g-77\",\n \"code\": \"UNKNOWN_TICKET\",\n \"message\": \"no ticket for this orderHash\"\n }\n }\n ]\n },\n \"epoch.weights\": {\n \"name\": \"epoch.weights\",\n \"title\": \"epoch.weights (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/epoch.weights\"\n }\n },\n \"examples\": [\n {\n \"name\": \"epoch-weights-1\",\n \"payload\": {\n \"type\": \"epoch.weights\",\n \"id\": \"g-7\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789999980300,\n \"epochId\": \"20717\",\n \"startsAt\": \"1789948800\",\n \"endsAt\": \"1790035200\",\n \"weightsRoot\": \"0xa1c24765b55b34e0c206f808d2fac2e448d9db6f154d89f898921a80bad76e92\"\n }\n }\n ]\n },\n \"quote.request\": {\n \"name\": \"quote.request\",\n \"title\": \"quote.request (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/quote.request\"\n }\n },\n \"examples\": [\n {\n \"name\": \"quote-request-1\",\n \"payload\": {\n \"type\": \"quote.request\",\n \"id\": \"g-8\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789999990000,\n \"requestId\": \"req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31\",\n \"route\": {\n \"src\": \"eip155:11155111\",\n \"dst\": \"eip155:421614\"\n },\n \"inputToken\": \"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238\",\n \"inputAmount\": \"1003000000\",\n \"outputAsset\": \"0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d\",\n \"feeBps\": 30,\n \"fillDeadlineHint\": \"1790000600\",\n \"windowCloseAt\": 1789999992000,\n \"quoteTtlMs\": 60000,\n \"imbalanceHint\": {\n \"dstAsset\": \"0x75faf114eafb1bdbe2f0316df893fd58ce46aa4d\",\n \"netFlow24hUsd\": \"-12500.50\"\n }\n }\n }\n ]\n },\n \"quote\": {\n \"name\": \"quote\",\n \"title\": \"quote (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/quote\"\n }\n },\n \"examples\": [\n {\n \"name\": \"quote-1\",\n \"payload\": {\n \"type\": \"quote\",\n \"id\": \"q-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1789999991000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"requestId\": \"req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31\",\n \"amountOut\": \"999000000\",\n \"validUntil\": \"1790000060\",\n \"nonce\": \"1\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n }\n ]\n },\n \"quote.ack\": {\n \"name\": \"quote.ack\",\n \"title\": \"quote.ack (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/quote.ack\"\n }\n },\n \"examples\": [\n {\n \"name\": \"quote-ack-1\",\n \"payload\": {\n \"type\": \"quote.ack\",\n \"id\": \"g-9\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789999991001,\n \"re\": \"q-1\",\n \"requestId\": \"req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31\",\n \"quoteHash\": \"0xe3b63a6ae2730532fb841002059d6e8c92124d95e98c09857d7e0f5ba3512e3b\",\n \"receivedAt\": 1789999991000,\n \"status\": \"COUNTED\"\n }\n }\n ]\n },\n \"quote.reconfirm\": {\n \"name\": \"quote.reconfirm\",\n \"title\": \"quote.reconfirm (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/quote.reconfirm\"\n }\n },\n \"examples\": [\n {\n \"name\": \"quote-reconfirm-1\",\n \"payload\": {\n \"type\": \"quote.reconfirm\",\n \"id\": \"g-10\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000013000,\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"requestId\": \"req-7f3a9c21-4d88-4e5b-9a1e-0c2f6b8d4e31\",\n \"order\": {\n \"user\": \"0xa11ce00000000000000000000000000000000001\",\n \"originChainId\": \"11155111\",\n \"inputToken\": \"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238\",\n \"inputAmount\": \"1003000000\",\n \"destination\": \"0x0000000000000000000000000000000000000000000000000000000000066eee\",\n \"outputAsset\": \"0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d\",\n \"minReceived\": \"999000000\",\n \"recipient\": \"0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e\",\n \"createdAt\": \"1790000000\",\n \"fillDeadline\": \"1790000600\",\n \"feeBps\": \"30\",\n \"fillerId\": \"0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5\"\n },\n \"amountOut\": \"999000000\",\n \"ticketTtl\": 360,\n \"replyBy\": 1790000016000\n }\n }\n ]\n },\n \"quote.reconfirm.reply\": {\n \"name\": \"quote.reconfirm.reply\",\n \"title\": \"quote.reconfirm.reply (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/quote.reconfirm.reply\"\n }\n },\n \"examples\": [\n {\n \"name\": \"quote-reconfirm-reply-1\",\n \"payload\": {\n \"type\": \"quote.reconfirm.reply\",\n \"id\": \"r-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000014000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"accept\": true,\n \"validUntil\": \"1790000400\",\n \"nonce\": \"2\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n },\n {\n \"name\": \"quote-reconfirm-reply-2\",\n \"payload\": {\n \"type\": \"quote.reconfirm.reply\",\n \"id\": \"r-2\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000014000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"accept\": false\n }\n }\n ]\n },\n \"ticket.offer\": {\n \"name\": \"ticket.offer\",\n \"title\": \"ticket.offer (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/ticket.offer\"\n }\n },\n \"examples\": [\n {\n \"name\": \"ticket-offer-1\",\n \"payload\": {\n \"type\": \"ticket.offer\",\n \"id\": \"g-20\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000020000,\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"order\": {\n \"user\": \"0xa11ce00000000000000000000000000000000001\",\n \"originChainId\": \"11155111\",\n \"inputToken\": \"0x1c7d4b196cb0c7b01d743fbc6116a902379c7238\",\n \"inputAmount\": \"1003000000\",\n \"destination\": \"0x0000000000000000000000000000000000000000000000000000000000066eee\",\n \"outputAsset\": \"0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d\",\n \"minReceived\": \"999000000\",\n \"recipient\": \"0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e\",\n \"createdAt\": \"1790000000\",\n \"fillDeadline\": \"1790000600\",\n \"feeBps\": \"30\",\n \"fillerId\": \"0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5\"\n },\n \"amountOut\": \"999000000\",\n \"validFrom\": \"1790000040\",\n \"validUntil\": \"1790000400\",\n \"acceptBy\": 1790000023000,\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n }\n ]\n },\n \"ticket.intent\": {\n \"name\": \"ticket.intent\",\n \"title\": \"ticket.intent (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/ticket.intent\"\n }\n },\n \"examples\": [\n {\n \"name\": \"ticket-intent-1\",\n \"payload\": {\n \"type\": \"ticket.intent\",\n \"id\": \"i-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000021000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"validFrom\": \"1790000040\",\n \"validUntil\": \"1790000400\",\n \"deliveryKey\": \"0x742d35cc6634c0532925a3b844bc454e4438f44e\",\n \"repayTo\": \"0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n },\n {\n \"name\": \"ticket-intent-2\",\n \"payload\": {\n \"type\": \"ticket.intent\",\n \"id\": \"i-4\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000021000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 2,\n \"validFrom\": \"1790000040\",\n \"validUntil\": \"1790000400\",\n \"deliveryKey\": \"0x0000000000000000000000000000000000000000\",\n \"repayTo\": \"0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n }\n ]\n },\n \"ticket.decline\": {\n \"name\": \"ticket.decline\",\n \"title\": \"ticket.decline (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/ticket.decline\"\n }\n },\n \"examples\": [\n {\n \"name\": \"ticket-decline-1\",\n \"payload\": {\n \"type\": \"ticket.decline\",\n \"id\": \"d-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000027001,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"reason\": \"TICKET_ISSUED_LATE\",\n \"detail\": \"ticket.issued 3001 ms after acceptBy\"\n }\n }\n ]\n },\n \"ticket.intent.ack\": {\n \"name\": \"ticket.intent.ack\",\n \"title\": \"ticket.intent.ack (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/ticket.intent.ack\"\n }\n },\n \"examples\": [\n {\n \"name\": \"ticket-intent-ack-1\",\n \"payload\": {\n \"type\": \"ticket.intent.ack\",\n \"id\": \"g-11\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000021001,\n \"re\": \"i-1\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"intentHash\": \"0x53dcabb35a92525e69f2637f618e2cd1eed25bb9ee3caf608e7e9025825abfe0\",\n \"receivedAt\": 1790000021000\n }\n }\n ]\n },\n \"ticket.issued\": {\n \"name\": \"ticket.issued\",\n \"title\": \"ticket.issued (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/ticket.issued\"\n }\n },\n \"examples\": [\n {\n \"name\": \"ticket-issued-1\",\n \"payload\": {\n \"type\": \"ticket.issued\",\n \"id\": \"g-12\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000024000,\n \"form\": \"evm\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"ticket\": {\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"fillerId\": \"0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5\",\n \"deliveryKey\": \"0x742d35cc6634c0532925a3b844bc454e4438f44e\",\n \"repayTo\": \"0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc\",\n \"attempt\": 0,\n \"validFrom\": \"1790000040\",\n \"validUntil\": \"1790000400\"\n },\n \"ticketSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n },\n {\n \"name\": \"ticket-issued-2\",\n \"payload\": {\n \"type\": \"ticket.issued\",\n \"id\": \"g-13\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000024000,\n \"form\": \"canton\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 2,\n \"deliveryOrderCid\": \"00a1b2c3d4e5f6#fixture-delivery-order\",\n \"validUntil\": \"1790000400\",\n \"repayTo\": \"0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc\"\n }\n }\n ]\n },\n \"ticket.receipt\": {\n \"name\": \"ticket.receipt\",\n \"title\": \"ticket.receipt (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/ticket.receipt\"\n }\n },\n \"examples\": [\n {\n \"name\": \"ticket-receipt-1\",\n \"payload\": {\n \"type\": \"ticket.receipt\",\n \"id\": \"rc-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000025000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"ticketHash\": \"0x963e823a2d9709d6630515731512094e45976407536974cb9f81817591ed1f16\",\n \"ticketSigHash\": \"0x9d30145c6e97cad96cf7cee181ac9d5b879dea7fed0730d7197e84e28487292b\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n },\n {\n \"name\": \"ticket-receipt-2\",\n \"payload\": {\n \"type\": \"ticket.receipt\",\n \"id\": \"rc-2\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000025000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"form\": \"canton\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 2,\n \"deliveryOrderCid\": \"00a1b2c3d4e5f6#fixture-delivery-order\",\n \"validUntil\": \"1790000400\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\"\n }\n }\n ]\n },\n \"fill.reported\": {\n \"name\": \"fill.reported\",\n \"title\": \"fill.reported (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/fill.reported\"\n }\n },\n \"examples\": [\n {\n \"name\": \"fill-reported-1\",\n \"payload\": {\n \"type\": \"fill.reported\",\n \"id\": \"f-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000060000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"txRef\": \"0xfc4cba975d6b96ed2be00adae2d970f61413b963279089dcfc6402ddccc42740\"\n }\n }\n ]\n },\n \"ticket.expired\": {\n \"name\": \"ticket.expired\",\n \"title\": \"ticket.expired (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/ticket.expired\"\n }\n },\n \"examples\": [\n {\n \"name\": \"ticket-expired-1\",\n \"payload\": {\n \"type\": \"ticket.expired\",\n \"id\": \"g-14\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000460000,\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"result\": \"FILLED\"\n }\n },\n {\n \"name\": \"ticket-expired-2\",\n \"payload\": {\n \"type\": \"ticket.expired\",\n \"id\": \"g-15\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000460000,\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"result\": \"EXEMPT\",\n \"exemptReason\": \"DESTINATION_HALTED\"\n }\n }\n ]\n },\n \"order.settled\": {\n \"name\": \"order.settled\",\n \"title\": \"order.settled (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/order.settled\"\n }\n },\n \"examples\": [\n {\n \"name\": \"order-settled-1\",\n \"payload\": {\n \"type\": \"order.settled\",\n \"id\": \"g-16\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000900000,\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"payout\": \"1000000000\",\n \"fee\": \"3000000\",\n \"penaltyWithheld\": \"0\",\n \"txRef\": \"0x8d99b79edaf0d9c062753bb308a72f52ec1ed8873fe06580c14524bb66a9f614\"\n }\n }\n ]\n },\n \"penalty.applied\": {\n \"name\": \"penalty.applied\",\n \"title\": \"penalty.applied (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/penalty.applied\"\n }\n },\n \"examples\": [\n {\n \"name\": \"penalty-applied-1\",\n \"payload\": {\n \"type\": \"penalty.applied\",\n \"id\": \"g-17\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790001000000,\n \"violationId\": \"v-1\",\n \"code\": \"NO_SHOW\",\n \"step\": \"RECORDED\",\n \"details\": {\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0\n }\n }\n }\n ]\n },\n \"settle.attestations\": {\n \"name\": \"settle.attestations\",\n \"title\": \"settle.attestations (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/settle.attestations\"\n }\n },\n \"examples\": [\n {\n \"name\": \"settle-attestations-1\",\n \"payload\": {\n \"type\": \"settle.attestations\",\n \"id\": \"g-sa-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000160000,\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 0,\n \"sourceChainId\": \"eip155:11155111\",\n \"proof\": {\n \"kind\": 1,\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"destination\": \"0x0000000000000000000000000000000000000000000000000000000000066eee\",\n \"fillRef\": \"0xfc4cba975d6b96ed2be00adae2d970f61413b963279089dcfc6402ddccc42740\",\n \"recipient\": \"0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e\",\n \"outputAsset\": \"0x00000000000000000000000075faf114eafb1bdbe2f0316df893fd58ce46aa4d\",\n \"amountDelivered\": \"999000000\",\n \"filledAt\": \"1790000100\",\n \"fillerId\": \"0x112e2693409c427698100f54d0439fc3593fedb25221fe3a54c4823c0a0ee2d5\",\n \"repayTo\": \"0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e\",\n \"attempt\": 0,\n \"setId\": 1\n },\n \"signatures\": [\n {\n \"signer\": \"0x5e877d05b3bfef8b53a59dde76b911fb521415cd\",\n \"signature\": \"0x280a1c67572079434e423c51ee29272a0afb87bc485b3292192fb08242aeef687bcd1417aff35025ab16da3f43a73972585877b131a2b4dfe83d1ae4f5ef0fad1b\"\n },\n {\n \"signer\": \"0x6805cf7ce01e1c392d47806813503e367c932544\",\n \"signature\": \"0x77cba7cedee87b88ac9d90ce0440bb55fa510930318e1a7cb9e2567f198208fb3784a5ca3343c3df2d7dfc29b0a2eae3b87b475893b4d134fa6ce9d8df2a88521b\"\n }\n ],\n \"setId\": 1,\n \"threshold\": 2,\n \"refundAfter\": \"1790002400\",\n \"sig\": \"0x703468572b0f0d056f7c8547a2a70dbb76469888d23059926e906d23cc0468ac54cd96efe6a0f298750a225cd4a7e6acb511f144631076ed2825de0bf0e40b1e1b\"\n }\n },\n {\n \"name\": \"settle-attestations-2\",\n \"payload\": {\n \"type\": \"settle.attestations\",\n \"id\": \"g-sa-3\",\n \"fillerId\": \"acme\",\n \"sentAt\": 1789999760000,\n \"orderHash\": \"0x22e3a53ab72c6990b1971fd50b9ec6c527a003d987cd58d26058b380dd7ae79a\",\n \"attempt\": 1,\n \"sourceChainId\": \"canton:mainnet\",\n \"proof\": {\n \"kind\": 1,\n \"orderHash\": \"0x22e3a53ab72c6990b1971fd50b9ec6c527a003d987cd58d26058b380dd7ae79a\",\n \"destination\": \"0x0000000000000000000000000000000000000000000000000000000000000001\",\n \"fillRef\": \"0xfba8fd8a079872a9efe9646fcf34cfbbe8711ebd63665e8f2e0924949264c471\",\n \"recipient\": \"0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e\",\n \"outputAsset\": \"0x000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\",\n \"amountDelivered\": \"1200250000\",\n \"filledAt\": \"1789999700\",\n \"fillerId\": \"0xe29dae06ef4c3e336b7538b6d4f52ca1ecec009b1df6fb501320e11b223aeeaf\",\n \"repayTo\": \"0x4fa94ace29856f88ebea07ce6d18e21f52c60b4f66d147134c03c82b62957f9d\",\n \"attempt\": 1,\n \"setId\": 3\n },\n \"signatures\": [\n {\n \"signer\": \"0x5e877d05b3bfef8b53a59dde76b911fb521415cd\",\n \"pubKey\": \"0x3056301006072a8648ce3d020106052b8104000a034200046e4ce4835ad9bacce317724d5a85bfb72f73c0e0e0d9bb0ece443a23c405994056f031b0c83296033a1fd06fc21cbfdab8a821b09c0172ed64ef1b1ee3469be3\",\n \"signature\": \"0x3044022048f14c61c1f52f541ab136ef92bbbcfca14dd0560db802feb510f7fce19477b20220230a636d4d10c7e5c16b997394a8261185a899f0e8d8e5ffad14db4d4123dd16\"\n },\n {\n \"signer\": \"0x6805cf7ce01e1c392d47806813503e367c932544\",\n \"pubKey\": \"0x3056301006072a8648ce3d020106052b8104000a034200044f15010d9f9457006502d7cbe0cfc5ed67076c2d6f2d4d034b8412e1c07561c370356c5da930ec7a271c3c8d11d00a14e36a3cd3a2a4fad8c05b367357f15b7e\",\n \"signature\": \"0x3045022100d4cb2f8a3084bf5749871a06fa543a9ba80889471eb2799ab4c4c08b31ee7e2902203e2b4af4e08f263168a046a4b6a6370398c7b03de7797f1a011910c0d784f4bc\"\n },\n {\n \"signer\": \"0x695ba7eb3c2a35bfc8d16562560a01ba1f9931d0\",\n \"pubKey\": \"0x3056301006072a8648ce3d020106052b8104000a0342000479d89465d2de95e32eb728c63c58f4554dbecd39dacf7b680a326672cbc601af2abda0dd84f5b8a4bf8efebcb5eb0d24643dc0cc32af3f76a6ef877b71e19e2b\",\n \"signature\": \"0x304402200a300c658594fe20fb429c4f32e23e0b3e444a017f320622cb636792d6f13ca802200cbd9bcb4ea5719f63f8a510e7e9f3d730a47691a7b6eb8e78ec787218997e02\"\n }\n ],\n \"setId\": 3,\n \"threshold\": 2,\n \"refundAfter\": \"1790001800\",\n \"sig\": \"0x481041cd0c07174f6db63b7acdc96a0bcc399de0be60df07faea3be6f0f09c83553a59f5e5443a6d7d1763789404d732a4b5cdc57758b729adf50245b8f96c2d1b\"\n }\n }\n ]\n },\n \"canton.prepare\": {\n \"name\": \"canton.prepare\",\n \"title\": \"canton.prepare (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/canton.prepare\"\n }\n },\n \"examples\": [\n {\n \"name\": \"canton-prepare-1\",\n \"payload\": {\n \"type\": \"canton.prepare\",\n \"id\": \"cp-1\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1789990000000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"op\": \"party.allocate\",\n \"params\": {\n \"publicKey\": \"0x1111111111111111111111111111111111111111111111111111111111111111\"\n }\n }\n },\n {\n \"name\": \"canton-prepare-2\",\n \"payload\": {\n \"type\": \"canton.prepare\",\n \"id\": \"cp-2\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1789990100000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"op\": \"registry.accept\",\n \"params\": {}\n }\n },\n {\n \"name\": \"canton-prepare-3\",\n \"payload\": {\n \"type\": \"canton.prepare\",\n \"id\": \"cp-3\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000026000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"op\": \"delivery.fill\",\n \"params\": {\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 2\n }\n }\n },\n {\n \"name\": \"canton-prepare-4\",\n \"payload\": {\n \"type\": \"canton.prepare\",\n \"id\": \"cp-4\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000700000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"op\": \"intent.settle\",\n \"params\": {\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\"\n }\n }\n },\n {\n \"name\": \"canton-prepare-5\",\n \"payload\": {\n \"type\": \"canton.prepare\",\n \"id\": \"cp-5\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790001000000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"op\": \"holdings.transfer\",\n \"params\": {\n \"asset\": {\n \"admin\": \"cancore-registry::1220aa\",\n \"id\": \"CNRX\"\n },\n \"amount\": \"250.5\",\n \"toParty\": \"alice::1220f0e1d2c3b4a5968778695a4b3c2d1e0ff0e1d2c3b4a5968778695a4b3c2d1e0f\"\n }\n }\n },\n {\n \"name\": \"canton-prepare-6\",\n \"payload\": {\n \"type\": \"canton.prepare\",\n \"id\": \"cp-6\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1789990200000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"op\": \"preapproval.create\",\n \"params\": {\n \"admin\": \"cancore-registry::1220aa\"\n }\n }\n }\n ]\n },\n \"canton.prepared\": {\n \"name\": \"canton.prepared\",\n \"title\": \"canton.prepared (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/canton.prepared\"\n }\n },\n \"examples\": [\n {\n \"name\": \"canton-prepared-1\",\n \"payload\": {\n \"type\": \"canton.prepared\",\n \"id\": \"g-19\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789990000200,\n \"re\": \"cp-1\",\n \"operationId\": \"op-1\",\n \"op\": \"party.allocate\",\n \"legs\": [\n {\n \"legId\": \"topology-0\",\n \"kind\": \"topology\",\n \"hash\": \"0x12203d71f7c09428bb0f75651436e3a1c92b3a12490049882ff50711337cf5c9de0a\",\n \"topologyTransactions\": [\n \"CgMyLjESBTAuMC4x\",\n \"CgMyLjESBTAuMC4y\"\n ]\n }\n ],\n \"summary\": {\n \"partyId\": \"acme-markets::1220a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90\",\n \"publicKey\": \"0x1111111111111111111111111111111111111111111111111111111111111111\",\n \"hosting\": {\n \"participantUid\": \"PAR::cancore::1220c0ffee\",\n \"permission\": \"CONFIRMATION\",\n \"threshold\": 1\n }\n },\n \"expiresAt\": 1789990300200\n }\n },\n {\n \"name\": \"canton-prepared-2\",\n \"payload\": {\n \"type\": \"canton.prepared\",\n \"id\": \"g-20\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000026300,\n \"re\": \"cp-3\",\n \"operationId\": \"op-3\",\n \"op\": \"delivery.fill\",\n \"legs\": [\n {\n \"legId\": \"delivery-fill-0\",\n \"kind\": \"transaction\",\n \"hash\": \"0xf85381267321fc9b5122e45db048de3313dbc0dce8b36202673245d6c6d92840\",\n \"preparedTransaction\": \"CgMyLjESBTAuMC4x\",\n \"hashingSchemeVersion\": \"HASHING_SCHEME_VERSION_V2\"\n }\n ],\n \"summary\": {\n \"orderHash\": \"0x65f9010d612499d381eefba1a2385b76982c9bdaf9ed15bedbafd7b09fb3b73b\",\n \"attempt\": 2,\n \"deliveryOrderCid\": \"00a1b2c3d4e5f6#fixture-delivery-order\",\n \"recipient\": \"alice::1220f0e1d2c3b4a5968778695a4b3c2d1e0ff0e1d2c3b4a5968778695a4b3c2d1e0f\",\n \"asset\": {\n \"admin\": \"cancore-registry::1220aa\",\n \"id\": \"CNRX\"\n },\n \"amount\": \"999.0\",\n \"repayTo\": \"0x0000000000000000000000003c44cdddb6a900fa2b585dd299e03d12fa4293bc\",\n \"validUntil\": \"1790000400\",\n \"inputHoldingCids\": [\n \"00h1\",\n \"00h2\"\n ],\n \"executeBefore\": \"1790000400\",\n \"transferFactoryCid\": \"00tf\"\n },\n \"expiresAt\": 1790000326300\n }\n },\n {\n \"name\": \"canton-prepared-3\",\n \"payload\": {\n \"type\": \"canton.prepared\",\n \"id\": \"g-25\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789990200200,\n \"re\": \"cp-6\",\n \"operationId\": \"op-6\",\n \"op\": \"preapproval.create\",\n \"legs\": [\n {\n \"legId\": \"preapproval-create-0\",\n \"kind\": \"transaction\",\n \"hash\": \"0x71bb89bb58a7348d8860b4a84b1e598fc03e1368f144ef24d1cc9e292a1be331\",\n \"preparedTransaction\": \"CgMyLjESBTAuMC4x\",\n \"hashingSchemeVersion\": \"HASHING_SCHEME_VERSION_V2\"\n }\n ],\n \"summary\": {\n \"party\": \"acme-markets::1220a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90\",\n \"admin\": \"cancore-registry::1220aa\",\n \"instrumentAllowances\": [],\n \"requestedAt\": \"1789990200\",\n \"executeBefore\": \"1821526200\"\n },\n \"expiresAt\": 1789990500200\n }\n }\n ]\n },\n \"canton.submit\": {\n \"name\": \"canton.submit\",\n \"title\": \"canton.submit (F2S)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/canton.submit\"\n }\n },\n \"examples\": [\n {\n \"name\": \"canton-submit-1\",\n \"payload\": {\n \"type\": \"canton.submit\",\n \"id\": \"cs-3\",\n \"fillerId\": \"acme-markets\",\n \"sentAt\": 1790000027000,\n \"msgSig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"operationId\": \"op-3\",\n \"signatures\": [\n {\n \"legId\": \"delivery-fill-0\",\n \"signature\": \"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\"\n }\n ]\n }\n }\n ]\n },\n \"canton.submitted\": {\n \"name\": \"canton.submitted\",\n \"title\": \"canton.submitted (S2F)\",\n \"payload\": {\n \"schemaFormat\": \"application/schema+json;version=draft-2020-12\",\n \"schema\": {\n \"$ref\": \"messages.schema.json#/$defs/canton.submitted\"\n }\n },\n \"examples\": [\n {\n \"name\": \"canton-submitted-1\",\n \"payload\": {\n \"type\": \"canton.submitted\",\n \"id\": \"g-21\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790000029000,\n \"re\": \"cs-3\",\n \"operationId\": \"op-3\",\n \"op\": \"delivery.fill\",\n \"updateId\": \"1220ab0c\",\n \"result\": {\n \"receiptCid\": \"00c1d2\"\n }\n }\n },\n {\n \"name\": \"canton-submitted-2\",\n \"payload\": {\n \"type\": \"canton.submitted\",\n \"id\": \"g-22\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789990002000,\n \"re\": \"cs-1\",\n \"operationId\": \"op-1\",\n \"op\": \"party.allocate\",\n \"result\": {\n \"partyId\": \"acme-markets::1220a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90\"\n }\n }\n },\n {\n \"name\": \"canton-submitted-3\",\n \"payload\": {\n \"type\": \"canton.submitted\",\n \"id\": \"g-23\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1790001002000,\n \"re\": \"cs-5\",\n \"operationId\": \"op-5\",\n \"op\": \"holdings.transfer\",\n \"updateId\": \"1220ab0d\",\n \"result\": {\n \"outcome\": \"PENDING\",\n \"transferInstructionCid\": \"00ti\"\n }\n }\n },\n {\n \"name\": \"canton-submitted-4\",\n \"payload\": {\n \"type\": \"canton.submitted\",\n \"id\": \"g-26\",\n \"fillerId\": \"acme-markets\",\n \"sig\": \"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b\",\n \"sentAt\": 1789990202000,\n \"re\": \"cs-6\",\n \"operationId\": \"op-6\",\n \"op\": \"preapproval.create\",\n \"updateId\": \"1220ab0e\",\n \"result\": {\n \"preapprovalCid\": \"00pa\"\n }\n }\n }\n ]\n }\n }\n }\n}\n","{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://cancore.io/schemas/filler-protocol/v1/messages.schema.json\",\n \"title\": \"Cancore filler protocol v1 — WebSocket frames\",\n \"$comment\": \"One $def per frame type, validated by name ($defs/<type>). The schemas encode the SENDER rule (protocol §3.1): lowercase hex, uint64 and wider as canonical decimal strings, uint8/16/32 as JSON integers, gateway times in milliseconds. No object is closed (V-2): receivers ignore unknown fields, takers ignore unknown S→F types, and treat an unknown reason/result/code as OTHER/generic. Every enum is open: anyOf [known values, futureEnumValue]. x-direction: S2F = gateway to filler, F2S = filler to gateway, both = either way (ping, pong, error; <type>S2F is the gateway's copy, <type>F2S the filler's). x-rest-only: the type travels only as a REST body (auth.challenge, auth.response: the login of protocol §3.6), never on the WebSocket. Every frame in both directions carries id, sentAt and fillerId (optional only on a gateway error that refuses a login, POST /v1/filler/auth) and is signed (protocol §3.4): `sig` = the gateway key over GatewayMessage{bodyHash} on S2F, `msgSig` = the filler's message key over FillerMessage{bodyHash} on F2S, bodyHash = keccak256(JCS(frame without that field)). No exceptions: ticket.decline, a declining quote.reconfirm.reply, fill.reported, pong and error from the filler are signed too.\",\n \"$defs\": {\n \"uintDec64\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)$\", \"maxLength\": 20, \"description\": \"uint64 as a decimal string: digits only, no sign, no exponent, no leading zero\" },\n \"uintDec256\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)$\", \"maxLength\": 78, \"description\": \"uint256 as a decimal string\" },\n \"intDecUsd\": { \"type\": \"string\", \"pattern\": \"^-?(0|[1-9][0-9]*)(\\\\.[0-9]+)?$\", \"description\": \"signed decimal USD amount\" },\n \"uint8\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 255 },\n \"uint16\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 65535 },\n \"uint32\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 4294967295 },\n \"address\": { \"type\": \"string\", \"pattern\": \"^0x[0-9a-f]{40}$\", \"description\": \"EVM address, lowercase hex\" },\n \"bytes32\": { \"type\": \"string\", \"pattern\": \"^0x[0-9a-f]{64}$\" },\n \"repayTo\": { \"$ref\": \"#/$defs/bytes32\", \"description\": \"where settle pays the filler, encoded for the SOURCE chain (protocol §3.15): EVM — the address left-padded to 32 bytes (repayToEvm); Canton — keccak256(utf8(partyId)) of the filler's registered party\" },\n \"repayToEvm\": { \"type\": \"string\", \"pattern\": \"^0x0{24}(?!0{40})[0-9a-f]{40}$\", \"description\": \"repayTo for an EVM source: zero top 12 bytes (the router refuses others, InvalidBytes32Address) and not the zero address (ZeroAddress). A receiver that knows the source chain checks repayTo against this\" },\n \"deliveryKey\": { \"$ref\": \"#/$defs/address\", \"description\": \"the address that sends fill on the destination (FillTicket.deliveryKey); the zero address for a Canton destination\" },\n \"sig65\": { \"type\": \"string\", \"pattern\": \"^0x[0-9a-f]{64}[0-7][0-9a-f]{63}(1b|1c)$\", \"description\": \"65-byte r ‖ s ‖ v of an EOA, low-s, v ∈ {27, 28}; no EIP-1271. The pattern refuses any other length or v and an s with its top bit set; isEoaSignature checks the exact bound s ≤ n/2\" },\n \"timeMs\": { \"type\": \"integer\", \"minimum\": 1000000000000, \"maximum\": 9007199254740991, \"description\": \"unix milliseconds, gateway clock; the minimum rejects seconds\" },\n \"durationMs\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 9007199254740991 },\n \"timeS\": { \"$ref\": \"#/$defs/uintDec64\", \"description\": \"unix seconds as a decimal string (on-chain and signed times)\" },\n \"caip2\": { \"type\": \"string\", \"pattern\": \"^(eip155:[1-9][0-9]*|canton:(mainnet|testnet|devnet))$\" },\n \"cantonAsset\": {\n \"type\": \"object\",\n \"required\": [\"admin\", \"id\"],\n \"properties\": { \"admin\": { \"type\": \"string\", \"minLength\": 1 }, \"id\": { \"type\": \"string\", \"minLength\": 1 } }\n },\n \"asset\": { \"oneOf\": [{ \"$ref\": \"#/$defs/address\" }, { \"$ref\": \"#/$defs/cantonAsset\" }] },\n \"requestId\": { \"type\": \"string\", \"pattern\": \"^[!-~]{1,64}$\", \"description\": \"1..64 printable ASCII (Canonical.daml:90-93)\" },\n \"fillerId\": { \"type\": \"string\", \"pattern\": \"^[a-z0-9][a-z0-9-]{0,62}$\" },\n \"messageId\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 64, \"description\": \"unique per fillerId and direction across every session of that fillerId; never reused by its sender within maxMessageAgeMs\" },\n \"protocolVersion\": { \"const\": \"1\" },\n \"order\": {\n \"type\": \"object\",\n \"description\": \"ICancoreRouter.Order, twelve fields, every numeric field a decimal string (the shape of canton-order.json vector.order)\",\n \"required\": [\"user\", \"originChainId\", \"inputToken\", \"inputAmount\", \"destination\", \"outputAsset\", \"minReceived\", \"recipient\", \"createdAt\", \"fillDeadline\", \"feeBps\", \"fillerId\"],\n \"properties\": {\n \"user\": { \"$ref\": \"#/$defs/address\" },\n \"originChainId\": { \"$ref\": \"#/$defs/uintDec64\" },\n \"inputToken\": { \"$ref\": \"#/$defs/address\" },\n \"inputAmount\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"destination\": { \"$ref\": \"#/$defs/bytes32\" },\n \"outputAsset\": { \"$ref\": \"#/$defs/bytes32\" },\n \"minReceived\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"recipient\": { \"$ref\": \"#/$defs/bytes32\" },\n \"createdAt\": { \"$ref\": \"#/$defs/timeS\" },\n \"fillDeadline\": { \"$ref\": \"#/$defs/timeS\" },\n \"feeBps\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$\", \"description\": \"uint16\" },\n \"fillerId\": { \"$ref\": \"#/$defs/bytes32\", \"description\": \"keccak256(utf8(fillerId)) of the filler the user picked\" }\n }\n },\n \"ticket\": {\n \"type\": \"object\",\n \"description\": \"FillTicket(bytes32 orderHash,bytes32 fillerId,address deliveryKey,bytes32 repayTo,uint32 attempt,uint64 validFrom,uint64 validUntil); fillerId is keccak256(utf8(fillerId)), deliveryKey and repayTo are those of the filler's signed ticket.intent (S-22)\",\n \"required\": [\"orderHash\", \"fillerId\", \"deliveryKey\", \"repayTo\", \"attempt\", \"validFrom\", \"validUntil\"],\n \"properties\": {\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"fillerId\": { \"$ref\": \"#/$defs/bytes32\" },\n \"deliveryKey\": { \"$ref\": \"#/$defs/address\" },\n \"repayTo\": { \"$ref\": \"#/$defs/repayTo\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"validFrom\": { \"$ref\": \"#/$defs/timeS\" },\n \"validUntil\": { \"$ref\": \"#/$defs/timeS\" }\n }\n },\n \"futureEnumValue\": { \"type\": \"string\", \"pattern\": \"^[A-Z][A-Z0-9_]*$\", \"description\": \"a value added to an open enum within v1 (V-2); the receiver treats it as OTHER/generic. Every protocol enum is `anyOf: [{enum: known values}, futureEnumValue]`\" },\n \"declineReason\": {\n \"anyOf\": [\n { \"enum\": [\"NO_INVENTORY\", \"RISK_LIMIT\", \"PRICE_MOVED\", \"PAUSED\", \"OTHER\", \"TICKET_SIGNER_UNKNOWN\", \"TICKET_MISMATCH\", \"TICKET_TTL_TOO_SHORT\", \"TICKET_ISSUED_LATE\", \"TICKET_BEYOND_DEADLINE\", \"ESCROW_NOT_OPEN\", \"ESCROW_MISMATCH\", \"PROOF_WINDOW_TOO_SHORT\", \"SKEW_MARGIN_TOO_SHORT\", \"DRAW_MISMATCH\"] },\n { \"$ref\": \"#/$defs/futureEnumValue\" }\n ]\n },\n \"errorCode\": {\n \"anyOf\": [\n { \"enum\": [\"BAD_REQUEST\", \"UNAUTHENTICATED\", \"UNSUPPORTED_VERSION\", \"UNSUPPORTED_TYPE\", \"BAD_SIGNATURE\", \"STALE_MESSAGE\", \"REPLAYED_MESSAGE\", \"TICKET_REFUSED\", \"UNKNOWN_REQUEST\", \"UNKNOWN_TICKET\", \"TICKET_CLOSED\", \"NOT_ELIGIBLE\", \"RATE_LIMITED\", \"INTERNAL\", \"ATTESTATIONS_NOT_READY\", \"CANTON_NOT_READY\", \"CANTON_REFUSED\", \"CANTON_UNAVAILABLE\", \"OPERATION_EXPIRED\", \"ROUTE_NOT_APPROVED\"] },\n { \"$ref\": \"#/$defs/futureEnumValue\" }\n ]\n },\n \"ticketRefusedReason\": {\n \"anyOf\": [\n { \"enum\": [\"REPAY_TO_INVALID\", \"REPAY_TO_BLOCKLISTED\", \"DELIVERY_KEY_INVALID\", \"PAYOUT_NOT_READY\", \"RECIPIENT_NOT_READY\", \"OPEN_TICKET_LIMIT\", \"PROOF_WINDOW_TOO_SHORT\", \"ATTESTOR_REVOCATION_PENDING\", \"SERVICE_DEGRADED\", \"OTHER\"] },\n { \"$ref\": \"#/$defs/futureEnumValue\" }\n ],\n \"description\": \"error.reason with TICKET_REFUSED: the pre-ticket check that failed (S-21); the order is re-drawn, nothing is recorded against the filler\"\n },\n \"expiredResult\": { \"anyOf\": [{ \"enum\": [\"FILLED\", \"NO_SHOW\", \"NO_SHOW_UNCONFIRMED\", \"EXEMPT\"] }, { \"$ref\": \"#/$defs/futureEnumValue\" }] },\n \"exemptReason\": { \"anyOf\": [{ \"enum\": [\"DESTINATION_HALTED\", \"GATEWAY_FAULT\", \"REORGED_AFTER_INCLUSION\", \"RECIPIENT_NOT_READY\", \"OTHER\"] }, { \"$ref\": \"#/$defs/futureEnumValue\" }] },\n \"quoteAckStatus\": { \"anyOf\": [{ \"enum\": [\"COUNTED\", \"LATE\", \"SHORT_TTL\"] }, { \"$ref\": \"#/$defs/futureEnumValue\" }], \"description\": \"verdict at receipt time; the final status is on GET /v1/filler/quotes\" },\n \"penaltyStep\": { \"anyOf\": [{ \"enum\": [\"RECORDED\", \"BANNED\", \"UNBANNED\"] }, { \"$ref\": \"#/$defs/futureEnumValue\" }] },\n \"s2fEnvelope\": {\n \"type\": \"object\",\n \"required\": [\"type\", \"id\", \"sentAt\", \"sig\"],\n \"properties\": {\n \"type\": { \"type\": \"string\" },\n \"id\": { \"$ref\": \"#/$defs/messageId\" },\n \"fillerId\": { \"$ref\": \"#/$defs/fillerId\", \"description\": \"the addressee\" },\n \"sentAt\": { \"$ref\": \"#/$defs/timeMs\" },\n \"sig\": { \"$ref\": \"#/$defs/sig65\", \"description\": \"gateway key over GatewayMessage{bodyHash = keccak256(JCS(frame without sig))}\" },\n \"re\": { \"$ref\": \"#/$defs/messageId\" }\n }\n },\n \"s2fBase\": { \"allOf\": [{ \"$ref\": \"#/$defs/s2fEnvelope\" }, { \"type\": \"object\", \"required\": [\"fillerId\"], \"properties\": { \"fillerId\": { \"$ref\": \"#/$defs/fillerId\" } } }] },\n \"f2sEnvelope\": {\n \"type\": \"object\",\n \"description\": \"What every filler → filler-gateway message and REST request body carries (protocol §3.4, S-19): the gateway refuses one without it, with another fillerId than the session's, with a stale sentAt or a reused id\",\n \"required\": [\"id\", \"fillerId\", \"sentAt\", \"msgSig\"],\n \"properties\": {\n \"id\": { \"$ref\": \"#/$defs/messageId\" },\n \"fillerId\": { \"$ref\": \"#/$defs/fillerId\", \"description\": \"the sender; must be the fillerId the session is authenticated for\" },\n \"sentAt\": { \"$ref\": \"#/$defs/timeMs\" },\n \"msgSig\": { \"$ref\": \"#/$defs/sig65\", \"description\": \"the filler's message key over FillerMessage{bodyHash = keccak256(JCS(message without msgSig))}; the body keeps id, fillerId, sentAt and any inner sig\" },\n \"re\": { \"$ref\": \"#/$defs/messageId\" }\n }\n },\n \"f2sBase\": { \"allOf\": [{ \"$ref\": \"#/$defs/f2sEnvelope\" }, { \"type\": \"object\", \"required\": [\"type\"], \"properties\": { \"type\": { \"type\": \"string\" } } }] },\n \"fillerKeyRegistration\": {\n \"type\": \"object\",\n \"description\": \"Proof of possession of a message key (protocol §3.16): FillerKeyRegistration{fillerId, messageKey, issuedAt} signed by that key — at onboarding, and with the NEW key at a manual key change by Cancore staff, who submit it to the key registry of filler-gateway. Not a frame: there is no key-change message. sig must be an EOA signature (65 bytes, low-s, v ∈ {27, 28}) that recovers to messageKey; an EIP-1271 signature is refused\",\n \"required\": [\"fillerId\", \"messageKey\", \"issuedAt\", \"sig\"],\n \"properties\": {\n \"fillerId\": { \"$ref\": \"#/$defs/fillerId\" },\n \"messageKey\": { \"$ref\": \"#/$defs/address\" },\n \"issuedAt\": { \"$ref\": \"#/$defs/timeS\" },\n \"sig\": { \"$ref\": \"#/$defs/sig65\" }\n }\n },\n \"auth.challenge\": {\n \"x-direction\": \"S2F\",\n \"x-rest-only\": true,\n \"type\": \"object\",\n \"description\": \"The login challenge, addressed to the fillerId it was asked for: the 200 body of GET /v1/filler/auth/challenge?fillerId=. Never sent on the WebSocket. The filler checks the gateway sig and that fillerId is its own before it signs FillerAuth{fillerId, nonce, expiresAt}\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"nonce\", \"expiresAt\"],\n \"properties\": { \"type\": { \"const\": \"auth.challenge\" }, \"nonce\": { \"$ref\": \"#/$defs/bytes32\" }, \"expiresAt\": { \"$ref\": \"#/$defs/timeS\" } }\n },\n \"auth.response\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"x-rest-only\": true,\n \"description\": \"The body of POST /v1/filler/auth, answered with {token, expiresAt}. sig = FillerAuth{fillerId, nonce, expiresAt} by the registered message key of fillerId (keyAddress = its address); msgSig by the same key. Never sent on the WebSocket: a WebSocket connection is authenticated by the bearer token offered on the upgrade\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"fillerId\", \"keyAddress\", \"protocolVersion\", \"sig\"],\n \"properties\": {\n \"type\": { \"const\": \"auth.response\" },\n \"fillerId\": { \"$ref\": \"#/$defs/fillerId\" },\n \"keyAddress\": { \"$ref\": \"#/$defs/address\" },\n \"protocolVersion\": { \"type\": \"string\", \"description\": \"the gateway answers UNSUPPORTED_VERSION to anything it does not serve; v1 senders send \\\"1\\\"\" },\n \"nonce\": { \"$ref\": \"#/$defs/bytes32\", \"description\": \"the auth.challenge nonce this response answers (optional; senders SHOULD send it), so POST /v1/filler/auth finds the live challenge of this fillerId without trying every one\" },\n \"sig\": { \"$ref\": \"#/$defs/sig65\" }\n }\n },\n \"auth.ok\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"heartbeatIntervalMs\"],\n \"properties\": { \"type\": { \"const\": \"auth.ok\" }, \"heartbeatIntervalMs\": { \"$ref\": \"#/$defs/durationMs\" } }\n },\n \"ping\": {\n \"x-direction\": \"both\",\n \"description\": \"Heartbeat, either way. A receiver checks the copy of its direction: pingS2F (gateway sig) or pingF2S (filler msgSig)\",\n \"anyOf\": [{ \"$ref\": \"#/$defs/pingF2S\" }, { \"$ref\": \"#/$defs/pingS2F\" }]\n },\n \"pingF2S\": {\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"id\"],\n \"properties\": { \"type\": { \"const\": \"ping\" }, \"id\": { \"$ref\": \"#/$defs/messageId\" } }\n },\n \"pingS2F\": {\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"id\"],\n \"properties\": { \"type\": { \"const\": \"ping\" }, \"id\": { \"$ref\": \"#/$defs/messageId\" } }\n },\n \"pong\": {\n \"x-direction\": \"both\",\n \"description\": \"Answer to a ping, re = ping.id. A receiver checks the copy of its direction: pongS2F (gateway sig) or pongF2S (filler msgSig)\",\n \"anyOf\": [{ \"$ref\": \"#/$defs/pongF2S\" }, { \"$ref\": \"#/$defs/pongS2F\" }]\n },\n \"pongF2S\": {\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"re\"],\n \"properties\": { \"type\": { \"const\": \"pong\" }, \"re\": { \"$ref\": \"#/$defs/messageId\" } }\n },\n \"pongS2F\": {\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"re\"],\n \"properties\": { \"type\": { \"const\": \"pong\" }, \"re\": { \"$ref\": \"#/$defs/messageId\" } }\n },\n \"error\": {\n \"x-direction\": \"both\",\n \"description\": \"Either way. A receiver checks the copy of its direction: errorS2F (the gateway's reply, also the REST error body) or errorF2S (the filler's reply to a gateway frame it cannot handle)\",\n \"anyOf\": [{ \"$ref\": \"#/$defs/errorF2S\" }, { \"$ref\": \"#/$defs/errorS2F\" }]\n },\n \"errorS2F\": {\n \"type\": \"object\",\n \"description\": \"Reply to the F→S frame `re`; also the REST error body. fillerId may be absent on a refusal of POST /v1/filler/auth, which is not authenticated yet. reason names the failed pre-ticket check with TICKET_REFUSED. retryAfterMs comes with RATE_LIMITED only\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fEnvelope\" }],\n \"required\": [\"type\", \"code\", \"message\"],\n \"properties\": {\n \"type\": { \"const\": \"error\" },\n \"code\": { \"$ref\": \"#/$defs/errorCode\" },\n \"message\": { \"type\": \"string\" },\n \"reason\": { \"$ref\": \"#/$defs/ticketRefusedReason\" },\n \"retryAfterMs\": { \"$ref\": \"#/$defs/durationMs\", \"type\": \"integer\", \"minimum\": 1, \"description\": \"with RATE_LIMITED: ms (≥ 1) until the rate class of the refused message holds a token again, or until the cooldown of the fillerId ends; the filler sends nothing of that class before it\" }\n },\n \"if\": { \"type\": \"object\", \"properties\": { \"code\": { \"const\": \"TICKET_REFUSED\" } }, \"required\": [\"code\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"reason\"], \"properties\": { \"reason\": true } }\n },\n \"errorF2S\": {\n \"type\": \"object\",\n \"description\": \"The filler's reply to the S→F frame `re` it cannot handle (malformed, unknown orderHash); informational, it changes no state in filler-gateway. Signed like every filler message\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"re\", \"code\", \"message\"],\n \"properties\": { \"type\": { \"const\": \"error\" }, \"re\": { \"$ref\": \"#/$defs/messageId\" }, \"code\": { \"$ref\": \"#/$defs/errorCode\" }, \"message\": { \"type\": \"string\" } }\n },\n \"epoch.weights\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"epochId\", \"startsAt\", \"endsAt\", \"weightsRoot\"],\n \"properties\": {\n \"type\": { \"const\": \"epoch.weights\" },\n \"epochId\": { \"$ref\": \"#/$defs/uintDec64\" },\n \"startsAt\": { \"$ref\": \"#/$defs/timeS\" },\n \"endsAt\": { \"$ref\": \"#/$defs/timeS\" },\n \"weightsRoot\": { \"$ref\": \"#/$defs/bytes32\" }\n }\n },\n \"quote.request\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"requestId\", \"route\", \"inputToken\", \"inputAmount\", \"outputAsset\", \"feeBps\", \"fillDeadlineHint\", \"windowCloseAt\", \"quoteTtlMs\"],\n \"properties\": {\n \"type\": { \"const\": \"quote.request\" },\n \"requestId\": { \"$ref\": \"#/$defs/requestId\" },\n \"route\": {\n \"type\": \"object\",\n \"required\": [\"src\", \"dst\"],\n \"properties\": { \"src\": { \"$ref\": \"#/$defs/caip2\" }, \"dst\": { \"$ref\": \"#/$defs/caip2\" } }\n },\n \"inputToken\": { \"$ref\": \"#/$defs/asset\" },\n \"inputAmount\": { \"$ref\": \"#/$defs/uintDec256\", \"description\": \"the total T the maker deposits (inclusive fee), input base units\" },\n \"outputAsset\": { \"$ref\": \"#/$defs/asset\" },\n \"feeBps\": { \"$ref\": \"#/$defs/uint16\" },\n \"fillDeadlineHint\": { \"$ref\": \"#/$defs/timeS\" },\n \"windowCloseAt\": { \"$ref\": \"#/$defs/timeMs\" },\n \"quoteTtlMs\": { \"$ref\": \"#/$defs/durationMs\" },\n \"imbalanceHint\": {\n \"type\": \"object\",\n \"required\": [\"dstAsset\", \"netFlow24hUsd\"],\n \"properties\": { \"dstAsset\": { \"$ref\": \"#/$defs/asset\" }, \"netFlow24hUsd\": { \"$ref\": \"#/$defs/intDecUsd\" } }\n }\n }\n },\n \"quote\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"description\": \"sig = FillerQuote{keccak256(utf8(requestId)), fillerId, amountOut, validUntil, nonce} by the message key, fillerId the envelope's; counts only if validUntil × 1000 ≥ windowCloseAt + quoteTtlMs\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"requestId\", \"amountOut\", \"validUntil\", \"nonce\", \"sig\"],\n \"properties\": {\n \"type\": { \"const\": \"quote\" },\n \"requestId\": { \"$ref\": \"#/$defs/requestId\" },\n \"amountOut\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"validUntil\": { \"$ref\": \"#/$defs/timeS\" },\n \"nonce\": { \"$ref\": \"#/$defs/uintDec64\" },\n \"sig\": { \"$ref\": \"#/$defs/sig65\" }\n }\n },\n \"quote.ack\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"description\": \"For every well-formed, correctly signed quote, late ones included (S-12)\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"requestId\", \"quoteHash\", \"receivedAt\", \"status\"],\n \"properties\": {\n \"type\": { \"const\": \"quote.ack\" },\n \"requestId\": { \"$ref\": \"#/$defs/requestId\" },\n \"quoteHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"receivedAt\": { \"$ref\": \"#/$defs/timeMs\" },\n \"status\": { \"$ref\": \"#/$defs/quoteAckStatus\" }\n }\n },\n \"quote.reconfirm\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"orderHash\", \"requestId\", \"order\", \"amountOut\", \"ticketTtl\", \"replyBy\"],\n \"properties\": {\n \"type\": { \"const\": \"quote.reconfirm\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"requestId\": { \"$ref\": \"#/$defs/requestId\" },\n \"order\": { \"$ref\": \"#/$defs/order\" },\n \"amountOut\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"ticketTtl\": { \"$ref\": \"#/$defs/uint32\", \"description\": \"seconds\" },\n \"replyBy\": { \"$ref\": \"#/$defs/timeMs\" }\n }\n },\n \"quote.reconfirm.reply\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"description\": \"An accept carries sig = FillerQuote{keccak256(utf8(requestId)), fillerId, amountOut, validUntil, nonce} by the message key; a decline carries only the envelope msgSig\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"orderHash\", \"accept\"],\n \"properties\": {\n \"type\": { \"const\": \"quote.reconfirm.reply\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"accept\": { \"type\": \"boolean\" },\n \"validUntil\": { \"$ref\": \"#/$defs/timeS\" },\n \"nonce\": { \"$ref\": \"#/$defs/uintDec64\" },\n \"sig\": { \"$ref\": \"#/$defs/sig65\" }\n },\n \"if\": { \"type\": \"object\", \"properties\": { \"accept\": { \"const\": true } }, \"required\": [\"accept\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"validUntil\", \"nonce\", \"sig\"], \"properties\": { \"validUntil\": true, \"nonce\": true, \"sig\": true } }\n },\n \"ticket.offer\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"order\", \"amountOut\", \"validFrom\", \"validUntil\", \"acceptBy\"],\n \"properties\": {\n \"type\": { \"const\": \"ticket.offer\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"order\": { \"$ref\": \"#/$defs/order\" },\n \"amountOut\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"validFrom\": { \"$ref\": \"#/$defs/timeS\" },\n \"validUntil\": { \"$ref\": \"#/$defs/timeS\" },\n \"acceptBy\": { \"$ref\": \"#/$defs/timeMs\" }\n }\n },\n \"ticket.intent\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"description\": \"sig = TicketIntent{orderHash, attempt, validFrom, validUntil, fillerId, deliveryKey, repayTo} by the message key, fillerId the envelope's; orderHash, attempt, validFrom, validUntil equal the offer; the issued ticket carries exactly this deliveryKey and repayTo (S-22), or the gateway answers error TICKET_REFUSED (S-21)\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"validFrom\", \"validUntil\", \"deliveryKey\", \"repayTo\", \"sig\"],\n \"properties\": {\n \"type\": { \"const\": \"ticket.intent\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"validFrom\": { \"$ref\": \"#/$defs/timeS\" },\n \"validUntil\": { \"$ref\": \"#/$defs/timeS\" },\n \"deliveryKey\": { \"$ref\": \"#/$defs/deliveryKey\" },\n \"repayTo\": { \"$ref\": \"#/$defs/repayTo\" },\n \"sig\": { \"$ref\": \"#/$defs/sig65\" }\n }\n },\n \"ticket.decline\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"reason\"],\n \"properties\": {\n \"type\": { \"const\": \"ticket.decline\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"reason\": { \"$ref\": \"#/$defs/declineReason\" },\n \"detail\": { \"type\": \"string\" }\n }\n },\n \"ticket.intent.ack\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"description\": \"Idempotent: a repeated identical intent gets the identical ack\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"intentHash\", \"receivedAt\"],\n \"properties\": {\n \"type\": { \"const\": \"ticket.intent.ack\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"intentHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"receivedAt\": { \"$ref\": \"#/$defs/timeMs\" }\n }\n },\n \"ticket.issued\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"description\": \"form discriminates the EVM-destination ticket (FillTicket + ticketSig) from the Canton-destination one (DeliveryOrder, with its repayTo); a form added within v1 (V-2) is checked against the common fields only. The filler checks fillerId, deliveryKey and repayTo against its own ticket.intent before it delivers (T-15)\",\n \"required\": [\"type\", \"form\", \"orderHash\", \"attempt\"],\n \"properties\": {\n \"type\": { \"const\": \"ticket.issued\" },\n \"form\": { \"anyOf\": [{ \"enum\": [\"evm\", \"canton\"] }, { \"type\": \"string\", \"pattern\": \"^[a-z][a-z0-9-]*$\" }] },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" }\n },\n \"allOf\": [\n { \"$ref\": \"#/$defs/s2fBase\" },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"form\": { \"const\": \"evm\" } }, \"required\": [\"form\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"ticket\", \"ticketSig\"], \"properties\": { \"ticket\": { \"$ref\": \"#/$defs/ticket\" }, \"ticketSig\": { \"$ref\": \"#/$defs/sig65\" } } }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"form\": { \"const\": \"canton\" } }, \"required\": [\"form\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"deliveryOrderCid\", \"validUntil\", \"repayTo\"], \"properties\": { \"deliveryOrderCid\": { \"type\": \"string\", \"minLength\": 1 }, \"validUntil\": { \"$ref\": \"#/$defs/timeS\" }, \"repayTo\": { \"$ref\": \"#/$defs/repayTo\", \"description\": \"the repayTo of the DeliveryOrder, = the filler's signed ticket.intent (S-22); fillerId is the envelope's\" } } }\n }\n ]\n },\n \"ticket.receipt\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"description\": \"form follows the issued ticket (S-14). EVM form (form absent or \\\"evm\\\"): sig = TicketReceipt{ticketHash, ticketSigHash} by the message key. Canton form: sig = CantonTicketReceipt{orderHash, attempt, deliveryOrderCidHash = keccak256(utf8(deliveryOrderCid)), validUntil} by the message key, deliveryOrderCid and validUntil exactly as in ticket.issued; fillerId and repayTo are not part of it (protocol §3.3, §10 D-O)\",\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"sig\"],\n \"properties\": {\n \"type\": { \"const\": \"ticket.receipt\" },\n \"form\": { \"anyOf\": [{ \"enum\": [\"evm\", \"canton\"] }, { \"type\": \"string\", \"pattern\": \"^[a-z][a-z0-9-]*$\" }] },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"sig\": { \"$ref\": \"#/$defs/sig65\" }\n },\n \"allOf\": [\n { \"$ref\": \"#/$defs/f2sBase\" },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"form\": { \"const\": \"evm\" } } },\n \"then\": { \"type\": \"object\", \"required\": [\"ticketHash\", \"ticketSigHash\"], \"properties\": { \"ticketHash\": { \"$ref\": \"#/$defs/bytes32\" }, \"ticketSigHash\": { \"$ref\": \"#/$defs/bytes32\" } } }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"form\": { \"const\": \"canton\" } }, \"required\": [\"form\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"deliveryOrderCid\", \"validUntil\"], \"properties\": { \"deliveryOrderCid\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"the contract id of the DeliveryOrder, exactly as ticket.issued sent it\" }, \"validUntil\": { \"$ref\": \"#/$defs/timeS\", \"description\": \"= ticket.issued.validUntil\" } } }\n }\n ]\n },\n \"fill.reported\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"txRef\"],\n \"properties\": {\n \"type\": { \"const\": \"fill.reported\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"txRef\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"EVM tx hash or Canton update id\" }\n }\n },\n \"ticket.expired\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"result\"],\n \"properties\": {\n \"type\": { \"const\": \"ticket.expired\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"result\": { \"$ref\": \"#/$defs/expiredResult\" },\n \"exemptReason\": { \"$ref\": \"#/$defs/exemptReason\" }\n },\n \"if\": { \"type\": \"object\", \"properties\": { \"result\": { \"const\": \"EXEMPT\" } }, \"required\": [\"result\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"exemptReason\"], \"properties\": { \"exemptReason\": true } }\n },\n \"order.settled\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"orderHash\", \"payout\", \"fee\", \"penaltyWithheld\", \"txRef\"],\n \"properties\": {\n \"type\": { \"const\": \"order.settled\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"payout\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"fee\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"penaltyWithheld\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"txRef\": { \"type\": \"string\", \"minLength\": 1 }\n }\n },\n \"penalty.applied\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"violationId\", \"code\", \"step\", \"details\"],\n \"properties\": {\n \"type\": { \"const\": \"penalty.applied\" },\n \"violationId\": { \"type\": \"string\", \"minLength\": 1 },\n \"code\": { \"type\": \"string\", \"minLength\": 1 },\n \"step\": { \"$ref\": \"#/$defs/penaltyStep\" },\n \"details\": { \"type\": \"object\" }\n }\n },\n \"fillProof\": {\n \"type\": \"object\",\n \"description\": \"FillProof as the source router hashes it (FILL_PROOF_TYPES, the twelve variant A fields, protocol §3.3), encoded per protocol §3.1: kind, attempt, setId JSON integers; amountDelivered, filledAt decimal strings; fillerId the on-chain form keccak256(utf8(fillerId))\",\n \"required\": [\"kind\", \"orderHash\", \"destination\", \"fillRef\", \"recipient\", \"outputAsset\", \"amountDelivered\", \"filledAt\", \"fillerId\", \"repayTo\", \"attempt\", \"setId\"],\n \"properties\": {\n \"kind\": { \"$ref\": \"#/$defs/uint8\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"destination\": { \"$ref\": \"#/$defs/bytes32\" },\n \"fillRef\": { \"$ref\": \"#/$defs/bytes32\" },\n \"recipient\": { \"$ref\": \"#/$defs/bytes32\" },\n \"outputAsset\": { \"$ref\": \"#/$defs/bytes32\" },\n \"amountDelivered\": { \"$ref\": \"#/$defs/uintDec256\" },\n \"filledAt\": { \"$ref\": \"#/$defs/timeS\" },\n \"fillerId\": { \"$ref\": \"#/$defs/bytes32\", \"description\": \"keccak256(utf8(fillerId)) of the filler that delivered: this filler's\" },\n \"repayTo\": { \"$ref\": \"#/$defs/repayTo\", \"description\": \"the payee of settle, encoded for the source chain: the repayTo of this filler's ticket\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"setId\": { \"$ref\": \"#/$defs/uint32\" }\n }\n },\n \"attestationEvm\": {\n \"type\": \"object\",\n \"description\": \"One attestor signature for an EVM source: EIP-712 over FillProof in the source-router domain; in the payload's order the signature values are the sigs argument of settle\",\n \"required\": [\"signer\", \"signature\"],\n \"properties\": { \"signer\": { \"$ref\": \"#/$defs/address\" }, \"signature\": { \"$ref\": \"#/$defs/sig65\" } }\n },\n \"attestationCanton\": {\n \"type\": \"object\",\n \"description\": \"One attestor signature for a Canton source: the same digest, carried as SwapIntent_SettleWithProof takes it (SigEntry {pubKey, sig}; strip 0x for Daml). signer is the address Daml derives from pubKey\",\n \"required\": [\"signer\", \"pubKey\", \"signature\"],\n \"properties\": {\n \"signer\": { \"$ref\": \"#/$defs/address\" },\n \"pubKey\": { \"type\": \"string\", \"pattern\": \"^0x3056301006072a8648ce3d020106052b8104000a03420004[0-9a-f]{128}$\", \"description\": \"DER SubjectPublicKeyInfo of the uncompressed secp256k1 key (88 bytes), as KMS GetPublicKey returns it\" },\n \"signature\": { \"type\": \"string\", \"pattern\": \"^0x30([0-9a-f]{2}){7,71}$\", \"description\": \"minimal DER ECDSA signature, low-s, no recovery byte\" }\n }\n },\n \"settle.attestations\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"description\": \"≥ threshold attestor signatures over the filler's FillProof (§10 D-N, S-13). Sent once per (orderHash, attempt); GET /v1/filler/attestations/{orderHash} serves the same payload. signatures: at least threshold entries, strictly ascending by signer (not expressible here; settleAttestationsErrors checks it). sourceChainId picks the entry form: eip155 → attestationEvm, canton → attestationCanton\",\n \"allOf\": [\n { \"$ref\": \"#/$defs/s2fBase\" },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"sourceChainId\": { \"type\": \"string\", \"pattern\": \"^canton:\" } }, \"required\": [\"sourceChainId\"] },\n \"then\": { \"type\": \"object\", \"properties\": { \"signatures\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/attestationCanton\" } } } },\n \"else\": { \"type\": \"object\", \"properties\": { \"signatures\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/attestationEvm\" } } } }\n }\n ],\n \"required\": [\"type\", \"orderHash\", \"attempt\", \"sourceChainId\", \"proof\", \"signatures\", \"setId\", \"threshold\", \"refundAfter\"],\n \"properties\": {\n \"type\": { \"const\": \"settle.attestations\" },\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\", \"description\": \"equals proof.attempt\" },\n \"sourceChainId\": { \"$ref\": \"#/$defs/caip2\", \"description\": \"where settle is submitted\" },\n \"proof\": { \"$ref\": \"#/$defs/fillProof\" },\n \"signatures\": { \"type\": \"array\", \"minItems\": 1 },\n \"setId\": { \"$ref\": \"#/$defs/uint32\", \"description\": \"equals proof.setId; EVM: attestationSetFor(orderHash)\" },\n \"threshold\": { \"type\": \"integer\", \"minimum\": 1, \"maximum\": 4294967295, \"description\": \"k of that set\" },\n \"refundAfter\": { \"$ref\": \"#/$defs/timeS\", \"description\": \"from this time settle reverts; the node gets its settle included before it\" }\n }\n },\n \"cantonOp\": {\n \"description\": \"A Canton operation of the filler's own external party on the Cancore participant (protocol §3.19): the backend prepares and submits it, the node signs it with its party key and never talks to a Ledger API. party.allocate creates the party (topology); registry.accept accepts the FillerRegistryEntryProposal of the fillerId; delivery.fill exercises DeliveryOrder_Fill of a Canton ticket issued to the filler; intent.settle exercises SwapIntent_SettleWithProof of a Canton-source order the filler delivered; holdings.transfer moves the party's own holdings to a party it names (TransferFactory_Transfer); preapproval.create gives the party a transfer preapproval with the registry of an instrument admin, so transfers to it complete at once\",\n \"anyOf\": [\n { \"enum\": [\"party.allocate\", \"registry.accept\", \"delivery.fill\", \"intent.settle\", \"holdings.transfer\", \"preapproval.create\"] },\n { \"type\": \"string\", \"pattern\": \"^[a-z][a-z0-9-]*(\\\\.[a-z][a-z0-9-]*)+$\" }\n ]\n },\n \"operationId\": {\n \"type\": \"string\",\n \"pattern\": \"^[!-~]{1,64}$\",\n \"description\": \"the handle canton.prepared hands out for canton.submit: opaque, 1..64 printable ASCII, valid until expiresAt\"\n },\n \"edPublicKey\": { \"type\": \"string\", \"pattern\": \"^0x[0-9a-f]{64}$\", \"description\": \"the raw 32-byte Ed25519 public key of the filler's Canton party, lowercase hex\" },\n \"edSignature\": { \"type\": \"string\", \"pattern\": \"^0x[0-9a-f]{128}$\", \"description\": \"64-byte Ed25519 signature by the party key over the bytes of a leg's hash, lowercase hex\" },\n \"cantonLegTransaction\": {\n \"type\": \"object\",\n \"description\": \"A prepared Canton transaction to sign. MUST before signing (protocol §3.19): the node recomputes `hash` from `preparedTransaction` with the participant's prepared-transaction hashing of `hashingSchemeVersion`, decodes the transaction and checks it against `summary` for the op of the message — template and choice, acting and receiving parties, instrument, amount; on any difference it does not sign. It signs the 32 hash bytes with its party key\",\n \"required\": [\"legId\", \"kind\", \"hash\", \"preparedTransaction\", \"hashingSchemeVersion\"],\n \"properties\": {\n \"legId\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 128 },\n \"kind\": { \"const\": \"transaction\" },\n \"hash\": { \"type\": \"string\", \"pattern\": \"^0x[0-9a-f]{64}$\", \"description\": \"the 32-byte prepared-transaction hash\" },\n \"preparedTransaction\": {\n \"type\": \"string\",\n \"minLength\": 1,\n \"pattern\": \"^[A-Za-z0-9+/]+={0,2}$\",\n \"description\": \"the prepared transaction (base64 protobuf) the hash is over. Never logged\"\n },\n \"hashingSchemeVersion\": {\n \"type\": \"string\",\n \"pattern\": \"^HASHING_SCHEME_VERSION_V[0-9]+$\",\n \"description\": \"the participant's prepared-transaction hashing scheme the hash was computed with\"\n }\n }\n },\n \"cantonLegTopology\": {\n \"type\": \"object\",\n \"description\": \"The onboarding topology of the filler's party, in `party.allocate` only (a topology leg in any other op is refused by the schema). MUST before signing (protocol §3.19): the node recomputes the multihash over `topologyTransactions` and checks that they create the party of `summary.partyId` with the key of `summary.publicKey` as its only signing key, hosted on the Cancore participant; on any difference it does not sign. It signs the 34 multihash bytes with its party key\",\n \"required\": [\"legId\", \"kind\", \"hash\", \"topologyTransactions\"],\n \"properties\": {\n \"legId\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 128 },\n \"kind\": { \"const\": \"topology\" },\n \"hash\": { \"type\": \"string\", \"pattern\": \"^0x1220[0-9a-f]{64}$\", \"description\": \"the topology multihash: 0x1220 ‖ sha256\" },\n \"topologyTransactions\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": { \"type\": \"string\", \"minLength\": 1, \"pattern\": \"^[A-Za-z0-9+/]+={0,2}$\" },\n \"description\": \"the topology transactions (base64 protobuf) the multihash is over, in order\"\n }\n }\n },\n \"cantonSignature\": {\n \"type\": \"object\",\n \"required\": [\"legId\", \"signature\"],\n \"properties\": { \"legId\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 128 }, \"signature\": { \"$ref\": \"#/$defs/edSignature\" } }\n },\n \"canton.prepare\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"description\": \"Prepare a Canton operation of the sender's own party (§3.19); answered by canton.prepared (re = this id) or error. params select the operation only: the backend picks every contract itself (holdings, delivery order, intent, registry entry, disclosed contracts, attestor signatures). Admission: party.allocate — the fillerId has no party yet, or this key's party; registry.accept — a proposal for the fillerId and its party is live; delivery.fill — an ISSUED Canton ticket of this filler for (orderHash, attempt), before validUntil; intent.settle — a Canton-source order this filler delivered, with attestations held; holdings.transfer — enough unlocked holdings of the asset beyond what the party's open delivery orders need, to a party other than its own; preapproval.create — a registry admin Cancore serves and no live preapproval of the party with it. Each prepare prepares afresh and replaces the filler's open operation of the same op and target\",\n \"allOf\": [\n { \"$ref\": \"#/$defs/f2sBase\" },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"party.allocate\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"params\"],\n \"properties\": { \"params\": { \"type\": \"object\", \"required\": [\"publicKey\"], \"properties\": { \"publicKey\": { \"$ref\": \"#/$defs/edPublicKey\" } } } }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"registry.accept\" } }, \"required\": [\"op\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"params\"], \"properties\": { \"params\": { \"type\": \"object\" } } }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"delivery.fill\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"params\"],\n \"properties\": {\n \"params\": {\n \"type\": \"object\",\n \"required\": [\"orderHash\", \"attempt\"],\n \"properties\": { \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" }, \"attempt\": { \"$ref\": \"#/$defs/uint32\" } }\n }\n }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"intent.settle\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"params\"],\n \"properties\": { \"params\": { \"type\": \"object\", \"required\": [\"orderHash\"], \"properties\": { \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" } } } }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"holdings.transfer\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"params\"],\n \"properties\": {\n \"params\": {\n \"type\": \"object\",\n \"required\": [\"asset\", \"amount\", \"toParty\"],\n \"properties\": {\n \"asset\": { \"$ref\": \"#/$defs/cantonAsset\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"Daml Decimal, > 0\" },\n \"toParty\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 255, \"description\": \"the receiving Canton party; never the filler's own\" }\n }\n }\n }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"preapproval.create\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"params\"],\n \"properties\": {\n \"params\": {\n \"type\": \"object\",\n \"required\": [\"admin\"],\n \"properties\": { \"admin\": { \"type\": \"string\", \"minLength\": 1, \"maxLength\": 255, \"description\": \"the instrument admin whose registry the preapproval is with\" } }\n }\n }\n }\n }\n ],\n \"required\": [\"type\", \"op\", \"params\"],\n \"properties\": { \"type\": { \"const\": \"canton.prepare\" }, \"op\": { \"$ref\": \"#/$defs/cantonOp\" }, \"params\": { \"type\": \"object\" } }\n },\n \"canton.prepared\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"description\": \"A prepared operation. The node MUST verify every leg before it signs it (cantonLegTransaction, cantonLegTopology): what it signs is what Cancore assembled, and summary is only what Cancore says about it — a leg that does not match summary, or summary that does not match what the node expects of the op, is not signed. Topology legs come with party.allocate only; every other op prepares transactions. Then the node signs every leg's hash with its party key and sends canton.submit before expiresAt. An operationId stays valid until its own expiresAt whatever is prepared after it\",\n \"allOf\": [\n { \"$ref\": \"#/$defs/s2fBase\" },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"party.allocate\" } }, \"required\": [\"op\"] },\n \"then\": { \"type\": \"object\", \"properties\": { \"legs\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/cantonLegTopology\" } } } },\n \"else\": { \"type\": \"object\", \"properties\": { \"legs\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/cantonLegTransaction\" } } } }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"party.allocate\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"summary\"],\n \"properties\": {\n \"summary\": {\n \"type\": \"object\",\n \"required\": [\"partyId\", \"publicKey\", \"hosting\"],\n \"properties\": {\n \"partyId\": { \"type\": \"string\", \"minLength\": 1 },\n \"publicKey\": { \"$ref\": \"#/$defs/edPublicKey\" },\n \"hosting\": {\n \"type\": \"object\",\n \"required\": [\"participantUid\", \"permission\", \"threshold\"],\n \"description\": \"how the topology hosts the party: on the Cancore participant alone, with Confirmation permission, threshold 1 — the node checks the decoded topology against it\",\n \"properties\": { \"participantUid\": { \"type\": \"string\", \"minLength\": 1 }, \"permission\": { \"const\": \"CONFIRMATION\" }, \"threshold\": { \"const\": 1 } }\n }\n }\n }\n }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"registry.accept\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"summary\"],\n \"properties\": {\n \"summary\": {\n \"type\": \"object\",\n \"required\": [\"fillerId\", \"party\", \"operator\", \"proposalCid\"],\n \"properties\": {\n \"fillerId\": { \"$ref\": \"#/$defs/fillerId\" },\n \"party\": { \"type\": \"string\", \"minLength\": 1 },\n \"operator\": { \"type\": \"string\", \"minLength\": 1 },\n \"proposalCid\": { \"type\": \"string\", \"minLength\": 1 }\n }\n }\n }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"delivery.fill\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"summary\"],\n \"properties\": {\n \"summary\": {\n \"type\": \"object\",\n \"required\": [\n \"orderHash\",\n \"attempt\",\n \"deliveryOrderCid\",\n \"recipient\",\n \"asset\",\n \"amount\",\n \"repayTo\",\n \"validUntil\",\n \"inputHoldingCids\",\n \"executeBefore\",\n \"transferFactoryCid\"\n ],\n \"properties\": {\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"#/$defs/uint32\" },\n \"deliveryOrderCid\": { \"type\": \"string\", \"minLength\": 1 },\n \"recipient\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"the Canton party the order delivers to\" },\n \"asset\": { \"$ref\": \"#/$defs/cantonAsset\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"DeliveryOrder.amount, Daml Decimal\" },\n \"repayTo\": { \"$ref\": \"#/$defs/repayTo\" },\n \"validUntil\": { \"$ref\": \"#/$defs/timeS\" },\n \"inputHoldingCids\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": { \"type\": \"string\", \"minLength\": 1 },\n \"description\": \"the party's holdings the transfer spends; whatever they hold beyond amount comes back as change\"\n },\n \"executeBefore\": { \"$ref\": \"#/$defs/timeS\", \"description\": \"the transfer's executeBefore: the order's fillDeadline\" },\n \"transferFactoryCid\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"the registry factory the order pins\" }\n }\n }\n }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"intent.settle\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"summary\"],\n \"properties\": {\n \"summary\": {\n \"type\": \"object\",\n \"required\": [\"orderHash\", \"intentCid\", \"asset\", \"amount\", \"executeBefore\", \"payee\", \"giveAmount\", \"fee\"],\n \"properties\": {\n \"orderHash\": { \"$ref\": \"#/$defs/bytes32\" },\n \"intentCid\": { \"type\": \"string\", \"minLength\": 1 },\n \"asset\": { \"$ref\": \"#/$defs/cantonAsset\" },\n \"amount\": {\n \"type\": \"string\",\n \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\",\n \"description\": \"what the settlement pays the payee: giveAmount less fee.amount, Daml Decimal\"\n },\n \"executeBefore\": { \"$ref\": \"#/$defs/timeS\" },\n \"payee\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"the party paid: the filler's own\" },\n \"giveAmount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"the intent's committed give, fee-inclusive\" },\n \"fee\": {\n \"type\": \"object\",\n \"required\": [\"receiver\", \"amount\"],\n \"properties\": {\n \"receiver\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"the operator party\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\" }\n },\n \"description\": \"the settlement's fee leg; amount 0 when there is none\"\n }\n }\n }\n }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"holdings.transfer\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"summary\"],\n \"properties\": {\n \"summary\": {\n \"type\": \"object\",\n \"required\": [\"asset\", \"amount\", \"receiver\", \"inputHoldingCids\", \"executeBefore\"],\n \"properties\": {\n \"asset\": { \"$ref\": \"#/$defs/cantonAsset\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\" },\n \"receiver\": { \"type\": \"string\", \"minLength\": 1 },\n \"inputHoldingCids\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": { \"type\": \"string\", \"minLength\": 1 },\n \"description\": \"the party's holdings the transfer spends; what they hold beyond amount comes back as change\"\n },\n \"executeBefore\": { \"$ref\": \"#/$defs/timeS\" }\n }\n }\n }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"preapproval.create\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"summary\"],\n \"properties\": {\n \"summary\": {\n \"type\": \"object\",\n \"required\": [\"party\", \"admin\", \"instrumentAllowances\", \"requestedAt\", \"executeBefore\"],\n \"properties\": {\n \"party\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"the receiver: the filler's own party\" },\n \"admin\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"the registry's instrument admin, as asked\" },\n \"instrumentAllowances\": { \"type\": \"array\", \"maxItems\": 10, \"items\": { \"type\": \"string\", \"minLength\": 1 }, \"description\": \"instrument ids it is limited to; empty: every instrument of the admin\" },\n \"requestedAt\": { \"oneOf\": [{ \"$ref\": \"#/$defs/timeS\" }, { \"type\": \"null\" }], \"description\": \"unix s: the Daml Time (microseconds) cut to whole seconds; null for a registry whose preapproval has no validity window (DA Utilities)\" },\n \"executeBefore\": { \"oneOf\": [{ \"$ref\": \"#/$defs/timeS\" }, { \"type\": \"null\" }], \"description\": \"unix s, cut likewise: the preapproval expires then; null — it never lapses\" },\n \"operator\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"DA Utilities only: the registry operator the preapproval names (its observer)\" }\n }\n }\n }\n }\n }\n ],\n \"required\": [\"type\", \"re\", \"operationId\", \"op\", \"legs\", \"summary\", \"expiresAt\"],\n \"properties\": {\n \"type\": { \"const\": \"canton.prepared\" },\n \"re\": { \"$ref\": \"#/$defs/messageId\" },\n \"operationId\": { \"$ref\": \"#/$defs/operationId\" },\n \"op\": { \"$ref\": \"#/$defs/cantonOp\" },\n \"legs\": { \"type\": \"array\", \"minItems\": 1 },\n \"summary\": { \"type\": \"object\" },\n \"expiresAt\": { \"$ref\": \"#/$defs/timeMs\" }\n }\n },\n \"canton.submit\": {\n \"x-direction\": \"F2S\",\n \"type\": \"object\",\n \"description\": \"Submit a prepared operation: one party-key signature per leg. Idempotent per operationId: a repeat (after a lost answer or CANTON_UNAVAILABLE) is answered with the same canton.submitted and never executes twice. OPERATION_EXPIRED: prepare again\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"operationId\", \"signatures\"],\n \"properties\": {\n \"type\": { \"const\": \"canton.submit\" },\n \"operationId\": { \"$ref\": \"#/$defs/operationId\" },\n \"signatures\": { \"type\": \"array\", \"minItems\": 1, \"items\": { \"$ref\": \"#/$defs/cantonSignature\" } }\n }\n },\n \"canton.submitted\": {\n \"x-direction\": \"S2F\",\n \"type\": \"object\",\n \"description\": \"The operation committed. updateId is its Canton update (absent for party.allocate, a topology change); result names what it created, by op\",\n \"allOf\": [\n { \"$ref\": \"#/$defs/s2fBase\" },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"party.allocate\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"result\"],\n \"properties\": { \"result\": { \"type\": \"object\", \"required\": [\"partyId\"], \"properties\": { \"partyId\": { \"type\": \"string\", \"minLength\": 1 } } } }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"registry.accept\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"result\"],\n \"properties\": { \"result\": { \"type\": \"object\", \"required\": [\"entryCid\"], \"properties\": { \"entryCid\": { \"type\": \"string\", \"minLength\": 1 } } } }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"delivery.fill\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"result\"],\n \"properties\": { \"result\": { \"type\": \"object\", \"required\": [\"receiptCid\"], \"properties\": { \"receiptCid\": { \"type\": \"string\", \"minLength\": 1 } } } }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"intent.settle\" } }, \"required\": [\"op\"] },\n \"then\": { \"type\": \"object\", \"required\": [\"result\"], \"properties\": { \"result\": { \"type\": \"object\" } } }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"holdings.transfer\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"result\"],\n \"properties\": {\n \"result\": {\n \"type\": \"object\",\n \"required\": [\"outcome\"],\n \"properties\": {\n \"outcome\": {\n \"anyOf\": [{ \"enum\": [\"COMPLETED\", \"PENDING\"] }, { \"$ref\": \"#/$defs/futureEnumValue\" }],\n \"description\": \"COMPLETED: the receiver holds it (a preapproval accepted it); PENDING: a TransferInstruction waits for the receiver to accept\"\n },\n \"transferInstructionCid\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"with PENDING\" }\n }\n }\n }\n }\n },\n {\n \"if\": { \"type\": \"object\", \"properties\": { \"op\": { \"const\": \"preapproval.create\" } }, \"required\": [\"op\"] },\n \"then\": {\n \"type\": \"object\",\n \"required\": [\"result\"],\n \"properties\": { \"result\": { \"type\": \"object\", \"required\": [\"preapprovalCid\"], \"properties\": { \"preapprovalCid\": { \"type\": \"string\", \"minLength\": 1 } } } }\n }\n }\n ],\n \"required\": [\"type\", \"re\", \"operationId\", \"op\", \"result\"],\n \"properties\": {\n \"type\": { \"const\": \"canton.submitted\" },\n \"re\": { \"$ref\": \"#/$defs/messageId\" },\n \"operationId\": { \"$ref\": \"#/$defs/operationId\" },\n \"op\": { \"$ref\": \"#/$defs/cantonOp\" },\n \"updateId\": { \"type\": \"string\", \"minLength\": 1 },\n \"result\": { \"type\": \"object\" }\n }\n },\n \"routeRef\": {\n \"type\": \"object\",\n \"description\": \"A route of the catalogue (GET /v1/intents/routes): CAIP-2 source and destination\",\n \"required\": [\"src\", \"dst\"],\n \"properties\": { \"src\": { \"$ref\": \"#/$defs/caip2\" }, \"dst\": { \"$ref\": \"#/$defs/caip2\" } }\n },\n \"routes.set\": {\n \"x-direction\": \"F2S\",\n \"x-rest-only\": true,\n \"type\": \"object\",\n \"description\": \"The routes the filler serves from now on (protocol §3.20): the body of POST /v1/filler/routes. The full list: a route Cancore approved for the filler and not listed here is switched off, a listed one switched on. Every listed route must be approved for the filler (filler_routes enabled by staff), else the whole request is refused ROUTE_NOT_APPROVED and nothing changes. An empty list switches every route off\",\n \"allOf\": [{ \"$ref\": \"#/$defs/f2sBase\" }],\n \"required\": [\"type\", \"routes\"],\n \"properties\": {\n \"type\": { \"const\": \"routes.set\" },\n \"routes\": { \"type\": \"array\", \"maxItems\": 50, \"uniqueItems\": true, \"items\": { \"$ref\": \"#/$defs/routeRef\" } }\n }\n },\n \"routes.state\": {\n \"x-direction\": \"S2F\",\n \"x-rest-only\": true,\n \"type\": \"object\",\n \"description\": \"Every route Cancore approved for the filler and whether the filler serves it now (active): the 200 body of GET and POST /v1/filler/routes. The filler is asked for quotes on a route only while it is approved and active\",\n \"allOf\": [{ \"$ref\": \"#/$defs/s2fBase\" }],\n \"required\": [\"type\", \"routes\"],\n \"properties\": {\n \"type\": { \"const\": \"routes.state\" },\n \"routes\": {\n \"type\": \"array\",\n \"items\": {\n \"allOf\": [{ \"$ref\": \"#/$defs/routeRef\" }],\n \"type\": \"object\",\n \"required\": [\"active\"],\n \"properties\": { \"active\": { \"type\": \"boolean\" } }\n }\n }\n }\n }\n }\n}\n","{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://cancore.io/schemas/filler-protocol/v1/records.schema.json\",\n \"title\": \"Cancore filler protocol v1 — public records\",\n \"$comment\": \"The draw record (GET /v1/draws/{orderHash}), the epoch record (GET /v1/draws/epochs/{id}) — auction-and-draw §3.3–3.4 — and the gateway identity (GET /v1/gateway). Records are signed by the gateway like an S→F frame (sig over GatewayMessage{keccak256(JCS(record without sig))}) but are public: no fillerId, no sentAt.\",\n \"$defs\": {\n \"drawCandidate\": {\n \"type\": \"object\",\n \"required\": [\"fillerId\", \"weight\"],\n \"properties\": { \"fillerId\": { \"$ref\": \"messages.schema.json#/$defs/fillerId\" }, \"weight\": { \"$ref\": \"messages.schema.json#/$defs/uintDec256\" } }\n },\n \"drawAttempt\": {\n \"type\": \"object\",\n \"required\": [\"attempt\", \"tBase\", \"closedBy\", \"drandRound\", \"drandRandomness\", \"drandSignature\", \"candidates\", \"r\", \"winnerFillerId\", \"fallbackReason\"],\n \"properties\": {\n \"attempt\": { \"$ref\": \"messages.schema.json#/$defs/uint32\" },\n \"tBase\": { \"$ref\": \"messages.schema.json#/$defs/timeS\" },\n \"closedBy\": { \"anyOf\": [{ \"enum\": [\"OFFER_TIMEOUT\", \"OFFER_DECLINE\", \"TICKET_DECLINE\", \"TICKET_EXPIRED\", \"FILLED\", null] }, { \"$ref\": \"messages.schema.json#/$defs/futureEnumValue\" }] },\n \"drandRound\": { \"$ref\": \"messages.schema.json#/$defs/uintDec64\" },\n \"drandRandomness\": { \"$ref\": \"messages.schema.json#/$defs/bytes32\" },\n \"drandSignature\": { \"type\": \"string\", \"pattern\": \"^0x[0-9a-f]{96}$\", \"description\": \"BLS signature of the round, 48 bytes (G1)\" },\n \"candidates\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/drawCandidate\" }, \"description\": \"ascending by the UTF-8 bytes of fillerId (A-22)\" },\n \"r\": { \"$ref\": \"messages.schema.json#/$defs/uintDec256\" },\n \"winnerFillerId\": { \"$ref\": \"messages.schema.json#/$defs/fillerId\" },\n \"fallbackReason\": { \"anyOf\": [{ \"enum\": [\"DRAW_FALLBACK\", null] }, { \"$ref\": \"messages.schema.json#/$defs/futureEnumValue\" }] }\n }\n },\n \"drawRecord\": {\n \"type\": \"object\",\n \"required\": [\"orderHash\", \"source\", \"openRef\", \"t0\", \"epochId\", \"deltaDrand\", \"attempts\", \"sig\"],\n \"properties\": {\n \"orderHash\": { \"$ref\": \"messages.schema.json#/$defs/bytes32\" },\n \"source\": { \"$ref\": \"messages.schema.json#/$defs/caip2\" },\n \"openRef\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"EVM: open tx hash; Canton: Execute update id\" },\n \"t0\": { \"$ref\": \"messages.schema.json#/$defs/timeS\" },\n \"epochId\": { \"$ref\": \"messages.schema.json#/$defs/uintDec64\" },\n \"deltaDrand\": { \"$ref\": \"messages.schema.json#/$defs/uint32\", \"description\": \"seconds\" },\n \"attempts\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/drawAttempt\" } },\n \"sig\": { \"$ref\": \"messages.schema.json#/$defs/sig65\" }\n }\n },\n \"epochLeaf\": {\n \"type\": \"object\",\n \"description\": \"StandardMerkleTree leaf [\\\"string\\\", \\\"uint256\\\", \\\"uint8\\\", \\\"uint16\\\"] = (fillerId, base, tier, reliabilityBps)\",\n \"required\": [\"fillerId\", \"base\", \"tier\", \"reliabilityBps\"],\n \"properties\": {\n \"fillerId\": { \"$ref\": \"messages.schema.json#/$defs/fillerId\" },\n \"base\": { \"$ref\": \"messages.schema.json#/$defs/uintDec256\" },\n \"tier\": { \"$ref\": \"messages.schema.json#/$defs/uint8\" },\n \"reliabilityBps\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 10000 }\n }\n },\n \"stakeStep\": {\n \"type\": \"object\",\n \"required\": [\"tier\", \"minStake\", \"step\"],\n \"properties\": {\n \"tier\": { \"$ref\": \"messages.schema.json#/$defs/uint8\" },\n \"minStake\": { \"$ref\": \"messages.schema.json#/$defs/uintDec256\" },\n \"step\": { \"$ref\": \"messages.schema.json#/$defs/uintDec256\" }\n }\n },\n \"epochRecord\": {\n \"type\": \"object\",\n \"required\": [\"epochId\", \"startsAt\", \"endsAt\", \"weightsRoot\", \"leaves\", \"stakeSteps\", \"rMinBps\", \"snapshotBlocks\", \"sig\"],\n \"properties\": {\n \"epochId\": { \"$ref\": \"messages.schema.json#/$defs/uintDec64\" },\n \"startsAt\": { \"$ref\": \"messages.schema.json#/$defs/timeS\" },\n \"endsAt\": { \"$ref\": \"messages.schema.json#/$defs/timeS\" },\n \"weightsRoot\": { \"$ref\": \"messages.schema.json#/$defs/bytes32\" },\n \"leaves\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/epochLeaf\" } },\n \"stakeSteps\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/stakeStep\" } },\n \"rMinBps\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 10000 },\n \"snapshotBlocks\": {\n \"type\": \"object\",\n \"propertyNames\": { \"$ref\": \"messages.schema.json#/$defs/caip2\" },\n \"additionalProperties\": { \"$ref\": \"messages.schema.json#/$defs/uintDec64\" }\n },\n \"sig\": { \"$ref\": \"messages.schema.json#/$defs/sig65\" }\n }\n },\n \"gatewayInfo\": {\n \"type\": \"object\",\n \"description\": \"GET /v1/gateway: the mirror of @cancore/contracts FILLER_GATEWAYS for this environment. A taker trusts the package, and uses this to notice a rotation\",\n \"required\": [\"env\", \"gateway\", \"ticketSigners\", \"protocolVersion\", \"maxMessageAgeMs\"],\n \"properties\": {\n \"env\": { \"type\": \"string\", \"minLength\": 1 },\n \"gateway\": { \"$ref\": \"messages.schema.json#/$defs/address\" },\n \"ticketSigners\": { \"type\": \"array\", \"items\": { \"$ref\": \"messages.schema.json#/$defs/address\" } },\n \"protocolVersion\": { \"$ref\": \"messages.schema.json#/$defs/protocolVersion\" },\n \"maxMessageAgeMs\": { \"$ref\": \"messages.schema.json#/$defs/durationMs\", \"description\": \"freshness bound of §3.4 in both directions: |receivedAt − sentAt| ≤ maxMessageAgeMs, and a message id is not reused within it\" }\n }\n }\n }\n}\n","{\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"$id\": \"https://cancore.io/schemas/filler-protocol/v1/rest.schema.json\",\n \"title\": \"Cancore filler protocol v1 — REST fallback\",\n \"$comment\": \"protocol §3.6. Bodies are the WebSocket frames: every request body is a filler message with its envelope (id, fillerId, sentAt) and msgSig, verified before processing as on the WebSocket (S-19); every response is a freshly signed S→F message. Login: GET /v1/filler/auth/challenge?fillerId= returns a signed auth.challenge addressed to that fillerId; POST /v1/filler/auth with the auth.response (FillerAuth over it) returns {token, expiresAt}. The challenge route is anonymous and its refusals are UNSIGNED (unsignedErrorBody, no sig, nothing journalled): 400 BAD_REQUEST — fillerId missing or not a fillerId; 404 UNKNOWN_REQUEST — fillerId unknown or not ACTIVE; the anonymous login steps are charged to no fillerId's rate limits (knowing a fillerId cannot lock its filler out); a 429 here comes only from the per-IP limit in front of filler-gateway. POST /v1/filler/auth refuses UNSIGNED too as long as it has checked no signature: 400 BAD_REQUEST — no or a malformed fillerId; 404 UNKNOWN_REQUEST — fillerId unknown or not ACTIVE; 401 UNAUTHENTICATED — the fillerId holds no live challenge (evicted, expired or used: ask for a new one). Its refusals after the signature checks (BAD_SIGNATURE, STALE_MESSAGE, REPLAYED_MESSAGE, UNSUPPORTED_VERSION, NOT_ELIGIBLE, UNAUTHENTICATED) are the signed error. The other /v1/filler/* routes need `Authorization: Bearer <token>`; the token is bound to (fillerId, message key) and stops working when it expires, when the message key is changed, or when the filler is no longer ACTIVE. The same token opens the WebSocket (asyncapi.json: offered as the subprotocol bearer.<token>). A ticket of another filler is 404 UNKNOWN_TICKET. Rate limits are per fillerId and rate class (quote, ticket, service, read for every bearer GET, login, cantonPrepare for canton.prepare of §3.19 — an hourly budget per filler, 60 by default — and canton for canton.submit, so a spent prepare budget never holds back the submit of an operation already prepared), shared by REST and every WebSocket session of it: over the limit a bearer route answers 429 with an UNSIGNED unsignedErrorBody {type: error, code: RATE_LIMITED, message, retryAfterMs} and a Retry-After header (seconds, rounded up), journals nothing one by one, and the request changes nothing; during the cooldown after sustained excess every bearer route answers so. Every 429 is unsigned, on every route; a filler decides by the status and takes retryAfterMs (else Retry-After) as a hint. Every other non-2xx of a bearer route is the signed error. GET /v1/filler/attestations/{orderHash} answers 404 ATTESTATIONS_NOT_READY until the gateway holds ≥ threshold verified signatures for this filler's fill, and 404 UNKNOWN_TICKET when this filler holds no ticket on the order. /v1/filler/canton/* (§3.19) serve only the caller's own party: POST prepare and submit take the canton.prepare and canton.submit messages and answer canton.prepared and canton.submitted (the same frames as on the WebSocket); GET party, holdings, delivery-orders and intents/{orderHash} read the party registered for the fillerId, and answer 409 CANTON_NOT_READY while it has none; intents/{orderHash} answers 404 UNKNOWN_TICKET when no live SwapIntent with that orderHash names the party. /v1/filler/routes (§3.20): GET answers routes.state, every route Cancore approved for the filler and whether the filler serves it; POST takes routes.set, the full list of routes the filler serves from now on, applied at once and audited, and answers the new routes.state; a listed route that is not approved for the filler refuses the whole request 403 ROUTE_NOT_APPROVED (its message names the routes) and changes nothing; rate class service. /v1/draws/* and /v1/gateway are public. Every non-2xx body is the signed `error` frame, with the HTTP status of x-error-status — except a 429 (always unsignedErrorBody) and the unsigned refusals of an endpoint that names an errorBody. x-endpoints: request/query/response/errorBody name a $def here or in messages.schema.json.\",\n \"x-endpoints\": [\n { \"method\": \"GET\", \"path\": \"/v1/filler/auth/challenge\", \"auth\": \"none\", \"query\": \"#/$defs/challengeQuery\", \"response\": \"messages.schema.json#/$defs/auth.challenge\", \"errorBody\": \"#/$defs/unsignedErrorBody\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/auth\", \"auth\": \"none\", \"request\": \"messages.schema.json#/$defs/auth.response\", \"response\": \"#/$defs/authToken\", \"errorBody\": \"#/$defs/unsignedErrorBody\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/tickets\", \"auth\": \"bearer\", \"query\": \"#/$defs/ticketListQuery\", \"response\": \"#/$defs/ticketList\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/tickets/{orderHash}/{attempt}/intent\", \"auth\": \"bearer\", \"request\": \"messages.schema.json#/$defs/ticket.intent\", \"response\": \"messages.schema.json#/$defs/ticket.intent.ack\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/tickets/{orderHash}/{attempt}/receipt\", \"auth\": \"bearer\", \"request\": \"messages.schema.json#/$defs/ticket.receipt\", \"response\": \"#/$defs/empty\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/tickets/{orderHash}/{attempt}/decline\", \"auth\": \"bearer\", \"request\": \"messages.schema.json#/$defs/ticket.decline\", \"response\": \"#/$defs/empty\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/stake-bindings\", \"auth\": \"bearer\", \"request\": \"#/$defs/stakeBindingRequest\", \"response\": \"#/$defs/empty\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/quotes\", \"auth\": \"bearer\", \"query\": \"#/$defs/quoteListQuery\", \"response\": \"#/$defs/quoteList\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/stats\", \"auth\": \"bearer\", \"response\": \"#/$defs/fillerStats\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/penalties\", \"auth\": \"bearer\", \"query\": \"#/$defs/pageQuery\", \"response\": \"#/$defs/penaltyList\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/attestations/{orderHash}\", \"auth\": \"bearer\", \"response\": \"messages.schema.json#/$defs/settle.attestations\" },\n { \"method\": \"GET\", \"path\": \"/v1/draws/{orderHash}\", \"auth\": \"none\", \"response\": \"records.schema.json#/$defs/drawRecord\" },\n { \"method\": \"GET\", \"path\": \"/v1/draws/epochs/{id}\", \"auth\": \"none\", \"response\": \"records.schema.json#/$defs/epochRecord\" },\n { \"method\": \"GET\", \"path\": \"/v1/gateway\", \"auth\": \"none\", \"response\": \"records.schema.json#/$defs/gatewayInfo\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/canton/prepare\", \"auth\": \"bearer\", \"request\": \"messages.schema.json#/$defs/canton.prepare\", \"response\": \"messages.schema.json#/$defs/canton.prepared\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/canton/submit\", \"auth\": \"bearer\", \"request\": \"messages.schema.json#/$defs/canton.submit\", \"response\": \"messages.schema.json#/$defs/canton.submitted\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/canton/party\", \"auth\": \"bearer\", \"response\": \"#/$defs/cantonParty\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/canton/holdings\", \"auth\": \"bearer\", \"query\": \"#/$defs/pageQuery\", \"response\": \"#/$defs/cantonHoldingList\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/canton/delivery-orders\", \"auth\": \"bearer\", \"query\": \"#/$defs/pageQuery\", \"response\": \"#/$defs/cantonDeliveryOrderList\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/canton/intents/{orderHash}\", \"auth\": \"bearer\", \"response\": \"#/$defs/cantonIntent\" },\n { \"method\": \"GET\", \"path\": \"/v1/filler/routes\", \"auth\": \"bearer\", \"response\": \"messages.schema.json#/$defs/routes.state\" },\n { \"method\": \"POST\", \"path\": \"/v1/filler/routes\", \"auth\": \"bearer\", \"request\": \"messages.schema.json#/$defs/routes.set\", \"response\": \"messages.schema.json#/$defs/routes.state\" }\n ],\n \"x-error-status\": {\n \"BAD_REQUEST\": 400, \"UNAUTHENTICATED\": 401, \"UNSUPPORTED_VERSION\": 400, \"UNSUPPORTED_TYPE\": 400, \"BAD_SIGNATURE\": 422,\n \"STALE_MESSAGE\": 400, \"REPLAYED_MESSAGE\": 409, \"TICKET_REFUSED\": 409, \"UNKNOWN_REQUEST\": 404, \"UNKNOWN_TICKET\": 404, \"TICKET_CLOSED\": 409, \"NOT_ELIGIBLE\": 403, \"RATE_LIMITED\": 429, \"INTERNAL\": 500,\n \"ATTESTATIONS_NOT_READY\": 404, \"CANTON_NOT_READY\": 409, \"CANTON_REFUSED\": 422, \"CANTON_UNAVAILABLE\": 503, \"OPERATION_EXPIRED\": 410, \"ROUTE_NOT_APPROVED\": 403\n },\n \"$defs\": {\n \"errorBody\": { \"$ref\": \"messages.schema.json#/$defs/errorS2F\" },\n \"unsignedErrorBody\": {\n \"type\": \"object\",\n \"description\": \"An unsigned refusal: every 429, and the refusals of the login routes decided before any signature check. Not signed, not addressed, nothing journalled; a filler cannot verify it and treats it as a hint only (status, code, retryAfterMs)\",\n \"required\": [\"type\", \"code\", \"message\"],\n \"properties\": {\n \"type\": { \"const\": \"error\" },\n \"code\": { \"$ref\": \"messages.schema.json#/$defs/errorCode\" },\n \"message\": { \"type\": \"string\" },\n \"retryAfterMs\": { \"$ref\": \"messages.schema.json#/$defs/durationMs\", \"type\": \"integer\", \"minimum\": 1, \"description\": \"with RATE_LIMITED (429): ms until the rate class may be used again\" }\n }\n },\n \"challengeQuery\": {\n \"type\": \"object\",\n \"required\": [\"fillerId\"],\n \"properties\": { \"fillerId\": { \"$ref\": \"messages.schema.json#/$defs/fillerId\", \"description\": \"the filler logging in; the challenge is addressed to it and answerable only by it\" } }\n },\n \"empty\": { \"type\": \"object\", \"description\": \"no fields in v1; receivers ignore unknown ones (V-2)\" },\n \"authToken\": {\n \"type\": \"object\",\n \"required\": [\"token\", \"expiresAt\"],\n \"properties\": { \"token\": { \"type\": \"string\", \"minLength\": 1 }, \"expiresAt\": { \"$ref\": \"messages.schema.json#/$defs/timeMs\" } }\n },\n \"pageQuery\": {\n \"type\": \"object\",\n \"properties\": { \"cursor\": { \"type\": \"string\", \"minLength\": 1 }, \"limit\": { \"type\": \"string\", \"pattern\": \"^([1-9][0-9]?|100)$\", \"description\": \"1..100, default 50\" } }\n },\n \"ticketListQuery\": {\n \"allOf\": [{ \"$ref\": \"#/$defs/pageQuery\" }],\n \"type\": \"object\",\n \"properties\": { \"status\": { \"enum\": [\"OFFERED\", \"ISSUED\"], \"description\": \"a request filter: the gateway owns the list, so it is closed\" } }\n },\n \"quoteListQuery\": {\n \"allOf\": [{ \"$ref\": \"#/$defs/pageQuery\" }],\n \"type\": \"object\",\n \"properties\": { \"since\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)$\", \"description\": \"unix ms\" } }\n },\n \"ticketList\": {\n \"type\": \"object\",\n \"required\": [\"items\", \"nextCursor\"],\n \"properties\": {\n \"items\": {\n \"type\": \"array\",\n \"items\": { \"oneOf\": [{ \"$ref\": \"messages.schema.json#/$defs/ticket.offer\" }, { \"$ref\": \"messages.schema.json#/$defs/ticket.issued\" }] }\n },\n \"nextCursor\": { \"type\": [\"string\", \"null\"] }\n }\n },\n \"stakeBindingRequest\": {\n \"type\": \"object\",\n \"description\": \"sig = StakeBinding{partnerId, stakingAddress, chainId, nonce} by the staking address; the body carries the filler envelope and msgSig like every request body\",\n \"allOf\": [{ \"$ref\": \"messages.schema.json#/$defs/f2sEnvelope\" }],\n \"required\": [\"partnerId\", \"stakingAddress\", \"chainId\", \"nonce\", \"sig\"],\n \"properties\": {\n \"partnerId\": { \"$ref\": \"messages.schema.json#/$defs/fillerId\" },\n \"stakingAddress\": { \"$ref\": \"messages.schema.json#/$defs/address\" },\n \"chainId\": { \"$ref\": \"messages.schema.json#/$defs/uintDec256\" },\n \"nonce\": { \"$ref\": \"messages.schema.json#/$defs/uintDec64\" },\n \"sig\": { \"$ref\": \"messages.schema.json#/$defs/sig65\" }\n }\n },\n \"quoteRecord\": {\n \"type\": \"object\",\n \"required\": [\"quote\", \"ack\", \"status\"],\n \"properties\": {\n \"quote\": { \"$ref\": \"messages.schema.json#/$defs/quote\" },\n \"ack\": { \"$ref\": \"messages.schema.json#/$defs/quote.ack\" },\n \"status\": { \"anyOf\": [{ \"enum\": [\"COUNTED\", \"LATE\", \"SHORT_TTL\", \"REPLACED\", \"BAD_SIG\", \"OUTLIER\", \"IN_BAND\", \"OUT_OF_BAND\", \"WON\", \"LOST\"] }, { \"$ref\": \"messages.schema.json#/$defs/futureEnumValue\" }] }\n }\n },\n \"quoteList\": {\n \"type\": \"object\",\n \"required\": [\"items\", \"nextCursor\"],\n \"properties\": { \"items\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/quoteRecord\" } }, \"nextCursor\": { \"type\": [\"string\", \"null\"] } }\n },\n \"fillerStats\": {\n \"type\": \"object\",\n \"required\": [\"won\", \"delivered\", \"noShow\", \"reliability\", \"capacityUsd\", \"inFlightUsd\"],\n \"properties\": {\n \"won\": { \"type\": \"integer\", \"minimum\": 0 },\n \"delivered\": { \"type\": \"integer\", \"minimum\": 0 },\n \"noShow\": { \"type\": \"integer\", \"minimum\": 0 },\n \"reliability\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 10000, \"description\": \"basis points\" },\n \"capacityUsd\": { \"$ref\": \"messages.schema.json#/$defs/intDecUsd\" },\n \"inFlightUsd\": { \"$ref\": \"messages.schema.json#/$defs/intDecUsd\" }\n }\n },\n \"penaltyRecord\": {\n \"type\": \"object\",\n \"required\": [\"violationId\", \"code\", \"step\", \"at\", \"details\"],\n \"properties\": {\n \"violationId\": { \"type\": \"string\", \"minLength\": 1 },\n \"code\": { \"type\": \"string\", \"minLength\": 1 },\n \"step\": { \"$ref\": \"messages.schema.json#/$defs/penaltyStep\" },\n \"orderHash\": { \"$ref\": \"messages.schema.json#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"messages.schema.json#/$defs/uint32\" },\n \"at\": { \"$ref\": \"messages.schema.json#/$defs/timeMs\" },\n \"details\": { \"type\": \"object\" }\n }\n },\n \"penaltyList\": {\n \"type\": \"object\",\n \"required\": [\"items\", \"nextCursor\"],\n \"properties\": { \"items\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/penaltyRecord\" } }, \"nextCursor\": { \"type\": [\"string\", \"null\"] } }\n },\n \"cantonParty\": {\n \"type\": \"object\",\n \"description\": \"The filler's Canton party and its FillerRegistryEntry with the operator. party null: none allocated or registered yet (party.allocate). registry.state NONE: no proposal yet; PROPOSED: accept it (registry.accept); ACTIVE: the Canton routes may be activated; REMOVED: staff removed the entry\",\n \"required\": [\"party\", \"publicKey\", \"registry\"],\n \"properties\": {\n \"party\": { \"type\": [\"string\", \"null\"], \"minLength\": 1 },\n \"publicKey\": { \"anyOf\": [{ \"$ref\": \"messages.schema.json#/$defs/edPublicKey\" }, { \"type\": \"null\" }] },\n \"registry\": {\n \"type\": \"object\",\n \"required\": [\"state\", \"proposalCid\", \"entryCid\"],\n \"properties\": {\n \"state\": { \"anyOf\": [{ \"enum\": [\"NONE\", \"PROPOSED\", \"ACTIVE\", \"REMOVED\"] }, { \"$ref\": \"messages.schema.json#/$defs/futureEnumValue\" }] },\n \"proposalCid\": { \"type\": [\"string\", \"null\"] },\n \"entryCid\": { \"type\": [\"string\", \"null\"] }\n }\n },\n \"preapprovals\": {\n \"type\": \"array\",\n \"description\": \"the party's live transfer preapprovals (preapproval.create), at most one per registry admin; absent from a gateway that predates them\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\"admin\", \"contractId\", \"instrumentAllowances\", \"executeBefore\"],\n \"properties\": {\n \"admin\": { \"type\": \"string\", \"minLength\": 1 },\n \"contractId\": { \"type\": \"string\", \"minLength\": 1 },\n \"instrumentAllowances\": { \"type\": \"array\", \"maxItems\": 10, \"items\": { \"type\": \"string\", \"minLength\": 1 } },\n \"executeBefore\": {\n \"oneOf\": [{ \"$ref\": \"messages.schema.json#/$defs/timeS\" }, { \"type\": \"null\" }],\n \"description\": \"unix s: the Daml Time (microseconds) cut to whole seconds; the preapproval expires then. null: the registry's preapproval has no validity window (DA Utilities) and never lapses\"\n }\n }\n }\n }\n }\n },\n \"cantonHolding\": {\n \"type\": \"object\",\n \"required\": [\"contractId\", \"asset\", \"amount\", \"locked\"],\n \"properties\": {\n \"contractId\": { \"type\": \"string\", \"minLength\": 1 },\n \"asset\": { \"$ref\": \"messages.schema.json#/$defs/cantonAsset\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"Daml Decimal\" },\n \"locked\": { \"type\": \"boolean\", \"description\": \"held by a lock (an allocation or a pending transfer); not spendable by delivery.fill\" }\n }\n },\n \"cantonHoldingList\": {\n \"type\": \"object\",\n \"description\": \"Holdings of the party (CNRX and Canton Coin among them), oldest first\",\n \"required\": [\"items\", \"nextCursor\"],\n \"properties\": { \"items\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/cantonHolding\" } }, \"nextCursor\": { \"type\": [\"string\", \"null\"] } }\n },\n \"cantonDeliveryOrder\": {\n \"type\": \"object\",\n \"required\": [\"deliveryOrderCid\", \"orderHash\", \"attempt\", \"asset\", \"amount\", \"recipient\", \"repayTo\", \"validUntil\"],\n \"properties\": {\n \"deliveryOrderCid\": { \"type\": \"string\", \"minLength\": 1 },\n \"orderHash\": { \"$ref\": \"messages.schema.json#/$defs/bytes32\" },\n \"attempt\": { \"$ref\": \"messages.schema.json#/$defs/uint32\" },\n \"asset\": { \"$ref\": \"messages.schema.json#/$defs/cantonAsset\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"Daml Decimal\" },\n \"recipient\": { \"type\": \"string\", \"minLength\": 1 },\n \"repayTo\": { \"$ref\": \"messages.schema.json#/$defs/repayTo\" },\n \"validUntil\": { \"$ref\": \"messages.schema.json#/$defs/timeS\" }\n }\n },\n \"cantonDeliveryOrderList\": {\n \"type\": \"object\",\n \"description\": \"The live DeliveryOrders naming the party as filler, oldest first\",\n \"required\": [\"items\", \"nextCursor\"],\n \"properties\": { \"items\": { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/cantonDeliveryOrder\" } }, \"nextCursor\": { \"type\": [\"string\", \"null\"] } }\n },\n \"cantonIntent\": {\n \"type\": \"object\",\n \"description\": \"A live SwapIntent of a Canton source that names the caller's party as its filler, as that party sees it (an observer), with its committed allocation as the operator reads it (an executor). What the node checks before ticket.receipt (fillers.md V-C1…V-C6); the node recomputes orderHash from these fields itself. 404 UNKNOWN_TICKET when no live SwapIntent with this orderHash names the party; 409 CANTON_NOT_READY when the fillerId has no party\",\n \"required\": [\"intentCid\", \"templateId\", \"orderHash\", \"owner\", \"operator\", \"filler\", \"fillerId\", \"requestId\", \"asset\", \"amount\", \"destination\", \"minReceived\", \"feeRate\", \"fillDeadline\", \"refundAfter\", \"orderCreatedAt\", \"allocationCid\", \"allocation\"],\n \"properties\": {\n \"intentCid\": { \"type\": \"string\", \"minLength\": 1 },\n \"templateId\": { \"type\": \"string\", \"pattern\": \"^[0-9a-f]{64}:[A-Za-z0-9_.]+:[A-Za-z0-9_]+$\", \"description\": \"<package id>:Intent.SwapIntent:SwapIntent\" },\n \"orderHash\": { \"$ref\": \"messages.schema.json#/$defs/bytes32\" },\n \"owner\": { \"type\": \"string\", \"minLength\": 1 },\n \"operator\": { \"type\": \"string\", \"minLength\": 1 },\n \"filler\": { \"type\": \"string\", \"minLength\": 1 },\n \"fillerId\": { \"type\": \"string\", \"minLength\": 1 },\n \"requestId\": { \"type\": \"string\", \"minLength\": 1 },\n \"asset\": { \"$ref\": \"messages.schema.json#/$defs/cantonAsset\", \"description\": \"SwapIntent.instrumentId\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"Daml Decimal: the committed give, fee-inclusive\" },\n \"destination\": {\n \"type\": \"object\",\n \"description\": \"an EVM destination (Destination.Evm); an intent to any other destination is not served\",\n \"required\": [\"chainId\", \"token\", \"recipient\"],\n \"properties\": {\n \"chainId\": { \"$ref\": \"messages.schema.json#/$defs/uintDec64\" },\n \"token\": { \"$ref\": \"messages.schema.json#/$defs/address\" },\n \"recipient\": { \"$ref\": \"messages.schema.json#/$defs/address\" }\n }\n },\n \"minReceived\": {\n \"type\": \"object\",\n \"required\": [\"units\", \"decimals\"],\n \"properties\": { \"units\": { \"$ref\": \"messages.schema.json#/$defs/uintDec256\" }, \"decimals\": { \"type\": \"integer\", \"minimum\": 0, \"maximum\": 255 } }\n },\n \"feeRate\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"Daml Decimal\" },\n \"fillDeadline\": { \"$ref\": \"messages.schema.json#/$defs/timeS\" },\n \"refundAfter\": { \"$ref\": \"messages.schema.json#/$defs/timeS\" },\n \"orderCreatedAt\": { \"$ref\": \"messages.schema.json#/$defs/timeS\", \"description\": \"the owner's signing time: the order's createdAt\" },\n \"allocationCid\": { \"type\": \"string\", \"minLength\": 1, \"description\": \"SwapIntent.allocationCid\" },\n \"allocation\": {\n \"anyOf\": [{ \"$ref\": \"#/$defs/cantonAllocation\" }, { \"type\": \"null\" }],\n \"description\": \"the contract allocationCid names, by its AllocationV2 view; null when it is not live\"\n }\n }\n },\n \"cantonAllocation\": {\n \"type\": \"object\",\n \"required\": [\"contractId\", \"templateId\", \"admin\", \"authorizer\", \"committed\", \"settlementId\", \"executors\", \"settlementDeadline\", \"legs\"],\n \"properties\": {\n \"contractId\": { \"type\": \"string\", \"minLength\": 1 },\n \"templateId\": { \"type\": \"string\", \"pattern\": \"^[0-9a-f]{64}:[A-Za-z0-9_.]+:[A-Za-z0-9_]+$\" },\n \"admin\": { \"type\": \"string\", \"minLength\": 1 },\n \"authorizer\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"description\": \"the owner of the authorizer account; null for an account without one\" },\n \"committed\": { \"type\": \"boolean\" },\n \"settlementId\": { \"type\": \"string\" },\n \"executors\": { \"type\": \"array\", \"items\": { \"type\": \"string\", \"minLength\": 1 } },\n \"settlementDeadline\": { \"anyOf\": [{ \"$ref\": \"messages.schema.json#/$defs/timeS\" }, { \"type\": \"null\" }] },\n \"legs\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"required\": [\"legId\", \"side\", \"otherside\", \"amount\", \"instrumentId\"],\n \"properties\": {\n \"legId\": { \"type\": \"string\" },\n \"side\": { \"anyOf\": [{ \"enum\": [\"SENDER\", \"RECEIVER\"] }, { \"$ref\": \"messages.schema.json#/$defs/futureEnumValue\" }], \"description\": \"a side the node does not know is refused by it\" },\n \"otherside\": { \"type\": [\"string\", \"null\"], \"minLength\": 1, \"description\": \"the owner of the other side's account\" },\n \"amount\": { \"type\": \"string\", \"pattern\": \"^(0|[1-9][0-9]*)(\\\\.[0-9]{1,10})?$\", \"description\": \"Daml Decimal\" },\n \"instrumentId\": { \"type\": \"string\", \"minLength\": 1 }\n }\n }\n }\n }\n }\n }\n}\n","/**\n * The JSON Schemas (draft 2020-12) and the AsyncAPI 3.0 document of filler\n * protocol v1, bundled into the package; the same files ship under\n * `@cancore/contracts/spec/protocol/*` for tools that read JSON. Every export\n * is typed by hand so the declaration files do not inline the JSON.\n *\n * Validating with ajv: `new Ajv2020()`, `ajv.addVocabulary([...SCHEMA_VOCABULARY])`,\n * `addSchema` the three schemas, then `ajv.validate(messageSchemaRef(frame.type, 'S2F'), frame)`\n * (a taker; the gateway passes 'F2S').\n */\nimport asyncapi from '../../spec/protocol/asyncapi.json';\nimport messages from '../../spec/protocol/messages.schema.json';\nimport records from '../../spec/protocol/records.schema.json';\nimport rest from '../../spec/protocol/rest.schema.json';\n\nexport type JsonSchema = Readonly<Record<string, unknown>>;\nexport type MessageDirection = 'S2F' | 'F2S' | 'both';\n\nexport interface RestEndpoint {\n method: 'GET' | 'POST';\n path: string;\n auth: 'none' | 'bearer';\n /** A `$ref` into rest.schema.json (`#/…`) or a sibling schema (`messages.schema.json#/…`). */\n request?: string;\n query?: string;\n response: string;\n /** An unsigned refusal body (`unsignedErrorBody`) this endpoint may answer instead of the signed `error` (the login routes). Every 429 is one, on every route. */\n errorBody?: string;\n}\n\nexport const PROTOCOL_SCHEMAS: { readonly messages: JsonSchema; readonly rest: JsonSchema; readonly records: JsonSchema } = { messages, rest, records };\n\nexport const ASYNCAPI: JsonSchema = asyncapi;\n\n/** The annotation keywords the schemas use; a strict validator must be told they exist. */\nexport const SCHEMA_VOCABULARY: readonly string[] = ['x-direction', 'x-rest-only', 'x-endpoints', 'x-error-status'];\n\n/** Frame type → who sends it: S2F gateway to taker, F2S taker to gateway, both. */\nexport const MESSAGE_DIRECTIONS: Readonly<Record<string, MessageDirection>> = Object.fromEntries(\n Object.entries(messages.$defs as Record<string, { 'x-direction'?: MessageDirection }>)\n .filter(([, def]) => def['x-direction'])\n .map(([type, def]) => [type, def['x-direction']!]),\n);\n\n/**\n * Frame types that travel only as REST bodies — the login, `auth.challenge` and `auth.response` —\n * never on the WebSocket, which is authenticated by the bearer token offered on the upgrade.\n */\nexport const REST_ONLY_TYPES: readonly string[] = Object.entries(messages.$defs as Record<string, { 'x-rest-only'?: boolean }>)\n .filter(([, def]) => def['x-rest-only'] === true)\n .map(([type]) => type);\n\nexport const REST_ENDPOINTS: readonly RestEndpoint[] = rest['x-endpoints'] as RestEndpoint[];\n\n/**\n * The absolute `$ref` of a frame type's schema (or any other `$def` of messages.schema.json).\n * `direction` picks the copy of a type that goes both ways: `ping`/`pong` from the gateway are\n * signed (`pingS2F`), from a taker they are not (`pingF2S`); without it, either copy passes.\n */\nexport function messageSchemaRef(type: string, direction?: 'S2F' | 'F2S'): string {\n const def = direction && MESSAGE_DIRECTIONS[type] === 'both' ? `${type}${direction}` : type;\n return `${messages.$id}#/$defs/${def}`;\n}\n","/**\n * filler-gateway → filler `settle.attestations` and its REST twin\n * `GET /v1/filler/attestations/{orderHash}` (protocol §3.5, §3.6, §10 D-N):\n * ≥ k attestor signatures over the filler's `FillProof`, which the filler node\n * submits itself — `settle` on an EVM source, `SwapIntent_SettleWithProof` on\n * a Canton source. Both channels carry the same payload; the SDK takes the\n * first and deduplicates by `(orderHash, attempt)`.\n *\n * No secp256k1 here: `settleAttestationsErrors` checks what the schema cannot\n * express, and recovering each signer and checking it against\n * `attestationSetFor(orderHash)` stays with the consumer (T-7).\n */\nimport { utf8ToBytes } from '@noble/hashes/utils';\nimport { keccak, toHex } from './bytes';\nimport { jcs } from './hash';\nimport type { DecString, S2FBase } from './messages';\nimport type { Hex } from './typedData';\n\n/**\n * `FillProof` on the wire (§3.1), field for field the struct the source router\n * hashes (`FILL_PROOF_TYPES`, the twelve variant A fields of protocol §3.3).\n */\nexport interface FillProofJson {\n kind: number;\n orderHash: Hex;\n destination: Hex;\n fillRef: Hex;\n recipient: Hex;\n outputAsset: Hex;\n amountDelivered: DecString;\n filledAt: DecString;\n /** `fillerIdHash(fillerId)` of the filler that delivered. */\n fillerId: Hex;\n /** The payee of `settle`, encoded for the source chain: the `repayTo` of the filler's ticket. */\n repayTo: Hex;\n attempt: number;\n setId: number;\n}\n\n/** EVM source: 65-byte `r ‖ s ‖ v`; in payload order the `signature` values are the `sigs` of `settle`. */\nexport interface AttestationEvm {\n signer: Hex;\n signature: Hex;\n}\n\n/**\n * Canton source: a `SigEntry` of `SwapIntent_SettleWithProof` with `0x`\n * (strip it for Daml) — the 88-byte DER SubjectPublicKeyInfo of the signer's\n * uncompressed key and a minimal DER signature — plus the address Daml derives\n * from the key.\n */\nexport interface AttestationCanton {\n signer: Hex;\n pubKey: Hex;\n signature: Hex;\n}\n\nexport interface SettleAttestations extends S2FBase {\n type: 'settle.attestations';\n fillerId: string;\n orderHash: Hex;\n /** Equals `proof.attempt`. */\n attempt: number;\n /** CAIP-2 of the chain `settle` is submitted on: `eip155:<id>` or `canton:<network>`. */\n sourceChainId: string;\n proof: FillProofJson;\n /** At least `threshold`, strictly ascending by `signer`. */\n signatures: AttestationEvm[] | AttestationCanton[];\n /** Equals `proof.setId`; EVM: `attestationSetFor(orderHash)`. */\n setId: number;\n threshold: number;\n /** Unix seconds: `settle` must be included before it. */\n refundAfter: DecString;\n}\n\n/** What `settle.attestations` carries apart from its envelope: identical on WebSocket and REST. */\nexport type SettleAttestationsPayload = Omit<SettleAttestations, 'type' | 'id' | 'fillerId' | 'sentAt' | 'sig' | 're'>;\n\nconst ENVELOPE = new Set(['type', 'id', 'fillerId', 'sentAt', 'sig', 're']);\n\n/** The payload of a `settle.attestations` frame or REST body: everything but `type`, `id`, `fillerId`, `sentAt`, `sig`, `re`. */\nexport function settleAttestationsPayload(frame: object): SettleAttestationsPayload {\n return Object.fromEntries(Object.entries(frame).filter(([k]) => !ENVELOPE.has(k))) as unknown as SettleAttestationsPayload;\n}\n\n/**\n * `keccak256(utf8(JCS(payload)))`: equal for the pushed frame and the pulled\n * body of the same delivery, whatever their `id`, `sentAt` and `sig`.\n */\nexport function settleAttestationsPayloadHash(frame: object): Hex {\n return toHex(keccak(utf8ToBytes(jcs(settleAttestationsPayload(frame)))));\n}\n\n/** Whether `settle` for this payload goes to Daml (`SwapIntent_SettleWithProof`) rather than an EVM router. */\nexport const isCantonSource = (sourceChainId: string): boolean => sourceChainId.startsWith('canton:');\n\n/**\n * The rules of a schema-valid `settle.attestations` that JSON Schema cannot\n * state: `attempt`, `setId` and `orderHash` equal the proof's, at least\n * `threshold` signatures, signers strictly ascending (no duplicates).\n * Returns one message per broken rule, empty when none is.\n */\nexport function settleAttestationsErrors(payload: SettleAttestationsPayload): string[] {\n const errors: string[] = [];\n if (payload.attempt !== payload.proof.attempt) errors.push(`attempt ${payload.attempt} differs from proof.attempt ${payload.proof.attempt}`);\n if (payload.setId !== payload.proof.setId) errors.push(`setId ${payload.setId} differs from proof.setId ${payload.proof.setId}`);\n if (payload.orderHash.toLowerCase() !== payload.proof.orderHash.toLowerCase()) errors.push('orderHash differs from proof.orderHash');\n if (payload.signatures.length < payload.threshold) errors.push(`${payload.signatures.length} signatures, fewer than threshold ${payload.threshold}`);\n const signers = payload.signatures.map((s) => s.signer.toLowerCase());\n for (let i = 1; i < signers.length; i++) {\n if (signers[i]! <= signers[i - 1]!) {\n errors.push(`signers not strictly ascending at index ${i}`);\n break;\n }\n }\n return errors;\n}\n\n/** EVM source: the `sigs` argument of `CancoreRouter.settle(order, proof, sigs)`, in payload order. */\nexport function settleSigs(payload: SettleAttestationsPayload): Hex[] {\n if (isCantonSource(payload.sourceChainId)) throw new TypeError(`${payload.sourceChainId} is a Canton source: use cantonSigEntries`);\n return (payload.signatures as AttestationEvm[]).map((s) => s.signature);\n}\n\n/** Canton source: the `bundle : [SigEntry]` of `SwapIntent_SettleWithProof` — lowercase hex without `0x`, in payload order. */\nexport function cantonSigEntries(payload: SettleAttestationsPayload): { pubKey: string; sig: string }[] {\n if (!isCantonSource(payload.sourceChainId)) throw new TypeError(`${payload.sourceChainId} is not a Canton source: use settleSigs`);\n return (payload.signatures as AttestationCanton[]).map((s) => ({ pubKey: s.pubKey.slice(2).toLowerCase(), sig: s.signature.slice(2).toLowerCase() }));\n}\n","// Generated by scripts/sync.mjs from evm-contracts/version.json and abi/bytecode-hashes.json.\n\n/** The evm-contracts release these ABIs were taken from, and the commit of the checkout they were read at. */\nexport const CONTRACTS_RELEASE = {\n \"version\": \"1.4.0-dev\",\n \"releaseChannel\": \"dev\",\n \"updatedAt\": \"2026-07-24T19:55:00Z\",\n \"commit\": \"2f681b9bb74db55c0fe9fec31282bca54b997985\"\n} as const;\n\n/**\n * Per contract, the build of the release, as evm-contracts\n * scripts/tools/check-bytecode-match.mjs records it. `creationHexSha256` and\n * `runtimeHexSha256` are sha256 of the UTF-8 text of the artifact's 0x-prefixed hex of the\n * creation and runtime bytecode (not keccak256, not of the bytes); `creationHexLength` and\n * `runtimeHexLength` are the length of that text including the 0x. It pins the build a\n * release was made from. It is not a hash of `eth_getCode` — a contract with immutables\n * (CancoreRouter, FeeVault) never matches one — so checking a live deployment against it\n * needs a rebuild, not a lookup.\n */\nexport const BUILD_HASHES = {\n \"HTLC\": {\n \"creationHexSha256\": \"93a991d3a6451f7c3f02dfb70b365a48d29bebccc7f16d8dbe3d56d3dfee0af1\",\n \"runtimeHexSha256\": \"40ab52456c3b5a04365fc1fad837eb79bbe4b85c8dbd990f549468ae48f97e3a\",\n \"creationHexLength\": 14976,\n \"runtimeHexLength\": 14686\n },\n \"FeeVault\": {\n \"creationHexSha256\": \"1c97d27c8d3e584f879bb57549d75ef10394a56a298eaf4a772516b9316e2248\",\n \"runtimeHexSha256\": \"0631177a64cde0829c2cec8426c08a507564f7d8b084e0237d724ed63faea0e9\",\n \"creationHexLength\": 13176,\n \"runtimeHexLength\": 10968\n },\n \"MultiBalanceChecker\": {\n \"creationHexSha256\": \"c0a0326694f2a1594e332ba06120692cc98bc06c57d6d8981cb3768e01fad423\",\n \"runtimeHexSha256\": \"93a1f0aa251715cc6a1b6a472f10762463b5c24668886630cbc6da5632e5739b\",\n \"creationHexLength\": 2456,\n \"runtimeHexLength\": 2394\n },\n \"CancoreRouter\": {\n \"creationHexSha256\": \"361c33f0b5c50625ea1fab280886f9df5f96e6353d8d0d7e9fbce11d64cde5f8\",\n \"runtimeHexSha256\": \"d3374648eaf5bdd0ddfc3ef6a67cd41ffea64b0551b24baded93cf2cb0aca1e0\",\n \"creationHexLength\": 49814,\n \"runtimeHexLength\": 44242\n },\n \"CNRXStaking\": {\n \"creationHexSha256\": \"dfda056ee22b593e2f2e1fc4e679fbb9dc34b04964f389b46914402c422b40fb\",\n \"runtimeHexSha256\": \"d11534242f166e52f4ad063b5b6b59146e31634d3932f7ad63db05d83a1485f6\",\n \"creationHexLength\": 7412,\n \"runtimeHexLength\": 6240\n },\n \"PointsClaim\": {\n \"creationHexSha256\": \"0f29890b609f7e15ef4dbcda17a7f2cd7482d016a0057a5f6c4270d7780ff38d\",\n \"runtimeHexSha256\": \"f2b10c4ec8458c0d6ab0f465481e645524f618f7a3327822e8ae5d3fd42fa46c\",\n \"creationHexLength\": 14300,\n \"runtimeHexLength\": 11504\n },\n \"BurnMintTokenPool\": {\n \"creationHexSha256\": \"b5b19721149d9dd63e0650d0a1f95ac82affa4b9c650fdffd375db6ea361e416\",\n \"runtimeHexSha256\": \"c9aaa6a40ef4f0caadeb66f0a9adc68b1191949e9e0bdb420f331132bf651c3a\",\n \"creationHexLength\": 41756,\n \"runtimeHexLength\": 39936\n },\n \"CNRX\": {\n \"creationHexSha256\": \"61b4e114722e99f93aac4bd4ef3cfb7973dd050b66e6ffb326efad29d4cc8c95\",\n \"runtimeHexSha256\": \"2b23774e41fb25f820227a50de4f48d7ad79b0bd131c1956aab07c100e0c3948\",\n \"creationHexLength\": 21266,\n \"runtimeHexLength\": 17374\n }\n} as const;\n\n/**\n * @deprecated Use `BUILD_HASHES`: the same values under names that say what they are\n * (bytecodeHash → creationHexSha256, deployedBytecodeHash → runtimeHexSha256,\n * bytecodeLength → creationHexLength, deployedBytecodeLength → runtimeHexLength).\n * Kept for one release candidate; removed before 0.2.0.\n */\nexport const BYTECODE_HASHES = {\n \"HTLC\": {\n \"bytecodeHash\": \"93a991d3a6451f7c3f02dfb70b365a48d29bebccc7f16d8dbe3d56d3dfee0af1\",\n \"deployedBytecodeHash\": \"40ab52456c3b5a04365fc1fad837eb79bbe4b85c8dbd990f549468ae48f97e3a\",\n \"bytecodeLength\": 14976,\n \"deployedBytecodeLength\": 14686\n },\n \"FeeVault\": {\n \"bytecodeHash\": \"1c97d27c8d3e584f879bb57549d75ef10394a56a298eaf4a772516b9316e2248\",\n \"deployedBytecodeHash\": \"0631177a64cde0829c2cec8426c08a507564f7d8b084e0237d724ed63faea0e9\",\n \"bytecodeLength\": 13176,\n \"deployedBytecodeLength\": 10968\n },\n \"MultiBalanceChecker\": {\n \"bytecodeHash\": \"c0a0326694f2a1594e332ba06120692cc98bc06c57d6d8981cb3768e01fad423\",\n \"deployedBytecodeHash\": \"93a1f0aa251715cc6a1b6a472f10762463b5c24668886630cbc6da5632e5739b\",\n \"bytecodeLength\": 2456,\n \"deployedBytecodeLength\": 2394\n },\n \"CancoreRouter\": {\n \"bytecodeHash\": \"361c33f0b5c50625ea1fab280886f9df5f96e6353d8d0d7e9fbce11d64cde5f8\",\n \"deployedBytecodeHash\": \"d3374648eaf5bdd0ddfc3ef6a67cd41ffea64b0551b24baded93cf2cb0aca1e0\",\n \"bytecodeLength\": 49814,\n \"deployedBytecodeLength\": 44242\n },\n \"CNRXStaking\": {\n \"bytecodeHash\": \"dfda056ee22b593e2f2e1fc4e679fbb9dc34b04964f389b46914402c422b40fb\",\n \"deployedBytecodeHash\": \"d11534242f166e52f4ad063b5b6b59146e31634d3932f7ad63db05d83a1485f6\",\n \"bytecodeLength\": 7412,\n \"deployedBytecodeLength\": 6240\n },\n \"PointsClaim\": {\n \"bytecodeHash\": \"0f29890b609f7e15ef4dbcda17a7f2cd7482d016a0057a5f6c4270d7780ff38d\",\n \"deployedBytecodeHash\": \"f2b10c4ec8458c0d6ab0f465481e645524f618f7a3327822e8ae5d3fd42fa46c\",\n \"bytecodeLength\": 14300,\n \"deployedBytecodeLength\": 11504\n },\n \"BurnMintTokenPool\": {\n \"bytecodeHash\": \"b5b19721149d9dd63e0650d0a1f95ac82affa4b9c650fdffd375db6ea361e416\",\n \"deployedBytecodeHash\": \"c9aaa6a40ef4f0caadeb66f0a9adc68b1191949e9e0bdb420f331132bf651c3a\",\n \"bytecodeLength\": 41756,\n \"deployedBytecodeLength\": 39936\n },\n \"CNRX\": {\n \"bytecodeHash\": \"61b4e114722e99f93aac4bd4ef3cfb7973dd050b66e6ffb326efad29d4cc8c95\",\n \"deployedBytecodeHash\": \"2b23774e41fb25f820227a50de4f48d7ad79b0bd131c1956aab07c100e0c3948\",\n \"bytecodeLength\": 21266,\n \"deployedBytecodeLength\": 17374\n }\n} as const;\n","/**\n * `@cancore/contracts` — the Cancore EVM contracts as data.\n *\n * ABIs (`./abi`), the network registry (`./networks`), the EIP-712 voucher and\n * the release identity; and the filler protocol v1 (`./protocol`): its EIP-712\n * types, hashing helpers and wire shapes. What an integrator\n * needs to talk to the contracts without copying files out of our repositories,\n * and what our own frontend, backend and MCP server can stop carrying four\n * separate copies of.\n */\nexport * from './abi';\nexport * from './networks';\nexport * from './deployments';\nexport * from './eip712';\nexport * from './constants';\nexport * from './order';\nexport * from './fee';\nexport * from './cantonDestination';\nexport * from './protocol';\nexport { BUILD_HASHES, BYTECODE_HASHES, CONTRACTS_RELEASE } from './generated/meta';\n\n/** Decode a revert's 4-byte selector into the custom error it names, if it is one of ours. */\nexport function describeRevert(selectorOrData: string, tables: ReadonlyArray<Readonly<Record<string, string>>>): string | undefined {\n const selector = selectorOrData.slice(0, 10).toLowerCase();\n for (const table of tables) {\n const hit = table[selector];\n if (hit) return hit;\n }\n return undefined;\n}\n"]}