@injectivelabs/wallet-base 1.15.30 → 1.15.32

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.
@@ -50,13 +50,13 @@ export declare enum WalletEventListener {
50
50
  ChainIdChange = "chain-id-change"
51
51
  }
52
52
  export declare const WalletAction: {
53
- SignTransaction: WalletErrorActionModule.SignTransaction;
54
- SignEthereumTransaction: WalletErrorActionModule.SignEthereumTransaction;
55
- SendTransaction: WalletErrorActionModule.SendTransaction;
56
- SendEthereumTransaction: WalletErrorActionModule.SendEthereumTransaction;
57
- SignArbitrary: WalletErrorActionModule.SignArbitrary;
53
+ GetChainId: WalletErrorActionModule.GetChainId;
58
54
  GetAccounts: WalletErrorActionModule.GetAccounts;
59
55
  GetNetworkId: WalletErrorActionModule.GetNetworkId;
60
- GetChainId: WalletErrorActionModule.GetChainId;
61
- GetEthereumTransactionReceipt: WalletErrorActionModule.GetEthereumTransactionReceipt;
56
+ SignArbitrary: WalletErrorActionModule.SignArbitrary;
57
+ SignTransaction: WalletErrorActionModule.SignTransaction;
58
+ SendTransaction: WalletErrorActionModule.SendTransaction;
59
+ SendEvmTransaction: WalletErrorActionModule.SendEvmTransaction;
60
+ SignEvmTransaction: WalletErrorActionModule.SignEvmTransaction;
61
+ GetEvmTransactionReceipt: WalletErrorActionModule.GetEvmTransactionReceipt;
62
62
  };
@@ -25,6 +25,7 @@ export type WalletConnectMetadata = {
25
25
  export interface WalletStrategyEthereumOptions {
26
26
  ethereumChainId: EthereumChainId;
27
27
  rpcUrl?: string;
28
+ rpcUrls?: Record<Partial<EthereumChainId>, string>;
28
29
  }
29
30
  export interface SendTransactionOptions {
30
31
  address: string;
@@ -157,7 +158,7 @@ export interface ConcreteWalletStrategy extends Omit<ConcreteCosmosWalletStrateg
157
158
  * @param transaction should implement TransactionConfig
158
159
  * @param options
159
160
  */
160
- sendEthereumTransaction(transaction: unknown, options: {
161
+ sendEvmTransaction(transaction: unknown, options: {
161
162
  address: string;
162
163
  ethereumChainId: EthereumChainId;
163
164
  }): Promise<string>;
@@ -191,7 +192,7 @@ export interface ConcreteWalletStrategy extends Omit<ConcreteCosmosWalletStrateg
191
192
  signEip712TypedData(eip712TypedData: string, address: string): Promise<string>;
192
193
  signArbitrary(signer: string, data: string | Uint8Array): Promise<string>;
193
194
  getEthereumChainId(): Promise<string>;
194
- getEthereumTransactionReceipt(txHash: string): void;
195
+ getEvmTransactionReceipt(txHash: string, ethereumChainId?: EthereumChainId): void;
195
196
  onAccountChange?(callback: onAccountChangeCallback): Promise<void> | void;
196
197
  onChainIdChange?(callback: onChainIdChangeCallback): Promise<void> | void;
197
198
  disconnect?(): Promise<void> | void;
@@ -214,10 +215,10 @@ export interface WalletStrategy {
214
215
  enable(args?: unknown): Promise<boolean>;
215
216
  enableAndGetAddresses(args?: unknown): Promise<AccountAddress[]>;
216
217
  getEthereumChainId(): Promise<string>;
217
- getEthereumTransactionReceipt(txHash: string): Promise<void>;
218
+ getEvmTransactionReceipt(txHash: string, ethereumChainId?: EthereumChainId): Promise<void>;
218
219
  getSessionOrConfirm(address?: AccountAddress): Promise<string>;
219
220
  sendTransaction(tx: DirectSignResponse | TxRaw, options: SendTransactionOptions): Promise<TxResponse>;
220
- sendEthereumTransaction(tx: any, options: {
221
+ sendEvmTransaction(tx: any, options: {
221
222
  address: AccountAddress;
222
223
  ethereumChainId: EthereumChainId;
223
224
  }): Promise<string>;
@@ -50,13 +50,13 @@ export declare enum WalletEventListener {
50
50
  ChainIdChange = "chain-id-change"
51
51
  }
52
52
  export declare const WalletAction: {
53
- SignTransaction: WalletErrorActionModule.SignTransaction;
54
- SignEthereumTransaction: WalletErrorActionModule.SignEthereumTransaction;
55
- SendTransaction: WalletErrorActionModule.SendTransaction;
56
- SendEthereumTransaction: WalletErrorActionModule.SendEthereumTransaction;
57
- SignArbitrary: WalletErrorActionModule.SignArbitrary;
53
+ GetChainId: WalletErrorActionModule.GetChainId;
58
54
  GetAccounts: WalletErrorActionModule.GetAccounts;
59
55
  GetNetworkId: WalletErrorActionModule.GetNetworkId;
60
- GetChainId: WalletErrorActionModule.GetChainId;
61
- GetEthereumTransactionReceipt: WalletErrorActionModule.GetEthereumTransactionReceipt;
56
+ SignArbitrary: WalletErrorActionModule.SignArbitrary;
57
+ SignTransaction: WalletErrorActionModule.SignTransaction;
58
+ SendTransaction: WalletErrorActionModule.SendTransaction;
59
+ SendEvmTransaction: WalletErrorActionModule.SendEvmTransaction;
60
+ SignEvmTransaction: WalletErrorActionModule.SignEvmTransaction;
61
+ GetEvmTransactionReceipt: WalletErrorActionModule.GetEvmTransactionReceipt;
62
62
  };
@@ -25,6 +25,7 @@ export type WalletConnectMetadata = {
25
25
  export interface WalletStrategyEthereumOptions {
26
26
  ethereumChainId: EthereumChainId;
27
27
  rpcUrl?: string;
28
+ rpcUrls?: Record<Partial<EthereumChainId>, string>;
28
29
  }
29
30
  export interface SendTransactionOptions {
30
31
  address: string;
@@ -157,7 +158,7 @@ export interface ConcreteWalletStrategy extends Omit<ConcreteCosmosWalletStrateg
157
158
  * @param transaction should implement TransactionConfig
158
159
  * @param options
159
160
  */
160
- sendEthereumTransaction(transaction: unknown, options: {
161
+ sendEvmTransaction(transaction: unknown, options: {
161
162
  address: string;
162
163
  ethereumChainId: EthereumChainId;
163
164
  }): Promise<string>;
@@ -191,7 +192,7 @@ export interface ConcreteWalletStrategy extends Omit<ConcreteCosmosWalletStrateg
191
192
  signEip712TypedData(eip712TypedData: string, address: string): Promise<string>;
192
193
  signArbitrary(signer: string, data: string | Uint8Array): Promise<string>;
193
194
  getEthereumChainId(): Promise<string>;
194
- getEthereumTransactionReceipt(txHash: string): void;
195
+ getEvmTransactionReceipt(txHash: string, ethereumChainId?: EthereumChainId): void;
195
196
  onAccountChange?(callback: onAccountChangeCallback): Promise<void> | void;
196
197
  onChainIdChange?(callback: onChainIdChangeCallback): Promise<void> | void;
197
198
  disconnect?(): Promise<void> | void;
@@ -214,10 +215,10 @@ export interface WalletStrategy {
214
215
  enable(args?: unknown): Promise<boolean>;
215
216
  enableAndGetAddresses(args?: unknown): Promise<AccountAddress[]>;
216
217
  getEthereumChainId(): Promise<string>;
217
- getEthereumTransactionReceipt(txHash: string): Promise<void>;
218
+ getEvmTransactionReceipt(txHash: string, ethereumChainId?: EthereumChainId): Promise<void>;
218
219
  getSessionOrConfirm(address?: AccountAddress): Promise<string>;
219
220
  sendTransaction(tx: DirectSignResponse | TxRaw, options: SendTransactionOptions): Promise<TxResponse>;
220
- sendEthereumTransaction(tx: any, options: {
221
+ sendEvmTransaction(tx: any, options: {
221
222
  address: AccountAddress;
222
223
  ethereumChainId: EthereumChainId;
223
224
  }): Promise<string>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/wallet-base",
3
3
  "description": "Base wallet strategy for use with @injectivelabs/wallet-core.",
4
- "version": "1.15.30",
4
+ "version": "1.15.32",
5
5
  "sideEffects": false,
6
6
  "type": "module",
7
7
  "author": {
@@ -56,14 +56,14 @@
56
56
  "start": "node dist/index.js"
57
57
  },
58
58
  "dependencies": {
59
- "@injectivelabs/exceptions": "^1.15.27",
60
- "@injectivelabs/networks": "^1.15.28",
61
- "@injectivelabs/sdk-ts": "^1.15.30",
62
- "@injectivelabs/ts-types": "^1.15.28",
59
+ "@injectivelabs/exceptions": "^1.15.29",
60
+ "@injectivelabs/networks": "^1.15.30",
61
+ "@injectivelabs/sdk-ts": "^1.15.32",
62
+ "@injectivelabs/ts-types": "^1.15.30",
63
63
  "eip1193-provider": "^1.0.1"
64
64
  },
65
65
  "devDependencies": {
66
66
  "shx": "^0.3.3"
67
67
  },
68
- "gitHead": "2c2a365b27e08ad2e0eb06efe3c490c88888fee4"
68
+ "gitHead": "e8fa12c489c4b3432579c5df30fd6f939d57b442"
69
69
  }