Skip to content

Commit 32c63d9

Browse files
feat(packages): sign submit payout (#551)
1 parent 384afb9 commit 32c63d9

File tree

21 files changed

+1271
-498
lines changed

21 files changed

+1271
-498
lines changed
Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,2 @@
1-
/**
2-
* Vault Provider RPC Client
3-
*/
4-
5-
import { VaultProviderRpcApi } from "./api";
6-
import { RPC_TIMEOUT, getVaultProviderRpcUrl } from "./config";
7-
8-
// Export API class
91
export { VaultProviderRpcApi } from "./api";
10-
11-
// Export types
12-
export type {
13-
ClaimerTransactions,
14-
RequestClaimAndPayoutTransactionsParams,
15-
RequestClaimAndPayoutTransactionsResponse,
16-
SubmitPayoutSignaturesParams,
17-
TransactionData,
18-
} from "./types";
19-
20-
// Export error codes
21-
export { RpcErrorCode } from "./types";
22-
23-
let apiInstance: VaultProviderRpcApi | null = null;
24-
25-
/**
26-
* Get the Vault Provider RPC API client (singleton)
27-
*/
28-
export function getVaultProviderRpcApi(): VaultProviderRpcApi {
29-
if (!apiInstance) {
30-
apiInstance = new VaultProviderRpcApi(
31-
getVaultProviderRpcUrl(),
32-
RPC_TIMEOUT,
33-
);
34-
}
35-
return apiInstance;
36-
}
2+
export * from "./types";

services/vault/src/clients/vault-provider-rpc/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Type definitions for vault provider RPC API
33
*
44
* Source: https://github.com/babylonlabs-io/btc-vault/blob/main/crates/vaultd/src/rpc/types.rs
5-
* Last synced: 2025-10-16
65
*/
76

87
// ============================================================================

0 commit comments

Comments
 (0)