@airgap/module-kit 0.13.16-beta.13 → 0.13.16-beta.15
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/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { AESExtension } from './protocol/extensions/crypto/AESExtension';
|
|
|
15
15
|
import { AsymmetricEncryptionExtension } from './protocol/extensions/crypto/AsymmetricEncryptionExtension';
|
|
16
16
|
import { CryptoExtension } from './protocol/extensions/crypto/CryptoExtension';
|
|
17
17
|
import { SignMessageExtension } from './protocol/extensions/crypto/SignMessageExtension';
|
|
18
|
-
import { WalletConnectExtension, WalletConnectProtocol, WalletConnectRequest
|
|
18
|
+
import { WalletConnectExtension, WalletConnectProtocol, WalletConnectRequest } from './protocol/extensions/dapp/WalletConnectProtocol';
|
|
19
19
|
import { BaseMultiTokenSubProtocol, MultiTokenBalanceConfiguration, MultiTokenSubProtocolExtension, OnlineMultiTokenSubProtocol } from './protocol/extensions/sub-protocol/MultiTokenSubProtocolExtension';
|
|
20
20
|
import { SingleTokenSubProtocol, SingleTokenSubProtocolExtension } from './protocol/extensions/sub-protocol/SingleTokenSubProtocolExtension';
|
|
21
21
|
import { SubProtocol, SubProtocolExtension } from './protocol/extensions/sub-protocol/SubProtocolExtension';
|
|
@@ -52,7 +52,7 @@ export { newSuccessUIAlert, newInfoUIAlert, newWarningUIAlert, newErrorUIAlert,
|
|
|
52
52
|
export { AirGapModule, ModuleNetworkRegistry, ProtocolConfiguration, OfflineProtocolConfiguration, OnlineProtocolConfiguration, FullProtocolConfiguration, AirGapSerializedOfflineProtocol, AirGapSerializedOnlineProtocol, AirGapSerializedAnyProtocol };
|
|
53
53
|
export { ProtocolSerializerExtension, ProtocolSerializerModule };
|
|
54
54
|
export { AirGapOfflineProtocol, AirGapOnlineProtocol, AirGapProtocol, AirGapAnyProtocol, ProtocolMetadata, ProtocolUnitsMetadata, ProtocolSymbol, ProtocolFeeMetadata, ProtocolAccountMetadata, ProtocolTransactionMetadata, ProtocolNetworkType, ProtocolNetwork, SubProtocolType };
|
|
55
|
-
export { FetchDataForMultipleAddressesExtension, FetchDataForMultipleAddressesProtocol, MultiAddressPublicKeyExtension, MultiAddressPublicKeyProtocol, Bip32Extension, OfflineBip32Protocol, OnlineBip32Protocol, SubProtocolExtension, SubProtocol, SingleTokenSubProtocolExtension, SingleTokenSubProtocol, MultiTokenSubProtocolExtension, BaseMultiTokenSubProtocol, OnlineMultiTokenSubProtocol, CryptoExtension, AESExtension, AsymmetricEncryptionExtension, SignMessageExtension, TransactionStatusCheckerExtension, WalletConnectRequest,
|
|
55
|
+
export { FetchDataForMultipleAddressesExtension, FetchDataForMultipleAddressesProtocol, MultiAddressPublicKeyExtension, MultiAddressPublicKeyProtocol, Bip32Extension, OfflineBip32Protocol, OnlineBip32Protocol, SubProtocolExtension, SubProtocol, SingleTokenSubProtocolExtension, SingleTokenSubProtocol, MultiTokenSubProtocolExtension, BaseMultiTokenSubProtocol, OnlineMultiTokenSubProtocol, CryptoExtension, AESExtension, AsymmetricEncryptionExtension, SignMessageExtension, TransactionStatusCheckerExtension, WalletConnectRequest, WalletConnectExtension, WalletConnectProtocol };
|
|
56
56
|
export { AirGapV3SerializerCompanion, V3SchemaConfiguration };
|
|
57
57
|
export { AirGapInterface };
|
|
58
58
|
export { AirGapUIAction, AirGapUIAlert, AirGapUIText, Address, AddressCursor, AddressWithCursor, Amount, Balance, MultiTokenBalanceConfiguration, BytesStringFormat, BytesString, HexString, CryptoAlgorithm, CryptoSecretType, Ed25519CryptoConfiguration, Sr25519CryptoConfiguration, Secp256K1CryptoConfiguration, SaplingCryptoConfiguration, CryptoConfiguration, CryptoDerivative, FeeDefaults, FeeEstimation, KeyType, SecretKey, ExtendedSecretKey, PublicKey, ExtendedPublicKey, KeyPair, ExtendedKeyPair, Signature, TransactionType, UnsignedTransaction, SignedTransaction, AirGapTransaction, TransactionCursor, AirGapTransactionsWithCursor, TransactionDetails, TransactionSimpleConfiguration, TransactionFullConfiguration, AirGapTransactionStatus, RecursivePartial };
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAEA,6CAA8C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAEA,6CAA8C;AAgJ5C,0FAhJO,kBAAS,OAgJP;AA/IX,uCAAwG;AAmJtG,qGAnJO,0BAAoB,OAmJP;AAFpB,qGAjJ6B,0BAAoB,OAiJ7B;AACpB,6FAlJmD,kBAAY,OAkJnD;AAFZ,6FAhJiE,kBAAY,OAgJjE;AA/Id,mDAAoD;AAmJlD,6FAnJO,wBAAY,OAmJP;AAlJd,uDAAsF;AAoJpF,qGApJO,kCAAoB,OAoJP;AADpB,uGAnJ6B,oCAAsB,OAmJ7B;AAlJxB,8CAA4G;AA0I1G,gGA1IO,uBAAe,OA0IP;AAFf,+FAxIwB,sBAAc,OAwIxB;AADd,kGAvIwC,yBAAiB,OAuIxC;AAEjB,kGAzI2D,yBAAiB,OAyI3D;AAxInB,4CAAoD;AA0IlD,+FA1IO,qBAAc,OA0IP;AAjIhB,4EAAwE;AAgJtE,sGAhJO,+CAAqB,OAgJP;AAzEvB,yCAAyC;AA6LvC,yFA7LO,iBAAQ,OA6LP;AA5LV,+CAA+D;AA8L7D,oGA9LO,+BAAmB,OA8LP;AA7LrB,mCAA0G;AA8LxG,yFA9LO,cAAQ,OA8LP;AAIR,oGAlMiB,yBAAmB,OAkMjB;AAFnB,oGAhMsC,yBAAmB,OAgMtC;AACnB,4FAjM2D,iBAAW,OAiM3D;AAFX,4FA/LwE,iBAAW,OA+LxE;AA9Lb,yCAA0G;AAmMxG,sGAnMO,8BAAqB,OAmMP;AADrB,yGAlM8B,iCAAwB,OAkM9B;AA0BxB,yGA5NwD,iCAAwB,OA4NxD;AA3N1B,+CAAwD;AAqNtD,qGArNO,gCAA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json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ExtendedPublicKey, PublicKey } from '../../../types/key';
|
|
2
|
+
import { UnsignedTransaction } from '../../../types/transaction';
|
|
2
3
|
import { _OnlineProtocol } from '../../protocol';
|
|
3
|
-
export declare type WalletConnectExtension<T extends _OnlineProtocol> = T extends _OnlineProtocol<any, any, any, any, any, any, any,
|
|
4
|
+
export declare type WalletConnectExtension<T extends _OnlineProtocol> = T extends _OnlineProtocol<any, any, any, any, any, any, any, infer _UnsignedTransaction, any, infer _PublicKey> ? WalletConnectProtocol<_UnsignedTransaction, _PublicKey> : never;
|
|
4
5
|
export interface WalletConnectRequest {
|
|
5
6
|
from?: string;
|
|
6
7
|
to?: string;
|
|
@@ -10,16 +11,7 @@ export interface WalletConnectRequest {
|
|
|
10
11
|
value?: string;
|
|
11
12
|
nonce?: string;
|
|
12
13
|
}
|
|
13
|
-
export interface
|
|
14
|
-
to: string;
|
|
15
|
-
data?: string;
|
|
16
|
-
gasLimit: string;
|
|
17
|
-
gasPrice: string;
|
|
18
|
-
value: string;
|
|
19
|
-
nonce: string;
|
|
20
|
-
chainId: number;
|
|
21
|
-
}
|
|
22
|
-
export interface WalletConnectProtocol<_PublicKey extends PublicKey | ExtendedPublicKey = PublicKey | ExtendedPublicKey> {
|
|
14
|
+
export interface WalletConnectProtocol<_UnsignedTransaction extends UnsignedTransaction = UnsignedTransaction, _PublicKey extends PublicKey | ExtendedPublicKey = PublicKey | ExtendedPublicKey> {
|
|
23
15
|
getWalletConnectChainId(): Promise<number>;
|
|
24
|
-
prepareWalletConnectTransactionWithPublicKey(publicKey: _PublicKey, request: WalletConnectRequest): Promise<
|
|
16
|
+
prepareWalletConnectTransactionWithPublicKey(publicKey: _PublicKey, request: WalletConnectRequest): Promise<_UnsignedTransaction>;
|
|
25
17
|
}
|