@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.d.ts +216 -202
- package/dist/index.js +4 -5
- package/package.json +1 -1
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.
|
|
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.
|
|
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 =
|
|
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()
|