@airgap/coinlib-core 0.13.7-beta.0 → 0.13.7-beta.10
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/airgap-coinlib-core.min.js +834 -737
- package/index.d.ts +3 -1
- package/index.js +10 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/protocols/ICoinBaseProtocol.d.ts +49 -0
- package/protocols/ICoinBaseProtocol.js +3 -0
- package/protocols/ICoinBaseProtocol.js.map +1 -0
- package/protocols/ICoinOfflineProtocol.d.ts +23 -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/ethereum/EthereumZkSyncProtocol.d.ts +12 -0
- package/protocols/ethereum/EthereumZkSyncProtocol.js +34 -0
- package/protocols/ethereum/EthereumZkSyncProtocol.js.map +1 -0
- package/protocols/ethereum/EthereumZkSyncProtocolOptions.d.ts +6 -0
- package/protocols/ethereum/EthereumZkSyncProtocolOptions.js +36 -0
- package/protocols/ethereum/EthereumZkSyncProtocolOptions.js.map +1 -0
- package/protocols/ethereum/clients/node-clients/AirGapNodeClient.js +8 -1
- package/protocols/ethereum/clients/node-clients/AirGapNodeClient.js.map +1 -1
- package/serializer-v3/serializer.js +2 -0
- package/serializer-v3/serializer.js.map +1 -1
- package/utils/ProtocolSymbols.d.ts +1 -0
- package/utils/ProtocolSymbols.js +1 -0
- package/utils/ProtocolSymbols.js.map +1 -1
- package/utils/protocolOptionsByIdentifier.js +3 -0
- package/utils/protocolOptionsByIdentifier.js.map +1 -1
package/index.d.ts
CHANGED
|
@@ -147,12 +147,14 @@ import { TezosDOGA, TezosDOGAProtocolConfig } from './protocols/tezos/fa/TezosDO
|
|
|
147
147
|
import { TezosBTCTez, TezosBTCTezProtocolConfig } from './protocols/tezos/fa/TezosBTCtez';
|
|
148
148
|
import { TezosSIRS, TezosSIRSProtocolConfig } from './protocols/tezos/fa/TezosSIRS';
|
|
149
149
|
import { TezosIndexerClient } from './protocols/tezos/indexerClient/TezosIndexerClient';
|
|
150
|
+
import { EthereumZkSyncProtocol } from './protocols/ethereum/EthereumZkSyncProtocol';
|
|
151
|
+
import { EthereumZkSyncProtocolNetwork, EthereumZkSyncProtocolOptions } from './protocols/ethereum/EthereumZkSyncProtocolOptions';
|
|
150
152
|
export { AirGapWallet, AirGapMarketWallet, AirGapCoinWallet, AirGapWalletStatus, AirGapNFTWallet, IAirGapWallet, IAirGapTransaction, ICoinProtocol, ICoinSubProtocol, ICoinDelegateProtocol, CryptoClient, ProtocolBlockExplorer, ProtocolNetwork, ProtocolSymbols, MainProtocolSymbols, SubProtocolSymbols, NetworkType, FeeDefaults };
|
|
151
153
|
export { AeternityProtocol, AeternityCryptoClient, AeternityProtocolOptions, AeternalBlockExplorer, AeternityProtocolNetwork, AeternityAddress, RawAeternityTransaction };
|
|
152
154
|
export { BitcoinProtocol, BitcoinTestnetProtocol, BitcoinCryptoClient, BitcoinProtocolNetworkExtras, BlockcypherBlockExplorer, BitcoinProtocolNetwork, BitcoinProtocolConfig, BitcoinProtocolOptions, BitcoinAddress, RawBitcoinTransaction };
|
|
153
155
|
export { BitcoinSegwitProtocol, BitcoinSegwitAddress, RawBitcoinSegwitTransaction };
|
|
154
156
|
export { CosmosProtocol, CosmosCryptoClient, MintscanBlockExplorer, CosmosProtocolNetwork, CosmosProtocolConfig, CosmosProtocolOptions, CosmosUnbondingDelegation, CosmosValidator, CosmosDelegationActionType, CosmosAddress, CosmosTransaction };
|
|
155
|
-
export { EthereumProtocol, EthereumRopstenProtocol, EthereumClassicProtocol, GenericERC20, EthereumCryptoClient, EthereumProtocolNetworkExtras, EtherscanBlockExplorer, EthereumProtocolNetwork, EthereumProtocolConfig, EthereumProtocolOptions, EthereumERC20ProtocolConfig, EthereumERC20ProtocolOptions, EthereumAddress, RawEthereumTransaction };
|
|
157
|
+
export { EthereumProtocol, EthereumRopstenProtocol, EthereumClassicProtocol, GenericERC20, EthereumCryptoClient, EthereumProtocolNetworkExtras, EtherscanBlockExplorer, EthereumProtocolNetwork, EthereumProtocolConfig, EthereumProtocolOptions, EthereumZkSyncProtocol, EthereumZkSyncProtocolOptions, EthereumZkSyncProtocolNetwork, EthereumERC20ProtocolConfig, EthereumERC20ProtocolOptions, EthereumAddress, RawEthereumTransaction };
|
|
156
158
|
export { GroestlcoinProtocol, GroestlcoinTestnetProtocol, GroestlcoinProtocolNetworkExtras, CryptoidBlockExplorer, GroestlcoinProtocolNetwork, GroestlcoinProtocolConfig, GroestlcoinProtocolOptions };
|
|
157
159
|
export { SubstrateProtocol, SubstrateDelegateProtocol, PolkadotProtocol, KusamaProtocol, MoonbeamProtocol, MoonbaseProtocol, MoonriverProtocol, AstarProtocol, ShidenProtocol, SubstrateNetwork, SubstratePayee, SubstrateCryptoClient, SubstrateProtocolNetworkExtras, SubstrateProtocolConfig, SubstrateProtocolNetwork, SubstrateProtocolOptions, SubstrateNodeClient, KusamaProtocolNetworkExtras, KusamaSubscanBlockExplorer as KusamaPolkascanBlockExplorer, KusamaProtocolConfig, KusamaProtocolNetwork, KusamaProtocolOptions, PolkadotProtocolNetworkExtras, PolkadotSubscanBlockExplorer, PolkadotProtocolConfig, PolkadotProtocolNetwork, PolkadotProtocolOptions, MoonbaseProtocolNetworkExtras, MoonbaseSubscanBlockExplorer, MoonbaseProtocolConfig, MoonbaseProtocolNetwork, MoonbaseProtocolOptions, MoonriverProtocolNetworkExtras, MoonriverSubscanBlockExplorer, MoonriverProtocolConfig, MoonriverProtocolNetwork, MoonriverProtocolOptions, SubstrateElectionStatus, SubstrateNominationStatus, SubstrateNominatorDetails, SubstrateStakingDetails, SubstrateStakingActionType, SubstrateValidatorDetails, SubstrateTransaction, SubstrateAddress, RawSubstrateTransaction };
|
|
158
160
|
export { TezosProtocol, TezosKtProtocol, TezosFAProtocol, TezosFA1Protocol, TezosFA1p2Protocol, TezosFA2Protocol, TezosBTC, TezosStaker, TezosUSD, TezosUSDT, TezosETHtz as TezosETH, TezosUUSD, TezosYOU, TezosUDEFI, TezosUBTC, TezosWrapped, TezosWRAP, TezosKolibriUSD, TezosCTez, TezosPlenty, TezosQUIPU, TezosDOGA, TezosBTCTez, TezosSIRS, TezosTransactionResult, TezosTransactionCursor, BakerInfo, DelegationRewardInfo, DelegationInfo, TezosPayoutInfo, TezosDelegatorAction, TezosCryptoClient, TezosProtocolNetworkExtras, TezosBlockExplorer, TezosProtocolNetwork, TezosProtocolConfig, TezosProtocolOptions, TezosFAProtocolConfig, TezosFA2ProtocolConfig, TezosBTCProtocolConfig, TezosETHtzProtocolConfig as TezosETHProtocolConfig, TezosUUSDProtocolConfig, TezosYOUProtocolConfig, TezosWrappedProtocolConfig, TezosKolibriUSDProtocolConfig, TezosStakerProtocolConfig, TezosUSDProtocolConfig, TezosUSDTProtocolConfig, TezosCTezProtocolConfig, TezosPlentyProtocolConfig, TezosUDEFIProtocolConfig, TezosUBTCProtocolConfig, TezosWRAPProtocolConfig, TezosQUIPUProtocolConfig, TezosDOGAProtocolConfig, TezosSIRSProtocolConfig, TezosBTCTezProtocolConfig, TezosFAProtocolOptions, TezosFA2ProtocolOptions, TezosNetwork, TezosSaplingProtocol, TezosShieldedTezProtocol, TezosSaplingProtocolOptions, TezosSaplingProtocolConfig, TezosShieldedTezProtocolConfig, TezosSaplingExternalMethodProvider, TezosSaplingTransaction, TezosUtils, TezosWrappedOperation, TezosAddress, RawTezosTransaction, TezosDomains, TezosIndexerClient };
|
package/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
3
|
+
exports.EthereumZkSyncProtocolNetwork = exports.EthereumZkSyncProtocolOptions = exports.EthereumZkSyncProtocol = exports.EthereumProtocolOptions = exports.EthereumProtocolConfig = exports.EthereumProtocolNetwork = exports.EtherscanBlockExplorer = exports.EthereumProtocolNetworkExtras = exports.EthereumCryptoClient = exports.GenericERC20 = exports.EthereumClassicProtocol = exports.EthereumRopstenProtocol = exports.EthereumProtocol = exports.CosmosTransaction = exports.CosmosAddress = exports.CosmosDelegationActionType = exports.CosmosProtocolOptions = exports.CosmosProtocolConfig = exports.CosmosProtocolNetwork = exports.MintscanBlockExplorer = exports.CosmosCryptoClient = exports.CosmosProtocol = exports.BitcoinSegwitAddress = exports.BitcoinSegwitProtocol = exports.BitcoinAddress = exports.BitcoinProtocolOptions = exports.BitcoinProtocolConfig = exports.BitcoinProtocolNetwork = exports.BlockcypherBlockExplorer = exports.BitcoinProtocolNetworkExtras = exports.BitcoinCryptoClient = exports.BitcoinTestnetProtocol = exports.BitcoinProtocol = exports.AeternityAddress = exports.AeternityProtocolNetwork = exports.AeternalBlockExplorer = exports.AeternityProtocolOptions = exports.AeternityCryptoClient = exports.AeternityProtocol = exports.NetworkType = exports.SubProtocolSymbols = exports.MainProtocolSymbols = exports.ProtocolNetwork = exports.ProtocolBlockExplorer = exports.CryptoClient = exports.AirGapNFTWallet = exports.AirGapWalletStatus = exports.AirGapCoinWallet = exports.AirGapMarketWallet = exports.AirGapWallet = void 0;
|
|
4
|
+
exports.SubstrateStakingActionType = exports.SubstrateNominationStatus = exports.SubstrateElectionStatus = exports.MoonriverProtocolOptions = exports.MoonriverProtocolNetwork = exports.MoonriverProtocolConfig = exports.MoonriverSubscanBlockExplorer = exports.MoonriverProtocolNetworkExtras = exports.MoonbaseProtocolOptions = exports.MoonbaseProtocolNetwork = exports.MoonbaseProtocolConfig = exports.MoonbaseSubscanBlockExplorer = exports.MoonbaseProtocolNetworkExtras = exports.PolkadotProtocolOptions = exports.PolkadotProtocolNetwork = exports.PolkadotProtocolConfig = exports.PolkadotSubscanBlockExplorer = exports.PolkadotProtocolNetworkExtras = exports.KusamaProtocolOptions = exports.KusamaProtocolNetwork = exports.KusamaProtocolConfig = exports.KusamaPolkascanBlockExplorer = exports.KusamaProtocolNetworkExtras = exports.SubstrateNodeClient = exports.SubstrateProtocolOptions = exports.SubstrateProtocolNetwork = exports.SubstrateProtocolConfig = exports.SubstrateProtocolNetworkExtras = exports.SubstrateCryptoClient = exports.SubstratePayee = exports.SubstrateNetwork = exports.ShidenProtocol = exports.AstarProtocol = exports.MoonriverProtocol = exports.MoonbaseProtocol = exports.MoonbeamProtocol = exports.KusamaProtocol = exports.PolkadotProtocol = exports.SubstrateDelegateProtocol = exports.SubstrateProtocol = exports.GroestlcoinProtocolOptions = exports.GroestlcoinProtocolConfig = exports.GroestlcoinProtocolNetwork = exports.CryptoidBlockExplorer = exports.GroestlcoinProtocolNetworkExtras = exports.GroestlcoinTestnetProtocol = exports.GroestlcoinProtocol = exports.EthereumAddress = exports.EthereumERC20ProtocolOptions = exports.EthereumERC20ProtocolConfig = void 0;
|
|
5
|
+
exports.TezosDOGAProtocolConfig = exports.TezosQUIPUProtocolConfig = exports.TezosWRAPProtocolConfig = exports.TezosUBTCProtocolConfig = exports.TezosUDEFIProtocolConfig = exports.TezosPlentyProtocolConfig = exports.TezosCTezProtocolConfig = exports.TezosUSDTProtocolConfig = exports.TezosUSDProtocolConfig = exports.TezosStakerProtocolConfig = exports.TezosKolibriUSDProtocolConfig = exports.TezosWrappedProtocolConfig = exports.TezosYOUProtocolConfig = exports.TezosUUSDProtocolConfig = exports.TezosETHProtocolConfig = exports.TezosBTCProtocolConfig = exports.TezosFA2ProtocolConfig = exports.TezosFAProtocolConfig = exports.TezosProtocolOptions = exports.TezosProtocolConfig = exports.TezosProtocolNetwork = exports.TezosBlockExplorer = exports.TezosCryptoClient = exports.TezosDelegatorAction = exports.TezosSIRS = exports.TezosBTCTez = exports.TezosDOGA = exports.TezosQUIPU = exports.TezosPlenty = exports.TezosCTez = exports.TezosKolibriUSD = exports.TezosWRAP = exports.TezosWrapped = exports.TezosUBTC = exports.TezosUDEFI = exports.TezosYOU = exports.TezosUUSD = exports.TezosETH = exports.TezosUSDT = exports.TezosUSD = exports.TezosStaker = exports.TezosBTC = exports.TezosFA2Protocol = exports.TezosFA1p2Protocol = exports.TezosFA1Protocol = exports.TezosFAProtocol = exports.TezosKtProtocol = exports.TezosProtocol = exports.SubstrateAddress = exports.SubstrateTransaction = void 0;
|
|
6
|
+
exports.assertNever = exports.SubProtocolType = exports.TimeInterval = exports.generateIdV2 = exports.generateId = exports.addSubProtocol = exports.isCoinlibReady = exports.Domain = exports.TransactionError = exports.BalanceError = exports.ProtocolErrorType = exports.SerializerErrorType = exports.CoinlibError = exports.NetworkError = exports.ProtocolNotSupported = exports.SerializerVersionMismatch = exports.TypeNotSupported = exports.isSubProtocolSymbol = exports.isMainProtocolSymbol = exports.isProtocolSymbol = exports.supportedProtocols = exports.getSubProtocolsByIdentifier = exports.getProtocolByIdentifier = exports.createProtocolByIdentifier = exports.addSupportedProtocol = exports.getProtocolOptionsByIdentifier = exports.isNetworkEqual = exports.ImportAccountAction = exports.SimpleAction = exports.LinkedAction = exports.RepeatableAction = exports.Action = exports.Message = exports.SerializerV3 = exports.Serializer = exports.IACMessageType = exports.TezosIndexerClient = exports.TezosDomains = exports.TezosAddress = exports.TezosUtils = exports.TezosShieldedTezProtocolConfig = exports.TezosSaplingProtocolConfig = exports.TezosSaplingProtocolOptions = exports.TezosShieldedTezProtocol = exports.TezosSaplingProtocol = exports.TezosNetwork = exports.TezosFA2ProtocolOptions = exports.TezosFAProtocolOptions = exports.TezosBTCTezProtocolConfig = exports.TezosSIRSProtocolConfig = void 0;
|
|
7
|
+
exports.bufferFrom = void 0;
|
|
7
8
|
// tslint:disable:ordered-imports
|
|
8
9
|
// This needs to be imported first, otherwise the tests won't run anymore
|
|
9
10
|
var EthereumProtocol_1 = require("./protocols/ethereum/EthereumProtocol");
|
|
@@ -318,4 +319,9 @@ Object.defineProperty(exports, "TezosSIRS", { enumerable: true, get: function ()
|
|
|
318
319
|
Object.defineProperty(exports, "TezosSIRSProtocolConfig", { enumerable: true, get: function () { return TezosSIRS_1.TezosSIRSProtocolConfig; } });
|
|
319
320
|
var TezosIndexerClient_1 = require("./protocols/tezos/indexerClient/TezosIndexerClient");
|
|
320
321
|
Object.defineProperty(exports, "TezosIndexerClient", { enumerable: true, get: function () { return TezosIndexerClient_1.TezosIndexerClient; } });
|
|
322
|
+
var EthereumZkSyncProtocol_1 = require("./protocols/ethereum/EthereumZkSyncProtocol");
|
|
323
|
+
Object.defineProperty(exports, "EthereumZkSyncProtocol", { enumerable: true, get: function () { return EthereumZkSyncProtocol_1.EthereumZkSyncProtocol; } });
|
|
324
|
+
var EthereumZkSyncProtocolOptions_1 = require("./protocols/ethereum/EthereumZkSyncProtocolOptions");
|
|
325
|
+
Object.defineProperty(exports, "EthereumZkSyncProtocolNetwork", { enumerable: true, get: function () { return EthereumZkSyncProtocolOptions_1.EthereumZkSyncProtocolNetwork; } });
|
|
326
|
+
Object.defineProperty(exports, "EthereumZkSyncProtocolOptions", { enumerable: true, get: function () { return EthereumZkSyncProtocolOptions_1.EthereumZkSyncProtocolOptions; } });
|
|
321
327
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,iCAAiC;AACjC,yEAAyE;AACzE,0EAAwE;AAkVtE,iGAlVO,mCAAgB,OAkVP;AAhVlB,mCASiB;AAmhBf,qGA3hBA,6BAAoB,OA2hBA;AADpB,0GAzhBA,kCAAyB,OAyhBA;AADzB,iGAvhBA,yBAAgB,OAuhBA;AAGhB,6FAzhBA,qBAAY,OAyhBA;AAEZ,oGA1hBA,4BAAmB,OA0hBA;AAC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xLO,uBAAU,OAwLP;AAiCV,yGAzNmB,qCAAwB,OAyNnB;AAtN1B,2EAAyE;AAsHvE,8FAtHO,6BAAa,OAsHP;AArHf,oFAAkF;AAsHhF,+FAtHO,+BAAc,OAsHP;AArHhB,4DAAmF;AA6KjF,0FA7KO,qBAAS,OA6KP;AAqCT,wGAlNkB,mCAAuB,OAkNlB;AAjNzB,4DAAmF;AAmLjF,0FAnLO,qBAAS,OAmLP;AAiCT,wGApNkB,mCAAuB,OAoNlB;AAnNzB,gEAAyF;AAmLvF,4FAnLO,yBAAW,OAmLP;AAkCX,0GArNoB,uCAAyB,OAqNpB;AApN3B,4DAAmF;AAmLjF,0FAnLO,qBAAS,OAmLP;AAgCT,wGAnNkB,mCAAuB,OAmNlB;AAlNzB,yFAAuF;AAmOrF,mGAnOO,uCAAkB,OAmOP;AAlOpB,sFAAoF;AAkFlF,uGAlFO,+CAAsB,OAkFP;AAjFxB,oGAAiI;AAmF/H,8GAnFO,6DAA6B,OAmFP;AAD7B,8GAlFsC,6DAA6B,OAkFtC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { CryptoClient, IAirGapTransaction } from '..';
|
|
2
|
+
import { ProtocolOptions } from '../utils/ProtocolOptions';
|
|
3
|
+
import { ProtocolSymbols } from '../utils/ProtocolSymbols';
|
|
4
|
+
import { SignedTransaction } from '../serializer/schemas/definitions/signed-transaction';
|
|
5
|
+
import { UnsignedTransaction } from '../serializer/schemas/definitions/unsigned-transaction';
|
|
6
|
+
import { ICoinSubProtocol } from './ICoinSubProtocol';
|
|
7
|
+
export interface FeeDefaults {
|
|
8
|
+
low: string;
|
|
9
|
+
medium: string;
|
|
10
|
+
high: string;
|
|
11
|
+
}
|
|
12
|
+
export interface CoinAddress {
|
|
13
|
+
getValue(): string;
|
|
14
|
+
}
|
|
15
|
+
export interface ICoinBaseProtocol {
|
|
16
|
+
symbol: string;
|
|
17
|
+
name: string;
|
|
18
|
+
marketSymbol: string;
|
|
19
|
+
feeSymbol: string;
|
|
20
|
+
feeDefaults: FeeDefaults;
|
|
21
|
+
decimals: number;
|
|
22
|
+
feeDecimals: number;
|
|
23
|
+
identifier: ProtocolSymbols;
|
|
24
|
+
units: {
|
|
25
|
+
unitSymbol: string;
|
|
26
|
+
factor: string;
|
|
27
|
+
}[];
|
|
28
|
+
supportsHD: boolean;
|
|
29
|
+
standardDerivationPath: string;
|
|
30
|
+
addressIsCaseSensitive: boolean;
|
|
31
|
+
addressValidationPattern: string;
|
|
32
|
+
addressPlaceholder: string;
|
|
33
|
+
subProtocols?: ICoinSubProtocol[];
|
|
34
|
+
options: ProtocolOptions;
|
|
35
|
+
cryptoClient: CryptoClient;
|
|
36
|
+
getAddressFromPublicKey(publicKey: string): Promise<CoinAddress>;
|
|
37
|
+
getAddressesFromPublicKey(publicKey: string): Promise<CoinAddress[]>;
|
|
38
|
+
getAddressFromExtendedPublicKey(extendedPublicKey: string, visibilityDerivationIndex: number, addressDerivationIndex: number): Promise<CoinAddress>;
|
|
39
|
+
getAddressesFromExtendedPublicKey(extendedPublicKey: string, visibilityDerivationIndex: number, addressCount: number, offset: number): Promise<CoinAddress[]>;
|
|
40
|
+
getNextAddressFromPublicKey(publicKey: string, current: CoinAddress): Promise<CoinAddress>;
|
|
41
|
+
getTransactionDetails(transaction: UnsignedTransaction, data?: {
|
|
42
|
+
[key: string]: unknown;
|
|
43
|
+
}): Promise<IAirGapTransaction[]>;
|
|
44
|
+
getTransactionDetailsFromSigned(transaction: SignedTransaction, data?: {
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
}): Promise<IAirGapTransaction[]>;
|
|
47
|
+
verifyMessage(message: string, signature: string, publicKey: string): Promise<boolean>;
|
|
48
|
+
encryptAsymmetric(payload: string, publicKey: string): Promise<string>;
|
|
49
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICoinBaseProtocol.js","sourceRoot":"","sources":["../../src/protocols/ICoinBaseProtocol.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { IAirGapSignedTransaction } from '../interfaces/IAirGapSignedTransaction';
|
|
3
|
+
import { ICoinBaseProtocol } from './ICoinBaseProtocol';
|
|
4
|
+
export interface ICoinOfflineProtocol extends ICoinBaseProtocol {
|
|
5
|
+
getPublicKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
6
|
+
getPrivateKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<Buffer>;
|
|
7
|
+
getExtendedPrivateKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
8
|
+
getPublicKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
9
|
+
getPrivateKeyFromHexSecret(secret: string, derivationPath: string): Promise<Buffer>;
|
|
10
|
+
signWithExtendedPrivateKey(extendedPrivateKey: string, transaction: any, childDerivationPath?: string): Promise<IAirGapSignedTransaction>;
|
|
11
|
+
signWithPrivateKey(privateKey: Buffer, transaction: any): Promise<IAirGapSignedTransaction>;
|
|
12
|
+
getExtendedPrivateKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
13
|
+
signMessage(message: string, keypair: {
|
|
14
|
+
publicKey?: string;
|
|
15
|
+
privateKey: Buffer;
|
|
16
|
+
}): Promise<string>;
|
|
17
|
+
decryptAsymmetric(encryptedPayload: string, keypair: {
|
|
18
|
+
publicKey?: string;
|
|
19
|
+
privateKey: Buffer;
|
|
20
|
+
}): Promise<string>;
|
|
21
|
+
encryptAES(payload: string, privateKey: Buffer): Promise<string>;
|
|
22
|
+
decryptAES(encryptedPayload: string, privateKey: Buffer): Promise<string>;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICoinOfflineProtocol.js","sourceRoot":"","sources":["../../src/protocols/ICoinOfflineProtocol.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { AirGapTransactionStatus, IAirGapTransactionResult } from '../interfaces/IAirGapTransaction';
|
|
2
|
+
import { IProtocolTransactionCursor } from './../interfaces/IAirGapTransaction';
|
|
3
|
+
import { FeeDefaults, ICoinBaseProtocol } from './ICoinBaseProtocol';
|
|
4
|
+
import { ICoinSubProtocol } from './ICoinSubProtocol';
|
|
5
|
+
export interface ICoinOnlineProtocol extends ICoinBaseProtocol {
|
|
6
|
+
getBlockExplorerLinkForAddress(address: string): Promise<string>;
|
|
7
|
+
getBlockExplorerLinkForTxId(txId: string): Promise<string>;
|
|
8
|
+
getTransactionsFromPublicKey(publicKey: string, limit: number, cursor?: IProtocolTransactionCursor): Promise<IAirGapTransactionResult>;
|
|
9
|
+
getTransactionsFromExtendedPublicKey(extendedPublicKey: string, limit: number, cursor?: IProtocolTransactionCursor): Promise<IAirGapTransactionResult>;
|
|
10
|
+
getTransactionsFromAddresses(addresses: string[], limit: number, cursor?: IProtocolTransactionCursor): Promise<IAirGapTransactionResult>;
|
|
11
|
+
getBalanceOfAddresses(addresses: string[], data?: {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}): Promise<string>;
|
|
14
|
+
getBalanceOfPublicKey(publicKey: string, data?: {
|
|
15
|
+
addressIndex?: number;
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
}): Promise<string>;
|
|
18
|
+
getBalanceOfExtendedPublicKey(extendedPublicKey: string, offset: number, data?: {
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
}): Promise<string>;
|
|
21
|
+
getAvailableBalanceOfAddresses(addresses: string[], data?: {
|
|
22
|
+
[key: string]: unknown;
|
|
23
|
+
}): Promise<string>;
|
|
24
|
+
getTransactionStatuses(transactionHash: string[]): Promise<AirGapTransactionStatus[]>;
|
|
25
|
+
getBalanceOfPublicKeyForSubProtocols(publicKey: string, subProtocols: ICoinSubProtocol[]): Promise<string[]>;
|
|
26
|
+
estimateMaxTransactionValueFromExtendedPublicKey(extendedPublicKey: string, recipients: string[], fee?: string, data?: {
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
}): Promise<string>;
|
|
29
|
+
estimateMaxTransactionValueFromPublicKey(publicKey: string, recipients: string[], fee?: string, data?: {
|
|
30
|
+
addressIndex?: number;
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
}): Promise<string>;
|
|
33
|
+
estimateFeeDefaultsFromExtendedPublicKey(publicKey: string, recipients: string[], values: string[], data?: {
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
}): Promise<FeeDefaults>;
|
|
36
|
+
estimateFeeDefaultsFromPublicKey(publicKey: string, recipients: string[], values: string[], data?: {
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
}): Promise<FeeDefaults>;
|
|
39
|
+
prepareTransactionFromExtendedPublicKey(extendedPublicKey: string, offset: number, recipients: string[], values: string[], fee: string, extras?: {
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
}): Promise<any>;
|
|
42
|
+
prepareTransactionFromPublicKey(publicKey: string, recipients: string[], values: string[], fee: string, extras?: {
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
}): Promise<any>;
|
|
45
|
+
broadcastTransaction(rawTransaction: any): Promise<string>;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICoinOnlineProtocol.js","sourceRoot":"","sources":["../../src/protocols/ICoinOnlineProtocol.ts"],"names":[],"mappings":""}
|
|
@@ -1,115 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { AirGapTransactionStatus, IAirGapTransaction, IAirGapTransactionResult } from '../interfaces/IAirGapTransaction';
|
|
5
|
-
import { SignedTransaction } from '../serializer/schemas/definitions/signed-transaction';
|
|
6
|
-
import { UnsignedTransaction } from '../serializer/schemas/definitions/unsigned-transaction';
|
|
7
|
-
import { ProtocolOptions } from '../utils/ProtocolOptions';
|
|
8
|
-
import { ProtocolSymbols } from '../utils/ProtocolSymbols';
|
|
9
|
-
import { IProtocolTransactionCursor } from './../interfaces/IAirGapTransaction';
|
|
10
|
-
import { ICoinSubProtocol } from './ICoinSubProtocol';
|
|
11
|
-
export interface FeeDefaults {
|
|
12
|
-
low: string;
|
|
13
|
-
medium: string;
|
|
14
|
-
high: string;
|
|
15
|
-
}
|
|
1
|
+
import { ICoinOfflineProtocol } from './ICoinOfflineProtocol';
|
|
2
|
+
import { ICoinOnlineProtocol } from './ICoinOnlineProtocol';
|
|
3
|
+
export { CoinAddress, FeeDefaults } from './ICoinBaseProtocol';
|
|
16
4
|
export interface CurrencyUnit {
|
|
17
5
|
unitSymbol: string;
|
|
18
6
|
factor: string;
|
|
19
7
|
}
|
|
20
|
-
export interface
|
|
21
|
-
getValue(): string;
|
|
22
|
-
}
|
|
23
|
-
export interface ICoinProtocol {
|
|
24
|
-
symbol: string;
|
|
25
|
-
name: string;
|
|
26
|
-
marketSymbol: string;
|
|
27
|
-
feeSymbol: string;
|
|
28
|
-
feeDefaults: FeeDefaults;
|
|
29
|
-
decimals: number;
|
|
30
|
-
feeDecimals: number;
|
|
31
|
-
identifier: ProtocolSymbols;
|
|
32
|
-
units: {
|
|
33
|
-
unitSymbol: string;
|
|
34
|
-
factor: string;
|
|
35
|
-
}[];
|
|
36
|
-
supportsHD: boolean;
|
|
37
|
-
standardDerivationPath: string;
|
|
38
|
-
addressIsCaseSensitive: boolean;
|
|
39
|
-
addressValidationPattern: string;
|
|
40
|
-
addressPlaceholder: string;
|
|
41
|
-
subProtocols?: ICoinSubProtocol[];
|
|
42
|
-
options: ProtocolOptions;
|
|
43
|
-
cryptoClient: CryptoClient;
|
|
44
|
-
getBlockExplorerLinkForAddress(address: string): Promise<string>;
|
|
45
|
-
getBlockExplorerLinkForTxId(txId: string): Promise<string>;
|
|
46
|
-
getPublicKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
47
|
-
getPrivateKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<Buffer>;
|
|
48
|
-
getExtendedPrivateKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
49
|
-
getPublicKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
50
|
-
getPrivateKeyFromHexSecret(secret: string, derivationPath: string): Promise<Buffer>;
|
|
51
|
-
getExtendedPrivateKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
52
|
-
getAddressFromPublicKey(publicKey: string): Promise<CoinAddress>;
|
|
53
|
-
getAddressesFromPublicKey(publicKey: string): Promise<CoinAddress[]>;
|
|
54
|
-
getAddressFromExtendedPublicKey(extendedPublicKey: string, visibilityDerivationIndex: number, addressDerivationIndex: number): Promise<CoinAddress>;
|
|
55
|
-
getAddressesFromExtendedPublicKey(extendedPublicKey: string, visibilityDerivationIndex: number, addressCount: number, offset: number): Promise<CoinAddress[]>;
|
|
56
|
-
getNextAddressFromPublicKey(publicKey: string, current: CoinAddress): Promise<CoinAddress>;
|
|
57
|
-
getTransactionsFromPublicKey(publicKey: string, limit: number, cursor?: IProtocolTransactionCursor): Promise<IAirGapTransactionResult>;
|
|
58
|
-
getTransactionsFromExtendedPublicKey(extendedPublicKey: string, limit: number, cursor?: IProtocolTransactionCursor): Promise<IAirGapTransactionResult>;
|
|
59
|
-
getTransactionsFromAddresses(addresses: string[], limit: number, cursor?: IProtocolTransactionCursor): Promise<IAirGapTransactionResult>;
|
|
60
|
-
signWithExtendedPrivateKey(extendedPrivateKey: string, transaction: any, childDerivationPath?: string): Promise<IAirGapSignedTransaction>;
|
|
61
|
-
signWithPrivateKey(privateKey: Buffer, transaction: any): Promise<IAirGapSignedTransaction>;
|
|
62
|
-
getTransactionDetails(transaction: UnsignedTransaction, data?: {
|
|
63
|
-
[key: string]: unknown;
|
|
64
|
-
}): Promise<IAirGapTransaction[]>;
|
|
65
|
-
getTransactionDetailsFromSigned(transaction: SignedTransaction, data?: {
|
|
66
|
-
[key: string]: unknown;
|
|
67
|
-
}): Promise<IAirGapTransaction[]>;
|
|
68
|
-
getBalanceOfAddresses(addresses: string[], data?: {
|
|
69
|
-
[key: string]: unknown;
|
|
70
|
-
}): Promise<string>;
|
|
71
|
-
getBalanceOfPublicKey(publicKey: string, data?: {
|
|
72
|
-
addressIndex?: number;
|
|
73
|
-
[key: string]: unknown;
|
|
74
|
-
}): Promise<string>;
|
|
75
|
-
getBalanceOfExtendedPublicKey(extendedPublicKey: string, offset: number, data?: {
|
|
76
|
-
[key: string]: unknown;
|
|
77
|
-
}): Promise<string>;
|
|
78
|
-
getAvailableBalanceOfAddresses(addresses: string[], data?: {
|
|
79
|
-
[key: string]: unknown;
|
|
80
|
-
}): Promise<string>;
|
|
81
|
-
getTransactionStatuses(transactionHash: string[]): Promise<AirGapTransactionStatus[]>;
|
|
82
|
-
getBalanceOfPublicKeyForSubProtocols(publicKey: string, subProtocols: ICoinSubProtocol[]): Promise<string[]>;
|
|
83
|
-
estimateMaxTransactionValueFromExtendedPublicKey(extendedPublicKey: string, recipients: string[], fee?: string, data?: {
|
|
84
|
-
[key: string]: unknown;
|
|
85
|
-
}): Promise<string>;
|
|
86
|
-
estimateMaxTransactionValueFromPublicKey(publicKey: string, recipients: string[], fee?: string, data?: {
|
|
87
|
-
addressIndex?: number;
|
|
88
|
-
[key: string]: unknown;
|
|
89
|
-
}): Promise<string>;
|
|
90
|
-
estimateFeeDefaultsFromExtendedPublicKey(publicKey: string, recipients: string[], values: string[], data?: {
|
|
91
|
-
[key: string]: unknown;
|
|
92
|
-
}): Promise<FeeDefaults>;
|
|
93
|
-
estimateFeeDefaultsFromPublicKey(publicKey: string, recipients: string[], values: string[], data?: {
|
|
94
|
-
[key: string]: unknown;
|
|
95
|
-
}): Promise<FeeDefaults>;
|
|
96
|
-
prepareTransactionFromExtendedPublicKey(extendedPublicKey: string, offset: number, recipients: string[], values: string[], fee: string, extras?: {
|
|
97
|
-
[key: string]: unknown;
|
|
98
|
-
}): Promise<any>;
|
|
99
|
-
prepareTransactionFromPublicKey(publicKey: string, recipients: string[], values: string[], fee: string, extras?: {
|
|
100
|
-
[key: string]: unknown;
|
|
101
|
-
}): Promise<any>;
|
|
102
|
-
broadcastTransaction(rawTransaction: any): Promise<string>;
|
|
103
|
-
signMessage(message: string, keypair: {
|
|
104
|
-
publicKey?: string;
|
|
105
|
-
privateKey: Buffer;
|
|
106
|
-
}): Promise<string>;
|
|
107
|
-
verifyMessage(message: string, signature: string, publicKey: string): Promise<boolean>;
|
|
108
|
-
encryptAsymmetric(payload: string, publicKey: string): Promise<string>;
|
|
109
|
-
decryptAsymmetric(encryptedPayload: string, keypair: {
|
|
110
|
-
publicKey?: string;
|
|
111
|
-
privateKey: Buffer;
|
|
112
|
-
}): Promise<string>;
|
|
113
|
-
encryptAES(payload: string, privateKey: Buffer): Promise<string>;
|
|
114
|
-
decryptAES(encryptedPayload: string, privateKey: Buffer): Promise<string>;
|
|
8
|
+
export interface ICoinProtocol extends ICoinOnlineProtocol, ICoinOfflineProtocol {
|
|
115
9
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ProtocolSymbols } from '../../utils/ProtocolSymbols';
|
|
2
|
+
import { BaseEthereumProtocol } from './BaseEthereumProtocol';
|
|
3
|
+
import { EtherscanInfoClient } from './clients/info-clients/EtherscanInfoClient';
|
|
4
|
+
import { AirGapNodeClient } from './clients/node-clients/AirGapNodeClient';
|
|
5
|
+
export declare class EthereumZkSyncProtocol extends BaseEthereumProtocol<AirGapNodeClient, EtherscanInfoClient> {
|
|
6
|
+
symbol: string;
|
|
7
|
+
name: string;
|
|
8
|
+
marketSymbol: string;
|
|
9
|
+
feeSymbol: string;
|
|
10
|
+
identifier: ProtocolSymbols;
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EthereumZkSyncProtocol = void 0;
|
|
17
|
+
var ProtocolSymbols_1 = require("../../utils/ProtocolSymbols");
|
|
18
|
+
var BaseEthereumProtocol_1 = require("./BaseEthereumProtocol");
|
|
19
|
+
var EthereumZkSyncProtocolOptions_1 = require("./EthereumZkSyncProtocolOptions");
|
|
20
|
+
var EthereumZkSyncProtocol = /** @class */ (function (_super) {
|
|
21
|
+
__extends(EthereumZkSyncProtocol, _super);
|
|
22
|
+
function EthereumZkSyncProtocol() {
|
|
23
|
+
var _this = _super.call(this, new EthereumZkSyncProtocolOptions_1.EthereumZkSyncProtocolOptions(new EthereumZkSyncProtocolOptions_1.EthereumZkSyncProtocolNetwork())) || this;
|
|
24
|
+
_this.symbol = 'zksync';
|
|
25
|
+
_this.name = 'zkSync';
|
|
26
|
+
_this.marketSymbol = 'zksync';
|
|
27
|
+
_this.feeSymbol = 'zksync';
|
|
28
|
+
_this.identifier = ProtocolSymbols_1.MainProtocolSymbols.ETH_ZKSYNC;
|
|
29
|
+
return _this;
|
|
30
|
+
}
|
|
31
|
+
return EthereumZkSyncProtocol;
|
|
32
|
+
}(BaseEthereumProtocol_1.BaseEthereumProtocol));
|
|
33
|
+
exports.EthereumZkSyncProtocol = EthereumZkSyncProtocol;
|
|
34
|
+
//# sourceMappingURL=EthereumZkSyncProtocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EthereumZkSyncProtocol.js","sourceRoot":"","sources":["../../../src/protocols/ethereum/EthereumZkSyncProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAAkF;AAClF,+DAA6D;AAG7D,iFAA8G;AAE9G;IAA4C,0CAA2D;IASrG;QAAA,YACE,kBAAM,IAAI,6DAA6B,CAAC,IAAI,6DAA6B,EAAE,CAAC,CAAC,SAC9E;QAVM,YAAM,GAAW,QAAQ,CAAA;QACzB,UAAI,GAAW,QAAQ,CAAA;QACvB,kBAAY,GAAW,QAAQ,CAAA;QAE/B,eAAS,GAAW,QAAQ,CAAA;QAE5B,gBAAU,GAAoB,qCAAmB,CAAC,UAAU,CAAA;;IAInE,CAAC;IACH,6BAAC;AAAD,CAAC,AAZD,CAA4C,2CAAoB,GAY/D;AAZY,wDAAsB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EthereumProtocolNetwork, EthereumProtocolOptions } from './EthereumProtocolOptions';
|
|
2
|
+
export declare class EthereumZkSyncProtocolOptions extends EthereumProtocolOptions {
|
|
3
|
+
}
|
|
4
|
+
export declare class EthereumZkSyncProtocolNetwork extends EthereumProtocolNetwork {
|
|
5
|
+
constructor();
|
|
6
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EthereumZkSyncProtocolNetwork = exports.EthereumZkSyncProtocolOptions = void 0;
|
|
17
|
+
var ProtocolNetwork_1 = require("../../utils/ProtocolNetwork");
|
|
18
|
+
var EthereumProtocolOptions_1 = require("./EthereumProtocolOptions");
|
|
19
|
+
// tslint:disable:max-classes-per-file
|
|
20
|
+
var EthereumZkSyncProtocolOptions = /** @class */ (function (_super) {
|
|
21
|
+
__extends(EthereumZkSyncProtocolOptions, _super);
|
|
22
|
+
function EthereumZkSyncProtocolOptions() {
|
|
23
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
+
}
|
|
25
|
+
return EthereumZkSyncProtocolOptions;
|
|
26
|
+
}(EthereumProtocolOptions_1.EthereumProtocolOptions));
|
|
27
|
+
exports.EthereumZkSyncProtocolOptions = EthereumZkSyncProtocolOptions;
|
|
28
|
+
var EthereumZkSyncProtocolNetwork = /** @class */ (function (_super) {
|
|
29
|
+
__extends(EthereumZkSyncProtocolNetwork, _super);
|
|
30
|
+
function EthereumZkSyncProtocolNetwork() {
|
|
31
|
+
return _super.call(this, 'ZkSync Mainnet', ProtocolNetwork_1.NetworkType.MAINNET, 'https://zksync2-testnet.zksync.dev', new EthereumProtocolOptions_1.EtherscanBlockExplorer('https://zkscan.io/'), new EthereumProtocolOptions_1.EthereumProtocolNetworkExtras(280, 'https://api.zksync.io/api/v0.1/')) || this;
|
|
32
|
+
}
|
|
33
|
+
return EthereumZkSyncProtocolNetwork;
|
|
34
|
+
}(EthereumProtocolOptions_1.EthereumProtocolNetwork));
|
|
35
|
+
exports.EthereumZkSyncProtocolNetwork = EthereumZkSyncProtocolNetwork;
|
|
36
|
+
//# sourceMappingURL=EthereumZkSyncProtocolOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EthereumZkSyncProtocolOptions.js","sourceRoot":"","sources":["../../../src/protocols/ethereum/EthereumZkSyncProtocolOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAAyD;AACzD,qEAKkC;AAElC,sCAAsC;AAEtC;IAAmD,iDAAuB;IAA1E;;IAA4E,CAAC;IAAD,oCAAC;AAAD,CAAC,AAA7E,CAAmD,iDAAuB,GAAG;AAAhE,sEAA6B;AAC1C;IAAmD,iDAAuB;IACxE;eACE,kBACE,gBAAgB,EAChB,6BAAW,CAAC,OAAO,EACnB,oCAAoC,EACpC,IAAI,gDAAsB,CAAC,oBAAoB,CAAC,EAChD,IAAI,uDAA6B,CAAC,GAAG,EAAE,iCAAiC,CAAC,CAC1E;IACH,CAAC;IACH,oCAAC;AAAD,CAAC,AAVD,CAAmD,iDAAuB,GAUzE;AAVY,sEAA6B"}
|
|
@@ -322,7 +322,14 @@ var AirGapNodeClient = /** @class */ (function (_super) {
|
|
|
322
322
|
var response;
|
|
323
323
|
return __generator(this, function (_a) {
|
|
324
324
|
switch (_a.label) {
|
|
325
|
-
case 0: return [4 /*yield*/, index_1.default
|
|
325
|
+
case 0: return [4 /*yield*/, index_1.default
|
|
326
|
+
.post(this.baseURL, body.toRPCBody(), {
|
|
327
|
+
headers: {
|
|
328
|
+
// Overwrite Axios's automatically set Content-Type
|
|
329
|
+
'Content-Type': 'application/json'
|
|
330
|
+
}
|
|
331
|
+
})
|
|
332
|
+
.catch(function (error) {
|
|
326
333
|
throw new errors_1.NetworkError(coinlib_error_1.Domain.TEZOS, error);
|
|
327
334
|
})];
|
|
328
335
|
case 1:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AirGapNodeClient.js","sourceRoot":"","sources":["../../../../../src/protocols/ethereum/clients/node-clients/AirGapNodeClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAkD;AAClD,0FAAmF;AACnF,uFAAqF;AACrF,6CAAoE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AAE,IAAI,CAAC,SAAS,EAAE,EAAE;4BACpC,OAAO,EAAE;gCACP,mDAAmD;gCACnD,cAAc,EAAE,kBAAkB;6BACnC;yBACF,CAAC;6BACD,KAAK,CAAC,UAAC,KAAK;4BACX,MAAM,IAAI,qBAAY,CAAC,sBAAM,CAAC,KAAK,EAAE,KAAmB,CAAC,CAAA;wBAC3D,CAAC,CAAC,EAAA;;wBATE,QAAQ,GAAG,SASb;wBAEJ,sBAAO,QAAQ,CAAC,IAAI,EAAA;;;;KACrB;IAEa,oCAAS,GAAvB,UAAwB,MAAyB;;;;;4BACjC,qBAAM,eAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,IAAI,CAAC,MAAM,EAAE,EAAb,CAAa,CAAC,CAAC,CAAC,EAAA;;wBAA3F,IAAI,GAAG,CAAC,SAAmF,CAAC,CAAC,IAAI;wBAEvG,sBAAO,IAAI,EAAA;;;;KACZ;IACH,uBAAC;AAAD,CAAC,AA5GD,CAAsC,+BAAkB,GA4GvD;AA5GY,4CAAgB"}
|
|
@@ -189,6 +189,7 @@ SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { sch
|
|
|
189
189
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionCosmos, transformer: unsignedTransactionTransformerCosmos }, ProtocolSymbols_1.MainProtocolSymbols.COSMOS);
|
|
190
190
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionEthereum }, ProtocolSymbols_1.MainProtocolSymbols.ETH);
|
|
191
191
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionEthereumTyped }, ProtocolSymbols_1.MainProtocolSymbols.ETH);
|
|
192
|
+
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionEthereumTyped }, ProtocolSymbols_1.MainProtocolSymbols.ETH_ZKSYNC);
|
|
192
193
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionEthereum }, ProtocolSymbols_1.SubProtocolSymbols.ETH_ERC20);
|
|
193
194
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezos }, ProtocolSymbols_1.MainProtocolSymbols.XTZ);
|
|
194
195
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignRequest, { schema: unsignedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED);
|
|
@@ -213,6 +214,7 @@ SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { sc
|
|
|
213
214
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionBitcoin }, ProtocolSymbols_1.MainProtocolSymbols.GRS);
|
|
214
215
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionCosmos }, ProtocolSymbols_1.MainProtocolSymbols.COSMOS);
|
|
215
216
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionEthereum }, ProtocolSymbols_1.MainProtocolSymbols.ETH);
|
|
217
|
+
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionEthereum }, ProtocolSymbols_1.MainProtocolSymbols.ETH_ZKSYNC);
|
|
216
218
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionEthereum }, ProtocolSymbols_1.SubProtocolSymbols.ETH_ERC20);
|
|
217
219
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezos }, ProtocolSymbols_1.MainProtocolSymbols.XTZ);
|
|
218
220
|
SerializerV3.addSchema(interfaces_1.IACMessageType.TransactionSignResponse, { schema: signedTransactionTezosSapling }, ProtocolSymbols_1.MainProtocolSymbols.XTZ_SHIELDED);
|