@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
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
getUUIDv4,
|
|
10
10
|
internalLogger,
|
|
11
11
|
viemChain
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-C6GF7MDF.js";
|
|
13
13
|
|
|
14
14
|
// src/universal/api/nabu/config.ts
|
|
15
15
|
var NABU_BASE_URL = "https://asset.coinlist.co";
|
|
@@ -435,4 +435,4 @@ export {
|
|
|
435
435
|
SDK_LOGGER_NAME,
|
|
436
436
|
loggerOverPino
|
|
437
437
|
};
|
|
438
|
-
//# sourceMappingURL=chunk-
|
|
438
|
+
//# sourceMappingURL=chunk-3WW5FLT7.js.map
|
|
@@ -639,37 +639,6 @@ function requiredArray(value, field) {
|
|
|
639
639
|
}
|
|
640
640
|
|
|
641
641
|
// src/universal/types/providers/centrifuge/centrifuge.ts
|
|
642
|
-
var CentrifugeVaultQuote = {
|
|
643
|
-
fromDto: (dto) => {
|
|
644
|
-
const spendDecimals = AssetDecimals(dto.spend_input_decimals);
|
|
645
|
-
const shareDecimals = AssetDecimals(dto.share_decimals);
|
|
646
|
-
return {
|
|
647
|
-
chain: EthereumChain(dto.chain),
|
|
648
|
-
symbol: AssetSymbol(dto.symbol),
|
|
649
|
-
spendInputAmount: blockchainAmountFromRawOrThrow({
|
|
650
|
-
label: "spend_input_amount",
|
|
651
|
-
raw: dto.spend_input_amount,
|
|
652
|
-
decimals: spendDecimals
|
|
653
|
-
}),
|
|
654
|
-
estimatedShares: blockchainAmountFromRawOrThrow({
|
|
655
|
-
label: "estimated_shares",
|
|
656
|
-
raw: dto.estimated_shares,
|
|
657
|
-
decimals: shareDecimals
|
|
658
|
-
}),
|
|
659
|
-
indicativePrice: decimalOrNull(dto.indicative_price),
|
|
660
|
-
minimumInputAmount: dto.minimum_input_amount === null ? null : blockchainAmountFromRawOrThrow({
|
|
661
|
-
label: "minimum_input_amount",
|
|
662
|
-
raw: dto.minimum_input_amount,
|
|
663
|
-
decimals: spendDecimals
|
|
664
|
-
}),
|
|
665
|
-
orderability: parseOrderability(
|
|
666
|
-
dto.can_order,
|
|
667
|
-
dto.reasons,
|
|
668
|
-
"CentrifugeVaultQuote"
|
|
669
|
-
)
|
|
670
|
-
};
|
|
671
|
-
}
|
|
672
|
-
};
|
|
673
642
|
var CentrifugeVaultStatus = {
|
|
674
643
|
fromDto: (dto) => ({
|
|
675
644
|
chain: EthereumChain(dto.chain),
|
|
@@ -708,12 +677,7 @@ var CentrifugeVaultBuyTransaction = {
|
|
|
708
677
|
}
|
|
709
678
|
return {
|
|
710
679
|
...parseTransactionCore(dto, "CentrifugeVaultBuyTransaction"),
|
|
711
|
-
spendInputAmount
|
|
712
|
-
estimatedShares: blockchainAmountFromRawOrThrow({
|
|
713
|
-
label: "estimated_shares",
|
|
714
|
-
raw: dto.estimated_shares,
|
|
715
|
-
decimals: AssetDecimals(dto.share_decimals)
|
|
716
|
-
})
|
|
680
|
+
spendInputAmount
|
|
717
681
|
};
|
|
718
682
|
}
|
|
719
683
|
};
|
|
@@ -837,19 +801,6 @@ function parseTransactionCore(dto, model) {
|
|
|
837
801
|
}
|
|
838
802
|
|
|
839
803
|
// src/universal/api/frontline/providers/centrifuge/centrifuge.ts
|
|
840
|
-
async function getCentrifugeVaultQuote(api, params) {
|
|
841
|
-
const dto = await api.send({
|
|
842
|
-
method: "GET",
|
|
843
|
-
url: "/v1/centrifuge/vault/quote",
|
|
844
|
-
queryParams: {
|
|
845
|
-
symbol: params.symbol,
|
|
846
|
-
chain: params.chain,
|
|
847
|
-
amount: params.amount.raw.toString()
|
|
848
|
-
},
|
|
849
|
-
attributes: Attributes.protected()
|
|
850
|
-
});
|
|
851
|
-
return CentrifugeVaultQuote.fromDto(dto);
|
|
852
|
-
}
|
|
853
804
|
async function getCentrifugeVaultStatus(api, params) {
|
|
854
805
|
const dto = await api.send({
|
|
855
806
|
method: "GET",
|
|
@@ -1112,12 +1063,6 @@ var CentrifugeNamespaceImpl = class {
|
|
|
1112
1063
|
this.ctx = ctx;
|
|
1113
1064
|
this.log = internalLogger(ctx.logger, "CENTRIFUGE");
|
|
1114
1065
|
}
|
|
1115
|
-
async getQuote(params) {
|
|
1116
|
-
return this.log.wrap("getQuote", params, async () => {
|
|
1117
|
-
await this.ctx.ensureUserAuthenticated();
|
|
1118
|
-
return getCentrifugeVaultQuote(this.ctx.api, params);
|
|
1119
|
-
});
|
|
1120
|
-
}
|
|
1121
1066
|
async getVaultStatus(params) {
|
|
1122
1067
|
return this.log.wrap("getVaultStatus", params, async () => {
|
|
1123
1068
|
await this.ctx.ensureUserAuthenticated();
|
|
@@ -3930,7 +3875,6 @@ export {
|
|
|
3930
3875
|
Bps,
|
|
3931
3876
|
blockchainAmountFromRawOrThrow,
|
|
3932
3877
|
parseBlockchainAmount,
|
|
3933
|
-
CentrifugeVaultQuote,
|
|
3934
3878
|
CentrifugeVaultStatus,
|
|
3935
3879
|
CentrifugeVaultBuyTransaction,
|
|
3936
3880
|
CentrifugeVaultClaimTransaction,
|
|
@@ -4034,4 +3978,4 @@ export {
|
|
|
4034
3978
|
OAuthRefreshToken,
|
|
4035
3979
|
OAuthSession
|
|
4036
3980
|
};
|
|
4037
|
-
//# sourceMappingURL=chunk-
|
|
3981
|
+
//# sourceMappingURL=chunk-C6GF7MDF.js.map
|