From bee42ad7436eb4ced71b8457ccaaa1a1b7119851 Mon Sep 17 00:00:00 2001 From: emmdim Date: Thu, 1 Feb 2024 12:09:35 +0100 Subject: [PATCH] Updates to new contracts --- package.json | 4 ++-- src/context/update.tsx | 2 +- src/hooks/usePluginClient.tsx | 3 ++- yarn.lock | 18 +++++++++--------- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 6c245da45..113d6acc3 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,8 @@ "@tiptap/pm": "^2.0.3", "@tiptap/react": "^2.0.3", "@tiptap/starter-kit": "^2.0.3", - "@vocdoni/gasless-voting": "^0.0.1-rc18", - "@vocdoni/gasless-voting-ethers": "0.0.1-rc1", + "@vocdoni/gasless-voting": "0.0.1-rc20", + "@vocdoni/gasless-voting-ethers": "0.0.1-rc2", "@vocdoni/react-providers": "0.3.1", "@vocdoni/sdk": "0.7.1", "@walletconnect/core": "^2.8.3", diff --git a/src/context/update.tsx b/src/context/update.tsx index 52c5fbd01..96de2321d 100644 --- a/src/context/update.tsx +++ b/src/context/update.tsx @@ -346,7 +346,7 @@ const UpdateProvider: React.FC<{children: ReactElement}> = ({children}) => { if (!state.daoUpdateData) return; if ( state.showModal.type === 'plugin' && - pluginType !== 'vocdoni-gasless-voting-poc.plugin.dao.eth' + pluginType !== 'vocdoni-gasless-voting-poc-vanilla-erc20.plugin.dao.eth' ) return ( pluginClient as MultisigClient | TokenVotingClient diff --git a/src/hooks/usePluginClient.tsx b/src/hooks/usePluginClient.tsx index 48e103312..c8dfd55a8 100644 --- a/src/hooks/usePluginClient.tsx +++ b/src/hooks/usePluginClient.tsx @@ -8,7 +8,8 @@ import {useEffect, useState} from 'react'; import {useClient} from './useClient'; import {VocdoniEnv} from './useVocdoniSdk'; -export const GaselessPluginName = 'vocdoni-gasless-voting-poc.plugin.dao.eth'; +export const GaselessPluginName = + 'vocdoni-gasless-voting-poc-vanilla-erc20.plugin.dao.eth'; export type GaselessPluginType = typeof GaselessPluginName; export type PluginTypes = diff --git a/yarn.lock b/yarn.lock index 60a7fdd2b..fff16a93e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4629,17 +4629,17 @@ "@babel/plugin-transform-react-jsx-source" "^7.22.5" react-refresh "^0.14.0" -"@vocdoni/gasless-voting-ethers@0.0.1-rc1": - version "0.0.1-rc1" - resolved "https://registry.yarnpkg.com/@vocdoni/gasless-voting-ethers/-/gasless-voting-ethers-0.0.1-rc1.tgz#9958b632abce3e2e5179ecd201c41d3b03a2f047" - integrity sha512-lU58vpJ3AQp2u1OypsVvHgGGzCTvgtDXPLUDChn2yFHJhxc7o2Q79EwCZnD+XV9v8cN94I8AWhocbDDk1E8jMA== +"@vocdoni/gasless-voting-ethers@0.0.1-rc2": + version "0.0.1-rc2" + resolved "https://registry.yarnpkg.com/@vocdoni/gasless-voting-ethers/-/gasless-voting-ethers-0.0.1-rc2.tgz#ce2d3f0457f2504df0f38fa2cb82c555d58512f2" + integrity sha512-n9MpaUwpKyykwaZnMPsm6B298AsCdSGdn8T7PTHMDVesBkKtX9z3/nDcmWyZAgk+bm8odSm0Xze6or4epb0JqA== dependencies: ethers "^5.6.2" -"@vocdoni/gasless-voting@^0.0.1-rc18": - version "0.0.1-rc18" - resolved "https://registry.yarnpkg.com/@vocdoni/gasless-voting/-/gasless-voting-0.0.1-rc18.tgz#6fdc4299cee82b87563b69a9e9505bcaaf23055e" - integrity sha512-KktH8LEcMu+0asArj7DtjozA1+9V3uKm3q5i9N+2ImEam/BAbdA+JeXEqL4u/ECyicbQGM1asusYz4LcwSSCHQ== +"@vocdoni/gasless-voting@0.0.1-rc20": + version "0.0.1-rc20" + resolved "https://registry.yarnpkg.com/@vocdoni/gasless-voting/-/gasless-voting-0.0.1-rc20.tgz#9e04678df122c5f96457278b52791883d8c725b9" + integrity sha512-kkigjYiqXxMKTy2opLQ9sEEFKw7I6BxMhI6/gdcaVy+kUdg8Df1FCLx8SrfuzwIK3vTdpL7ed2b9PZo823TUFg== dependencies: "@aragon/osx-ethers" "1.3.0-rc0.3" "@aragon/sdk-client" "1.21.1" @@ -4651,7 +4651,7 @@ "@ethersproject/providers" "^5.7.2" "@ethersproject/wallet" "^5.7.0" "@types/big.js" "^6.1.5" - "@vocdoni/gasless-voting-ethers" "0.0.1-rc1" + "@vocdoni/gasless-voting-ethers" "0.0.1-rc2" "@vocdoni/sdk" "0.7.1" axios "0.27.2" graphql "^16.6.0"