From 8afb3d76869bce91ceda5d541942ecd632ab026f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:19:52 +0800 Subject: [PATCH 1/5] chore(deps): bump tokio from 1.41.1 to 1.42.0 (#3010) Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.41.1 to 1.42.0. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.41.1...tokio-1.42.0) --- updated-dependencies: - dependency-name: tokio dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- crates/testsuite/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 011d9b865a..d5ca83fc93 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12840,9 +12840,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.41.1" +version = "1.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22cfb5bee7a6a52939ca9224d6ac897bb669134078daa8735560897f69de4d33" +checksum = "5cec9b21b0450273377fc97bd4c33a8acffc8c996c987a7c5b319a0083707551" dependencies = [ "backtrace", "bytes", diff --git a/Cargo.toml b/Cargo.toml index ab0eb0ed43..e6c6eecd46 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -227,7 +227,7 @@ smallvec = "1.6.1" thiserror = "1.0.69" tiny-keccak = { version = "2", features = ["keccak", "sha3"] } tiny-bip39 = "2.0.0" -tokio = { version = "1.41.1", features = ["full"] } +tokio = { version = "1.42.0", features = ["full"] } tokio-util = "0.7.12" tokio-tungstenite = { version = "0.24.0", features = ["native-tls"] } tokio-stream = "0.1.16" diff --git a/crates/testsuite/Cargo.toml b/crates/testsuite/Cargo.toml index 055beb30a3..c43c76afc8 100644 --- a/crates/testsuite/Cargo.toml +++ b/crates/testsuite/Cargo.toml @@ -31,7 +31,7 @@ assert_cmd = "2.0" cucumber = "0.21.1" futures = { workspace = true } testcontainers = { version = "0.15.0", git = "https://github.com/yubing744/testcontainers-rs", rev = "6b87dc53ab3bc6eb4d15c7e73a3c57dcbf40d0af" } -tokio = { version = "1.41", features = ["macros", "rt-multi-thread", "sync", "time"] } +tokio = { version = "1.42", features = ["macros", "rt-multi-thread", "sync", "time"] } jpst = "0.1.1" tracing = "0.1" backtrace = "0.3" From 24290c57f9d5befed6606889888438d50705fa63 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Wed, 4 Dec 2024 21:34:42 +0800 Subject: [PATCH 2/5] update grow bitcoin doc (#3012) --- .../pages/blog/grow-bitcoin-main.en-US.mdx | 5 +-- .../pages/blog/grow-bitcoin-main.zh-CN.mdx | 5 +-- .../miscellaneous/grow-bitcion.en-US.mdx | 32 +++++++++++++++++-- .../miscellaneous/grow-bitcion.zh-CN.mdx | 30 ++++++++++++++++- 4 files changed, 65 insertions(+), 7 deletions(-) diff --git a/docs/website/pages/blog/grow-bitcoin-main.en-US.mdx b/docs/website/pages/blog/grow-bitcoin-main.en-US.mdx index b740aba96f..e74b2a0b8e 100644 --- a/docs/website/pages/blog/grow-bitcoin-main.en-US.mdx +++ b/docs/website/pages/blog/grow-bitcoin-main.en-US.mdx @@ -19,6 +19,7 @@ As a Bitcoin staker or user, you get to earn BitXP as well as the project XP by As a Bitcoin project builder, you are free to list your project on the Grow Bitcoin platform and get attentions from potential Bitcoin users; users will endorse your project with their votes and with more votes you get to earn BitXP as well! - Website:https://grow.rooch.network +- Grow Bitcoin FAQ: https://rooch.network/learn/miscellaneous/grow-bitcion#faq ## Connect wallet @@ -32,9 +33,9 @@ Click the `Connect` button to authorize. Make sure you have UTXOs in your Bitcoin wallet, no matter how many. -Rooch provides new Bitcoin addresses with the opportunity to claim an `RGas` airdrop. You can `Claim` your `RGas` at this URL: +Rooch provides the mainnet RGas faucet in the Portal. Each new Bitcoin address can claim `RGas` once. You can `Claim` your `RGas` at this URL: -- RGas Airdrop: https://portal.rooch.network/faucet +- RGas Faucet: https://portal.rooch.network/faucet ## Interaction diff --git a/docs/website/pages/blog/grow-bitcoin-main.zh-CN.mdx b/docs/website/pages/blog/grow-bitcoin-main.zh-CN.mdx index 818e45b09c..0c1d7f4449 100644 --- a/docs/website/pages/blog/grow-bitcoin-main.zh-CN.mdx +++ b/docs/website/pages/blog/grow-bitcoin-main.zh-CN.mdx @@ -19,6 +19,7 @@ Grow Bitcoin 是一个生态系统加速平台,专注于将比特币用户和 作为比特币项目建设者,您可以自由地在 Grow Bitcoin 平台上列出您的项目,并获得潜在比特币用户的关注;用户将用他们的选票支持您的项目,并且选票越多,您也可以获得 BitXP! - 网站链接:https://grow.rooch.network +- Grow Bitcoin FAQ:https://rooch.network/zh-CN/learn/miscellaneous/grow-bitcion#faq ## 连接钱包 @@ -32,9 +33,9 @@ Grow Bitcoin 是一个生态系统加速平台,专注于将比特币用户和 确保你的 Bitcoin 钱包有 UTXO,无论多少都可以。 -Rooch 为新的 Bitcoin 地址提供领取一次 `RGas` 空投的机会,可以在这个网址 `Claim` 你的 `RGas`: +Rooch 在 Portal 中提供了主网 RGas 水龙头,每个新的 Bitcoin 地址可以领取一次 `RGas`,可以在这个网址 `Claim` 你的 `RGas`: -- RGas Airdrop: https://portal.rooch.network/faucet +- RGas 水龙头: https://portal.rooch.network/faucet ## 交互 diff --git a/docs/website/pages/learn/miscellaneous/grow-bitcion.en-US.mdx b/docs/website/pages/learn/miscellaneous/grow-bitcion.en-US.mdx index 5e8ad706a6..fc643aa727 100644 --- a/docs/website/pages/learn/miscellaneous/grow-bitcion.en-US.mdx +++ b/docs/website/pages/learn/miscellaneous/grow-bitcion.en-US.mdx @@ -22,7 +22,7 @@ As a Bitcoin project builder, you are free to list your project on the Grow Bitc Self Staking only has `Read` permissions for Bitcoin, without `Transfer`, ensuring the ownership of BTC. Having `Write` permission at the Rooch layer provides scalability. -Therefore, Self Staking in Grwo Bitcoin is risk-free staking mining. +Therefore, Self Staking in Grow Bitcoin is risk-free staking mining. For example, I want to go shopping in a newly opened supermarket and I want to apply for a membership card. The membership card will only read my identity information and cannot do any more operations. Grow Bitcoin's stake mining is this model. It can only read the UTXO of the Bitcoin wallet and has no authority to operate your Bitcoin assets. @@ -42,6 +42,12 @@ Please refer to the [Grow Bitcion Testnet User Guide](https://rooch.network/blog Only needs to ensure that the UniSat wallet has UTXO and [Claim RGas](https://portal.rooch.network/faucet) here to stake. +RGas is the native gas token on the Rooch Network and is used to cover transaction and operating costs. + +#### The account has BTC but no UTXO + +BTC transfer transactions need to wait for three blocks to be confirmed before UTXO can be used in Rooch. + #### How to mine Grow You only need to hold BTC in your own wallet to stake for mining and obtain `GROW`. Grow Bitcoin adopts `Hold Mining`’s staking model to obtain `GROW`. @@ -76,10 +82,20 @@ No. If you don't have RGas anymore, you can buy them [here](https://portal.rooch.network/gas-swap). +> Tip: Currently, only BTC -> RGas is provided. RGas -> BTC is temporarily unavailable. The function of purchasing RGas with USTD will be provided in the future. + #### UTXO has changed, are there still GROW rewards? Because it is a holding mining mode, if the UTXO is spent, the unclaimed `GROW` cannot be claimed. It is recommended to claim the staking reward before spending BTC. +#### How many times can the GROW obtained through staking be claimed per day? + +There is no limit on the number of times, you can claim as long as you have staking income. + +#### How many RGas are consumed for each Claim? + +About 0.02 ~ 0.03 RGas. + #### Babylon Stakes The same UTXO cannot be Self-Staking and then staked on Babylon. @@ -94,6 +110,10 @@ There are currently oracles for Bitcoin. > Source code: https://github.com/rooch-network/rooch/blob/main/apps/gas_market/sources/trusted_oracle.move +#### Is Grow the mainnet token of Rooch? + +no. + #### What does GROW do? You can use `GROW` to vote for projects and earn `BitXP` points. `BitXP` is used to obtain airdrops. @@ -109,9 +129,17 @@ GROW will be burned after voting, reducing the supply. `GROW` is launched completely fairly, with a fixed supply and no upper limit for `BitXP`. `BitXP` can only be obtained by voting for the project using `GROW`. #### Can I receive RGas with a new Bitcoin address? -# + A new Bitcoin address can `Claim` RGas once. +#### What type of Bitcoin address to use? + +Taproot. + +#### Where GROW trades + +GROW’s trading market will be launched in the future. + ### Testnet Frequently Asked Questions #### How to get UTXO and RGas diff --git a/docs/website/pages/learn/miscellaneous/grow-bitcion.zh-CN.mdx b/docs/website/pages/learn/miscellaneous/grow-bitcion.zh-CN.mdx index 25e651b8b4..d629fa599a 100644 --- a/docs/website/pages/learn/miscellaneous/grow-bitcion.zh-CN.mdx +++ b/docs/website/pages/learn/miscellaneous/grow-bitcion.zh-CN.mdx @@ -22,7 +22,7 @@ Grow Bitcoin 是一个生态系统加速平台,专注于将比特币用户和 Self Staking 对 Bitcoin 来说只有 `Read` 权限,没有 `Transfer`,保证了 BTC 的所有权。在 Rooch 层具有 `Write` 权限,提供了扩展性。 -因此 Grwo Bitcoin 中的 Self Staking 是零风险的质押挖矿。 +因此 Grow Bitcoin 中的 Self Staking 是零风险的质押挖矿。 举个例子,我要去一个新开的超市买东西,我想办一张会员卡,会员卡只会读取我的身份信息,无法再做更多的操作。Grow Bitcoin 的质押挖矿就是这种模式,只能读取 Bitcoin 钱包的 UTXO,没有权限去操作您的 Bitcoin 资产。 @@ -42,6 +42,12 @@ Session Key 的详细描述请参考这篇文档 https://rooch.network/zh-CN/lea 只需要确保 UniSat 钱包有 UTXO,并在这里 [Claim RGas](https://portal.rooch.network/faucet) 即可质押。 +RGas 是 Rooch 网络上的原生 gas 代币,用于支付交易和运营成本。 + +#### 账户有 BTC 了但是没有 UTXO + +BTC 转账交易,需要等待三个区块确认后,`UTXO` 才可以在 Rooch 中使用。 + #### Grow 怎么挖矿 只需要自己的钱包持有 BTC 即可质押挖矿,获取 `GROW`。Grow Bitcoin 采取的是 `Hold Mining` 的质押模式来获取 `GROW`。 @@ -76,10 +82,20 @@ GROW 总量为 `210,000,000,000`,`180` 天挖完。 如果没有 RGas 了,可以在[这里](https://portal.rooch.network/gas-swap)购买。 +> 提示:目前只提供了 BTC -> RGas,暂时无法 RGas -> BTC,后续将提供 USTD 购买 RGas 功能。 + #### UTXO 改变了,GROW 奖励还有吗 因为是持有挖矿模式,如果 UTXO 被花费了,没有领取的 `GROW` 就无法 Claim 了,建议花费 BTC 之前先领取质押奖励。 +#### 质押获得的 GROW 可以每天可以 Claim 多少次 + +没有次数限制,只要有质押收益就可以 Claim。 + +#### 每次 Claim 消耗多少 RGas + +大约 0.02 ~ 0.03 RGas。 + #### Babylon Stake 同一个 UTXO 不能 Self Staking 然后再到 Babylon 上 Stake。 @@ -94,6 +110,10 @@ Babylon 的质押带有时间锁,它的质押具有时间权重。 > 源码:https://github.com/rooch-network/rooch/blob/main/apps/gas_market/sources/trusted_oracle.move +#### Grow 是 Rooch 的主网代币吗 + +不是。 + #### GROW 有什么作用 可以使用 `GROW` 给项目投票,获取 `BitXP` 积分。`BitXP` 用于获取空投。 @@ -112,6 +132,14 @@ Babylon 的质押带有时间锁,它的质押具有时间权重。 新的 Bitcoin 地址可以 `Claim` 一次 RGas。 +#### 使用哪种类型的 Bitcoin 地址 + +Taproot。 + +#### GROW 在哪里交易 + +后续将推出 GROW 的交易市场。 + ### 测试网常见问题 #### 如何获取 UTXO 和 RGas From a7e46a6f0c11b23a6af957adaafd89f0cde96fa6 Mon Sep 17 00:00:00 2001 From: sven Tan Date: Thu, 5 Dec 2024 08:18:37 +0800 Subject: [PATCH 3/5] fix twitter (#3013) --- .../auth/session-key-guard-button-v1.tsx | 78 +++++++++++++ .../src/sections/settings/view.tsx | 107 +++++++++++------- 2 files changed, 146 insertions(+), 39 deletions(-) create mode 100644 infra/rooch-portal-v2/src/components/auth/session-key-guard-button-v1.tsx diff --git a/infra/rooch-portal-v2/src/components/auth/session-key-guard-button-v1.tsx b/infra/rooch-portal-v2/src/components/auth/session-key-guard-button-v1.tsx new file mode 100644 index 0000000000..a0b305677a --- /dev/null +++ b/infra/rooch-portal-v2/src/components/auth/session-key-guard-button-v1.tsx @@ -0,0 +1,78 @@ +import type { ReactNode } from 'react'; + +import { useState, useEffect } from 'react'; +import { useCurrentSession, useCreateSessionKey } from '@roochnetwork/rooch-sdk-kit'; + +import { LoadingButton } from '@mui/lab'; + +import { isSessionExpired } from 'src/utils/common'; + +import { toast } from 'src/components/snackbar'; + +export default function SessionKeyGuardButtonV1({ children, desc, callback }: { children?: ReactNode, desc?: string, callback?: () => Promise }) { + const sessionKey = useCurrentSession(); + const { mutateAsync: createSessionKey } = useCreateSessionKey(); + const [loading, setLoading] = useState(false); + + const [isCurrentSessionExpired, setIsCurrentSessionExpired] = useState(false); + + useEffect(() => { + if (sessionKey) { + const sessionKeyJson = sessionKey.toJSON(); + const { lastActiveTime, maxInactiveInterval } = sessionKeyJson; + if (isSessionExpired(Number(lastActiveTime), Number(maxInactiveInterval))) { + setIsCurrentSessionExpired(true); + } + } + }, [sessionKey]); + + const handle = async () => { + setLoading(true) + if (sessionKey && !isCurrentSessionExpired) { + if (callback) { + await callback() + } + } else { + try { + await createSessionKey({ + appName: 'rooch-portal', + appUrl: 'portal.rooch.network', + scopes: [ + '0x1::*::*', + '0x3::*::*', + '0x176214bed3764a1c6a43dc1add387be5578ff8dbc263369f5bdc33a885a501ae::*::*', + '0x701c21bf1c8cd5af8c42983890d8ca55e7a820171b8e744c13f2d9998bf76cc3::*::*', + ], + maxInactiveInterval: 60 * 60 * 8, + }); + if (callback) { + await callback() + } + } catch (error) { + if (error.message) { + toast.error(error.message); + return; + } + toast.error(String(error)); + } + } + + setLoading(false) + } + + return sessionKey && !isCurrentSessionExpired && children ? ( + children + ) : ( + + { + desc || 'Create Session Key' + } + + ); +} diff --git a/infra/rooch-portal-v2/src/sections/settings/view.tsx b/infra/rooch-portal-v2/src/sections/settings/view.tsx index 56eaff1d18..3116ee6027 100644 --- a/infra/rooch-portal-v2/src/sections/settings/view.tsx +++ b/infra/rooch-portal-v2/src/sections/settings/view.tsx @@ -1,20 +1,20 @@ 'use client' import axios from 'axios' -import { Args } from '@roochnetwork/rooch-sdk' import { useState, useEffect, useCallback } from 'react' import { CopyToClipboard } from 'react-copy-to-clipboard' +import { Args, Transaction, stringToBytes } from '@roochnetwork/rooch-sdk' import { useRoochClient, useCurrentAddress, - useCurrentNetwork, useRoochClientQuery, + useCurrentNetwork, + useCurrentSession, + useRoochClientQuery } from '@roochnetwork/rooch-sdk-kit' import { LoadingButton } from '@mui/lab' import { Card, Chip, Stack, TextField, CardHeader, Typography, CardContent } from '@mui/material' -import { useRouter } from 'src/routes/hooks' - import { sleep } from 'src/utils/common' import { DashboardContent } from 'src/layouts/dashboard' @@ -24,16 +24,19 @@ import { Iconify } from 'src/components/iconify' import { useNetworkVariable } from '../../hooks/use-networks' import SessionKeysTableCard from './components/session-keys-table-card' +import SessionKeyGuardButtonV1 from '../../components/auth/session-key-guard-button-v1' export function SettingsView() { const address = useCurrentAddress() - const router = useRouter() + const session = useCurrentSession() const client = useRoochClient() - const faucetUrl = useNetworkVariable('faucetUrl') - const [isAddressLoaded, setIsAddressLoaded] = useState(false) const network = useCurrentNetwork() + const faucetUrl = useNetworkVariable('faucetUrl') const twitterOracleAddress = useNetworkVariable('twitterOracleAddress') + const [tweetStatus, setTweetStatus] = useState('') + const [twitterId, setTwitterId] = useState() + const [verifying, setVerifying] = useState(false) const { data: sessionKeys, @@ -44,26 +47,7 @@ export function SettingsView() { } ) - console.log(isLoadingSessionKeys) - console.log(sessionKeys) - - useEffect(() => { - if (address !== undefined) { - setIsAddressLoaded(true) - } - }, [address]) - - useEffect(() => { - if (isAddressLoaded && !address) { - router.push('/account') - } - }, [address, isAddressLoaded, router]) - - const [twitterId, setTwitterId] = useState('') - - const [verifying, setVerifying] = useState(false) - - const getBindingTwitterId = useCallback(async () => { + const fetchTwitterId = useCallback(async () => { if (!address) { return } @@ -73,16 +57,52 @@ export function SettingsView() { function: 'resolve_author_id_by_address', args: [Args.address(address.toStr())], }) - setTwitterId((res.return_values?.[0].decoded_value as any).value.vec[0]) + let _twitterId: string | undefined + if (res.vm_status === 'Executed') { + if (res.return_values?.[0].value.value !== '0x00') { + _twitterId = (res.return_values?.[0].decoded_value as any).value.vec + .value[0][0] as string; + _twitterId = new TextDecoder('utf-8').decode( + stringToBytes('hex', _twitterId.replace('0x', '')) + ); + + setTwitterId(_twitterId); + } + } // eslint-disable-next-line consistent-return - return (res.return_values?.[0].decoded_value as any)?.value.vec[0] + return _twitterId }, [address, client, twitterOracleAddress]) - + useEffect(() => { - getBindingTwitterId() - }, [getBindingTwitterId]) + fetchTwitterId() + }, [fetchTwitterId]) + + const disconnectTwitter = async () => { + if (!session) { + return + } + try { + const tx = new Transaction() + tx.callFunction({ + target: `${twitterOracleAddress}::twitter_account::unbinding_twitter_account` + }) + + const result = await client.signAndExecuteTransaction({ + transaction: tx, + signer: session + }) - const [tweetId, setTweetId] = useState('') + if (result.execution_info.status.type === 'executed') { + setTwitterId(undefined) + await fetchTwitterId() + toast.success('Disconnect twitter success') + } else { + toast.error('Disconnect twitter aborted') + } + } catch (e) { + toast.error(e.message) + } + } const networkText = network === 'mainnet' ? 'Pre-mainnet' : 'Testnet' const XText = `BTC:${address?.toStr()} @@ -123,6 +143,7 @@ https://${network === 'mainnet' ? '':'test-'}portal.rooch.network/inviter/${addr /> {twitterId ? ( + } /> + + + ) : ( @@ -164,19 +188,24 @@ https://${network === 'mainnet' ? '':'test-'}portal.rooch.network/inviter/${addr { - setTweetId(e.target.value) + setTweetStatus(e.target.value) }} /> + + + 🔔Tips: If you just posted a twitter message, Wait for on-chain synchronization (2-3 minutes) + + { try { - const url = new URL(tweetId) + const url = new URL(tweetStatus) return url.hostname !== 'x.com' } catch { return true @@ -190,7 +219,7 @@ https://${network === 'mainnet' ? '':'test-'}portal.rooch.network/inviter/${addr onClick={async () => { try { setVerifying(true) - const match = tweetId.match(/status\/(\d+)/) + const match = tweetStatus.match(/status\/(\d+)/) if (match) { const pureTweetId = match[1] const res = await axios.post( @@ -219,7 +248,7 @@ https://${network === 'mainnet' ? '':'test-'}portal.rooch.network/inviter/${addr ) } await sleep(3000) - const checkRes = await getBindingTwitterId() + const checkRes = await fetchTwitterId() if (checkRes) { toast.success('Binding success') } From fd7098491ca2483d1001efd1cf8148f900c81f84 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 5 Dec 2024 08:32:25 +0800 Subject: [PATCH 4/5] bump tokio-util from 0.7.12 to 0.7.13 (#3014) Bumps [tokio-util](https://github.com/tokio-rs/tokio) from 0.7.12 to 0.7.13. - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.7.12...tokio-util-0.7.13) --- updated-dependencies: - dependency-name: tokio-util dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 6 +++--- Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d5ca83fc93..8b66ebb6c2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6449,7 +6449,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19" dependencies = [ "cfg-if", - "windows-targets 0.52.6", + "windows-targets 0.48.5", ] [[package]] @@ -12968,9 +12968,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.12" +version = "0.7.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61e7c3654c13bcd040d4a03abee2c75b1d14a37b423cf5a813ceae1cc903ec6a" +checksum = "d7fcaa8d55a2bdd6b83ace262b016eca0d79ee02818c5c1bcdf0305114081078" dependencies = [ "bytes", "futures-core", diff --git a/Cargo.toml b/Cargo.toml index e6c6eecd46..a14fd83c95 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -228,7 +228,7 @@ thiserror = "1.0.69" tiny-keccak = { version = "2", features = ["keccak", "sha3"] } tiny-bip39 = "2.0.0" tokio = { version = "1.42.0", features = ["full"] } -tokio-util = "0.7.12" +tokio-util = "0.7.13" tokio-tungstenite = { version = "0.24.0", features = ["native-tls"] } tokio-stream = "0.1.16" tonic = { version = "0.8", features = ["gzip"] } From 2ef805bc13b95741727687ad91c1a49b5ac78a8e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 5 Dec 2024 08:32:48 +0800 Subject: [PATCH 5/5] chore(deps): bump diesel from 2.2.5 to 2.2.6 (#3009) Bumps [diesel](https://github.com/diesel-rs/diesel) from 2.2.5 to 2.2.6. - [Release notes](https://github.com/diesel-rs/diesel/releases) - [Changelog](https://github.com/diesel-rs/diesel/blob/v2.2.6/CHANGELOG.md) - [Commits](https://github.com/diesel-rs/diesel/compare/v2.2.5...v2.2.6) --- updated-dependencies: - dependency-name: diesel dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8b66ebb6c2..60ec1a1bb3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3189,9 +3189,9 @@ checksum = "339544cc9e2c4dc3fc7149fd630c5f22263a4fdf18a98afd0075784968b5cf00" [[package]] name = "diesel" -version = "2.2.5" +version = "2.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbf9649c05e0a9dbd6d0b0b8301db5182b972d0fd02f0a7c6736cf632d7c0fd5" +checksum = "ccf1bedf64cdb9643204a36dd15b19a6ce8e7aa7f7b105868e9f1fad5ffa7d12" dependencies = [ "chrono", "diesel_derives", diff --git a/Cargo.toml b/Cargo.toml index a14fd83c95..69fad93460 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -282,7 +282,7 @@ uint = "0.9.5" rlp = "0.5.2" const-hex = "1.14.0" cached = "0.43.0" -diesel = { version = "2.2.5", features = [ +diesel = { version = "2.2.6", features = [ "chrono", "sqlite", "r2d2",