Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/explorer/src/components/Bridge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export const getTransferTypeLabel = (transferType: TransferType | OperationType
return "Axelar";
case TransferType.cctpTransfer:
return "CCTP";
case TransferType.cctpTransferV2:
return "CCTP v2";
case TransferType.hyperlaneTransfer:
return "Hyperlane";
case TransferType.opInitTransfer:
Expand Down
6 changes: 6 additions & 0 deletions packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @skip-go/client

## 1.5.17

### Patch Changes

- 90d1ef5: Handle `cctp_transfer_v2` entries in transaction status responses. They previously fell through the transfer type checks, leaving the event without a type, chain ids or explorer links, and reporting a `failed` status while the transfer was still pending.

## 1.5.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@skip-go/client",
"description": "JavaScript SDK for Skip Go API",
"version": "1.5.16",
"version": "1.5.17",
"repository": "https://github.com/skip-mev/skip-go",
"type": "module",
"main": "./dist/cjs/index.cjs",
Expand Down
2 changes: 2 additions & 0 deletions packages/client/src/types/swaggerTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,8 @@ export interface TransferEvent {
ibcTransfer?: IBCTransferInfo;
axelarTransfer?: AxelarTransferInfo;
cctpTransfer?: CCTPTransferInfo;
/** Status of a transfer facilitated by the CCTP V2 bridge, which is reported in the same shape as CCTP V1 */
cctpTransferV2?: CCTPTransferInfo;
hyperlaneTransfer?: HyperlaneTransferInfo;
opInitTransfer?: OPInitTransferInfo;
stargateTransfer?: StargateTransferInfo;
Expand Down
7 changes: 7 additions & 0 deletions packages/client/src/utils/clientType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ function getClientTransferEvent(transferEvent: TransferEvent) {
combinedTransferEvent?.axelarTransfer as AxelarTransferInfo;
const ibcTransfer = combinedTransferEvent?.ibcTransfer as IBCTransferInfo;
const cctpTransfer = combinedTransferEvent?.cctpTransfer as CCTPTransferInfo;
const cctpTransferV2 =
combinedTransferEvent?.cctpTransferV2 as CCTPTransferInfo;
const hyperlaneTransfer =
combinedTransferEvent?.hyperlaneTransfer as HyperlaneTransferInfo;
const opInitTransfer =
Expand All @@ -279,6 +281,8 @@ function getClientTransferEvent(transferEvent: TransferEvent) {
transferType = TransferType.ibcTransfer;
} else if (cctpTransfer) {
transferType = TransferType.cctpTransfer;
} else if (cctpTransferV2) {
transferType = TransferType.cctpTransferV2;
} else if (hyperlaneTransfer) {
transferType = TransferType.hyperlaneTransfer;
} else if (opInitTransfer) {
Expand Down Expand Up @@ -424,6 +428,7 @@ function getClientTransferEvent(transferEvent: TransferEvent) {
...ibcTransfer,
...axelarTransfer,
...cctpTransfer,
...cctpTransferV2,
...hyperlaneTransfer,
...stargateTransfer,
...hyperlaneTransfer,
Expand Down Expand Up @@ -516,6 +521,7 @@ type CombinedTransferEvent = {
[TransferType.ibcTransfer]: IBCTransferInfo;
[TransferType.axelarTransfer]: AxelarTransferInfo;
[TransferType.cctpTransfer]: CCTPTransferInfo;
[TransferType.cctpTransferV2]: CCTPTransferInfo;
[TransferType.hyperlaneTransfer]: HyperlaneTransferInfo;
[TransferType.opInitTransfer]: OPInitTransferInfo;
[TransferType.goFastTransfer]: GoFastTransferInfo;
Expand All @@ -528,6 +534,7 @@ export enum TransferType {
ibcTransfer = "ibcTransfer",
axelarTransfer = "axelarTransfer",
cctpTransfer = "cctpTransfer",
cctpTransferV2 = "cctpTransferV2",
hyperlaneTransfer = "hyperlaneTransfer",
opInitTransfer = "opInitTransfer",
goFastTransfer = "goFastTransfer",
Expand Down
8 changes: 8 additions & 0 deletions packages/widget/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
## 0.0.15

## 3.16.1

### Patch Changes

- 90d1ef5: Handle `cctp_transfer_v2` entries in transaction status responses. They previously fell through the transfer type checks, leaving the event without a type, chain ids or explorer links, and reporting a `failed` status while the transfer was still pending.
- Updated dependencies [90d1ef5]
- @skip-go/client@1.5.17

## 3.16.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/widget/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@skip-go/widget",
"description": "Swap widget",
"version": "3.16.0",
"version": "3.16.1",
"repository": {
"url": "https://github.com/skip-mev/skip-go",
"directory": "packages/widget"
Expand Down
Loading