@coinlist-co/react 0.12.2-rc.818bed6 → 0.12.2-rc.8a0d02a

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.
@@ -2118,37 +2118,6 @@ function blockchainAmountFromRawOrThrow({
2118
2118
  }
2119
2119
 
2120
2120
  // src/universal/types/providers/centrifuge/centrifuge.ts
2121
- var CentrifugeVaultQuote = {
2122
- fromDto: (dto) => {
2123
- const spendDecimals = AssetDecimals(dto.spend_input_decimals);
2124
- const shareDecimals = AssetDecimals(dto.share_decimals);
2125
- return {
2126
- chain: EthereumChain(dto.chain),
2127
- symbol: AssetSymbol(dto.symbol),
2128
- spendInputAmount: blockchainAmountFromRawOrThrow({
2129
- label: "spend_input_amount",
2130
- raw: dto.spend_input_amount,
2131
- decimals: spendDecimals
2132
- }),
2133
- estimatedShares: blockchainAmountFromRawOrThrow({
2134
- label: "estimated_shares",
2135
- raw: dto.estimated_shares,
2136
- decimals: shareDecimals
2137
- }),
2138
- indicativePrice: decimalOrNull(dto.indicative_price),
2139
- minimumInputAmount: dto.minimum_input_amount === null ? null : blockchainAmountFromRawOrThrow({
2140
- label: "minimum_input_amount",
2141
- raw: dto.minimum_input_amount,
2142
- decimals: spendDecimals
2143
- }),
2144
- orderability: parseOrderability(
2145
- dto.can_order,
2146
- dto.reasons,
2147
- "CentrifugeVaultQuote"
2148
- )
2149
- };
2150
- }
2151
- };
2152
2121
  var CentrifugeVaultStatus = {
2153
2122
  fromDto: (dto) => ({
2154
2123
  chain: EthereumChain(dto.chain),
@@ -2187,12 +2156,7 @@ var CentrifugeVaultBuyTransaction = {
2187
2156
  }
2188
2157
  return {
2189
2158
  ...parseTransactionCore(dto, "CentrifugeVaultBuyTransaction"),
2190
- spendInputAmount,
2191
- estimatedShares: blockchainAmountFromRawOrThrow({
2192
- label: "estimated_shares",
2193
- raw: dto.estimated_shares,
2194
- decimals: AssetDecimals(dto.share_decimals)
2195
- })
2159
+ spendInputAmount
2196
2160
  };
2197
2161
  }
2198
2162
  };
@@ -2288,19 +2252,6 @@ function parseTransactionCore(dto, model) {
2288
2252
  }
2289
2253
 
2290
2254
  // src/universal/api/frontline/providers/centrifuge/centrifuge.ts
2291
- async function getCentrifugeVaultQuote(api, params) {
2292
- const dto = await api.send({
2293
- method: "GET",
2294
- url: "/v1/centrifuge/vault/quote",
2295
- queryParams: {
2296
- symbol: params.symbol,
2297
- chain: params.chain,
2298
- amount: params.amount.raw.toString()
2299
- },
2300
- attributes: Attributes.protected()
2301
- });
2302
- return CentrifugeVaultQuote.fromDto(dto);
2303
- }
2304
2255
  async function getCentrifugeVaultStatus(api, params) {
2305
2256
  const dto = await api.send({
2306
2257
  method: "GET",
@@ -2380,12 +2331,6 @@ var CentrifugeNamespaceImpl = class {
2380
2331
  this.ctx = ctx;
2381
2332
  this.log = internalLogger(ctx.logger, "CENTRIFUGE");
2382
2333
  }
2383
- async getQuote(params) {
2384
- return this.log.wrap("getQuote", params, async () => {
2385
- await this.ctx.ensureUserAuthenticated();
2386
- return getCentrifugeVaultQuote(this.ctx.api, params);
2387
- });
2388
- }
2389
2334
  async getVaultStatus(params) {
2390
2335
  return this.log.wrap("getVaultStatus", params, async () => {
2391
2336
  await this.ctx.ensureUserAuthenticated();