From 062caa4389139743135d9691b921427245b94080 Mon Sep 17 00:00:00 2001 From: toniocodo Date: Tue, 23 Jul 2024 14:57:58 +0200 Subject: [PATCH] chore: update rpc, locale, gql --- apps/defi/.env | 2 +- apps/defi/src/lang/en.json | 172 ++++++++++++++++-- apps/defi/src/lang/extracts/en.json | 78 +++++++- .../shared/src/queries/snapshot.generated.ts | 51 +++++- .../proposals/src/snapshot.generated.ts | 51 +++++- 5 files changed, 324 insertions(+), 30 deletions(-) diff --git a/apps/defi/.env b/apps/defi/.env index aa8f0c724..efe806b35 100644 --- a/apps/defi/.env +++ b/apps/defi/.env @@ -1,6 +1,6 @@ # TODO remove after tenderly testing # Set this to any custom RPC to override public endpoint -VITE_CUSTOM_RPC="https://virtual.mainnet.rpc.tenderly.co/4817f636-347f-492b-82f0-778d2dfd051a" +VITE_CUSTOM_RPC="https://virtual.mainnet.rpc.tenderly.co/ddcbdc85-1370-4fe6-bae8-7b64bb0ba8dc" # Wallet Connect v2 project id VITE_WALLET_CONNECT_PROJECT_ID= diff --git a/apps/defi/src/lang/en.json b/apps/defi/src/lang/en.json index 10fa6269e..802508c74 100644 --- a/apps/defi/src/lang/en.json +++ b/apps/defi/src/lang/en.json @@ -1,4 +1,10 @@ { + "+0NTt9": [ + { + "type": 0, + "value": "Withdrawal request is taking a long time to process" + } + ], "+0zAiT": [ { "type": 0, @@ -59,6 +65,12 @@ "value": "Amount" } ], + "/2Xryp": [ + { + "type": 0, + "value": "Claimed Withdrawal" + } + ], "/6/sPX": [ { "type": 0, @@ -229,12 +241,6 @@ "value": "Return to Home Page" } ], - "2+4p9v": [ - { - "type": 0, - "value": "Claim tab" - } - ], "2/2yg+": [ { "type": 0, @@ -307,6 +313,12 @@ "value": "Legacy governance" } ], + "3cpPa4": [ + { + "type": 0, + "value": "Claiming your withdrawal will incur this estimated additional gas fee" + } + ], "3lOoIq": [ { "offset": 0, @@ -395,6 +407,12 @@ "value": "monthDuration" } ], + "3t3uoD": [ + { + "type": 0, + "value": "You have no withdrawal requests" + } + ], "3townk": [ { "type": 0, @@ -493,6 +511,12 @@ "value": "No description" } ], + "5yP3uI": [ + { + "type": 0, + "value": "Claim Withdrawal" + } + ], "5zH79K": [ { "type": 0, @@ -553,6 +577,12 @@ "value": "Amount to Stake" } ], + "7+beT+": [ + { + "type": 0, + "value": "~30 min - few days" + } + ], "7CPiAt": [ { "type": 0, @@ -893,6 +923,12 @@ "value": "Stablecoin mix" } ], + "DK7ein": [ + { + "type": 0, + "value": "Your pending amount" + } + ], "DKaqyQ": [ { "type": 0, @@ -991,6 +1027,12 @@ "value": "symbolOut" } ], + "EJv8r2": [ + { + "type": 0, + "value": "Refresh the page" + } + ], "EMU/OA": [ { "type": 0, @@ -1105,6 +1147,12 @@ "value": "Waiting for CCIP" } ], + "Gtdie8": [ + { + "type": 0, + "value": "Available to claim" + } + ], "H1+3mH": [ { "type": 0, @@ -1191,12 +1239,24 @@ "value": "Error while enabling rebasing" } ], + "IZFEUg": [ + { + "type": 0, + "value": "Ready" + } + ], "IfZsEo": [ { "type": 0, "value": "Vote against" } ], + "IuFETn": [ + { + "type": 0, + "value": "Duration" + } + ], "IzHsvX": [ { "type": 0, @@ -1371,6 +1431,12 @@ "value": "Reload Page" } ], + "MTN/Zf": [ + { + "type": 0, + "value": "Try to refresh the page and go to the Claim tab to see your withdrawal request" + } + ], "MW9FHt": [ { "type": 0, @@ -1575,6 +1641,12 @@ "value": "The length of time you will lock up your OGN in order to receive yield and voting power. Unstaking early carries a penalty relative to the remaining duration of the lockup" } ], + "PEzaGo": [ + { + "type": 0, + "value": "Request withdrawal" + } + ], "PFtMy9": [ { "type": 0, @@ -1617,6 +1689,12 @@ "value": "symbolOut" } ], + "Pkf9/r": [ + { + "type": 0, + "value": "This operation can take a few seconds to complete" + } + ], "PmkP1H": [ { "type": 0, @@ -1797,6 +1875,12 @@ "value": "count" } ], + "T1d+7b": [ + { + "type": 0, + "value": "Claiming Withdrawal" + } + ], "TIBoMl": [ { "type": 0, @@ -1889,6 +1973,12 @@ "value": "You are lawfully permitted to access this site. You understand and accept the risks associated with using the products in this dapp (OETH, OUSD, etc.)" } ], + "UjXhyn": [ + { + "type": 0, + "value": "Your requests" + } + ], "UkXeBW": [ { "type": 0, @@ -1959,6 +2049,12 @@ "value": "Origin Ether" } ], + "W7LOXq": [ + { + "type": 0, + "value": "Error while claiming withdrawal" + } + ], "W87PYU": [ { "type": 0, @@ -1999,6 +2095,12 @@ "value": "Redeem" } ], + "XrnF+v": [ + { + "type": 0, + "value": "Processing withdrawal request" + } + ], "Y/oE4U": [ { "type": 0, @@ -2275,12 +2377,6 @@ "value": "Connect Wallet" } ], - "cn8bYe": [ - { - "type": 0, - "value": "~10 days" - } - ], "d0kJUi": [ { "type": 0, @@ -2355,6 +2451,16 @@ "value": "Claiming Rewards" } ], + "dxLIdA": [ + { + "type": 0, + "value": "Claim" + }, + { + "type": 1, + "value": "amount" + } + ], "e+yfm6": [ { "type": 0, @@ -2671,12 +2777,6 @@ "value": "Stake OGN" } ], - "kJmZxj": [ - { - "type": 0, - "value": "Instant or async" - } - ], "kWMpjI": [ { "type": 0, @@ -2695,6 +2795,12 @@ "value": "Connect wallet to view" } ], + "lN55fl": [ + { + "type": 0, + "value": "Your withdrawal is being processed" + } + ], "lQmZjB": [ { "type": 0, @@ -2707,6 +2813,12 @@ "value": "Mins" } ], + "lc3LYh": [ + { + "type": 0, + "value": "Your claims" + } + ], "lozEho": [ { "type": 0, @@ -2891,6 +3003,24 @@ "value": "Error while bridging" } ], + "phZMsU": [ + { + "type": 0, + "value": "Claim " + }, + { + "type": 1, + "value": "amount" + }, + { + "type": 0, + "value": " " + }, + { + "type": 1, + "value": "symbolIn" + } + ], "qGZxc4": [ { "type": 0, @@ -3079,6 +3209,12 @@ "value": "Redeem amount" } ], + "uD4xKE": [ + { + "type": 0, + "value": "View withdrawal requests" + } + ], "uEFsHG": [ { "type": 0, diff --git a/apps/defi/src/lang/extracts/en.json b/apps/defi/src/lang/extracts/en.json index 9383e2f25..7c7795248 100644 --- a/apps/defi/src/lang/extracts/en.json +++ b/apps/defi/src/lang/extracts/en.json @@ -1,4 +1,7 @@ { + "+0NTt9": { + "defaultMessage": "Withdrawal request is taking a long time to process" + }, "+0zAiT": { "defaultMessage": "The updated amount of xOGN you will receive by adding OGN to this lockup." }, @@ -29,6 +32,9 @@ "/0TOL5": { "defaultMessage": "Amount" }, + "/2Xryp": { + "defaultMessage": "Claimed Withdrawal" + }, "/6/sPX": { "defaultMessage": "Docs" }, @@ -98,9 +104,6 @@ "1nxJrQ": { "defaultMessage": "Return to Home Page" }, - "2+4p9v": { - "defaultMessage": "Claim tab" - }, "2/2yg+": { "defaultMessage": "Add" }, @@ -137,9 +140,15 @@ "3at7Yr": { "defaultMessage": "Legacy governance" }, + "3cpPa4": { + "defaultMessage": "Claiming your withdrawal will incur this estimated additional gas fee" + }, "3lOoIq": { "defaultMessage": "{monthDuration,plural,=1{Extend lockup {lockupId} by {amount} {symbolIn} for # month} other{Extend lockup {lockupId} by {amount} {symbolIn} for # months}}" }, + "3t3uoD": { + "defaultMessage": "You have no withdrawal requests" + }, "3townk": { "defaultMessage": "Max vAPY" }, @@ -185,6 +194,9 @@ "5lVaeB": { "defaultMessage": "No description" }, + "5yP3uI": { + "defaultMessage": "Claim Withdrawal" + }, "5zH79K": { "defaultMessage": "Your veOGV staked positions" }, @@ -215,6 +227,9 @@ "6fzXU+": { "defaultMessage": "Amount to Stake" }, + "7+beT+": { + "defaultMessage": "~30 min - few days" + }, "7CPiAt": { "defaultMessage": "Redeemed" }, @@ -365,6 +380,9 @@ "DBP9Xf": { "defaultMessage": "Stablecoin mix" }, + "DK7ein": { + "defaultMessage": "Your pending amount" + }, "DKaqyQ": { "defaultMessage": "Redeeming" }, @@ -398,6 +416,9 @@ "EEwopl": { "defaultMessage": "{amountIn} {symbolIn} for {amountOut} {symbolOut}" }, + "EJv8r2": { + "defaultMessage": "Refresh the page" + }, "EMU/OA": { "defaultMessage": "The amount of xOGN you will receive today in return for your lockup. The more xOGN you have, the more voting power you have and the more staking rewards you will earn." }, @@ -449,6 +470,9 @@ "GtABHs": { "defaultMessage": "Waiting for CCIP" }, + "Gtdie8": { + "defaultMessage": "Available to claim" + }, "H1+3mH": { "defaultMessage": "A superior LST for earning yield across DeFi" }, @@ -482,9 +506,15 @@ "IP0AHa": { "defaultMessage": "Error while enabling rebasing" }, + "IZFEUg": { + "defaultMessage": "Ready" + }, "IfZsEo": { "defaultMessage": "Vote against" }, + "IuFETn": { + "defaultMessage": "Duration" + }, "IzHsvX": { "defaultMessage": "Est. gas:" }, @@ -566,6 +596,9 @@ "MSTVqC": { "defaultMessage": "Reload Page" }, + "MTN/Zf": { + "defaultMessage": "Try to refresh the page and go to the Claim tab to see your withdrawal request" + }, "MW9FHt": { "defaultMessage": "Ooops..." }, @@ -629,6 +662,9 @@ "P9sirH": { "defaultMessage": "The length of time you will lock up your OGN in order to receive yield and voting power. Unstaking early carries a penalty relative to the remaining duration of the lockup" }, + "PEzaGo": { + "defaultMessage": "Request withdrawal" + }, "PFtMy9": { "defaultMessage": "Canceled" }, @@ -638,6 +674,9 @@ "PdEKuc": { "defaultMessage": "{amtIn} {symbolIn} for {amtOut} {symbolOut}" }, + "Pkf9/r": { + "defaultMessage": "This operation can take a few seconds to complete" + }, "PmkP1H": { "defaultMessage": "Unsupported Network" }, @@ -707,6 +746,9 @@ "SzA4oV": { "defaultMessage": "{count,plural,=0{No address} =1{# address} other{# addresses}}" }, + "T1d+7b": { + "defaultMessage": "Claiming Withdrawal" + }, "TIBoMl": { "defaultMessage": "Total value locked {symbol}" }, @@ -731,6 +773,9 @@ "ULVduL": { "defaultMessage": "You are lawfully permitted to access this site. You understand and accept the risks associated with using the products in this dapp (OETH, OUSD, etc.)" }, + "UjXhyn": { + "defaultMessage": "Your requests" + }, "UkXeBW": { "defaultMessage": "If the problem persists, you can contact us through our {support}." }, @@ -758,6 +803,9 @@ "W33FNz": { "defaultMessage": "Origin Ether" }, + "W7LOXq": { + "defaultMessage": "Error while claiming withdrawal" + }, "W87PYU": { "defaultMessage": "View on {name}" }, @@ -776,6 +824,9 @@ "XSdWHA": { "defaultMessage": "Redeem" }, + "XrnF+v": { + "defaultMessage": "Processing withdrawal request" + }, "Y/oE4U": { "defaultMessage": "Calldata" }, @@ -884,9 +935,6 @@ "cg1VJ2": { "defaultMessage": "Connect Wallet" }, - "cn8bYe": { - "defaultMessage": "~10 days" - }, "d0kJUi": { "defaultMessage": "Connect your wallet to see your voting power" }, @@ -917,6 +965,9 @@ "dx9Xxj": { "defaultMessage": "Claiming Rewards" }, + "dxLIdA": { + "defaultMessage": "Claim{amount}" + }, "e+yfm6": { "defaultMessage": "Connect your wallet to see your balances" }, @@ -1055,9 +1106,6 @@ "kH1R79": { "defaultMessage": "Stake OGN" }, - "kJmZxj": { - "defaultMessage": "Instant or async" - }, "kWMpjI": { "defaultMessage": "Available on" }, @@ -1067,12 +1115,18 @@ "ksTDub": { "defaultMessage": "Connect wallet to view" }, + "lN55fl": { + "defaultMessage": "Your withdrawal is being processed" + }, "lQmZjB": { "defaultMessage": "Swap via Curve" }, "lb8m6m": { "defaultMessage": "Mins" }, + "lc3LYh": { + "defaultMessage": "Your claims" + }, "lozEho": { "defaultMessage": "Error while approving" }, @@ -1145,6 +1199,9 @@ "pYbH7c": { "defaultMessage": "Error while bridging" }, + "phZMsU": { + "defaultMessage": "Claim {amount} {symbolIn}" + }, "qGZxc4": { "defaultMessage": "Connect your wallet to

select the network" }, @@ -1232,6 +1289,9 @@ "u53ROb": { "defaultMessage": "Redeem amount" }, + "uD4xKE": { + "defaultMessage": "View withdrawal requests" + }, "uEFsHG": { "defaultMessage": "Discord forum" }, diff --git a/libs/defi/shared/src/queries/snapshot.generated.ts b/libs/defi/shared/src/queries/snapshot.generated.ts index 679bba348..943187aa8 100644 --- a/libs/defi/shared/src/queries/snapshot.generated.ts +++ b/libs/defi/shared/src/queries/snapshot.generated.ts @@ -91,6 +91,42 @@ export type Item = { spacesCount?: Maybe; }; +export type Leaderboard = { + __typename?: 'Leaderboard'; + lastVote?: Maybe; + proposalsCount?: Maybe; + space?: Maybe; + user?: Maybe; + votesCount?: Maybe; +}; + +export type LeaderboardsWhere = { + proposal_count?: InputMaybe; + proposal_count_gt?: InputMaybe>>; + proposal_count_gte?: InputMaybe>>; + proposal_count_in?: InputMaybe>>; + proposal_count_lt?: InputMaybe>>; + proposal_count_lte?: InputMaybe>>; + proposal_count_not?: InputMaybe; + proposal_count_not_in?: InputMaybe>>; + space?: InputMaybe; + space_in?: InputMaybe>>; + space_not?: InputMaybe; + space_not_in?: InputMaybe>>; + user?: InputMaybe; + user_in?: InputMaybe>>; + user_not?: InputMaybe; + user_not_in?: InputMaybe>>; + vote_count?: InputMaybe; + vote_count_gt?: InputMaybe>>; + vote_count_gte?: InputMaybe>>; + vote_count_in?: InputMaybe>>; + vote_count_lt?: InputMaybe>>; + vote_count_lte?: InputMaybe>>; + vote_count_not?: InputMaybe; + vote_count_not_in?: InputMaybe>>; +}; + export type Message = { __typename?: 'Message'; address?: Maybe; @@ -231,6 +267,7 @@ export type Query = { __typename?: 'Query'; aliases?: Maybe>>; follows?: Maybe>>; + leaderboards?: Maybe>>; messages?: Maybe>>; networks?: Maybe>>; plugins?: Maybe>>; @@ -273,6 +310,15 @@ export type QueryFollowsArgs = { }; +export type QueryLeaderboardsArgs = { + first?: Scalars['Int']['input']; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: Scalars['Int']['input']; + where?: InputMaybe; +}; + + export type QueryMessagesArgs = { first?: Scalars['Int']['input']; orderBy?: InputMaybe; @@ -579,14 +625,17 @@ export type User = { about?: Maybe; avatar?: Maybe; cover?: Maybe; - created: Scalars['Int']['output']; + created?: Maybe; farcaster?: Maybe; github?: Maybe; id: Scalars['String']['output']; ipfs?: Maybe; + lastVote?: Maybe; lens?: Maybe; name?: Maybe; + proposalsCount?: Maybe; twitter?: Maybe; + votesCount?: Maybe; }; export type UsersWhere = { diff --git a/libs/governance/proposals/src/snapshot.generated.ts b/libs/governance/proposals/src/snapshot.generated.ts index 0604134b4..621d30bdd 100644 --- a/libs/governance/proposals/src/snapshot.generated.ts +++ b/libs/governance/proposals/src/snapshot.generated.ts @@ -91,6 +91,42 @@ export type Item = { spacesCount?: Maybe; }; +export type Leaderboard = { + __typename?: 'Leaderboard'; + lastVote?: Maybe; + proposalsCount?: Maybe; + space?: Maybe; + user?: Maybe; + votesCount?: Maybe; +}; + +export type LeaderboardsWhere = { + proposal_count?: InputMaybe; + proposal_count_gt?: InputMaybe>>; + proposal_count_gte?: InputMaybe>>; + proposal_count_in?: InputMaybe>>; + proposal_count_lt?: InputMaybe>>; + proposal_count_lte?: InputMaybe>>; + proposal_count_not?: InputMaybe; + proposal_count_not_in?: InputMaybe>>; + space?: InputMaybe; + space_in?: InputMaybe>>; + space_not?: InputMaybe; + space_not_in?: InputMaybe>>; + user?: InputMaybe; + user_in?: InputMaybe>>; + user_not?: InputMaybe; + user_not_in?: InputMaybe>>; + vote_count?: InputMaybe; + vote_count_gt?: InputMaybe>>; + vote_count_gte?: InputMaybe>>; + vote_count_in?: InputMaybe>>; + vote_count_lt?: InputMaybe>>; + vote_count_lte?: InputMaybe>>; + vote_count_not?: InputMaybe; + vote_count_not_in?: InputMaybe>>; +}; + export type Message = { __typename?: 'Message'; address?: Maybe; @@ -231,6 +267,7 @@ export type Query = { __typename?: 'Query'; aliases?: Maybe>>; follows?: Maybe>>; + leaderboards?: Maybe>>; messages?: Maybe>>; networks?: Maybe>>; plugins?: Maybe>>; @@ -273,6 +310,15 @@ export type QueryFollowsArgs = { }; +export type QueryLeaderboardsArgs = { + first?: Scalars['Int']['input']; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: Scalars['Int']['input']; + where?: InputMaybe; +}; + + export type QueryMessagesArgs = { first?: Scalars['Int']['input']; orderBy?: InputMaybe; @@ -579,14 +625,17 @@ export type User = { about?: Maybe; avatar?: Maybe; cover?: Maybe; - created: Scalars['Int']['output']; + created?: Maybe; farcaster?: Maybe; github?: Maybe; id: Scalars['String']['output']; ipfs?: Maybe; + lastVote?: Maybe; lens?: Maybe; name?: Maybe; + proposalsCount?: Maybe; twitter?: Maybe; + votesCount?: Maybe; }; export type UsersWhere = {