@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.
- package/dist/{chunk-2HCSM3FB.js → chunk-3WW5FLT7.js} +2 -2
- package/dist/{chunk-YMDYLYL3.js → chunk-C6GF7MDF.js} +2 -58
- package/dist/chunk-C6GF7MDF.js.map +1 -0
- package/dist/{chunk-OUFI3D3Q.js → chunk-IZJ4JSSC.js} +2 -8
- package/dist/{chunk-OUFI3D3Q.js.map → chunk-IZJ4JSSC.js.map} +1 -1
- package/dist/client/index.cjs +598 -912
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +41 -174
- package/dist/client/index.d.ts +41 -174
- package/dist/client/index.js +524 -777
- package/dist/client/index.js.map +1 -1
- package/dist/server/index.cjs +1 -56
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +3 -6
- package/dist/server/index.d.ts +3 -6
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +1 -1
- package/dist/{time-DJU6E8KK.d.cts → time-CVZpAkGY.d.cts} +10 -75
- package/dist/{time-DJU6E8KK.d.ts → time-CVZpAkGY.d.ts} +10 -75
- package/dist/{token-registry-snapshot-DGG5N27C.d.ts → token-registry-snapshot-BkwA8KmD.d.ts} +1 -1
- package/dist/{token-registry-snapshot-B0xCp3GD.d.cts → token-registry-snapshot-bR14QehS.d.cts} +1 -1
- package/dist/universal/index.cjs +1 -64
- package/dist/universal/index.cjs.map +1 -1
- package/dist/universal/index.d.cts +8 -22
- package/dist/universal/index.d.ts +8 -22
- package/dist/universal/index.js +2 -6
- package/package.json +1 -1
- package/dist/chunk-YMDYLYL3.js.map +0 -1
- /package/dist/{chunk-2HCSM3FB.js.map → chunk-3WW5FLT7.js.map} +0 -0
package/dist/server/index.cjs
CHANGED
|
@@ -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();
|