@airgap/coinlib-core 0.13.7-beta.0 → 0.13.7-beta.2
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/actions/GetKtAccountsAction.js +1 -1
- package/actions/GetKtAccountsAction.js.map +1 -1
- package/airgap-coinlib-core.min.js +2914 -2332
- package/index.d.ts +1 -3
- package/index.js +1 -6
- package/index.js.map +1 -1
- package/interfaces/IAirGapAddress.d.ts +19 -0
- package/interfaces/IAirGapAddress.js +3 -0
- package/interfaces/IAirGapAddress.js.map +1 -0
- package/package.json +1 -1
- package/protocols/CryptoClient.d.ts +4 -5
- package/protocols/Ed25519CryptoClient.d.ts +1 -2
- package/protocols/Ed25519CryptoClient.js +1 -1
- package/protocols/Ed25519CryptoClient.js.map +1 -1
- package/protocols/ICoinBaseProtocol.d.ts +47 -0
- package/protocols/ICoinBaseProtocol.js +3 -0
- package/protocols/ICoinBaseProtocol.js.map +1 -0
- package/protocols/ICoinOfflineProtocol.d.ts +22 -0
- package/protocols/ICoinOfflineProtocol.js +3 -0
- package/protocols/ICoinOfflineProtocol.js.map +1 -0
- package/protocols/ICoinOnlineProtocol.d.ts +46 -0
- package/protocols/ICoinOnlineProtocol.js +3 -0
- package/protocols/ICoinOnlineProtocol.js.map +1 -0
- package/protocols/ICoinProtocol.d.ts +4 -110
- package/protocols/ICoinSubProtocol.d.ts +3 -3
- package/protocols/NonExtendedProtocol.d.ts +4 -3
- package/protocols/NonExtendedProtocol.js +4 -1
- package/protocols/NonExtendedProtocol.js.map +1 -1
- package/protocols/Secp256k1CryptoClient.d.ts +1 -2
- package/protocols/Secp256k1CryptoClient.js +1 -1
- package/protocols/Secp256k1CryptoClient.js.map +1 -1
- package/protocols/Sr25519CryptoClient.d.ts +1 -2
- package/protocols/aeternity/AeternityAddress.d.ts +1 -1
- package/protocols/aeternity/AeternityAddress.js +1 -1
- package/protocols/aeternity/AeternityCryptoClient.d.ts +1 -2
- package/protocols/aeternity/AeternityCryptoClient.js +1 -1
- package/protocols/aeternity/AeternityCryptoClient.js.map +1 -1
- package/protocols/aeternity/AeternityProtocol.d.ts +41 -33
- package/protocols/aeternity/AeternityProtocol.js +70 -56
- package/protocols/aeternity/AeternityProtocol.js.map +1 -1
- package/protocols/aeternity/AeternityTypes.d.ts +6 -0
- package/protocols/bitcoin/BitcoinAddress.d.ts +1 -1
- package/protocols/bitcoin/BitcoinAddress.js +1 -1
- package/protocols/bitcoin/BitcoinCryptoClient.d.ts +1 -2
- package/protocols/bitcoin/BitcoinCryptoClient.js +2 -2
- package/protocols/bitcoin/BitcoinCryptoClient.js.map +1 -1
- package/protocols/bitcoin/BitcoinProtocol.d.ts +43 -32
- package/protocols/bitcoin/BitcoinProtocol.js +98 -79
- package/protocols/bitcoin/BitcoinProtocol.js.map +1 -1
- package/protocols/bitcoin/BitcoinSegwitAddress.d.ts +1 -1
- package/protocols/bitcoin/BitcoinSegwitAddress.js +1 -1
- package/protocols/bitcoin/BitcoinSegwitProtocol.d.ts +10 -11
- package/protocols/bitcoin/BitcoinSegwitProtocol.js +42 -29
- package/protocols/bitcoin/BitcoinSegwitProtocol.js.map +1 -1
- package/protocols/bitcoin/BitcoinTestnetProtocol.d.ts +6 -3
- package/protocols/bitcoin/BitcoinTestnetProtocol.js +6 -3
- package/protocols/bitcoin/BitcoinTestnetProtocol.js.map +1 -1
- package/protocols/bitcoin/BitcoinTypes.d.ts +6 -0
- package/protocols/cosmos/CosmosAddress.d.ts +1 -1
- package/protocols/cosmos/CosmosAddress.js +1 -1
- package/protocols/cosmos/CosmosCryptoClient.d.ts +1 -2
- package/protocols/cosmos/CosmosCryptoClient.js +1 -1
- package/protocols/cosmos/CosmosCryptoClient.js.map +1 -1
- package/protocols/cosmos/CosmosProtocol.d.ts +41 -29
- package/protocols/cosmos/CosmosProtocol.js +72 -58
- package/protocols/cosmos/CosmosProtocol.js.map +1 -1
- package/protocols/cosmos/CosmosTransaction.d.ts +3 -2
- package/protocols/cosmos/CosmosTransaction.js +2 -2
- package/protocols/cosmos/CosmosTransaction.js.map +1 -1
- package/protocols/cosmos/CosmosTypes.d.ts +6 -0
- package/protocols/cosmos/CosmosTypes.js.map +1 -1
- package/protocols/cosmos/cosmos-message/CosmosDelegateMessage.d.ts +3 -2
- package/protocols/cosmos/cosmos-message/CosmosDelegateMessage.js +3 -3
- package/protocols/cosmos/cosmos-message/CosmosDelegateMessage.js.map +1 -1
- package/protocols/cosmos/cosmos-message/CosmosMessage.d.ts +3 -2
- package/protocols/cosmos/cosmos-message/CosmosMessage.js.map +1 -1
- package/protocols/cosmos/cosmos-message/CosmosSendMessage.d.ts +2 -2
- package/protocols/cosmos/cosmos-message/CosmosSendMessage.js +3 -3
- package/protocols/cosmos/cosmos-message/CosmosSendMessage.js.map +1 -1
- package/protocols/cosmos/cosmos-message/CosmosWithdrawDelegationRewardMessage.d.ts +3 -2
- package/protocols/cosmos/cosmos-message/CosmosWithdrawDelegationRewardMessage.js +3 -3
- package/protocols/cosmos/cosmos-message/CosmosWithdrawDelegationRewardMessage.js.map +1 -1
- package/protocols/ethereum/BaseEthereumProtocol.d.ts +43 -31
- package/protocols/ethereum/BaseEthereumProtocol.js +95 -76
- package/protocols/ethereum/BaseEthereumProtocol.js.map +1 -1
- package/protocols/ethereum/EthereumAddress.d.ts +1 -1
- package/protocols/ethereum/EthereumAddress.js +1 -1
- package/protocols/ethereum/EthereumCryptoClient.d.ts +1 -2
- package/protocols/ethereum/EthereumCryptoClient.js +8 -7
- package/protocols/ethereum/EthereumCryptoClient.js.map +1 -1
- package/protocols/ethereum/EthereumProtocol.d.ts +6 -4
- package/protocols/ethereum/EthereumProtocol.js +8 -6
- package/protocols/ethereum/EthereumProtocol.js.map +1 -1
- package/protocols/ethereum/EthereumTypes.d.ts +6 -0
- package/protocols/ethereum/clients/info-clients/EtherscanInfoClient.js +82 -58
- package/protocols/ethereum/clients/info-clients/EtherscanInfoClient.js.map +1 -1
- package/protocols/ethereum/clients/info-clients/InfoClient.d.ts +3 -3
- package/protocols/ethereum/erc20/GenericERC20.d.ts +10 -7
- package/protocols/ethereum/erc20/GenericERC20.js +27 -23
- package/protocols/ethereum/erc20/GenericERC20.js.map +1 -1
- package/protocols/groestlcoin/GroestlcoinProtocol.d.ts +29 -15
- package/protocols/groestlcoin/GroestlcoinProtocol.js +31 -17
- package/protocols/groestlcoin/GroestlcoinProtocol.js.map +1 -1
- package/protocols/substrate/SubstrateCryptoClient.d.ts +1 -2
- package/protocols/substrate/SubstrateCryptoClient.js +7 -7
- package/protocols/substrate/SubstrateCryptoClient.js.map +1 -1
- package/protocols/substrate/SubstrateDelegateProtocol.js +35 -35
- package/protocols/substrate/SubstrateDelegateProtocol.js.map +1 -1
- package/protocols/substrate/SubstrateProtocol.d.ts +43 -29
- package/protocols/substrate/SubstrateProtocol.js +60 -52
- package/protocols/substrate/SubstrateProtocol.js.map +1 -1
- package/protocols/substrate/SubstrateTypes.d.ts +6 -0
- package/protocols/substrate/astar/AstarProtocol.d.ts +28 -15
- package/protocols/substrate/astar/AstarProtocol.js +30 -17
- package/protocols/substrate/astar/AstarProtocol.js.map +1 -1
- package/protocols/substrate/astar/shiden/ShidenProtocol.d.ts +22 -11
- package/protocols/substrate/astar/shiden/ShidenProtocol.js +24 -13
- package/protocols/substrate/astar/shiden/ShidenProtocol.js.map +1 -1
- package/protocols/substrate/common/SubstrateAccountController.js +4 -4
- package/protocols/substrate/common/data/account/SubstrateAddress.d.ts +1 -1
- package/protocols/substrate/common/data/account/SubstrateAddress.js +2 -2
- package/protocols/substrate/common/data/scale/type/SCALEAccountId.js +1 -1
- package/protocols/substrate/common/data/transaction/SubstrateTransactionPayload.d.ts +1 -1
- package/protocols/substrate/common/data/transaction/method/SubstrateTransactionMethodArgs.js +12 -12
- package/protocols/substrate/kusama/KusamaProtocol.d.ts +28 -15
- package/protocols/substrate/kusama/KusamaProtocol.js +30 -17
- package/protocols/substrate/kusama/KusamaProtocol.js.map +1 -1
- package/protocols/substrate/moonbeam/MoonbeamProtocol.d.ts +28 -15
- package/protocols/substrate/moonbeam/MoonbeamProtocol.js +61 -48
- package/protocols/substrate/moonbeam/MoonbeamProtocol.js.map +1 -1
- package/protocols/substrate/moonbeam/controllers/MoonbeamAccountController.js +3 -3
- package/protocols/substrate/moonbeam/data/account/MoonbeamAddress.d.ts +1 -1
- package/protocols/substrate/moonbeam/data/account/MoonbeamAddress.js +3 -3
- package/protocols/substrate/moonbeam/moonbase/MoonbaseProtocol.d.ts +20 -12
- package/protocols/substrate/moonbeam/moonbase/MoonbaseProtocol.js +22 -14
- package/protocols/substrate/moonbeam/moonbase/MoonbaseProtocol.js.map +1 -1
- package/protocols/substrate/moonbeam/moonriver/MoonriverProtocol.d.ts +20 -12
- package/protocols/substrate/moonbeam/moonriver/MoonriverProtocol.js +22 -14
- package/protocols/substrate/moonbeam/moonriver/MoonriverProtocol.js.map +1 -1
- package/protocols/substrate/polkadot/PolkadotProtocol.d.ts +28 -15
- package/protocols/substrate/polkadot/PolkadotProtocol.js +30 -17
- package/protocols/substrate/polkadot/PolkadotProtocol.js.map +1 -1
- package/protocols/tezos/TezosAddress.d.ts +1 -1
- package/protocols/tezos/TezosAddress.js +1 -1
- package/protocols/tezos/TezosCryptoClient.d.ts +1 -1
- package/protocols/tezos/TezosCryptoClient.js +1 -1
- package/protocols/tezos/TezosCryptoClient.js.map +1 -1
- package/protocols/tezos/TezosProtocol.d.ts +42 -29
- package/protocols/tezos/TezosProtocol.js +105 -94
- package/protocols/tezos/TezosProtocol.js.map +1 -1
- package/protocols/tezos/contract/TezosContract.js +1 -0
- package/protocols/tezos/contract/TezosContract.js.map +1 -1
- package/protocols/tezos/fa/TezosBTC.d.ts +0 -1
- package/protocols/tezos/fa/TezosBTC.js +1 -3
- package/protocols/tezos/fa/TezosBTC.js.map +1 -1
- package/protocols/tezos/fa/TezosBTCtez.d.ts +0 -1
- package/protocols/tezos/fa/TezosBTCtez.js +1 -3
- package/protocols/tezos/fa/TezosBTCtez.js.map +1 -1
- package/protocols/tezos/fa/TezosCTez.d.ts +0 -1
- package/protocols/tezos/fa/TezosCTez.js +1 -3
- package/protocols/tezos/fa/TezosCTez.js.map +1 -1
- package/protocols/tezos/fa/TezosDOGA.d.ts +0 -1
- package/protocols/tezos/fa/TezosDOGA.js +1 -3
- package/protocols/tezos/fa/TezosDOGA.js.map +1 -1
- package/protocols/tezos/fa/TezosETHtz.d.ts +0 -1
- package/protocols/tezos/fa/TezosETHtz.js +1 -3
- package/protocols/tezos/fa/TezosETHtz.js.map +1 -1
- package/protocols/tezos/fa/TezosFA1Protocol.js +6 -6
- package/protocols/tezos/fa/TezosFA1Protocol.js.map +1 -1
- package/protocols/tezos/fa/TezosFA2Protocol.d.ts +3 -2
- package/protocols/tezos/fa/TezosFA2Protocol.js +10 -9
- package/protocols/tezos/fa/TezosFA2Protocol.js.map +1 -1
- package/protocols/tezos/fa/TezosFAProtocol.d.ts +9 -5
- package/protocols/tezos/fa/TezosFAProtocol.js +48 -35
- package/protocols/tezos/fa/TezosFAProtocol.js.map +1 -1
- package/protocols/tezos/fa/TezosKolibriUSD.d.ts +0 -1
- package/protocols/tezos/fa/TezosKolibriUSD.js +1 -3
- package/protocols/tezos/fa/TezosKolibriUSD.js.map +1 -1
- package/protocols/tezos/fa/TezosPlanty.d.ts +0 -1
- package/protocols/tezos/fa/TezosPlanty.js +1 -3
- package/protocols/tezos/fa/TezosPlanty.js.map +1 -1
- package/protocols/tezos/fa/TezosQUIPU.d.ts +0 -1
- package/protocols/tezos/fa/TezosQUIPU.js +1 -3
- package/protocols/tezos/fa/TezosQUIPU.js.map +1 -1
- package/protocols/tezos/fa/TezosSIRS.d.ts +0 -1
- package/protocols/tezos/fa/TezosSIRS.js +1 -3
- package/protocols/tezos/fa/TezosSIRS.js.map +1 -1
- package/protocols/tezos/fa/TezosStaker.d.ts +0 -1
- package/protocols/tezos/fa/TezosStaker.js +1 -3
- package/protocols/tezos/fa/TezosStaker.js.map +1 -1
- package/protocols/tezos/fa/TezosUBTC.d.ts +0 -1
- package/protocols/tezos/fa/TezosUBTC.js +1 -3
- package/protocols/tezos/fa/TezosUBTC.js.map +1 -1
- package/protocols/tezos/fa/TezosUDEFI.d.ts +0 -1
- package/protocols/tezos/fa/TezosUDEFI.js +1 -3
- package/protocols/tezos/fa/TezosUDEFI.js.map +1 -1
- package/protocols/tezos/fa/TezosUSD.d.ts +0 -1
- package/protocols/tezos/fa/TezosUSD.js +1 -3
- package/protocols/tezos/fa/TezosUSD.js.map +1 -1
- package/protocols/tezos/fa/TezosUSDT.d.ts +0 -1
- package/protocols/tezos/fa/TezosUSDT.js +1 -3
- package/protocols/tezos/fa/TezosUSDT.js.map +1 -1
- package/protocols/tezos/fa/TezosUUSD.d.ts +0 -1
- package/protocols/tezos/fa/TezosUUSD.js +1 -3
- package/protocols/tezos/fa/TezosUUSD.js.map +1 -1
- package/protocols/tezos/fa/TezosWRAP.d.ts +0 -1
- package/protocols/tezos/fa/TezosWRAP.js +1 -3
- package/protocols/tezos/fa/TezosWRAP.js.map +1 -1
- package/protocols/tezos/fa/TezosWrapped.d.ts +0 -1
- package/protocols/tezos/fa/TezosWrapped.js +1 -3
- package/protocols/tezos/fa/TezosWrapped.js.map +1 -1
- package/protocols/tezos/fa/TezosYOU.d.ts +0 -1
- package/protocols/tezos/fa/TezosYOU.js +1 -3
- package/protocols/tezos/fa/TezosYOU.js.map +1 -1
- package/protocols/tezos/kt/TezosKtProtocol.d.ts +10 -7
- package/protocols/tezos/kt/TezosKtProtocol.js +50 -20
- package/protocols/tezos/kt/TezosKtProtocol.js.map +1 -1
- package/protocols/tezos/sapling/TezosSaplingCryptoClient.d.ts +1 -1
- package/protocols/tezos/sapling/TezosSaplingProtocol.d.ts +43 -28
- package/protocols/tezos/sapling/TezosSaplingProtocol.js +129 -69
- package/protocols/tezos/sapling/TezosSaplingProtocol.js.map +1 -1
- package/protocols/tezos/sapling/utils/TezosSaplingBookkeeper.js +7 -7
- package/protocols/tezos/sapling/utils/TezosSaplingBookkeeper.js.map +1 -1
- package/protocols/tezos/types/TezosAddressCursor.d.ts +3 -0
- package/protocols/tezos/types/TezosAddressCursor.js +3 -0
- package/protocols/tezos/types/TezosAddressCursor.js.map +1 -0
- package/protocols/tezos/types/TezosAddressResult.d.ts +4 -0
- package/protocols/tezos/types/TezosAddressResult.js +3 -0
- package/protocols/tezos/types/TezosAddressResult.js.map +1 -0
- package/protocols/tezos/types/kt/TezosKtAddressCursor.d.ts +4 -0
- package/protocols/tezos/types/kt/TezosKtAddressCursor.js +3 -0
- package/protocols/tezos/types/kt/TezosKtAddressCursor.js.map +1 -0
- package/protocols/tezos/types/kt/TezosKtAddressResult.d.ts +5 -0
- package/protocols/tezos/types/kt/TezosKtAddressResult.js +3 -0
- package/protocols/tezos/types/kt/TezosKtAddressResult.js.map +1 -0
- package/protocols/tezos/types/sapling/TezosSaplingAddressCursor.d.ts +4 -0
- package/protocols/tezos/types/sapling/TezosSaplingAddressCursor.js +3 -0
- package/protocols/tezos/types/sapling/TezosSaplingAddressCursor.js.map +1 -0
- package/protocols/tezos/types/sapling/TezosSaplingAddressResult.d.ts +4 -0
- package/protocols/tezos/types/sapling/TezosSaplingAddressResult.js +3 -0
- package/protocols/tezos/types/sapling/TezosSaplingAddressResult.js.map +1 -0
- package/serializer/unsigned-transactions/xtz-btc-transactions.validator.js +23 -10
- package/serializer/unsigned-transactions/xtz-btc-transactions.validator.js.map +1 -1
- package/serializer/validators/validators.js +246 -140
- package/serializer/validators/validators.js.map +1 -1
- package/serializer-v3/unsigned-transactions/xtz-btc-transactions.validator.js +23 -10
- package/serializer-v3/unsigned-transactions/xtz-btc-transactions.validator.js.map +1 -1
- package/serializer-v3/validators/validators.js +246 -140
- package/serializer-v3/validators/validators.js.map +1 -1
- package/utils/AES.d.ts +2 -3
- package/utils/AES.js +3 -1
- package/utils/AES.js.map +1 -1
- package/utils/protocolsByIdentifier.d.ts +1 -1
- package/utils/protocolsByIdentifier.js +114 -24
- package/utils/protocolsByIdentifier.js.map +1 -1
- package/utils/supportedProtocols.d.ts +2 -2
- package/utils/supportedProtocols.js +114 -12
- package/utils/supportedProtocols.js.map +1 -1
- package/wallet/AirGapCoinWallet.d.ts +1 -1
- package/wallet/AirGapCoinWallet.js +45 -27
- package/wallet/AirGapCoinWallet.js.map +1 -1
- package/wallet/AirGapMarketWallet.js +28 -24
- package/wallet/AirGapMarketWallet.js.map +1 -1
- package/wallet/AirGapNFTWallet.d.ts +1 -1
- package/wallet/AirGapNFTWallet.js +26 -5
- package/wallet/AirGapNFTWallet.js.map +1 -1
- package/wallet/AirGapWallet.d.ts +1 -1
- package/wallet/AirGapWallet.js +23 -12
- package/wallet/AirGapWallet.js.map +1 -1
- package/utils/createProtocol.d.ts +0 -3
- package/utils/createProtocol.js +0 -143
- package/utils/createProtocol.js.map +0 -1
- package/utils/subProtocols.d.ts +0 -8
- package/utils/subProtocols.js +0 -53
- package/utils/subProtocols.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CosmosTransaction.js","sourceRoot":"","sources":["../../../src/protocols/cosmos/CosmosTransaction.ts"],"names":[],"mappings":";;;;;;AAAA,kGAA2E;AAE3E,uCAAgD;AAChD,4DAAmD;
|
|
1
|
+
{"version":3,"file":"CosmosTransaction.js","sourceRoot":"","sources":["../../../src/protocols/cosmos/CosmosTransaction.ts"],"names":[],"mappings":";;;;;;AAAA,kGAA2E;AAE3E,uCAAgD;AAChD,4DAAmD;AAKnD,gFAA8E;AAC9E,gEAAyG;AACzG,wEAAsE;AACtE,gHAA8G;AAC9G,yCAAuC;AAevC;IAQE,2BAAY,QAAyB,EAAE,GAAc,EAAE,IAAY,EAAE,OAAe,EAAE,aAAqB,EAAE,QAAgB;QAC3H,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,OAAO,GAAG,O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AM,EAAE,iBAAiB,CAAC,CAAA;aAChE;QACH,CAAC,CAAC,CAAA;QAEF,OAAO,IAAI,iBAAiB,CAAC,QAAQ,EAAE,qBAAS,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACvI,CAAC;IACH,wBAAC;AAAD,CAAC,AA/GD,IA+GC;AA/GY,8CAAiB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IBaseProtocolAddressCursor, IAirGapAddressResult } from '../../interfaces/IAirGapAddress';
|
|
1
2
|
import { IAirGapTransaction } from '../../interfaces/IAirGapTransaction';
|
|
2
3
|
import { CosmosCoinJSON } from './CosmosCoin';
|
|
3
4
|
export interface CosmosTransactionCursor {
|
|
@@ -302,3 +303,8 @@ export interface CosmosPagedSendTxsResponse {
|
|
|
302
303
|
pagination: Pagination;
|
|
303
304
|
}
|
|
304
305
|
export declare const calculateTransactionLimit: (limit: any, selfTotal: any, otherTotal: any, selfOffset: any, otherOffset: any) => number;
|
|
306
|
+
export interface CosmosAddressCursor extends IBaseProtocolAddressCursor {
|
|
307
|
+
hasNext: false;
|
|
308
|
+
}
|
|
309
|
+
export interface CosmosAddressResult extends IAirGapAddressResult<CosmosAddressCursor> {
|
|
310
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CosmosTypes.js","sourceRoot":"","sources":["../../../src/protocols/cosmos/CosmosTypes.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CosmosTypes.js","sourceRoot":"","sources":["../../../src/protocols/cosmos/CosmosTypes.ts"],"names":[],"mappings":";;;AA+VO,IAAM,yBAAyB,GAAG,UAAC,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW;IAC7F,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,UAAU,GAAG,WAAW,CAAC,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC,CAAA;AAC7G,CAAC,CAAA;AAFY,QAAA,yBAAyB,6BAErC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { EncodeObject } from '../../../dependencies/src/cosmjs';
|
|
2
2
|
import { IAirGapTransaction } from '../../../interfaces/IAirGapTransaction';
|
|
3
|
+
import { ProtocolSymbols } from '../../../utils/ProtocolSymbols';
|
|
3
4
|
import { CosmosCoin } from '../CosmosCoin';
|
|
4
|
-
import {
|
|
5
|
+
import { CosmosProtocolNetwork } from '../CosmosProtocolOptions';
|
|
5
6
|
import { CosmosMessage, CosmosMessageJSON, CosmosMessageType } from './CosmosMessage';
|
|
6
7
|
export declare class CosmosDelegateMessage implements CosmosMessage {
|
|
7
8
|
readonly delegatorAddress: string;
|
|
@@ -14,6 +15,6 @@ export declare class CosmosDelegateMessage implements CosmosMessage {
|
|
|
14
15
|
toJSON(): CosmosMessageJSON;
|
|
15
16
|
static fromJSON(json: CosmosMessageJSON): CosmosDelegateMessage;
|
|
16
17
|
toRPCBody(): any;
|
|
17
|
-
toAirGapTransaction(
|
|
18
|
+
toAirGapTransaction(identifier: ProtocolSymbols, network: CosmosProtocolNetwork, fee: string): IAirGapTransaction;
|
|
18
19
|
static fromRPCBody(json: any): CosmosDelegateMessage;
|
|
19
20
|
}
|
|
@@ -48,15 +48,15 @@ var CosmosDelegateMessage = /** @class */ (function () {
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
|
-
CosmosDelegateMessage.prototype.toAirGapTransaction = function (
|
|
51
|
+
CosmosDelegateMessage.prototype.toAirGapTransaction = function (identifier, network, fee) {
|
|
52
52
|
return {
|
|
53
53
|
amount: this.amount.amount,
|
|
54
54
|
from: [this.delegatorAddress],
|
|
55
55
|
to: [this.validatorAddress],
|
|
56
56
|
isInbound: false,
|
|
57
57
|
fee: fee,
|
|
58
|
-
protocolIdentifier:
|
|
59
|
-
network:
|
|
58
|
+
protocolIdentifier: identifier,
|
|
59
|
+
network: network,
|
|
60
60
|
transactionDetails: this.toRPCBody(),
|
|
61
61
|
extra: {
|
|
62
62
|
type: this.type.index === CosmosMessage_1.CosmosMessageTypeIndex.DELEGATE ? IAirGapTransaction_1.AirGapTransactionType.DELEGATE : IAirGapTransaction_1.AirGapTransactionType.UNDELEGATE
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CosmosDelegateMessage.js","sourceRoot":"","sources":["../../../../src/protocols/cosmos/cosmos-message/CosmosDelegateMessage.ts"],"names":[],"mappings":";;;AACA,6EAAkG;
|
|
1
|
+
{"version":3,"file":"CosmosDelegateMessage.js","sourceRoot":"","sources":["../../../../src/protocols/cosmos/cosmos-message/CosmosDelegateMessage.ts"],"names":[],"mappings":";;;AACA,6EAAkG;AAElG,4CAA0C;AAG1C,iDAA6G;AAE7G;IAOE,+BAAY,gBAAwB,EAAE,gBAAwB,EAAE,MAAkB,EAAE,UAA2B;QAA3B,2BAAA,EAAA,kBAA2B;QAC7G,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;QACxC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,iCAAiB,CAAC,UAAU,CAAC,CAAC,CAAC,iCAAiB,CAAC,QAAQ,CAAA;IACpF,CAAC;IAEM,8CAAc,GAArB;QACE,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK;YACxB,KAAK,EAAE;gBACL,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;gBACvC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;gBACvC,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB;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A1B,UAA2B,UAA2B,EAAE,OAA8B,EAAE,GAAW;QACjG,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM;YAC1B,IAAI,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC;YAC7B,EAAE,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC;YAC3B,SAAS,EAAE,KAAK;YAChB,GAAG,KAAA;YACH,kBAAkB,EAAE,UAAU;YAC9B,OAAO,SAAA;YACP,kBAAkB,EAAE,IAAI,CAAC,SAAS,EAAE;YACpC,KAAK,EAAE;gBACL,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,KAAK,sCAAsB,CAAC,QAAQ,CAAC,CAAC,CAAC,0CAAqB,CAAC,QAAQ,CAAC,CAAC,CAAC,0CAAqB,CAAC,UAAU;aAC9H;SACF,CAAA;IACH,CAAC;IAEa,iCAAW,GAAzB,UAA0B,IAAS;QACjC,OAAO,IAAI,qBAAqB,CAC9B,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAC5B,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAC5B,uBAAU,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EACzC,IAAI,CAAC,IAAI,KAAK,iCAAiB,CAAC,UAAU,CAAC,KAAK,CACjD,CAAA;IACH,CAAC;IACH,4BAAC;AAAD,CAAC,AAxFD,IAwFC;AAxFY,sDAAqB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IAirGapTransaction } from '../../../interfaces/IAirGapTransaction';
|
|
2
|
+
import { ProtocolSymbols } from '../../../utils/ProtocolSymbols';
|
|
2
3
|
import { CosmosCoinJSON } from '../CosmosCoin';
|
|
3
|
-
import {
|
|
4
|
+
import { CosmosProtocolNetwork } from '../CosmosProtocolOptions';
|
|
4
5
|
import { Encodable, JSONConvertible, RPCConvertible } from '../CosmosTransaction';
|
|
5
6
|
export interface CosmosMessageJSON {
|
|
6
7
|
type: CosmosMessageTypeIndex;
|
|
@@ -31,6 +32,6 @@ export declare class CosmosMessageType {
|
|
|
31
32
|
}
|
|
32
33
|
export interface CosmosMessage extends JSONConvertible, RPCConvertible, Encodable {
|
|
33
34
|
type: CosmosMessageType;
|
|
34
|
-
toAirGapTransaction(
|
|
35
|
+
toAirGapTransaction(identifier: ProtocolSymbols, network: CosmosProtocolNetwork, fee: string): IAirGapTransaction;
|
|
35
36
|
toJSON(): CosmosMessageJSON;
|
|
36
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CosmosMessage.js","sourceRoot":"","sources":["../../../../src/protocols/cosmos/cosmos-message/CosmosMessage.ts"],"names":[],"mappings":";;;AAAA,0CAAmD;AACnD,+DAAsD;
|
|
1
|
+
{"version":3,"file":"CosmosMessage.js","sourceRoot":"","sources":["../../../../src/protocols/cosmos/cosmos-message/CosmosMessage.ts"],"names":[],"mappings":";;;AAAA,0CAAmD;AACnD,+DAAsD;AActD,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAChC,mEAAQ,CAAA;IACR,2EAAY,CAAA;IACZ,+EAAc,CAAA;IACd,+GAA8B,CAAA;AAChC,CAAC,EALW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAKjC;AAED,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAChC,+DAAqC,CAAA;IACrC,0EAAgD,CAAA;IAChD,8EAAoD,CAAA;IACpD,gHAAsF,CAAA;AACxF,CAAC,EALW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAKjC;AAED;IASE,2BAAY,KAA6B;QACvC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,QAAQ,KAAK,EAAE;YACb,KAAK,sBAAsB,CAAC,IAAI;gBAC9B,IAAI,CAAC,KAAK,GAAG,sBAAsB,CAAC,IAAI,CAAA;gBACxC,MAAK;YACP,KAAK,sBAAsB,CAAC,QAAQ;gBAClC,IAAI,CAAC,KAAK,GAAG,sBAAsB,CAAC,QAAQ,CAAA;gBAC5C,MAAK;YACP,KAAK,sBAAsB,CAAC,UAAU;gBACpC,IAAI,CAAC,KAAK,GAAG,sBAAsB,CAAC,UAAU,CAAA;gBAC9C,MAAK;YACP,KAAK,sBAAsB,CAAC,0BAA0B;gBACpD,IAAI,CAAC,KAAK,GAAG,sBAAsB,CAAC,0BAA0B,CAAA;gBAC9D,MAAK;YACP;gBACE,MAAM,IAAI,0BAAiB,CAAC,sBAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;SAChE;IACH,CAAC;IA1Ba,sBAAI,GAAsB,IAAI,iBAAiB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAA;IAC5E,0BAAQ,GAAsB,IAAI,iBAAiB,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAA;IACpF,4BAAU,GAAsB,IAAI,iBAAiB,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAA;IACxF,0CAAwB,GAAsB,IAAI,iBAAiB,CAAC,sBAAsB,CAAC,0BAA0B,CAAC,CAAA;IAwBtI,wBAAC;CAAA,AA5BD,IA4BC;AA5BY,8CAAiB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { CosmosProtocolNetwork, ProtocolSymbols } from '../../..';
|
|
1
2
|
import { EncodeObject } from '../../../dependencies/src/cosmjs';
|
|
2
3
|
import { IAirGapTransaction } from '../../../interfaces/IAirGapTransaction';
|
|
3
4
|
import { CosmosCoin } from '../CosmosCoin';
|
|
4
|
-
import { CosmosProtocol } from '../CosmosProtocol';
|
|
5
5
|
import { CosmosMessage, CosmosMessageJSON, CosmosMessageType } from './CosmosMessage';
|
|
6
6
|
export declare class CosmosSendMessage implements CosmosMessage {
|
|
7
7
|
readonly fromAddress: string;
|
|
@@ -14,6 +14,6 @@ export declare class CosmosSendMessage implements CosmosMessage {
|
|
|
14
14
|
toJSON(): CosmosMessageJSON;
|
|
15
15
|
static fromJSON(json: CosmosMessageJSON): CosmosSendMessage;
|
|
16
16
|
toRPCBody(): any;
|
|
17
|
-
toAirGapTransaction(
|
|
17
|
+
toAirGapTransaction(identifier: ProtocolSymbols, network: CosmosProtocolNetwork, fee: string): IAirGapTransaction;
|
|
18
18
|
static fromRPCBody(json: any): CosmosSendMessage;
|
|
19
19
|
}
|
|
@@ -56,7 +56,7 @@ var CosmosSendMessage = /** @class */ (function () {
|
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
-
CosmosSendMessage.prototype.toAirGapTransaction = function (
|
|
59
|
+
CosmosSendMessage.prototype.toAirGapTransaction = function (identifier, network, fee) {
|
|
60
60
|
return {
|
|
61
61
|
amount: this.amount
|
|
62
62
|
.map(function (value) { return new bignumber_1.default(value.amount); })
|
|
@@ -66,8 +66,8 @@ var CosmosSendMessage = /** @class */ (function () {
|
|
|
66
66
|
from: [this.fromAddress],
|
|
67
67
|
isInbound: false,
|
|
68
68
|
fee: fee,
|
|
69
|
-
protocolIdentifier:
|
|
70
|
-
network:
|
|
69
|
+
protocolIdentifier: identifier,
|
|
70
|
+
network: network,
|
|
71
71
|
transactionDetails: this.toRPCBody(),
|
|
72
72
|
extra: {
|
|
73
73
|
type: IAirGapTransaction_1.AirGapTransactionType.SPEND
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CosmosSendMessage.js","sourceRoot":"","sources":["../../../../src/protocols/cosmos/cosmos-message/CosmosSendMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"CosmosSendMessage.js","sourceRoot":"","sources":["../../../../src/protocols/cosmos/cosmos-message/CosmosSendMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,qGAA8E;AAE9E,6EAAkG;AAClG,4CAA0D;AAE1D,iDAAqF;AAErF;IAOE,2BAAY,WAAmB,EAAE,SAAiB,EAAE,MAAoB;QAFxD,SAAI,GAAsB,iCAAiB,CAAC,IAAI,CAAA;QAG9D,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAC9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EAA7B,CAA6B,CAAC,CAChE,CAAA;IACH,CAAC;IACH,wBAAC;AAAD,CAAC,AAtFD,IAsFC;AAtFY,8CAAiB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EncodeObject } from '../../../dependencies/src/cosmjs';
|
|
2
2
|
import { IAirGapTransaction } from '../../../interfaces/IAirGapTransaction';
|
|
3
|
-
import {
|
|
3
|
+
import { ProtocolSymbols } from '../../../utils/ProtocolSymbols';
|
|
4
|
+
import { CosmosProtocolNetwork } from '../CosmosProtocolOptions';
|
|
4
5
|
import { CosmosMessage, CosmosMessageJSON, CosmosMessageType } from './CosmosMessage';
|
|
5
6
|
export declare class CosmosWithdrawDelegationRewardMessage implements CosmosMessage {
|
|
6
7
|
readonly delegatorAddress: string;
|
|
@@ -9,7 +10,7 @@ export declare class CosmosWithdrawDelegationRewardMessage implements CosmosMess
|
|
|
9
10
|
constructor(delegatorAddress: string, validatorAddress: string);
|
|
10
11
|
toEncodeObject(): EncodeObject;
|
|
11
12
|
static fromEncodeObject(encodeObject: EncodeObject): CosmosWithdrawDelegationRewardMessage;
|
|
12
|
-
toAirGapTransaction(
|
|
13
|
+
toAirGapTransaction(identifier: ProtocolSymbols, network: CosmosProtocolNetwork, fee: string): IAirGapTransaction;
|
|
13
14
|
toJSON(): CosmosMessageJSON;
|
|
14
15
|
static fromJSON(json: CosmosMessageJSON): CosmosWithdrawDelegationRewardMessage;
|
|
15
16
|
toRPCBody(): {
|
|
@@ -20,15 +20,15 @@ var CosmosWithdrawDelegationRewardMessage = /** @class */ (function () {
|
|
|
20
20
|
CosmosWithdrawDelegationRewardMessage.fromEncodeObject = function (encodeObject) {
|
|
21
21
|
return new CosmosWithdrawDelegationRewardMessage(encodeObject.value.delegatorAddress, encodeObject.value.validatorAddress);
|
|
22
22
|
};
|
|
23
|
-
CosmosWithdrawDelegationRewardMessage.prototype.toAirGapTransaction = function (
|
|
23
|
+
CosmosWithdrawDelegationRewardMessage.prototype.toAirGapTransaction = function (identifier, network, fee) {
|
|
24
24
|
return {
|
|
25
25
|
from: [this.delegatorAddress],
|
|
26
26
|
to: [this.validatorAddress],
|
|
27
27
|
amount: '0',
|
|
28
28
|
isInbound: false,
|
|
29
29
|
fee: fee,
|
|
30
|
-
protocolIdentifier:
|
|
31
|
-
network:
|
|
30
|
+
protocolIdentifier: identifier,
|
|
31
|
+
network: network,
|
|
32
32
|
transactionDetails: this.toRPCBody()
|
|
33
33
|
};
|
|
34
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CosmosWithdrawDelegationRewardMessage.js","sourceRoot":"","sources":["../../../../src/protocols/cosmos/cosmos-message/CosmosWithdrawDelegationRewardMessage.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CosmosWithdrawDelegationRewardMessage.js","sourceRoot":"","sources":["../../../../src/protocols/cosmos/cosmos-message/CosmosWithdrawDelegationRewardMessage.ts"],"names":[],"mappings":";;;AAKA,iDAAqF;AAErF;IAKE,+CAAY,gBAAwB,EAAE,gBAAwB;QAF9C,SAAI,GAAsB,iCAAiB,CAAC,wBAAwB,CAAA;QAGlF,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;QACxC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;IAC1C,CAAC;IAEM,8DAAc,GAArB;QACE,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK;YACxB,KAAK,EAAE;gBACL,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;gBACvC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;aACxC;SACF,CAAA;IACH,CAAC;IAEa,sDAAgB,GAA9B,UAA+B,YAA0B;QACvD,OAAO,IAAI,qCAAqC,CAAC,YAAY,CAAC,KAAK,CAAC,gBAAgB,EAAE,YAAY,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAA;IAC5H,CAAC;IAEM,mEAAmB,GAA1B,UAA2B,UAA2B,EAAE,OAA8B,EA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oinSubProtocol';
|
|
11
11
|
import { EthereumInfoClient } from './clients/info-clients/InfoClient';
|
|
12
12
|
import { EthereumNodeClient } from './clients/node-clients/NodeClient';
|
|
13
|
-
import { EthereumAddress } from './EthereumAddress';
|
|
14
13
|
import { EthereumCryptoClient } from './EthereumCryptoClient';
|
|
15
14
|
import { EthereumProtocolOptions } from './EthereumProtocolOptions';
|
|
16
|
-
import { EthereumTransactionCursor, EthereumTransactionResult } from './EthereumTypes';
|
|
15
|
+
import { EthereumAddressCursor, EthereumAddressResult, EthereumTransactionCursor, EthereumTransactionResult } from './EthereumTypes';
|
|
17
16
|
export declare abstract class BaseEthereumProtocol<NodeClient extends EthereumNodeClient, InfoClient extends EthereumInfoClient> implements ICoinProtocol {
|
|
18
|
-
readonly
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
protected readonly _options: EthereumProtocolOptions;
|
|
18
|
+
protected _symbol: string;
|
|
19
|
+
symbol: Promise<string>;
|
|
20
|
+
protected _name: string;
|
|
21
|
+
name: Promise<string>;
|
|
22
|
+
protected _marketSymbol: string;
|
|
23
|
+
marketSymbol: Promise<string>;
|
|
24
|
+
protected _feeSymbol: string;
|
|
25
|
+
feeSymbol: Promise<string>;
|
|
26
|
+
protected _feeDefaults: FeeDefaults;
|
|
27
|
+
feeDefaults: Promise<FeeDefaults>;
|
|
28
|
+
protected _decimals: number;
|
|
29
|
+
decimals: Promise<number>;
|
|
30
|
+
protected _feeDecimals: number;
|
|
31
|
+
feeDecimals: Promise<number>;
|
|
32
|
+
protected _identifier: ProtocolSymbols;
|
|
33
|
+
identifier: Promise<ProtocolSymbols>;
|
|
27
34
|
protected readonly MAX_GAS_ESTIMATE: string;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
protected _units: CurrencyUnit[];
|
|
36
|
+
units: Promise<CurrencyUnit[]>;
|
|
37
|
+
protected _supportsHD: boolean;
|
|
38
|
+
supportsHD: Promise<boolean>;
|
|
39
|
+
protected _standardDerivationPath: string;
|
|
40
|
+
standardDerivationPath: Promise<string>;
|
|
41
|
+
protected _addressIsCaseSensitive: boolean;
|
|
42
|
+
addressIsCaseSensitive: Promise<boolean>;
|
|
43
|
+
protected _addressValidationPattern: string;
|
|
44
|
+
addressValidationPattern: Promise<string>;
|
|
45
|
+
protected _addressPlaceholder: string;
|
|
46
|
+
addressPlaceholder: Promise<string>;
|
|
34
47
|
network: Network;
|
|
35
48
|
readonly cryptoClient: EthereumCryptoClient;
|
|
36
|
-
|
|
37
|
-
constructor(
|
|
49
|
+
readonly options: Promise<EthereumProtocolOptions>;
|
|
50
|
+
constructor(_options?: EthereumProtocolOptions);
|
|
38
51
|
getBlockExplorerLinkForAddress(address: string): Promise<string>;
|
|
39
52
|
getBlockExplorerLinkForTxId(txId: string): Promise<string>;
|
|
40
53
|
getPublicKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
41
|
-
getPrivateKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<
|
|
54
|
+
getPrivateKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
42
55
|
getExtendedPrivateKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
43
56
|
getExtendedPublicKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
44
57
|
getPublicKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
45
58
|
getExtendedPublicKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
46
|
-
getPrivateKeyFromHexSecret(secret: string, derivationPath: string): Promise<
|
|
59
|
+
getPrivateKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
47
60
|
getExtendedPrivateKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
48
|
-
getAddressFromPublicKey(publicKey: string | Buffer): Promise<
|
|
49
|
-
getAddressesFromPublicKey(publicKey: string | Buffer): Promise<
|
|
61
|
+
getAddressFromPublicKey(publicKey: string | Buffer, cursor?: EthereumAddressCursor): Promise<EthereumAddressResult>;
|
|
62
|
+
getAddressesFromPublicKey(publicKey: string | Buffer, cursor?: EthereumAddressCursor): Promise<EthereumAddressResult[]>;
|
|
50
63
|
private getPublicKeyFromExtendedPublicKey;
|
|
51
|
-
getAddressFromExtendedPublicKey(extendedPublicKey: string, visibilityDerivationIndex: number, addressDerivationIndex: number): Promise<
|
|
52
|
-
getAddressesFromExtendedPublicKey(extendedPublicKey: string, visibilityDerivationIndex: number, addressCount: number, offset: number): Promise<
|
|
53
|
-
getNextAddressFromPublicKey(publicKey: string, current: EthereumAddress): Promise<EthereumAddress>;
|
|
64
|
+
getAddressFromExtendedPublicKey(extendedPublicKey: string, visibilityDerivationIndex: number, addressDerivationIndex: number): Promise<EthereumAddressResult>;
|
|
65
|
+
getAddressesFromExtendedPublicKey(extendedPublicKey: string, visibilityDerivationIndex: number, addressCount: number, offset: number): Promise<EthereumAddressResult[]>;
|
|
54
66
|
private getPrivateKeyFromExtendedPrivateKey;
|
|
55
67
|
signWithExtendedPrivateKey(extendedPrivateKey: string, untypedTransaction: RawTypedEthereumTransaction | RawEthereumTransaction, childDerivationPath?: string): Promise<IAirGapSignedTransaction>;
|
|
56
|
-
signWithPrivateKey(privateKey:
|
|
68
|
+
signWithPrivateKey(privateKey: string, transaction: RawEthereumTransaction): Promise<IAirGapSignedTransaction>;
|
|
57
69
|
getTransactionDetails(unsignedTx: UnsignedTransaction): Promise<IAirGapTransaction[]>;
|
|
58
70
|
getTransactionDetailsFromSigned(transaction: SignedEthereumTransaction): Promise<IAirGapTransaction[]>;
|
|
59
71
|
getBalanceOfPublicKey(publicKey: string): Promise<string>;
|
|
@@ -72,15 +84,15 @@ export declare abstract class BaseEthereumProtocol<NodeClient extends EthereumNo
|
|
|
72
84
|
getTransactionsFromPublicKey(publicKey: string, limit?: number, cursor?: EthereumTransactionCursor): Promise<EthereumTransactionResult>;
|
|
73
85
|
getTransactionsFromAddresses(addresses: string[], limit: number, cursor?: EthereumTransactionCursor): Promise<EthereumTransactionResult>;
|
|
74
86
|
signMessage(message: string, keypair: {
|
|
75
|
-
privateKey:
|
|
87
|
+
privateKey: string;
|
|
76
88
|
}): Promise<string>;
|
|
77
89
|
verifyMessage(message: string, signature: string, publicKey: string): Promise<boolean>;
|
|
78
90
|
encryptAsymmetric(message: string, publicKey: string): Promise<string>;
|
|
79
91
|
decryptAsymmetric(message: string, keypair: {
|
|
80
92
|
publicKey: string;
|
|
81
|
-
privateKey:
|
|
93
|
+
privateKey: string;
|
|
82
94
|
}): Promise<string>;
|
|
83
|
-
encryptAES(message: string, privateKey:
|
|
84
|
-
decryptAES(message: string, privateKey:
|
|
95
|
+
encryptAES(message: string, privateKey: string): Promise<string>;
|
|
96
|
+
decryptAES(message: string, privateKey: string): Promise<string>;
|
|
85
97
|
getTransactionStatuses(transactionHashes: string[]): Promise<AirGapTransactionStatus[]>;
|
|
86
98
|
}
|