@helium/blockchain-api 0.3.11 → 0.3.13

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/dist/index.js CHANGED
@@ -89,7 +89,7 @@ function typedTransactionData(metadataSchema) {
89
89
  function createTransactionResponse() {
90
90
  return z.object({
91
91
  transactionData: TransactionDataSchema,
92
- estimatedSolFee: TokenAmountOutputSchema.optional().describe(
92
+ estimatedSolFee: TokenAmountOutputSchema.describe(
93
93
  "Estimated total SOL fee including rent, priority fees, and automation costs"
94
94
  )
95
95
  });
@@ -97,7 +97,7 @@ function createTransactionResponse() {
97
97
  function createTypedTransactionResponse(metadataSchema) {
98
98
  return z.object({
99
99
  transactionData: typedTransactionData(metadataSchema),
100
- estimatedSolFee: TokenAmountOutputSchema.optional().describe(
100
+ estimatedSolFee: TokenAmountOutputSchema.describe(
101
101
  "Estimated total SOL fee including rent, priority fees, and automation costs"
102
102
  )
103
103
  });
@@ -250,9 +250,8 @@ var BridgeTransferSchema = z.object({
250
250
  to_address: z.string()
251
251
  })
252
252
  }).passthrough();
253
- var SendFundsOutputSchema = z.object({
254
- bridgeTransfer: BridgeTransferSchema,
255
- transactionData: TransactionDataSchema
253
+ var SendFundsOutputSchema = createTransactionResponse().extend({
254
+ bridgeTransfer: BridgeTransferSchema
256
255
  });
257
256
  var UpdateTransferOutputSchema = z.object({
258
257
  success: z.boolean()
@@ -1043,7 +1042,8 @@ var MigrateInputSchema = z.object({
1043
1042
  mint: z.string(),
1044
1043
  amount: z.string()
1045
1044
  })
1046
- ).default([])
1045
+ ).default([]),
1046
+ password: z.string().optional()
1047
1047
  });
1048
1048
  var MigrateTransactionItemSchema = z.object({
1049
1049
  serializedTransaction: z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helium/blockchain-api",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
4
4
  "description": "TypeScript client and schemas for the Helium Blockchain API",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -34,4 +34,4 @@
34
34
  "tsup": "^8.0.0",
35
35
  "typescript": "^5.0.0"
36
36
  }
37
- }
37
+ }