Skip to content

Commit 43e5cce

Browse files
authored
Merge branch 'main' into ru-locale
2 parents c93d5fe + a9b7633 commit 43e5cce

File tree

21 files changed

+179
-57
lines changed

21 files changed

+179
-57
lines changed

.changeset/cyan-kids-hide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Only onramp for the amount required for transaction flows in PayEmbed

.changeset/fruity-cooks-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Show past transactions in transactions modal screen

.changeset/neat-wasps-count.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/wicked-kings-joke.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

apps/playground-web/src/app/connect/pay/backend/page.tsx

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Button } from "@/components/ui/button";
12
import { Table, TableBody, TableCell, TableRow } from "@/components/ui/table";
23
import Link from "next/link";
34
import { getBridgePaths } from "./utils";
@@ -7,27 +8,39 @@ export default async function Page() {
78
const paths = await getBridgePaths();
89
return (
910
<div className="pb-20">
10-
<h2 className="mb-2 font-semibold text-2xl tracking-tight">
11-
Universal Bridge REST API
12-
</h2>
13-
<p className="mb-5 text-muted-foreground">
14-
Directly interact with the Universal Bridge API from your backend,
15-
using standard REST api.
16-
</p>
11+
<div className="flex flex-col justify-between py-6 md:flex-row md:gap-8">
12+
<div>
13+
<h2 className="mb-2 font-semibold text-2xl tracking-tight">
14+
Universal Bridge REST API
15+
</h2>
16+
<p className="mb-5 text-muted-foreground">
17+
Directly interact with the Universal Bridge API from your backend,
18+
using standard REST APIs.
19+
</p>
20+
</div>
21+
22+
<Link href="https://bridge.thirdweb.com/reference" target="_blank">
23+
<Button className="max-md:w-full">View all endpoints</Button>
24+
</Link>
25+
</div>
1726

1827
<div className="flex flex-col gap-8">
1928
<BlueprintSection
20-
title="Available endpoints"
21-
blueprints={paths.map(([pathName, pathObj]) => {
22-
if (!pathObj) {
23-
throw new Error(`Path not found: ${pathName}`);
24-
}
25-
return {
26-
name: pathName,
27-
description: pathObj.get?.description || "",
28-
link: `/connect/pay/backend/reference?route=${pathName}`,
29-
};
30-
})}
29+
title="Available GET endpoints"
30+
blueprints={paths
31+
.filter(
32+
([_pathName, pathObj]) => typeof pathObj?.get !== "undefined",
33+
)
34+
.map(([pathName, pathObj]) => {
35+
if (!pathObj) {
36+
throw new Error(`Path not found: ${pathName}`);
37+
}
38+
return {
39+
name: pathName,
40+
description: pathObj.get?.description || "",
41+
link: `/connect/pay/backend/reference?route=${pathName}`,
42+
};
43+
})}
3144
/>
3245
</div>
3346
</div>

apps/playground-web/src/app/insight/[blueprint_slug]/blueprint-playground.client.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ export function BlueprintPlaygroundUI(props: {
160160
for (const param of parameters) {
161161
if (param.schema && "type" in param.schema && param.schema.default) {
162162
values[param.name] = param.schema.default;
163+
} else if (param.name === "filter_block_timestamp_gte") {
164+
values[param.name] = Math.floor(
165+
(Date.now() - 3 * 30 * 24 * 60 * 60 * 1000) / 1000,
166+
);
163167
} else {
164168
values[param.name] = "";
165169
}

packages/thirdweb/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# thirdweb
22

3+
## 5.93.9
4+
5+
### Patch Changes
6+
7+
- [#6593](https://github.com/thirdweb-dev/js/pull/6593) [`0dcde07`](https://github.com/thirdweb-dev/js/commit/0dcde077f5cf9b514b66c6768e26f42be9f904b4) Thanks [@kumaryash90](https://github.com/kumaryash90)! - Fix bytecode caching
8+
9+
- [#6588](https://github.com/thirdweb-dev/js/pull/6588) [`cd9ea69`](https://github.com/thirdweb-dev/js/commit/cd9ea69c13c51525c71e274e05a09ad69d054b8c) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Add erc20Value for makeOffer extension function
10+
311
## 5.93.8
412

513
### Patch Changes

packages/thirdweb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "thirdweb",
3-
"version": "5.93.8",
3+
"version": "5.93.9",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/thirdweb-dev/js.git#main"

packages/thirdweb/src/bridge/Buy.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("Bridge.Buy.quote", () => {
3535
});
3636
});
3737

38-
describe("Bridge.Buy.prepare", () => {
38+
describe.runIf(process.env.TW_SECRET_KEY)("Bridge.Buy.prepare", () => {
3939
it("should get a valid prepared quote", async () => {
4040
const quote = await Buy.prepare({
4141
originChainId: 1,

packages/thirdweb/src/bridge/Sell.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("Bridge.Sell.quote", () => {
3535
});
3636
});
3737

38-
describe("Bridge.Sell.prepare", () => {
38+
describe.runIf(process.env.TW_SECRET_KEY)("Bridge.Sell.prepare", () => {
3939
it("should get a valid prepared quote", async () => {
4040
const quote = await Sell.prepare({
4141
originChainId: 1,

0 commit comments

Comments
 (0)