/** * Owner Authorization Interface * * Parameters required to authorize owner-only LIT Action operations */ interface Authorization { timestamp: number; chainId: number; signature: string; } interface OwnerAuthorization extends Authorization { positionId: string; } interface ActionAuthorization extends Authorization { action: string; } interface AmountAuthorization extends Authorization { amount: string | bigint; } interface ToAuthorization extends Authorization { destinationAddress: string; } interface TermAuthorization extends Authorization { newTerm: number; } /** * Authorization parameters for owner-only actions * * Used to verify that a caller is authorized to perform operations on a position. * * Security model: * - signature: EIP-191 signature from position owner proving authorization * - positionId: Identifies which position the operation affects * - timestamp: Prevents replay attacks with old signatures * - chainId: Prevents cross-chain replay attacks * - amount: Amount of UCD to mint (part of signed message) * - action: Type of operation (e.g., "mint-ucd") (part of signed message) * - mode: Execution environment mode * * The LIT Action recovers the signer address from the signature and validates * it matches the position owner queried from the PositionManager contract. */ export interface OwnerAmountActionAuthorization extends OwnerAuthorization, AmountAuthorization, ActionAuthorization { } /** * Authorization parameters for withdrawal operations * * Extends OwnerAmountActionAuthorization with destination address. * * Security model: * - All base authorization checks (signature, owner, timestamp, chainId) * - destinationAddress: Bitcoin address where funds will be withdrawn (signed) * - amount: Amount in satoshis to withdraw (signed) * - action: "withdraw-btc" (signed) * * The destination address is part of the signed authorization to prevent * unauthorized redirection of withdrawal funds. */ export interface OwnerAmountToActionAuthorization extends OwnerAuthorization, AmountAuthorization, ToAuthorization, ActionAuthorization { } /** * Authorization parameters for position extension operations * * Extends OwnerAuthorization with term information. * * Security model: * - All base authorization checks (signature, owner, timestamp, chainId) * - newTerm: Extension term in months (signed) * - action: "extend-position" (signed) * * The extension term is part of the signed authorization to prevent * unauthorized modification of extension terms. */ export interface OwnerTermActionAuthorization extends OwnerAuthorization, TermAuthorization, ActionAuthorization { } export {}; //# sourceMappingURL=owner-authorization.d.ts.map