@bosonprotocol/core-sdk
Advanced tools
Comparing version 1.12.0-alpha.13 to 1.12.0-alpha.14
@@ -0,1 +1,2 @@ | ||
import { utils } from "@bosonprotocol/common"; | ||
export * as iface from "./interface"; | ||
@@ -6,16 +7,4 @@ export * as handler from "./handler"; | ||
export declare const validation: { | ||
createSellerArgsSchema: import("yup/lib/object").OptionalObjectSchema<{ | ||
operator: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
admin: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
clerk: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
treasury: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
contractUri: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
}, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{ | ||
operator: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
admin: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
clerk: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
treasury: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
contractUri: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
}>>; | ||
createSellerArgsSchema: typeof utils.validation.createSellerArgsSchema; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -37,2 +37,3 @@ "use strict"; | ||
return args.web3Lib.sendTransaction({ | ||
from: args.buyer, | ||
to: args.contractAddress, | ||
@@ -39,0 +40,0 @@ data: (0, interface_1.encodeCommitToOffer)(args.buyer, args.offerId), |
@@ -1,2 +0,2 @@ | ||
import { subgraph } from ".."; | ||
import { OfferFieldsFragment } from "../subgraph"; | ||
export declare enum OfferState { | ||
@@ -8,3 +8,3 @@ VOIDED = "VOIDED", | ||
} | ||
export declare function getOfferStatus(offer: subgraph.OfferFieldsFragment): OfferState; | ||
export declare function getOfferStatus(offer: OfferFieldsFragment): OfferState; | ||
//# sourceMappingURL=getOfferStatus.d.ts.map |
@@ -0,1 +1,2 @@ | ||
import { utils } from "@bosonprotocol/common"; | ||
export * as handler from "./handler"; | ||
@@ -9,34 +10,4 @@ export * as subgraph from "./subgraph"; | ||
export declare const validation: { | ||
createOfferArgsSchema: import("yup/lib/object").OptionalObjectSchema<{ | ||
price: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
sellerDeposit: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
buyerCancelPenalty: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
quantityAvailable: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
validFromDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
validUntilDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
voucherRedeemableFromDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
voucherRedeemableUntilDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
voucherValidDurationInMS: import("yup").StringSchema<string, import("yup/lib/types").AnyObject, string>; | ||
fulfillmentPeriodDurationInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
resolutionPeriodDurationInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
exchangeToken: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
metadataUri: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
metadataHash: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
}, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{ | ||
price: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
sellerDeposit: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
buyerCancelPenalty: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
quantityAvailable: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
validFromDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
validUntilDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
voucherRedeemableFromDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
voucherRedeemableUntilDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
voucherValidDurationInMS: import("yup").StringSchema<string, import("yup/lib/types").AnyObject, string>; | ||
fulfillmentPeriodDurationInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
resolutionPeriodDurationInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
exchangeToken: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
metadataUri: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
metadataHash: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
}>>; | ||
createOfferArgsSchema: typeof utils.validation.createOfferArgsSchema; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
import * as yup from "yup"; | ||
import { ITokenInfo } from "./../utils/tokenInfoManager"; | ||
import { BigNumberish } from "@ethersproject/bignumber"; | ||
import { offers, subgraph } from ".."; | ||
export declare type TemplateRenderingData = offers.CreateOfferArgs & { | ||
import { CreateOfferArgs } from "./types"; | ||
import { OfferFieldsFragment } from "../subgraph"; | ||
export declare type TemplateRenderingData = CreateOfferArgs & { | ||
priceValue: string; | ||
@@ -38,5 +39,5 @@ sellerDepositValue: string; | ||
}; | ||
export declare function prepareRenderingData(offerData: offers.CreateOfferArgs, tokenInfo: ITokenInfo): Promise<TemplateRenderingData>; | ||
export declare function renderContractualAgreement(template: string, offerData: offers.CreateOfferArgs, tokenInfo: ITokenInfo): Promise<string>; | ||
export declare function renderContractualAgreementForOffer(existingOfferData: subgraph.OfferFieldsFragment): Promise<string>; | ||
export declare function prepareRenderingData(offerData: CreateOfferArgs, tokenInfo: ITokenInfo): Promise<TemplateRenderingData>; | ||
export declare function renderContractualAgreement(template: string, offerData: CreateOfferArgs, tokenInfo: ITokenInfo): Promise<string>; | ||
export declare function renderContractualAgreementForOffer(existingOfferData: OfferFieldsFragment): Promise<string>; | ||
//# sourceMappingURL=renderContractualAgreement.d.ts.map |
@@ -41,6 +41,6 @@ "use strict"; | ||
const bignumber_1 = require("@ethersproject/bignumber"); | ||
const __1 = require(".."); | ||
const common_1 = require("@bosonprotocol/common"); | ||
const mustache_1 = __importDefault(require("mustache")); | ||
const units_1 = require("@ethersproject/units"); | ||
const subgraph_1 = require("../subgraph"); | ||
class InvalidOfferDataError extends Error { | ||
@@ -140,3 +140,3 @@ constructor(missingProperties) { | ||
} | ||
if (existingOfferData.metadata.type !== __1.subgraph.MetadataType.ProductV1) { | ||
if (existingOfferData.metadata.type !== subgraph_1.MetadataType.ProductV1) { | ||
throw new Error(`Invalid Offer Metadata: Type is not supported: '${existingOfferData.metadata.type}'`); | ||
@@ -143,0 +143,0 @@ } |
@@ -14,3 +14,3 @@ "use strict"; | ||
const constants_1 = require("@ethersproject/constants"); | ||
const __1 = require(".."); | ||
const handler_1 = require("../erc20/handler"); | ||
exports.NATIVE_TOKENS = { | ||
@@ -83,5 +83,5 @@ 1: { | ||
const [decimals, name, symbol] = yield Promise.all([ | ||
__1.erc20.handler.getDecimals(args), | ||
__1.erc20.handler.getName(args), | ||
__1.erc20.handler.getSymbol(args) | ||
(0, handler_1.getDecimals)(args), | ||
(0, handler_1.getName)(args), | ||
(0, handler_1.getSymbol)(args) | ||
]); | ||
@@ -88,0 +88,0 @@ this._tokenInfos.set(tokenAddress.toLowerCase(), { |
@@ -0,1 +1,2 @@ | ||
import { utils } from "@bosonprotocol/common"; | ||
export * as iface from "./interface"; | ||
@@ -6,16 +7,4 @@ export * as handler from "./handler"; | ||
export declare const validation: { | ||
createSellerArgsSchema: import("yup/lib/object").OptionalObjectSchema<{ | ||
operator: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
admin: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
clerk: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
treasury: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
contractUri: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
}, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{ | ||
operator: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
admin: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
clerk: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
treasury: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
contractUri: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
}>>; | ||
createSellerArgsSchema: typeof utils.validation.createSellerArgsSchema; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -24,2 +24,3 @@ import { AddressZero } from "@ethersproject/constants"; | ||
return args.web3Lib.sendTransaction({ | ||
from: args.buyer, | ||
to: args.contractAddress, | ||
@@ -26,0 +27,0 @@ data: encodeCommitToOffer(args.buyer, args.offerId), |
@@ -1,2 +0,2 @@ | ||
import { subgraph } from ".."; | ||
import { OfferFieldsFragment } from "../subgraph"; | ||
export declare enum OfferState { | ||
@@ -8,3 +8,3 @@ VOIDED = "VOIDED", | ||
} | ||
export declare function getOfferStatus(offer: subgraph.OfferFieldsFragment): OfferState; | ||
export declare function getOfferStatus(offer: OfferFieldsFragment): OfferState; | ||
//# sourceMappingURL=getOfferStatus.d.ts.map |
@@ -0,1 +1,2 @@ | ||
import { utils } from "@bosonprotocol/common"; | ||
export * as handler from "./handler"; | ||
@@ -9,34 +10,4 @@ export * as subgraph from "./subgraph"; | ||
export declare const validation: { | ||
createOfferArgsSchema: import("yup/lib/object").OptionalObjectSchema<{ | ||
price: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
sellerDeposit: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
buyerCancelPenalty: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
quantityAvailable: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
validFromDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
validUntilDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
voucherRedeemableFromDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
voucherRedeemableUntilDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
voucherValidDurationInMS: import("yup").StringSchema<string, import("yup/lib/types").AnyObject, string>; | ||
fulfillmentPeriodDurationInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
resolutionPeriodDurationInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
exchangeToken: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
metadataUri: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
metadataHash: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
}, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{ | ||
price: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
sellerDeposit: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
buyerCancelPenalty: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
quantityAvailable: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
validFromDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
validUntilDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
voucherRedeemableFromDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
voucherRedeemableUntilDateInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
voucherValidDurationInMS: import("yup").StringSchema<string, import("yup/lib/types").AnyObject, string>; | ||
fulfillmentPeriodDurationInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
resolutionPeriodDurationInMS: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
exchangeToken: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
metadataUri: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
metadataHash: import("yup/lib/string").RequiredStringSchema<string, import("yup/lib/types").AnyObject>; | ||
}>>; | ||
createOfferArgsSchema: typeof utils.validation.createOfferArgsSchema; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
import * as yup from "yup"; | ||
import { ITokenInfo } from "./../utils/tokenInfoManager"; | ||
import { BigNumberish } from "@ethersproject/bignumber"; | ||
import { offers, subgraph } from ".."; | ||
export declare type TemplateRenderingData = offers.CreateOfferArgs & { | ||
import { CreateOfferArgs } from "./types"; | ||
import { OfferFieldsFragment } from "../subgraph"; | ||
export declare type TemplateRenderingData = CreateOfferArgs & { | ||
priceValue: string; | ||
@@ -38,5 +39,5 @@ sellerDepositValue: string; | ||
}; | ||
export declare function prepareRenderingData(offerData: offers.CreateOfferArgs, tokenInfo: ITokenInfo): Promise<TemplateRenderingData>; | ||
export declare function renderContractualAgreement(template: string, offerData: offers.CreateOfferArgs, tokenInfo: ITokenInfo): Promise<string>; | ||
export declare function renderContractualAgreementForOffer(existingOfferData: subgraph.OfferFieldsFragment): Promise<string>; | ||
export declare function prepareRenderingData(offerData: CreateOfferArgs, tokenInfo: ITokenInfo): Promise<TemplateRenderingData>; | ||
export declare function renderContractualAgreement(template: string, offerData: CreateOfferArgs, tokenInfo: ITokenInfo): Promise<string>; | ||
export declare function renderContractualAgreementForOffer(existingOfferData: OfferFieldsFragment): Promise<string>; | ||
//# sourceMappingURL=renderContractualAgreement.d.ts.map |
import * as yup from "yup"; | ||
import { BigNumber } from "@ethersproject/bignumber"; | ||
import { subgraph } from ".."; | ||
import { utils } from "@bosonprotocol/common"; | ||
import Mustache from "mustache"; | ||
import { formatUnits } from "@ethersproject/units"; | ||
import { MetadataType } from "../subgraph"; | ||
export class InvalidOfferDataError extends Error { | ||
@@ -117,3 +117,3 @@ missingProperties; | ||
} | ||
if (existingOfferData.metadata.type !== subgraph.MetadataType.ProductV1) { | ||
if (existingOfferData.metadata.type !== MetadataType.ProductV1) { | ||
throw new Error(`Invalid Offer Metadata: Type is not supported: '${existingOfferData.metadata.type}'`); | ||
@@ -120,0 +120,0 @@ } |
import { AddressZero } from "@ethersproject/constants"; | ||
import { erc20 } from ".."; | ||
import { getDecimals, getName, getSymbol } from "../erc20/handler"; | ||
export const NATIVE_TOKENS = { | ||
@@ -70,5 +70,5 @@ 1: { | ||
const [decimals, name, symbol] = await Promise.all([ | ||
erc20.handler.getDecimals(args), | ||
erc20.handler.getName(args), | ||
erc20.handler.getSymbol(args) | ||
getDecimals(args), | ||
getName(args), | ||
getSymbol(args) | ||
]); | ||
@@ -75,0 +75,0 @@ this._tokenInfos.set(tokenAddress.toLowerCase(), { |
{ | ||
"name": "@bosonprotocol/core-sdk", | ||
"version": "1.12.0-alpha.13", | ||
"version": "1.12.0-alpha.14", | ||
"description": "> TODO: description", | ||
@@ -36,3 +36,3 @@ "main": "./dist/cjs/index.js", | ||
"dependencies": { | ||
"@bosonprotocol/common": "^1.9.0-alpha.13", | ||
"@bosonprotocol/common": "^1.9.0-alpha.14", | ||
"@ethersproject/abi": "^5.5.0", | ||
@@ -47,3 +47,4 @@ "@ethersproject/address": "^5.5.0", | ||
"graphql-request": "^4.3.0", | ||
"mustache": "^4.2.0" | ||
"mustache": "^4.2.0", | ||
"yup": "^0.32.11" | ||
}, | ||
@@ -58,3 +59,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "a9c7817a300db1823dc77cc191888e0c300ce8ab" | ||
"gitHead": "58691a2d1eb82bf24370fa4b52a9b7559e5cdd15" | ||
} |
@@ -8,4 +8,6 @@ import { utils } from "@bosonprotocol/common"; | ||
export const validation = { | ||
export const validation: { | ||
createSellerArgsSchema: typeof utils.validation.createSellerArgsSchema; | ||
} = { | ||
createSellerArgsSchema: utils.validation.createSellerArgsSchema | ||
}; |
@@ -51,2 +51,3 @@ import { BigNumberish } from "@ethersproject/bignumber"; | ||
return args.web3Lib.sendTransaction({ | ||
from: args.buyer, | ||
to: args.contractAddress, | ||
@@ -53,0 +54,0 @@ data: encodeCommitToOffer(args.buyer, args.offerId), |
@@ -1,2 +0,2 @@ | ||
import { subgraph } from ".."; | ||
import { OfferFieldsFragment } from "../subgraph"; | ||
@@ -10,3 +10,3 @@ export enum OfferState { | ||
export function getOfferStatus(offer: subgraph.OfferFieldsFragment) { | ||
export function getOfferStatus(offer: OfferFieldsFragment) { | ||
const toTimeStamp = (numberString: string) => Number(numberString) * 1000; | ||
@@ -13,0 +13,0 @@ const timeNow = Date.now(); |
@@ -11,4 +11,6 @@ import { utils } from "@bosonprotocol/common"; | ||
export const validation = { | ||
export const validation: { | ||
createOfferArgsSchema: typeof utils.validation.createOfferArgsSchema; | ||
} = { | ||
createOfferArgsSchema: utils.validation.createOfferArgsSchema | ||
}; |
import * as yup from "yup"; | ||
import { ITokenInfo } from "./../utils/tokenInfoManager"; | ||
import { BigNumber, BigNumberish } from "@ethersproject/bignumber"; | ||
import { offers, subgraph } from ".."; | ||
import { utils } from "@bosonprotocol/common"; | ||
@@ -10,3 +9,6 @@ import Mustache from "mustache"; | ||
export type TemplateRenderingData = offers.CreateOfferArgs & { | ||
import { CreateOfferArgs } from "./types"; | ||
import { OfferFieldsFragment, MetadataType } from "../subgraph"; | ||
export type TemplateRenderingData = CreateOfferArgs & { | ||
priceValue: string; // Convert in decimals value | ||
@@ -99,5 +101,6 @@ sellerDepositValue: string; // Convert in decimals value | ||
function convertExistingOfferData( | ||
offerDataSubGraph: subgraph.OfferFieldsFragment | ||
): { offerData: offers.CreateOfferArgs; tokenInfo: ITokenInfo } { | ||
function convertExistingOfferData(offerDataSubGraph: OfferFieldsFragment): { | ||
offerData: CreateOfferArgs; | ||
tokenInfo: ITokenInfo; | ||
} { | ||
return { | ||
@@ -125,3 +128,3 @@ offerData: { | ||
export async function prepareRenderingData( | ||
offerData: offers.CreateOfferArgs, | ||
offerData: CreateOfferArgs, | ||
tokenInfo: ITokenInfo | ||
@@ -162,3 +165,3 @@ ): Promise<TemplateRenderingData> { | ||
template: string, | ||
offerData: offers.CreateOfferArgs, | ||
offerData: CreateOfferArgs, | ||
tokenInfo: ITokenInfo | ||
@@ -173,3 +176,3 @@ ): Promise<string> { | ||
export async function renderContractualAgreementForOffer( | ||
existingOfferData: subgraph.OfferFieldsFragment | ||
existingOfferData: OfferFieldsFragment | ||
): Promise<string> { | ||
@@ -182,3 +185,3 @@ if (!existingOfferData) { | ||
} | ||
if (existingOfferData.metadata.type !== subgraph.MetadataType.ProductV1) { | ||
if (existingOfferData.metadata.type !== MetadataType.ProductV1) { | ||
throw new Error( | ||
@@ -185,0 +188,0 @@ `Invalid Offer Metadata: Type is not supported: '${existingOfferData.metadata.type}'` |
import { Web3LibAdapter } from "@bosonprotocol/common"; | ||
import { AddressZero } from "@ethersproject/constants"; | ||
import { erc20 } from ".."; | ||
import { getDecimals, getName, getSymbol } from "../erc20/handler"; | ||
@@ -85,5 +85,5 @@ export interface ITokenInfo { | ||
const [decimals, name, symbol] = await Promise.all([ | ||
erc20.handler.getDecimals(args), | ||
erc20.handler.getName(args), | ||
erc20.handler.getSymbol(args) | ||
getDecimals(args), | ||
getName(args), | ||
getSymbol(args) | ||
]); | ||
@@ -90,0 +90,0 @@ this._tokenInfos.set(tokenAddress.toLowerCase(), { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3654411
12
57603
+ Addedyup@^0.32.11
+ Added@babel/runtime@7.26.9(transitive)
+ Added@types/lodash@4.17.15(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlodash-es@4.17.21(transitive)
+ Addednanoclone@0.2.1(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedyup@0.32.11(transitive)