Skip to content

Commit 3b986d5

Browse files
committed
[MNY-201] SDK: Rename leftover of Universal Bridge to Bridge (#8117)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on renaming references from `Universal Bridge` to `Bridge` across multiple files to standardize terminology and improve clarity. ### Detailed summary - Updated comments and documentation to replace `Universal Bridge` with `Bridge`. - Modified error messages in `apps/dashboard/src/@/api/analytics.ts` to reflect the new terminology. - Changed descriptions in various files related to `Chain`, `Token`, `Quote`, and webhooks to use `Bridge`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent ee4e13e commit 3b986d5

File tree

13 files changed

+21
-21
lines changed

13 files changed

+21
-21
lines changed

apps/dashboard/src/@/api/analytics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ const cached_getUniversalBridgeUsage = unstable_cache(
592592
if (res?.status !== 200) {
593593
const reason = await res?.text();
594594
console.error(
595-
`Failed to fetch universal bridge stats: ${res?.status} - ${res.statusText} - ${reason}`,
595+
`Failed to fetch bridge stats: ${res?.status} - ${res.statusText} - ${reason}`,
596596
);
597597
return [];
598598
}
@@ -636,7 +636,7 @@ const cached_getUniversalBridgeWalletUsage = unstable_cache(
636636
if (res?.status !== 200) {
637637
const reason = await res?.text();
638638
console.error(
639-
`Failed to fetch universal bridge wallet stats: ${res?.status} - ${res.statusText} - ${reason}`,
639+
`Failed to fetch bridge wallet stats: ${res?.status} - ${res.statusText} - ${reason}`,
640640
);
641641
return [];
642642
}

packages/thirdweb/src/bridge/Buy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { ApiError } from "./types/Errors.js";
99
import type { PreparedQuote, Quote } from "./types/Quote.js";
1010

1111
/**
12-
* Retrieves a Universal Bridge quote for the provided buy intent. The quote will specify the necessary `originAmount` to receive the desired `destinationAmount`, which is specified with the `buyAmountWei` option.
12+
* Retrieves a Bridge quote for the provided buy intent. The quote will specify the necessary `originAmount` to receive the desired `destinationAmount`, which is specified with the `buyAmountWei` option.
1313
*
1414
* @example
1515
* ```typescript
@@ -209,7 +209,7 @@ export declare namespace quote {
209209
}
210210

211211
/**
212-
* Prepares a **finalized** Universal Bridge quote for the provided buy request with transaction data. This function will return everything `quote` does, with the addition of a series of prepared transactions and the associated expiration timestamp.
212+
* Prepares a **finalized** Bridge quote for the provided buy request with transaction data. This function will return everything `quote` does, with the addition of a series of prepared transactions and the associated expiration timestamp.
213213
*
214214
* @example
215215
* ```typescript

packages/thirdweb/src/bridge/Chains.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { Chain } from "./types/Chain.js";
66
import { ApiError } from "./types/Errors.js";
77

88
/**
9-
* Retrieves supported Universal Bridge chains.
9+
* Retrieves supported Bridge chains.
1010
*
1111
* @example
1212
* ```typescript

packages/thirdweb/src/bridge/Routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ApiError } from "./types/Errors.js";
66
import type { Route } from "./types/Route.js";
77

88
/**
9-
* Retrieves supported Universal Bridge routes based on the provided filters.
9+
* Retrieves supported Bridge routes based on the provided filters.
1010
*
1111
* When multiple filters are specified, a route must satisfy all filters to be included (it acts as an AND operator).
1212
*

packages/thirdweb/src/bridge/Sell.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { ApiError } from "./types/Errors.js";
99
import type { PreparedQuote, Quote } from "./types/Quote.js";
1010

1111
/**
12-
* Retrieves a Universal Bridge quote for the provided sell intent. The quote will specify the expected `destinationAmount` that will be received in exchange for the specified `originAmount`, which is specified with the `sellAmountWei` option.
12+
* Retrieves a Bridge quote for the provided sell intent. The quote will specify the expected `destinationAmount` that will be received in exchange for the specified `originAmount`, which is specified with the `sellAmountWei` option.
1313
*
1414
* @example
1515
* ```typescript
@@ -200,7 +200,7 @@ export declare namespace quote {
200200
}
201201

202202
/**
203-
* Prepares a **finalized** Universal Bridge quote for the provided sell request with transaction data. This function will return everything `quote` does, with the addition of a series of prepared transactions and the associated expiration timestamp.
203+
* Prepares a **finalized** Bridge quote for the provided sell request with transaction data. This function will return everything `quote` does, with the addition of a series of prepared transactions and the associated expiration timestamp.
204204
*
205205
* @example
206206
* ```typescript

packages/thirdweb/src/bridge/Status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ApiError } from "./types/Errors.js";
77
import type { Status } from "./types/Status.js";
88

99
/**
10-
* Retrieves a Universal Bridge quote for the provided sell intent. The quote will specify the expected `destinationAmount` that will be received in exchange for the specified `originAmount`, which is specified with the `sellAmountWei` option.
10+
* Retrieves a Bridge quote for the provided sell intent. The quote will specify the expected `destinationAmount` that will be received in exchange for the specified `originAmount`, which is specified with the `sellAmountWei` option.
1111
*
1212
* The returned status will include both the origin and destination transactions and any finalized amounts for the route.
1313
*

packages/thirdweb/src/bridge/Token.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ApiError } from "./types/Errors.js";
55
import type { Token, TokenWithPrices } from "./types/Token.js";
66

77
/**
8-
* Retrieves supported Universal Bridge tokens based on the provided filters.
8+
* Retrieves supported Bridge tokens based on the provided filters.
99
*
1010
* When multiple filters are specified, a token must satisfy all filters to be included (it acts as an AND operator).
1111
*
@@ -226,9 +226,9 @@ export declare namespace tokens {
226226
}
227227

228228
/**
229-
* Adds a token to the Universal Bridge for indexing.
229+
* Adds a token to the Bridge for indexing.
230230
*
231-
* This function requests the Universal Bridge to index a specific token on a given chain.
231+
* This function requests the Bridge to index a specific token on a given chain.
232232
* Once indexed, the token will be available for cross-chain operations.
233233
*
234234
* @example

packages/thirdweb/src/bridge/Transfer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { ApiError } from "./types/Errors.js";
99
import type { PreparedQuote } from "./types/Quote.js";
1010

1111
/**
12-
* Prepares a **finalized** Universal Bridge quote for the provided transfer request with transaction data.
12+
* Prepares a **finalized** Bridge quote for the provided transfer request with transaction data.
1313
*
1414
* @example
1515
* ```typescript

packages/thirdweb/src/bridge/Webhook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export type WebhookPayload = Exclude<
9090
>;
9191

9292
/**
93-
* Parses an incoming Universal Bridge webhook payload.
93+
* Parses an incoming Bridge webhook payload.
9494
*
9595
* @param payload - The raw text body received from thirdweb.
9696
* @param headers - The webhook headers received from thirdweb.

packages/thirdweb/src/bridge/types/Chain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Represents a blockchain chain in the Universal Bridge.
2+
* Represents a blockchain chain in the Bridge.
33
* @public
44
*/
55
export interface Chain {

0 commit comments

Comments
 (0)