@injectivelabs/wallet-evm 1.16.38-alpha.3 → 1.16.38-alpha.4
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/cjs/index.cjs +7 -0
- package/dist/cjs/index.d.cts +5 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +7 -0
- package/package.json +6 -7
package/dist/cjs/index.cjs
CHANGED
|
@@ -351,6 +351,13 @@ var EvmWallet = class extends __injectivelabs_wallet_base.BaseConcreteStrategy {
|
|
|
351
351
|
});
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
+
async getAddressesInfo() {
|
|
355
|
+
throw new __injectivelabs_exceptions.WalletException(/* @__PURE__ */ new Error("getAddressesInfo is not implemented"), {
|
|
356
|
+
code: __injectivelabs_exceptions.UnspecifiedErrorCode,
|
|
357
|
+
type: __injectivelabs_exceptions.ErrorType.WalletError,
|
|
358
|
+
contextModule: __injectivelabs_wallet_base.WalletAction.GetAccounts
|
|
359
|
+
});
|
|
360
|
+
}
|
|
354
361
|
async getSessionOrConfirm(address) {
|
|
355
362
|
return Promise.resolve(`0x${(0, __injectivelabs_sdk_ts_utils.uint8ArrayToHex)((0, __injectivelabs_sdk_ts_utils.stringToUint8Array)(`Confirmation for ${address} at time: ${Date.now()}`))}`);
|
|
356
363
|
}
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -76,6 +76,11 @@ declare class EvmWallet extends BaseConcreteStrategy implements ConcreteWalletSt
|
|
|
76
76
|
enable(): Promise<boolean>;
|
|
77
77
|
disconnect(): Promise<void>;
|
|
78
78
|
getAddresses(): Promise<string[]>;
|
|
79
|
+
getAddressesInfo(): Promise<{
|
|
80
|
+
address: string;
|
|
81
|
+
derivationPath: string;
|
|
82
|
+
baseDerivationPath: string;
|
|
83
|
+
}[]>;
|
|
79
84
|
getSessionOrConfirm(address: AccountAddress): Promise<string>;
|
|
80
85
|
sendEvmTransaction(transaction: unknown, _options: {
|
|
81
86
|
address: AccountAddress;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -76,6 +76,11 @@ declare class EvmWallet extends BaseConcreteStrategy implements ConcreteWalletSt
|
|
|
76
76
|
enable(): Promise<boolean>;
|
|
77
77
|
disconnect(): Promise<void>;
|
|
78
78
|
getAddresses(): Promise<string[]>;
|
|
79
|
+
getAddressesInfo(): Promise<{
|
|
80
|
+
address: string;
|
|
81
|
+
derivationPath: string;
|
|
82
|
+
baseDerivationPath: string;
|
|
83
|
+
}[]>;
|
|
79
84
|
getSessionOrConfirm(address: AccountAddress): Promise<string>;
|
|
80
85
|
sendEvmTransaction(transaction: unknown, _options: {
|
|
81
86
|
address: AccountAddress;
|
package/dist/esm/index.js
CHANGED
|
@@ -351,6 +351,13 @@ var EvmWallet = class extends BaseConcreteStrategy {
|
|
|
351
351
|
});
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
+
async getAddressesInfo() {
|
|
355
|
+
throw new WalletException(/* @__PURE__ */ new Error("getAddressesInfo is not implemented"), {
|
|
356
|
+
code: UnspecifiedErrorCode,
|
|
357
|
+
type: ErrorType.WalletError,
|
|
358
|
+
contextModule: WalletAction.GetAccounts
|
|
359
|
+
});
|
|
360
|
+
}
|
|
354
361
|
async getSessionOrConfirm(address) {
|
|
355
362
|
return Promise.resolve(`0x${uint8ArrayToHex(stringToUint8Array(`Confirmation for ${address} at time: ${Date.now()}`))}`);
|
|
356
363
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injectivelabs/wallet-evm",
|
|
3
|
-
"version": "1.16.38-alpha.
|
|
3
|
+
"version": "1.16.38-alpha.4",
|
|
4
4
|
"description": "EVM wallet strategies for use with @injectivelabs/wallet-core.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -38,12 +38,11 @@
|
|
|
38
38
|
"dist"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@injectivelabs/exceptions": "1.16.38-alpha.
|
|
42
|
-
"@injectivelabs/
|
|
43
|
-
"@injectivelabs/
|
|
44
|
-
"@injectivelabs/
|
|
45
|
-
"@injectivelabs/wallet-base": "1.16.38-alpha.
|
|
46
|
-
"@injectivelabs/ts-types": "1.16.38-alpha.1"
|
|
41
|
+
"@injectivelabs/exceptions": "1.16.38-alpha.3",
|
|
42
|
+
"@injectivelabs/ts-types": "1.16.38-alpha.2",
|
|
43
|
+
"@injectivelabs/utils": "1.16.38-alpha.3",
|
|
44
|
+
"@injectivelabs/sdk-ts": "1.16.38-alpha.4",
|
|
45
|
+
"@injectivelabs/wallet-base": "1.16.38-alpha.4"
|
|
47
46
|
},
|
|
48
47
|
"publishConfig": {
|
|
49
48
|
"access": "public"
|