@ledgerhq/coin-framework 0.0.2-next.0
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/lib/account/accountId.d.ts +16 -0
- package/lib/account/accountId.d.ts.map +1 -0
- package/lib/account/accountId.js +85 -0
- package/lib/account/accountId.js.map +1 -0
- package/lib/account/accountName.d.ts +14 -0
- package/lib/account/accountName.d.ts.map +1 -0
- package/lib/account/accountName.js +17 -0
- package/lib/account/accountName.js.map +1 -0
- package/lib/account/addAccounts.d.ts +35 -0
- package/lib/account/addAccounts.d.ts.map +1 -0
- package/lib/account/addAccounts.js +209 -0
- package/lib/account/addAccounts.js.map +1 -0
- package/lib/account/balanceHistoryCache.d.ts +25 -0
- package/lib/account/balanceHistoryCache.d.ts.map +1 -0
- package/lib/account/balanceHistoryCache.js +115 -0
- package/lib/account/balanceHistoryCache.js.map +1 -0
- package/lib/account/groupOperations.d.ts +17 -0
- package/lib/account/groupOperations.d.ts.map +1 -0
- package/lib/account/groupOperations.js +127 -0
- package/lib/account/groupOperations.js.map +1 -0
- package/lib/account/helpers.d.ts +44 -0
- package/lib/account/helpers.d.ts.map +1 -0
- package/lib/account/helpers.js +333 -0
- package/lib/account/helpers.js.map +1 -0
- package/lib/account/helpers.test.d.ts +2 -0
- package/lib/account/helpers.test.d.ts.map +1 -0
- package/lib/account/helpers.test.js +366 -0
- package/lib/account/helpers.test.js.map +1 -0
- package/lib/account/index.d.ts +11 -0
- package/lib/account/index.d.ts.map +1 -0
- package/lib/account/index.js +27 -0
- package/lib/account/index.js.map +1 -0
- package/lib/account/ordering.d.ts +10 -0
- package/lib/account/ordering.d.ts.map +1 -0
- package/lib/account/ordering.js +110 -0
- package/lib/account/ordering.js.map +1 -0
- package/lib/account/pending.d.ts +33 -0
- package/lib/account/pending.d.ts.map +1 -0
- package/lib/account/pending.js +64 -0
- package/lib/account/pending.js.map +1 -0
- package/lib/account/serialization.d.ts +6 -0
- package/lib/account/serialization.d.ts.map +1 -0
- package/lib/account/serialization.js +118 -0
- package/lib/account/serialization.js.map +1 -0
- package/lib/account/support.d.ts +9 -0
- package/lib/account/support.d.ts.map +1 -0
- package/lib/account/support.js +72 -0
- package/lib/account/support.js.map +1 -0
- package/lib/account.test.d.ts +2 -0
- package/lib/account.test.d.ts.map +1 -0
- package/lib/account.test.js +257 -0
- package/lib/account.test.js.map +1 -0
- package/lib/bot/bot-test-context.d.ts +3 -0
- package/lib/bot/bot-test-context.d.ts.map +1 -0
- package/lib/bot/bot-test-context.js +26 -0
- package/lib/bot/bot-test-context.js.map +1 -0
- package/lib/bot/bot-test-context.test.d.ts +2 -0
- package/lib/bot/bot-test-context.test.d.ts.map +1 -0
- package/lib/bot/bot-test-context.test.js +41 -0
- package/lib/bot/bot-test-context.test.js.map +1 -0
- package/lib/bot/formatters.d.ts +2 -0
- package/lib/bot/formatters.d.ts.map +1 -0
- package/lib/bot/formatters.js +31 -0
- package/lib/bot/formatters.js.map +1 -0
- package/lib/bot/specs.d.ts +50 -0
- package/lib/bot/specs.d.ts.map +1 -0
- package/lib/bot/specs.js +204 -0
- package/lib/bot/specs.js.map +1 -0
- package/lib/bot/types.d.ts +178 -0
- package/lib/bot/types.d.ts.map +1 -0
- package/lib/bot/types.js +3 -0
- package/lib/bot/types.js.map +1 -0
- package/lib/bridge/getAddressWrapper.d.ts +6 -0
- package/lib/bridge/getAddressWrapper.d.ts.map +1 -0
- package/lib/bridge/getAddressWrapper.js +27 -0
- package/lib/bridge/getAddressWrapper.js.map +1 -0
- package/lib/bridge/jsHelpers.d.ts +63 -0
- package/lib/bridge/jsHelpers.d.ts.map +1 -0
- package/lib/bridge/jsHelpers.js +574 -0
- package/lib/bridge/jsHelpers.js.map +1 -0
- package/lib/cache.d.ts +10 -0
- package/lib/cache.d.ts.map +1 -0
- package/lib/cache.js +100 -0
- package/lib/cache.js.map +1 -0
- package/lib/cross.d.ts +42 -0
- package/lib/cross.d.ts.map +1 -0
- package/lib/cross.js +254 -0
- package/lib/cross.js.map +1 -0
- package/lib/cross.test.d.ts +2 -0
- package/lib/cross.test.d.ts.map +1 -0
- package/lib/cross.test.js +99 -0
- package/lib/cross.test.js.map +1 -0
- package/lib/currencies/BigNumberToLocaleString.d.ts +8 -0
- package/lib/currencies/BigNumberToLocaleString.d.ts.map +1 -0
- package/lib/currencies/BigNumberToLocaleString.js +65 -0
- package/lib/currencies/BigNumberToLocaleString.js.map +1 -0
- package/lib/currencies/BigNumberToLocaleString.test.d.ts +2 -0
- package/lib/currencies/BigNumberToLocaleString.test.d.ts.map +1 -0
- package/lib/currencies/BigNumberToLocaleString.test.js +108 -0
- package/lib/currencies/BigNumberToLocaleString.test.js.map +1 -0
- package/lib/currencies/CurrencyURIScheme.d.ts +13 -0
- package/lib/currencies/CurrencyURIScheme.d.ts.map +1 -0
- package/lib/currencies/CurrencyURIScheme.js +124 -0
- package/lib/currencies/CurrencyURIScheme.js.map +1 -0
- package/lib/currencies/chopCurrencyUnitDecimals.d.ts +3 -0
- package/lib/currencies/chopCurrencyUnitDecimals.d.ts.map +1 -0
- package/lib/currencies/chopCurrencyUnitDecimals.js +29 -0
- package/lib/currencies/chopCurrencyUnitDecimals.js.map +1 -0
- package/lib/currencies/formatCurrencyUnit.d.ts +33 -0
- package/lib/currencies/formatCurrencyUnit.d.ts.map +1 -0
- package/lib/currencies/formatCurrencyUnit.js +126 -0
- package/lib/currencies/formatCurrencyUnit.js.map +1 -0
- package/lib/currencies/formatShort.d.ts +8 -0
- package/lib/currencies/formatShort.d.ts.map +1 -0
- package/lib/currencies/formatShort.js +27 -0
- package/lib/currencies/formatShort.js.map +1 -0
- package/lib/currencies/index.d.ts +13 -0
- package/lib/currencies/index.d.ts.map +1 -0
- package/lib/currencies/index.js +65 -0
- package/lib/currencies/index.js.map +1 -0
- package/lib/currencies/localeUtility.d.ts +8 -0
- package/lib/currencies/localeUtility.d.ts.map +1 -0
- package/lib/currencies/localeUtility.js +49 -0
- package/lib/currencies/localeUtility.js.map +1 -0
- package/lib/currencies/parseCurrencyUnit.d.ts +4 -0
- package/lib/currencies/parseCurrencyUnit.d.ts.map +1 -0
- package/lib/currencies/parseCurrencyUnit.js +18 -0
- package/lib/currencies/parseCurrencyUnit.js.map +1 -0
- package/lib/currencies/sanitizeValueString.d.ts +6 -0
- package/lib/currencies/sanitizeValueString.d.ts.map +1 -0
- package/lib/currencies/sanitizeValueString.js +56 -0
- package/lib/currencies/sanitizeValueString.js.map +1 -0
- package/lib/currencies/support.d.ts +8 -0
- package/lib/currencies/support.d.ts.map +1 -0
- package/lib/currencies/support.js +101 -0
- package/lib/currencies/support.js.map +1 -0
- package/lib/currencies/valueFromUnit.d.ts +9 -0
- package/lib/currencies/valueFromUnit.d.ts.map +1 -0
- package/lib/currencies/valueFromUnit.js +14 -0
- package/lib/currencies/valueFromUnit.js.map +1 -0
- package/lib/derivation.d.ts +232 -0
- package/lib/derivation.d.ts.map +1 -0
- package/lib/derivation.js +501 -0
- package/lib/derivation.js.map +1 -0
- package/lib/env.d.ts +30 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +783 -0
- package/lib/env.js.map +1 -0
- package/lib/errors.d.ts +7 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +7 -0
- package/lib/errors.js.map +1 -0
- package/lib/errors.test.d.ts +2 -0
- package/lib/errors.test.d.ts.map +1 -0
- package/lib/errors.test.js +20 -0
- package/lib/errors.test.js.map +1 -0
- package/lib/mocks/account.d.ts +25 -0
- package/lib/mocks/account.d.ts.map +1 -0
- package/lib/mocks/account.js +368 -0
- package/lib/mocks/account.js.map +1 -0
- package/lib/mocks/fixtures/nfts.d.ts +27 -0
- package/lib/mocks/fixtures/nfts.d.ts.map +1 -0
- package/lib/mocks/fixtures/nfts.js +398 -0
- package/lib/mocks/fixtures/nfts.js.map +1 -0
- package/lib/mocks/fixtures/nfts.test.d.ts +2 -0
- package/lib/mocks/fixtures/nfts.test.d.ts.map +1 -0
- package/lib/mocks/fixtures/nfts.test.js +20 -0
- package/lib/mocks/fixtures/nfts.test.js.map +1 -0
- package/lib/mocks/helpers.d.ts +15 -0
- package/lib/mocks/helpers.d.ts.map +1 -0
- package/lib/mocks/helpers.js +32 -0
- package/lib/mocks/helpers.js.map +1 -0
- package/lib/network.d.ts +5 -0
- package/lib/network.d.ts.map +1 -0
- package/lib/network.js +125 -0
- package/lib/network.js.map +1 -0
- package/lib/nft/nftId.d.ts +8 -0
- package/lib/nft/nftId.d.ts.map +1 -0
- package/lib/nft/nftId.js +34 -0
- package/lib/nft/nftId.js.map +1 -0
- package/lib/operation.d.ts +24 -0
- package/lib/operation.d.ts.map +1 -0
- package/lib/operation.js +183 -0
- package/lib/operation.js.map +1 -0
- package/lib/promise.d.ts +21 -0
- package/lib/promise.d.ts.map +1 -0
- package/lib/promise.js +187 -0
- package/lib/promise.js.map +1 -0
- package/lib/promise.test.d.ts +2 -0
- package/lib/promise.test.d.ts.map +1 -0
- package/lib/promise.test.js +72 -0
- package/lib/promise.test.js.map +1 -0
- package/lib/rangeDates.d.ts +29 -0
- package/lib/rangeDates.d.ts.map +1 -0
- package/lib/rangeDates.js +94 -0
- package/lib/rangeDates.js.map +1 -0
- package/lib/rangeDates.test.d.ts +2 -0
- package/lib/rangeDates.test.d.ts.map +1 -0
- package/lib/rangeDates.test.js +51 -0
- package/lib/rangeDates.test.js.map +1 -0
- package/lib/test-helpers/staticTime.d.ts +2 -0
- package/lib/test-helpers/staticTime.d.ts.map +1 -0
- package/lib/test-helpers/staticTime.js +10 -0
- package/lib/test-helpers/staticTime.js.map +1 -0
- package/lib/transaction/common.d.ts +26 -0
- package/lib/transaction/common.d.ts.map +1 -0
- package/lib/transaction/common.js +123 -0
- package/lib/transaction/common.js.map +1 -0
- package/lib-es/account/accountId.d.ts +16 -0
- package/lib-es/account/accountId.d.ts.map +1 -0
- package/lib-es/account/accountId.js +74 -0
- package/lib-es/account/accountId.js.map +1 -0
- package/lib-es/account/accountName.d.ts +14 -0
- package/lib-es/account/accountName.d.ts.map +1 -0
- package/lib-es/account/accountName.js +12 -0
- package/lib-es/account/accountName.js.map +1 -0
- package/lib-es/account/addAccounts.d.ts +35 -0
- package/lib-es/account/addAccounts.d.ts.map +1 -0
- package/lib-es/account/addAccounts.js +200 -0
- package/lib-es/account/addAccounts.js.map +1 -0
- package/lib-es/account/balanceHistoryCache.d.ts +25 -0
- package/lib-es/account/balanceHistoryCache.d.ts.map +1 -0
- package/lib-es/account/balanceHistoryCache.js +109 -0
- package/lib-es/account/balanceHistoryCache.js.map +1 -0
- package/lib-es/account/groupOperations.d.ts +17 -0
- package/lib-es/account/groupOperations.d.ts.map +1 -0
- package/lib-es/account/groupOperations.js +122 -0
- package/lib-es/account/groupOperations.js.map +1 -0
- package/lib-es/account/helpers.d.ts +44 -0
- package/lib-es/account/helpers.d.ts.map +1 -0
- package/lib-es/account/helpers.js +303 -0
- package/lib-es/account/helpers.js.map +1 -0
- package/lib-es/account/helpers.test.d.ts +2 -0
- package/lib-es/account/helpers.test.d.ts.map +1 -0
- package/lib-es/account/helpers.test.js +361 -0
- package/lib-es/account/helpers.test.js.map +1 -0
- package/lib-es/account/index.d.ts +11 -0
- package/lib-es/account/index.d.ts.map +1 -0
- package/lib-es/account/index.js +11 -0
- package/lib-es/account/index.js.map +1 -0
- package/lib-es/account/ordering.d.ts +10 -0
- package/lib-es/account/ordering.d.ts.map +1 -0
- package/lib-es/account/ordering.js +103 -0
- package/lib-es/account/ordering.js.map +1 -0
- package/lib-es/account/pending.d.ts +33 -0
- package/lib-es/account/pending.d.ts.map +1 -0
- package/lib-es/account/pending.js +59 -0
- package/lib-es/account/pending.js.map +1 -0
- package/lib-es/account/serialization.d.ts +6 -0
- package/lib-es/account/serialization.d.ts.map +1 -0
- package/lib-es/account/serialization.js +112 -0
- package/lib-es/account/serialization.js.map +1 -0
- package/lib-es/account/support.d.ts +9 -0
- package/lib-es/account/support.d.ts.map +1 -0
- package/lib-es/account/support.js +64 -0
- package/lib-es/account/support.js.map +1 -0
- package/lib-es/account.test.d.ts +2 -0
- package/lib-es/account.test.d.ts.map +1 -0
- package/lib-es/account.test.js +252 -0
- package/lib-es/account.test.js.map +1 -0
- package/lib-es/bot/bot-test-context.d.ts +3 -0
- package/lib-es/bot/bot-test-context.d.ts.map +1 -0
- package/lib-es/bot/bot-test-context.js +21 -0
- package/lib-es/bot/bot-test-context.js.map +1 -0
- package/lib-es/bot/bot-test-context.test.d.ts +2 -0
- package/lib-es/bot/bot-test-context.test.d.ts.map +1 -0
- package/lib-es/bot/bot-test-context.test.js +39 -0
- package/lib-es/bot/bot-test-context.test.js.map +1 -0
- package/lib-es/bot/formatters.d.ts +2 -0
- package/lib-es/bot/formatters.d.ts.map +1 -0
- package/lib-es/bot/formatters.js +27 -0
- package/lib-es/bot/formatters.js.map +1 -0
- package/lib-es/bot/specs.d.ts +50 -0
- package/lib-es/bot/specs.d.ts.map +1 -0
- package/lib-es/bot/specs.js +193 -0
- package/lib-es/bot/specs.js.map +1 -0
- package/lib-es/bot/types.d.ts +178 -0
- package/lib-es/bot/types.d.ts.map +1 -0
- package/lib-es/bot/types.js +2 -0
- package/lib-es/bot/types.js.map +1 -0
- package/lib-es/bridge/getAddressWrapper.d.ts +6 -0
- package/lib-es/bridge/getAddressWrapper.d.ts.map +1 -0
- package/lib-es/bridge/getAddressWrapper.js +25 -0
- package/lib-es/bridge/getAddressWrapper.js.map +1 -0
- package/lib-es/bridge/jsHelpers.d.ts +63 -0
- package/lib-es/bridge/jsHelpers.d.ts.map +1 -0
- package/lib-es/bridge/jsHelpers.js +562 -0
- package/lib-es/bridge/jsHelpers.js.map +1 -0
- package/lib-es/cache.d.ts +10 -0
- package/lib-es/cache.d.ts.map +1 -0
- package/lib-es/cache.js +93 -0
- package/lib-es/cache.js.map +1 -0
- package/lib-es/cross.d.ts +42 -0
- package/lib-es/cross.d.ts.map +1 -0
- package/lib-es/cross.js +244 -0
- package/lib-es/cross.js.map +1 -0
- package/lib-es/cross.test.d.ts +2 -0
- package/lib-es/cross.test.d.ts.map +1 -0
- package/lib-es/cross.test.js +97 -0
- package/lib-es/cross.test.js.map +1 -0
- package/lib-es/currencies/BigNumberToLocaleString.d.ts +8 -0
- package/lib-es/currencies/BigNumberToLocaleString.d.ts.map +1 -0
- package/lib-es/currencies/BigNumberToLocaleString.js +61 -0
- package/lib-es/currencies/BigNumberToLocaleString.js.map +1 -0
- package/lib-es/currencies/BigNumberToLocaleString.test.d.ts +2 -0
- package/lib-es/currencies/BigNumberToLocaleString.test.d.ts.map +1 -0
- package/lib-es/currencies/BigNumberToLocaleString.test.js +106 -0
- package/lib-es/currencies/BigNumberToLocaleString.test.js.map +1 -0
- package/lib-es/currencies/CurrencyURIScheme.d.ts +13 -0
- package/lib-es/currencies/CurrencyURIScheme.d.ts.map +1 -0
- package/lib-es/currencies/CurrencyURIScheme.js +116 -0
- package/lib-es/currencies/CurrencyURIScheme.js.map +1 -0
- package/lib-es/currencies/chopCurrencyUnitDecimals.d.ts +3 -0
- package/lib-es/currencies/chopCurrencyUnitDecimals.d.ts.map +1 -0
- package/lib-es/currencies/chopCurrencyUnitDecimals.js +25 -0
- package/lib-es/currencies/chopCurrencyUnitDecimals.js.map +1 -0
- package/lib-es/currencies/formatCurrencyUnit.d.ts +33 -0
- package/lib-es/currencies/formatCurrencyUnit.d.ts.map +1 -0
- package/lib-es/currencies/formatCurrencyUnit.js +121 -0
- package/lib-es/currencies/formatCurrencyUnit.js.map +1 -0
- package/lib-es/currencies/formatShort.d.ts +8 -0
- package/lib-es/currencies/formatShort.d.ts.map +1 -0
- package/lib-es/currencies/formatShort.js +20 -0
- package/lib-es/currencies/formatShort.js.map +1 -0
- package/lib-es/currencies/index.d.ts +13 -0
- package/lib-es/currencies/index.d.ts.map +1 -0
- package/lib-es/currencies/index.js +16 -0
- package/lib-es/currencies/index.js.map +1 -0
- package/lib-es/currencies/localeUtility.d.ts +8 -0
- package/lib-es/currencies/localeUtility.d.ts.map +1 -0
- package/lib-es/currencies/localeUtility.js +43 -0
- package/lib-es/currencies/localeUtility.js.map +1 -0
- package/lib-es/currencies/parseCurrencyUnit.d.ts +4 -0
- package/lib-es/currencies/parseCurrencyUnit.d.ts.map +1 -0
- package/lib-es/currencies/parseCurrencyUnit.js +14 -0
- package/lib-es/currencies/parseCurrencyUnit.js.map +1 -0
- package/lib-es/currencies/sanitizeValueString.d.ts +6 -0
- package/lib-es/currencies/sanitizeValueString.d.ts.map +1 -0
- package/lib-es/currencies/sanitizeValueString.js +52 -0
- package/lib-es/currencies/sanitizeValueString.js.map +1 -0
- package/lib-es/currencies/support.d.ts +8 -0
- package/lib-es/currencies/support.d.ts.map +1 -0
- package/lib-es/currencies/support.js +92 -0
- package/lib-es/currencies/support.js.map +1 -0
- package/lib-es/currencies/valueFromUnit.d.ts +9 -0
- package/lib-es/currencies/valueFromUnit.d.ts.map +1 -0
- package/lib-es/currencies/valueFromUnit.js +10 -0
- package/lib-es/currencies/valueFromUnit.js.map +1 -0
- package/lib-es/derivation.d.ts +232 -0
- package/lib-es/derivation.d.ts.map +1 -0
- package/lib-es/derivation.js +473 -0
- package/lib-es/derivation.js.map +1 -0
- package/lib-es/env.d.ts +30 -0
- package/lib-es/env.d.ts.map +1 -0
- package/lib-es/env.js +768 -0
- package/lib-es/env.js.map +1 -0
- package/lib-es/errors.d.ts +7 -0
- package/lib-es/errors.d.ts.map +1 -0
- package/lib-es/errors.js +4 -0
- package/lib-es/errors.js.map +1 -0
- package/lib-es/errors.test.d.ts +2 -0
- package/lib-es/errors.test.d.ts.map +1 -0
- package/lib-es/errors.test.js +18 -0
- package/lib-es/errors.test.js.map +1 -0
- package/lib-es/mocks/account.d.ts +25 -0
- package/lib-es/mocks/account.d.ts.map +1 -0
- package/lib-es/mocks/account.js +358 -0
- package/lib-es/mocks/account.js.map +1 -0
- package/lib-es/mocks/fixtures/nfts.d.ts +27 -0
- package/lib-es/mocks/fixtures/nfts.d.ts.map +1 -0
- package/lib-es/mocks/fixtures/nfts.js +390 -0
- package/lib-es/mocks/fixtures/nfts.js.map +1 -0
- package/lib-es/mocks/fixtures/nfts.test.d.ts +2 -0
- package/lib-es/mocks/fixtures/nfts.test.d.ts.map +1 -0
- package/lib-es/mocks/fixtures/nfts.test.js +18 -0
- package/lib-es/mocks/fixtures/nfts.test.js.map +1 -0
- package/lib-es/mocks/helpers.d.ts +15 -0
- package/lib-es/mocks/helpers.d.ts.map +1 -0
- package/lib-es/mocks/helpers.js +26 -0
- package/lib-es/mocks/helpers.js.map +1 -0
- package/lib-es/network.d.ts +5 -0
- package/lib-es/network.d.ts.map +1 -0
- package/lib-es/network.js +118 -0
- package/lib-es/network.js.map +1 -0
- package/lib-es/nft/nftId.d.ts +8 -0
- package/lib-es/nft/nftId.d.ts.map +1 -0
- package/lib-es/nft/nftId.js +29 -0
- package/lib-es/nft/nftId.js.map +1 -0
- package/lib-es/operation.d.ts +24 -0
- package/lib-es/operation.d.ts.map +1 -0
- package/lib-es/operation.js +168 -0
- package/lib-es/operation.js.map +1 -0
- package/lib-es/promise.d.ts +21 -0
- package/lib-es/promise.d.ts.map +1 -0
- package/lib-es/promise.js +179 -0
- package/lib-es/promise.js.map +1 -0
- package/lib-es/promise.test.d.ts +2 -0
- package/lib-es/promise.test.d.ts.map +1 -0
- package/lib-es/promise.test.js +70 -0
- package/lib-es/promise.test.js.map +1 -0
- package/lib-es/rangeDates.d.ts +29 -0
- package/lib-es/rangeDates.d.ts.map +1 -0
- package/lib-es/rangeDates.js +84 -0
- package/lib-es/rangeDates.js.map +1 -0
- package/lib-es/rangeDates.test.d.ts +2 -0
- package/lib-es/rangeDates.test.d.ts.map +1 -0
- package/lib-es/rangeDates.test.js +49 -0
- package/lib-es/rangeDates.test.js.map +1 -0
- package/lib-es/test-helpers/staticTime.d.ts +2 -0
- package/lib-es/test-helpers/staticTime.d.ts.map +1 -0
- package/lib-es/test-helpers/staticTime.js +5 -0
- package/lib-es/test-helpers/staticTime.js.map +1 -0
- package/lib-es/transaction/common.d.ts +26 -0
- package/lib-es/transaction/common.d.ts.map +1 -0
- package/lib-es/transaction/common.js +115 -0
- package/lib-es/transaction/common.js.map +1 -0
- package/package.json +113 -0
- package/src/__snapshots__/account.test.ts.snap +2065 -0
- package/src/__snapshots__/cross.test.ts.snap +57 -0
- package/src/account/accountId.ts +93 -0
- package/src/account/accountName.ts +25 -0
- package/src/account/addAccounts.ts +236 -0
- package/src/account/balanceHistoryCache.ts +146 -0
- package/src/account/groupOperations.ts +164 -0
- package/src/account/helpers.test.ts +441 -0
- package/src/account/helpers.ts +380 -0
- package/src/account/index.ts +10 -0
- package/src/account/ordering.ts +109 -0
- package/src/account/pending.ts +66 -0
- package/src/account/serialization.ts +189 -0
- package/src/account/support.ts +96 -0
- package/src/account.test.ts +237 -0
- package/src/bot/bot-test-context.test.ts +37 -0
- package/src/bot/bot-test-context.ts +24 -0
- package/src/bot/formatters.ts +22 -0
- package/src/bot/specs.ts +275 -0
- package/src/bot/types.ts +224 -0
- package/src/bridge/getAddressWrapper.ts +40 -0
- package/src/bridge/jsHelpers.ts +645 -0
- package/src/cache.ts +65 -0
- package/src/cross.test.ts +112 -0
- package/src/cross.ts +366 -0
- package/src/currencies/BigNumberToLocaleString.test.ts +155 -0
- package/src/currencies/BigNumberToLocaleString.ts +80 -0
- package/src/currencies/CurrencyURIScheme.ts +114 -0
- package/src/currencies/chopCurrencyUnitDecimals.ts +34 -0
- package/src/currencies/formatCurrencyUnit.ts +167 -0
- package/src/currencies/formatShort.ts +24 -0
- package/src/currencies/index.ts +78 -0
- package/src/currencies/localeUtility.ts +50 -0
- package/src/currencies/parseCurrencyUnit.ts +16 -0
- package/src/currencies/sanitizeValueString.ts +58 -0
- package/src/currencies/support.ts +107 -0
- package/src/currencies/valueFromUnit.ts +10 -0
- package/src/derivation.ts +595 -0
- package/src/env.ts +790 -0
- package/src/errors.test.ts +21 -0
- package/src/errors.ts +9 -0
- package/src/mocks/account.ts +476 -0
- package/src/mocks/fixtures/nfts.test.ts +25 -0
- package/src/mocks/fixtures/nfts.ts +432 -0
- package/src/mocks/helpers.ts +38 -0
- package/src/network.ts +135 -0
- package/src/nft/nftId.ts +26 -0
- package/src/operation.ts +212 -0
- package/src/promise.test.ts +20 -0
- package/src/promise.ts +101 -0
- package/src/rangeDates.test.ts +66 -0
- package/src/rangeDates.ts +96 -0
- package/src/test-helpers/staticTime.ts +4 -0
- package/src/transaction/common.ts +157 -0
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
exports.__esModule = true;
|
|
17
|
+
var bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
18
|
+
var _1 = require(".");
|
|
19
|
+
var helpers_1 = require("./helpers");
|
|
20
|
+
var mockAccount = {};
|
|
21
|
+
var childAccount = __assign(__assign({}, mockAccount), { type: "ChildAccount", parentId: "sampleId", address: "sampleAddress" });
|
|
22
|
+
var tokenAccount = __assign(__assign({}, mockAccount), { type: "TokenAccount", token: {}, parentId: "sampleId" });
|
|
23
|
+
describe(_1.getAccountCurrency.name, function () {
|
|
24
|
+
describe("given an Account", function () {
|
|
25
|
+
beforeEach(function () {
|
|
26
|
+
mockAccount.type = "Account";
|
|
27
|
+
});
|
|
28
|
+
it("should return the currency", function () {
|
|
29
|
+
var sampleCurrency = { family: "bitcoin" };
|
|
30
|
+
mockAccount.currency = sampleCurrency;
|
|
31
|
+
expect((0, _1.getAccountCurrency)(mockAccount)).toEqual(sampleCurrency);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
describe("given a ChildAccount", function () {
|
|
35
|
+
it("should return the currency", function () {
|
|
36
|
+
var sampleCurrency = { family: "bitcoin" };
|
|
37
|
+
childAccount.currency = sampleCurrency;
|
|
38
|
+
expect((0, _1.getAccountCurrency)(childAccount)).toEqual(sampleCurrency);
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
describe("given a TokenAccount", function () {
|
|
42
|
+
it("should return the token currency", function () {
|
|
43
|
+
var sampleToken = { id: "tokenId" };
|
|
44
|
+
tokenAccount.token = sampleToken;
|
|
45
|
+
expect((0, _1.getAccountCurrency)(tokenAccount)).toEqual(sampleToken);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
describe("given an unknown type Account", function () {
|
|
49
|
+
beforeEach(function () {
|
|
50
|
+
mockAccount.type = "DefinitelyNotAStandardAccount";
|
|
51
|
+
});
|
|
52
|
+
it("should throw an error", function () {
|
|
53
|
+
expect(function () { return (0, _1.getAccountCurrency)(mockAccount); }).toThrow(Error);
|
|
54
|
+
});
|
|
55
|
+
it("should display the account type in the error message", function () {
|
|
56
|
+
expect.assertions(1);
|
|
57
|
+
try {
|
|
58
|
+
(0, _1.getAccountCurrency)(mockAccount);
|
|
59
|
+
}
|
|
60
|
+
catch (e) {
|
|
61
|
+
expect(e.message.includes(mockAccount.type)).toEqual(true);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
describe(_1.getAccountUnit.name, function () {
|
|
67
|
+
describe("given an Account", function () {
|
|
68
|
+
beforeEach(function () {
|
|
69
|
+
mockAccount.type = "Account";
|
|
70
|
+
});
|
|
71
|
+
it("should return the unit", function () {
|
|
72
|
+
var sampleUnit = { name: "unit" };
|
|
73
|
+
mockAccount.unit = sampleUnit;
|
|
74
|
+
expect((0, _1.getAccountUnit)(mockAccount)).toEqual(sampleUnit);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
describe("given a ChildAccount", function () {
|
|
78
|
+
it("should return the currency unit", function () {
|
|
79
|
+
var sampleUnit = { name: "unit" };
|
|
80
|
+
childAccount.currency = { units: [sampleUnit] };
|
|
81
|
+
expect((0, _1.getAccountUnit)(childAccount)).toEqual(sampleUnit);
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
describe("given a TokenAccount", function () {
|
|
85
|
+
it("should return the token unit", function () {
|
|
86
|
+
var sampleUnit = { name: "unit" };
|
|
87
|
+
tokenAccount.token = { units: [sampleUnit] };
|
|
88
|
+
expect((0, _1.getAccountUnit)(tokenAccount)).toEqual(sampleUnit);
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
describe("given an unknown type Account", function () {
|
|
92
|
+
beforeEach(function () {
|
|
93
|
+
mockAccount.type = "DefinitelyNotAStandardAccount";
|
|
94
|
+
});
|
|
95
|
+
it("should throw an error", function () {
|
|
96
|
+
expect(function () { return (0, _1.getAccountUnit)(mockAccount); }).toThrow(Error);
|
|
97
|
+
});
|
|
98
|
+
it("should display the account type in the error message", function () {
|
|
99
|
+
expect.assertions(1);
|
|
100
|
+
try {
|
|
101
|
+
(0, _1.getAccountUnit)(mockAccount);
|
|
102
|
+
}
|
|
103
|
+
catch (e) {
|
|
104
|
+
expect(e.message.includes(mockAccount.type)).toEqual(true);
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
describe(_1.getAccountName.name, function () {
|
|
110
|
+
describe("given an Account", function () {
|
|
111
|
+
beforeEach(function () {
|
|
112
|
+
mockAccount.type = "Account";
|
|
113
|
+
});
|
|
114
|
+
it("should return the account name", function () {
|
|
115
|
+
var sampleAccountName = "SampleAccountName";
|
|
116
|
+
mockAccount.name = sampleAccountName;
|
|
117
|
+
expect((0, _1.getAccountName)(mockAccount)).toEqual(sampleAccountName);
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
describe("given a ChildAccount", function () {
|
|
121
|
+
it("should return the account name", function () {
|
|
122
|
+
var sampleAccountName = "SampleAccountName";
|
|
123
|
+
childAccount.name = sampleAccountName;
|
|
124
|
+
expect((0, _1.getAccountName)(childAccount)).toEqual(sampleAccountName);
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
describe("given a TokenAccount", function () {
|
|
128
|
+
it("should return the token account name", function () {
|
|
129
|
+
var sampleAccountName = "SampleAccountName";
|
|
130
|
+
tokenAccount.token = { name: sampleAccountName };
|
|
131
|
+
expect((0, _1.getAccountName)(tokenAccount)).toEqual(sampleAccountName);
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
describe("given an unknown type Account", function () {
|
|
135
|
+
beforeEach(function () {
|
|
136
|
+
mockAccount.type = "DefinitelyNotAStandardAccount";
|
|
137
|
+
});
|
|
138
|
+
it("should throw an error", function () {
|
|
139
|
+
expect(function () { return (0, _1.getAccountName)(mockAccount); }).toThrow(Error);
|
|
140
|
+
});
|
|
141
|
+
it("should display the account type in the error message", function () {
|
|
142
|
+
expect.assertions(1);
|
|
143
|
+
try {
|
|
144
|
+
(0, _1.getAccountName)(mockAccount);
|
|
145
|
+
}
|
|
146
|
+
catch (e) {
|
|
147
|
+
expect(e.message.includes(mockAccount.type)).toEqual(true);
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
describe(_1.getAccountSpendableBalance.name, function () {
|
|
153
|
+
describe("given an Account", function () {
|
|
154
|
+
beforeEach(function () {
|
|
155
|
+
mockAccount.type = "Account";
|
|
156
|
+
});
|
|
157
|
+
it("should return the account spendable balance", function () {
|
|
158
|
+
var sampleAccountBalance = new bignumber_js_1["default"](10);
|
|
159
|
+
mockAccount.spendableBalance = sampleAccountBalance;
|
|
160
|
+
expect((0, _1.getAccountSpendableBalance)(mockAccount)).toEqual(sampleAccountBalance);
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
describe("given a ChildAccount", function () {
|
|
164
|
+
it("should return the account balance", function () {
|
|
165
|
+
var sampleAccountBalance = new bignumber_js_1["default"](10);
|
|
166
|
+
childAccount.balance = sampleAccountBalance;
|
|
167
|
+
expect((0, _1.getAccountSpendableBalance)(childAccount)).toEqual(sampleAccountBalance);
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
describe("given a TokenAccount", function () {
|
|
171
|
+
it("should return the token account spendable balance", function () {
|
|
172
|
+
var sampleAccountBalance = new bignumber_js_1["default"](10);
|
|
173
|
+
tokenAccount.spendableBalance = sampleAccountBalance;
|
|
174
|
+
expect((0, _1.getAccountSpendableBalance)(tokenAccount)).toEqual(sampleAccountBalance);
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
describe("given an unknown type Account", function () {
|
|
178
|
+
beforeEach(function () {
|
|
179
|
+
mockAccount.type = "DefinitelyNotAStandardAccount";
|
|
180
|
+
});
|
|
181
|
+
it("should throw an error", function () {
|
|
182
|
+
expect(function () { return (0, _1.getAccountSpendableBalance)(mockAccount); }).toThrow(Error);
|
|
183
|
+
});
|
|
184
|
+
it("should display the account type in the error message", function () {
|
|
185
|
+
expect.assertions(1);
|
|
186
|
+
try {
|
|
187
|
+
(0, _1.getAccountSpendableBalance)(mockAccount);
|
|
188
|
+
}
|
|
189
|
+
catch (e) {
|
|
190
|
+
expect(e.message.includes(mockAccount.type)).toEqual(true);
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
describe(helpers_1.isAccountEmpty.name, function () {
|
|
196
|
+
describe("given an account", function () {
|
|
197
|
+
beforeEach(function () {
|
|
198
|
+
mockAccount.type = "Account";
|
|
199
|
+
mockAccount.currency = { family: "ethereum" };
|
|
200
|
+
});
|
|
201
|
+
describe("when account has no subaccounts", function () {
|
|
202
|
+
beforeEach(function () {
|
|
203
|
+
mockAccount.subAccounts = [];
|
|
204
|
+
});
|
|
205
|
+
describe("and balance is zero", function () {
|
|
206
|
+
beforeEach(function () {
|
|
207
|
+
mockAccount.balance = new bignumber_js_1["default"](0);
|
|
208
|
+
});
|
|
209
|
+
it("should return true if operationsCount is 0", function () {
|
|
210
|
+
mockAccount.operationsCount = 0;
|
|
211
|
+
expect((0, helpers_1.isAccountEmpty)(mockAccount)).toEqual(true);
|
|
212
|
+
});
|
|
213
|
+
it("should return false if operationsCount is higher than 0", function () {
|
|
214
|
+
mockAccount.operationsCount = 1;
|
|
215
|
+
expect((0, helpers_1.isAccountEmpty)(mockAccount)).toEqual(false);
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
describe("and balance is higher than 0", function () {
|
|
219
|
+
beforeEach(function () {
|
|
220
|
+
mockAccount.balance = new bignumber_js_1["default"](42);
|
|
221
|
+
});
|
|
222
|
+
it("should return false if operationsCount is 0", function () {
|
|
223
|
+
mockAccount.operationsCount = 0;
|
|
224
|
+
expect((0, helpers_1.isAccountEmpty)(mockAccount)).toEqual(false);
|
|
225
|
+
});
|
|
226
|
+
it("should return false if operationsCount is higher than 0", function () {
|
|
227
|
+
mockAccount.operationsCount = 1;
|
|
228
|
+
expect((0, helpers_1.isAccountEmpty)(mockAccount)).toEqual(false);
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
describe("when account has subaccounts", function () {
|
|
233
|
+
beforeEach(function () {
|
|
234
|
+
mockAccount.subAccounts = [{}];
|
|
235
|
+
});
|
|
236
|
+
it("should return false", function () {
|
|
237
|
+
expect((0, helpers_1.isAccountEmpty)(mockAccount)).toEqual(false);
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
describe(_1.areAllOperationsLoaded.name, function () {
|
|
243
|
+
describe("given an account with subAccounts", function () {
|
|
244
|
+
beforeEach(function () {
|
|
245
|
+
mockAccount.type = "Account";
|
|
246
|
+
mockAccount.operations = [];
|
|
247
|
+
mockAccount.operationsCount = 0;
|
|
248
|
+
mockAccount.subAccounts = [
|
|
249
|
+
{
|
|
250
|
+
operations: [],
|
|
251
|
+
operationsCount: 0
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
operations: [{}],
|
|
255
|
+
operationsCount: 1
|
|
256
|
+
},
|
|
257
|
+
];
|
|
258
|
+
});
|
|
259
|
+
describe("when sub account operation aren't loaded", function () {
|
|
260
|
+
beforeEach(function () {
|
|
261
|
+
mockAccount.subAccounts[1].operations = [];
|
|
262
|
+
});
|
|
263
|
+
it("should return false", function () {
|
|
264
|
+
expect((0, _1.areAllOperationsLoaded)(mockAccount)).toEqual(false);
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
describe("when sub account operation are loaded", function () {
|
|
268
|
+
it("should return true", function () {
|
|
269
|
+
expect((0, _1.areAllOperationsLoaded)(mockAccount)).toEqual(true);
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
describe("given an account without subAccounts", function () {
|
|
274
|
+
describe("when operations count is different from operations length", function () {
|
|
275
|
+
beforeEach(function () {
|
|
276
|
+
childAccount.operationsCount = 2;
|
|
277
|
+
childAccount.operations = [{}];
|
|
278
|
+
});
|
|
279
|
+
it("should return false", function () {
|
|
280
|
+
expect((0, _1.areAllOperationsLoaded)(childAccount)).toEqual(false);
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
describe("when operations count is same as operations length", function () {
|
|
284
|
+
beforeEach(function () {
|
|
285
|
+
childAccount.operationsCount = 1;
|
|
286
|
+
childAccount.operations = [{}];
|
|
287
|
+
});
|
|
288
|
+
it("should return true", function () {
|
|
289
|
+
expect((0, _1.areAllOperationsLoaded)(childAccount)).toEqual(true);
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
describe(helpers_1.isAccountBalanceSignificant.name, function () {
|
|
295
|
+
describe("when balance is low", function () {
|
|
296
|
+
beforeEach(function () {
|
|
297
|
+
mockAccount.balance = new bignumber_js_1["default"](10);
|
|
298
|
+
});
|
|
299
|
+
it("should return false", function () {
|
|
300
|
+
expect((0, helpers_1.isAccountBalanceSignificant)(mockAccount)).toEqual(false);
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
describe("when balance is high", function () {
|
|
304
|
+
beforeEach(function () {
|
|
305
|
+
mockAccount.balance = new bignumber_js_1["default"](101);
|
|
306
|
+
});
|
|
307
|
+
it("should return true", function () {
|
|
308
|
+
expect((0, helpers_1.isAccountBalanceSignificant)(mockAccount)).toEqual(true);
|
|
309
|
+
});
|
|
310
|
+
});
|
|
311
|
+
});
|
|
312
|
+
describe(helpers_1.clearAccount.name, function () {
|
|
313
|
+
describe("given a TokenAccount", function () {
|
|
314
|
+
var tokenAccount = __assign(__assign({}, mockAccount), { token: {}, parentId: "sampleId", type: "TokenAccount" });
|
|
315
|
+
it("should clear operations", function () {
|
|
316
|
+
var clearedAccount = (0, helpers_1.clearAccount)(tokenAccount);
|
|
317
|
+
expect(clearedAccount.operations.length).toEqual(0);
|
|
318
|
+
expect(clearedAccount.pendingOperations.length).toEqual(0);
|
|
319
|
+
});
|
|
320
|
+
it("should clear balanceHistory", function () {
|
|
321
|
+
var clearedAccount = (0, helpers_1.clearAccount)(tokenAccount);
|
|
322
|
+
expect(clearedAccount.balanceHistoryCache).toEqual(_1.emptyHistoryCache);
|
|
323
|
+
});
|
|
324
|
+
});
|
|
325
|
+
describe("given a ChildAccount", function () {
|
|
326
|
+
var childAccount = __assign(__assign({}, mockAccount), { type: "ChildAccount", parentId: "sampleId", address: "sampleAddress" });
|
|
327
|
+
it("should clear operations", function () {
|
|
328
|
+
var clearedAccount = (0, helpers_1.clearAccount)(childAccount);
|
|
329
|
+
expect(clearedAccount.operations.length).toEqual(0);
|
|
330
|
+
expect(clearedAccount.pendingOperations.length).toEqual(0);
|
|
331
|
+
});
|
|
332
|
+
it("should clear balanceHistory", function () {
|
|
333
|
+
var clearedAccount = (0, helpers_1.clearAccount)(childAccount);
|
|
334
|
+
expect(clearedAccount.balanceHistoryCache).toEqual(_1.emptyHistoryCache);
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
describe("given an Account", function () {
|
|
338
|
+
var ethereumCurrency = {
|
|
339
|
+
family: "ethereum"
|
|
340
|
+
};
|
|
341
|
+
var withSubAccounts = __assign(__assign({}, mockAccount), { subAccounts: [
|
|
342
|
+
{
|
|
343
|
+
currency: ethereumCurrency
|
|
344
|
+
},
|
|
345
|
+
], currency: ethereumCurrency });
|
|
346
|
+
it("should clear operations", function () {
|
|
347
|
+
var clearedAccount = (0, helpers_1.clearAccount)(withSubAccounts);
|
|
348
|
+
expect(clearedAccount.operations.length).toEqual(0);
|
|
349
|
+
expect(clearedAccount.pendingOperations.length).toEqual(0);
|
|
350
|
+
});
|
|
351
|
+
it("should clear balanceHistory", function () {
|
|
352
|
+
var clearedAccount = (0, helpers_1.clearAccount)(withSubAccounts);
|
|
353
|
+
expect(clearedAccount.balanceHistoryCache).toEqual(_1.emptyHistoryCache);
|
|
354
|
+
});
|
|
355
|
+
it("should reset lastSyncDate", function () {
|
|
356
|
+
var clearedAccount = (0, helpers_1.clearAccount)(withSubAccounts);
|
|
357
|
+
expect(clearedAccount.lastSyncDate).toEqual(new Date(0));
|
|
358
|
+
});
|
|
359
|
+
it("should delete nfts attribute", function () {
|
|
360
|
+
withSubAccounts.nfts = [];
|
|
361
|
+
var clearedAccount = (0, helpers_1.clearAccount)(withSubAccounts);
|
|
362
|
+
expect(Object.keys(clearedAccount).indexOf("nfts")).toEqual(-1);
|
|
363
|
+
});
|
|
364
|
+
});
|
|
365
|
+
});
|
|
366
|
+
//# sourceMappingURL=helpers.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.test.js","sourceRoot":"","sources":["../../src/account/helpers.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAYA,8DAAqC;AACrC,sBAOW;AACX,qCAImB;AAEnB,IAAM,WAAW,GAAG,EAAa,CAAC;AA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e,CAAC,CAAC;YACrD,MAAM,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,oBAAiB,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,2BAA2B,EAAE;YAC9B,IAAM,cAAc,GAAG,IAAA,sBAAY,EAAC,eAAe,CAAC,CAAC;YACrD,MAAM,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,8BAA8B,EAAE;YACjC,eAAe,CAAC,IAAI,GAAG,EAAE,CAAC;YAC1B,IAAM,cAAc,GAAG,IAAA,sBAAY,EAAC,eAAe,CAAC,CAAC;YACrD,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./accountId";
|
|
2
|
+
export * from "./accountName";
|
|
3
|
+
export * from "./addAccounts";
|
|
4
|
+
export * from "./balanceHistoryCache";
|
|
5
|
+
export * from "./groupOperations";
|
|
6
|
+
export * from "./helpers";
|
|
7
|
+
export * from "./ordering";
|
|
8
|
+
export * from "./pending";
|
|
9
|
+
export * from "./serialization";
|
|
10
|
+
export * from "./support";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/account/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
exports.__esModule = true;
|
|
17
|
+
__exportStar(require("./accountId"), exports);
|
|
18
|
+
__exportStar(require("./accountName"), exports);
|
|
19
|
+
__exportStar(require("./addAccounts"), exports);
|
|
20
|
+
__exportStar(require("./balanceHistoryCache"), exports);
|
|
21
|
+
__exportStar(require("./groupOperations"), exports);
|
|
22
|
+
__exportStar(require("./helpers"), exports);
|
|
23
|
+
__exportStar(require("./ordering"), exports);
|
|
24
|
+
__exportStar(require("./pending"), exports);
|
|
25
|
+
__exportStar(require("./serialization"), exports);
|
|
26
|
+
__exportStar(require("./support"), exports);
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/account/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,gDAA8B;AAC9B,gDAA8B;AAC9B,wDAAsC;AACtC,oDAAkC;AAClC,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,kDAAgC;AAChC,4CAA0B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BigNumber } from "bignumber.js";
|
|
2
|
+
import type { FlattenAccountsOptions } from "./helpers";
|
|
3
|
+
import type { Account, AccountLike } from "@ledgerhq/types-live";
|
|
4
|
+
import type { CryptoCurrency, TokenCurrency } from "@ledgerhq/types-cryptoassets";
|
|
5
|
+
export type AccountComparator = (a: AccountLike, b: AccountLike) => number;
|
|
6
|
+
export declare const sortAccountsComparatorFromOrder: (orderAccounts: string, calculateCountervalue: (currency: TokenCurrency | CryptoCurrency, value: BigNumber) => BigNumber | null | undefined) => AccountComparator;
|
|
7
|
+
export declare const comparatorSortAccounts: <TA extends AccountLike>(accounts: TA[], comparator: AccountComparator) => TA[];
|
|
8
|
+
export declare const flattenSortAccounts: (accounts: Account[], comparator: AccountComparator, o?: FlattenAccountsOptions) => AccountLike[];
|
|
9
|
+
export declare const nestedSortAccounts: (topAccounts: Account[], comparator: AccountComparator) => Account[];
|
|
10
|
+
//# sourceMappingURL=ordering.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ordering.d.ts","sourceRoot":"","sources":["../../src/account/ordering.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACd,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,KAAK,MAAM,CAAC;AAkB3E,eAAO,MAAM,+BAA+B,kBAC3B,MAAM,oCAET,aAAa,GAAG,cAAc,SACjC,SAAS,KACb,SAAS,GAAG,IAAI,GAAG,SAAS,KAChC,iBA4BF,CAAC;AACF,eAAO,MAAM,sBAAsB,uDAErB,iBAAiB,SAgB9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,aACpB,OAAO,EAAE,cACP,iBAAiB,MACzB,sBAAsB,KACzB,WAAW,EAEb,CAAC;AAEF,eAAO,MAAM,kBAAkB,gBAChB,OAAO,EAAE,cACV,iBAAiB,KAC5B,OAAO,EAeT,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
14
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
|
+
if (!m) return o;
|
|
16
|
+
var i = m.call(o), r, ar = [], e;
|
|
17
|
+
try {
|
|
18
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
19
|
+
}
|
|
20
|
+
catch (error) { e = { error: error }; }
|
|
21
|
+
finally {
|
|
22
|
+
try {
|
|
23
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
24
|
+
}
|
|
25
|
+
finally { if (e) throw e.error; }
|
|
26
|
+
}
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
exports.__esModule = true;
|
|
30
|
+
exports.nestedSortAccounts = exports.flattenSortAccounts = exports.comparatorSortAccounts = exports.sortAccountsComparatorFromOrder = void 0;
|
|
31
|
+
var bignumber_js_1 = require("bignumber.js");
|
|
32
|
+
var helpers_1 = require("./helpers");
|
|
33
|
+
var sortNameLense = function (a) {
|
|
34
|
+
switch (a.type) {
|
|
35
|
+
case "Account":
|
|
36
|
+
return a.name;
|
|
37
|
+
case "TokenAccount":
|
|
38
|
+
return a.token.name;
|
|
39
|
+
case "ChildAccount":
|
|
40
|
+
return a.currency.name;
|
|
41
|
+
default:
|
|
42
|
+
return "";
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var sortAccountsComparatorFromOrder = function (orderAccounts, calculateCountervalue) {
|
|
46
|
+
var _a = __read(orderAccounts.split("|"), 2), order = _a[0], sort = _a[1];
|
|
47
|
+
var ascValue = sort === "desc" ? -1 : 1;
|
|
48
|
+
if (order === "name") {
|
|
49
|
+
return function (a, b) {
|
|
50
|
+
return ascValue *
|
|
51
|
+
sortNameLense(a).localeCompare(sortNameLense(b), undefined, {
|
|
52
|
+
numeric: true
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
var cvCaches = {};
|
|
57
|
+
var lazyCalcCV = function (a) {
|
|
58
|
+
if (a.id in cvCaches)
|
|
59
|
+
return cvCaches[a.id];
|
|
60
|
+
var v = calculateCountervalue((0, helpers_1.getAccountCurrency)(a), a.balance) ||
|
|
61
|
+
new bignumber_js_1.BigNumber(-1);
|
|
62
|
+
cvCaches[a.id] = v;
|
|
63
|
+
return v;
|
|
64
|
+
};
|
|
65
|
+
return function (a, b) {
|
|
66
|
+
var diff = ascValue * lazyCalcCV(a).minus(lazyCalcCV(b)).toNumber();
|
|
67
|
+
if (diff === 0)
|
|
68
|
+
return sortNameLense(a).localeCompare(sortNameLense(b));
|
|
69
|
+
return diff;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
exports.sortAccountsComparatorFromOrder = sortAccountsComparatorFromOrder;
|
|
73
|
+
var comparatorSortAccounts = function (accounts, comparator) {
|
|
74
|
+
var meta = accounts
|
|
75
|
+
.map(function (ta, index) { return ({
|
|
76
|
+
account: ta,
|
|
77
|
+
index: index
|
|
78
|
+
}); })
|
|
79
|
+
.sort(function (a, b) { return comparator(a.account, b.account); });
|
|
80
|
+
if (meta.every(function (m, i) { return m.index === i; })) {
|
|
81
|
+
// account ordering is preserved, we keep the same array reference (this should happen most of the time)
|
|
82
|
+
return accounts;
|
|
83
|
+
}
|
|
84
|
+
// otherwise, need to reorder
|
|
85
|
+
return meta.map(function (m) { return accounts[m.index]; });
|
|
86
|
+
};
|
|
87
|
+
exports.comparatorSortAccounts = comparatorSortAccounts;
|
|
88
|
+
// flatten accounts and sort between them (used for grid mode)
|
|
89
|
+
var flattenSortAccounts = function (accounts, comparator, o) {
|
|
90
|
+
return (0, exports.comparatorSortAccounts)((0, helpers_1.flattenAccounts)(accounts, o), comparator);
|
|
91
|
+
};
|
|
92
|
+
exports.flattenSortAccounts = flattenSortAccounts;
|
|
93
|
+
// sort top level accounts and the inner sub accounts if necessary (used for lists)
|
|
94
|
+
var nestedSortAccounts = function (topAccounts, comparator) {
|
|
95
|
+
var oneAccountHaveChanged = false;
|
|
96
|
+
// first of all we sort the inner token accounts
|
|
97
|
+
var accounts = topAccounts.map(function (a) {
|
|
98
|
+
if (!a.subAccounts)
|
|
99
|
+
return a;
|
|
100
|
+
var subAccounts = (0, exports.comparatorSortAccounts)(a.subAccounts, comparator);
|
|
101
|
+
if (subAccounts === a.subAccounts)
|
|
102
|
+
return a;
|
|
103
|
+
oneAccountHaveChanged = true;
|
|
104
|
+
return __assign(__assign({}, a), { subAccounts: subAccounts });
|
|
105
|
+
});
|
|
106
|
+
// then we sort again between them
|
|
107
|
+
return (0, exports.comparatorSortAccounts)(oneAccountHaveChanged ? accounts : topAccounts, comparator);
|
|
108
|
+
};
|
|
109
|
+
exports.nestedSortAccounts = nestedSortAccounts;
|
|
110
|
+
//# sourceMappingURL=ordering.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ordering.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;AACF,8DAA8D;AACvD,IAAM,mBAAmB,GAAG,UACjC,QAAmB,EACnB,UAA6B,EAC7B,CAA0B;IAE1B,OAAO,IAAA,8BAAsB,EAAC,IAAA,yBAAe,EAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AAC1E,CAAC,CAAC;AANW,QAAA,mBAAmB,uBAM9B;AACF,mFAAmF;AAC5E,IAAM,kBAAkB,GAAG,UAChC,WAAsB,EACtB,UAA6B;IAE7B,IAAI,qBAAqB,GAAG,KAAK,CAAC;IAClC,gDAAgD;IAChD,IAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,UAAC,CAAC;QACjC,IAAI,CAAC,CAAC,CAAC,WAAW;YAAE,OAAO,CAAC,CAAC;QAC7B,IAAM,WAAW,GAAG,IAAA,8BAAsB,EAAC,CAAC,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QACtE,IAAI,WAAW,KAAK,CAAC,CAAC,WAAW;YAAE,OAAO,CAAC,CAAC;QAC5C,qBAAqB,GAAG,IAAI,CAAC;QAC7B,6BAAY,CAAC,KAAE,WAAW,aAAA,IAAG;IAC/B,CAAC,CAAC,CAAC;IACH,kCAAkC;IAClC,OAAO,IAAA,8BAAsB,EAC3B,qBAAqB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,EAC9C,UAAU,CACX,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,kBAAkB,sBAkB7B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Account, Operation, SubAccount } from "@ledgerhq/types-live";
|
|
2
|
+
export declare function shouldRetainPendingOperation(account: Account, op: Operation): boolean;
|
|
3
|
+
export declare const addPendingOperation: (account: Account, operation: Operation) => {
|
|
4
|
+
type: "Account";
|
|
5
|
+
id: string;
|
|
6
|
+
seedIdentifier: string;
|
|
7
|
+
xpub?: string | undefined;
|
|
8
|
+
derivationMode: string;
|
|
9
|
+
index: number;
|
|
10
|
+
freshAddress: string;
|
|
11
|
+
freshAddressPath: string;
|
|
12
|
+
freshAddresses: import("@ledgerhq/types-live").Address[];
|
|
13
|
+
name: string;
|
|
14
|
+
starred: boolean;
|
|
15
|
+
used: boolean;
|
|
16
|
+
balance: import("bignumber.js").BigNumber;
|
|
17
|
+
spendableBalance: import("bignumber.js").BigNumber;
|
|
18
|
+
creationDate: Date;
|
|
19
|
+
blockHeight: number;
|
|
20
|
+
currency: import("@ledgerhq/types-cryptoassets").CryptoCurrency;
|
|
21
|
+
unit: import("@ledgerhq/types-cryptoassets").Unit;
|
|
22
|
+
operationsCount: number;
|
|
23
|
+
operations: Operation[];
|
|
24
|
+
pendingOperations: Operation[];
|
|
25
|
+
lastSyncDate: Date;
|
|
26
|
+
endpointConfig?: string | null | undefined;
|
|
27
|
+
subAccounts?: SubAccount[] | undefined;
|
|
28
|
+
balanceHistoryCache: import("@ledgerhq/types-live").BalanceHistoryCache;
|
|
29
|
+
swapHistory: import("@ledgerhq/types-live/lib/swap").SwapOperation[];
|
|
30
|
+
syncHash?: string | undefined;
|
|
31
|
+
nfts?: import("@ledgerhq/types-live").ProtoNFT[] | undefined;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=pending.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pending.d.ts","sourceRoot":"","sources":["../../src/account/pending.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAE3E,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,OAAO,EAChB,EAAE,EAAE,SAAS,GACZ,OAAO,CAeT;AAUD,eAAO,MAAM,mBAAmB,YAAa,OAAO,aAAa,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCzE,CAAC"}
|