From 875e3e3b237860ede64375d071ce293ccacf5c79 Mon Sep 17 00:00:00 2001 From: Jennifer Echenim Date: Tue, 19 Dec 2023 12:36:34 +0100 Subject: [PATCH 1/3] [Tenscan] address and tx placeholder page for MetaMask redirect link (#1705) * feat: address placeholder page * add home url * Update image source and alt text in `EmptyState` component * add tx details page * update tenscan link --- .../frontend/pages/address/[address].tsx | 23 ++++++++++++++++++ .../frontend/pages/tx/[hash].tsx | 23 ++++++++++++++++++ .../frontend/public/assets/images/clock.png | Bin 0 -> 10767 bytes .../src/components/layouts/footer.tsx | 21 ++++++++++------ .../components/modules/common/empty-state.tsx | 11 +++++++++ .../frontend/src/lib/constants.ts | 5 ++-- 6 files changed, 73 insertions(+), 10 deletions(-) create mode 100644 tools/obscuroscan_v3/frontend/pages/address/[address].tsx create mode 100644 tools/obscuroscan_v3/frontend/pages/tx/[hash].tsx create mode 100644 tools/obscuroscan_v3/frontend/public/assets/images/clock.png diff --git a/tools/obscuroscan_v3/frontend/pages/address/[address].tsx b/tools/obscuroscan_v3/frontend/pages/address/[address].tsx new file mode 100644 index 0000000000..bb8a057374 --- /dev/null +++ b/tools/obscuroscan_v3/frontend/pages/address/[address].tsx @@ -0,0 +1,23 @@ +import Layout from "@/src/components/layouts/default-layout"; +import EmptyState from "@/src/components/modules/common/empty-state"; +import { Button } from "@/src/components/ui/button"; +import { useRouter } from "next/router"; +import React from "react"; + +const AddressDetails = () => { + const { push } = useRouter(); + + return ( + + push("/")}>Go Home} + /> + + ); +}; + +export default AddressDetails; diff --git a/tools/obscuroscan_v3/frontend/pages/tx/[hash].tsx b/tools/obscuroscan_v3/frontend/pages/tx/[hash].tsx new file mode 100644 index 0000000000..b1b9ea7402 --- /dev/null +++ b/tools/obscuroscan_v3/frontend/pages/tx/[hash].tsx @@ -0,0 +1,23 @@ +import Layout from "@/src/components/layouts/default-layout"; +import EmptyState from "@/src/components/modules/common/empty-state"; +import { Button } from "@/src/components/ui/button"; +import { useRouter } from "next/router"; +import React from "react"; + +const TransactionDetails = () => { + const { push } = useRouter(); + + return ( + + push("/")}>Go Home} + /> + + ); +}; + +export default TransactionDetails; diff --git a/tools/obscuroscan_v3/frontend/public/assets/images/clock.png b/tools/obscuroscan_v3/frontend/public/assets/images/clock.png new file mode 100644 index 0000000000000000000000000000000000000000..68de17ce0b49ebc7ddae2b28c3ea3bfb3eb67064 GIT binary patch literal 10767 zcmZvCQ+Op@&-UK6ZB1<(Q`@#}Pwnp7nA)7$?$qtBIkl&@-A?;I@5z7k9b{!C2RXQ} zm8>M!9j&4yjf_Bm0001xWo0DP{?k7Hi8ma~f9GkDg7BlgeCNasUqM#UDsBuH8UCs8dvgl)Z|qR<~Hc^2m>0$VE0C+Y!foCjmigk zxR0ILjKMFT`JBEs04}Ye3u!^eF_Uf3zmrI0iVr-ui#D`@c)oPG-xUB>B(4OM!vz3$ z^VG21{WN7oj6R*TeyF`nAu>kD3?QK+zrcyiTEL`x&BtuLpf0C!)~WX*w%H|Q9vYH8 z;D-O4DkTuMYQT`QRKRAJ5J4n_VX1=)&45_WME@h^9}<>4Gxe2u{bU>2%>^&UE;set zIgtiR4OuX>lTWjUdT?x?nIRFyn-t^3v_?eq9cH=hzr=#?+V7i}?bj%~5JiX(2mgdS z*mAt4zaqfreI>oltx(#oj(BjaCB_9`5kjA8oJnfu{ZkGw6g?zJ*4RmlaA*Rt5$Y(e zZ6U7oWfumhgTClC0VFn#FoS25P-$$1+gMlGVsYZk>Ch+TP@72`c&ldL<{vsu^^ztI z{D)ka%*PX?yF^n#^EYON zDRaOE^u-U!-I`tuBrmLf1^38kGn(C%xd-lRt}fA$&$Lf=eI#`k+FBNo1{bI^ci4WG z-e3daQD|WHx(MG%`hjn({;pWd8%1`bASr?{nYx516vBElZg1~@SfDhO=@c_wT~zPp$4t> zD96z=h+}?1-b1@lvR6{ruP8_+Nl_b={TeZ*^quLxNSkOio7g7x0Sr3T%)p~>kw`Dp zDs(N#YV`9}GxKq@z41xu$E-JulR!)lkH-T@m4a9N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-x4GJND_@u z^0bri13tw;^(2M`?++*C1J5XNG1s=V4NELJs{QrQyP9k5|Yi}k%Q z97-V8L_>8spgiaPikn>4fao+L<%!T4aJ7HF;#Fwc{dhXqObxHR>+5+{Ru+=u&!anL zocH-J6}&uaXEhK9{9v@Kuk@Ndme698D*rMu+7t@K5=v}d-ovlh9r7RF=+Onc6(z{S zJr@BJ;2sx3GtY+^Lc$Bnn_=AOt5wZS zb=r7;PlQKXOg4627SgL@HAYy-X6-4!zmE?Z3vrvQt;b~{>U`*G`7 zwmJIyp*L}r}>%x#x_D(wSzNc*^+JV^P4?m?J!eS^Se62@h`b|x%;Kri+1IJ zyy+OI|9D>wqzq4S&?#TyeYpX>xNX3U16OqwT*$`Bn z$k_@%gdz3#XB6m7wli?bCo#i2C;p|SJdfO}T_q#RGPai>l33*R-n{2TIClFYLj?Ny zl0MFaBtN(~X-2@RAWcskw&rwIl;wF;TwPhsmv_wU)t{S=XfBbbQ=8-6@{rTh^ zRL6?ULgA|$Qu9Z!yFW{azk#E`-N}pN$)i)V(lIM!QH1&$1Bd;vc~`E^fbpvK{I%d^i?g^*C!H3v=FR^ zH}o6>#DP+jN7yERL%t-)=MSED`*j51|K>gZfA1fkq97Oq4(ER*LBz=a@izgol1dVF IVkV*g4`KMEZU6uP literal 0 HcmV?d00001 diff --git a/tools/obscuroscan_v3/frontend/src/components/layouts/footer.tsx b/tools/obscuroscan_v3/frontend/src/components/layouts/footer.tsx index 8b2d0f52b5..12ca506fa5 100644 --- a/tools/obscuroscan_v3/frontend/src/components/layouts/footer.tsx +++ b/tools/obscuroscan_v3/frontend/src/components/layouts/footer.tsx @@ -1,35 +1,43 @@ -import { socialLinks, version } from "@/src/lib/constants"; +import Link from "next/link"; +import { socialLinks, version } from "../../lib/constants"; import { GitHubLogoIcon, TwitterLogoIcon, DiscordLogoIcon, } from "@radix-ui/react-icons"; -import Link from "next/link"; export default function Footer() { return ( -
-
-
+
+
+ +
+

+ Version: {version || "Unknown"} +

+
Terms -
- Version: {version} -
diff --git a/tools/obscuroscan_v3/frontend/src/components/modules/common/empty-state.tsx b/tools/obscuroscan_v3/frontend/src/components/modules/common/empty-state.tsx index 395376f86c..ba62b14c3b 100644 --- a/tools/obscuroscan_v3/frontend/src/components/modules/common/empty-state.tsx +++ b/tools/obscuroscan_v3/frontend/src/components/modules/common/empty-state.tsx @@ -4,17 +4,28 @@ const EmptyState = ({ title, description, icon, + imageSrc, + imageAlt, action, }: { title?: string; description?: string; icon?: React.ReactNode; + imageSrc?: string; + imageAlt?: string; action?: React.ReactNode; }) => { return (
{icon &&
{icon}
} + {imageSrc && ( + {imageAlt + )} {title && (

{title} diff --git a/tools/walletextension/frontend/src/lib/constants.ts b/tools/walletextension/frontend/src/lib/constants.ts index 888467541a..c53be91c08 100644 --- a/tools/walletextension/frontend/src/lib/constants.ts +++ b/tools/walletextension/frontend/src/lib/constants.ts @@ -1,6 +1,7 @@ -export const tenGatewayAddress = process.env.NEXT_PUBLIC_API_GATEWAY_URL || "http://127.0.0.1:3000"; +export const tenGatewayAddress = + process.env.NEXT_PUBLIC_API_GATEWAY_URL || "http://127.0.0.1:3000"; -export const tenscanLink = "https://testnet.tenscan.com"; +export const tenscanLink = "https://testnet.tenscan.io"; export const socialLinks = { github: "https://github.com/ten-protocol", From 4ee0ccac823b6ebf49d3fc1a4513c58c55c35947 Mon Sep 17 00:00:00 2001 From: Moray Grieve Date: Tue, 19 Dec 2023 11:41:13 +0000 Subject: [PATCH 2/3] Set retention to 7 days for deployer logs (#1706) --- .github/workflows/manual-deploy-testnet-l2.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual-deploy-testnet-l2.yml b/.github/workflows/manual-deploy-testnet-l2.yml index 418f280896..74cea5711f 100644 --- a/.github/workflows/manual-deploy-testnet-l2.yml +++ b/.github/workflows/manual-deploy-testnet-l2.yml @@ -118,7 +118,7 @@ jobs: name: deploy-l1-artifacts path: | deploy-l1-contracts.out - retention-days: 1 + retention-days: 7 deploy: needs: build @@ -324,7 +324,7 @@ jobs: name: deploy-l2-artifacts path: | deploy-l2-contracts.out - retention-days: 1 + retention-days: 7 deploy-faucet: name: 'Trigger Faucet deployment for dev- / testnet on a new deployment' From 98e0913f47afa3b91ecdb4ce6f709bf128b7baa6 Mon Sep 17 00:00:00 2001 From: Tudor Malene Date: Tue, 19 Dec 2023 13:50:18 +0000 Subject: [PATCH 3/3] remove check performed in the mempool (#1708) * remove check performed in the mempool * remove check performed in the mempool * fix flakyness --- go/enclave/enclave.go | 16 ---------------- go/enclave/nodetype/sequencer.go | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/go/enclave/enclave.go b/go/enclave/enclave.go index e63fdf7982..88025246f3 100644 --- a/go/enclave/enclave.go +++ b/go/enclave/enclave.go @@ -499,10 +499,6 @@ func (e *enclaveImpl) SubmitTx(tx common.EncryptedTx) (*responses.RawTx, common. if e.crossChainProcessors.Local.IsSyntheticTransaction(*decryptedTx) { return responses.AsPlaintextError(responses.ToInternalError(fmt.Errorf("synthetic transaction coming from external rpc"))), nil } - if err = e.checkGas(decryptedTx); err != nil { - e.logger.Info("gas check failed", log.ErrKey, err.Error()) - return responses.AsEncryptedError(err, vkHandler), nil - } if err = e.service.SubmitTransaction(decryptedTx); err != nil { e.logger.Debug("Could not submit transaction", log.TxKey, decryptedTx.Hash(), log.ErrKey, err) @@ -1436,18 +1432,6 @@ func (e *revertError) ErrorData() interface{} { return e.reason } -func (e *enclaveImpl) checkGas(tx *types.Transaction) error { - txGasPrice := tx.GasPrice() - if txGasPrice == nil { - return fmt.Errorf("rejected transaction %s. No gas price was set", tx.Hash()) - } - minGasPrice := e.config.MinGasPrice - if txGasPrice.Cmp(minGasPrice) == -1 { - return fmt.Errorf("rejected transaction %s. Gas price was only %d, wanted at least %d", tx.Hash(), txGasPrice, minGasPrice) - } - return nil -} - // Returns the params extracted from an eth_getLogs request. func extractGetLogsParams(paramList []interface{}) (*filters.FilterCriteria, *gethcommon.Address, error) { // We extract the first param, the filter for the logs. diff --git a/go/enclave/nodetype/sequencer.go b/go/enclave/nodetype/sequencer.go index d8a39bf1a7..71fdec925e 100644 --- a/go/enclave/nodetype/sequencer.go +++ b/go/enclave/nodetype/sequencer.go @@ -166,7 +166,7 @@ func (s *sequencer) createGenesisBatch(block *common.L1Block) error { // produce batch #2 which has the message bus and any other system contracts cb, err := s.produceBatch( - batch.Header.SequencerOrderNo.Add(batch.Header.SequencerOrderNo, big.NewInt(1)), + big.NewInt(0).Add(batch.Header.SequencerOrderNo, big.NewInt(1)), block.Hash(), batch.Hash(), common.L2Transactions{msgBusTx},