@helium/blockchain-api 0.3.11 → 0.3.12

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()
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.12",
4
4
  "description": "TypeScript client and schemas for the Helium Blockchain API",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {