-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move EV5 submitter/transformer types into ethersV5 dir
- Loading branch information
1 parent
5fdaf9a
commit 2806734
Showing
6 changed files
with
31 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
typescript/sdk/src/providers/transactions/submitter/TxSubmitterTypes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,5 @@ | ||
import { Address } from '@hyperlane-xyz/utils'; | ||
|
||
import { ChainName } from '../../../types.js'; | ||
|
||
export enum TxSubmitterType { | ||
JSON_RPC = 'JSON RPC', | ||
IMPERSONATED_ACCOUNT = 'Impersonated Account', | ||
GNOSIS_SAFE = 'Gnosis Safe', | ||
} | ||
|
||
export interface EV5GnosisSafeTxSubmitterProps { | ||
chain: ChainName; | ||
safeAddress: Address; | ||
} | ||
|
||
export interface EV5ImpersonatedAccountTxSubmitterProps { | ||
chain: ChainName; | ||
userAddress: Address; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
typescript/sdk/src/providers/transactions/submitter/ethersV5/EV5TxSubmitterTypes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Address } from '@hyperlane-xyz/utils'; | ||
|
||
import { ChainName } from '../../../../types.js'; | ||
|
||
export interface EV5GnosisSafeTxSubmitterProps { | ||
chain: ChainName; | ||
safeAddress: Address; | ||
} | ||
|
||
export interface EV5ImpersonatedAccountTxSubmitterProps { | ||
chain: ChainName; | ||
userAddress: Address; | ||
} |
10 changes: 10 additions & 0 deletions
10
typescript/sdk/src/providers/transactions/transformer/ethersV5/EV5TxTransformerTypes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { InterchainAccount } from '../../../../middleware/account/InterchainAccount.js'; | ||
import { AccountConfig } from '../../../../middleware/account/types.js'; | ||
import { ChainName } from '../../../../types.js'; | ||
|
||
export interface EV5InterchainAccountTxTransformerProps { | ||
chain: ChainName; | ||
interchainAccount: InterchainAccount; | ||
accountConfig: AccountConfig; | ||
hookMetadata?: string; | ||
} |