@0xtorch/core 0.0.1
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/README.md +15 -0
- package/dist/import/accounts/index.d.ts +2 -0
- package/dist/import/accounts/index.d.ts.map +1 -0
- package/dist/import/accounts/types/account.d.ts +6 -0
- package/dist/import/accounts/types/account.d.ts.map +1 -0
- package/dist/import/accounts/types/index.d.ts +2 -0
- package/dist/import/accounts/types/index.d.ts.map +1 -0
- package/dist/import/actions/index.d.ts +2 -0
- package/dist/import/actions/index.d.ts.map +1 -0
- package/dist/import/actions/types/addLiquidity.d.ts +7 -0
- package/dist/import/actions/types/addLiquidity.d.ts.map +1 -0
- package/dist/import/actions/types/atomicArbitrage.d.ts +5 -0
- package/dist/import/actions/types/atomicArbitrage.d.ts.map +1 -0
- package/dist/import/actions/types/bridgeFrom.d.ts +6 -0
- package/dist/import/actions/types/bridgeFrom.d.ts.map +1 -0
- package/dist/import/actions/types/bridgeTo.d.ts +6 -0
- package/dist/import/actions/types/bridgeTo.d.ts.map +1 -0
- package/dist/import/actions/types/buyNft.d.ts +7 -0
- package/dist/import/actions/types/buyNft.d.ts.map +1 -0
- package/dist/import/actions/types/common.d.ts +50 -0
- package/dist/import/actions/types/common.d.ts.map +1 -0
- package/dist/import/actions/types/deposit.d.ts +6 -0
- package/dist/import/actions/types/deposit.d.ts.map +1 -0
- package/dist/import/actions/types/depositWithBond.d.ts +7 -0
- package/dist/import/actions/types/depositWithBond.d.ts.map +1 -0
- package/dist/import/actions/types/freeMintNft.d.ts +8 -0
- package/dist/import/actions/types/freeMintNft.d.ts.map +1 -0
- package/dist/import/actions/types/income.d.ts +5 -0
- package/dist/import/actions/types/income.d.ts.map +1 -0
- package/dist/import/actions/types/index.d.ts +24 -0
- package/dist/import/actions/types/index.d.ts.map +1 -0
- package/dist/import/actions/types/move.d.ts +5 -0
- package/dist/import/actions/types/move.d.ts.map +1 -0
- package/dist/import/actions/types/nftRoyalty.d.ts +7 -0
- package/dist/import/actions/types/nftRoyalty.d.ts.map +1 -0
- package/dist/import/actions/types/removeLiquidity.d.ts +7 -0
- package/dist/import/actions/types/removeLiquidity.d.ts.map +1 -0
- package/dist/import/actions/types/sellNft.d.ts +6 -0
- package/dist/import/actions/types/sellNft.d.ts.map +1 -0
- package/dist/import/actions/types/spam.d.ts +6 -0
- package/dist/import/actions/types/spam.d.ts.map +1 -0
- package/dist/import/actions/types/swapIncome.d.ts +4 -0
- package/dist/import/actions/types/swapIncome.d.ts.map +1 -0
- package/dist/import/actions/types/swapNft.d.ts +6 -0
- package/dist/import/actions/types/swapNft.d.ts.map +1 -0
- package/dist/import/actions/types/swapTransfer.d.ts +4 -0
- package/dist/import/actions/types/swapTransfer.d.ts.map +1 -0
- package/dist/import/actions/types/trade.d.ts +7 -0
- package/dist/import/actions/types/trade.d.ts.map +1 -0
- package/dist/import/actions/types/transactionFee.d.ts +7 -0
- package/dist/import/actions/types/transactionFee.d.ts.map +1 -0
- package/dist/import/actions/types/transfer.d.ts +8 -0
- package/dist/import/actions/types/transfer.d.ts.map +1 -0
- package/dist/import/actions/types/withdraw.d.ts +7 -0
- package/dist/import/actions/types/withdraw.d.ts.map +1 -0
- package/dist/import/actions/types/withdrawWithBond.d.ts +7 -0
- package/dist/import/actions/types/withdrawWithBond.d.ts.map +1 -0
- package/dist/import/apps/index.d.ts +3 -0
- package/dist/import/apps/index.d.ts.map +1 -0
- package/dist/import/apps/types.d.ts +11 -0
- package/dist/import/apps/types.d.ts.map +1 -0
- package/dist/import/assets/constants.d.ts +2 -0
- package/dist/import/assets/constants.d.ts.map +1 -0
- package/dist/import/assets/creates/createCryptoCurrency.d.ts +3 -0
- package/dist/import/assets/creates/createCryptoCurrency.d.ts.map +1 -0
- package/dist/import/assets/creates/createFiatCurrency.d.ts +3 -0
- package/dist/import/assets/creates/createFiatCurrency.d.ts.map +1 -0
- package/dist/import/assets/creates/index.d.ts +3 -0
- package/dist/import/assets/creates/index.d.ts.map +1 -0
- package/dist/import/assets/definitions/astar.d.ts +13 -0
- package/dist/import/assets/definitions/astar.d.ts.map +1 -0
- package/dist/import/assets/definitions/avalanche.d.ts +13 -0
- package/dist/import/assets/definitions/avalanche.d.ts.map +1 -0
- package/dist/import/assets/definitions/bnb.d.ts +13 -0
- package/dist/import/assets/definitions/bnb.d.ts.map +1 -0
- package/dist/import/assets/definitions/coingeckoCryptoCurrencyDataSource.d.ts +18 -0
- package/dist/import/assets/definitions/coingeckoCryptoCurrencyDataSource.d.ts.map +1 -0
- package/dist/import/assets/definitions/ethereum.d.ts +13 -0
- package/dist/import/assets/definitions/ethereum.d.ts.map +1 -0
- package/dist/import/assets/definitions/eur.d.ts +8 -0
- package/dist/import/assets/definitions/eur.d.ts.map +1 -0
- package/dist/import/assets/definitions/fantom.d.ts +13 -0
- package/dist/import/assets/definitions/fantom.d.ts.map +1 -0
- package/dist/import/assets/definitions/index.d.ts +17 -0
- package/dist/import/assets/definitions/index.d.ts.map +1 -0
- package/dist/import/assets/definitions/jpy.d.ts +8 -0
- package/dist/import/assets/definitions/jpy.d.ts.map +1 -0
- package/dist/import/assets/definitions/kava.d.ts +13 -0
- package/dist/import/assets/definitions/kava.d.ts.map +1 -0
- package/dist/import/assets/definitions/mantle.d.ts +13 -0
- package/dist/import/assets/definitions/mantle.d.ts.map +1 -0
- package/dist/import/assets/definitions/maticNetwork.d.ts +13 -0
- package/dist/import/assets/definitions/maticNetwork.d.ts.map +1 -0
- package/dist/import/assets/definitions/metis.d.ts +13 -0
- package/dist/import/assets/definitions/metis.d.ts.map +1 -0
- package/dist/import/assets/definitions/moonbeam.d.ts +13 -0
- package/dist/import/assets/definitions/moonbeam.d.ts.map +1 -0
- package/dist/import/assets/definitions/moonriver.d.ts +13 -0
- package/dist/import/assets/definitions/moonriver.d.ts.map +1 -0
- package/dist/import/assets/definitions/ronin.d.ts +13 -0
- package/dist/import/assets/definitions/ronin.d.ts.map +1 -0
- package/dist/import/assets/definitions/usd.d.ts +8 -0
- package/dist/import/assets/definitions/usd.d.ts.map +1 -0
- package/dist/import/assets/externals/coingecko/constants.d.ts +2 -0
- package/dist/import/assets/externals/coingecko/constants.d.ts.map +1 -0
- package/dist/import/assets/externals/coingecko/getAutoRetry.d.ts +4 -0
- package/dist/import/assets/externals/coingecko/getAutoRetry.d.ts.map +1 -0
- package/dist/import/assets/externals/coingecko/getCoinMarketChartRange.d.ts +49 -0
- package/dist/import/assets/externals/coingecko/getCoinMarketChartRange.d.ts.map +1 -0
- package/dist/import/assets/externals/coingecko/getCoinsMarkets.d.ts +58 -0
- package/dist/import/assets/externals/coingecko/getCoinsMarkets.d.ts.map +1 -0
- package/dist/import/assets/externals/coingecko/index.d.ts +3 -0
- package/dist/import/assets/externals/coingecko/index.d.ts.map +1 -0
- package/dist/import/assets/externals/index.d.ts +2 -0
- package/dist/import/assets/externals/index.d.ts.map +1 -0
- package/dist/import/assets/index.d.ts +5 -0
- package/dist/import/assets/index.d.ts.map +1 -0
- package/dist/import/assets/types/cryptoCurrency.d.ts +17 -0
- package/dist/import/assets/types/cryptoCurrency.d.ts.map +1 -0
- package/dist/import/assets/types/cryptoCurrencyPrice.d.ts +10 -0
- package/dist/import/assets/types/cryptoCurrencyPrice.d.ts.map +1 -0
- package/dist/import/assets/types/dataSource.d.ts +18 -0
- package/dist/import/assets/types/dataSource.d.ts.map +1 -0
- package/dist/import/assets/types/fiatCurrency.d.ts +12 -0
- package/dist/import/assets/types/fiatCurrency.d.ts.map +1 -0
- package/dist/import/assets/types/index.d.ts +6 -0
- package/dist/import/assets/types/index.d.ts.map +1 -0
- package/dist/import/assets/types/nft.d.ts +5 -0
- package/dist/import/assets/types/nft.d.ts.map +1 -0
- package/dist/import/index.d.mts +12 -0
- package/dist/import/index.d.mts.map +1 -0
- package/dist/import/index.mjs +2 -0
- package/dist/import/portfolios/createPortfolio.d.ts +2 -0
- package/dist/import/portfolios/createPortfolio.d.ts.map +1 -0
- package/dist/import/portfolios/index.d.ts +3 -0
- package/dist/import/portfolios/index.d.ts.map +1 -0
- package/dist/import/portfolios/type.d.ts +4 -0
- package/dist/import/portfolios/type.d.ts.map +1 -0
- package/dist/import/types.d.ts +11 -0
- package/dist/import/types.d.ts.map +1 -0
- package/dist/import/utils/errors.d.ts +48 -0
- package/dist/import/utils/errors.d.ts.map +1 -0
- package/dist/import/utils/index.d.ts +5 -0
- package/dist/import/utils/index.d.ts.map +1 -0
- package/dist/import/utils/rest.d.ts +14 -0
- package/dist/import/utils/rest.d.ts.map +1 -0
- package/dist/import/utils/stringify.d.ts +2 -0
- package/dist/import/utils/stringify.d.ts.map +1 -0
- package/dist/import/utils/types.d.ts +12 -0
- package/dist/import/utils/types.d.ts.map +1 -0
- package/dist/require/index.cjs +2 -0
- package/dist/require/index.d.cts +2 -0
- package/dist/require/index.d.cts.map +1 -0
- package/package.json +79 -0
- package/src/accounts/index.ts +1 -0
- package/src/accounts/types/account.ts +5 -0
- package/src/accounts/types/index.ts +1 -0
- package/src/actions/index.ts +44 -0
- package/src/actions/schemas/constants.ts +16 -0
- package/src/actions/schemas/swap.ts +7 -0
- package/src/actions/types/addLiquidity.ts +23 -0
- package/src/actions/types/atomicArbitrage.ts +30 -0
- package/src/actions/types/bridgeFrom.ts +23 -0
- package/src/actions/types/bridgeTo.ts +23 -0
- package/src/actions/types/buyNft.ts +34 -0
- package/src/actions/types/common.ts +142 -0
- package/src/actions/types/deposit.ts +23 -0
- package/src/actions/types/depositWithBond.ts +23 -0
- package/src/actions/types/freeMintNft.ts +20 -0
- package/src/actions/types/income.ts +21 -0
- package/src/actions/types/index.ts +53 -0
- package/src/actions/types/move.ts +21 -0
- package/src/actions/types/nftRoyalty.ts +19 -0
- package/src/actions/types/removeLiquidity.ts +23 -0
- package/src/actions/types/sellNft.ts +22 -0
- package/src/actions/types/spam.ts +23 -0
- package/src/actions/types/swapIncome.ts +12 -0
- package/src/actions/types/swapNft.ts +12 -0
- package/src/actions/types/swapTransfer.ts +12 -0
- package/src/actions/types/trade.ts +34 -0
- package/src/actions/types/transactionFee.ts +19 -0
- package/src/actions/types/transfer.ts +36 -0
- package/src/actions/types/withdraw.ts +23 -0
- package/src/actions/types/withdrawWithBond.ts +23 -0
- package/src/apps/index.ts +2 -0
- package/src/apps/types.ts +20 -0
- package/src/assets/constants.ts +1 -0
- package/src/assets/creates/createCryptoCurrency.ts +7 -0
- package/src/assets/creates/createFiatCurrency.ts +10 -0
- package/src/assets/creates/index.ts +2 -0
- package/src/assets/definitions/astar.ts +14 -0
- package/src/assets/definitions/avalanche.ts +14 -0
- package/src/assets/definitions/bnb.ts +14 -0
- package/src/assets/definitions/coingeckoCryptoCurrencyDataSource.test.ts +53 -0
- package/src/assets/definitions/coingeckoCryptoCurrencyDataSource.ts +169 -0
- package/src/assets/definitions/ethereum.ts +14 -0
- package/src/assets/definitions/eur.ts +9 -0
- package/src/assets/definitions/fantom.ts +14 -0
- package/src/assets/definitions/index.ts +16 -0
- package/src/assets/definitions/jpy.ts +9 -0
- package/src/assets/definitions/kava.ts +14 -0
- package/src/assets/definitions/mantle.ts +14 -0
- package/src/assets/definitions/maticNetwork.ts +14 -0
- package/src/assets/definitions/metis.ts +14 -0
- package/src/assets/definitions/moonbeam.ts +14 -0
- package/src/assets/definitions/moonriver.ts +14 -0
- package/src/assets/definitions/ronin.ts +14 -0
- package/src/assets/definitions/usd.ts +9 -0
- package/src/assets/externals/coingecko/constants.ts +1 -0
- package/src/assets/externals/coingecko/getAutoRetry.ts +35 -0
- package/src/assets/externals/coingecko/getCoinMarketChartRange.test.ts +28 -0
- package/src/assets/externals/coingecko/getCoinMarketChartRange.ts +88 -0
- package/src/assets/externals/coingecko/getCoinsMarkets.test.ts +11 -0
- package/src/assets/externals/coingecko/getCoinsMarkets.ts +106 -0
- package/src/assets/externals/coingecko/index.ts +2 -0
- package/src/assets/externals/index.ts +1 -0
- package/src/assets/index.ts +27 -0
- package/src/assets/types/cryptoCurrency.ts +17 -0
- package/src/assets/types/cryptoCurrencyPrice.ts +14 -0
- package/src/assets/types/dataSource.ts +26 -0
- package/src/assets/types/fiatCurrency.ts +21 -0
- package/src/assets/types/index.ts +9 -0
- package/src/assets/types/nft.ts +5 -0
- package/src/index.cts +1 -0
- package/src/index.mts +79 -0
- package/src/portfolios/createPortfolio.test.ts +7 -0
- package/src/portfolios/createPortfolio.ts +3 -0
- package/src/portfolios/index.ts +2 -0
- package/src/portfolios/type.ts +3 -0
- package/src/tests/constants.ts +1 -0
- package/src/tests/index.ts +2 -0
- package/src/tests/utils.ts +26 -0
- package/src/types.ts +11 -0
- package/src/utils/errors.ts +130 -0
- package/src/utils/index.ts +4 -0
- package/src/utils/rest.test.ts +19 -0
- package/src/utils/rest.ts +138 -0
- package/src/utils/stringify.test.ts +24 -0
- package/src/utils/stringify.ts +11 -0
- package/src/utils/types.ts +12 -0
- package/tsconfig.json +28 -0
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @0xtorch/core
|
|
2
|
+
|
|
3
|
+
To install dependencies:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
bun install
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
To run:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
bun run src/index.ts
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
This project was created using `bun init` in bun v1.0.30. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/accounts/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/accounts/types/account.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,CAAC,SAAS,SAAS,MAAM,IAAI;IAC9C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/accounts/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type { AccountAction, AccountActionAddLiquidity, AccountActionAtomicArbitrage, AccountActionBridgeFrom, AccountActionBridgeTo, AccountActionBuyNft, AccountActionDeposit, AccountActionDepositWithBond, AccountActionFreeMintNft, AccountActionIncome, AccountActionMove, AccountActionNftRoyalty, AccountActionRemoveLiquidity, AccountActionSellNft, AccountActionSpam, AccountActionSwapIncome, AccountActionSwapNft, AccountActionSwapTransfer, AccountActionTrade, AccountActionTransactionFee, AccountActionTransfer, AccountActionType, AccountActionWithdraw, AccountActionWithdrawWithBond, ActionType, Evidence, NormalAction, NormalActionAddLiquidity, NormalActionAtomicArbitrage, NormalActionBridgeFrom, NormalActionBridgeTo, NormalActionBuyNft, NormalActionDeposit, NormalActionDepositWithBond, NormalActionFreeMintNft, NormalActionRemoveLiquidity, NormalActionSpam, NormalActionTrade, NormalActionTransactionFee, NormalActionTransfer, NormalActionWithdraw, NormalActionWithdrawWithBond, } from './types';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,yBAAyB,EACzB,4BAA4B,EAC5B,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,4BAA4B,EAC5B,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,4BAA4B,EAC5B,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,6BAA6B,EAC7B,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,gBAAgB,EAChB,iBAAiB,EACjB,0BAA0B,EAC1B,oBAAoB,EACpB,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
type Action = 'add-liquidity';
|
|
4
|
+
export type NormalActionAddLiquidity<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'in' | 'out'>;
|
|
5
|
+
export type AccountActionAddLiquidity<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=addLiquidity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addLiquidity.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/addLiquidity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,KAAK,MAAM,GAAG,eAAe,CAAA;AAE7B,MAAM,MAAM,wBAAwB,CAClC,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA;AAE7D,MAAM,MAAM,yBAAyB,CACnC,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
export type NormalActionAtomicArbitrage<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined> = NormalAction<'atomic-arbitrage', Account, Price, CryptoCurrency, 'in' | 'out'>;
|
|
4
|
+
export type AccountActionAtomicArbitrage<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined> = AccountAction<'atomic-arbitrage', Source, Account, Price, CryptoCurrency, 'in'>;
|
|
5
|
+
//# sourceMappingURL=atomicArbitrage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"atomicArbitrage.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/atomicArbitrage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,MAAM,MAAM,2BAA2B,CACrC,OAAO,GAAG,OAAO,EACjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,IACX,YAAY,CACd,kBAAkB,EAClB,OAAO,EACP,KAAK,EACL,cAAc,EACd,IAAI,GAAG,KAAK,CACb,CAAA;AAED,MAAM,MAAM,4BAA4B,CACtC,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,IACX,aAAa,CACf,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,KAAK,EACL,cAAc,EACd,IAAI,CACL,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
export type Action = 'bridge-from';
|
|
4
|
+
export type NormalActionBridgeFrom<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'out'>;
|
|
5
|
+
export type AccountActionBridgeFrom<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'out'>;
|
|
6
|
+
//# sourceMappingURL=bridgeFrom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridgeFrom.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/bridgeFrom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,MAAM,MAAM,MAAM,GAAG,aAAa,CAAA;AAElC,MAAM,MAAM,sBAAsB,CAChC,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;AAEtD,MAAM,MAAM,uBAAuB,CACjC,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
export type Action = 'bridge-to';
|
|
4
|
+
export type NormalActionBridgeTo<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'in'>;
|
|
5
|
+
export type AccountActionBridgeTo<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'in'>;
|
|
6
|
+
//# sourceMappingURL=bridgeTo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridgeTo.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/bridgeTo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,MAAM,MAAM,MAAM,GAAG,WAAW,CAAA;AAEhC,MAAM,MAAM,oBAAoB,CAC9B,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;AAErD,MAAM,MAAM,qBAAqB,CAC/B,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, FiatCurrency, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
type Action = 'buy-nft';
|
|
4
|
+
export type NormalActionBuyNft<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | FiatCurrency | Nft = CryptoCurrency | FiatCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'in' | 'out'>;
|
|
5
|
+
export type AccountActionBuyNft<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | FiatCurrency | Nft = CryptoCurrency | FiatCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=buyNft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buyNft.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/buyNft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,GAAG,EACJ,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,KAAK,MAAM,GAAG,SAAS,CAAA;AAEvB,MAAM,MAAM,kBAAkB,CAC5B,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,GAAG,GAC7C,cAAc,GACd,YAAY,GACZ,GAAG,IACL,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA;AAE7D,MAAM,MAAM,mBAAmB,CAC7B,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,GAAG,GAC7C,cAAc,GACd,YAAY,GACZ,GAAG,IACL,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { BigDecimal } from '@0xtorch/big-decimal';
|
|
2
|
+
import type { App } from '../../apps';
|
|
3
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, FiatCurrency, Nft } from '../../assets';
|
|
4
|
+
declare const actions: readonly ["add-liquidity", "atomic-arbitrage", "bridge-from", "bridge-to", "buy-nft", "deposit", "deposit-with-bond", "free-mint-nft", "remove-liquidity", "spam", "trade", "transaction-fee", "transfer", "withdraw", "withdraw-with-bond"];
|
|
5
|
+
export type ActionType = (typeof actions)[number];
|
|
6
|
+
declare const accountActions: readonly ["add-liquidity", "atomic-arbitrage", "bridge-from", "bridge-to", "buy-nft", "deposit", "deposit-with-bond", "free-mint-nft", "income", "move", "nft-royalty", "remove-liquidity", "sell-nft", "spam", "swap-income", "swap-nft", "swap-transfer", "trade", "transaction-fee", "transfer", "withdraw", "withdraw-with-bond"];
|
|
7
|
+
export type AccountActionType = (typeof accountActions)[number];
|
|
8
|
+
export type AccountAction<Action extends AccountActionType = AccountActionType, Source extends string = string, Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | FiatCurrency | Nft = CryptoCurrency | FiatCurrency | Nft, Direction extends TransferDirection = TransferDirection> = {
|
|
9
|
+
readonly type: 'AccountAction';
|
|
10
|
+
readonly action: Action;
|
|
11
|
+
readonly source: Source;
|
|
12
|
+
readonly evidence: Evidence;
|
|
13
|
+
readonly timestamp: number;
|
|
14
|
+
readonly order: number;
|
|
15
|
+
readonly comment: string | undefined;
|
|
16
|
+
readonly app: App | undefined;
|
|
17
|
+
readonly transfers: readonly Transfer<Account, Price, Asset, Direction>[];
|
|
18
|
+
};
|
|
19
|
+
export type NormalAction<Action extends ActionType = ActionType, Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | FiatCurrency | Nft = CryptoCurrency | FiatCurrency | Nft, Direction extends TransferDirection = TransferDirection> = {
|
|
20
|
+
readonly type: 'NormalAction';
|
|
21
|
+
readonly action: Action;
|
|
22
|
+
readonly evidence: Evidence;
|
|
23
|
+
readonly timestamp: number;
|
|
24
|
+
readonly comment: string | undefined;
|
|
25
|
+
readonly app: App | undefined;
|
|
26
|
+
readonly transfers: readonly Transfer<Account, Price, Asset, Direction>[];
|
|
27
|
+
};
|
|
28
|
+
declare const evidences: readonly ["contract", "system-rule", "user-rule", "manual-check", "none"];
|
|
29
|
+
export type Evidence = (typeof evidences)[number];
|
|
30
|
+
/** action 内で発生している token transfer */
|
|
31
|
+
export type Transfer<Account, Price extends CryptoCurrencyPrice | undefined = undefined, Asset extends CryptoCurrency | FiatCurrency | Nft = CryptoCurrency | FiatCurrency | Nft, Direction extends TransferDirection = TransferDirection> = {
|
|
32
|
+
/** 誰視点なのか */
|
|
33
|
+
readonly target: string;
|
|
34
|
+
/** target 視点からの移動方向 */
|
|
35
|
+
readonly direction: Direction;
|
|
36
|
+
/** 移動元 account */
|
|
37
|
+
readonly from: Account;
|
|
38
|
+
/** 移動先 account */
|
|
39
|
+
readonly to: Account;
|
|
40
|
+
/** 移動した asset */
|
|
41
|
+
readonly asset: Asset;
|
|
42
|
+
/** 移動したトークン量 */
|
|
43
|
+
readonly amount: BigDecimal;
|
|
44
|
+
/** 移動したトークンの価格 */
|
|
45
|
+
readonly price: Price;
|
|
46
|
+
};
|
|
47
|
+
declare const transferDirections: readonly ["in", "out", "none"];
|
|
48
|
+
type TransferDirection = (typeof transferDirections)[number];
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,GAAG,EACJ,MAAM,cAAc,CAAA;AAErB,QAAA,MAAM,OAAO,8OAgBH,CAAA;AACV,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjD,QAAA,MAAM,cAAc,uUAuBV,CAAA;AACV,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;AAE/D,MAAM,MAAM,aAAa,CACvB,MAAM,SAAS,iBAAiB,GAAG,iBAAiB,EACpD,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,GAAG,GAC7C,cAAc,GACd,YAAY,GACZ,GAAG,EACP,SAAS,SAAS,iBAAiB,GAAG,iBAAiB,IACrD;IACF,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAA;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAA;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS,CAAA;IAC7B,QAAQ,CAAC,SAAS,EAAE,SAAS,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,CAAA;CAC1E,CAAA;AAED,MAAM,MAAM,YAAY,CACtB,MAAM,SAAS,UAAU,GAAG,UAAU,EACtC,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,GAAG,GAC7C,cAAc,GACd,YAAY,GACZ,GAAG,EACP,SAAS,SAAS,iBAAiB,GAAG,iBAAiB,IACrD;IACF,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAA;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAA;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS,CAAA;IAC7B,QAAQ,CAAC,SAAS,EAAE,SAAS,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,CAAA;CAC1E,CAAA;AAGD,QAAA,MAAM,SAAS,2EAML,CAAA;AACV,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjD,qCAAqC;AACrC,MAAM,MAAM,QAAQ,CAClB,OAAO,EAEP,KAAK,SAAS,mBAAmB,GAAG,SAAS,GAAG,SAAS,EACzD,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,GAAG,GAC7C,cAAc,GACd,YAAY,GACZ,GAAG,EACP,SAAS,SAAS,iBAAiB,GAAG,iBAAiB,IACrD;IACF,aAAa;IACb,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,uBAAuB;IACvB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;IAC7B,kBAAkB;IAElB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,kBAAkB;IAElB,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAA;IACpB,iBAAiB;IACjB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,gBAAgB;IAChB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAA;IAC3B,oBAAoB;IACpB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;CACtB,CAAA;AAED,QAAA,MAAM,kBAAkB,gCAAiC,CAAA;AACzD,KAAK,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
export type Action = 'deposit';
|
|
4
|
+
export type NormalActionDeposit<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'out'>;
|
|
5
|
+
export type AccountActionDeposit<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'out'>;
|
|
6
|
+
//# sourceMappingURL=deposit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposit.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/deposit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,MAAM,MAAM,MAAM,GAAG,SAAS,CAAA;AAE9B,MAAM,MAAM,mBAAmB,CAC7B,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;AAEtD,MAAM,MAAM,oBAAoB,CAC9B,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
type Action = 'deposit-with-bond';
|
|
4
|
+
export type NormalActionDepositWithBond<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'in' | 'out'>;
|
|
5
|
+
export type AccountActionDepositWithBond<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=depositWithBond.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"depositWithBond.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/depositWithBond.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,KAAK,MAAM,GAAG,mBAAmB,CAAA;AAEjC,MAAM,MAAM,2BAA2B,CACrC,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA;AAE7D,MAAM,MAAM,4BAA4B,CACtC,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
export type Action = 'free-mint-nft';
|
|
4
|
+
/** asset transfer */
|
|
5
|
+
export type NormalActionFreeMintNft<Account = unknown> = NormalAction<Action, Account, undefined, Nft>;
|
|
6
|
+
/** transfer from account to others */
|
|
7
|
+
export type AccountActionFreeMintNft<Account = unknown, Source extends string = string> = AccountAction<Action, Source, Account, undefined, Nft, 'in'>;
|
|
8
|
+
//# sourceMappingURL=freeMintNft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"freeMintNft.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/freeMintNft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,MAAM,MAAM,MAAM,GAAG,eAAe,CAAA;AAGpC,qBAAqB;AACrB,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,OAAO,IAAI,YAAY,CACnE,MAAM,EACN,OAAO,EACP,SAAS,EACT,GAAG,CACJ,CAAA;AAGD,sCAAsC;AACtC,MAAM,MAAM,wBAAwB,CAClC,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,IAC5B,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, FiatCurrency, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction } from './common';
|
|
3
|
+
/** income */
|
|
4
|
+
export type AccountActionIncome<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | FiatCurrency | Nft = CryptoCurrency | FiatCurrency | Nft> = AccountAction<'income', Source, Account, Price, Asset, 'in'>;
|
|
5
|
+
//# sourceMappingURL=income.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"income.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/income.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,GAAG,EACJ,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAE7C,aAAa;AACb,MAAM,MAAM,mBAAmB,CAC7B,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,GAAG,GAC7C,cAAc,GACd,YAAY,GACZ,GAAG,IACL,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type { AccountActionAddLiquidity, NormalActionAddLiquidity, } from './addLiquidity';
|
|
2
|
+
export type { AccountActionAtomicArbitrage, NormalActionAtomicArbitrage, } from './atomicArbitrage';
|
|
3
|
+
export type { AccountActionBridgeFrom, NormalActionBridgeFrom, } from './bridgeFrom';
|
|
4
|
+
export type { AccountActionBridgeTo, NormalActionBridgeTo } from './bridgeTo';
|
|
5
|
+
export type { AccountActionBuyNft, NormalActionBuyNft } from './buyNft';
|
|
6
|
+
export type { AccountAction, AccountActionType, ActionType, Evidence, NormalAction, } from './common';
|
|
7
|
+
export type { AccountActionDeposit, NormalActionDeposit } from './deposit';
|
|
8
|
+
export type { AccountActionDepositWithBond, NormalActionDepositWithBond, } from './depositWithBond';
|
|
9
|
+
export type { AccountActionFreeMintNft, NormalActionFreeMintNft, } from './freeMintNft';
|
|
10
|
+
export type { AccountActionIncome } from './income';
|
|
11
|
+
export type { AccountActionMove } from './move';
|
|
12
|
+
export type { AccountActionNftRoyalty } from './nftRoyalty';
|
|
13
|
+
export type { AccountActionRemoveLiquidity, NormalActionRemoveLiquidity, } from './removeLiquidity';
|
|
14
|
+
export type { AccountActionSellNft } from './sellNft';
|
|
15
|
+
export type { AccountActionSpam, NormalActionSpam } from './spam';
|
|
16
|
+
export type { AccountActionSwapIncome } from './swapIncome';
|
|
17
|
+
export type { AccountActionSwapNft } from './swapNft';
|
|
18
|
+
export type { AccountActionSwapTransfer } from './swapTransfer';
|
|
19
|
+
export type { AccountActionTrade, NormalActionTrade } from './trade';
|
|
20
|
+
export type { AccountActionTransactionFee, NormalActionTransactionFee, } from './transactionFee';
|
|
21
|
+
export type { AccountActionTransfer, NormalActionTransfer } from './transfer';
|
|
22
|
+
export type { AccountActionWithdraw, NormalActionWithdraw } from './withdraw';
|
|
23
|
+
export type { AccountActionWithdrawWithBond, NormalActionWithdrawWithBond, } from './withdrawWithBond';
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,gBAAgB,CAAA;AACvB,YAAY,EACV,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,cAAc,CAAA;AACrB,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAC7E,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AACvE,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACR,YAAY,GACb,MAAM,UAAU,CAAA;AACjB,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAC1E,YAAY,EACV,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,eAAe,CAAA;AACtB,YAAY,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AACnD,YAAY,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAC/C,YAAY,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAC3D,YAAY,EACV,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AACrD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AACjE,YAAY,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAC3D,YAAY,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AACrD,YAAY,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA;AAC/D,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AACpE,YAAY,EACV,2BAA2B,EAC3B,0BAA0B,GAC3B,MAAM,kBAAkB,CAAA;AACzB,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAC7E,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAC7E,YAAY,EACV,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, FiatCurrency, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction } from './common';
|
|
3
|
+
/** move asset between accounts */
|
|
4
|
+
export type AccountActionMove<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | FiatCurrency | Nft = CryptoCurrency | FiatCurrency | Nft> = AccountAction<'move', Source, Account, Price, Asset, 'none'>;
|
|
5
|
+
//# sourceMappingURL=move.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"move.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/move.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,GAAG,EACJ,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAE7C,kCAAkC;AAClC,MAAM,MAAM,iBAAiB,CAC3B,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,GAAG,GAC7C,cAAc,GACd,YAAY,GACZ,GAAG,IACL,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, FiatCurrency } from '../../assets';
|
|
2
|
+
import type { AccountAction } from './common';
|
|
3
|
+
type Action = 'nft-royalty';
|
|
4
|
+
/** nft-royalty */
|
|
5
|
+
export type AccountActionNftRoyalty<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | FiatCurrency = CryptoCurrency | FiatCurrency> = AccountAction<Action, Source, Account, Price, Asset, 'in'>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=nftRoyalty.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nftRoyalty.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/nftRoyalty.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,YAAY,EACb,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAE7C,KAAK,MAAM,GAAG,aAAa,CAAA;AAE3B,kBAAkB;AAClB,MAAM,MAAM,uBAAuB,CACjC,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,cAAc,GAAG,YAAY,IACzE,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
type Action = 'remove-liquidity';
|
|
4
|
+
export type NormalActionRemoveLiquidity<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'in' | 'out'>;
|
|
5
|
+
export type AccountActionRemoveLiquidity<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=removeLiquidity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeLiquidity.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/removeLiquidity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,KAAK,MAAM,GAAG,kBAAkB,CAAA;AAEhC,MAAM,MAAM,2BAA2B,CACrC,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA;AAE7D,MAAM,MAAM,4BAA4B,CACtC,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, FiatCurrency, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction } from './common';
|
|
3
|
+
type Action = 'sell-nft';
|
|
4
|
+
export type AccountActionSellNft<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | FiatCurrency | Nft = CryptoCurrency | FiatCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=sellNft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sellNft.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/sellNft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,GAAG,EACJ,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAE7C,KAAK,MAAM,GAAG,UAAU,CAAA;AAExB,MAAM,MAAM,oBAAoB,CAC9B,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,GAAG,GAC7C,cAAc,GACd,YAAY,GACZ,GAAG,IACL,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
export type Action = 'spam';
|
|
4
|
+
export type NormalActionSpam<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'none'>;
|
|
5
|
+
export type AccountActionSpam<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>;
|
|
6
|
+
//# sourceMappingURL=spam.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spam.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/spam.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,MAAM,MAAM,MAAM,GAAG,MAAM,CAAA;AAE3B,MAAM,MAAM,gBAAgB,CAC1B,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;AAEvD,MAAM,MAAM,iBAAiB,CAC3B,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction } from './common';
|
|
3
|
+
export type AccountActionSwapIncome<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = AccountAction<'swap-income', Source, Account, Price, Asset, 'in'>;
|
|
4
|
+
//# sourceMappingURL=swapIncome.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swapIncome.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/swapIncome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAE7C,MAAM,MAAM,uBAAuB,CACjC,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,aAAa,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction } from './common';
|
|
3
|
+
type Action = 'swap-nft';
|
|
4
|
+
export type AccountActionSwapNft<Account = unknown, Source extends string = string, Price extends undefined = undefined, Asset extends Nft = Nft> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=swapNft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swapNft.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/swapNft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAE7C,KAAK,MAAM,GAAG,UAAU,CAAA;AAExB,MAAM,MAAM,oBAAoB,CAC9B,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,SAAS,GAAG,SAAS,EACnC,KAAK,SAAS,GAAG,GAAG,GAAG,IACrB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction } from './common';
|
|
3
|
+
export type AccountActionSwapTransfer<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = AccountAction<'swap-transfer', Source, Account, Price, Asset, 'out'>;
|
|
4
|
+
//# sourceMappingURL=swapTransfer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swapTransfer.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/swapTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAE7C,MAAM,MAAM,yBAAyB,CACnC,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,aAAa,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, FiatCurrency, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
type Action = 'trade';
|
|
4
|
+
export type NormalActionTrade<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | FiatCurrency | Nft = CryptoCurrency | FiatCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'in' | 'out'>;
|
|
5
|
+
export type AccountActionTrade<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | FiatCurrency | Nft = CryptoCurrency | FiatCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=trade.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trade.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/trade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,GAAG,EACJ,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,KAAK,MAAM,GAAG,OAAO,CAAA;AAErB,MAAM,MAAM,iBAAiB,CAC3B,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,GAAG,GAC7C,cAAc,GACd,YAAY,GACZ,GAAG,IACL,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA;AAE7D,MAAM,MAAM,kBAAkB,CAC5B,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,GAAG,GAC7C,cAAc,GACd,YAAY,GACZ,GAAG,IACL,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
type Action = 'transaction-fee';
|
|
4
|
+
export type NormalActionTransactionFee<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined> = NormalAction<Action, Account, Price, CryptoCurrency, 'out'>;
|
|
5
|
+
export type AccountActionTransactionFee<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined> = AccountAction<Action, Source, Account, Price, CryptoCurrency, 'out'>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=transactionFee.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionFee.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/transactionFee.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,KAAK,MAAM,GAAG,iBAAiB,CAAA;AAE/B,MAAM,MAAM,0BAA0B,CACpC,OAAO,GAAG,OAAO,EACjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,IACX,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,CAAC,CAAA;AAE/D,MAAM,MAAM,2BAA2B,CACrC,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,IACX,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, FiatCurrency, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
export type Action = 'transfer';
|
|
4
|
+
/** asset transfer */
|
|
5
|
+
export type NormalActionTransfer<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | FiatCurrency | Nft = CryptoCurrency | FiatCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'none'>;
|
|
6
|
+
/** transfer from account to others */
|
|
7
|
+
export type AccountActionTransfer<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | FiatCurrency | Nft = CryptoCurrency | FiatCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'out'>;
|
|
8
|
+
//# sourceMappingURL=transfer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/transfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,GAAG,EACJ,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,MAAM,MAAM,MAAM,GAAG,UAAU,CAAA;AAE/B,qBAAqB;AACrB,MAAM,MAAM,oBAAoB,CAC9B,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,GAAG,GAC7C,cAAc,GACd,YAAY,GACZ,GAAG,IACL,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;AAEvD,sCAAsC;AACtC,MAAM,MAAM,qBAAqB,CAC/B,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,YAAY,GAAG,GAAG,GAC7C,cAAc,GACd,YAAY,GACZ,GAAG,IACL,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
type Action = 'withdraw';
|
|
4
|
+
export type NormalActionWithdraw<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'in'>;
|
|
5
|
+
export type AccountActionWithdraw<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'in'>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=withdraw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdraw.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/withdraw.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,KAAK,MAAM,GAAG,UAAU,CAAA;AAExB,MAAM,MAAM,oBAAoB,CAC9B,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;AAErD,MAAM,MAAM,qBAAqB,CAC/B,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice, Nft } from '../../assets';
|
|
2
|
+
import type { AccountAction, NormalAction } from './common';
|
|
3
|
+
type Action = 'withdraw-with-bond';
|
|
4
|
+
export type NormalActionWithdrawWithBond<Account = unknown, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = NormalAction<Action, Account, Price, Asset, 'in' | 'out'>;
|
|
5
|
+
export type AccountActionWithdrawWithBond<Account = unknown, Source extends string = string, Price extends CryptoCurrencyPrice | undefined = CryptoCurrencyPrice | undefined, Asset extends CryptoCurrency | Nft = CryptoCurrency | Nft> = AccountAction<Action, Source, Account, Price, Asset, 'in' | 'out'>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=withdrawWithBond.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdrawWithBond.d.ts","sourceRoot":"","sources":["../../../../src/actions/types/withdrawWithBond.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE3D,KAAK,MAAM,GAAG,oBAAoB,CAAA;AAElC,MAAM,MAAM,4BAA4B,CACtC,OAAO,GAAG,OAAO,EAEjB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA;AAE7D,MAAM,MAAM,6BAA6B,CACvC,OAAO,GAAG,OAAO,EACjB,MAAM,SAAS,MAAM,GAAG,MAAM,EAE9B,KAAK,SAAS,mBAAmB,GAAG,SAAS,GACzC,mBAAmB,GACnB,SAAS,EACb,KAAK,SAAS,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,IACvD,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,KAAK,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/apps/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACvC,YAAY,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type App = {
|
|
2
|
+
readonly id: string;
|
|
3
|
+
readonly categories: AppCategory[];
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly description: string | undefined;
|
|
6
|
+
readonly website: string | undefined;
|
|
7
|
+
readonly icon: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const appCategories: readonly ["bridge", "cex", "cross-chain", "dex", "gaming", "lending", "nft-marketplace", "other"];
|
|
10
|
+
export type AppCategory = (typeof appCategories)[number];
|
|
11
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/apps/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,GAAG;IAChB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,UAAU,EAAE,WAAW,EAAE,CAAA;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IACxC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,aAAa,mGAShB,CAAA;AACV,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/assets/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,IAAI,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCryptoCurrency.d.ts","sourceRoot":"","sources":["../../../../src/assets/creates/createCryptoCurrency.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAE9C,eAAO,MAAM,oBAAoB,yEAI/B,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FiatCurrency } from '../types';
|
|
2
|
+
export declare const createFiatCurrency: <TId extends "cny" | "eur" | "idr" | "jpy" | "krw" | "rub" | "twd" | "usd", const currency extends FiatCurrency<TId>>(currency: currency) => currency;
|
|
3
|
+
//# sourceMappingURL=createFiatCurrency.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createFiatCurrency.d.ts","sourceRoot":"","sources":["../../../../src/assets/creates/createFiatCurrency.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,UAAU,CAAA;AAE5D,eAAO,MAAM,kBAAkB,uJAO7B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/assets/creates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const astar: {
|
|
2
|
+
readonly type: "CryptoCurrency";
|
|
3
|
+
readonly id: "astar";
|
|
4
|
+
readonly name: "Astar";
|
|
5
|
+
readonly symbol: "ASTR";
|
|
6
|
+
readonly icon: undefined;
|
|
7
|
+
readonly market: {
|
|
8
|
+
readonly coingeckoId: "astar";
|
|
9
|
+
readonly marketCapUsd: undefined;
|
|
10
|
+
};
|
|
11
|
+
readonly updatedAt: number;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=astar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"astar.d.ts","sourceRoot":"","sources":["../../../../src/assets/definitions/astar.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;CAWhB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const avalanche: {
|
|
2
|
+
readonly type: "CryptoCurrency";
|
|
3
|
+
readonly id: "avalanche-2";
|
|
4
|
+
readonly name: "Avalanche";
|
|
5
|
+
readonly symbol: "AVAX";
|
|
6
|
+
readonly icon: undefined;
|
|
7
|
+
readonly market: {
|
|
8
|
+
readonly coingeckoId: "avalanche-2";
|
|
9
|
+
readonly marketCapUsd: undefined;
|
|
10
|
+
};
|
|
11
|
+
readonly updatedAt: number;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=avalanche.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avalanche.d.ts","sourceRoot":"","sources":["../../../../src/assets/definitions/avalanche.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;CAWpB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const bnb: {
|
|
2
|
+
readonly type: "CryptoCurrency";
|
|
3
|
+
readonly id: "binancecoin";
|
|
4
|
+
readonly name: "BNB";
|
|
5
|
+
readonly symbol: "BNB";
|
|
6
|
+
readonly icon: undefined;
|
|
7
|
+
readonly market: {
|
|
8
|
+
readonly coingeckoId: "binancecoin";
|
|
9
|
+
readonly marketCapUsd: undefined;
|
|
10
|
+
};
|
|
11
|
+
readonly updatedAt: number;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=bnb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bnb.d.ts","sourceRoot":"","sources":["../../../../src/assets/definitions/bnb.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG;;;;;;;;;;;CAWd,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Config } from '../../types';
|
|
2
|
+
import type { CryptoCurrency, CryptoCurrencyPrice } from '../types';
|
|
3
|
+
export declare const coingeckoCryptoCurrencyDataSource: {
|
|
4
|
+
readonly getCurrentPrice: ({ targetCurrencies, vsCurrency }: import("../types").GetCurrentPriceParameters, config?: Config) => Promise<{
|
|
5
|
+
cryptoCurrencyId: string;
|
|
6
|
+
crypto: CryptoCurrency;
|
|
7
|
+
fiatCurrencyId: "cny" | "eur" | "idr" | "jpy" | "krw" | "rub" | "twd" | "usd";
|
|
8
|
+
price: import("@0xtorch/big-decimal").BigDecimal;
|
|
9
|
+
timestamp: number;
|
|
10
|
+
}[]>;
|
|
11
|
+
readonly getHistoricalPrices: ({ targetCurrencies, vsCurrency, from, to }: import("../types").GetHistoricalPricesParameters, config?: Config) => Promise<CryptoCurrencyPrice[]>;
|
|
12
|
+
};
|
|
13
|
+
/** from, to を 90 日間毎に分割する */
|
|
14
|
+
export declare const splitFromToBy90DaysSeconds: (from: number, to: number) => {
|
|
15
|
+
readonly from: number;
|
|
16
|
+
readonly to: number;
|
|
17
|
+
}[];
|
|
18
|
+
//# sourceMappingURL=coingeckoCryptoCurrencyDataSource.d.ts.map
|