UNPKG

xud

Version:
183 lines (182 loc) 3.88 kB
/** * The configurable options for the connext client. */ export declare type ConnextClientConfig = { disable: boolean; host: string; port: number; webhookhost: string; webhookport: number; }; /** General information about the state of this connext client. */ export declare type ConnextInfo = { status: string; error?: string; address?: string; chain?: string; version?: string; }; /** * The connext version. */ export declare type ConnextVersion = { version: string; }; /** * The payload for tokenPayment call. */ export declare type TokenPaymentRequest = { assetId: string; amount: string; lockHash: string; timelock: string; recipient: string; }; /** * The response for errors. */ export declare type ConnextErrorResponse = { message: string; }; /** * The response for initWallet call. */ export declare type ConnextInitWalletResponse = { success: boolean; }; /** * The response for /config call. */ export declare type ConnextConfigResponse = { multisigAddress: string; natsClusterId: string; natsToken: string; nodeUrl: string; signerAddress: string; userPublicIdentifier: string; userIdentifier: string; }; /** * The response for balance call. */ export declare type ConnextBalanceResponse = { freeBalanceOffChain: string; nodeFreeBalanceOffChain: string; freeBalanceOnChain: string; }; /** * The response for hashLockTransfer call. */ export declare type ConnextTransferResponse = { appId: string; preImage: string; }; /** * The response for withdraw call. */ export declare type ConnextWithdrawResponse = { txhash: string; }; /** * The response for deposit call. */ export declare type ConnextDepositResponse = { txhash: string; }; /** * The response for hashLockTransfer call. */ export declare type ConnextTransferStatus = { senderAppIdentityHash: string; receiverIdentifier: string; senderIdentifier: string; assetId: string; amount: string; lockHash: string; status: string; meta: { sender: string; timelock: string; }; preImage?: string; expiry: { _hex: string; }; }; export declare type ExpectedIncomingTransfer = { rHash: string; units: number; expiry: number; tokenAddress: string; paymentId?: string; }; export declare type ConnextPreimageRequest = { id: string; data?: { type: string; amount: { _hex: string; }; assetId: string; paymentId: string; sender: string; recipient: string; meta: { sender: string; recipient: string; }; transferMeta: { preImage: string; }; }; }; export declare type ConnextIncomingTransferRequest = { id: string; data?: { amount: { _hex: string; }; appIdentityHash: string; assetId: string; meta: { recipient: string; sender: string; timelock: 200; }; sender: string; transferMeta: { lockHash: string; expiry: { _hex: string; }; timelock: string; }; type: string; paymentId: string; recipient: string; }; }; export declare type ConnextDepositConfirmedRequest = { id: string; data?: { amount: { _hex: string; }; assetId: string; hash: string; }; }; export declare type ProvidePreimageEvent = { rHash: string; preimage: string; }; export declare type TransferReceivedEvent = { tokenAddress: string; rHash: string; timelock: number; units: number; paymentId: string; }; export declare type OnchainTransferResponse = { txhash: string; };