@aptos-labs/wallet-adapter-core 5.1.4 → 5.2.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 +1 -1
- package/dist/WalletCore.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/WalletCore.ts +2 -0
- package/src/version.ts +1 -1
- package/dist/AIP62StandardWallets/WalletStandard.d.ts +0 -44
- package/dist/AIP62StandardWallets/WalletStandard.d.ts.map +0 -1
- package/dist/AIP62StandardWallets/index.d.ts +0 -3
- package/dist/AIP62StandardWallets/index.d.ts.map +0 -1
- package/dist/AIP62StandardWallets/registry.d.ts +0 -17
- package/dist/AIP62StandardWallets/registry.d.ts.map +0 -1
- package/dist/AIP62StandardWallets/sdkWallets.d.ts +0 -4
- package/dist/AIP62StandardWallets/sdkWallets.d.ts.map +0 -1
- package/dist/AIP62StandardWallets/types.d.ts +0 -12
- package/dist/AIP62StandardWallets/types.d.ts.map +0 -1
- package/dist/CrossChainCore.d.ts +0 -28
- package/dist/CrossChainCore.d.ts.map +0 -1
- package/dist/LegacyWalletPlugins/WalletCoreV1.d.ts +0 -50
- package/dist/LegacyWalletPlugins/WalletCoreV1.d.ts.map +0 -1
- package/dist/LegacyWalletPlugins/conversion.d.ts +0 -21
- package/dist/LegacyWalletPlugins/conversion.d.ts.map +0 -1
- package/dist/LegacyWalletPlugins/index.d.ts +0 -4
- package/dist/LegacyWalletPlugins/index.d.ts.map +0 -1
- package/dist/LegacyWalletPlugins/types.d.ts +0 -116
- package/dist/LegacyWalletPlugins/types.d.ts.map +0 -1
- package/dist/WalletCoreNew.d.ts +0 -194
- package/dist/WalletCoreNew.d.ts.map +0 -1
- package/dist/__tests__/WalletCore.test.d.ts +0 -2
- package/dist/__tests__/WalletCore.test.d.ts.map +0 -1
- package/dist/utils/aptosConnect.d.ts +0 -18
- package/dist/utils/aptosConnect.d.ts.map +0 -1
- package/dist/utils/crossChain/chains/mainnet/index.d.ts +0 -45
- package/dist/utils/crossChain/chains/mainnet/index.d.ts.map +0 -1
- package/dist/utils/crossChain/chains/testnet/index.d.ts +0 -50
- package/dist/utils/crossChain/chains/testnet/index.d.ts.map +0 -1
- package/dist/utils/crossChain/tokens/mainnet.d.ts +0 -15
- package/dist/utils/crossChain/tokens/mainnet.d.ts.map +0 -1
- package/dist/utils/crossChain/tokens/testnet.d.ts +0 -11
- package/dist/utils/crossChain/tokens/testnet.d.ts.map +0 -1
- package/dist/utils/logger.d.ts +0 -6
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/scopePollingDetectionStrategy.d.ts +0 -2
- package/dist/utils/scopePollingDetectionStrategy.d.ts.map +0 -1
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { TxnBuilderTypes, Types } from "aptos";
|
|
2
|
-
import EventEmitter from "eventemitter3";
|
|
3
|
-
import { InputGenerateTransactionPayloadData } from "@aptos-labs/ts-sdk";
|
|
4
|
-
import { Wallet, WalletCoreEvents, TransactionOptions, NetworkInfo, InputTransactionData, AccountInfo, SignMessagePayload } from "./types";
|
|
5
|
-
import { DappConfig } from "../WalletCore";
|
|
6
|
-
export declare class WalletCoreV1 extends EventEmitter<WalletCoreEvents> {
|
|
7
|
-
connect(wallet: Wallet): Promise<any>;
|
|
8
|
-
/**
|
|
9
|
-
* Resolve the transaction type (BCS arguments or Simple arguments)
|
|
10
|
-
*
|
|
11
|
-
* @param payloadData
|
|
12
|
-
* @param network
|
|
13
|
-
* @param wallet
|
|
14
|
-
* @param transactionInput
|
|
15
|
-
*
|
|
16
|
-
* @returns
|
|
17
|
-
*/
|
|
18
|
-
resolveSignAndSubmitTransaction(payloadData: InputGenerateTransactionPayloadData, network: NetworkInfo | null, wallet: Wallet, transactionInput: InputTransactionData, dappConfig?: DappConfig): Promise<any>;
|
|
19
|
-
/**
|
|
20
|
-
Sign and submit an entry (not bcs serialized) transaction type to chain.
|
|
21
|
-
@param transaction a non-bcs serialized transaction
|
|
22
|
-
@param options max_gas_amount and gas_unit_limit
|
|
23
|
-
@return response from the wallet's signAndSubmitTransaction function
|
|
24
|
-
@throws WalletSignAndSubmitMessageError
|
|
25
|
-
*/
|
|
26
|
-
signAndSubmitTransaction(transaction: Types.TransactionPayload, wallet: Wallet, options?: TransactionOptions): Promise<any>;
|
|
27
|
-
/**
|
|
28
|
-
Sign and submit a bsc serialized transaction type to chain.
|
|
29
|
-
@param transaction a bcs serialized transaction
|
|
30
|
-
@param options max_gas_amount and gas_unit_limit
|
|
31
|
-
@return response from the wallet's signAndSubmitBCSTransaction function
|
|
32
|
-
@throws WalletSignAndSubmitMessageError
|
|
33
|
-
*/
|
|
34
|
-
signAndSubmitBCSTransaction(transaction: TxnBuilderTypes.TransactionPayload, wallet: Wallet, options?: TransactionOptions): Promise<any>;
|
|
35
|
-
/**
|
|
36
|
-
Sign transaction
|
|
37
|
-
@param transaction
|
|
38
|
-
@param options max_gas_amount and gas_unit_limit
|
|
39
|
-
@return response from the wallet's signTransaction function
|
|
40
|
-
@throws WalletSignTransactionError
|
|
41
|
-
*/
|
|
42
|
-
signTransaction(transaction: Types.TransactionPayload, wallet: Wallet, options?: TransactionOptions): Promise<Uint8Array | null>;
|
|
43
|
-
/**
|
|
44
|
-
* Signs a message and verifies the signer
|
|
45
|
-
* @param message SignMessagePayload
|
|
46
|
-
* @returns boolean
|
|
47
|
-
*/
|
|
48
|
-
signMessageAndVerify(message: SignMessagePayload, wallet: Wallet, account: AccountInfo): Promise<boolean>;
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=WalletCoreV1.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WalletCoreV1.d.ts","sourceRoot":"","sources":["../../src/LegacyWalletPlugins/WalletCoreV1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eA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@@
|
|
|
1
|
-
import { Network, TransactionPayload, InputGenerateTransactionPayloadData, AptosConfig, InputEntryFunctionData, TransactionPayloadEntryFunction } from "@aptos-labs/ts-sdk";
|
|
2
|
-
import { NetworkInfo as StandardNetworkInfo } from "@aptos-labs/wallet-standard";
|
|
3
|
-
import { TxnBuilderTypes, Types } from "aptos";
|
|
4
|
-
import { NetworkInfo } from "./types";
|
|
5
|
-
export declare function convertNetwork(networkInfo: NetworkInfo | StandardNetworkInfo | null): Network;
|
|
6
|
-
export declare function convertV2TransactionPayloadToV1BCSPayload(payload: TransactionPayload): TxnBuilderTypes.TransactionPayload;
|
|
7
|
-
export declare function convertV2PayloadToV1JSONPayload(payload: InputGenerateTransactionPayloadData): Types.TransactionPayload;
|
|
8
|
-
export declare function convertPayloadInputV1ToV2(inputV1: Types.TransactionPayload): InputEntryFunctionData;
|
|
9
|
-
export declare function generateTransactionPayloadFromV1Input(aptosConfig: AptosConfig, inputV1: Types.TransactionPayload): Promise<TransactionPayloadEntryFunction>;
|
|
10
|
-
export interface CompatibleTransactionOptions {
|
|
11
|
-
expireTimestamp?: number;
|
|
12
|
-
expirationSecondsFromNow?: number;
|
|
13
|
-
expirationTimestamp?: number;
|
|
14
|
-
gasUnitPrice?: number;
|
|
15
|
-
gas_unit_price?: number;
|
|
16
|
-
maxGasAmount?: number;
|
|
17
|
-
max_gas_amount?: number;
|
|
18
|
-
sender?: string;
|
|
19
|
-
sequenceNumber?: number;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=conversion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversion.d.ts","sourceRoot":"","sources":["../../src/LegacyWalletPlugins/conversion.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,kBAAkB,EAClB,mCAAmC,EAEnC,WAAW,EACX,sBAAsB,EAItB,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,IAAI,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAO,eAAe,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,wBAAgB,cAAc,CAC5B,WAAW,EAAE,WAAW,GAAG,mBAAmB,GAAG,IAAI,GACpD,OAAO,CAaT;AAGD,wBAAgB,yCAAyC,CACvD,OAAO,EAAE,kBAAkB,GAC1B,eAAe,CAAC,kBAAkB,CAGpC;AAED,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,mCAAmC,GAC3C,KAAK,CAAC,kBAAkB,CA0C1B;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,KAAK,CAAC,kBAAkB,0BAW1E;AAED,wBAAsB,qCAAqC,CACzD,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,KAAK,CAAC,kBAAkB,GAChC,OAAO,CAAC,+BAA+B,CAAC,CAO1C;AAED,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/LegacyWalletPlugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { Types } from "aptos";
|
|
2
|
-
import { Network, InputGenerateTransactionOptions, InputSubmitTransactionData, PendingTransactionResponse, AccountAddressInput, InputGenerateTransactionPayloadData, AnyRawTransaction, Signature } from "@aptos-labs/ts-sdk";
|
|
3
|
-
import { WalletReadyState } from "../constants";
|
|
4
|
-
import { AptosSignAndSubmitTransactionOutput, AptosSignMessageOutput, UserResponse, AccountInfo as StandardAccountInfo, NetworkInfo as StandardNetworkInfo, AptosChangeNetworkMethod, AptosSignAndSubmitTransactionInput } from "@aptos-labs/wallet-standard";
|
|
5
|
-
import { AptosStandardSupportedWallet } from "../AIP62StandardWallets/types";
|
|
6
|
-
export { TxnBuilderTypes, Types } from "aptos";
|
|
7
|
-
export type { InputGenerateTransactionData, InputGenerateTransactionOptions, AnyRawTransaction, InputSubmitTransactionData, PendingTransactionResponse, AccountAuthenticator, Network, } from "@aptos-labs/ts-sdk";
|
|
8
|
-
export type { NetworkInfo as StandardNetworkInfo, AptosChangeNetworkOutput, } from "@aptos-labs/wallet-standard";
|
|
9
|
-
export type WalletName<T extends string = string> = T & {
|
|
10
|
-
__brand__: "WalletName";
|
|
11
|
-
};
|
|
12
|
-
export type NetworkInfo = {
|
|
13
|
-
name: Network;
|
|
14
|
-
chainId?: string;
|
|
15
|
-
url?: string;
|
|
16
|
-
};
|
|
17
|
-
export type WalletInfo = {
|
|
18
|
-
name: WalletName;
|
|
19
|
-
icon: string;
|
|
20
|
-
url: string;
|
|
21
|
-
};
|
|
22
|
-
export type AccountInfo = {
|
|
23
|
-
address: string;
|
|
24
|
-
publicKey: string | string[];
|
|
25
|
-
minKeysRequired?: number;
|
|
26
|
-
ansName?: string | null;
|
|
27
|
-
};
|
|
28
|
-
export interface AptosWalletErrorResult {
|
|
29
|
-
code: number;
|
|
30
|
-
name: string;
|
|
31
|
-
message: string;
|
|
32
|
-
}
|
|
33
|
-
export declare interface WalletCoreEvents {
|
|
34
|
-
connect(account: AccountInfo | null): void;
|
|
35
|
-
disconnect(): void;
|
|
36
|
-
readyStateChange(wallet: Wallet): void;
|
|
37
|
-
standardWalletsAdded(wallets: Wallet | AptosStandardSupportedWallet): void;
|
|
38
|
-
networkChange(network: NetworkInfo | null): void;
|
|
39
|
-
accountChange(account: AccountInfo | null): void;
|
|
40
|
-
}
|
|
41
|
-
export interface SignMessagePayload {
|
|
42
|
-
address?: boolean;
|
|
43
|
-
application?: boolean;
|
|
44
|
-
chainId?: boolean;
|
|
45
|
-
message: string;
|
|
46
|
-
nonce: string;
|
|
47
|
-
}
|
|
48
|
-
export interface SignMessageResponse {
|
|
49
|
-
address?: string;
|
|
50
|
-
application?: string;
|
|
51
|
-
chainId?: number;
|
|
52
|
-
fullMessage: string;
|
|
53
|
-
message: string;
|
|
54
|
-
nonce: string;
|
|
55
|
-
prefix: "APTOS";
|
|
56
|
-
signature: string | string[] | Signature;
|
|
57
|
-
bitmap?: Uint8Array;
|
|
58
|
-
}
|
|
59
|
-
export type OnNetworkChange = (callBack: (networkInfo: NetworkInfo | StandardNetworkInfo) => Promise<void>) => Promise<void>;
|
|
60
|
-
export type OnAccountChange = (callBack: (accountInfo: AccountInfo | StandardAccountInfo) => Promise<any>) => Promise<void>;
|
|
61
|
-
export interface AdapterPluginEvents {
|
|
62
|
-
onNetworkChange: OnNetworkChange;
|
|
63
|
-
onAccountChange: OnAccountChange;
|
|
64
|
-
}
|
|
65
|
-
export interface AdapterPluginProps<Name extends string = string> {
|
|
66
|
-
name: WalletName<Name>;
|
|
67
|
-
url: string;
|
|
68
|
-
icon: `data:image/${"svg+xml" | "webp" | "png" | "gif"};base64,${string}`;
|
|
69
|
-
providerName?: string;
|
|
70
|
-
provider: any;
|
|
71
|
-
deeplinkProvider?: (data: {
|
|
72
|
-
url: string;
|
|
73
|
-
}) => string;
|
|
74
|
-
openInMobileApp?: () => void;
|
|
75
|
-
connect(): Promise<any>;
|
|
76
|
-
disconnect: () => Promise<any>;
|
|
77
|
-
network: () => Promise<any>;
|
|
78
|
-
signAndSubmitTransaction?(transaction: Types.TransactionPayload | InputTransactionData | AnyRawTransaction | AptosSignAndSubmitTransactionInput, options?: InputGenerateTransactionOptions): Promise<{
|
|
79
|
-
hash: Types.HexEncodedBytes;
|
|
80
|
-
output?: any;
|
|
81
|
-
} | PendingTransactionResponse | UserResponse<AptosSignAndSubmitTransactionOutput>>;
|
|
82
|
-
submitTransaction?(transaction: InputSubmitTransactionData): Promise<PendingTransactionResponse>;
|
|
83
|
-
signMessage<T extends SignMessagePayload>(message: T): Promise<SignMessageResponse | UserResponse<AptosSignMessageOutput>>;
|
|
84
|
-
signTransaction?(// `any` type for backwards compatibility, especially for identity connect
|
|
85
|
-
transactionOrPayload: any, optionsOrAsFeePayer?: any): Promise<any>;
|
|
86
|
-
account?: () => Promise<AccountInfo | StandardAccountInfo>;
|
|
87
|
-
changeNetwork?: AptosChangeNetworkMethod;
|
|
88
|
-
}
|
|
89
|
-
export type AdapterPlugin<Name extends string = string> = AdapterPluginProps<Name> & AdapterPluginEvents;
|
|
90
|
-
export type Wallet<Name extends string = string> = AdapterPlugin<Name> & {
|
|
91
|
-
readyState?: WalletReadyState;
|
|
92
|
-
isAIP62Standard?: boolean;
|
|
93
|
-
isSignTransactionV1_1?: boolean;
|
|
94
|
-
};
|
|
95
|
-
export interface TransactionOptions {
|
|
96
|
-
max_gas_amount?: bigint;
|
|
97
|
-
gas_unit_price?: bigint;
|
|
98
|
-
}
|
|
99
|
-
export type InputTransactionData = {
|
|
100
|
-
sender?: AccountAddressInput;
|
|
101
|
-
data: InputGenerateTransactionPayloadData;
|
|
102
|
-
options?: InputGenerateTransactionOptions;
|
|
103
|
-
};
|
|
104
|
-
export interface PluginProvider {
|
|
105
|
-
connect: () => Promise<AccountInfo>;
|
|
106
|
-
account: () => Promise<AccountInfo>;
|
|
107
|
-
disconnect: () => Promise<void>;
|
|
108
|
-
signAndSubmitTransaction: (transaction: any, options?: any) => Promise<{
|
|
109
|
-
hash: Types.HexEncodedBytes;
|
|
110
|
-
} | AptosWalletErrorResult>;
|
|
111
|
-
signMessage: (message: SignMessagePayload) => Promise<SignMessageResponse>;
|
|
112
|
-
network: () => Promise<NetworkInfo>;
|
|
113
|
-
onAccountChange: (listener: (newAddress: AccountInfo) => Promise<void>) => Promise<void>;
|
|
114
|
-
onNetworkChange: OnNetworkChange;
|
|
115
|
-
}
|
|
116
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/LegacyWalletPlugins/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EACL,OAAO,EACP,+BAA+B,EAC/B,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,EACnB,mCAAmC,EACnC,iBAAiB,EACjB,SAAS,EAEV,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EACL,mCAAmC,EACnC,sBAAsB,EACtB,YAAY,EACZ,WAAW,IAAI,mBAAmB,EAClC,WAAW,IAAI,mBAAmB,EAClC,wBAAwB,EACxB,kCAAkC,EACnC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC/C,YAAY,EACV,4BAA4B,EAC5B,+BAA+B,EAC/B,iBAAiB,EACjB,0BAA0B,EAC1B,0BAA0B,EAC1B,oBAAoB,EACpB,OAAO,GACR,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EACV,WAAW,IAAI,mBAAmB,EAClC,wBAAwB,GACzB,MAAM,6BAA6B,CAAC;AAGrC,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG;IACtD,SAAS,EAAE,YAAY,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,OAAO,CAAC;IACd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zB;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,IAAI,EAAE,mCAAmC,CAAC;IAC1C,OAAO,CAAC,EAAE,+BAA+B,CAAC;CAC3C,CAAC;AAGF,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;IACpC,OAAO,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;IACpC,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAChC,wBAAwB,EAAE,CACxB,WAAW,EAAE,GAAG,EAChB,OAAO,CAAC,EAAE,GAAG,KACV,OAAO,CAAC;QAAE,IAAI,EAAE,KAAK,CAAC,eAAe,CAAA;KAAE,GAAG,sBAAsB,CAAC,CAAC;IACvE,WAAW,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC3E,OAAO,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;IACpC,eAAe,EAAE,CACf,QAAQ,EAAE,CAAC,UAAU,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,KACjD,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,eAAe,EAAE,eAAe,CAAC;CAClC"}
|
package/dist/WalletCoreNew.d.ts
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import EventEmitter from "eventemitter3";
|
|
2
|
-
import { DappConfig } from "./WalletCore";
|
|
3
|
-
import { AptosStandardWallet, AvailableWallets } from "./AIP62StandardWallets";
|
|
4
|
-
import { WalletReadyState } from "./constants";
|
|
5
|
-
import { AccountAuthenticator, AnyRawTransaction, InputGenerateTransactionOptions, InputSubmitTransactionData, Network, PendingTransactionResponse } from "@aptos-labs/ts-sdk";
|
|
6
|
-
import { AptosWallet, AptosSignAndSubmitTransactionOutput, AptosSignTransactionOutputV1_1, NetworkInfo, AccountInfo, AptosSignMessageInput, AptosSignMessageOutput, AptosChangeNetworkOutput } from "@aptos-labs/wallet-standard";
|
|
7
|
-
export type { NetworkInfo, AccountInfo } from "@aptos-labs/wallet-standard";
|
|
8
|
-
import { InputTransactionData } from "./LegacyWalletPlugins/types";
|
|
9
|
-
export type AdapterWallet = AptosWallet & {
|
|
10
|
-
readyState?: WalletReadyState;
|
|
11
|
-
};
|
|
12
|
-
export declare class WalletCoreNew extends EventEmitter<any> {
|
|
13
|
-
private _wallets;
|
|
14
|
-
private _wallet;
|
|
15
|
-
private readonly _sdkWallets;
|
|
16
|
-
private _standard_wallets;
|
|
17
|
-
private _network;
|
|
18
|
-
private _connected;
|
|
19
|
-
private _connecting;
|
|
20
|
-
private _account;
|
|
21
|
-
private _dappConfig;
|
|
22
|
-
private _optInWallets;
|
|
23
|
-
private _disableTelemetry;
|
|
24
|
-
private readonly ga4;
|
|
25
|
-
private readonly walletStandardCore;
|
|
26
|
-
constructor(optInWallets?: ReadonlyArray<AvailableWallets>, dappConfig?: DappConfig, disableTelemetry?: boolean);
|
|
27
|
-
private fetchExtensionAIP62AptosWallets;
|
|
28
|
-
/**
|
|
29
|
-
* Set AIP-62 extension wallets
|
|
30
|
-
*
|
|
31
|
-
* @param extensionwWallets
|
|
32
|
-
*/
|
|
33
|
-
private setExtensionAIP62Wallets;
|
|
34
|
-
/**
|
|
35
|
-
* Set AIP-62 SDK wallets
|
|
36
|
-
*/
|
|
37
|
-
private fetchSDKAIP62AptosWallets;
|
|
38
|
-
/**
|
|
39
|
-
* A function that excludes an AIP-62 compatible wallet the dapp doesnt want to include
|
|
40
|
-
*
|
|
41
|
-
* @param walletName
|
|
42
|
-
* @returns
|
|
43
|
-
*/
|
|
44
|
-
excludeWallet(wallet: AptosStandardWallet): boolean;
|
|
45
|
-
private recordEvent;
|
|
46
|
-
/**
|
|
47
|
-
* Helper function to ensure wallet exists
|
|
48
|
-
*
|
|
49
|
-
* @param wallet A wallet
|
|
50
|
-
*/
|
|
51
|
-
private ensureWalletExists;
|
|
52
|
-
/**
|
|
53
|
-
* Helper function to ensure account exists
|
|
54
|
-
*
|
|
55
|
-
* @param account An account
|
|
56
|
-
*/
|
|
57
|
-
private ensureAccountExists;
|
|
58
|
-
/**
|
|
59
|
-
* Function to cleat wallet adapter data.
|
|
60
|
-
*
|
|
61
|
-
* - Removes current connected wallet state
|
|
62
|
-
* - Removes current connected account state
|
|
63
|
-
* - Removes current connected network state
|
|
64
|
-
* - Removes autoconnect local storage value
|
|
65
|
-
*/
|
|
66
|
-
private clearData;
|
|
67
|
-
/**
|
|
68
|
-
* Sets the connected wallet
|
|
69
|
-
*
|
|
70
|
-
* @param wallet A wallet
|
|
71
|
-
*/
|
|
72
|
-
setWallet(wallet: AptosWallet | null): void;
|
|
73
|
-
/**
|
|
74
|
-
* Sets the connected account
|
|
75
|
-
*
|
|
76
|
-
* @param account An account
|
|
77
|
-
*/
|
|
78
|
-
setAccount(account: AccountInfo | null): void;
|
|
79
|
-
/**
|
|
80
|
-
* Sets the connected network
|
|
81
|
-
*
|
|
82
|
-
* @param network A network
|
|
83
|
-
*/
|
|
84
|
-
setNetwork(network: NetworkInfo | null): void;
|
|
85
|
-
/**
|
|
86
|
-
* Helper function to detect whether a wallet is connected
|
|
87
|
-
*
|
|
88
|
-
* @returns boolean
|
|
89
|
-
*/
|
|
90
|
-
isConnected(): boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Getter to fetch all detected wallets
|
|
93
|
-
*/
|
|
94
|
-
get wallets(): ReadonlyArray<AptosWallet>;
|
|
95
|
-
/**
|
|
96
|
-
* Getter for the current connected wallet
|
|
97
|
-
*
|
|
98
|
-
* @return wallet info
|
|
99
|
-
* @throws WalletNotSelectedError
|
|
100
|
-
*/
|
|
101
|
-
get wallet(): AptosWallet | null;
|
|
102
|
-
/**
|
|
103
|
-
* Getter for the current connected account
|
|
104
|
-
*
|
|
105
|
-
* @return account info
|
|
106
|
-
* @throws WalletAccountError
|
|
107
|
-
*/
|
|
108
|
-
get account(): AccountInfo | null;
|
|
109
|
-
/**
|
|
110
|
-
* Getter for the current wallet network
|
|
111
|
-
*
|
|
112
|
-
* @return network info
|
|
113
|
-
* @throws WalletGetNetworkError
|
|
114
|
-
*/
|
|
115
|
-
get network(): NetworkInfo | null;
|
|
116
|
-
/**
|
|
117
|
-
* Helper function to run some checks before we connect with a wallet.
|
|
118
|
-
*
|
|
119
|
-
* @param walletName. The wallet name we want to connect with.
|
|
120
|
-
*/
|
|
121
|
-
connect(walletName: string): Promise<void | string>;
|
|
122
|
-
/**
|
|
123
|
-
* Connects a wallet to the dapp.
|
|
124
|
-
* On connect success, we set the current account and the network, and keeping the selected wallet
|
|
125
|
-
* name in LocalStorage to support autoConnect function.
|
|
126
|
-
*
|
|
127
|
-
* @param selectedWallet. The wallet we want to connect.
|
|
128
|
-
* @emit emits "connect" event
|
|
129
|
-
* @throws WalletConnectionError
|
|
130
|
-
*/
|
|
131
|
-
connectWallet(selectedWallet: AdapterWallet): Promise<void>;
|
|
132
|
-
/**
|
|
133
|
-
* Signs and submits a transaction to chain
|
|
134
|
-
*
|
|
135
|
-
* @param transactionInput InputTransactionData
|
|
136
|
-
* @returns PendingTransactionResponse
|
|
137
|
-
*/
|
|
138
|
-
signAndSubmitTransaction(transactionInput: InputTransactionData): Promise<AptosSignAndSubmitTransactionOutput>;
|
|
139
|
-
/**
|
|
140
|
-
* Signs a transaction
|
|
141
|
-
*
|
|
142
|
-
* To support both existing wallet adapter V1 and V2, we support 2 input types
|
|
143
|
-
*
|
|
144
|
-
* @param transactionOrPayload AnyRawTransaction - V2 input | Types.TransactionPayload - V1 input
|
|
145
|
-
* @param options optional. V1 input
|
|
146
|
-
*
|
|
147
|
-
* @returns AccountAuthenticator
|
|
148
|
-
*/
|
|
149
|
-
signTransaction(transactionOrPayload: AnyRawTransaction | InputTransactionData, asFeePayer?: boolean, options?: InputGenerateTransactionOptions & {
|
|
150
|
-
expirationSecondsFromNow?: number;
|
|
151
|
-
expirationTimestamp?: number;
|
|
152
|
-
}): Promise<AccountAuthenticator | AptosSignTransactionOutputV1_1>;
|
|
153
|
-
/**
|
|
154
|
-
* Sign message (doesnt submit to chain).
|
|
155
|
-
*
|
|
156
|
-
* @param message
|
|
157
|
-
* @return response from the wallet's signMessage function
|
|
158
|
-
* @throws WalletSignMessageError
|
|
159
|
-
*/
|
|
160
|
-
signMessage(message: AptosSignMessageInput): Promise<AptosSignMessageOutput>;
|
|
161
|
-
/**
|
|
162
|
-
* Submits transaction to chain
|
|
163
|
-
*
|
|
164
|
-
* @param transaction
|
|
165
|
-
* @returns PendingTransactionResponse
|
|
166
|
-
*/
|
|
167
|
-
submitTransaction(transaction: InputSubmitTransactionData): Promise<PendingTransactionResponse>;
|
|
168
|
-
/**
|
|
169
|
-
Event for when account has changed on the wallet
|
|
170
|
-
@return the new account info
|
|
171
|
-
@throws WalletAccountChangeError
|
|
172
|
-
*/
|
|
173
|
-
onAccountChange(): Promise<void>;
|
|
174
|
-
/**
|
|
175
|
-
Event for when network has changed on the wallet
|
|
176
|
-
@return the new network info
|
|
177
|
-
@throws WalletNetworkChangeError
|
|
178
|
-
*/
|
|
179
|
-
onNetworkChange(): Promise<void>;
|
|
180
|
-
/**
|
|
181
|
-
* Sends a change network request to the wallet to change the connected network
|
|
182
|
-
*
|
|
183
|
-
* @param network
|
|
184
|
-
* @returns AptosChangeNetworkOutput
|
|
185
|
-
*/
|
|
186
|
-
changeNetwork(network: Network): Promise<AptosChangeNetworkOutput>;
|
|
187
|
-
/**
|
|
188
|
-
* Signs a message and verifies the signer
|
|
189
|
-
* @param message SignMessagePayload
|
|
190
|
-
* @returns boolean
|
|
191
|
-
*/
|
|
192
|
-
signMessageAndVerify(message: AptosSignMessageInput): Promise<boolean>;
|
|
193
|
-
}
|
|
194
|
-
//# sourceMappingURL=WalletCoreNew.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WalletCoreNew.d.ts","sourceRoot":"","sources":["../src/WalletCoreNew.ts"],"names":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,CAAC;IAyD/C;;;;;;;;;OASG;IACG,eAAe,CACnB,oBAAoB,EAAE,iBAAiB,GAAG,oBAAoB,EAC9D,UAAU,CAAC,EAAE,OAAO,EACpB,OAAO,CAAC,EAAE,+BAA+B,GAAG;QAC1C,wBAAwB,CAAC,EAAE,MAAM,CAAC;QAClC,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B,GACA,OAAO,CAAC,oBAAoB,GAAG,8BAA8B,CAAC;IA6FjE;;;;;;OAMG;IACG,WAAW,CACf,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,sBAAsB,CAAC;IAkBlC;;;;;OAKG;IACG,iBAAiB,CACrB,WAAW,EAAE,0BAA0B,GACtC,OAAO,CAAC,0BAA0B,CAAC;IA+BtC;;;;OAIG;IACG,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAiBtC;;;;OAIG;IACG,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBtC;;;;;OAKG;IACG,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAsCxE;;;;OAIG;IACG,oBAAoB,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,OAAO,CAAC;CA8D7E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WalletCore.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/WalletCore.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AptosStandardWallet } from "../AIP62StandardWallets";
|
|
2
|
-
import { WalletInfo } from "../LegacyWalletPlugins";
|
|
3
|
-
import { AnyAptosWallet } from "../WalletCore";
|
|
4
|
-
/** The base URL for all Aptos Connect wallets. */
|
|
5
|
-
export declare const APTOS_CONNECT_BASE_URL = "https://aptosconnect.app";
|
|
6
|
-
/** The URL to the Aptos Connect account page if the user is signed in to Aptos Connect. */
|
|
7
|
-
export declare const APTOS_CONNECT_ACCOUNT_URL = "https://aptosconnect.app/dashboard/main-account";
|
|
8
|
-
/** Returns `true` if the provided wallet is an Aptos Connect wallet. */
|
|
9
|
-
export declare function isAptosConnectWallet(wallet: WalletInfo | AnyAptosWallet | AptosStandardWallet): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Partitions the `wallets` array so that Aptos Connect wallets are grouped separately from the rest.
|
|
12
|
-
* Aptos Connect is a web wallet that uses social login to create accounts on the blockchain.
|
|
13
|
-
*/
|
|
14
|
-
export declare function getAptosConnectWallets(wallets: ReadonlyArray<AnyAptosWallet>): {
|
|
15
|
-
aptosConnectWallets: AnyAptosWallet[];
|
|
16
|
-
otherWallets: AnyAptosWallet[];
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=aptosConnect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aptosConnect.d.ts","sourceRoot":"","sources":["../../src/utils/aptosConnect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,kDAAkD;AAClD,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AAEjE,2FAA2F;AAC3F,eAAO,MAAM,yBAAyB,oDACa,CAAC;AAEpD,wEAAwE;AACxE,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,UAAU,GAAG,cAAc,GAAG,mBAAmB,WAG1D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,aAAa,CAAC,cAAc,CAAC;;;EAM5E"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export declare const mainnetChains: {
|
|
2
|
-
Ethereum: {
|
|
3
|
-
key: string;
|
|
4
|
-
id: number;
|
|
5
|
-
context: string;
|
|
6
|
-
finalityThreshold: number;
|
|
7
|
-
displayName: string;
|
|
8
|
-
explorerUrl: string;
|
|
9
|
-
explorerName: string;
|
|
10
|
-
gasToken: string;
|
|
11
|
-
chainId: number;
|
|
12
|
-
icon: string;
|
|
13
|
-
maxBlockSearch: number;
|
|
14
|
-
symbol: string;
|
|
15
|
-
};
|
|
16
|
-
Solana: {
|
|
17
|
-
key: string;
|
|
18
|
-
id: number;
|
|
19
|
-
context: string;
|
|
20
|
-
finalityThreshold: number;
|
|
21
|
-
displayName: string;
|
|
22
|
-
explorerUrl: string;
|
|
23
|
-
explorerName: string;
|
|
24
|
-
gasToken: string;
|
|
25
|
-
chainId: number;
|
|
26
|
-
icon: string;
|
|
27
|
-
maxBlockSearch: number;
|
|
28
|
-
symbol: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export declare const AptosMainnetChain: {
|
|
32
|
-
key: string;
|
|
33
|
-
id: number;
|
|
34
|
-
context: string;
|
|
35
|
-
finalityThreshold: number;
|
|
36
|
-
displayName: string;
|
|
37
|
-
explorerUrl: string;
|
|
38
|
-
explorerName: string;
|
|
39
|
-
gasToken: string;
|
|
40
|
-
chainId: number;
|
|
41
|
-
icon: string;
|
|
42
|
-
maxBlockSearch: number;
|
|
43
|
-
symbol: string;
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utils/crossChain/chains/mainnet/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BzB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAa7B,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare const testnetChains: {
|
|
2
|
-
Sepolia: {
|
|
3
|
-
key: string;
|
|
4
|
-
id: number;
|
|
5
|
-
context: string;
|
|
6
|
-
finalityThreshold: number;
|
|
7
|
-
displayName: string;
|
|
8
|
-
explorerUrl: string;
|
|
9
|
-
explorerName: string;
|
|
10
|
-
gasToken: string;
|
|
11
|
-
chainId: number;
|
|
12
|
-
icon: string;
|
|
13
|
-
maxBlockSearch: number;
|
|
14
|
-
symbol: string;
|
|
15
|
-
sdkName: string;
|
|
16
|
-
wrappedGasToken: string;
|
|
17
|
-
};
|
|
18
|
-
Solana: {
|
|
19
|
-
key: string;
|
|
20
|
-
id: number;
|
|
21
|
-
context: string;
|
|
22
|
-
finalityThreshold: number;
|
|
23
|
-
displayName: string;
|
|
24
|
-
explorerUrl: string;
|
|
25
|
-
explorerName: string;
|
|
26
|
-
gasToken: string;
|
|
27
|
-
chainId: number;
|
|
28
|
-
icon: string;
|
|
29
|
-
maxBlockSearch: number;
|
|
30
|
-
symbol: string;
|
|
31
|
-
sdkName: string;
|
|
32
|
-
wrappedGasToken: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export declare const AptosTestnetChain: {
|
|
36
|
-
key: string;
|
|
37
|
-
id: number;
|
|
38
|
-
context: string;
|
|
39
|
-
finalityThreshold: number;
|
|
40
|
-
displayName: string;
|
|
41
|
-
explorerUrl: string;
|
|
42
|
-
explorerName: string;
|
|
43
|
-
gasToken: string;
|
|
44
|
-
chainId: number;
|
|
45
|
-
icon: string;
|
|
46
|
-
maxBlockSearch: number;
|
|
47
|
-
symbol: string;
|
|
48
|
-
sdkName: string;
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utils/crossChain/chains/testnet/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDzB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;CAc7B,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const mainnetChainTokens: Record<string, any>;
|
|
2
|
-
export declare const AptosMainnetUSDCToken: {
|
|
3
|
-
key: string;
|
|
4
|
-
symbol: string;
|
|
5
|
-
nativeChain: string;
|
|
6
|
-
tokenId: {
|
|
7
|
-
chain: string;
|
|
8
|
-
address: string;
|
|
9
|
-
};
|
|
10
|
-
icon: string;
|
|
11
|
-
coinGeckoId: string;
|
|
12
|
-
color: string;
|
|
13
|
-
decimals: number;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=mainnet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mainnet.d.ts","sourceRoot":"","sources":["../../../../src/utils/crossChain/tokens/mainnet.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CA2BlD,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;CAajC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const testnetChainTokens: Record<string, any>;
|
|
2
|
-
export declare const AptosTestnetUSDCToken: {
|
|
3
|
-
symbol: string;
|
|
4
|
-
decimals: number;
|
|
5
|
-
tokenId: {
|
|
6
|
-
chain: string;
|
|
7
|
-
address: string;
|
|
8
|
-
};
|
|
9
|
-
icon: string;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=testnet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testnet.d.ts","sourceRoot":"","sources":["../../../../src/utils/crossChain/tokens/testnet.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CA4BlD,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;CASjC,CAAC"}
|
package/dist/utils/logger.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;mBACF,GAAG,EAAE;oBAKJ,GAAG,EAAE;qBAKJ,GAAG,EAAE;CAKvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scopePollingDetectionStrategy.d.ts","sourceRoot":"","sources":["../../src/utils/scopePollingDetectionStrategy.ts"],"names":[],"mappings":"AAAA,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,MAAM,OAAO,GAAG,IAAI,CA6CzE"}
|