@aptos-labs/wallet-adapter-core 7.5.1 → 7.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/WalletCore.d.ts +4 -1
- package/dist/WalletCore.d.ts.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/utils/types.d.ts +1 -1
- package/dist/utils/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
- package/src/WalletCore.ts +31 -33
- package/src/registry.ts +7 -0
- package/src/utils/types.ts +3 -1
- package/src/version.ts +1 -1
package/dist/registry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAE7D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gCAAgC,EAAE,KAAK,CAAC,4BAA4B,
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAE7D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gCAAgC,EAAE,KAAK,CAAC,4BAA4B,CAsD9E,CAAC;AAEJ,eAAO,MAAM,qCAAqC,EAAE,KAAK,CAAC,4BAA4B,CAkCnF,CAAC"}
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface AptosStandardSupportedWallet {
|
|
|
10
10
|
deeplinkProvider?: string;
|
|
11
11
|
isAptosNativeWallet?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export type AvailableWallets = "Continue with Apple" | "Continue with Google" | "OKX Wallet" | "Petra" | "Nightly" | "Pontem Wallet" | "Backpack" | "MSafe" | "Bitget Wallet";
|
|
13
|
+
export type AvailableWallets = "Continue with Apple" | "Continue with Google" | "OKX Wallet" | "Petra" | "Nightly" | "Pontem Wallet" | "Backpack" | "MSafe" | "Bitget Wallet" | "Gate Wallet";
|
|
14
14
|
type InputTransactionDataInner = {
|
|
15
15
|
sender?: AccountAddressInput;
|
|
16
16
|
data: InputGenerateTransactionPayloadData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,+BAA+B,EAC/B,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,mCAAmC,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,4BAA4B;IAE3C,IAAI,EAAE,MAAM,CAAC;IAEb,GAAG,EAAE,MAAM,CAAC;IAEZ,IAAI,EAAE,cAAc,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,WAAW,MAAM,EAAE,CAAC;IAG1E,UAAU,EAAE,gBAAgB,CAAC,WAAW,CAAC;IAGzC,eAAe,EAAE,IAAI,CAAC;IAGtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAGD,MAAM,MAAM,gBAAgB,GACxB,qBAAqB,GACrB,sBAAsB,GACtB,YAAY,GACZ,OAAO,GACP,SAAS,GACT,eAAe,GACf,UAAU,GACV,OAAO,GACP,eAAe,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,+BAA+B,EAC/B,0BAA0B,EAC3B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,mCAAmC,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,4BAA4B;IAE3C,IAAI,EAAE,MAAM,CAAC;IAEb,GAAG,EAAE,MAAM,CAAC;IAEZ,IAAI,EAAE,cAAc,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,WAAW,MAAM,EAAE,CAAC;IAG1E,UAAU,EAAE,gBAAgB,CAAC,WAAW,CAAC;IAGzC,eAAe,EAAE,IAAI,CAAC;IAGtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAGD,MAAM,MAAM,gBAAgB,GACxB,qBAAqB,GACrB,sBAAsB,GACtB,YAAY,GACZ,OAAO,GACP,SAAS,GACT,eAAe,GACf,UAAU,GACV,OAAO,GACP,eAAe,GACf,aAAa,CACd;AAEH,KAAK,yBAAyB,GAAG;IAC/B,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,IAAI,EAAE,mCAAmC,CAAC;IAC1C,OAAO,CAAC,EAAE,+BAA+B,GAAG;QAC1C,wBAAwB,CAAC,EAAE,MAAM,CAAC;QAClC,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B,CAAC;IACF,qFAAqF;IACrF,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,GAC1D,0BAA0B,CAAC;AAE7B,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const WALLET_ADAPTER_CORE_VERSION = "7.
|
|
1
|
+
export declare const WALLET_ADAPTER_CORE_VERSION = "7.6.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptos-labs/wallet-adapter-core",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"description": "Aptos Wallet Adapter Core",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"tweetnacl": "^1.0.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@aptos-labs/ts-sdk": "^5.
|
|
50
|
+
"@aptos-labs/ts-sdk": "^5.1.1"
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
53
53
|
"dist",
|
package/src/WalletCore.ts
CHANGED
|
@@ -2,14 +2,9 @@ import EventEmitter from "eventemitter3";
|
|
|
2
2
|
import {
|
|
3
3
|
AccountAddress,
|
|
4
4
|
AccountAuthenticator,
|
|
5
|
-
AnyPublicKey,
|
|
6
|
-
AnyPublicKeyVariant,
|
|
7
5
|
AnyRawTransaction,
|
|
8
6
|
Aptos,
|
|
9
|
-
Ed25519PublicKey,
|
|
10
7
|
InputSubmitTransactionData,
|
|
11
|
-
MultiEd25519PublicKey,
|
|
12
|
-
MultiEd25519Signature,
|
|
13
8
|
Network,
|
|
14
9
|
NetworkToChainId,
|
|
15
10
|
PendingTransactionResponse,
|
|
@@ -115,7 +110,7 @@ export type AdapterNotDetectedWallet = Omit<
|
|
|
115
110
|
};
|
|
116
111
|
|
|
117
112
|
export interface DappConfig {
|
|
118
|
-
network: Network
|
|
113
|
+
network: Network;
|
|
119
114
|
/**
|
|
120
115
|
* If provided, the wallet adapter will submit transactions using the provided
|
|
121
116
|
* transaction submitter rather than via the wallet.
|
|
@@ -131,6 +126,9 @@ export interface DappConfig {
|
|
|
131
126
|
manifestURL: string;
|
|
132
127
|
appId?: string;
|
|
133
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated will be removed in a future version
|
|
131
|
+
*/
|
|
134
132
|
msafeWalletConfig?: {
|
|
135
133
|
appId?: string;
|
|
136
134
|
appUrl?: string;
|
|
@@ -192,7 +190,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
192
190
|
constructor(
|
|
193
191
|
optInWallets?: ReadonlyArray<AvailableWallets>,
|
|
194
192
|
dappConfig?: DappConfig,
|
|
195
|
-
disableTelemetry?: boolean
|
|
193
|
+
disableTelemetry?: boolean
|
|
196
194
|
) {
|
|
197
195
|
super();
|
|
198
196
|
this._optInWallets = optInWallets || [];
|
|
@@ -239,7 +237,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
239
237
|
* @param extensionwWallets
|
|
240
238
|
*/
|
|
241
239
|
private setExtensionAIP62Wallets(
|
|
242
|
-
extensionwWallets: readonly AptosWallet[]
|
|
240
|
+
extensionwWallets: readonly AptosWallet[]
|
|
243
241
|
): void {
|
|
244
242
|
extensionwWallets.map((wallet: AdapterWallet) => {
|
|
245
243
|
if (this.excludeWallet(wallet)) {
|
|
@@ -256,7 +254,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
256
254
|
if (isValid) {
|
|
257
255
|
// check if we already have this wallet as a not detected wallet
|
|
258
256
|
const index = this._standard_not_detected_wallets.findIndex(
|
|
259
|
-
(notDetctedWallet) => notDetctedWallet.name == wallet.name
|
|
257
|
+
(notDetctedWallet) => notDetctedWallet.name == wallet.name
|
|
260
258
|
);
|
|
261
259
|
// if we do, remove it from the not detected wallets array as it is now become detected
|
|
262
260
|
if (index !== -1) {
|
|
@@ -265,7 +263,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
265
263
|
|
|
266
264
|
// ✅ Check if wallet already exists in _standard_wallets
|
|
267
265
|
const alreadyExists = this._standard_wallets.some(
|
|
268
|
-
(w) => w.name === wallet.name
|
|
266
|
+
(w) => w.name === wallet.name
|
|
269
267
|
);
|
|
270
268
|
if (!alreadyExists) {
|
|
271
269
|
wallet.readyState = WalletReadyState.Installed;
|
|
@@ -315,7 +313,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
315
313
|
walletRegistry.map((supportedWallet: AptosStandardSupportedWallet) => {
|
|
316
314
|
// Check if we already have this wallet as a detected AIP-62 wallet standard
|
|
317
315
|
const existingStandardWallet = this._standard_wallets.find(
|
|
318
|
-
(wallet) => wallet.name == supportedWallet.name
|
|
316
|
+
(wallet) => wallet.name == supportedWallet.name
|
|
319
317
|
);
|
|
320
318
|
// If it is detected, it means the user has the wallet installed, so dont add it to the wallets array
|
|
321
319
|
if (existingStandardWallet) {
|
|
@@ -373,7 +371,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
373
371
|
* @param wallet A wallet
|
|
374
372
|
*/
|
|
375
373
|
private ensureWalletExists(
|
|
376
|
-
wallet: AdapterWallet | null
|
|
374
|
+
wallet: AdapterWallet | null
|
|
377
375
|
): asserts wallet is AdapterWallet {
|
|
378
376
|
if (!wallet) {
|
|
379
377
|
throw new WalletNotConnectedError().name;
|
|
@@ -388,7 +386,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
388
386
|
* @param account An account
|
|
389
387
|
*/
|
|
390
388
|
private ensureAccountExists(
|
|
391
|
-
account: AccountInfo | null
|
|
389
|
+
account: AccountInfo | null
|
|
392
390
|
): asserts account is AccountInfo {
|
|
393
391
|
if (!account) {
|
|
394
392
|
throw new WalletAccountError("Account is not set").name;
|
|
@@ -539,7 +537,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
539
537
|
// Check if we are in a redirectable view (i.e on mobile AND not in an in-app browser)
|
|
540
538
|
if (isRedirectable()) {
|
|
541
539
|
const selectedWallet = this._standard_not_detected_wallets.find(
|
|
542
|
-
(wallet: AdapterNotDetectedWallet) => wallet.name === walletName
|
|
540
|
+
(wallet: AdapterNotDetectedWallet) => wallet.name === walletName
|
|
543
541
|
);
|
|
544
542
|
|
|
545
543
|
if (selectedWallet) {
|
|
@@ -567,7 +565,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
567
565
|
const allDetectedWallets = this._standard_wallets;
|
|
568
566
|
|
|
569
567
|
const selectedWallet = allDetectedWallets.find(
|
|
570
|
-
(wallet: AdapterWallet) => wallet.name === walletName
|
|
568
|
+
(wallet: AdapterWallet) => wallet.name === walletName
|
|
571
569
|
);
|
|
572
570
|
|
|
573
571
|
if (!selectedWallet) return;
|
|
@@ -577,7 +575,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
577
575
|
// if the selected wallet is already connected, we don't need to connect again
|
|
578
576
|
if (this._wallet?.name === walletName)
|
|
579
577
|
throw new WalletConnectionError(
|
|
580
|
-
`${walletName} wallet is already connected
|
|
578
|
+
`${walletName} wallet is already connected`
|
|
581
579
|
).message;
|
|
582
580
|
}
|
|
583
581
|
|
|
@@ -610,7 +608,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
610
608
|
|
|
611
609
|
const allDetectedWallets = this._standard_wallets;
|
|
612
610
|
const selectedWallet = allDetectedWallets.find(
|
|
613
|
-
(wallet: AdapterWallet) => wallet.name === walletName
|
|
611
|
+
(wallet: AdapterWallet) => wallet.name === walletName
|
|
614
612
|
);
|
|
615
613
|
|
|
616
614
|
if (!selectedWallet) {
|
|
@@ -619,14 +617,14 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
619
617
|
|
|
620
618
|
if (!selectedWallet.features["aptos:signIn"]) {
|
|
621
619
|
throw new WalletNotSupportedMethod(
|
|
622
|
-
`aptos:signIn is not supported by ${walletName}
|
|
620
|
+
`aptos:signIn is not supported by ${walletName}`
|
|
623
621
|
).message;
|
|
624
622
|
}
|
|
625
623
|
|
|
626
624
|
return await this.connectWallet(selectedWallet, async () => {
|
|
627
625
|
if (!selectedWallet.features["aptos:signIn"]) {
|
|
628
626
|
throw new WalletNotSupportedMethod(
|
|
629
|
-
`aptos:signIn is not supported by ${selectedWallet.name}
|
|
627
|
+
`aptos:signIn is not supported by ${selectedWallet.name}`
|
|
630
628
|
).message;
|
|
631
629
|
}
|
|
632
630
|
|
|
@@ -652,7 +650,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
652
650
|
*/
|
|
653
651
|
private async connectWallet<T>(
|
|
654
652
|
selectedWallet: AdapterWallet,
|
|
655
|
-
onConnect: () => Promise<{ account: AccountInfo; output: T }
|
|
653
|
+
onConnect: () => Promise<{ account: AccountInfo; output: T }>
|
|
656
654
|
): Promise<T> {
|
|
657
655
|
try {
|
|
658
656
|
this._connecting = true;
|
|
@@ -703,7 +701,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
703
701
|
* @returns AptosSignAndSubmitTransactionOutput
|
|
704
702
|
*/
|
|
705
703
|
async signAndSubmitTransaction(
|
|
706
|
-
transactionInput: InputTransactionData
|
|
704
|
+
transactionInput: InputTransactionData
|
|
707
705
|
): Promise<AptosSignAndSubmitTransactionOutput> {
|
|
708
706
|
try {
|
|
709
707
|
if ("function" in transactionInput.data) {
|
|
@@ -754,7 +752,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
754
752
|
});
|
|
755
753
|
|
|
756
754
|
type AptosSignAndSubmitTransactionV1Method = (
|
|
757
|
-
transaction: AnyRawTransaction
|
|
755
|
+
transaction: AnyRawTransaction
|
|
758
756
|
) => Promise<UserResponse<AptosSignAndSubmitTransactionOutput>>;
|
|
759
757
|
|
|
760
758
|
const signAndSubmitTransactionMethod = this._wallet.features[
|
|
@@ -763,7 +761,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
763
761
|
.signAndSubmitTransaction as unknown as AptosSignAndSubmitTransactionV1Method;
|
|
764
762
|
|
|
765
763
|
const response = (await signAndSubmitTransactionMethod(
|
|
766
|
-
transaction
|
|
764
|
+
transaction
|
|
767
765
|
)) as UserResponse<AptosSignAndSubmitTransactionOutput>;
|
|
768
766
|
|
|
769
767
|
if (response.status === UserResponseStatus.REJECTED) {
|
|
@@ -859,7 +857,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
859
857
|
"aptos:signTransaction"
|
|
860
858
|
].signTransaction(
|
|
861
859
|
transactionOrPayload,
|
|
862
|
-
asFeePayer
|
|
860
|
+
asFeePayer
|
|
863
861
|
)) as UserResponse<AccountAuthenticator>;
|
|
864
862
|
if (response.status === UserResponseStatus.REJECTED) {
|
|
865
863
|
throw new WalletConnectionError("User has rejected the request")
|
|
@@ -895,7 +893,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
895
893
|
AptosSignTransactionMethodV1_1;
|
|
896
894
|
|
|
897
895
|
const response = (await walletSignTransactionMethod(
|
|
898
|
-
signTransactionV1_1StandardInput
|
|
896
|
+
signTransactionV1_1StandardInput
|
|
899
897
|
)) as UserResponse<AptosSignTransactionOutputV1_1>;
|
|
900
898
|
if (response.status === UserResponseStatus.REJECTED) {
|
|
901
899
|
throw new WalletConnectionError("User has rejected the request")
|
|
@@ -921,7 +919,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
921
919
|
"aptos:signTransaction"
|
|
922
920
|
].signTransaction(
|
|
923
921
|
transaction,
|
|
924
|
-
asFeePayer
|
|
922
|
+
asFeePayer
|
|
925
923
|
)) as UserResponse<AccountAuthenticator>;
|
|
926
924
|
if (response.status === UserResponseStatus.REJECTED) {
|
|
927
925
|
throw new WalletConnectionError("User has rejected the request")
|
|
@@ -948,7 +946,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
948
946
|
* @throws WalletSignMessageError
|
|
949
947
|
*/
|
|
950
948
|
async signMessage(
|
|
951
|
-
message: AptosSignMessageInput
|
|
949
|
+
message: AptosSignMessageInput
|
|
952
950
|
): Promise<AptosSignMessageOutput> {
|
|
953
951
|
try {
|
|
954
952
|
this.ensureWalletExists(this._wallet);
|
|
@@ -974,7 +972,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
974
972
|
* @returns PendingTransactionResponse
|
|
975
973
|
*/
|
|
976
974
|
async submitTransaction(
|
|
977
|
-
transaction: InputSubmitTransactionData
|
|
975
|
+
transaction: InputSubmitTransactionData
|
|
978
976
|
): Promise<PendingTransactionResponse> {
|
|
979
977
|
// The standard does not support submitTransaction, so we use the adapter to submit the transaction
|
|
980
978
|
try {
|
|
@@ -1020,7 +1018,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
1020
1018
|
await this.setAnsName();
|
|
1021
1019
|
this.recordEvent("account_change");
|
|
1022
1020
|
this.emit("accountChange", this._account);
|
|
1023
|
-
}
|
|
1021
|
+
}
|
|
1024
1022
|
);
|
|
1025
1023
|
} catch (error: any) {
|
|
1026
1024
|
const errMsg = generalizedErrorMessage(error);
|
|
@@ -1041,7 +1039,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
1041
1039
|
this.setNetwork(data);
|
|
1042
1040
|
await this.setAnsName();
|
|
1043
1041
|
this.emit("networkChange", this._network);
|
|
1044
|
-
}
|
|
1042
|
+
}
|
|
1045
1043
|
);
|
|
1046
1044
|
} catch (error: any) {
|
|
1047
1045
|
const errMsg = generalizedErrorMessage(error);
|
|
@@ -1075,7 +1073,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
1075
1073
|
if (this._wallet.features["aptos:changeNetwork"]) {
|
|
1076
1074
|
const response =
|
|
1077
1075
|
await this._wallet.features["aptos:changeNetwork"].changeNetwork(
|
|
1078
|
-
networkInfo
|
|
1076
|
+
networkInfo
|
|
1079
1077
|
);
|
|
1080
1078
|
if (response.status === UserResponseStatus.REJECTED) {
|
|
1081
1079
|
throw new WalletConnectionError("User has rejected the request")
|
|
@@ -1085,7 +1083,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
1085
1083
|
}
|
|
1086
1084
|
|
|
1087
1085
|
throw new WalletChangeNetworkError(
|
|
1088
|
-
`${this._wallet.name} does not support changing network request
|
|
1086
|
+
`${this._wallet.name} does not support changing network request`
|
|
1089
1087
|
).message;
|
|
1090
1088
|
} catch (error: any) {
|
|
1091
1089
|
const errMsg = generalizedErrorMessage(error);
|
|
@@ -1115,7 +1113,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
1115
1113
|
|
|
1116
1114
|
const aptosConfig = getAptosConfig(this._network, this._dappConfig);
|
|
1117
1115
|
const signingMessage = new TextEncoder().encode(
|
|
1118
|
-
response.args.fullMessage
|
|
1116
|
+
response.args.fullMessage
|
|
1119
1117
|
);
|
|
1120
1118
|
if ("verifySignatureAsync" in (this._account.publicKey as Object)) {
|
|
1121
1119
|
return await this._account.publicKey.verifySignatureAsync({
|
package/src/registry.ts
CHANGED
|
@@ -62,6 +62,13 @@ export const aptosStandardSupportedWalletList: Array<AptosStandardSupportedWalle
|
|
|
62
62
|
readyState: WalletReadyState.NotDetected,
|
|
63
63
|
isAIP62Standard: true,
|
|
64
64
|
},
|
|
65
|
+
{
|
|
66
|
+
name: "Gate Wallet",
|
|
67
|
+
url: "https://www.gate.com/zh/web3/",
|
|
68
|
+
icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjAwcHgiIGhlaWdodD0iNjAwcHgiIHZpZXdCb3g9IjAgMCA2MDAgNjAwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPHRpdGxlPue8lue7hCA3PC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxwb2x5Z29uIGlkPSJwYXRoLTEiIHBvaW50cz0iMCAwIDYwMCAwIDYwMCA2MDAgMCA2MDAiPjwvcG9seWdvbj4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSLmjaLoibIiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJTVkciIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNzU1LjAwMDAwMCwgLTU1MTguMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSLnvJbnu4QtNyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTc1NS4wMDAwMDAsIDU1MTguMDAwMDAwKSI+CiAgICAgICAgICAgICAgICA8ZyBpZD0i57yW57uEIj4KICAgICAgICAgICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICAgICAgPC9tYXNrPgogICAgICAgICAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMzAwLDQ2NC45OTg0MjcgQzIwOC44NzMwNjksNDY0Ljk5ODQyNyAxMzQuOTk2NTA0LDM5MS4xMjI1NjYgMTM0Ljk5NjUwNCwyOTkuOTk2NTA0IEMxMzQuOTk2NTA0LDIwOC44NzA0NDIgMjA4Ljg3MzA2OSwxMzUuMDAwOTM4IDMwMCwxMzUuMDAwOTM4IEwzMDAsLTAuMDAwNjM1NjAwNjI0IEMxMzQuMzEwMDQ5LC0wLjAwMDYzNTYwMDYyNCAwLDEzNC4zMTQ0ODkgMCwyOTkuOTk2NTA0IEMwLDQ2NS42Nzg1MiAxMzQuMzEwMDQ5LDYwMCAzMDAsNjAwIEM0NjUuNjg5OTUxLDYwMCA2MDAsNDY1LjY3ODUyIDYwMCwyOTkuOTk2NTA0IEw0NjUuMDAzNDk2LDI5OS45OTY1MDQgQzQ2NS4wMDM0OTYsMzkxLjEyMjU2NiAzOTEuMTI2OTMxLDQ2NC45OTg0MjcgMzAwLDQ2NC45OTg0MjciIGlkPSJGaWxsLTEiIGZpbGw9IiMyMzU0RTYiIG1hc2s9InVybCgjbWFzay0yKSI+PC9wYXRoPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9IkZpbGwtMyIgZmlsbD0iIzE3RTZBMSIgcG9pbnRzPSIyOTkuOTkyMzczIDI5OS45OTcxNCA0NjQuOTk1ODY5IDI5OS45OTcxNCA0NjQuOTk1ODY5IDEzNC45OTUyMTcgMjk5Ljk5MjM3MyAxMzQuOTk1MjE3Ij48L3BvbHlnb24+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",
|
|
69
|
+
readyState: WalletReadyState.NotDetected,
|
|
70
|
+
isAIP62Standard: true,
|
|
71
|
+
},
|
|
65
72
|
];
|
|
66
73
|
|
|
67
74
|
export const crossChainStandardSupportedWalletList: Array<AptosStandardSupportedWallet> =
|
package/src/utils/types.ts
CHANGED
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const WALLET_ADAPTER_CORE_VERSION = "7.
|
|
1
|
+
export const WALLET_ADAPTER_CORE_VERSION = "7.6.0";
|