Skip to content

Commit 887a8c0

Browse files
committed
feat: added mock usdc and updated exchange contract
1 parent 3298cdd commit 887a8c0

File tree

4 files changed

+257
-94
lines changed

4 files changed

+257
-94
lines changed

abis/ExchangeAbiV1.json

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"internalType": "address",
1111
"name": "_usdcAddress",
1212
"type": "address"
13+
},
14+
{
15+
"internalType": "address",
16+
"name": "_vaultAddress",
17+
"type": "address"
1318
}
1419
],
1520
"stateMutability": "nonpayable",
@@ -89,6 +94,43 @@
8994
"name": "Transfer",
9095
"type": "event"
9196
},
97+
{
98+
"anonymous": false,
99+
"inputs": [
100+
{
101+
"indexed": true,
102+
"internalType": "address",
103+
"name": "from",
104+
"type": "address"
105+
},
106+
{
107+
"indexed": true,
108+
"internalType": "address",
109+
"name": "to",
110+
"type": "address"
111+
},
112+
{
113+
"indexed": false,
114+
"internalType": "uint256",
115+
"name": "amount",
116+
"type": "uint256"
117+
},
118+
{
119+
"indexed": false,
120+
"internalType": "uint256",
121+
"name": "shares",
122+
"type": "uint256"
123+
},
124+
{
125+
"indexed": false,
126+
"internalType": "string",
127+
"name": "uen",
128+
"type": "string"
129+
}
130+
],
131+
"name": "VaultDeposit",
132+
"type": "event"
133+
},
92134
{
93135
"inputs": [
94136
{
@@ -127,6 +169,25 @@
127169
"stateMutability": "view",
128170
"type": "function"
129171
},
172+
{
173+
"inputs": [
174+
{
175+
"internalType": "address",
176+
"name": "_account",
177+
"type": "address"
178+
}
179+
],
180+
"name": "getVaultBalance",
181+
"outputs": [
182+
{
183+
"internalType": "uint256",
184+
"name": "",
185+
"type": "uint256"
186+
}
187+
],
188+
"stateMutability": "view",
189+
"type": "function"
190+
},
130191
{
131192
"inputs": [],
132193
"name": "registry",
@@ -158,6 +219,24 @@
158219
"stateMutability": "nonpayable",
159220
"type": "function"
160221
},
222+
{
223+
"inputs": [
224+
{
225+
"internalType": "string",
226+
"name": "_uen",
227+
"type": "string"
228+
},
229+
{
230+
"internalType": "uint256",
231+
"name": "_amount",
232+
"type": "uint256"
233+
}
234+
],
235+
"name": "transferToVault",
236+
"outputs": [],
237+
"stateMutability": "nonpayable",
238+
"type": "function"
239+
},
161240
{
162241
"inputs": [],
163242
"name": "usdcToken",
@@ -170,5 +249,18 @@
170249
],
171250
"stateMutability": "view",
172251
"type": "function"
252+
},
253+
{
254+
"inputs": [],
255+
"name": "vault",
256+
"outputs": [
257+
{
258+
"internalType": "contract IERC4626",
259+
"name": "",
260+
"type": "address"
261+
}
262+
],
263+
"stateMutability": "view",
264+
"type": "function"
173265
}
174266
]

0 commit comments

Comments
 (0)