@rarible/ethereum-api-client
Advanced tools
Comparing version 0.1.23-beta6 to 0.1.23-beta7
@@ -15,3 +15,4 @@ import { Address } from "@rarible/types"; | ||
X2Y2 = "X2Y2", | ||
LOOKSRARE = "LOOKSRARE" | ||
LOOKSRARE = "LOOKSRARE", | ||
SUDOSWAP = "SUDOSWAP" | ||
} | ||
@@ -18,0 +19,0 @@ export declare type OrderActivity = OrderActivityMatch | OrderActivityBid | OrderActivityList | OrderActivityCancelBid | OrderActivityCancelList; |
@@ -11,2 +11,3 @@ "use strict"; | ||
OrderActivitySource["LOOKSRARE"] = "LOOKSRARE"; | ||
OrderActivitySource["SUDOSWAP"] = "SUDOSWAP"; | ||
})(OrderActivitySource = exports.OrderActivitySource || (exports.OrderActivitySource = {})); | ||
@@ -13,0 +14,0 @@ var OrderActivityMatchType; |
@@ -5,3 +5,3 @@ import { Address } from "@rarible/types"; | ||
import { Part } from "./Part"; | ||
export declare type AssetType = EthAssetType | Erc20AssetType | Erc721AssetType | Erc1155AssetType | Erc721LazyAssetType | Erc1155LazyAssetType | CryptoPunksAssetType | CollectionAssetType | GenerativeArtAssetType; | ||
export declare type AssetType = EthAssetType | Erc20AssetType | Erc721AssetType | Erc1155AssetType | Erc721LazyAssetType | Erc1155LazyAssetType | CryptoPunksAssetType | CollectionAssetType | AmmNftAssetType | GenerativeArtAssetType; | ||
export declare type EthAssetType = { | ||
@@ -52,2 +52,6 @@ assetClass: "ETH"; | ||
}; | ||
export declare type AmmNftAssetType = { | ||
assetClass: "AMM_NFT"; | ||
contract: Address; | ||
}; | ||
export declare type GenerativeArtAssetType = { | ||
@@ -54,0 +58,0 @@ assetClass: "GEN_ART"; |
@@ -69,2 +69,3 @@ export * from "./NftSignature"; | ||
export * from "./AuctionHistory"; | ||
export * from "./SudoSwapCurveType"; | ||
export * from "./Order"; | ||
@@ -101,2 +102,3 @@ export * from "./CreateTransactionRequest"; | ||
export * from "./ActivityFilterAllType"; | ||
export * from "./SudoSwapPoolType"; | ||
export * from "./EncodedOrder"; | ||
@@ -103,0 +105,0 @@ export * from "./EthereumApiErrorBadRequest"; |
@@ -81,2 +81,3 @@ "use strict"; | ||
__exportStar(require("./AuctionHistory"), exports); | ||
__exportStar(require("./SudoSwapCurveType"), exports); | ||
__exportStar(require("./Order"), exports); | ||
@@ -113,2 +114,3 @@ __exportStar(require("./CreateTransactionRequest"), exports); | ||
__exportStar(require("./ActivityFilterAllType"), exports); | ||
__exportStar(require("./SudoSwapPoolType"), exports); | ||
__exportStar(require("./EncodedOrder"), exports); | ||
@@ -115,0 +117,0 @@ __exportStar(require("./EthereumApiErrorBadRequest"), exports); |
@@ -5,2 +5,3 @@ import { Address } from "@rarible/types"; | ||
import { Binary } from "@rarible/types"; | ||
import { OrderAmmDataV1 } from "./OrderData"; | ||
import { OrderCryptoPunksData } from "./OrderData"; | ||
@@ -17,3 +18,3 @@ import { OrderDataLegacy } from "./OrderData"; | ||
import { Word } from "@rarible/types"; | ||
export declare type Order = LegacyOrder | RaribleV2Order | OpenSeaV1Order | SeaportV1Order | CryptoPunkOrder | X2Y2Order | LooksRareOrder; | ||
export declare type Order = LegacyOrder | RaribleV2Order | OpenSeaV1Order | SeaportV1Order | CryptoPunkOrder | X2Y2Order | LooksRareOrder | AmmOrder; | ||
export declare type LegacyOrder = { | ||
@@ -222,1 +223,30 @@ type: "RARIBLE_V1"; | ||
}; | ||
export declare type AmmOrder = { | ||
type: "AMM"; | ||
maker: Address; | ||
taker?: Address; | ||
make: Asset; | ||
take: Asset; | ||
fill: BigNumber; | ||
fillValue?: BigNumber; | ||
start?: number; | ||
end?: number; | ||
makeStock: BigNumber; | ||
makeStockValue?: BigNumber; | ||
cancelled: boolean; | ||
salt: Word; | ||
signature?: Binary; | ||
createdAt: string; | ||
lastUpdateAt: string; | ||
dbUpdatedAt?: string; | ||
pending?: Array<OrderExchangeHistory>; | ||
hash: Word; | ||
makeBalance?: BigNumber; | ||
makePrice?: BigNumber; | ||
takePrice?: BigNumber; | ||
makePriceUsd?: BigNumber; | ||
takePriceUsd?: BigNumber; | ||
priceHistory?: Array<OrderPriceHistoryRecord>; | ||
status?: OrderStatus; | ||
data: OrderAmmDataV1; | ||
}; |
@@ -5,2 +5,3 @@ import { Address } from "@rarible/types"; | ||
import { Binary } from "@rarible/types"; | ||
import { OrderAmmDataV1 } from "./OrderData"; | ||
import { OrderBidStatus } from "./OrderBidStatus"; | ||
@@ -12,4 +13,5 @@ import { OrderDataLegacy } from "./OrderData"; | ||
import { OrderSeaportDataV1 } from "./OrderData"; | ||
import { OrderX2Y2Data } from "./OrderData"; | ||
import { Word } from "@rarible/types"; | ||
export declare type OrderBid = LegacyOrderBid | RaribleV2OrderBid | OpenSeaV1OrderBid | SeaportV1OrderBid | CryptoPunksOrderBid | LooksRareOrderBid; | ||
export declare type OrderBid = LegacyOrderBid | RaribleV2OrderBid | OpenSeaV1OrderBid | SeaportV1OrderBid | CryptoPunksOrderBid | LooksRareOrderBid | X2Y2OrderBid | AmmOrderBid; | ||
export declare type LegacyOrderBid = { | ||
@@ -128,1 +130,39 @@ type: "RARIBLE_V1"; | ||
}; | ||
export declare type X2Y2OrderBid = { | ||
type: "X2Y2"; | ||
orderHash: Word; | ||
status: OrderBidStatus; | ||
maker: Address; | ||
taker?: Address; | ||
make: Asset; | ||
take: Asset; | ||
makeBalance?: BigNumber; | ||
makePriceUsd?: BigNumber; | ||
takePriceUsd?: BigNumber; | ||
fill: BigNumber; | ||
makeStock: BigNumber; | ||
cancelled: boolean; | ||
salt: Binary; | ||
signature?: Binary; | ||
createdAt: string; | ||
data: OrderX2Y2Data; | ||
}; | ||
export declare type AmmOrderBid = { | ||
type: "AMM"; | ||
orderHash: Word; | ||
status: OrderBidStatus; | ||
maker: Address; | ||
taker?: Address; | ||
make: Asset; | ||
take: Asset; | ||
makeBalance?: BigNumber; | ||
makePriceUsd?: BigNumber; | ||
takePriceUsd?: BigNumber; | ||
fill: BigNumber; | ||
makeStock: BigNumber; | ||
cancelled: boolean; | ||
salt: Binary; | ||
signature?: Binary; | ||
createdAt: string; | ||
data: OrderAmmDataV1; | ||
}; |
@@ -8,4 +8,6 @@ import { Address } from "@rarible/types"; | ||
import { SeaportOrderType } from "./SeaportOrderType"; | ||
import { SudoSwapCurveType } from "./SudoSwapCurveType"; | ||
import { SudoSwapPoolType } from "./SudoSwapPoolType"; | ||
import { Word } from "@rarible/types"; | ||
export declare type OrderData = OrderRaribleV2Data | OrderDataLegacy | OrderOpenSeaV1DataV1 | OrderSeaportDataV1 | OrderCryptoPunksData | OrderLooksRareDataV1 | OrderX2Y2Data; | ||
export declare type OrderData = OrderRaribleV2Data | OrderDataLegacy | OrderOpenSeaV1DataV1 | OrderSeaportDataV1 | OrderCryptoPunksData | OrderLooksRareDataV1 | OrderX2Y2Data | OrderAmmDataV1; | ||
export declare type OrderRaribleV2Data = OrderRaribleV2DataV1 | OrderRaribleV2DataV2 | OrderRaribleV2DataV3Sell | OrderRaribleV2DataV3Buy; | ||
@@ -107,1 +109,13 @@ export declare type OrderRaribleV2DataV1 = { | ||
}; | ||
export declare type OrderAmmDataV1 = OrderSudoSwapAmmDataV1; | ||
export declare type OrderSudoSwapAmmDataV1 = { | ||
dataType: "SUDOSWAP_AMM_DATA_V1"; | ||
poolAddress: Address; | ||
bondingCurve: Address; | ||
curveType: SudoSwapCurveType; | ||
assetRecipient: Address; | ||
poolType: SudoSwapPoolType; | ||
delta: BigNumber; | ||
fee: BigNumber; | ||
feeDecimal: number; | ||
}; |
import { Order } from "./Order"; | ||
export declare type OrderEvent = OrderUpdateEvent; | ||
export declare type OrderEvent = OrderUpdateEvent | AmmOrderNftUpdateEvent; | ||
export declare type OrderUpdateEvent = { | ||
@@ -9,1 +9,8 @@ type: "UPDATE"; | ||
}; | ||
export declare type AmmOrderNftUpdateEvent = { | ||
type: "AMM_NFT_UPDATE"; | ||
eventId: string; | ||
orderId: string; | ||
inNft: Array<string>; | ||
outNft: Array<string>; | ||
}; |
@@ -6,3 +6,3 @@ import { Address } from "@rarible/types"; | ||
import { Word } from "@rarible/types"; | ||
export declare type OrderExchangeHistory = OrderCancel | OrderSideMatch | OnChainOrder; | ||
export declare type OrderExchangeHistory = OrderCancel | OrderSideMatch | OnChainOrder | OnChainAmmOrder; | ||
export declare type OrderCancel = { | ||
@@ -41,1 +41,9 @@ type: "CANCEL"; | ||
}; | ||
export declare type OnChainAmmOrder = { | ||
type: "ON_CHAIN_AMM_ORDER"; | ||
hash: Word; | ||
make?: Asset; | ||
take?: Asset; | ||
date: string; | ||
maker?: Address; | ||
}; |
@@ -6,3 +6,4 @@ export declare enum Platform { | ||
X2Y2 = "X2Y2", | ||
LOOKSRARE = "LOOKSRARE" | ||
LOOKSRARE = "LOOKSRARE", | ||
SUDOSWAP = "SUDOSWAP" | ||
} |
@@ -11,2 +11,3 @@ "use strict"; | ||
Platform["LOOKSRARE"] = "LOOKSRARE"; | ||
Platform["SUDOSWAP"] = "SUDOSWAP"; | ||
})(Platform = exports.Platform || (exports.Platform = {})); |
{ | ||
"name": "@rarible/ethereum-api-client", | ||
"version": "0.1.23-beta6", | ||
"version": "0.1.23-beta7", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "axios", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
727751
300
16717