@aptos-labs/wallet-adapter-core 5.4.0 → 5.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/WalletCore.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/utils/helpers.d.ts +1 -1
- package/dist/utils/types.d.ts +2 -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 +5 -2
- package/src/utils/types.ts +8 -6
- package/src/version.ts +1 -1
package/dist/utils/helpers.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare const fetchDevnetChainId: () => Promise<number>;
|
|
|
32
32
|
* as a string, this function converts the string to Uint8Array.
|
|
33
33
|
*/
|
|
34
34
|
export declare const handlePublishPackageTransaction: (transactionInput: InputTransactionData) => {
|
|
35
|
-
metadataBytes: number | bigint | boolean | Uint8Array | import("@aptos-labs/ts-sdk/dist/common/accountAddress-
|
|
35
|
+
metadataBytes: number | bigint | boolean | Uint8Array | import("@aptos-labs/ts-sdk/dist/common/accountAddress-5ltp27oM").g | import("@aptos-labs/ts-sdk").Bool | import("@aptos-labs/ts-sdk").U8 | import("@aptos-labs/ts-sdk").U16 | import("@aptos-labs/ts-sdk").U32 | import("@aptos-labs/ts-sdk").U64 | import("@aptos-labs/ts-sdk").U128 | import("@aptos-labs/ts-sdk").U256 | import("@aptos-labs/ts-sdk").MoveVector<import("@aptos-labs/ts-sdk").EntryFunctionArgumentTypes> | import("@aptos-labs/ts-sdk").MoveOption<import("@aptos-labs/ts-sdk").EntryFunctionArgumentTypes> | import("@aptos-labs/ts-sdk").MoveString | import("@aptos-labs/ts-sdk").FixedBytes | ArrayBuffer | (import("@aptos-labs/ts-sdk").EntryFunctionArgumentTypes | import("@aptos-labs/ts-sdk").SimpleEntryFunctionArgumentTypes)[] | import("@aptos-labs/ts-sdk").MoveVector<import("@aptos-labs/ts-sdk").ScriptFunctionArgumentTypes> | import("@aptos-labs/ts-sdk").Serialized | null | undefined;
|
|
36
36
|
byteCode: (import("@aptos-labs/ts-sdk").EntryFunctionArgumentTypes | import("@aptos-labs/ts-sdk").SimpleEntryFunctionArgumentTypes)[];
|
|
37
37
|
};
|
|
38
38
|
export declare function convertNetwork(networkInfo: NetworkInfo | null): Network;
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface AptosStandardSupportedWallet {
|
|
|
9
9
|
isAIP62Standard: true;
|
|
10
10
|
deeplinkProvider?: string;
|
|
11
11
|
}
|
|
12
|
-
export type AvailableWallets = "
|
|
12
|
+
export type AvailableWallets = "Continue with Apple" | "Continue with Google" | "MSafe" | "Mizu Wallet" | "Nightly" | "OKX Wallet" | "Petra" | "Pontem Wallet" | "Rimosafe" | "T wallet";
|
|
13
13
|
export type InputTransactionData = {
|
|
14
14
|
sender?: AccountAddressInput;
|
|
15
15
|
data: InputGenerateTransactionPayloadData;
|
|
@@ -17,6 +17,7 @@ export type InputTransactionData = {
|
|
|
17
17
|
expirationSecondsFromNow?: number;
|
|
18
18
|
expirationTimestamp?: number;
|
|
19
19
|
};
|
|
20
|
+
withFeePayer?: boolean;
|
|
20
21
|
};
|
|
21
22
|
export type WalletInfo = {
|
|
22
23
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,+BAA+B,EAChC,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,c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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 = "5.4.
|
|
1
|
+
export declare const WALLET_ADAPTER_CORE_VERSION = "5.4.1";
|
|
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": "5.4.
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"description": "Aptos Wallet Adapter Core",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"tweetnacl": "^1.0.3"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@aptos-labs/ts-sdk": "^1.
|
|
53
|
+
"@aptos-labs/ts-sdk": "^1.38.0"
|
|
54
54
|
},
|
|
55
55
|
"files": [
|
|
56
56
|
"dist",
|
package/src/WalletCore.ts
CHANGED
|
@@ -855,6 +855,7 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
855
855
|
sender: this._account.address,
|
|
856
856
|
data: transactionOrPayload.data,
|
|
857
857
|
options: transactionOrPayload.options,
|
|
858
|
+
withFeePayer: transactionOrPayload.withFeePayer,
|
|
858
859
|
});
|
|
859
860
|
|
|
860
861
|
const response = (await this._wallet?.features[
|
|
@@ -1054,13 +1055,15 @@ export class WalletCore extends EventEmitter<WalletCoreEvents> {
|
|
|
1054
1055
|
}
|
|
1055
1056
|
|
|
1056
1057
|
const aptosConfig = getAptosConfig(this._network, this._dappConfig);
|
|
1057
|
-
const signingMessage = new TextEncoder().encode(
|
|
1058
|
+
const signingMessage = new TextEncoder().encode(
|
|
1059
|
+
response.args.fullMessage
|
|
1060
|
+
);
|
|
1058
1061
|
if ("verifySignatureAsync" in (this._account.publicKey as Object)) {
|
|
1059
1062
|
return await this._account.publicKey.verifySignatureAsync({
|
|
1060
1063
|
aptosConfig,
|
|
1061
1064
|
message: signingMessage,
|
|
1062
1065
|
signature: response.args.signature,
|
|
1063
|
-
options: { throwErrorWithReason: true }
|
|
1066
|
+
options: { throwErrorWithReason: true },
|
|
1064
1067
|
});
|
|
1065
1068
|
}
|
|
1066
1069
|
return this._account.publicKey.verifySignature({
|
package/src/utils/types.ts
CHANGED
|
@@ -25,15 +25,16 @@ export interface AptosStandardSupportedWallet {
|
|
|
25
25
|
|
|
26
26
|
// Update this with the name of your wallet when you create a new wallet plugin.
|
|
27
27
|
export type AvailableWallets =
|
|
28
|
+
| "Continue with Apple"
|
|
29
|
+
| "Continue with Google"
|
|
30
|
+
| "MSafe"
|
|
31
|
+
| "Mizu Wallet"
|
|
28
32
|
| "Nightly"
|
|
33
|
+
| "OKX Wallet"
|
|
29
34
|
| "Petra"
|
|
30
|
-
| "T wallet"
|
|
31
35
|
| "Pontem Wallet"
|
|
32
|
-
| "
|
|
33
|
-
| "
|
|
34
|
-
| "Continue with Google"
|
|
35
|
-
| "Continue with Apple"
|
|
36
|
-
| "MSafe Wallet";
|
|
36
|
+
| "Rimosafe"
|
|
37
|
+
| "T wallet";
|
|
37
38
|
|
|
38
39
|
export type InputTransactionData = {
|
|
39
40
|
sender?: AccountAddressInput;
|
|
@@ -42,6 +43,7 @@ export type InputTransactionData = {
|
|
|
42
43
|
expirationSecondsFromNow?: number;
|
|
43
44
|
expirationTimestamp?: number;
|
|
44
45
|
};
|
|
46
|
+
withFeePayer?: boolean;
|
|
45
47
|
};
|
|
46
48
|
|
|
47
49
|
export type WalletInfo = {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const WALLET_ADAPTER_CORE_VERSION = "5.4.
|
|
1
|
+
export const WALLET_ADAPTER_CORE_VERSION = "5.4.1";
|