import { Message } from "@bufbuild/protobuf"; import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; declare namespace guard_signer_pb_d_exports { export { BatchSignProtectedActionItem, BatchSignProtectedActionItemSchema, BatchSignProtectedActionsRequest, BatchSignProtectedActionsRequestSchema, BatchSignProtectedActionsResponse, BatchSignProtectedActionsResponseSchema, CreateGuardSignerWalletRequest, CreateGuardSignerWalletRequestSchema, CreateGuardSignerWalletResponse, CreateGuardSignerWalletResponseSchema, ExportGuardSignerWalletRequest, ExportGuardSignerWalletRequestSchema, ExportGuardSignerWalletResponse, ExportGuardSignerWalletResponseSchema, ExternalWhitelistArgs, ExternalWhitelistArgsSchema, GetGuardSignerStatusRequest, GetGuardSignerStatusRequestSchema, GetGuardSignerStatusResponse, GetGuardSignerStatusResponseSchema, GuardApproval, GuardApprovalSchema, GuardSignerService, GuardSignerStatus, GuardSignerStatusSchema, InternalWhitelistArgs, InternalWhitelistArgsSchema, ProtectedAction, ProtectedActionArgs, ProtectedActionArgsSchema, ProtectedActionSchema, RotateGuardSignerWalletRequest, RotateGuardSignerWalletRequestSchema, RotateGuardSignerWalletResponse, RotateGuardSignerWalletResponseSchema, SignProtectedActionRequest, SignProtectedActionRequestSchema, SignProtectedActionResponse, SignProtectedActionResponseSchema, WhitelistRequirementArgs, WhitelistRequirementArgsSchema, file_chain_guard_v1_guard_signer }; } /** * Describes the file chain/guard/v1/guard_signer.proto. */ declare const file_chain_guard_v1_guard_signer: GenFile; /** * GuardSignerStatus describes stored and live signer state for one account. * * @generated from message chain.guard.v1.GuardSignerStatus */ type GuardSignerStatus = Message<"chain.guard.v1.GuardSignerStatus"> & { /** * Stored guard signer EVM address, if a wallet exists for the selected account. * * @generated from field: string signer_address = 1; */ signerAddress: string; /** * Live on-chain signer value when chain reads are available. * * @generated from field: string onchain_signer_address = 2; */ onchainSignerAddress: string; /** * True when the stored signer matches the live on-chain signer. * * @generated from field: bool initialized = 3; */ initialized: boolean; /** * Current guard signer nonce for the default nonce space, encoded as a base-10 decimal string. * * @generated from field: string nonce = 4; */ nonce: string; /** * Default nonce space used for normal approvals. * * @generated from field: uint64 nonce_space = 5; */ nonceSpace: bigint; }; /** * Describes the message chain.guard.v1.GuardSignerStatus. * Use `create(GuardSignerStatusSchema)` to create a new message. */ declare const GuardSignerStatusSchema: GenMessage; /** * GuardApproval is the exact approval payload clients submit to protected * contract calls. * * @generated from message chain.guard.v1.GuardApproval */ type GuardApproval = Message<"chain.guard.v1.GuardApproval"> & { /** * Nonce space used for the signed approval. Normal flows use 0. * * @generated from field: uint64 nonce_space = 1; */ nonceSpace: bigint; /** * Deadline as a unix timestamp in seconds, derived from chain time. * * @generated from field: uint64 deadline_unix = 2; */ deadlineUnix: bigint; /** * EIP-712 signature over the guard approval message. * * @generated from field: bytes signature = 3; */ signature: Uint8Array; }; /** * Describes the message chain.guard.v1.GuardApproval. * Use `create(GuardApprovalSchema)` to create a new message. */ declare const GuardApprovalSchema: GenMessage; /** * ExternalWhitelistArgs contains the final external-chain destination bytes for * whitelist updates. For EVM destinations, callers should pass the same * string-encoded normalized address bytes used in WithdrawRequest.to, e.g. * stringToHex(address.toLowerCase()), not raw address bytes. * * @generated from message chain.guard.v1.ExternalWhitelistArgs */ type ExternalWhitelistArgs = Message<"chain.guard.v1.ExternalWhitelistArgs"> & { /** * External network identifier for the whitelist update. * * @generated from field: uint32 polychain_chain_id = 1; */ polychainChainId: number; /** * Hex-encoded destination payloads to add or remove. Each value must be 0x-prefixed bytes. * * @generated from field: repeated string addresses = 2; */ addresses: string[]; }; /** * Describes the message chain.guard.v1.ExternalWhitelistArgs. * Use `create(ExternalWhitelistArgsSchema)` to create a new message. */ declare const ExternalWhitelistArgsSchema: GenMessage; /** * InternalWhitelistArgs contains EVM account addresses for internal whitelist * updates. * * @generated from message chain.guard.v1.InternalWhitelistArgs */ type InternalWhitelistArgs = Message<"chain.guard.v1.InternalWhitelistArgs"> & { /** * EVM account addresses to add or remove from the internal transfer whitelist. * * @generated from field: repeated string addresses = 1; */ addresses: string[]; }; /** * Describes the message chain.guard.v1.InternalWhitelistArgs. * Use `create(InternalWhitelistArgsSchema)` to create a new message. */ declare const InternalWhitelistArgsSchema: GenMessage; /** * WhitelistRequirementArgs contains the requested whitelist requirement state. * Guard approvals are only needed to disable a requirement. * * @generated from message chain.guard.v1.WhitelistRequirementArgs */ type WhitelistRequirementArgs = Message<"chain.guard.v1.WhitelistRequirementArgs"> & { /** * Required must be false for GuardSigner approvals. Enabling a requirement * uses an empty approval on-chain and should not be signed here. * * @generated from field: bool required = 1; */ required: boolean; }; /** * Describes the message chain.guard.v1.WhitelistRequirementArgs. * Use `create(WhitelistRequirementArgsSchema)` to create a new message. */ declare const WhitelistRequirementArgsSchema: GenMessage; /** * ProtectedActionArgs contains business arguments for the selected protected * action. It intentionally excludes trusted account, nonce, and deadline fields. * * @generated from message chain.guard.v1.ProtectedActionArgs */ type ProtectedActionArgs = Message<"chain.guard.v1.ProtectedActionArgs"> & { /** * Business arguments required by the selected protected action. * * @generated from oneof chain.guard.v1.ProtectedActionArgs.args */ args: { /** * External whitelist destinations for external whitelist add or remove actions. * * @generated from field: chain.guard.v1.ExternalWhitelistArgs external_whitelist = 1; */ value: ExternalWhitelistArgs; case: "externalWhitelist"; } | { /** * Internal account addresses for internal whitelist add or remove actions. * * @generated from field: chain.guard.v1.InternalWhitelistArgs internal_whitelist = 2; */ value: InternalWhitelistArgs; case: "internalWhitelist"; } | { /** * Requirement state for external/internal requirement setter actions. * * @generated from field: chain.guard.v1.WhitelistRequirementArgs whitelist_requirement = 3; */ value: WhitelistRequirementArgs; case: "whitelistRequirement"; } | { case: undefined; value?: undefined; }; }; /** * Describes the message chain.guard.v1.ProtectedActionArgs. * Use `create(ProtectedActionArgsSchema)` to create a new message. */ declare const ProtectedActionArgsSchema: GenMessage; /** * CreateGuardSignerWalletRequest creates a guard signer wallet for the selected * account target. * * @generated from message chain.guard.v1.CreateGuardSignerWalletRequest */ type CreateGuardSignerWalletRequest = Message<"chain.guard.v1.CreateGuardSignerWalletRequest"> & { /** * Optional subaccount public id. When omitted, the authenticated caller's * root account is used as the target account. * * @generated from field: fixed64 subaccount_id = 1; */ subaccountId: bigint; }; /** * Describes the message chain.guard.v1.CreateGuardSignerWalletRequest. * Use `create(CreateGuardSignerWalletRequestSchema)` to create a new message. */ declare const CreateGuardSignerWalletRequestSchema: GenMessage; /** * CreateGuardSignerWalletResponse returns the generated signer address. * * @generated from message chain.guard.v1.CreateGuardSignerWalletResponse */ type CreateGuardSignerWalletResponse = Message<"chain.guard.v1.CreateGuardSignerWalletResponse"> & { /** * EVM address of the created guard signer wallet. * * @generated from field: string signer_address = 1; */ signerAddress: string; }; /** * Describes the message chain.guard.v1.CreateGuardSignerWalletResponse. * Use `create(CreateGuardSignerWalletResponseSchema)` to create a new message. */ declare const CreateGuardSignerWalletResponseSchema: GenMessage; /** * GetGuardSignerStatusRequest queries stored and live signer status for one * account target. * * @generated from message chain.guard.v1.GetGuardSignerStatusRequest */ type GetGuardSignerStatusRequest = Message<"chain.guard.v1.GetGuardSignerStatusRequest"> & { /** * Optional subaccount public id. When omitted, the authenticated caller's * root account is used as the target account. * * @generated from field: fixed64 subaccount_id = 1; */ subaccountId: bigint; }; /** * Describes the message chain.guard.v1.GetGuardSignerStatusRequest. * Use `create(GetGuardSignerStatusRequestSchema)` to create a new message. */ declare const GetGuardSignerStatusRequestSchema: GenMessage; /** * GetGuardSignerStatusResponse returns stored and on-chain signer state. * * @generated from message chain.guard.v1.GetGuardSignerStatusResponse */ type GetGuardSignerStatusResponse = Message<"chain.guard.v1.GetGuardSignerStatusResponse"> & { /** * Stored and live guard signer status for the selected account target. * * @generated from field: chain.guard.v1.GuardSignerStatus status = 1; */ status?: GuardSignerStatus | undefined; }; /** * Describes the message chain.guard.v1.GetGuardSignerStatusResponse. * Use `create(GetGuardSignerStatusResponseSchema)` to create a new message. */ declare const GetGuardSignerStatusResponseSchema: GenMessage; /** * SignProtectedActionRequest requests an approval for a supported FundingAccount * protected action. * * @generated from message chain.guard.v1.SignProtectedActionRequest */ type SignProtectedActionRequest = Message<"chain.guard.v1.SignProtectedActionRequest"> & { /** * Optional subaccount public id. When omitted, the authenticated caller's * root account is used as the target account. * * @generated from field: fixed64 subaccount_id = 1; */ subaccountId: bigint; /** * Protected action to approve. * * @generated from field: chain.guard.v1.ProtectedAction action = 2; */ action: ProtectedAction; /** * Business arguments for the selected protected action. * * @generated from field: chain.guard.v1.ProtectedActionArgs args = 3; */ args?: ProtectedActionArgs | undefined; }; /** * Describes the message chain.guard.v1.SignProtectedActionRequest. * Use `create(SignProtectedActionRequestSchema)` to create a new message. */ declare const SignProtectedActionRequestSchema: GenMessage; /** * SignProtectedActionResponse returns the contract submission approval. * * @generated from message chain.guard.v1.SignProtectedActionResponse */ type SignProtectedActionResponse = Message<"chain.guard.v1.SignProtectedActionResponse"> & { /** * Approval signature payload for the requested protected action. * * @generated from field: chain.guard.v1.GuardApproval approval = 1; */ approval?: GuardApproval | undefined; }; /** * Describes the message chain.guard.v1.SignProtectedActionResponse. * Use `create(SignProtectedActionResponseSchema)` to create a new message. */ declare const SignProtectedActionResponseSchema: GenMessage; /** * BatchSignProtectedActionItem is one protected FundingAccount action inside a * batched SmartAccount submission. The service signs items in this exact order. * * @generated from message chain.guard.v1.BatchSignProtectedActionItem */ type BatchSignProtectedActionItem = Message<"chain.guard.v1.BatchSignProtectedActionItem"> & { /** * Protected action to approve for this batch item. * * @generated from field: chain.guard.v1.ProtectedAction action = 1; */ action: ProtectedAction; /** * Business arguments for this batch item. * * @generated from field: chain.guard.v1.ProtectedActionArgs args = 2; */ args?: ProtectedActionArgs | undefined; }; /** * Describes the message chain.guard.v1.BatchSignProtectedActionItem. * Use `create(BatchSignProtectedActionItemSchema)` to create a new message. */ declare const BatchSignProtectedActionItemSchema: GenMessage; /** * BatchSignProtectedActionsRequest requests ordered approvals for one batched * SmartAccount transaction. The server reads the first nonce from chain and * assigns subsequent nonces by incrementing locally within this response. * * @generated from message chain.guard.v1.BatchSignProtectedActionsRequest */ type BatchSignProtectedActionsRequest = Message<"chain.guard.v1.BatchSignProtectedActionsRequest"> & { /** * Optional subaccount public id. When omitted, the authenticated caller's * root account is used as the target account. * * @generated from field: fixed64 subaccount_id = 1; */ subaccountId: bigint; /** * Ordered protected actions to sign, max 20 items. * * @generated from field: repeated chain.guard.v1.BatchSignProtectedActionItem actions = 2; */ actions: BatchSignProtectedActionItem[]; }; /** * Describes the message chain.guard.v1.BatchSignProtectedActionsRequest. * Use `create(BatchSignProtectedActionsRequestSchema)` to create a new message. */ declare const BatchSignProtectedActionsRequestSchema: GenMessage; /** * BatchSignProtectedActionsResponse returns approvals in the same order as the * requested actions. Clients must submit them with the matching batched calls. * * @generated from message chain.guard.v1.BatchSignProtectedActionsResponse */ type BatchSignProtectedActionsResponse = Message<"chain.guard.v1.BatchSignProtectedActionsResponse"> & { /** * Approval signatures in the same order as the requested actions. * * @generated from field: repeated chain.guard.v1.GuardApproval approvals = 1; */ approvals: GuardApproval[]; }; /** * Describes the message chain.guard.v1.BatchSignProtectedActionsResponse. * Use `create(BatchSignProtectedActionsResponseSchema)` to create a new message. */ declare const BatchSignProtectedActionsResponseSchema: GenMessage; /** * RotateGuardSignerWalletRequest asks the backend to generate a replacement * guard signer wallet and sign the on-chain rotation approval. * * @generated from message chain.guard.v1.RotateGuardSignerWalletRequest */ type RotateGuardSignerWalletRequest = Message<"chain.guard.v1.RotateGuardSignerWalletRequest"> & { /** * Optional subaccount public id. When omitted, the authenticated caller's * root account is used as the target account. * * @generated from field: fixed64 subaccount_id = 1; */ subaccountId: bigint; }; /** * Describes the message chain.guard.v1.RotateGuardSignerWalletRequest. * Use `create(RotateGuardSignerWalletRequestSchema)` to create a new message. */ declare const RotateGuardSignerWalletRequestSchema: GenMessage; /** * RotateGuardSignerWalletResponse returns the backend-generated replacement * signer and the approval needed to submit signer rotation on-chain. * * @generated from message chain.guard.v1.RotateGuardSignerWalletResponse */ type RotateGuardSignerWalletResponse = Message<"chain.guard.v1.RotateGuardSignerWalletResponse"> & { /** * EVM address of the replacement guard signer wallet. * * @generated from field: string new_signer_address = 1; */ newSignerAddress: string; /** * Approval signature payload needed to submit the signer rotation. * * @generated from field: chain.guard.v1.GuardApproval approval = 2; */ approval?: GuardApproval | undefined; }; /** * Describes the message chain.guard.v1.RotateGuardSignerWalletResponse. * Use `create(RotateGuardSignerWalletResponseSchema)` to create a new message. */ declare const RotateGuardSignerWalletResponseSchema: GenMessage; /** * ExportGuardSignerWalletRequest exports guard signer key material for an * explicitly authorized account target. This is a high-risk sovereignty flow. * * @generated from message chain.guard.v1.ExportGuardSignerWalletRequest */ type ExportGuardSignerWalletRequest = Message<"chain.guard.v1.ExportGuardSignerWalletRequest"> & { /** * Optional subaccount public id. When omitted, the authenticated caller's * root account is used as the target account. * * @generated from field: fixed64 subaccount_id = 1; */ subaccountId: bigint; }; /** * Describes the message chain.guard.v1.ExportGuardSignerWalletRequest. * Use `create(ExportGuardSignerWalletRequestSchema)` to create a new message. */ declare const ExportGuardSignerWalletRequestSchema: GenMessage; /** * ExportGuardSignerWalletResponse returns the authorized high-risk wallet export. * * @generated from message chain.guard.v1.ExportGuardSignerWalletResponse */ type ExportGuardSignerWalletResponse = Message<"chain.guard.v1.ExportGuardSignerWalletResponse"> & { /** * Hex-encoded private key returned only after export authorization succeeds. * * @generated from field: string private_key = 1; */ privateKey: string; }; /** * Describes the message chain.guard.v1.ExportGuardSignerWalletResponse. * Use `create(ExportGuardSignerWalletResponseSchema)` to create a new message. */ declare const ExportGuardSignerWalletResponseSchema: GenMessage; /** * ProtectedAction identifies one server-owned action that can receive a guard * approval. The server derives target, selector, paramsHash, nonce, and deadline. * * @generated from enum chain.guard.v1.ProtectedAction */ declare enum ProtectedAction { /** * Action is not specified. * * @generated from enum value: PROTECTED_ACTION_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * Set the external whitelist requirement to false. Enabling the requirement * does not need GuardSigner approval and should not be routed here. * * @generated from enum value: PROTECTED_ACTION_FUNDING_SET_EXTERNAL_WHITELIST_REQUIRED = 1; */ FUNDING_SET_EXTERNAL_WHITELIST_REQUIRED = 1, /** * Add external withdrawal destinations to the funding-account whitelist. * * @generated from enum value: PROTECTED_ACTION_FUNDING_ADD_EXTERNAL_WHITELIST = 2; */ FUNDING_ADD_EXTERNAL_WHITELIST = 2, /** * Remove external withdrawal destinations from the funding-account whitelist. * * @generated from enum value: PROTECTED_ACTION_FUNDING_REMOVE_EXTERNAL_WHITELIST = 3; */ FUNDING_REMOVE_EXTERNAL_WHITELIST = 3, /** * Add internal transfer destinations to the funding-account whitelist. * * @generated from enum value: PROTECTED_ACTION_FUNDING_ADD_INTERNAL_WHITELIST = 4; */ FUNDING_ADD_INTERNAL_WHITELIST = 4, /** * Remove internal transfer destinations from the funding-account whitelist. * * @generated from enum value: PROTECTED_ACTION_FUNDING_REMOVE_INTERNAL_WHITELIST = 5; */ FUNDING_REMOVE_INTERNAL_WHITELIST = 5, /** * Set the internal whitelist requirement to false. Enabling the requirement * does not need GuardSigner approval and should not be routed here. * * @generated from enum value: PROTECTED_ACTION_FUNDING_SET_INTERNAL_WHITELIST_REQUIRED = 6; */ FUNDING_SET_INTERNAL_WHITELIST_REQUIRED = 6 } /** * Describes the enum chain.guard.v1.ProtectedAction. */ declare const ProtectedActionSchema: GenEnum; /** * GuardSignerService manages guard signer lifecycle and approval signatures. * * @generated from service chain.guard.v1.GuardSignerService */ declare const GuardSignerService: GenService<{ /** * @generated from rpc chain.guard.v1.GuardSignerService.CreateGuardSignerWallet */ createGuardSignerWallet: { methodKind: "unary"; input: typeof CreateGuardSignerWalletRequestSchema; output: typeof CreateGuardSignerWalletResponseSchema; }; /** * @generated from rpc chain.guard.v1.GuardSignerService.GetGuardSignerStatus */ getGuardSignerStatus: { methodKind: "unary"; input: typeof GetGuardSignerStatusRequestSchema; output: typeof GetGuardSignerStatusResponseSchema; }; /** * @generated from rpc chain.guard.v1.GuardSignerService.SignProtectedAction */ signProtectedAction: { methodKind: "unary"; input: typeof SignProtectedActionRequestSchema; output: typeof SignProtectedActionResponseSchema; }; /** * @generated from rpc chain.guard.v1.GuardSignerService.BatchSignProtectedActions */ batchSignProtectedActions: { methodKind: "unary"; input: typeof BatchSignProtectedActionsRequestSchema; output: typeof BatchSignProtectedActionsResponseSchema; }; /** * @generated from rpc chain.guard.v1.GuardSignerService.RotateGuardSignerWallet */ rotateGuardSignerWallet: { methodKind: "unary"; input: typeof RotateGuardSignerWalletRequestSchema; output: typeof RotateGuardSignerWalletResponseSchema; }; /** * @generated from rpc chain.guard.v1.GuardSignerService.ExportGuardSignerWallet */ exportGuardSignerWallet: { methodKind: "unary"; input: typeof ExportGuardSignerWalletRequestSchema; output: typeof ExportGuardSignerWalletResponseSchema; }; }>; //#endregion export { BatchSignProtectedActionItem, BatchSignProtectedActionItemSchema, BatchSignProtectedActionsRequest, BatchSignProtectedActionsRequestSchema, BatchSignProtectedActionsResponse, BatchSignProtectedActionsResponseSchema, CreateGuardSignerWalletRequest, CreateGuardSignerWalletRequestSchema, CreateGuardSignerWalletResponse, CreateGuardSignerWalletResponseSchema, ExportGuardSignerWalletRequest, ExportGuardSignerWalletRequestSchema, ExportGuardSignerWalletResponse, ExportGuardSignerWalletResponseSchema, ExternalWhitelistArgs, ExternalWhitelistArgsSchema, GetGuardSignerStatusRequest, GetGuardSignerStatusRequestSchema, GetGuardSignerStatusResponse, GetGuardSignerStatusResponseSchema, GuardApproval, GuardApprovalSchema, GuardSignerService, GuardSignerStatus, GuardSignerStatusSchema, InternalWhitelistArgs, InternalWhitelistArgsSchema, ProtectedAction, ProtectedActionArgs, ProtectedActionArgsSchema, ProtectedActionSchema, RotateGuardSignerWalletRequest, RotateGuardSignerWalletRequestSchema, RotateGuardSignerWalletResponse, RotateGuardSignerWalletResponseSchema, SignProtectedActionRequest, SignProtectedActionRequestSchema, SignProtectedActionResponse, SignProtectedActionResponseSchema, WhitelistRequirementArgs, WhitelistRequirementArgsSchema, file_chain_guard_v1_guard_signer, guard_signer_pb_d_exports }; //# sourceMappingURL=guard_signer_pb.d.ts.map