@fairmint/canton-node-sdk
Version:
Canton Node SDK
159 lines • 6.55 kB
TypeScript
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>;
export declare const AmuletContractSchema: z.ZodObject<{
contract: z.ZodObject<{
template_id: z.ZodString;
contract_id: z.ZodString;
payload: z.ZodAny;
created_event_blob: z.ZodString;
created_at: z.ZodString;
}, z.core.$strip>;
domain_id: z.ZodString;
}, z.core.$strip>;
export declare const GetAmuletsResponseSchema: z.ZodObject<{
amulets: z.ZodArray<z.ZodObject<{
contract: z.ZodObject<{
contract: z.ZodObject<{
template_id: z.ZodString;
contract_id: z.ZodString;
payload: z.ZodAny;
created_event_blob: z.ZodString;
created_at: z.ZodString;
}, z.core.$strip>;
domain_id: z.ZodString;
}, z.core.$strip>;
round: z.ZodNumber;
accrued_holding_fee: z.ZodString;
effective_amount: z.ZodString;
}, z.core.$strip>>;
locked_amulets: z.ZodArray<z.ZodObject<{
contract: z.ZodObject<{
contract: z.ZodObject<{
template_id: z.ZodString;
contract_id: z.ZodString;
payload: z.ZodAny;
created_event_blob: z.ZodString;
created_at: z.ZodString;
}, z.core.$strip>;
domain_id: z.ZodString;
}, z.core.$strip>;
round: z.ZodNumber;
accrued_holding_fee: z.ZodString;
effective_amount: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>;
export type AmuletContract = z.infer<typeof AmuletContractSchema>;
export type GetAmuletsResponse = z.infer<typeof GetAmuletsResponseSchema>;
//# sourceMappingURL=wallet.d.ts.map