-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish migrating warp UI utils + adapters to SDK (#2711)
### Description - Build on #2684, migrates the EvmAdapter and missing utils from the warp UI - Remove the token App as it's unused and redundant with adapters - Add IGP serialization code for #2546 - Simplify multi-protocol adapters in SDK - Make token adapters extend base adapters - Move token serialization code to token package ### Drive-by changes - Update Sepolia RPC which was causing errors ### Related issues #2652 ### Backward compatibility Yes ### Testing Tested these in warp UI --------- Co-authored-by: Yorke Rhodes <yorke@hyperlane.xyz>
- Loading branch information
Showing
40 changed files
with
1,108 additions
and
674 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
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
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,25 +1,24 @@ | ||
import { | ||
ChainName, | ||
IRouterAdapter, | ||
RouterAddress, | ||
TypedTransaction, | ||
} from '@hyperlane-xyz/sdk'; | ||
import { Address } from '@hyperlane-xyz/utils'; | ||
|
||
import { StatCounts } from '../app/types'; | ||
|
||
export interface IHelloWorldAdapter | ||
extends IRouterAdapter<RouterAddress & { mailbox: Address }> { | ||
export interface IHelloWorldAdapter extends IRouterAdapter { | ||
populateSendHelloTx: ( | ||
origin: ChainName, | ||
destination: ChainName, | ||
message: string, | ||
value: string, | ||
sender: Address, | ||
) => Promise<TypedTransaction>; | ||
|
||
// TODO break apart into separate origin + destination methods to | ||
// handle case where origin/dest protocols differ | ||
channelStats: ( | ||
origin: ChainName, | ||
destination: ChainName, | ||
destinationMailbox: Address, | ||
) => Promise<StatCounts>; | ||
} |
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
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
Oops, something went wrong.