UNPKG

@fairmint/canton-node-sdk

Version:
115 lines 4.91 kB
import { z } from 'zod'; export declare const CreateTransferOfferRequestSchema: z.ZodObject<{ receiver_party_id: z.ZodString; amount: z.ZodString; description: z.ZodString; expires_at: z.ZodNumber; tracking_id: z.ZodString; }, z.core.$strip>; export declare const CreateTransferOfferResponseSchema: z.ZodObject<{ offer_contract_id: z.ZodString; }, z.core.$strip>; export declare const ListTransferOffersResponseSchema: z.ZodObject<{ offers: z.ZodArray<z.ZodAny>; }, z.core.$strip>; export declare const GetTransferOfferStatusResponseSchema: z.ZodObject<{ status: z.ZodEnum<{ created: "created"; failed: "failed"; accepted: "accepted"; completed: "completed"; }>; transaction_id: z.ZodOptional<z.ZodString>; contract_id: z.ZodOptional<z.ZodString>; failure_kind: z.ZodOptional<z.ZodEnum<{ expired: "expired"; withdrawn: "withdrawn"; rejected: "rejected"; }>>; withdrawn_reason: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export declare const AcceptTransferOfferResponseSchema: z.ZodObject<{ accepted_offer_contract_id: z.ZodString; }, z.core.$strip>; export declare const RejectTransferOfferResponseSchema: z.ZodObject<{ rejected_offer_contract_id: z.ZodString; }, z.core.$strip>; export declare const WithdrawTransferOfferResponseSchema: z.ZodObject<{ withdrawn_offer_contract_id: z.ZodString; }, z.core.$strip>; export type CreateTransferOfferRequest = z.infer<typeof CreateTransferOfferRequestSchema>; export type CreateTransferOfferResponse = z.infer<typeof CreateTransferOfferResponseSchema>; export type ListTransferOffersResponse = z.infer<typeof ListTransferOffersResponseSchema>; export type GetTransferOfferStatusResponse = z.infer<typeof GetTransferOfferStatusResponseSchema>; export type AcceptTransferOfferResponse = z.infer<typeof AcceptTransferOfferResponseSchema>; export type RejectTransferOfferResponse = z.infer<typeof RejectTransferOfferResponseSchema>; export type WithdrawTransferOfferResponse = z.infer<typeof WithdrawTransferOfferResponseSchema>; export declare const CreateBuyTrafficRequestSchema: z.ZodObject<{ receiving_validator_party_id: z.ZodString; domain_id: z.ZodString; traffic_amount: z.ZodNumber; tracking_id: z.ZodString; expires_at: z.ZodNumber; }, z.core.$strip>; export declare const CreateBuyTrafficRequestResponseSchema: z.ZodObject<{ request_contract_id: z.ZodString; }, z.core.$strip>; export declare const GetBuyTrafficRequestStatusResponseSchema: z.ZodObject<{ status: z.ZodEnum<{ created: "created"; failed: "failed"; completed: "completed"; }>; transaction_id: z.ZodOptional<z.ZodString>; failure_reason: z.ZodOptional<z.ZodEnum<{ expired: "expired"; rejected: "rejected"; }>>; rejection_reason: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export type CreateBuyTrafficRequest = z.infer<typeof CreateBuyTrafficRequestSchema>; export type CreateBuyTrafficRequestResponse = z.infer<typeof CreateBuyTrafficRequestResponseSchema>; export type GetBuyTrafficRequestStatusResponse = z.infer<typeof GetBuyTrafficRequestStatusResponseSchema>; export declare const TransferPreapprovalContractSchema: z.ZodObject<{ template_id: z.ZodString; contract_id: z.ZodString; payload: z.ZodObject<{ dso: z.ZodString; expiresAt: z.ZodString; receiver: z.ZodString; validFrom: z.ZodString; provider: z.ZodString; lastRenewedAt: z.ZodString; }, z.core.$strip>; created_event_blob: z.ZodString; created_at: z.ZodString; }, z.core.$strip>; export declare const TransferPreapprovalResponseSchema: z.ZodObject<{ transfer_preapproval: z.ZodObject<{ contract: z.ZodObject<{ template_id: z.ZodString; contract_id: z.ZodString; payload: z.ZodObject<{ dso: z.ZodString; expiresAt: z.ZodString; receiver: z.ZodString; validFrom: z.ZodString; provider: z.ZodString; lastRenewedAt: z.ZodString; }, z.core.$strip>; created_event_blob: z.ZodString; created_at: z.ZodString; }, z.core.$strip>; domain_id: z.ZodString; }, z.core.$strip>; }, z.core.$strip>; export declare const TransferPreapprovalSendRequestSchema: z.ZodObject<{ receiver_party_id: z.ZodString; amount: z.ZodString; deduplication_id: z.ZodString; description: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export type TransferPreapprovalContract = z.infer<typeof TransferPreapprovalContractSchema>; export type TransferPreapprovalResponse = z.infer<typeof TransferPreapprovalResponseSchema>; export type TransferPreapprovalSendRequest = z.infer<typeof TransferPreapprovalSendRequestSchema>; //# sourceMappingURL=wallet.d.ts.map