@ledgerhq/live-common 27.0.0 → 27.1.0-next.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/lib/__tests__/families/bitcoin/wallet-btc/xpub.syncing.integration.test.js +2 -2
- package/lib/__tests__/test-helpers/environment.d.ts +2 -0
- package/lib/__tests__/test-helpers/environment.d.ts.map +1 -0
- package/lib/__tests__/test-helpers/environment.js +107 -0
- package/lib/__tests__/test-helpers/environment.js.map +1 -0
- package/lib/__tests__/test-helpers/setup.d.ts +1 -1
- package/lib/__tests__/test-helpers/setup.d.ts.map +1 -1
- package/lib/__tests__/test-helpers/setup.js +1 -101
- package/lib/__tests__/test-helpers/setup.js.map +1 -1
- package/lib/account/serialization.d.ts +2 -0
- package/lib/account/serialization.d.ts.map +1 -1
- package/lib/account/serialization.js +105 -47
- package/lib/account/serialization.js.map +1 -1
- package/lib/apps/support.d.ts.map +1 -1
- package/lib/apps/support.js +1 -0
- package/lib/apps/support.js.map +1 -1
- 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/cli.d.ts +2 -0
- package/lib/bot/cli.d.ts.map +1 -0
- package/lib/bot/cli.js +14 -0
- package/lib/bot/cli.js.map +1 -0
- package/lib/bot/engine.d.ts +5 -5
- package/lib/bot/engine.d.ts.map +1 -1
- package/lib/bot/engine.js +161 -112
- package/lib/bot/engine.js.map +1 -1
- package/lib/bot/formatters.d.ts +2 -2
- package/lib/bot/formatters.d.ts.map +1 -1
- package/lib/bot/formatters.js +41 -15
- package/lib/bot/formatters.js.map +1 -1
- package/lib/bot/index.d.ts +1 -1
- package/lib/bot/index.d.ts.map +1 -1
- package/lib/bot/index.js +90 -15
- package/lib/bot/index.js.map +1 -1
- package/lib/bot/specs.d.ts +2 -1
- package/lib/bot/specs.d.ts.map +1 -1
- package/lib/bot/specs.js +13 -9
- package/lib/bot/specs.js.map +1 -1
- package/lib/bot/types.d.ts +5 -2
- package/lib/bot/types.d.ts.map +1 -1
- package/lib/countervalues/logic.integration.test.js +65 -0
- package/lib/countervalues/logic.integration.test.js.map +1 -1
- package/lib/countervalues/modules/weth.d.ts.map +1 -1
- package/lib/countervalues/modules/weth.js +5 -10
- package/lib/countervalues/modules/weth.js.map +1 -1
- package/lib/currencies/sortByMarketcap.d.ts +0 -2
- package/lib/currencies/sortByMarketcap.d.ts.map +1 -1
- package/lib/currencies/sortByMarketcap.js +3 -17
- package/lib/currencies/sortByMarketcap.js.map +1 -1
- package/lib/currencies/sortByMarketcap.test.js +0 -5
- package/lib/currencies/sortByMarketcap.test.js.map +1 -1
- package/lib/env.js +1 -1
- package/lib/families/algorand/specs.d.ts.map +1 -1
- package/lib/families/algorand/specs.js +18 -10
- package/lib/families/algorand/specs.js.map +1 -1
- package/lib/families/algorand/speculos-deviceActions.d.ts +1 -4
- package/lib/families/algorand/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/algorand/speculos-deviceActions.js +25 -8
- package/lib/families/algorand/speculos-deviceActions.js.map +1 -1
- package/lib/families/bitcoin/bridge/mock.d.ts.map +1 -1
- package/lib/families/bitcoin/bridge/mock.js +6 -1
- package/lib/families/bitcoin/bridge/mock.js.map +1 -1
- package/lib/families/bitcoin/datasets/bitcoin_cash.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/bitcoin_cash.js +1 -1
- package/lib/families/bitcoin/datasets/bitcoin_cash.js.map +1 -1
- package/lib/families/bitcoin/datasets/dash.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/dash.js +1 -1
- package/lib/families/bitcoin/datasets/dash.js.map +1 -1
- package/lib/families/bitcoin/datasets/decred.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/decred.js +1 -1
- package/lib/families/bitcoin/datasets/decred.js.map +1 -1
- package/lib/families/bitcoin/datasets/digibyte.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/digibyte.js +8 -2
- package/lib/families/bitcoin/datasets/digibyte.js.map +1 -1
- package/lib/families/bitcoin/datasets/dogecoin.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/dogecoin.js +1 -1
- package/lib/families/bitcoin/datasets/dogecoin.js.map +1 -1
- package/lib/families/bitcoin/datasets/komodo.js +1 -1
- package/lib/families/bitcoin/datasets/komodo.js.map +1 -1
- package/lib/families/bitcoin/datasets/litecoin.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/litecoin.js +8 -2
- package/lib/families/bitcoin/datasets/litecoin.js.map +1 -1
- package/lib/families/bitcoin/datasets/peercoin.js +1 -1
- package/lib/families/bitcoin/datasets/peercoin.js.map +1 -1
- package/lib/families/bitcoin/datasets/pivx.js +1 -1
- package/lib/families/bitcoin/datasets/pivx.js.map +1 -1
- package/lib/families/bitcoin/datasets/qtum.js +1 -1
- package/lib/families/bitcoin/datasets/qtum.js.map +1 -1
- package/lib/families/bitcoin/datasets/stakenet.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/stakenet.js +1 -1
- package/lib/families/bitcoin/datasets/stakenet.js.map +1 -1
- package/lib/families/bitcoin/datasets/vertcoin.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/vertcoin.js +1 -1
- package/lib/families/bitcoin/datasets/vertcoin.js.map +1 -1
- package/lib/families/bitcoin/datasets/viacoin.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/viacoin.js +1 -1
- package/lib/families/bitcoin/datasets/viacoin.js.map +1 -1
- package/lib/families/bitcoin/datasets/zcash.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/zcash.js +1 -1
- package/lib/families/bitcoin/datasets/zcash.js.map +1 -1
- package/lib/families/bitcoin/datasets/zencash.d.ts.map +1 -1
- package/lib/families/bitcoin/datasets/zencash.js +1 -1
- package/lib/families/bitcoin/datasets/zencash.js.map +1 -1
- package/lib/families/bitcoin/platformAdapter.test.d.ts +2 -0
- package/lib/families/bitcoin/platformAdapter.test.d.ts.map +1 -0
- package/lib/families/bitcoin/platformAdapter.test.js +48 -0
- package/lib/families/bitcoin/platformAdapter.test.js.map +1 -0
- package/lib/families/bitcoin/specs.d.ts.map +1 -1
- package/lib/families/bitcoin/specs.js +62 -24
- package/lib/families/bitcoin/specs.js.map +1 -1
- package/lib/families/bitcoin/speculos-deviceActions.d.ts +1 -4
- package/lib/families/bitcoin/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/bitcoin/speculos-deviceActions.js +2 -4
- package/lib/families/bitcoin/speculos-deviceActions.js.map +1 -1
- package/lib/families/cardano/js-estimateMaxSpendable.js +1 -1
- package/lib/families/cardano/js-estimateMaxSpendable.js.map +1 -1
- package/lib/families/cardano/specs.d.ts.map +1 -1
- package/lib/families/cardano/specs.js +19 -8
- package/lib/families/cardano/specs.js.map +1 -1
- package/lib/families/cardano/speculos-deviceActions.d.ts +1 -4
- package/lib/families/cardano/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/cardano/speculos-deviceActions.js +2 -2
- package/lib/families/cardano/speculos-deviceActions.js.map +1 -1
- package/lib/families/celo/api/hubble.d.ts +6 -1
- package/lib/families/celo/api/hubble.d.ts.map +1 -1
- package/lib/families/celo/api/hubble.js +135 -13
- package/lib/families/celo/api/hubble.js.map +1 -1
- package/lib/families/celo/api/index.d.ts +1 -1
- package/lib/families/celo/api/index.d.ts.map +1 -1
- package/lib/families/celo/api/index.js +2 -1
- package/lib/families/celo/api/index.js.map +1 -1
- package/lib/families/celo/api/sdk.d.ts +22 -0
- package/lib/families/celo/api/sdk.d.ts.map +1 -1
- package/lib/families/celo/api/sdk.js +168 -1
- package/lib/families/celo/api/sdk.js.map +1 -1
- package/lib/families/celo/bridge/js.d.ts.map +1 -1
- package/lib/families/celo/bridge/js.js +4 -42
- package/lib/families/celo/bridge/js.js.map +1 -1
- package/lib/families/celo/cli-transaction.d.ts +12 -2
- package/lib/families/celo/cli-transaction.d.ts.map +1 -1
- package/lib/families/celo/cli-transaction.js +38 -4
- package/lib/families/celo/cli-transaction.js.map +1 -1
- package/lib/families/celo/datasets/celo.scanAccounts.1.d.ts +1 -0
- package/lib/families/celo/datasets/celo.scanAccounts.1.d.ts.map +1 -1
- package/lib/families/celo/datasets/celo.scanAccounts.1.js +298 -2
- package/lib/families/celo/datasets/celo.scanAccounts.1.js.map +1 -1
- package/lib/families/celo/errors.d.ts +2 -0
- package/lib/families/celo/errors.d.ts.map +1 -0
- package/lib/families/celo/errors.js +6 -0
- package/lib/families/celo/errors.js.map +1 -0
- package/lib/families/celo/js-buildTransaction.d.ts +2 -3
- package/lib/families/celo/js-buildTransaction.d.ts.map +1 -1
- package/lib/families/celo/js-buildTransaction.js +194 -19
- package/lib/families/celo/js-buildTransaction.js.map +1 -1
- package/lib/families/celo/js-createTransaction.d.ts.map +1 -1
- package/lib/families/celo/js-createTransaction.js +3 -1
- package/lib/families/celo/js-createTransaction.js.map +1 -1
- package/lib/families/celo/js-estimateMaxSpendable.d.ts.map +1 -1
- package/lib/families/celo/js-estimateMaxSpendable.js.map +1 -1
- package/lib/families/celo/js-getFeesForTransaction.d.ts +2 -3
- package/lib/families/celo/js-getFeesForTransaction.d.ts.map +1 -1
- package/lib/families/celo/js-getFeesForTransaction.js +137 -10
- package/lib/families/celo/js-getFeesForTransaction.js.map +1 -1
- package/lib/families/celo/js-getTransactionStatus.d.ts +2 -3
- package/lib/families/celo/js-getTransactionStatus.d.ts.map +1 -1
- package/lib/families/celo/js-getTransactionStatus.js +97 -41
- package/lib/families/celo/js-getTransactionStatus.js.map +1 -1
- package/lib/families/celo/js-prepareTransaction.d.ts +2 -3
- package/lib/families/celo/js-prepareTransaction.d.ts.map +1 -1
- package/lib/families/celo/js-prepareTransaction.js +8 -3
- package/lib/families/celo/js-prepareTransaction.js.map +1 -1
- package/lib/families/celo/js-signOperation.d.ts.map +1 -1
- package/lib/families/celo/js-signOperation.js +17 -3
- package/lib/families/celo/js-signOperation.js.map +1 -1
- package/lib/families/celo/js-synchronisation.d.ts.map +1 -1
- package/lib/families/celo/js-synchronisation.js +51 -6
- package/lib/families/celo/js-synchronisation.js.map +1 -1
- package/lib/families/celo/logic.d.ts +21 -0
- package/lib/families/celo/logic.d.ts.map +1 -0
- package/lib/families/celo/logic.js +132 -0
- package/lib/families/celo/logic.js.map +1 -0
- package/lib/families/celo/preload.d.ts +10 -0
- package/lib/families/celo/preload.d.ts.map +1 -0
- package/lib/families/celo/preload.js +118 -0
- package/lib/families/celo/preload.js.map +1 -0
- package/lib/families/celo/react.d.ts +4 -0
- package/lib/families/celo/react.d.ts.map +1 -0
- package/lib/families/celo/react.js +47 -0
- package/lib/families/celo/react.js.map +1 -0
- package/lib/families/celo/serialization.d.ts +4 -0
- package/lib/families/celo/serialization.d.ts.map +1 -0
- package/lib/families/celo/serialization.js +55 -0
- package/lib/families/celo/serialization.js.map +1 -0
- package/lib/families/celo/specs/createActivateVoteMutation.d.ts +4 -0
- package/lib/families/celo/specs/createActivateVoteMutation.d.ts.map +1 -0
- package/lib/families/celo/specs/createActivateVoteMutation.js +38 -0
- package/lib/families/celo/specs/createActivateVoteMutation.js.map +1 -0
- package/lib/families/celo/specs/createLockMutation.d.ts +4 -0
- package/lib/families/celo/specs/createLockMutation.d.ts.map +1 -0
- package/lib/families/celo/specs/createLockMutation.js +40 -0
- package/lib/families/celo/specs/createLockMutation.js.map +1 -0
- package/lib/families/celo/specs/createRegisterAccountMutation.d.ts +4 -0
- package/lib/families/celo/specs/createRegisterAccountMutation.d.ts.map +1 -0
- package/lib/families/celo/specs/createRegisterAccountMutation.js +31 -0
- package/lib/families/celo/specs/createRegisterAccountMutation.js.map +1 -0
- package/lib/families/celo/specs/createRevokeVoteMutation.d.ts +4 -0
- package/lib/families/celo/specs/createRevokeVoteMutation.d.ts.map +1 -0
- package/lib/families/celo/specs/createRevokeVoteMutation.js +39 -0
- package/lib/families/celo/specs/createRevokeVoteMutation.js.map +1 -0
- package/lib/families/celo/specs/createSendMutation.d.ts +5 -0
- package/lib/families/celo/specs/createSendMutation.d.ts.map +1 -0
- package/lib/families/celo/specs/createSendMutation.js +44 -0
- package/lib/families/celo/specs/createSendMutation.js.map +1 -0
- package/lib/families/celo/specs/createUnlockMutation.d.ts +4 -0
- package/lib/families/celo/specs/createUnlockMutation.d.ts.map +1 -0
- package/lib/families/celo/specs/createUnlockMutation.js +37 -0
- package/lib/families/celo/specs/createUnlockMutation.js.map +1 -0
- package/lib/families/celo/specs/createVoteMutation.d.ts +4 -0
- package/lib/families/celo/specs/createVoteMutation.d.ts.map +1 -0
- package/lib/families/celo/specs/createVoteMutation.js +51 -0
- package/lib/families/celo/specs/createVoteMutation.js.map +1 -0
- package/lib/families/celo/specs/createWithdrawMutation.d.ts +4 -0
- package/lib/families/celo/specs/createWithdrawMutation.d.ts.map +1 -0
- package/lib/families/celo/specs/createWithdrawMutation.js +36 -0
- package/lib/families/celo/specs/createWithdrawMutation.js.map +1 -0
- package/lib/families/celo/specs/index.d.ts +9 -0
- package/lib/families/celo/specs/index.d.ts.map +1 -0
- package/lib/families/celo/specs/index.js +25 -0
- package/lib/families/celo/specs/index.js.map +1 -0
- package/lib/families/celo/specs.d.ts +1 -1
- package/lib/families/celo/specs.d.ts.map +1 -1
- package/lib/families/celo/specs.js +22 -37
- package/lib/families/celo/specs.js.map +1 -1
- package/lib/families/celo/speculos-deviceActions.d.ts +1 -4
- package/lib/families/celo/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/celo/speculos-deviceActions.js +24 -4
- package/lib/families/celo/speculos-deviceActions.js.map +1 -1
- package/lib/families/celo/transaction.d.ts.map +1 -1
- package/lib/families/celo/transaction.js +8 -6
- package/lib/families/celo/transaction.js.map +1 -1
- package/lib/families/celo/types.d.ts +102 -1
- package/lib/families/celo/types.d.ts.map +1 -1
- package/lib/families/celo/validators.d.ts +3 -0
- package/lib/families/celo/validators.d.ts.map +1 -0
- package/lib/families/celo/validators.js +6 -0
- package/lib/families/celo/validators.js.map +1 -0
- package/lib/families/cosmos/specs.d.ts.map +1 -1
- package/lib/families/cosmos/specs.js +41 -25
- package/lib/families/cosmos/specs.js.map +1 -1
- package/lib/families/cosmos/speculos-deviceActions.d.ts +1 -4
- package/lib/families/cosmos/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/cosmos/speculos-deviceActions.js +2 -4
- package/lib/families/cosmos/speculos-deviceActions.js.map +1 -1
- package/lib/families/crypto_org/specs.d.ts.map +1 -1
- package/lib/families/crypto_org/specs.js +3 -0
- package/lib/families/crypto_org/specs.js.map +1 -1
- package/lib/families/crypto_org/speculos-deviceActions.d.ts +1 -4
- package/lib/families/crypto_org/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/crypto_org/speculos-deviceActions.js +2 -2
- package/lib/families/crypto_org/speculos-deviceActions.js.map +1 -1
- package/lib/families/elrond/specs.d.ts.map +1 -1
- package/lib/families/elrond/specs.js +15 -2
- package/lib/families/elrond/specs.js.map +1 -1
- package/lib/families/elrond/speculos-deviceActions.d.ts +1 -4
- package/lib/families/elrond/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/elrond/speculos-deviceActions.js +2 -4
- package/lib/families/elrond/speculos-deviceActions.js.map +1 -1
- package/lib/families/ethereum/platformAdapter.test.d.ts +2 -0
- package/lib/families/ethereum/platformAdapter.test.d.ts.map +1 -0
- package/lib/families/ethereum/platformAdapter.test.js +88 -0
- package/lib/families/ethereum/platformAdapter.test.js.map +1 -0
- package/lib/families/ethereum/specs.d.ts.map +1 -1
- package/lib/families/ethereum/specs.js +36 -12
- package/lib/families/ethereum/specs.js.map +1 -1
- package/lib/families/ethereum/speculos-deviceActions.d.ts +1 -4
- package/lib/families/ethereum/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/ethereum/speculos-deviceActions.js +2 -4
- package/lib/families/ethereum/speculos-deviceActions.js.map +1 -1
- package/lib/families/filecoin/specs.d.ts.map +1 -1
- package/lib/families/filecoin/specs.js +2 -0
- package/lib/families/filecoin/specs.js.map +1 -1
- package/lib/families/filecoin/speculos-deviceActions.d.ts +1 -4
- package/lib/families/filecoin/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/filecoin/speculos-deviceActions.js +2 -2
- package/lib/families/filecoin/speculos-deviceActions.js.map +1 -1
- package/lib/families/hedera/specs.d.ts.map +1 -1
- package/lib/families/hedera/specs.js +11 -3
- package/lib/families/hedera/specs.js.map +1 -1
- package/lib/families/hedera/speculos-deviceActions.d.ts +1 -4
- package/lib/families/hedera/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/hedera/speculos-deviceActions.js +4 -4
- package/lib/families/hedera/speculos-deviceActions.js.map +1 -1
- package/lib/families/osmosis/specs.d.ts.map +1 -1
- package/lib/families/osmosis/specs.js +13 -5
- package/lib/families/osmosis/specs.js.map +1 -1
- package/lib/families/osmosis/speculos-deviceActions.d.ts +1 -4
- package/lib/families/osmosis/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/osmosis/speculos-deviceActions.js +2 -4
- package/lib/families/osmosis/speculos-deviceActions.js.map +1 -1
- package/lib/families/polkadot/platformAdapter.test.d.ts +2 -0
- package/lib/families/polkadot/platformAdapter.test.d.ts.map +1 -0
- package/lib/families/polkadot/platformAdapter.test.js +51 -0
- package/lib/families/polkadot/platformAdapter.test.js.map +1 -0
- package/lib/families/polkadot/specs.d.ts.map +1 -1
- package/lib/families/polkadot/specs.js +12 -1
- package/lib/families/polkadot/specs.js.map +1 -1
- package/lib/families/polkadot/speculos-deviceActions.d.ts +1 -4
- package/lib/families/polkadot/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/polkadot/speculos-deviceActions.js +2 -4
- package/lib/families/polkadot/speculos-deviceActions.js.map +1 -1
- package/lib/families/ripple/platformAdapter.test.d.ts +2 -0
- package/lib/families/ripple/platformAdapter.test.d.ts.map +1 -0
- package/lib/families/ripple/platformAdapter.test.js +51 -0
- package/lib/families/ripple/platformAdapter.test.js.map +1 -0
- package/lib/families/ripple/specs.d.ts.map +1 -1
- package/lib/families/ripple/specs.js +9 -4
- package/lib/families/ripple/specs.js.map +1 -1
- package/lib/families/ripple/speculos-deviceActions.d.ts +1 -4
- package/lib/families/ripple/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/ripple/speculos-deviceActions.js +2 -4
- package/lib/families/ripple/speculos-deviceActions.js.map +1 -1
- package/lib/families/solana/api/chain/instruction/token/types.d.ts +2 -2
- package/lib/families/solana/specs.d.ts.map +1 -1
- package/lib/families/solana/specs.js +29 -11
- package/lib/families/solana/specs.js.map +1 -1
- package/lib/families/solana/speculos-deviceActions.d.ts +0 -5
- package/lib/families/solana/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/solana/speculos-deviceActions.js +0 -4
- package/lib/families/solana/speculos-deviceActions.js.map +1 -1
- package/lib/families/stellar/api/horizon.d.ts.map +1 -1
- package/lib/families/stellar/api/horizon.js +15 -10
- package/lib/families/stellar/api/horizon.js.map +1 -1
- package/lib/families/stellar/specs.d.ts.map +1 -1
- package/lib/families/stellar/specs.js +30 -12
- package/lib/families/stellar/specs.js.map +1 -1
- package/lib/families/stellar/speculos-deviceActions.d.ts +1 -4
- package/lib/families/stellar/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/stellar/speculos-deviceActions.js +2 -4
- package/lib/families/stellar/speculos-deviceActions.js.map +1 -1
- package/lib/families/tezos/bakers.whitelist-default.d.ts.map +1 -1
- package/lib/families/tezos/bakers.whitelist-default.js +1 -1
- package/lib/families/tezos/bakers.whitelist-default.js.map +1 -1
- package/lib/families/tezos/specs.d.ts.map +1 -1
- package/lib/families/tezos/specs.js +2 -0
- package/lib/families/tezos/specs.js.map +1 -1
- package/lib/families/tezos/speculos-deviceActions.d.ts +1 -4
- package/lib/families/tezos/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/tezos/speculos-deviceActions.js +2 -2
- package/lib/families/tezos/speculos-deviceActions.js.map +1 -1
- package/lib/families/tron/specs.d.ts.map +1 -1
- package/lib/families/tron/specs.js +49 -17
- package/lib/families/tron/specs.js.map +1 -1
- package/lib/families/tron/speculos-deviceActions.d.ts +1 -4
- package/lib/families/tron/speculos-deviceActions.d.ts.map +1 -1
- package/lib/families/tron/speculos-deviceActions.js +2 -4
- package/lib/families/tron/speculos-deviceActions.js.map +1 -1
- package/lib/generated/cli-transaction.d.ts +12 -2
- package/lib/generated/cli-transaction.d.ts.map +1 -1
- package/lib/hw/getGenuineCheckFromDeviceId.d.ts +22 -0
- package/lib/hw/getGenuineCheckFromDeviceId.d.ts.map +1 -0
- package/lib/hw/getGenuineCheckFromDeviceId.js +49 -0
- package/lib/hw/getGenuineCheckFromDeviceId.js.map +1 -0
- package/lib/hw/getGenuineCheckFromDeviceId.test.d.ts +2 -0
- package/lib/hw/getGenuineCheckFromDeviceId.test.d.ts.map +1 -0
- package/lib/hw/getGenuineCheckFromDeviceId.test.js +84 -0
- package/lib/hw/getGenuineCheckFromDeviceId.test.js.map +1 -0
- package/lib/hw/getLatestAvailableFirmwareFromDeviceId.d.ts +17 -0
- package/lib/hw/getLatestAvailableFirmwareFromDeviceId.d.ts.map +1 -0
- package/lib/hw/getLatestAvailableFirmwareFromDeviceId.js +27 -0
- package/lib/hw/getLatestAvailableFirmwareFromDeviceId.js.map +1 -0
- package/lib/hw/hooks/useGenuineCheck.d.ts +34 -0
- package/lib/hw/hooks/useGenuineCheck.d.ts.map +1 -0
- package/lib/hw/hooks/useGenuineCheck.js +115 -0
- package/lib/hw/hooks/useGenuineCheck.js.map +1 -0
- package/lib/hw/hooks/useGenuineCheck.test.d.ts +2 -0
- package/lib/hw/hooks/useGenuineCheck.test.d.ts.map +1 -0
- package/lib/hw/hooks/useGenuineCheck.test.js +316 -0
- package/lib/hw/hooks/useGenuineCheck.test.js.map +1 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.d.ts +29 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.d.ts.map +1 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.js +72 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.js.map +1 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.test.d.ts +2 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.test.d.ts.map +1 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.test.js +155 -0
- package/lib/hw/hooks/useGetLatestAvailableFirmware.test.js.map +1 -0
- package/lib/load/speculos.d.ts +1 -0
- package/lib/load/speculos.d.ts.map +1 -1
- package/lib/load/speculos.js +2 -1
- package/lib/load/speculos.js.map +1 -1
- package/lib/mock/fixtures/cryptoCurrencies.d.ts +5 -0
- package/lib/mock/fixtures/cryptoCurrencies.d.ts.map +1 -0
- package/lib/mock/fixtures/cryptoCurrencies.js +91 -0
- package/lib/mock/fixtures/cryptoCurrencies.js.map +1 -0
- package/lib/operation.d.ts.map +1 -1
- package/lib/operation.js +6 -0
- package/lib/operation.js.map +1 -1
- package/lib/platform/converters.test.js +44 -218
- package/lib/platform/converters.test.js.map +1 -1
- package/lib/platform/logic.d.ts +44 -0
- package/lib/platform/logic.d.ts.map +1 -1
- package/lib/platform/logic.js +147 -1
- package/lib/platform/logic.js.map +1 -1
- package/lib/platform/logic.test.d.ts +2 -0
- package/lib/platform/logic.test.d.ts.map +1 -0
- package/lib/platform/logic.test.js +903 -0
- package/lib/platform/logic.test.js.map +1 -0
- package/lib/platform/react.d.ts +6 -0
- package/lib/platform/react.d.ts.map +1 -1
- package/lib/platform/react.js +6 -0
- package/lib/platform/react.js.map +1 -1
- package/lib/platform/tracking.d.ts +1 -1
- package/lib/platform/tracking.d.ts.map +1 -1
- package/lib/platform/tracking.test.js +14 -41
- package/lib/platform/tracking.test.js.map +1 -1
- package/lib/reconciliation.d.ts.map +1 -1
- package/lib/reconciliation.js +39 -10
- package/lib/reconciliation.js.map +1 -1
- package/package.json +5 -7
- package/src/__tests__/families/bitcoin/wallet-btc/xpub.syncing.integration.test.ts +2 -2
- package/src/__tests__/test-helpers/environment.ts +91 -0
- package/src/__tests__/test-helpers/setup.ts +2 -91
- package/src/account/serialization.ts +125 -66
- package/src/apps/support.ts +1 -0
- package/src/bot/bot-test-context.test.ts +37 -0
- package/src/bot/bot-test-context.ts +24 -0
- package/src/bot/cli.ts +18 -0
- package/src/bot/engine.ts +109 -73
- package/src/bot/formatters.ts +40 -14
- package/src/bot/index.ts +124 -18
- package/src/bot/specs.ts +10 -5
- package/src/bot/types.ts +7 -3
- package/src/countervalues/logic.integration.test.ts +50 -0
- package/src/countervalues/modules/weth.ts +9 -12
- package/src/currencies/__snapshots__/sortByMarketcap.test.ts.snap +59 -1
- package/src/currencies/sortByMarketcap.test.ts +1 -12
- package/src/currencies/sortByMarketcap.ts +2 -22
- package/src/env.ts +1 -1
- package/src/families/algorand/__snapshots__/bridge.integration.test.ts.snap +733 -8
- package/src/families/algorand/specs.ts +26 -16
- package/src/families/algorand/speculos-deviceActions.ts +31 -10
- package/src/families/bitcoin/__snapshots__/bridge.integration.test.ts.snap +43309 -7957
- package/src/families/bitcoin/bridge/mock.ts +7 -1
- package/src/families/bitcoin/datasets/bitcoin_cash.ts +73 -13
- package/src/families/bitcoin/datasets/dash.ts +29 -17
- package/src/families/bitcoin/datasets/decred.ts +42 -12
- package/src/families/bitcoin/datasets/digibyte.ts +9 -3
- package/src/families/bitcoin/datasets/dogecoin.ts +29 -17
- package/src/families/bitcoin/datasets/komodo.ts +22 -22
- package/src/families/bitcoin/datasets/litecoin.ts +9 -3
- package/src/families/bitcoin/datasets/peercoin.ts +17 -17
- package/src/families/bitcoin/datasets/pivx.ts +17 -17
- package/src/families/bitcoin/datasets/qtum.ts +40 -40
- package/src/families/bitcoin/datasets/stakenet.ts +56 -26
- package/src/families/bitcoin/datasets/vertcoin.ts +43 -55
- package/src/families/bitcoin/datasets/viacoin.ts +35 -23
- package/src/families/bitcoin/datasets/zcash.ts +78 -12
- package/src/families/bitcoin/datasets/zencash.ts +56 -10
- package/src/families/bitcoin/platformAdapter.test.ts +58 -0
- package/src/families/bitcoin/specs.ts +81 -41
- package/src/families/bitcoin/speculos-deviceActions.ts +68 -69
- package/src/families/cardano/js-estimateMaxSpendable.ts +1 -1
- package/src/families/cardano/specs.ts +28 -11
- package/src/families/cardano/speculos-deviceActions.ts +65 -66
- package/src/families/celo/__snapshots__/bridge.integration.test.ts.snap +134 -857
- package/src/families/celo/api/hubble.ts +113 -16
- package/src/families/celo/api/index.ts +1 -1
- package/src/families/celo/api/sdk.ts +88 -0
- package/src/families/celo/bridge/js.ts +2 -3
- package/src/families/celo/cli-transaction.ts +46 -2
- package/src/families/celo/datasets/celo.scanAccounts.1.ts +365 -5
- package/src/families/celo/errors.ts +5 -0
- package/src/families/celo/js-buildTransaction.ts +173 -20
- package/src/families/celo/js-createTransaction.ts +2 -0
- package/src/families/celo/js-estimateMaxSpendable.ts +2 -2
- package/src/families/celo/js-getFeesForTransaction.ts +118 -19
- package/src/families/celo/js-getTransactionStatus.ts +72 -17
- package/src/families/celo/js-prepareTransaction.ts +13 -7
- package/src/families/celo/js-signOperation.ts +22 -5
- package/src/families/celo/js-synchronisation.ts +32 -0
- package/src/families/celo/logic.ts +184 -0
- package/src/families/celo/preload.ts +78 -0
- package/src/families/celo/react.ts +35 -0
- package/src/families/celo/serialization.ts +61 -0
- package/src/families/celo/specs/createActivateVoteMutation.ts +44 -0
- package/src/families/celo/specs/createLockMutation.ts +46 -0
- package/src/families/celo/specs/createRegisterAccountMutation.ts +34 -0
- package/src/families/celo/specs/createRevokeVoteMutation.ts +43 -0
- package/src/families/celo/specs/createSendMutation.ts +44 -0
- package/src/families/celo/specs/createUnlockMutation.ts +44 -0
- package/src/families/celo/specs/createVoteMutation.ts +67 -0
- package/src/families/celo/specs/createWithdrawMutation.ts +44 -0
- package/src/families/celo/specs/index.ts +8 -0
- package/src/families/celo/specs.ts +34 -34
- package/src/families/celo/speculos-deviceActions.ts +63 -45
- package/src/families/celo/transaction.ts +12 -4
- package/src/families/celo/types.ts +113 -0
- package/src/families/celo/validators.ts +2 -0
- package/src/families/cosmos/__snapshots__/bridge.integration.test.ts.snap +246 -5
- package/src/families/cosmos/specs.ts +44 -28
- package/src/families/cosmos/speculos-deviceActions.ts +82 -83
- package/src/families/crypto_org/specs.ts +3 -0
- package/src/families/crypto_org/speculos-deviceActions.ts +58 -59
- package/src/families/elrond/specs.ts +21 -4
- package/src/families/elrond/speculos-deviceActions.ts +41 -42
- package/src/families/ethereum/__snapshots__/bridge.integration.test.ts.snap +90 -90
- package/src/families/ethereum/platformAdapter.test.ts +112 -0
- package/src/families/ethereum/specs.ts +47 -23
- package/src/families/ethereum/speculos-deviceActions.ts +93 -95
- package/src/families/filecoin/specs.ts +2 -1
- package/src/families/filecoin/speculos-deviceActions.ts +61 -62
- package/src/families/hedera/__snapshots__/bridge.integration.test.ts.snap +57 -2
- package/src/families/hedera/specs.ts +13 -5
- package/src/families/hedera/speculos-deviceActions.ts +59 -60
- package/src/families/osmosis/specs.ts +15 -7
- package/src/families/osmosis/speculos-deviceActions.ts +82 -83
- package/src/families/polkadot/platformAdapter.test.ts +61 -0
- package/src/families/polkadot/specs.ts +20 -2
- package/src/families/polkadot/speculos-deviceActions.ts +83 -82
- package/src/families/ripple/platformAdapter.test.ts +54 -0
- package/src/families/ripple/specs.ts +14 -7
- package/src/families/ripple/speculos-deviceActions.ts +72 -73
- package/src/families/solana/specs.ts +33 -14
- package/src/families/solana/speculos-deviceActions.ts +0 -5
- package/src/families/stellar/api/horizon.ts +10 -6
- package/src/families/stellar/specs.ts +37 -19
- package/src/families/stellar/speculos-deviceActions.ts +85 -87
- package/src/families/tezos/bakers.whitelist-default.ts +0 -1
- package/src/families/tezos/specs.ts +2 -0
- package/src/families/tezos/speculos-deviceActions.ts +76 -77
- package/src/families/tron/specs.ts +67 -30
- package/src/families/tron/speculos-deviceActions.ts +81 -84
- package/src/hw/getGenuineCheckFromDeviceId.test.ts +98 -0
- package/src/hw/getGenuineCheckFromDeviceId.ts +61 -0
- package/src/hw/getLatestAvailableFirmwareFromDeviceId.ts +37 -0
- package/src/hw/hooks/useGenuineCheck.test.ts +232 -0
- package/src/hw/hooks/useGenuineCheck.ts +138 -0
- package/src/hw/hooks/useGetLatestAvailableFirmware.test.ts +111 -0
- package/src/hw/hooks/useGetLatestAvailableFirmware.ts +90 -0
- package/src/load/speculos.ts +2 -0
- package/src/mock/fixtures/cryptoCurrencies.ts +88 -0
- package/src/operation.ts +6 -0
- package/src/platform/converters.test.ts +49 -282
- package/src/platform/logic.test.ts +756 -0
- package/src/platform/logic.ts +285 -0
- package/src/platform/react.ts +6 -0
- package/src/platform/tracking.test.ts +6 -7
- package/src/platform/tracking.ts +1 -1
- package/src/reconciliation.ts +88 -43
- package/lib/bot/test.bot.d.ts +0 -2
- package/lib/bot/test.bot.d.ts.map +0 -1
- package/lib/bot/test.bot.js +0 -62
- package/lib/bot/test.bot.js.map +0 -1
- package/lib/generated/speculos-deviceActions.d.ts +0 -56
- package/lib/generated/speculos-deviceActions.d.ts.map +0 -1
- package/lib/generated/speculos-deviceActions.js +0 -42
- package/lib/generated/speculos-deviceActions.js.map +0 -1
- package/src/bot/test.bot.ts +0 -21
- package/src/generated/speculos-deviceActions.ts +0 -37
|
@@ -2,49 +2,67 @@ import type { DeviceAction } from "../../bot/types";
|
|
|
2
2
|
import type { Transaction } from "./types";
|
|
3
3
|
import { deviceActionFlow } from "../../bot/specs";
|
|
4
4
|
import { formatCurrencyUnit } from "../../currencies";
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
expectedValue: ({ account, status }) => {
|
|
15
|
-
const formattedValue =
|
|
16
|
-
"CELO " +
|
|
17
|
-
formatCurrencyUnit(account.unit, status.amount, {
|
|
18
|
-
disableRounding: true,
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
if (!formattedValue.includes(".")) {
|
|
22
|
-
// if the value is pure integer, in the app it will automatically add an .0
|
|
23
|
-
return formattedValue + ".0";
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return formattedValue;
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
title: "Address",
|
|
31
|
-
button: "Rr",
|
|
32
|
-
expectedValue: ({ transaction }) => transaction.recipient,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
title: "Max Fees",
|
|
36
|
-
button: "Rr",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
title: "No Gateway Fee",
|
|
40
|
-
button: "Rr",
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
title: "Accept",
|
|
44
|
-
button: "LRlr",
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
});
|
|
48
|
-
export default {
|
|
49
|
-
acceptTransaction,
|
|
5
|
+
const typeWording = {
|
|
6
|
+
send: "Send",
|
|
7
|
+
lock: "Lock",
|
|
8
|
+
unlock: "Unlock",
|
|
9
|
+
withdraw: "Withdraw",
|
|
10
|
+
vote: "Vote",
|
|
11
|
+
revoke: "Revoke",
|
|
12
|
+
activate: "Activate",
|
|
13
|
+
register: "Create Account",
|
|
50
14
|
};
|
|
15
|
+
|
|
16
|
+
export const acceptTransaction: DeviceAction<Transaction, any> =
|
|
17
|
+
deviceActionFlow({
|
|
18
|
+
steps: [
|
|
19
|
+
{
|
|
20
|
+
title: "Review",
|
|
21
|
+
button: "Rr",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: "Amount",
|
|
25
|
+
button: "Rr",
|
|
26
|
+
expectedValue: ({ account, status }) => {
|
|
27
|
+
const formattedValue =
|
|
28
|
+
"CELO " +
|
|
29
|
+
formatCurrencyUnit(account.unit, status.amount, {
|
|
30
|
+
disableRounding: true,
|
|
31
|
+
});
|
|
32
|
+
if (!formattedValue.includes(".")) {
|
|
33
|
+
// if the value is pure integer, in the app it will automatically add an .0
|
|
34
|
+
return formattedValue + ".0";
|
|
35
|
+
}
|
|
36
|
+
return formattedValue;
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: "Address",
|
|
41
|
+
button: "Rr",
|
|
42
|
+
expectedValue: ({ transaction }) => transaction.recipient,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
title: "Max Fees",
|
|
46
|
+
button: "Rr",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: "No Gateway Fee",
|
|
50
|
+
button: "Rr",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
title: "Validator",
|
|
54
|
+
button: "Rr",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
title: "Type",
|
|
58
|
+
button: "Rr",
|
|
59
|
+
expectedValue: ({ transaction }) => {
|
|
60
|
+
return typeWording[transaction.mode];
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
title: "Accept",
|
|
65
|
+
button: "LRlr",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
});
|
|
@@ -11,10 +11,14 @@ import { getAccountUnit } from "../../account";
|
|
|
11
11
|
import { formatCurrencyUnit } from "../../currencies";
|
|
12
12
|
import { Account } from "@ledgerhq/types-live";
|
|
13
13
|
export const formatTransaction = (t: Transaction, account: Account): string => `
|
|
14
|
-
SEND ${
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
SEND ${
|
|
15
|
+
t.useAllAmount
|
|
16
|
+
? "MAX CELO"
|
|
17
|
+
: formatCurrencyUnit(getAccountUnit(account), t.amount, {
|
|
18
|
+
showCode: true,
|
|
19
|
+
disableRounding: true,
|
|
20
|
+
})
|
|
21
|
+
}
|
|
18
22
|
TO ${t.recipient}`;
|
|
19
23
|
|
|
20
24
|
const fromTransactionRaw = (tr: TransactionRaw): Transaction => {
|
|
@@ -23,6 +27,8 @@ const fromTransactionRaw = (tr: TransactionRaw): Transaction => {
|
|
|
23
27
|
...common,
|
|
24
28
|
family: tr.family,
|
|
25
29
|
fees: tr.fees ? new BigNumber(tr.fees) : null,
|
|
30
|
+
mode: tr.mode,
|
|
31
|
+
index: tr.index,
|
|
26
32
|
};
|
|
27
33
|
};
|
|
28
34
|
|
|
@@ -32,6 +38,8 @@ export const toTransactionRaw = (t: Transaction): TransactionRaw => {
|
|
|
32
38
|
...common,
|
|
33
39
|
family: t.family,
|
|
34
40
|
fees: t.fees?.toString() || null,
|
|
41
|
+
mode: t.mode,
|
|
42
|
+
index: t.index,
|
|
35
43
|
};
|
|
36
44
|
};
|
|
37
45
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type {
|
|
2
|
+
Account,
|
|
3
|
+
AccountRaw,
|
|
2
4
|
TransactionCommon,
|
|
3
5
|
TransactionCommonRaw,
|
|
4
6
|
TransactionStatusCommon,
|
|
@@ -6,15 +8,126 @@ import type {
|
|
|
6
8
|
} from "@ledgerhq/types-live";
|
|
7
9
|
import { BigNumber } from "bignumber.js";
|
|
8
10
|
|
|
11
|
+
export type CeloOperationMode =
|
|
12
|
+
| "send"
|
|
13
|
+
| "lock"
|
|
14
|
+
| "unlock"
|
|
15
|
+
| "withdraw"
|
|
16
|
+
| "vote"
|
|
17
|
+
| "revoke"
|
|
18
|
+
| "activate"
|
|
19
|
+
| "register";
|
|
20
|
+
|
|
21
|
+
export type CeloVoteType = "pending" | "active";
|
|
22
|
+
export type CeloVoteStatus = CeloVoteType | "awaitingActivation";
|
|
23
|
+
|
|
24
|
+
export type CeloPendingWithdrawal = {
|
|
25
|
+
value: BigNumber;
|
|
26
|
+
time: BigNumber;
|
|
27
|
+
index: number;
|
|
28
|
+
};
|
|
29
|
+
export type CeloPendingWithdrawalRaw = {
|
|
30
|
+
value: string;
|
|
31
|
+
time: string;
|
|
32
|
+
index: string;
|
|
33
|
+
};
|
|
34
|
+
export type CeloResources = {
|
|
35
|
+
registrationStatus: boolean;
|
|
36
|
+
lockedBalance: BigNumber;
|
|
37
|
+
nonvotingLockedBalance: BigNumber;
|
|
38
|
+
pendingWithdrawals: CeloPendingWithdrawal[] | null | undefined;
|
|
39
|
+
votes: CeloVote[] | null | undefined;
|
|
40
|
+
electionAddress: string | null | undefined;
|
|
41
|
+
lockedGoldAddress: string | null | undefined;
|
|
42
|
+
maxNumGroupsVotedFor: BigNumber;
|
|
43
|
+
};
|
|
44
|
+
export type CeloResourcesRaw = {
|
|
45
|
+
registrationStatus: boolean;
|
|
46
|
+
lockedBalance: string;
|
|
47
|
+
nonvotingLockedBalance: string;
|
|
48
|
+
pendingWithdrawals: CeloPendingWithdrawalRaw[] | null | undefined;
|
|
49
|
+
votes: CeloVoteRaw[] | null | undefined;
|
|
50
|
+
electionAddress: string | null | undefined;
|
|
51
|
+
lockedGoldAddress: string | null | undefined;
|
|
52
|
+
maxNumGroupsVotedFor: string;
|
|
53
|
+
};
|
|
9
54
|
export type Transaction = TransactionCommon & {
|
|
10
55
|
family: "celo";
|
|
11
56
|
fees: BigNumber | null | undefined;
|
|
57
|
+
mode: CeloOperationMode;
|
|
58
|
+
index: number | null | undefined;
|
|
12
59
|
};
|
|
13
60
|
export type TransactionRaw = TransactionCommonRaw & {
|
|
14
61
|
family: "celo";
|
|
15
62
|
fees: string | null | undefined;
|
|
63
|
+
mode: CeloOperationMode;
|
|
64
|
+
index: number | null | undefined;
|
|
65
|
+
};
|
|
66
|
+
export type CeloValidatorGroup = {
|
|
67
|
+
address: string;
|
|
68
|
+
name: string;
|
|
69
|
+
votes: BigNumber;
|
|
70
|
+
};
|
|
71
|
+
export type CeloVote = {
|
|
72
|
+
validatorGroup: string;
|
|
73
|
+
amount: BigNumber;
|
|
74
|
+
activatable: boolean;
|
|
75
|
+
revokable: boolean;
|
|
76
|
+
type: CeloVoteType;
|
|
77
|
+
index: number;
|
|
78
|
+
};
|
|
79
|
+
export type CeloVoteRaw = {
|
|
80
|
+
validatorGroup: string;
|
|
81
|
+
amount: string;
|
|
82
|
+
activatable: boolean;
|
|
83
|
+
revokable: boolean;
|
|
84
|
+
type: CeloVoteType;
|
|
85
|
+
index: number;
|
|
86
|
+
};
|
|
87
|
+
export type FigmentIndexerTransaction = {
|
|
88
|
+
id: number;
|
|
89
|
+
height: number;
|
|
90
|
+
time: string;
|
|
91
|
+
transaction_hash: string;
|
|
92
|
+
address: string;
|
|
93
|
+
amount: number;
|
|
94
|
+
kind: string;
|
|
95
|
+
data?: {
|
|
96
|
+
Raw?: {
|
|
97
|
+
data: string;
|
|
98
|
+
topics: Array<string>;
|
|
99
|
+
address: string;
|
|
100
|
+
removed: boolean;
|
|
101
|
+
logIndex: string;
|
|
102
|
+
blockHash: string;
|
|
103
|
+
blockNumber: string;
|
|
104
|
+
transactionHash: string;
|
|
105
|
+
transactionIndex: string;
|
|
106
|
+
};
|
|
107
|
+
gas: number;
|
|
108
|
+
Account?: string;
|
|
109
|
+
Group?: string;
|
|
110
|
+
success?: boolean;
|
|
111
|
+
from?: string;
|
|
112
|
+
to?: string;
|
|
113
|
+
gas_used: number;
|
|
114
|
+
gas_price: number;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export type CeloPreloadData = {
|
|
119
|
+
validatorGroups: CeloValidatorGroup[];
|
|
16
120
|
};
|
|
17
121
|
|
|
18
122
|
export type TransactionStatus = TransactionStatusCommon;
|
|
19
123
|
|
|
20
124
|
export type TransactionStatusRaw = TransactionStatusCommonRaw;
|
|
125
|
+
|
|
126
|
+
export type CeloAccount = Account & { celoResources: CeloResources };
|
|
127
|
+
|
|
128
|
+
export type CeloAccountRaw = AccountRaw & { celoResources: CeloResourcesRaw };
|
|
129
|
+
|
|
130
|
+
export type PendingStakingOperationAmounts = {
|
|
131
|
+
vote: BigNumber;
|
|
132
|
+
lock: BigNumber;
|
|
133
|
+
};
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
exports[`cosmos currency bridge scanAccounts cosmos seed 1 1`] = `
|
|
4
4
|
Array [
|
|
5
5
|
Object {
|
|
6
|
-
"balance": "
|
|
6
|
+
"balance": "2608888",
|
|
7
7
|
"cosmosResources": Object {
|
|
8
|
-
"delegatedBalance": "
|
|
8
|
+
"delegatedBalance": "2180065",
|
|
9
9
|
"withdrawAddress": "cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl",
|
|
10
10
|
},
|
|
11
11
|
"currencyId": "cosmos",
|
|
@@ -22,7 +22,7 @@ Array [
|
|
|
22
22
|
"index": 0,
|
|
23
23
|
"name": "Cosmos 1",
|
|
24
24
|
"nfts": undefined,
|
|
25
|
-
"operationsCount":
|
|
25
|
+
"operationsCount": 33,
|
|
26
26
|
"pendingOperations": Array [],
|
|
27
27
|
"seedIdentifier": "0388459b2653519948b12492f1a0b464720110c147a8155d23d423a5cc3c21d89a",
|
|
28
28
|
"starred": false,
|
|
@@ -206,6 +206,60 @@ Array [
|
|
|
206
206
|
"type": "OUT",
|
|
207
207
|
"value": "5286",
|
|
208
208
|
},
|
|
209
|
+
Object {
|
|
210
|
+
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
211
|
+
"blockHash": null,
|
|
212
|
+
"blockHeight": "11769051",
|
|
213
|
+
"contract": undefined,
|
|
214
|
+
"extra": Object {
|
|
215
|
+
"validators": Array [
|
|
216
|
+
Object {
|
|
217
|
+
"address": "cosmosvaloper1vf44d85es37hwl9f4h9gv0e064m0lla60j9luj",
|
|
218
|
+
"amount": "180",
|
|
219
|
+
},
|
|
220
|
+
Object {
|
|
221
|
+
"address": "cosmosvaloper1vf44d85es37hwl9f4h9gv0e064m0lla60j9luj",
|
|
222
|
+
"amount": "180",
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
},
|
|
226
|
+
"fee": "10619",
|
|
227
|
+
"hash": "1F069773A16D0B028E3F90E23290B52DA7708082D258A22B8B786C615C272D5C",
|
|
228
|
+
"id": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:-1F069773A16D0B028E3F90E23290B52DA7708082D258A22B8B786C615C272D5C-DELEGATE",
|
|
229
|
+
"operator": undefined,
|
|
230
|
+
"recipients": Array [],
|
|
231
|
+
"senders": Array [],
|
|
232
|
+
"standard": undefined,
|
|
233
|
+
"tokenId": undefined,
|
|
234
|
+
"transactionSequenceNumber": 89,
|
|
235
|
+
"type": "DELEGATE",
|
|
236
|
+
"value": "10619",
|
|
237
|
+
},
|
|
238
|
+
Object {
|
|
239
|
+
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
240
|
+
"blockHash": null,
|
|
241
|
+
"blockHeight": "11765450",
|
|
242
|
+
"contract": undefined,
|
|
243
|
+
"extra": Object {
|
|
244
|
+
"validators": Array [
|
|
245
|
+
Object {
|
|
246
|
+
"address": "cosmosvaloper1sjllsnramtg3ewxqwwrwjxfgc4n4ef9u2lcnj0",
|
|
247
|
+
"amount": "12037",
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
},
|
|
251
|
+
"fee": "5847",
|
|
252
|
+
"hash": "2407102DAC28090F3AF57DC40F935D71919DC0AC59259A81EB9807B2F6A8EC40",
|
|
253
|
+
"id": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:-2407102DAC28090F3AF57DC40F935D71919DC0AC59259A81EB9807B2F6A8EC40-REWARD",
|
|
254
|
+
"operator": undefined,
|
|
255
|
+
"recipients": Array [],
|
|
256
|
+
"senders": Array [],
|
|
257
|
+
"standard": undefined,
|
|
258
|
+
"tokenId": undefined,
|
|
259
|
+
"transactionSequenceNumber": 86,
|
|
260
|
+
"type": "REWARD",
|
|
261
|
+
"value": "5847",
|
|
262
|
+
},
|
|
209
263
|
Object {
|
|
210
264
|
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
211
265
|
"blockHash": null,
|
|
@@ -400,6 +454,35 @@ Array [
|
|
|
400
454
|
"type": "IN",
|
|
401
455
|
"value": "478768",
|
|
402
456
|
},
|
|
457
|
+
Object {
|
|
458
|
+
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
459
|
+
"blockHash": null,
|
|
460
|
+
"blockHeight": "11768983",
|
|
461
|
+
"contract": undefined,
|
|
462
|
+
"extra": Object {
|
|
463
|
+
"validators": Array [
|
|
464
|
+
Object {
|
|
465
|
+
"address": "cosmosvaloper1hjct6q7npsspsg3dgvzk3sdf89spmlpfdn6m9d",
|
|
466
|
+
"amount": "6166",
|
|
467
|
+
},
|
|
468
|
+
Object {
|
|
469
|
+
"address": "cosmosvaloper1hjct6q7npsspsg3dgvzk3sdf89spmlpfdn6m9d",
|
|
470
|
+
"amount": "6166",
|
|
471
|
+
},
|
|
472
|
+
],
|
|
473
|
+
},
|
|
474
|
+
"fee": "10650",
|
|
475
|
+
"hash": "72E55F86B856BA8558F63075D653D02795A1FF4F33053398F221FF3FBBB02601",
|
|
476
|
+
"id": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:-72E55F86B856BA8558F63075D653D02795A1FF4F33053398F221FF3FBBB02601-DELEGATE",
|
|
477
|
+
"operator": undefined,
|
|
478
|
+
"recipients": Array [],
|
|
479
|
+
"senders": Array [],
|
|
480
|
+
"standard": undefined,
|
|
481
|
+
"tokenId": undefined,
|
|
482
|
+
"transactionSequenceNumber": 87,
|
|
483
|
+
"type": "DELEGATE",
|
|
484
|
+
"value": "10650",
|
|
485
|
+
},
|
|
403
486
|
Object {
|
|
404
487
|
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
405
488
|
"blockHash": null,
|
|
@@ -448,6 +531,35 @@ Array [
|
|
|
448
531
|
"type": "OUT",
|
|
449
532
|
"value": "13077",
|
|
450
533
|
},
|
|
534
|
+
Object {
|
|
535
|
+
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
536
|
+
"blockHash": null,
|
|
537
|
+
"blockHeight": "11768998",
|
|
538
|
+
"contract": undefined,
|
|
539
|
+
"extra": Object {
|
|
540
|
+
"validators": Array [
|
|
541
|
+
Object {
|
|
542
|
+
"address": "cosmosvaloper1grgelyng2v6v3t8z87wu3sxgt9m5s03xfytvz7",
|
|
543
|
+
"amount": "65",
|
|
544
|
+
},
|
|
545
|
+
Object {
|
|
546
|
+
"address": "cosmosvaloper1grgelyng2v6v3t8z87wu3sxgt9m5s03xfytvz7",
|
|
547
|
+
"amount": "65",
|
|
548
|
+
},
|
|
549
|
+
],
|
|
550
|
+
},
|
|
551
|
+
"fee": "10414",
|
|
552
|
+
"hash": "8440FE9905C9BCBD71A6A366AC150ECBD0EFFD040F5D39B255EE4708364497A2",
|
|
553
|
+
"id": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:-8440FE9905C9BCBD71A6A366AC150ECBD0EFFD040F5D39B255EE4708364497A2-DELEGATE",
|
|
554
|
+
"operator": undefined,
|
|
555
|
+
"recipients": Array [],
|
|
556
|
+
"senders": Array [],
|
|
557
|
+
"standard": undefined,
|
|
558
|
+
"tokenId": undefined,
|
|
559
|
+
"transactionSequenceNumber": 88,
|
|
560
|
+
"type": "DELEGATE",
|
|
561
|
+
"value": "10414",
|
|
562
|
+
},
|
|
451
563
|
Object {
|
|
452
564
|
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
453
565
|
"blockHash": null,
|
|
@@ -569,6 +681,31 @@ Array [
|
|
|
569
681
|
"type": "OUT",
|
|
570
682
|
"value": "6178",
|
|
571
683
|
},
|
|
684
|
+
Object {
|
|
685
|
+
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
686
|
+
"blockHash": null,
|
|
687
|
+
"blockHeight": "11765278",
|
|
688
|
+
"contract": undefined,
|
|
689
|
+
"extra": Object {
|
|
690
|
+
"validators": Array [
|
|
691
|
+
Object {
|
|
692
|
+
"address": "cosmosvaloper1kn3wugetjuy4zetlq6wadchfhvu3x740ae6z6x",
|
|
693
|
+
"amount": "136432",
|
|
694
|
+
},
|
|
695
|
+
],
|
|
696
|
+
},
|
|
697
|
+
"fee": "5854",
|
|
698
|
+
"hash": "A130F3EFD46524AF03033D89A5D5D9F7575389E212302D59B2AE0253EB0FD451",
|
|
699
|
+
"id": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:-A130F3EFD46524AF03033D89A5D5D9F7575389E212302D59B2AE0253EB0FD451-REWARD",
|
|
700
|
+
"operator": undefined,
|
|
701
|
+
"recipients": Array [],
|
|
702
|
+
"senders": Array [],
|
|
703
|
+
"standard": undefined,
|
|
704
|
+
"tokenId": undefined,
|
|
705
|
+
"transactionSequenceNumber": 85,
|
|
706
|
+
"type": "REWARD",
|
|
707
|
+
"value": "5854",
|
|
708
|
+
},
|
|
572
709
|
Object {
|
|
573
710
|
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
574
711
|
"blockHash": null,
|
|
@@ -593,6 +730,31 @@ Array [
|
|
|
593
730
|
"type": "OUT",
|
|
594
731
|
"value": "4062",
|
|
595
732
|
},
|
|
733
|
+
Object {
|
|
734
|
+
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
735
|
+
"blockHash": null,
|
|
736
|
+
"blockHeight": "11765235",
|
|
737
|
+
"contract": undefined,
|
|
738
|
+
"extra": Object {
|
|
739
|
+
"validators": Array [
|
|
740
|
+
Object {
|
|
741
|
+
"address": "cosmosvaloper156gqf9837u7d4c4678yt3rl4ls9c5vuursrrzf",
|
|
742
|
+
"amount": "47300",
|
|
743
|
+
},
|
|
744
|
+
],
|
|
745
|
+
},
|
|
746
|
+
"fee": "6208",
|
|
747
|
+
"hash": "AE4A923D4C538BEE28C5E7F3D77221CD9737E91A309A005EA349DDBA7FFF0948",
|
|
748
|
+
"id": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:-AE4A923D4C538BEE28C5E7F3D77221CD9737E91A309A005EA349DDBA7FFF0948-REWARD",
|
|
749
|
+
"operator": undefined,
|
|
750
|
+
"recipients": Array [],
|
|
751
|
+
"senders": Array [],
|
|
752
|
+
"standard": undefined,
|
|
753
|
+
"tokenId": undefined,
|
|
754
|
+
"transactionSequenceNumber": 84,
|
|
755
|
+
"type": "REWARD",
|
|
756
|
+
"value": "6208",
|
|
757
|
+
},
|
|
596
758
|
Object {
|
|
597
759
|
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
598
760
|
"blockHash": null,
|
|
@@ -617,6 +779,35 @@ Array [
|
|
|
617
779
|
"type": "OUT",
|
|
618
780
|
"value": "103791",
|
|
619
781
|
},
|
|
782
|
+
Object {
|
|
783
|
+
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
784
|
+
"blockHash": null,
|
|
785
|
+
"blockHeight": "11602123",
|
|
786
|
+
"contract": undefined,
|
|
787
|
+
"extra": Object {
|
|
788
|
+
"validators": Array [
|
|
789
|
+
Object {
|
|
790
|
+
"address": "cosmosvaloper1crqm3598z6qmyn2kkcl9dz7uqs4qdqnr6s8jdn",
|
|
791
|
+
"amount": "34610",
|
|
792
|
+
},
|
|
793
|
+
Object {
|
|
794
|
+
"address": "cosmosvaloper1crqm3598z6qmyn2kkcl9dz7uqs4qdqnr6s8jdn",
|
|
795
|
+
"amount": "34610",
|
|
796
|
+
},
|
|
797
|
+
],
|
|
798
|
+
},
|
|
799
|
+
"fee": "10913",
|
|
800
|
+
"hash": "B8D042E6B4AFB580E2D6DD20F2EDCD4E97791EF46DDD0AE112D7B771F6A9B0A4",
|
|
801
|
+
"id": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:-B8D042E6B4AFB580E2D6DD20F2EDCD4E97791EF46DDD0AE112D7B771F6A9B0A4-DELEGATE",
|
|
802
|
+
"operator": undefined,
|
|
803
|
+
"recipients": Array [],
|
|
804
|
+
"senders": Array [],
|
|
805
|
+
"standard": undefined,
|
|
806
|
+
"tokenId": undefined,
|
|
807
|
+
"transactionSequenceNumber": 82,
|
|
808
|
+
"type": "DELEGATE",
|
|
809
|
+
"value": "10913",
|
|
810
|
+
},
|
|
620
811
|
Object {
|
|
621
812
|
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
622
813
|
"blockHash": null,
|
|
@@ -714,6 +905,31 @@ Array [
|
|
|
714
905
|
"type": "DELEGATE",
|
|
715
906
|
"value": "11254",
|
|
716
907
|
},
|
|
908
|
+
Object {
|
|
909
|
+
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
910
|
+
"blockHash": null,
|
|
911
|
+
"blockHeight": "11602114",
|
|
912
|
+
"contract": undefined,
|
|
913
|
+
"extra": Object {
|
|
914
|
+
"validators": Array [
|
|
915
|
+
Object {
|
|
916
|
+
"address": "cosmosvaloper1grgelyng2v6v3t8z87wu3sxgt9m5s03xfytvz7",
|
|
917
|
+
"amount": "2347",
|
|
918
|
+
},
|
|
919
|
+
],
|
|
920
|
+
},
|
|
921
|
+
"fee": "6197",
|
|
922
|
+
"hash": "D7035BC72C17D4FCA9DF81AF750165B12D2509FFDF87DD1F1616EA9B55945C01",
|
|
923
|
+
"id": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:-D7035BC72C17D4FCA9DF81AF750165B12D2509FFDF87DD1F1616EA9B55945C01-REWARD",
|
|
924
|
+
"operator": undefined,
|
|
925
|
+
"recipients": Array [],
|
|
926
|
+
"senders": Array [],
|
|
927
|
+
"standard": undefined,
|
|
928
|
+
"tokenId": undefined,
|
|
929
|
+
"transactionSequenceNumber": 81,
|
|
930
|
+
"type": "REWARD",
|
|
931
|
+
"value": "6197",
|
|
932
|
+
},
|
|
717
933
|
Object {
|
|
718
934
|
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
719
935
|
"blockHash": null,
|
|
@@ -738,6 +954,31 @@ Array [
|
|
|
738
954
|
"type": "IN",
|
|
739
955
|
"value": "8800",
|
|
740
956
|
},
|
|
957
|
+
Object {
|
|
958
|
+
"accountId": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:",
|
|
959
|
+
"blockHash": null,
|
|
960
|
+
"blockHeight": "11765140",
|
|
961
|
+
"contract": undefined,
|
|
962
|
+
"extra": Object {
|
|
963
|
+
"validators": Array [
|
|
964
|
+
Object {
|
|
965
|
+
"address": "cosmosvaloper1vf44d85es37hwl9f4h9gv0e064m0lla60j9luj",
|
|
966
|
+
"amount": "281690",
|
|
967
|
+
},
|
|
968
|
+
],
|
|
969
|
+
},
|
|
970
|
+
"fee": "5972",
|
|
971
|
+
"hash": "FE0A68EDA902C9CC052AE7247793F6565D6DE1BBA6357DD34B401560ECD63F0C",
|
|
972
|
+
"id": "js:2:cosmos:cosmos1g84934jpu3v5de5yqukkkhxmcvsw3u2ajxvpdl:-FE0A68EDA902C9CC052AE7247793F6565D6DE1BBA6357DD34B401560ECD63F0C-REWARD",
|
|
973
|
+
"operator": undefined,
|
|
974
|
+
"recipients": Array [],
|
|
975
|
+
"senders": Array [],
|
|
976
|
+
"standard": undefined,
|
|
977
|
+
"tokenId": undefined,
|
|
978
|
+
"transactionSequenceNumber": 83,
|
|
979
|
+
"type": "REWARD",
|
|
980
|
+
"value": "5972",
|
|
981
|
+
},
|
|
741
982
|
],
|
|
742
983
|
Array [
|
|
743
984
|
Object {
|
|
@@ -819,7 +1060,7 @@ Array [
|
|
|
819
1060
|
"blockHeight": "10450729",
|
|
820
1061
|
"contract": undefined,
|
|
821
1062
|
"extra": Object {
|
|
822
|
-
"
|
|
1063
|
+
"sourceValidator": "cosmosvaloper10wljxpl03053h9690apmyeakly3ylhejrucvtm",
|
|
823
1064
|
"validators": Array [
|
|
824
1065
|
Object {
|
|
825
1066
|
"address": "cosmosvaloper1sjllsnramtg3ewxqwwrwjxfgc4n4ef9u2lcnj0",
|
|
@@ -845,7 +1086,7 @@ Array [
|
|
|
845
1086
|
"blockHeight": "10549023",
|
|
846
1087
|
"contract": undefined,
|
|
847
1088
|
"extra": Object {
|
|
848
|
-
"
|
|
1089
|
+
"sourceValidator": "cosmosvaloper156gqf9837u7d4c4678yt3rl4ls9c5vuursrrzf",
|
|
849
1090
|
"validators": Array [
|
|
850
1091
|
Object {
|
|
851
1092
|
"address": "cosmosvaloper10wljxpl03053h9690apmyeakly3ylhejrucvtm",
|