@0xtorch/core 0.0.28 → 0.0.30
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/_cjs/assets/definitions/astar.js +1 -0
- package/_cjs/assets/definitions/astar.js.map +1 -1
- package/_cjs/assets/definitions/avalanche.js +1 -0
- package/_cjs/assets/definitions/avalanche.js.map +1 -1
- package/_cjs/assets/definitions/bnb.js +1 -0
- package/_cjs/assets/definitions/bnb.js.map +1 -1
- package/_cjs/assets/definitions/coingeckoCryptoCurrencyDataSource.js +14 -14
- package/_cjs/assets/definitions/coingeckoCryptoCurrencyDataSource.js.map +1 -1
- package/_cjs/assets/definitions/ethereum.js +1 -0
- package/_cjs/assets/definitions/ethereum.js.map +1 -1
- package/_cjs/assets/definitions/fantom.js +1 -0
- package/_cjs/assets/definitions/fantom.js.map +1 -1
- package/_cjs/assets/definitions/kava.js +1 -0
- package/_cjs/assets/definitions/kava.js.map +1 -1
- package/_cjs/assets/definitions/mantle.js +1 -0
- package/_cjs/assets/definitions/mantle.js.map +1 -1
- package/_cjs/assets/definitions/maticNetwork.js +1 -0
- package/_cjs/assets/definitions/maticNetwork.js.map +1 -1
- package/_cjs/assets/definitions/metis.js +1 -0
- package/_cjs/assets/definitions/metis.js.map +1 -1
- package/_cjs/assets/definitions/moonbeam.js +1 -0
- package/_cjs/assets/definitions/moonbeam.js.map +1 -1
- package/_cjs/assets/definitions/moonriver.js +1 -0
- package/_cjs/assets/definitions/moonriver.js.map +1 -1
- package/_cjs/assets/definitions/oasys.js +1 -0
- package/_cjs/assets/definitions/oasys.js.map +1 -1
- package/_cjs/assets/definitions/ronin.js +1 -0
- package/_cjs/assets/definitions/ronin.js.map +1 -1
- package/_cjs/assets/definitions/solana.js +1 -0
- package/_cjs/assets/definitions/solana.js.map +1 -1
- package/_cjs/assets/schemas/cryptoCurrency.js +2 -0
- package/_cjs/assets/schemas/cryptoCurrency.js.map +1 -1
- package/_cjs/setAccountActionPrices.js +19 -11
- package/_cjs/setAccountActionPrices.js.map +1 -1
- package/_cjs/tests/utils.js +3 -4
- package/_cjs/tests/utils.js.map +1 -1
- package/_esm/assets/definitions/astar.js +1 -0
- package/_esm/assets/definitions/astar.js.map +1 -1
- package/_esm/assets/definitions/avalanche.js +1 -0
- package/_esm/assets/definitions/avalanche.js.map +1 -1
- package/_esm/assets/definitions/bnb.js +1 -0
- package/_esm/assets/definitions/bnb.js.map +1 -1
- package/_esm/assets/definitions/coingeckoCryptoCurrencyDataSource.js +15 -15
- package/_esm/assets/definitions/coingeckoCryptoCurrencyDataSource.js.map +1 -1
- package/_esm/assets/definitions/ethereum.js +1 -0
- package/_esm/assets/definitions/ethereum.js.map +1 -1
- package/_esm/assets/definitions/fantom.js +1 -0
- package/_esm/assets/definitions/fantom.js.map +1 -1
- package/_esm/assets/definitions/kava.js +1 -0
- package/_esm/assets/definitions/kava.js.map +1 -1
- package/_esm/assets/definitions/mantle.js +1 -0
- package/_esm/assets/definitions/mantle.js.map +1 -1
- package/_esm/assets/definitions/maticNetwork.js +1 -0
- package/_esm/assets/definitions/maticNetwork.js.map +1 -1
- package/_esm/assets/definitions/metis.js +1 -0
- package/_esm/assets/definitions/metis.js.map +1 -1
- package/_esm/assets/definitions/moonbeam.js +1 -0
- package/_esm/assets/definitions/moonbeam.js.map +1 -1
- package/_esm/assets/definitions/moonriver.js +1 -0
- package/_esm/assets/definitions/moonriver.js.map +1 -1
- package/_esm/assets/definitions/oasys.js +1 -0
- package/_esm/assets/definitions/oasys.js.map +1 -1
- package/_esm/assets/definitions/ronin.js +1 -0
- package/_esm/assets/definitions/ronin.js.map +1 -1
- package/_esm/assets/definitions/solana.js +1 -0
- package/_esm/assets/definitions/solana.js.map +1 -1
- package/_esm/assets/schemas/cryptoCurrency.js +2 -0
- package/_esm/assets/schemas/cryptoCurrency.js.map +1 -1
- package/_esm/setAccountActionPrices.js +19 -11
- package/_esm/setAccountActionPrices.js.map +1 -1
- package/_esm/tests/utils.js +3 -4
- package/_esm/tests/utils.js.map +1 -1
- package/_types/actions/schemas/action.d.ts +1378 -0
- package/_types/actions/schemas/action.d.ts.map +1 -1
- package/_types/actions/schemas/borrow/borrow.d.ts +26 -0
- package/_types/actions/schemas/borrow/borrow.d.ts.map +1 -1
- package/_types/actions/schemas/crossActionBundle.d.ts +90 -0
- package/_types/actions/schemas/crossActionBundle.d.ts.map +1 -1
- package/_types/actions/schemas/crossReplace/bridgeFrom.d.ts +26 -0
- package/_types/actions/schemas/crossReplace/bridgeFrom.d.ts.map +1 -1
- package/_types/actions/schemas/crossReplace/bridgeTo.d.ts +26 -0
- package/_types/actions/schemas/crossReplace/bridgeTo.d.ts.map +1 -1
- package/_types/actions/schemas/crossReplace/crossReplace.d.ts +52 -0
- package/_types/actions/schemas/crossReplace/crossReplace.d.ts.map +1 -1
- package/_types/actions/schemas/crossTrade/crossTrade.d.ts +52 -0
- package/_types/actions/schemas/crossTrade/crossTrade.d.ts.map +1 -1
- package/_types/actions/schemas/default/accountAction.d.ts +99 -0
- package/_types/actions/schemas/default/accountAction.d.ts.map +1 -1
- package/_types/actions/schemas/default/normalAction.d.ts +99 -0
- package/_types/actions/schemas/default/normalAction.d.ts.map +1 -1
- package/_types/actions/schemas/default/transfer.d.ts +88 -0
- package/_types/actions/schemas/default/transfer.d.ts.map +1 -1
- package/_types/actions/schemas/deposit/addLiquidity.d.ts +52 -0
- package/_types/actions/schemas/deposit/addLiquidity.d.ts.map +1 -1
- package/_types/actions/schemas/deposit/deposit.d.ts +26 -0
- package/_types/actions/schemas/deposit/deposit.d.ts.map +1 -1
- package/_types/actions/schemas/deposit/depositWithBond.d.ts +52 -0
- package/_types/actions/schemas/deposit/depositWithBond.d.ts.map +1 -1
- package/_types/actions/schemas/deposit/stake.d.ts +26 -0
- package/_types/actions/schemas/deposit/stake.d.ts.map +1 -1
- package/_types/actions/schemas/fee/fee.d.ts +26 -0
- package/_types/actions/schemas/fee/fee.d.ts.map +1 -1
- package/_types/actions/schemas/fee/transactionFee.d.ts +26 -0
- package/_types/actions/schemas/fee/transactionFee.d.ts.map +1 -1
- package/_types/actions/schemas/ignore/ignore.d.ts +39 -0
- package/_types/actions/schemas/ignore/ignore.d.ts.map +1 -1
- package/_types/actions/schemas/ignore/move.d.ts +39 -0
- package/_types/actions/schemas/ignore/move.d.ts.map +1 -1
- package/_types/actions/schemas/ignore/receiveFromCex.d.ts +26 -0
- package/_types/actions/schemas/ignore/receiveFromCex.d.ts.map +1 -1
- package/_types/actions/schemas/ignore/sendToCex.d.ts +26 -0
- package/_types/actions/schemas/ignore/sendToCex.d.ts.map +1 -1
- package/_types/actions/schemas/ignore/spam.d.ts +52 -0
- package/_types/actions/schemas/ignore/spam.d.ts.map +1 -1
- package/_types/actions/schemas/income/atomicArbitrage.d.ts +52 -0
- package/_types/actions/schemas/income/atomicArbitrage.d.ts.map +1 -1
- package/_types/actions/schemas/income/income.d.ts +26 -0
- package/_types/actions/schemas/income/income.d.ts.map +1 -1
- package/_types/actions/schemas/income/nftRoyalty.d.ts +13 -0
- package/_types/actions/schemas/income/nftRoyalty.d.ts.map +1 -1
- package/_types/actions/schemas/income/swapIncome.d.ts +13 -0
- package/_types/actions/schemas/income/swapIncome.d.ts.map +1 -1
- package/_types/actions/schemas/reduce/reduce.d.ts +13 -0
- package/_types/actions/schemas/reduce/reduce.d.ts.map +1 -1
- package/_types/actions/schemas/repayment/repayment.d.ts +26 -0
- package/_types/actions/schemas/repayment/repayment.d.ts.map +1 -1
- package/_types/actions/schemas/repayment/repaymentWithDebt.d.ts +52 -0
- package/_types/actions/schemas/repayment/repaymentWithDebt.d.ts.map +1 -1
- package/_types/actions/schemas/replace/replace.d.ts +52 -0
- package/_types/actions/schemas/replace/replace.d.ts.map +1 -1
- package/_types/actions/schemas/replace/unwrap.d.ts +52 -0
- package/_types/actions/schemas/replace/unwrap.d.ts.map +1 -1
- package/_types/actions/schemas/replace/wrap.d.ts +52 -0
- package/_types/actions/schemas/replace/wrap.d.ts.map +1 -1
- package/_types/actions/schemas/trade/buyCrypto.d.ts +26 -0
- package/_types/actions/schemas/trade/buyCrypto.d.ts.map +1 -1
- package/_types/actions/schemas/trade/buyNft.d.ts +26 -0
- package/_types/actions/schemas/trade/buyNft.d.ts.map +1 -1
- package/_types/actions/schemas/trade/mintNft.d.ts +26 -0
- package/_types/actions/schemas/trade/mintNft.d.ts.map +1 -1
- package/_types/actions/schemas/trade/sellCrypto.d.ts +26 -0
- package/_types/actions/schemas/trade/sellCrypto.d.ts.map +1 -1
- package/_types/actions/schemas/trade/sellNft.d.ts +26 -0
- package/_types/actions/schemas/trade/sellNft.d.ts.map +1 -1
- package/_types/actions/schemas/trade/trade.d.ts +52 -0
- package/_types/actions/schemas/trade/trade.d.ts.map +1 -1
- package/_types/actions/schemas/transfer/swapTransfer.d.ts +13 -0
- package/_types/actions/schemas/transfer/swapTransfer.d.ts.map +1 -1
- package/_types/actions/schemas/transfer/transfer.d.ts +52 -0
- package/_types/actions/schemas/transfer/transfer.d.ts.map +1 -1
- package/_types/actions/schemas/valuedown/valuedown.d.ts +26 -0
- package/_types/actions/schemas/valuedown/valuedown.d.ts.map +1 -1
- package/_types/actions/schemas/valueup/valueup.d.ts +26 -0
- package/_types/actions/schemas/valueup/valueup.d.ts.map +1 -1
- package/_types/actions/schemas/withdraw/removeLiquidity.d.ts +52 -0
- package/_types/actions/schemas/withdraw/removeLiquidity.d.ts.map +1 -1
- package/_types/actions/schemas/withdraw/unstake.d.ts +26 -0
- package/_types/actions/schemas/withdraw/unstake.d.ts.map +1 -1
- package/_types/actions/schemas/withdraw/withdraw.d.ts +26 -0
- package/_types/actions/schemas/withdraw/withdraw.d.ts.map +1 -1
- package/_types/actions/schemas/withdraw/withdrawWithBond.d.ts +52 -0
- package/_types/actions/schemas/withdraw/withdrawWithBond.d.ts.map +1 -1
- package/_types/actions/utils.d.ts +3 -0
- package/_types/actions/utils.d.ts.map +1 -1
- package/_types/assets/creates/createCryptoCurrency.d.ts +1 -0
- package/_types/assets/creates/createCryptoCurrency.d.ts.map +1 -1
- package/_types/assets/definitions/astar.d.ts +1 -0
- package/_types/assets/definitions/astar.d.ts.map +1 -1
- package/_types/assets/definitions/avalanche.d.ts +1 -0
- package/_types/assets/definitions/avalanche.d.ts.map +1 -1
- package/_types/assets/definitions/bnb.d.ts +1 -0
- package/_types/assets/definitions/bnb.d.ts.map +1 -1
- package/_types/assets/definitions/coingeckoCryptoCurrencyDataSource.d.ts +2 -1
- package/_types/assets/definitions/coingeckoCryptoCurrencyDataSource.d.ts.map +1 -1
- package/_types/assets/definitions/ethereum.d.ts +1 -0
- package/_types/assets/definitions/ethereum.d.ts.map +1 -1
- package/_types/assets/definitions/fantom.d.ts +1 -0
- package/_types/assets/definitions/fantom.d.ts.map +1 -1
- package/_types/assets/definitions/kava.d.ts +1 -0
- package/_types/assets/definitions/kava.d.ts.map +1 -1
- package/_types/assets/definitions/mantle.d.ts +1 -0
- package/_types/assets/definitions/mantle.d.ts.map +1 -1
- package/_types/assets/definitions/maticNetwork.d.ts +1 -0
- package/_types/assets/definitions/maticNetwork.d.ts.map +1 -1
- package/_types/assets/definitions/metis.d.ts +1 -0
- package/_types/assets/definitions/metis.d.ts.map +1 -1
- package/_types/assets/definitions/moonbeam.d.ts +1 -0
- package/_types/assets/definitions/moonbeam.d.ts.map +1 -1
- package/_types/assets/definitions/moonriver.d.ts +1 -0
- package/_types/assets/definitions/moonriver.d.ts.map +1 -1
- package/_types/assets/definitions/oasys.d.ts +1 -0
- package/_types/assets/definitions/oasys.d.ts.map +1 -1
- package/_types/assets/definitions/ronin.d.ts +1 -0
- package/_types/assets/definitions/ronin.d.ts.map +1 -1
- package/_types/assets/definitions/solana.d.ts +1 -0
- package/_types/assets/definitions/solana.d.ts.map +1 -1
- package/_types/assets/schemas/asset.d.ts +5 -0
- package/_types/assets/schemas/asset.d.ts.map +1 -1
- package/_types/assets/schemas/cryptoCurrency.d.ts +5 -0
- package/_types/assets/schemas/cryptoCurrency.d.ts.map +1 -1
- package/_types/assets/types/dataSource.d.ts +2 -3
- package/_types/assets/types/dataSource.d.ts.map +1 -1
- package/_types/setAccountActionPrices.d.ts +57 -0
- package/_types/setAccountActionPrices.d.ts.map +1 -1
- package/_types/tests/utils.d.ts.map +1 -1
- package/assets/definitions/astar.ts +1 -0
- package/assets/definitions/avalanche.ts +1 -0
- package/assets/definitions/bnb.ts +1 -0
- package/assets/definitions/coingeckoCryptoCurrencyDataSource.ts +21 -25
- package/assets/definitions/ethereum.ts +1 -0
- package/assets/definitions/fantom.ts +1 -0
- package/assets/definitions/kava.ts +1 -0
- package/assets/definitions/mantle.ts +1 -0
- package/assets/definitions/maticNetwork.ts +1 -0
- package/assets/definitions/metis.ts +1 -0
- package/assets/definitions/moonbeam.ts +1 -0
- package/assets/definitions/moonriver.ts +1 -0
- package/assets/definitions/oasys.ts +1 -0
- package/assets/definitions/ronin.ts +1 -0
- package/assets/definitions/solana.ts +1 -0
- package/assets/schemas/cryptoCurrency.ts +2 -0
- package/assets/types/dataSource.ts +2 -3
- package/package.json +1 -1
- package/setAccountActionPrices.ts +20 -12
- package/tests/utils.ts +3 -4
- package/.DS_Store +0 -0
- package/actions/.DS_Store +0 -0
- package/assets/.DS_Store +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solana.d.ts","sourceRoot":"","sources":["../../../assets/definitions/solana.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"solana.d.ts","sourceRoot":"","sources":["../../../assets/definitions/solana.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;CAYjB,CAAA"}
|
|
@@ -42,6 +42,7 @@ export declare const assetSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
42
42
|
decimals: number;
|
|
43
43
|
} | undefined;
|
|
44
44
|
}>;
|
|
45
|
+
priceDatasourceId: z.ZodOptional<z.ZodString>;
|
|
45
46
|
updatedAt: z.ZodNumber;
|
|
46
47
|
}, "strip", z.ZodTypeAny, {
|
|
47
48
|
symbol: string;
|
|
@@ -57,6 +58,7 @@ export declare const assetSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
57
58
|
};
|
|
58
59
|
updatedAt: number;
|
|
59
60
|
icon?: string | undefined;
|
|
61
|
+
priceDatasourceId?: string | undefined;
|
|
60
62
|
}, {
|
|
61
63
|
symbol: string;
|
|
62
64
|
type: "CryptoCurrency";
|
|
@@ -71,8 +73,10 @@ export declare const assetSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
71
73
|
};
|
|
72
74
|
updatedAt: number;
|
|
73
75
|
icon?: string | undefined;
|
|
76
|
+
priceDatasourceId?: string | undefined;
|
|
74
77
|
}>, {
|
|
75
78
|
icon: string | undefined;
|
|
79
|
+
priceDatasourceId: string | undefined;
|
|
76
80
|
symbol: string;
|
|
77
81
|
type: "CryptoCurrency";
|
|
78
82
|
id: string;
|
|
@@ -99,6 +103,7 @@ export declare const assetSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
99
103
|
};
|
|
100
104
|
updatedAt: number;
|
|
101
105
|
icon?: string | undefined;
|
|
106
|
+
priceDatasourceId?: string | undefined;
|
|
102
107
|
}>, z.ZodEffects<z.ZodObject<{
|
|
103
108
|
type: z.ZodLiteral<"FiatCurrency">;
|
|
104
109
|
id: z.ZodUnion<[z.ZodLiteral<"cny">, z.ZodLiteral<"eur">, z.ZodLiteral<"idr">, z.ZodLiteral<"jpy">, z.ZodLiteral<"krw">, z.ZodLiteral<"rub">, z.ZodLiteral<"twd">, z.ZodLiteral<"usd">]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../../assets/schemas/asset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../../assets/schemas/asset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAItB,CAAA"}
|
|
@@ -42,6 +42,7 @@ export declare const cryptoCurrencySchema: z.ZodEffects<z.ZodObject<{
|
|
|
42
42
|
decimals: number;
|
|
43
43
|
} | undefined;
|
|
44
44
|
}>;
|
|
45
|
+
priceDatasourceId: z.ZodOptional<z.ZodString>;
|
|
45
46
|
updatedAt: z.ZodNumber;
|
|
46
47
|
}, "strip", z.ZodTypeAny, {
|
|
47
48
|
symbol: string;
|
|
@@ -57,6 +58,7 @@ export declare const cryptoCurrencySchema: z.ZodEffects<z.ZodObject<{
|
|
|
57
58
|
};
|
|
58
59
|
updatedAt: number;
|
|
59
60
|
icon?: string | undefined;
|
|
61
|
+
priceDatasourceId?: string | undefined;
|
|
60
62
|
}, {
|
|
61
63
|
symbol: string;
|
|
62
64
|
type: "CryptoCurrency";
|
|
@@ -71,8 +73,10 @@ export declare const cryptoCurrencySchema: z.ZodEffects<z.ZodObject<{
|
|
|
71
73
|
};
|
|
72
74
|
updatedAt: number;
|
|
73
75
|
icon?: string | undefined;
|
|
76
|
+
priceDatasourceId?: string | undefined;
|
|
74
77
|
}>, {
|
|
75
78
|
icon: string | undefined;
|
|
79
|
+
priceDatasourceId: string | undefined;
|
|
76
80
|
symbol: string;
|
|
77
81
|
type: "CryptoCurrency";
|
|
78
82
|
id: string;
|
|
@@ -99,5 +103,6 @@ export declare const cryptoCurrencySchema: z.ZodEffects<z.ZodObject<{
|
|
|
99
103
|
};
|
|
100
104
|
updatedAt: number;
|
|
101
105
|
icon?: string | undefined;
|
|
106
|
+
priceDatasourceId?: string | undefined;
|
|
102
107
|
}>;
|
|
103
108
|
//# sourceMappingURL=cryptoCurrency.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cryptoCurrency.d.ts","sourceRoot":"","sources":["../../../assets/schemas/cryptoCurrency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAcvB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"cryptoCurrency.d.ts","sourceRoot":"","sources":["../../../assets/schemas/cryptoCurrency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAcvB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe5B,CAAA"}
|
|
@@ -7,10 +7,9 @@ export type GetCurrentPriceParameters = {
|
|
|
7
7
|
readonly vsCurrency: FiatCurrency;
|
|
8
8
|
};
|
|
9
9
|
export type GetHistoricalPricesParameters = {
|
|
10
|
-
readonly
|
|
10
|
+
readonly targetCurrency: CryptoCurrency;
|
|
11
11
|
readonly vsCurrency: FiatCurrency;
|
|
12
|
-
readonly
|
|
13
|
-
readonly to: number;
|
|
12
|
+
readonly timestampList: readonly number[];
|
|
14
13
|
};
|
|
15
14
|
export type CryptoCurrencyDataSource = {
|
|
16
15
|
readonly getCurrentPrice: (parameters: GetCurrentPriceParameters, config?: Config) => Promise<readonly CryptoCurrencyPrice[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataSource.d.ts","sourceRoot":"","sources":["../../../assets/types/dataSource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,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zC,MAAM,CAAC,EAAE,MAAM,KACZ,OAAO,CAAC,SAAS,mBAAmB,EAAE,CAAC,CAAA;CAC7C,CAAA"}
|
|
@@ -35,6 +35,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
35
35
|
} | undefined;
|
|
36
36
|
asset: {
|
|
37
37
|
icon: string | undefined;
|
|
38
|
+
priceDatasourceId: string | undefined;
|
|
38
39
|
symbol: string;
|
|
39
40
|
type: "CryptoCurrency";
|
|
40
41
|
id: string;
|
|
@@ -111,6 +112,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
111
112
|
} | undefined;
|
|
112
113
|
asset: {
|
|
113
114
|
icon: string | undefined;
|
|
115
|
+
priceDatasourceId: string | undefined;
|
|
114
116
|
symbol: string;
|
|
115
117
|
type: "CryptoCurrency";
|
|
116
118
|
id: string;
|
|
@@ -188,6 +190,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
188
190
|
} | undefined;
|
|
189
191
|
asset: {
|
|
190
192
|
icon: string | undefined;
|
|
193
|
+
priceDatasourceId: string | undefined;
|
|
191
194
|
symbol: string;
|
|
192
195
|
type: "CryptoCurrency";
|
|
193
196
|
id: string;
|
|
@@ -265,6 +268,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
265
268
|
} | undefined;
|
|
266
269
|
asset: {
|
|
267
270
|
icon: string | undefined;
|
|
271
|
+
priceDatasourceId: string | undefined;
|
|
268
272
|
symbol: string;
|
|
269
273
|
type: "CryptoCurrency";
|
|
270
274
|
id: string;
|
|
@@ -311,6 +315,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
311
315
|
} | undefined;
|
|
312
316
|
asset: {
|
|
313
317
|
icon: string | undefined;
|
|
318
|
+
priceDatasourceId: string | undefined;
|
|
314
319
|
symbol: string;
|
|
315
320
|
type: "CryptoCurrency";
|
|
316
321
|
id: string;
|
|
@@ -376,6 +381,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
376
381
|
} | undefined;
|
|
377
382
|
asset: {
|
|
378
383
|
icon: string | undefined;
|
|
384
|
+
priceDatasourceId: string | undefined;
|
|
379
385
|
symbol: string;
|
|
380
386
|
type: "CryptoCurrency";
|
|
381
387
|
id: string;
|
|
@@ -422,6 +428,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
422
428
|
} | undefined;
|
|
423
429
|
asset: {
|
|
424
430
|
icon: string | undefined;
|
|
431
|
+
priceDatasourceId: string | undefined;
|
|
425
432
|
symbol: string;
|
|
426
433
|
type: "CryptoCurrency";
|
|
427
434
|
id: string;
|
|
@@ -487,6 +494,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
487
494
|
} | undefined;
|
|
488
495
|
asset: {
|
|
489
496
|
icon: string | undefined;
|
|
497
|
+
priceDatasourceId: string | undefined;
|
|
490
498
|
symbol: string;
|
|
491
499
|
type: "CryptoCurrency";
|
|
492
500
|
id: string;
|
|
@@ -545,6 +553,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
545
553
|
} | undefined;
|
|
546
554
|
asset: {
|
|
547
555
|
icon: string | undefined;
|
|
556
|
+
priceDatasourceId: string | undefined;
|
|
548
557
|
symbol: string;
|
|
549
558
|
type: "CryptoCurrency";
|
|
550
559
|
id: string;
|
|
@@ -621,6 +630,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
621
630
|
} | undefined;
|
|
622
631
|
asset: {
|
|
623
632
|
icon: string | undefined;
|
|
633
|
+
priceDatasourceId: string | undefined;
|
|
624
634
|
symbol: string;
|
|
625
635
|
type: "CryptoCurrency";
|
|
626
636
|
id: string;
|
|
@@ -697,6 +707,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
697
707
|
} | undefined;
|
|
698
708
|
asset: {
|
|
699
709
|
icon: string | undefined;
|
|
710
|
+
priceDatasourceId: string | undefined;
|
|
700
711
|
symbol: string;
|
|
701
712
|
type: "CryptoCurrency";
|
|
702
713
|
id: string;
|
|
@@ -755,6 +766,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
755
766
|
} | undefined;
|
|
756
767
|
asset: {
|
|
757
768
|
icon: string | undefined;
|
|
769
|
+
priceDatasourceId: string | undefined;
|
|
758
770
|
symbol: string;
|
|
759
771
|
type: "CryptoCurrency";
|
|
760
772
|
id: string;
|
|
@@ -831,6 +843,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
831
843
|
} | undefined;
|
|
832
844
|
asset: {
|
|
833
845
|
icon: string | undefined;
|
|
846
|
+
priceDatasourceId: string | undefined;
|
|
834
847
|
symbol: string;
|
|
835
848
|
type: "CryptoCurrency";
|
|
836
849
|
id: string;
|
|
@@ -907,6 +920,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
907
920
|
} | undefined;
|
|
908
921
|
asset: {
|
|
909
922
|
icon: string | undefined;
|
|
923
|
+
priceDatasourceId: string | undefined;
|
|
910
924
|
symbol: string;
|
|
911
925
|
type: "CryptoCurrency";
|
|
912
926
|
id: string;
|
|
@@ -980,6 +994,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
980
994
|
} | undefined;
|
|
981
995
|
asset: {
|
|
982
996
|
icon: string | undefined;
|
|
997
|
+
priceDatasourceId: string | undefined;
|
|
983
998
|
symbol: string;
|
|
984
999
|
type: "CryptoCurrency";
|
|
985
1000
|
id: string;
|
|
@@ -1063,6 +1078,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1063
1078
|
} | undefined;
|
|
1064
1079
|
asset: {
|
|
1065
1080
|
icon: string | undefined;
|
|
1081
|
+
priceDatasourceId: string | undefined;
|
|
1066
1082
|
symbol: string;
|
|
1067
1083
|
type: "CryptoCurrency";
|
|
1068
1084
|
id: string;
|
|
@@ -1109,6 +1125,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1109
1125
|
} | undefined;
|
|
1110
1126
|
asset: {
|
|
1111
1127
|
icon: string | undefined;
|
|
1128
|
+
priceDatasourceId: string | undefined;
|
|
1112
1129
|
symbol: string;
|
|
1113
1130
|
type: "CryptoCurrency";
|
|
1114
1131
|
id: string;
|
|
@@ -1155,6 +1172,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1155
1172
|
} | undefined;
|
|
1156
1173
|
asset: {
|
|
1157
1174
|
icon: string | undefined;
|
|
1175
|
+
priceDatasourceId: string | undefined;
|
|
1158
1176
|
symbol: string;
|
|
1159
1177
|
type: "CryptoCurrency";
|
|
1160
1178
|
id: string;
|
|
@@ -1218,6 +1236,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1218
1236
|
} | undefined;
|
|
1219
1237
|
asset: {
|
|
1220
1238
|
icon: string | undefined;
|
|
1239
|
+
priceDatasourceId: string | undefined;
|
|
1221
1240
|
symbol: string;
|
|
1222
1241
|
type: "CryptoCurrency";
|
|
1223
1242
|
id: string;
|
|
@@ -1264,6 +1283,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1264
1283
|
} | undefined;
|
|
1265
1284
|
asset: {
|
|
1266
1285
|
icon: string | undefined;
|
|
1286
|
+
priceDatasourceId: string | undefined;
|
|
1267
1287
|
symbol: string;
|
|
1268
1288
|
type: "CryptoCurrency";
|
|
1269
1289
|
id: string;
|
|
@@ -1310,6 +1330,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1310
1330
|
} | undefined;
|
|
1311
1331
|
asset: {
|
|
1312
1332
|
icon: string | undefined;
|
|
1333
|
+
priceDatasourceId: string | undefined;
|
|
1313
1334
|
symbol: string;
|
|
1314
1335
|
type: "CryptoCurrency";
|
|
1315
1336
|
id: string;
|
|
@@ -1373,6 +1394,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1373
1394
|
} | undefined;
|
|
1374
1395
|
asset: {
|
|
1375
1396
|
icon: string | undefined;
|
|
1397
|
+
priceDatasourceId: string | undefined;
|
|
1376
1398
|
symbol: string;
|
|
1377
1399
|
type: "CryptoCurrency";
|
|
1378
1400
|
id: string;
|
|
@@ -1465,6 +1487,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1465
1487
|
} | undefined;
|
|
1466
1488
|
asset: {
|
|
1467
1489
|
icon: string | undefined;
|
|
1490
|
+
priceDatasourceId: string | undefined;
|
|
1468
1491
|
symbol: string;
|
|
1469
1492
|
type: "CryptoCurrency";
|
|
1470
1493
|
id: string;
|
|
@@ -1540,6 +1563,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1540
1563
|
} | undefined;
|
|
1541
1564
|
asset: {
|
|
1542
1565
|
icon: string | undefined;
|
|
1566
|
+
priceDatasourceId: string | undefined;
|
|
1543
1567
|
symbol: string;
|
|
1544
1568
|
type: "CryptoCurrency";
|
|
1545
1569
|
id: string;
|
|
@@ -1598,6 +1622,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1598
1622
|
} | undefined;
|
|
1599
1623
|
asset: {
|
|
1600
1624
|
icon: string | undefined;
|
|
1625
|
+
priceDatasourceId: string | undefined;
|
|
1601
1626
|
symbol: string;
|
|
1602
1627
|
type: "CryptoCurrency";
|
|
1603
1628
|
id: string;
|
|
@@ -1673,6 +1698,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1673
1698
|
} | undefined;
|
|
1674
1699
|
asset: {
|
|
1675
1700
|
icon: string | undefined;
|
|
1701
|
+
priceDatasourceId: string | undefined;
|
|
1676
1702
|
symbol: string;
|
|
1677
1703
|
type: "CryptoCurrency";
|
|
1678
1704
|
id: string;
|
|
@@ -1705,6 +1731,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1705
1731
|
} | undefined;
|
|
1706
1732
|
asset: {
|
|
1707
1733
|
icon: string | undefined;
|
|
1734
|
+
priceDatasourceId: string | undefined;
|
|
1708
1735
|
symbol: string;
|
|
1709
1736
|
type: "CryptoCurrency";
|
|
1710
1737
|
id: string;
|
|
@@ -1797,6 +1824,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1797
1824
|
} | undefined;
|
|
1798
1825
|
asset: {
|
|
1799
1826
|
icon: string | undefined;
|
|
1827
|
+
priceDatasourceId: string | undefined;
|
|
1800
1828
|
symbol: string;
|
|
1801
1829
|
type: "CryptoCurrency";
|
|
1802
1830
|
id: string;
|
|
@@ -1860,6 +1888,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1860
1888
|
} | undefined;
|
|
1861
1889
|
asset: {
|
|
1862
1890
|
icon: string | undefined;
|
|
1891
|
+
priceDatasourceId: string | undefined;
|
|
1863
1892
|
symbol: string;
|
|
1864
1893
|
type: "CryptoCurrency";
|
|
1865
1894
|
id: string;
|
|
@@ -1933,6 +1962,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
1933
1962
|
} | undefined;
|
|
1934
1963
|
asset: {
|
|
1935
1964
|
icon: string | undefined;
|
|
1965
|
+
priceDatasourceId: string | undefined;
|
|
1936
1966
|
symbol: string;
|
|
1937
1967
|
type: "CryptoCurrency";
|
|
1938
1968
|
id: string;
|
|
@@ -2008,6 +2038,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
2008
2038
|
} | undefined;
|
|
2009
2039
|
asset: {
|
|
2010
2040
|
icon: string | undefined;
|
|
2041
|
+
priceDatasourceId: string | undefined;
|
|
2011
2042
|
symbol: string;
|
|
2012
2043
|
type: "CryptoCurrency";
|
|
2013
2044
|
id: string;
|
|
@@ -2083,6 +2114,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
2083
2114
|
} | undefined;
|
|
2084
2115
|
asset: {
|
|
2085
2116
|
icon: string | undefined;
|
|
2117
|
+
priceDatasourceId: string | undefined;
|
|
2086
2118
|
symbol: string;
|
|
2087
2119
|
type: "CryptoCurrency";
|
|
2088
2120
|
id: string;
|
|
@@ -2159,6 +2191,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
2159
2191
|
} | undefined;
|
|
2160
2192
|
asset: {
|
|
2161
2193
|
icon: string | undefined;
|
|
2194
|
+
priceDatasourceId: string | undefined;
|
|
2162
2195
|
symbol: string;
|
|
2163
2196
|
type: "CryptoCurrency";
|
|
2164
2197
|
id: string;
|
|
@@ -2217,6 +2250,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
2217
2250
|
} | undefined;
|
|
2218
2251
|
asset: {
|
|
2219
2252
|
icon: string | undefined;
|
|
2253
|
+
priceDatasourceId: string | undefined;
|
|
2220
2254
|
symbol: string;
|
|
2221
2255
|
type: "CryptoCurrency";
|
|
2222
2256
|
id: string;
|
|
@@ -2293,6 +2327,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
2293
2327
|
} | undefined;
|
|
2294
2328
|
asset: {
|
|
2295
2329
|
icon: string | undefined;
|
|
2330
|
+
priceDatasourceId: string | undefined;
|
|
2296
2331
|
symbol: string;
|
|
2297
2332
|
type: "CryptoCurrency";
|
|
2298
2333
|
id: string;
|
|
@@ -2351,6 +2386,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
2351
2386
|
} | undefined;
|
|
2352
2387
|
asset: {
|
|
2353
2388
|
icon: string | undefined;
|
|
2389
|
+
priceDatasourceId: string | undefined;
|
|
2354
2390
|
symbol: string;
|
|
2355
2391
|
type: "CryptoCurrency";
|
|
2356
2392
|
id: string;
|
|
@@ -2495,6 +2531,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
2495
2531
|
} | undefined;
|
|
2496
2532
|
asset: {
|
|
2497
2533
|
icon: string | undefined;
|
|
2534
|
+
priceDatasourceId: string | undefined;
|
|
2498
2535
|
symbol: string;
|
|
2499
2536
|
type: "CryptoCurrency";
|
|
2500
2537
|
id: string;
|
|
@@ -2527,6 +2564,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
2527
2564
|
} | undefined;
|
|
2528
2565
|
asset: {
|
|
2529
2566
|
icon: string | undefined;
|
|
2567
|
+
priceDatasourceId: string | undefined;
|
|
2530
2568
|
symbol: string;
|
|
2531
2569
|
type: "CryptoCurrency";
|
|
2532
2570
|
id: string;
|
|
@@ -2576,6 +2614,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
2576
2614
|
} | undefined;
|
|
2577
2615
|
asset: {
|
|
2578
2616
|
icon: string | undefined;
|
|
2617
|
+
priceDatasourceId: string | undefined;
|
|
2579
2618
|
symbol: string;
|
|
2580
2619
|
type: "CryptoCurrency";
|
|
2581
2620
|
id: string;
|
|
@@ -2608,6 +2647,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
2608
2647
|
} | undefined;
|
|
2609
2648
|
asset: {
|
|
2610
2649
|
icon: string | undefined;
|
|
2650
|
+
priceDatasourceId: string | undefined;
|
|
2611
2651
|
symbol: string;
|
|
2612
2652
|
type: "CryptoCurrency";
|
|
2613
2653
|
id: string;
|
|
@@ -2657,6 +2697,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
2657
2697
|
} | undefined;
|
|
2658
2698
|
asset: {
|
|
2659
2699
|
icon: string | undefined;
|
|
2700
|
+
priceDatasourceId: string | undefined;
|
|
2660
2701
|
symbol: string;
|
|
2661
2702
|
type: "CryptoCurrency";
|
|
2662
2703
|
id: string;
|
|
@@ -2756,6 +2797,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
2756
2797
|
} | undefined;
|
|
2757
2798
|
asset: {
|
|
2758
2799
|
icon: string | undefined;
|
|
2800
|
+
priceDatasourceId: string | undefined;
|
|
2759
2801
|
symbol: string;
|
|
2760
2802
|
type: "CryptoCurrency";
|
|
2761
2803
|
id: string;
|
|
@@ -2855,6 +2897,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
2855
2897
|
} | undefined;
|
|
2856
2898
|
asset: {
|
|
2857
2899
|
icon: string | undefined;
|
|
2900
|
+
priceDatasourceId: string | undefined;
|
|
2858
2901
|
symbol: string;
|
|
2859
2902
|
type: "CryptoCurrency";
|
|
2860
2903
|
id: string;
|
|
@@ -2952,6 +2995,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
2952
2995
|
} | undefined;
|
|
2953
2996
|
asset: {
|
|
2954
2997
|
icon: string | undefined;
|
|
2998
|
+
priceDatasourceId: string | undefined;
|
|
2955
2999
|
symbol: string;
|
|
2956
3000
|
type: "CryptoCurrency";
|
|
2957
3001
|
id: string;
|
|
@@ -3001,6 +3045,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
3001
3045
|
} | undefined;
|
|
3002
3046
|
asset: {
|
|
3003
3047
|
icon: string | undefined;
|
|
3048
|
+
priceDatasourceId: string | undefined;
|
|
3004
3049
|
symbol: string;
|
|
3005
3050
|
type: "CryptoCurrency";
|
|
3006
3051
|
id: string;
|
|
@@ -3100,6 +3145,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
3100
3145
|
} | undefined;
|
|
3101
3146
|
asset: {
|
|
3102
3147
|
icon: string | undefined;
|
|
3148
|
+
priceDatasourceId: string | undefined;
|
|
3103
3149
|
symbol: string;
|
|
3104
3150
|
type: "CryptoCurrency";
|
|
3105
3151
|
id: string;
|
|
@@ -3146,6 +3192,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
3146
3192
|
} | undefined;
|
|
3147
3193
|
asset: {
|
|
3148
3194
|
icon: string | undefined;
|
|
3195
|
+
priceDatasourceId: string | undefined;
|
|
3149
3196
|
symbol: string;
|
|
3150
3197
|
type: "CryptoCurrency";
|
|
3151
3198
|
id: string;
|
|
@@ -3209,6 +3256,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
3209
3256
|
} | undefined;
|
|
3210
3257
|
asset: {
|
|
3211
3258
|
icon: string | undefined;
|
|
3259
|
+
priceDatasourceId: string | undefined;
|
|
3212
3260
|
symbol: string;
|
|
3213
3261
|
type: "CryptoCurrency";
|
|
3214
3262
|
id: string;
|
|
@@ -3284,6 +3332,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
3284
3332
|
} | undefined;
|
|
3285
3333
|
asset: {
|
|
3286
3334
|
icon: string | undefined;
|
|
3335
|
+
priceDatasourceId: string | undefined;
|
|
3287
3336
|
symbol: string;
|
|
3288
3337
|
type: "CryptoCurrency";
|
|
3289
3338
|
id: string;
|
|
@@ -3347,6 +3396,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
3347
3396
|
} | undefined;
|
|
3348
3397
|
asset: {
|
|
3349
3398
|
icon: string | undefined;
|
|
3399
|
+
priceDatasourceId: string | undefined;
|
|
3350
3400
|
symbol: string;
|
|
3351
3401
|
type: "CryptoCurrency";
|
|
3352
3402
|
id: string;
|
|
@@ -3419,6 +3469,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
3419
3469
|
} | undefined;
|
|
3420
3470
|
asset: {
|
|
3421
3471
|
icon: string | undefined;
|
|
3472
|
+
priceDatasourceId: string | undefined;
|
|
3422
3473
|
symbol: string;
|
|
3423
3474
|
type: "CryptoCurrency";
|
|
3424
3475
|
id: string;
|
|
@@ -3491,6 +3542,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
3491
3542
|
} | undefined;
|
|
3492
3543
|
asset: {
|
|
3493
3544
|
icon: string | undefined;
|
|
3545
|
+
priceDatasourceId: string | undefined;
|
|
3494
3546
|
symbol: string;
|
|
3495
3547
|
type: "CryptoCurrency";
|
|
3496
3548
|
id: string;
|
|
@@ -3549,6 +3601,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
3549
3601
|
} | undefined;
|
|
3550
3602
|
asset: {
|
|
3551
3603
|
icon: string | undefined;
|
|
3604
|
+
priceDatasourceId: string | undefined;
|
|
3552
3605
|
symbol: string;
|
|
3553
3606
|
type: "CryptoCurrency";
|
|
3554
3607
|
id: string;
|
|
@@ -3625,6 +3678,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
3625
3678
|
} | undefined;
|
|
3626
3679
|
asset: {
|
|
3627
3680
|
icon: string | undefined;
|
|
3681
|
+
priceDatasourceId: string | undefined;
|
|
3628
3682
|
symbol: string;
|
|
3629
3683
|
type: "CryptoCurrency";
|
|
3630
3684
|
id: string;
|
|
@@ -3701,6 +3755,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
3701
3755
|
} | undefined;
|
|
3702
3756
|
asset: {
|
|
3703
3757
|
icon: string | undefined;
|
|
3758
|
+
priceDatasourceId: string | undefined;
|
|
3704
3759
|
symbol: string;
|
|
3705
3760
|
type: "CryptoCurrency";
|
|
3706
3761
|
id: string;
|
|
@@ -3777,6 +3832,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
3777
3832
|
} | undefined;
|
|
3778
3833
|
asset: {
|
|
3779
3834
|
icon: string | undefined;
|
|
3835
|
+
priceDatasourceId: string | undefined;
|
|
3780
3836
|
symbol: string;
|
|
3781
3837
|
type: "CryptoCurrency";
|
|
3782
3838
|
id: string;
|
|
@@ -3835,6 +3891,7 @@ export declare const setAccountActionPrices: ({ actions, fiat, cryptoCurrencyDat
|
|
|
3835
3891
|
} | undefined;
|
|
3836
3892
|
asset: {
|
|
3837
3893
|
icon: string | undefined;
|
|
3894
|
+
priceDatasourceId: string | undefined;
|
|
3838
3895
|
symbol: string;
|
|
3839
3896
|
type: "CryptoCurrency";
|
|
3840
3897
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setAccountActionPrices.d.ts","sourceRoot":"","sources":["../setAccountActionPrices.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setAccountActionPrices.d.ts","sourceRoot":"","sources":["../setAccountActionPrices.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAEV,wBAAwB,EAExB,YAAY,EACb,MAAM,UAAU,CAAA;AAEjB,KAAK,gCAAgC,GAAG;IACtC,QAAQ,CAAC,OAAO,EAAE,SAAS,aAAa,EAAE,CAAA;IAC1C,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,wBAAwB,EAAE,wBAAwB,CAAA;CAC5D,CAAA;AAED,eAAO,MAAM,sBAAsB,iDAIhC,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoBlC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../tests/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AAEzD,eAAO,MAAM,4BAA4B,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../tests/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AAEzD,eAAO,MAAM,4BAA4B,EAAE,wBAqB1C,CAAA"}
|
|
@@ -66,44 +66,40 @@ export const coingeckoCryptoCurrencyDataSource = createCryptoCurrencyDataSource(
|
|
|
66
66
|
})
|
|
67
67
|
},
|
|
68
68
|
getHistoricalPrices: async (
|
|
69
|
-
{
|
|
69
|
+
{ targetCurrency, vsCurrency, timestampList },
|
|
70
70
|
config?: Config,
|
|
71
71
|
) => {
|
|
72
|
+
if (timestampList.length === 0) {
|
|
73
|
+
return []
|
|
74
|
+
}
|
|
75
|
+
|
|
72
76
|
const timeoutTimestamp =
|
|
73
77
|
Date.now() + (config?.timeout === undefined ? 60_000 : config.timeout)
|
|
74
|
-
if (
|
|
75
|
-
targetCurrencies.some(
|
|
76
|
-
(currency) => currency.market.coingeckoId === undefined,
|
|
77
|
-
)
|
|
78
|
-
) {
|
|
78
|
+
if (targetCurrency.market.coingeckoId === undefined) {
|
|
79
79
|
throw new Error(
|
|
80
80
|
'require parameters.targetCurrencies.market.coingeckoId',
|
|
81
81
|
)
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
// from,to
|
|
85
|
-
const
|
|
86
|
-
const
|
|
84
|
+
// timestamp から from,to を生成する
|
|
85
|
+
const sortedTimestampList = timestampList.toSorted((a, b) => a - b)
|
|
86
|
+
const from = Math.floor(sortedTimestampList[0] / 1000)
|
|
87
|
+
const to = Math.ceil(sortedTimestampList.at(-1)! / 1000)
|
|
87
88
|
|
|
88
89
|
// from, to を 90 日間毎に分割する
|
|
89
|
-
const ranges = splitFromToBy90DaysSeconds(
|
|
90
|
+
const ranges = splitFromToBy90DaysSeconds(from, to)
|
|
90
91
|
|
|
91
92
|
// 通貨毎に価格を取得する
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
)
|
|
103
|
-
mut_prices.push(...prices)
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
return mut_prices
|
|
93
|
+
const prices = await getCryptoCurrencyPrices(
|
|
94
|
+
targetCurrency,
|
|
95
|
+
vsCurrency,
|
|
96
|
+
ranges,
|
|
97
|
+
{
|
|
98
|
+
timeout: timeoutTimestamp - Date.now(),
|
|
99
|
+
logger: config?.logger,
|
|
100
|
+
},
|
|
101
|
+
)
|
|
102
|
+
return prices
|
|
107
103
|
},
|
|
108
104
|
},
|
|
109
105
|
)
|