mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-15 14:42:38 +03:00
fix types
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.20.83-rc2",
|
||||
"version": "0.20.83-rc3",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -11,8 +11,8 @@ import {
|
||||
type PairStatusEnum,
|
||||
pairStatusSchema,
|
||||
pricesWithQuoteAssetSchema,
|
||||
referralDataSchema,
|
||||
pmmSchema,
|
||||
dueLiabilityEstimateSchema
|
||||
} from './schemas/index.js';
|
||||
import type redeemOrderSchema from '../Aggregator/schemas/redeemOrderSchema.js';
|
||||
import { sourceAtomicHistorySchema, targetAtomicHistorySchema } from './schemas/atomicHistorySchema.js';
|
||||
@@ -272,13 +272,13 @@ class BlockchainService {
|
||||
|
||||
getReferralData = (walletAddress: string) => fetchWithValidation(
|
||||
`${this.apiUrl}/api/referral-data/${walletAddress}`,
|
||||
z.number().nonnegative(),
|
||||
referralDataSchema,
|
||||
{ headers: this.basicAuthHeaders }
|
||||
);
|
||||
|
||||
getDueLiabilityEstimate = ({ asset, amount }: DueLiabilityEstimateProps) => fetchWithValidation(
|
||||
`${this.apiUrl}/api/due-liability-estimate/${asset}/${amount}`,
|
||||
dueLiabilityEstimateSchema,
|
||||
z.number().nonnegative(),
|
||||
{ headers: this.basicAuthHeaders }
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user