From ac0eecebfd14b67faecf7d0084c7dbfb00141934 Mon Sep 17 00:00:00 2001 From: Roger <50648015+RogerLamTd@users.noreply.github.com> Date: Fri, 28 Jul 2023 13:55:21 -0400 Subject: [PATCH 01/54] docs(website): add error code to node troubleshooting (#14316) --- .../website/pages/docs/reference/node-troubleshooting.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/website/pages/docs/reference/node-troubleshooting.mdx b/packages/website/pages/docs/reference/node-troubleshooting.mdx index d57310a3ecf..b81fe064080 100644 --- a/packages/website/pages/docs/reference/node-troubleshooting.mdx +++ b/packages/website/pages/docs/reference/node-troubleshooting.mdx @@ -91,6 +91,10 @@ If you do not want to delete the node folder, please follow one of these steps b When running a L3 node, users may run into this issue if their underlying L2 is still syncing. Please wait until your L2 is fully synced before starting your L3 node. +#### `Failed to start Taiko client with error code 1 | project ID does not have access to archive state` + +The L1 node that the user is pointing to is not an archive node. Please change your RPC endpoint to point to an archive node. + {" "} From 3c37431aa74b953089a099d939712144dedf52e1 Mon Sep 17 00:00:00 2001 From: Kenk Date: Sat, 29 Jul 2023 22:09:23 +0200 Subject: [PATCH 02/54] feat(website): add polyhedra to the ecosystem (#14317) --- .../components/Ecosystem/EcosystemSection.tsx | 21 ++++++++++++------- .../public/images/ecosystem/polyhedra.svg | 13 ++++++++++++ 2 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 packages/website/public/images/ecosystem/polyhedra.svg diff --git a/packages/website/components/Ecosystem/EcosystemSection.tsx b/packages/website/components/Ecosystem/EcosystemSection.tsx index 87e2bc4ed8d..44e359ce66a 100644 --- a/packages/website/components/Ecosystem/EcosystemSection.tsx +++ b/packages/website/components/Ecosystem/EcosystemSection.tsx @@ -154,6 +154,15 @@ const ecosystemData: EcosystemData[] = [ filters: [], isLive: true, }, + { + icon: "/images/ecosystem/polyhedra.svg", + name: "Polyhedra", + link: "https://polyhedra.network/", + description: + "Polyhedra Network is building the infrastructure for Web3 interoperability with efficient zero-knowledge proof protocols. Polyhedra Network designs and implements zkBridge, providing trustless and efficient cross-chain infrastructures for layer-1 and layer-2 interoperability.", + filters: ["zk"], + isLive: true, + }, { icon: "/images/ecosystem/rai-finance.png", name: "RAI Finance", @@ -322,15 +331,13 @@ export function EcosystemSection() { function FilterLabel({ text, activeFilter, setActiveFilter }) { const isActive = activeFilter === text; - const buttonStyles = `border rounded-full py-1 px-4 text-sm focus:outline-none transition-colors duration-200 font-bold ${ - isActive - ? "bg-gray-300 text-black" - : "bg-white text-gray-700 dark:bg-black dark:text-gray-300" - } ${ - isActive + const buttonStyles = `border rounded-full py-1 px-4 text-sm focus:outline-none transition-colors duration-200 font-bold ${isActive + ? "bg-gray-300 text-black" + : "bg-white text-gray-700 dark:bg-black dark:text-gray-300" + } ${isActive ? "hover:bg-gray-400" : "hover:bg-neutral-100 dark:hover:bg-neutral-800" - }`; + }`; return ( + + +{/if} diff --git a/packages/pos-dashboard/src/components/Button.svelte b/packages/pos-dashboard/src/components/Button.svelte new file mode 100644 index 00000000000..bc3ff8f75c8 --- /dev/null +++ b/packages/pos-dashboard/src/components/Button.svelte @@ -0,0 +1,16 @@ + + + + diff --git a/packages/pos-dashboard/src/components/ButtonWithTooltip.svelte b/packages/pos-dashboard/src/components/ButtonWithTooltip.svelte new file mode 100644 index 00000000000..dbfc1b154c7 --- /dev/null +++ b/packages/pos-dashboard/src/components/ButtonWithTooltip.svelte @@ -0,0 +1,12 @@ + + +
+ + +
diff --git a/packages/pos-dashboard/src/components/ChainDropdown.svelte b/packages/pos-dashboard/src/components/ChainDropdown.svelte new file mode 100644 index 00000000000..de1a78bc419 --- /dev/null +++ b/packages/pos-dashboard/src/components/ChainDropdown.svelte @@ -0,0 +1,76 @@ + + + diff --git a/packages/pos-dashboard/src/components/ConnectWallet.svelte b/packages/pos-dashboard/src/components/ConnectWallet.svelte new file mode 100644 index 00000000000..d2d0dc64956 --- /dev/null +++ b/packages/pos-dashboard/src/components/ConnectWallet.svelte @@ -0,0 +1,83 @@ + + + + + (isConnectWalletModalOpen = false)}> +
+ {#each wagmiClient.connectors as connector} + + {/each} +
+
diff --git a/packages/pos-dashboard/src/components/CurrentProvers/CurrentProvers.svelte b/packages/pos-dashboard/src/components/CurrentProvers/CurrentProvers.svelte new file mode 100644 index 00000000000..cef9ff614df --- /dev/null +++ b/packages/pos-dashboard/src/components/CurrentProvers/CurrentProvers.svelte @@ -0,0 +1,35 @@ + + +
+ Address + Amount + Capacity + RewardPerGas + {#each provers as prover} + + + window.open( + `https://explorer.test.taiko.xyz/address/${prover.address}`, + '_blank', + )}>{truncateString(prover.address, 8)}... + {ethers.utils.formatUnits(prover.amountStaked.toString(), 8)} + {prover.currentCapacity} + {prover.rewardPerGas} + + {/each} +
diff --git a/packages/pos-dashboard/src/components/CurrentProvers/index.ts b/packages/pos-dashboard/src/components/CurrentProvers/index.ts new file mode 100644 index 00000000000..f78513c64a6 --- /dev/null +++ b/packages/pos-dashboard/src/components/CurrentProvers/index.ts @@ -0,0 +1 @@ +export { default } from './CurrentProvers.svelte'; diff --git a/packages/pos-dashboard/src/components/Events/Event.svelte b/packages/pos-dashboard/src/components/Events/Event.svelte new file mode 100644 index 00000000000..dbfd0e8bbd8 --- /dev/null +++ b/packages/pos-dashboard/src/components/Events/Event.svelte @@ -0,0 +1,20 @@ + + + + + + + + {event.data.Raw.transactionHash} + + + + diff --git a/packages/pos-dashboard/src/components/Events/EventDetail.svelte b/packages/pos-dashboard/src/components/Events/EventDetail.svelte new file mode 100644 index 00000000000..bd4ac4cdc0f --- /dev/null +++ b/packages/pos-dashboard/src/components/Events/EventDetail.svelte @@ -0,0 +1,87 @@ + + + + + + + + + {#if transaction.message} + + + + + + + + + + + + + {#if transaction.message.callValue} + + + + + {/if} + {#if transaction.message.processingFee} + + + + + {/if} + + + + + + +
Tx hash + + {addressSubsection(transaction.hash)} + + +
Sender + {addressSubsection(transaction.message.sender)} +
Owner + {addressSubsection(transaction.message.owner)} +
Refund address + {addressSubsection(transaction.message.refundAddress)} +
Call value + {ethers.utils.formatEther(transaction.message.callValue.toString())} + ETH +
Processing fee + {ethers.utils.formatEther(transaction.message.processingFee)} ETH +
Gas limit + {transaction.message.gasLimit} +
Memo +