Skip to content

Commit deedd57

Browse files
committed
fix: move query client module level
1 parent 2ca4e8d commit deedd57

File tree

3 files changed

+112
-3
lines changed

3 files changed

+112
-3
lines changed

app/pages/_app.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ import 'sanitize.css'
2929
import 'react-tooltip/dist/react-tooltip.css'
3030
import 'react-datepicker/dist/react-datepicker.css'
3131
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
32+
33+
const queryClient = new QueryClient()
3234
import { wagmiConfig } from '@/src/providers/wagmi'
3335
import { WagmiProvider } from 'wagmi'
3436

@@ -96,8 +98,6 @@ export default function App({ Component, pageProps }: AppPropsWithLayout) {
9698
}
9799
}, [router])
98100

99-
const queryClient = new QueryClient()
100-
101101
return (
102102
<>
103103
<GoogleAnalytics />

app/src/abis/TransmuterEurc.ts

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
const TransmuterEurc_abi = [
2+
{ inputs: [], stateMutability: 'nonpayable', type: 'constructor' },
3+
{
4+
anonymous: false,
5+
inputs: [
6+
{ indexed: true, internalType: 'address', name: 'depositor', type: 'address' },
7+
{ indexed: true, internalType: 'uint256', name: 'amount', type: 'uint256' },
8+
],
9+
name: 'Deposit',
10+
type: 'event',
11+
},
12+
{
13+
anonymous: false,
14+
inputs: [
15+
{ indexed: true, internalType: 'address', name: 'previousOwner', type: 'address' },
16+
{ indexed: true, internalType: 'address', name: 'newOwner', type: 'address' },
17+
],
18+
name: 'OwnershipTransferred',
19+
type: 'event',
20+
},
21+
{
22+
anonymous: false,
23+
inputs: [
24+
{ indexed: true, internalType: 'address', name: 'depositor', type: 'address' },
25+
{ indexed: true, internalType: 'uint256', name: 'amount', type: 'uint256' },
26+
],
27+
name: 'Withdraw',
28+
type: 'event',
29+
},
30+
{
31+
inputs: [],
32+
name: 'HOME_OMNIBRIDGE',
33+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
34+
stateMutability: 'view',
35+
type: 'function',
36+
},
37+
{
38+
inputs: [],
39+
name: 'USDC_E',
40+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
41+
stateMutability: 'view',
42+
type: 'function',
43+
},
44+
{
45+
inputs: [],
46+
name: 'USDC_ON_XDAI',
47+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
48+
stateMutability: 'view',
49+
type: 'function',
50+
},
51+
{
52+
inputs: [{ internalType: 'uint256', name: 'amount', type: 'uint256' }],
53+
name: 'deposit',
54+
outputs: [],
55+
stateMutability: 'nonpayable',
56+
type: 'function',
57+
},
58+
{
59+
inputs: [],
60+
name: 'disableTransmuter',
61+
outputs: [],
62+
stateMutability: 'nonpayable',
63+
type: 'function',
64+
},
65+
{
66+
inputs: [],
67+
name: 'isEnabled',
68+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
69+
stateMutability: 'view',
70+
type: 'function',
71+
},
72+
{
73+
inputs: [],
74+
name: 'owner',
75+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
76+
stateMutability: 'view',
77+
type: 'function',
78+
},
79+
{
80+
inputs: [{ internalType: 'address', name: 'receiver', type: 'address' }],
81+
name: 'rebalanceUSDC',
82+
outputs: [],
83+
stateMutability: 'nonpayable',
84+
type: 'function',
85+
},
86+
{
87+
inputs: [],
88+
name: 'renounceOwnership',
89+
outputs: [],
90+
stateMutability: 'nonpayable',
91+
type: 'function',
92+
},
93+
{
94+
inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
95+
name: 'transferOwnership',
96+
outputs: [],
97+
stateMutability: 'nonpayable',
98+
type: 'function',
99+
},
100+
{
101+
inputs: [{ internalType: 'uint256', name: 'amount', type: 'uint256' }],
102+
name: 'withdraw',
103+
outputs: [],
104+
stateMutability: 'nonpayable',
105+
type: 'function',
106+
},
107+
] as const
108+
109+
export default TransmuterEurc_abi

app/src/constants/config/contracts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import OMNI_FEE_MANAGER_abi from '@/src/abis/OmniBridgeFeeManager'
99
import AMBBridgeHelper_abi from '@/src/abis/AMBBridgeHelper'
1010
import NativeOmniBridgeMediator_abi from '@/src/abis/NativeOmniBridgeMediator'
1111
import USDSDeposit_abi from '@/src/abis/USDSdeposit'
12-
import TransmuterAbi from '@/src/abis/TransmuterEurc.json'
12+
import TransmuterAbi from '@/src/abis/TransmuterEurc'
1313
import { Chains } from '@/src/constants/config/types'
1414

1515
export const contracts = {

0 commit comments

Comments
 (0)