chore: Upgrade CosmJS libs to 0.32.4 (#4209)
### Description - Upgrade CosmJS libs to 0.32.4 - Remove explorer dep from ccip-server ### Related issues https://github.com/hyperlane-xyz/hyperlane-warp-ui-template/issues/202 ### Backward compatibility No, major version bump required because CosmJS 0.32 is not backwards compatible with 0.31 ### Testing Tested in Warp UIpull/4216/head
parent
ded5718a09
commit
488f949efa
@ -0,0 +1,6 @@ |
||||
--- |
||||
'@hyperlane-xyz/utils': major |
||||
'@hyperlane-xyz/sdk': major |
||||
--- |
||||
|
||||
Upgrade CosmJS libs to 0.32.4 |
@ -0,0 +1,60 @@ |
||||
// TODO de-dupe this types with the Explorer by moving them to a shared lib
|
||||
// These were originally imported from the explorer package but there were two issues
|
||||
// 1. The explorer is not structured to be a lib (it's an app)
|
||||
// 2. The explorer's deps on monorepo packages created circular deps leading to transitive deps conflicts
|
||||
|
||||
type Address = string; |
||||
|
||||
export enum MessageStatus { |
||||
Unknown = 'unknown', |
||||
Pending = 'pending', |
||||
Delivered = 'delivered', |
||||
Failing = 'failing', |
||||
} |
||||
|
||||
export interface MessageTxStub { |
||||
timestamp: number; |
||||
hash: string; |
||||
from: Address; |
||||
} |
||||
|
||||
export interface MessageTx extends MessageTxStub { |
||||
to: Address; |
||||
blockHash: string; |
||||
blockNumber: number; |
||||
mailbox: Address; |
||||
nonce: number; |
||||
gasLimit: number; |
||||
gasPrice: number; |
||||
effectiveGasPrice: number; |
||||
gasUsed: number; |
||||
cumulativeGasUsed: number; |
||||
maxFeePerGas: number; |
||||
maxPriorityPerGas: number; |
||||
} |
||||
|
||||
export interface MessageStub { |
||||
status: MessageStatus; |
||||
id: string; // Database id
|
||||
msgId: string; // Message hash
|
||||
nonce: number; // formerly leafIndex
|
||||
sender: Address; |
||||
recipient: Address; |
||||
originChainId: number; |
||||
originDomainId: number; |
||||
destinationChainId: number; |
||||
destinationDomainId: number; |
||||
origin: MessageTxStub; |
||||
destination?: MessageTxStub; |
||||
isPiMsg?: boolean; |
||||
} |
||||
|
||||
export interface Message extends MessageStub { |
||||
body: string; |
||||
decodedBody?: string; |
||||
origin: MessageTx; |
||||
destination?: MessageTx; |
||||
totalGasAmount?: string; |
||||
totalPayment?: string; |
||||
numPayments?: number; |
||||
} |
Loading…
Reference in new issue