@helium/blockchain-api 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { QuoteResponseSchema } from "../swap/schemas";
|
|
2
3
|
|
|
3
4
|
// ============================================================================
|
|
4
5
|
// Input Schemas
|
|
@@ -133,8 +134,18 @@ export const TransactionDataSchema = z.object({
|
|
|
133
134
|
tag: z.string().optional(),
|
|
134
135
|
});
|
|
135
136
|
|
|
137
|
+
export const BridgeTransferSchema = z
|
|
138
|
+
.object({
|
|
139
|
+
id: z.string(),
|
|
140
|
+
state: z.string(),
|
|
141
|
+
source_deposit_instructions: z.object({
|
|
142
|
+
to_address: z.string(),
|
|
143
|
+
}),
|
|
144
|
+
})
|
|
145
|
+
.passthrough();
|
|
146
|
+
|
|
136
147
|
export const SendFundsOutputSchema = z.object({
|
|
137
|
-
bridgeTransfer:
|
|
148
|
+
bridgeTransfer: BridgeTransferSchema,
|
|
138
149
|
transactionData: TransactionDataSchema,
|
|
139
150
|
});
|
|
140
151
|
|
|
@@ -143,7 +154,7 @@ export const UpdateTransferOutputSchema = z.object({
|
|
|
143
154
|
});
|
|
144
155
|
|
|
145
156
|
// Quote response is pass-through from Jupiter
|
|
146
|
-
export const QuoteOutputSchema =
|
|
157
|
+
export const QuoteOutputSchema = QuoteResponseSchema;
|
|
147
158
|
|
|
148
159
|
// ============================================================================
|
|
149
160
|
// Type Exports
|
|
@@ -155,3 +166,4 @@ export type CreateBankAccountInput = z.infer<
|
|
|
155
166
|
>;
|
|
156
167
|
export type KycStatusOutput = z.infer<typeof KycStatusOutputSchema>;
|
|
157
168
|
export type FeesOutput = z.infer<typeof FeesOutputSchema>;
|
|
169
|
+
export type BridgeTransfer = z.infer<typeof BridgeTransferSchema>;
|