@kasarlabs/starkgate-mcp 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +166 -0
  3. package/build/abi/l1bridge/bridge-dai.abi.d.ts +39 -0
  4. package/build/abi/l1bridge/bridge-dai.abi.js +333 -0
  5. package/build/abi/l1bridge/bridge-dai.abi.js.map +1 -0
  6. package/build/abi/l1bridge/bridge-eth.abi.d.ts +28 -0
  7. package/build/abi/l1bridge/bridge-eth.abi.js +1024 -0
  8. package/build/abi/l1bridge/bridge-eth.abi.js.map +1 -0
  9. package/build/abi/l1bridge/bridge-lords.abi.d.ts +46 -0
  10. package/build/abi/l1bridge/bridge-lords.abi.js +98 -0
  11. package/build/abi/l1bridge/bridge-lords.abi.js.map +1 -0
  12. package/build/abi/l1bridge/bridge-map.d.ts +256 -0
  13. package/build/abi/l1bridge/bridge-map.js +19 -0
  14. package/build/abi/l1bridge/bridge-map.js.map +1 -0
  15. package/build/abi/l1bridge/bridge-strk.abi.d.ts +28 -0
  16. package/build/abi/l1bridge/bridge-strk.abi.js +1024 -0
  17. package/build/abi/l1bridge/bridge-strk.abi.js.map +1 -0
  18. package/build/abi/l1bridge/bridge-swss.abi.d.ts +28 -0
  19. package/build/abi/l1bridge/bridge-swss.abi.js +1024 -0
  20. package/build/abi/l1bridge/bridge-swss.abi.js.map +1 -0
  21. package/build/abi/l1bridge/bridge-usdc.abi.d.ts +28 -0
  22. package/build/abi/l1bridge/bridge-usdc.abi.js +1024 -0
  23. package/build/abi/l1bridge/bridge-usdc.abi.js.map +1 -0
  24. package/build/abi/l1bridge/bridge-usdt.abi.d.ts +28 -0
  25. package/build/abi/l1bridge/bridge-usdt.abi.js +1024 -0
  26. package/build/abi/l1bridge/bridge-usdt.abi.js.map +1 -0
  27. package/build/abi/l1bridge/bridge-wbtc.abi.d.ts +28 -0
  28. package/build/abi/l1bridge/bridge-wbtc.abi.js +1024 -0
  29. package/build/abi/l1bridge/bridge-wbtc.abi.js.map +1 -0
  30. package/build/abi/l2bridge/bridge-dai.abi.d.ts +57 -0
  31. package/build/abi/l2bridge/bridge-dai.abi.js +286 -0
  32. package/build/abi/l2bridge/bridge-dai.abi.js.map +1 -0
  33. package/build/abi/l2bridge/bridge-eth.abi.d.ts +120 -0
  34. package/build/abi/l2bridge/bridge-eth.abi.js +1679 -0
  35. package/build/abi/l2bridge/bridge-eth.abi.js.map +1 -0
  36. package/build/abi/l2bridge/bridge-lords.abi.d.ts +27 -0
  37. package/build/abi/l2bridge/bridge-lords.abi.js +113 -0
  38. package/build/abi/l2bridge/bridge-lords.abi.js.map +1 -0
  39. package/build/abi/l2bridge/bridge-map.d.ts +807 -0
  40. package/build/abi/l2bridge/bridge-map.js +19 -0
  41. package/build/abi/l2bridge/bridge-map.js.map +1 -0
  42. package/build/abi/l2bridge/bridge-strk.abi.d.ts +120 -0
  43. package/build/abi/l2bridge/bridge-strk.abi.js +1679 -0
  44. package/build/abi/l2bridge/bridge-strk.abi.js.map +1 -0
  45. package/build/abi/l2bridge/bridge-swss.abi.d.ts +120 -0
  46. package/build/abi/l2bridge/bridge-swss.abi.js +1730 -0
  47. package/build/abi/l2bridge/bridge-swss.abi.js.map +1 -0
  48. package/build/abi/l2bridge/bridge-usdc.abi.d.ts +120 -0
  49. package/build/abi/l2bridge/bridge-usdc.abi.js +1679 -0
  50. package/build/abi/l2bridge/bridge-usdc.abi.js.map +1 -0
  51. package/build/abi/l2bridge/bridge-usdt.abi.d.ts +120 -0
  52. package/build/abi/l2bridge/bridge-usdt.abi.js +1679 -0
  53. package/build/abi/l2bridge/bridge-usdt.abi.js.map +1 -0
  54. package/build/abi/l2bridge/bridge-wbtc.abi.d.ts +120 -0
  55. package/build/abi/l2bridge/bridge-wbtc.abi.js +1679 -0
  56. package/build/abi/l2bridge/bridge-wbtc.abi.js.map +1 -0
  57. package/build/constants/contract-address.d.ts +18 -0
  58. package/build/constants/contract-address.js +33 -0
  59. package/build/constants/contract-address.js.map +1 -0
  60. package/build/index.d.ts +2 -0
  61. package/build/index.js +51 -0
  62. package/build/index.js.map +1 -0
  63. package/build/interfaces/types.d.ts +1 -0
  64. package/build/interfaces/types.js +2 -0
  65. package/build/interfaces/types.js.map +1 -0
  66. package/build/lib/utils.d.ts +19 -0
  67. package/build/lib/utils.js +121 -0
  68. package/build/lib/utils.js.map +1 -0
  69. package/build/schemas/bridgeSchemas.d.ts +30 -0
  70. package/build/schemas/bridgeSchemas.js +24 -0
  71. package/build/schemas/bridgeSchemas.js.map +1 -0
  72. package/build/schemas/index.d.ts +2 -0
  73. package/build/schemas/index.js +2 -0
  74. package/build/schemas/index.js.map +1 -0
  75. package/build/tools/bridgeL1toL2.d.ts +5 -0
  76. package/build/tools/bridgeL1toL2.js +109 -0
  77. package/build/tools/bridgeL1toL2.js.map +1 -0
  78. package/build/tools/bridgeL2toL1.d.ts +4 -0
  79. package/build/tools/bridgeL2toL1.js +112 -0
  80. package/build/tools/bridgeL2toL1.js.map +1 -0
  81. package/package.json +49 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Kasar Labs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,166 @@
1
+ # StarkGate Bridge MCP
2
+
3
+ MCP server for StarkGate bridge operations between Ethereum L1 and Starknet L2.
4
+
5
+ ## Features
6
+
7
+ - Bridge ETH and ERC20 tokens (USDC, USDT, WBTC, STRK) from Ethereum L1 to Starknet L2
8
+ - Bridge ETH and ERC20 tokens from Starknet L2 to Ethereum L1
9
+ - Automatic ERC20 token approval handling
10
+ - Token balance and allowance verification
11
+ - Secure environment variable-based configuration
12
+ - No private keys exposed in tool schemas
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ pnpm install
18
+ pnpm build
19
+ ```
20
+
21
+ ## Configuration
22
+
23
+ Create a `.env` file based on `.env.example`:
24
+
25
+ ```bash
26
+ cp .env.example .env
27
+ ```
28
+
29
+ ### Required Environment Variables
30
+
31
+ #### For Starknet L2 Operations:
32
+
33
+ - `STARKNET_RPC_URL`: Your Starknet RPC endpoint
34
+ - `STARKNET_PRIVATE_KEY`: Your Starknet account private key
35
+ - `STARKNET_ACCOUNT_ADDRESS`: Your Starknet account address
36
+
37
+ #### For Ethereum L1 Operations:
38
+
39
+ - `ETHEREUM_RPC_URL`: Your Ethereum RPC endpoint
40
+ - `ETHEREUM_PRIVATE_KEY`: Your Ethereum wallet private key
41
+
42
+ ## Available Tools
43
+
44
+ ### bridge_l1_to_l2
45
+
46
+ Bridge ETH or ERC20 tokens from Ethereum L1 to Starknet L2.
47
+
48
+ **Parameters:**
49
+
50
+ - `l1chain` (string): The L1 chain to bridge from (e.g., "ethereum")
51
+ - `toAddress` (string): The Starknet address to receive the funds
52
+ - `amount` (string): The amount to bridge (in token units, e.g., "0.001" for ETH or "1.0" for USDC)
53
+ - `symbol` (string): Token symbol (ETH, USDC, USDT, WBTC, STRK)
54
+
55
+ **Supported Tokens:**
56
+
57
+ - ETH (18 decimals)
58
+ - USDC (6 decimals)
59
+ - USDT (6 decimals)
60
+ - WBTC (8 decimals)
61
+ - STRK (18 decimals)
62
+
63
+ **Example (ETH):**
64
+
65
+ ```json
66
+ {
67
+ "l1chain": "ethereum",
68
+ "toAddress": "0x01fbe320049F84A38FbcB21B4Ae1a4aab89e4aB3c825d38d35202Ee873439E7D",
69
+ "amount": "0.001",
70
+ "symbol": "ETH"
71
+ }
72
+ ```
73
+
74
+ **Example (USDC):**
75
+
76
+ ```json
77
+ {
78
+ "l1chain": "ethereum",
79
+ "toAddress": "0x01fbe320049F84A38FbcB21B4Ae1a4aab89e4aB3c825d38d35202Ee873439E7D",
80
+ "amount": "10.0",
81
+ "symbol": "USDC"
82
+ }
83
+ ```
84
+
85
+ **Note:** For ERC20 tokens, the bridge will automatically:
86
+
87
+ 1. Check your token balance
88
+ 2. Check current allowance for the bridge contract
89
+ 3. Approve the bridge to spend tokens if needed (requires 1 transaction)
90
+ 4. Execute the bridge deposit (requires 1 transaction)
91
+
92
+ ### bridge_l2_to_l1
93
+
94
+ Bridge ETH or ERC20 tokens from Starknet L2 to Ethereum L1.
95
+
96
+ **Parameters:**
97
+
98
+ - `l1chain` (string): The L1 chain to bridge to (e.g., "ethereum")
99
+ - `toAddress` (string): The Ethereum address to receive the funds
100
+ - `amount` (string): The amount to withdraw (in token units, e.g., "0.001" for ETH or "1.0" for USDC)
101
+ - `symbol` (string): Token symbol (ETH, USDC, USDT, WBTC, STRK)
102
+
103
+ **Supported Tokens:**
104
+
105
+ - ETH (18 decimals)
106
+ - USDC (6 decimals)
107
+ - USDT (6 decimals)
108
+ - WBTC (8 decimals)
109
+ - STRK (18 decimals)
110
+
111
+ **Example (ETH):**
112
+
113
+ ```json
114
+ {
115
+ "l1chain": "ethereum",
116
+ "toAddress": "0x8283a06f328eff7d505f475b0930260058066388",
117
+ "amount": "0.001",
118
+ "symbol": "ETH"
119
+ }
120
+ ```
121
+
122
+ **Example (USDC):**
123
+
124
+ ```json
125
+ {
126
+ "l1chain": "ethereum",
127
+ "toAddress": "0x8283a06f328eff7d505f475b0930260058066388",
128
+ "amount": "10.0",
129
+ "symbol": "USDC"
130
+ }
131
+ ```
132
+
133
+ **Note:** L2 to L1 withdrawals typically take 4-12 hours to finalize on Ethereum due to Starknet's withdrawal mechanism.
134
+
135
+ ## Security Notes
136
+
137
+ - Never commit your `.env` file to version control
138
+ - Private keys are loaded from environment variables only
139
+ - No sensitive data is exposed in tool schemas or logs
140
+ - Uses `onchainWrite` pattern from `@kasarlabs/ask-starknet-core`
141
+
142
+ ## Development
143
+
144
+ ```bash
145
+ # Build the project
146
+ pnpm build
147
+
148
+ # Clean build artifacts
149
+ pnpm clean
150
+
151
+ # Start the MCP server
152
+ pnpm start
153
+ ```
154
+
155
+ ## Architecture
156
+
157
+ This MCP follows the same pattern as other MCPs in the ask-starknet project:
158
+
159
+ - **Tools**: Bridge operation functions in [src/tools/bridgeTools.ts](src/tools/bridgeTools.ts)
160
+ - **Schemas**: Zod schemas for input validation in [src/schemas/](src/schemas/)
161
+ - **Utils**: Environment configuration helpers in [src/lib/utils.ts](src/lib/utils.ts)
162
+ - **Main**: MCP server setup in [src/index.ts](src/index.ts)
163
+
164
+ ## License
165
+
166
+ MIT
@@ -0,0 +1,39 @@
1
+ export declare const BRIDGE_L1_DAI_TO_STARKNET_ABI: ({
2
+ inputs: {
3
+ internalType: string;
4
+ name: string;
5
+ type: string;
6
+ }[];
7
+ stateMutability: string;
8
+ type: string;
9
+ anonymous?: undefined;
10
+ name?: undefined;
11
+ outputs?: undefined;
12
+ } | {
13
+ anonymous: boolean;
14
+ inputs: {
15
+ indexed: boolean;
16
+ internalType: string;
17
+ name: string;
18
+ type: string;
19
+ }[];
20
+ name: string;
21
+ type: string;
22
+ stateMutability?: undefined;
23
+ outputs?: undefined;
24
+ } | {
25
+ inputs: {
26
+ internalType: string;
27
+ name: string;
28
+ type: string;
29
+ }[];
30
+ name: string;
31
+ outputs: {
32
+ internalType: string;
33
+ name: string;
34
+ type: string;
35
+ }[];
36
+ stateMutability: string;
37
+ type: string;
38
+ anonymous?: undefined;
39
+ })[];
@@ -0,0 +1,333 @@
1
+ export const BRIDGE_L1_DAI_TO_STARKNET_ABI = [
2
+ {
3
+ inputs: [
4
+ { internalType: 'address', name: '_starkNet', type: 'address' },
5
+ { internalType: 'address', name: '_dai', type: 'address' },
6
+ { internalType: 'uint256', name: '_l2Dai', type: 'uint256' },
7
+ { internalType: 'address', name: '_escrow', type: 'address' },
8
+ { internalType: 'uint256', name: '_l2DaiBridge', type: 'uint256' },
9
+ ],
10
+ stateMutability: 'nonpayable',
11
+ type: 'constructor',
12
+ },
13
+ { anonymous: false, inputs: [], name: 'Closed', type: 'event' },
14
+ {
15
+ anonymous: false,
16
+ inputs: [
17
+ { indexed: true, internalType: 'address', name: 'usr', type: 'address' },
18
+ ],
19
+ name: 'Deny',
20
+ type: 'event',
21
+ },
22
+ {
23
+ anonymous: false,
24
+ inputs: [
25
+ {
26
+ indexed: true,
27
+ internalType: 'uint256',
28
+ name: 'l2Recipient',
29
+ type: 'uint256',
30
+ },
31
+ {
32
+ indexed: false,
33
+ internalType: 'address',
34
+ name: 'l1Recipient',
35
+ type: 'address',
36
+ },
37
+ {
38
+ indexed: false,
39
+ internalType: 'uint256',
40
+ name: 'amount',
41
+ type: 'uint256',
42
+ },
43
+ {
44
+ indexed: false,
45
+ internalType: 'uint256',
46
+ name: 'nonce',
47
+ type: 'uint256',
48
+ },
49
+ ],
50
+ name: 'LogCancelDeposit',
51
+ type: 'event',
52
+ },
53
+ {
54
+ anonymous: false,
55
+ inputs: [
56
+ {
57
+ indexed: false,
58
+ internalType: 'uint256',
59
+ name: 'ceiling',
60
+ type: 'uint256',
61
+ },
62
+ ],
63
+ name: 'LogCeiling',
64
+ type: 'event',
65
+ },
66
+ {
67
+ anonymous: false,
68
+ inputs: [
69
+ {
70
+ indexed: true,
71
+ internalType: 'address',
72
+ name: 'l1Sender',
73
+ type: 'address',
74
+ },
75
+ {
76
+ indexed: false,
77
+ internalType: 'uint256',
78
+ name: 'amount',
79
+ type: 'uint256',
80
+ },
81
+ {
82
+ indexed: false,
83
+ internalType: 'uint256',
84
+ name: 'l2Recipient',
85
+ type: 'uint256',
86
+ },
87
+ ],
88
+ name: 'LogDeposit',
89
+ type: 'event',
90
+ },
91
+ {
92
+ anonymous: false,
93
+ inputs: [
94
+ {
95
+ indexed: true,
96
+ internalType: 'address',
97
+ name: 'l1Recipient',
98
+ type: 'address',
99
+ },
100
+ {
101
+ indexed: false,
102
+ internalType: 'uint256',
103
+ name: 'amount',
104
+ type: 'uint256',
105
+ },
106
+ {
107
+ indexed: true,
108
+ internalType: 'uint256',
109
+ name: 'l2Sender',
110
+ type: 'uint256',
111
+ },
112
+ ],
113
+ name: 'LogForceWithdrawal',
114
+ type: 'event',
115
+ },
116
+ {
117
+ anonymous: false,
118
+ inputs: [
119
+ {
120
+ indexed: false,
121
+ internalType: 'uint256',
122
+ name: 'maxDeposit',
123
+ type: 'uint256',
124
+ },
125
+ ],
126
+ name: 'LogMaxDeposit',
127
+ type: 'event',
128
+ },
129
+ {
130
+ anonymous: false,
131
+ inputs: [
132
+ {
133
+ indexed: true,
134
+ internalType: 'uint256',
135
+ name: 'l2Receipient',
136
+ type: 'uint256',
137
+ },
138
+ {
139
+ indexed: false,
140
+ internalType: 'uint256',
141
+ name: 'amount',
142
+ type: 'uint256',
143
+ },
144
+ {
145
+ indexed: false,
146
+ internalType: 'uint256',
147
+ name: 'nonce',
148
+ type: 'uint256',
149
+ },
150
+ ],
151
+ name: 'LogStartDepositCancellation',
152
+ type: 'event',
153
+ },
154
+ {
155
+ anonymous: false,
156
+ inputs: [
157
+ {
158
+ indexed: true,
159
+ internalType: 'address',
160
+ name: 'l1Recipient',
161
+ type: 'address',
162
+ },
163
+ {
164
+ indexed: false,
165
+ internalType: 'uint256',
166
+ name: 'amount',
167
+ type: 'uint256',
168
+ },
169
+ ],
170
+ name: 'LogWithdrawal',
171
+ type: 'event',
172
+ },
173
+ {
174
+ anonymous: false,
175
+ inputs: [
176
+ { indexed: true, internalType: 'address', name: 'usr', type: 'address' },
177
+ ],
178
+ name: 'Rely',
179
+ type: 'event',
180
+ },
181
+ {
182
+ inputs: [
183
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
184
+ { internalType: 'uint256', name: 'l2Recipient', type: 'uint256' },
185
+ { internalType: 'address', name: 'l1Recipient', type: 'address' },
186
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
187
+ ],
188
+ name: 'cancelDeposit',
189
+ outputs: [],
190
+ stateMutability: 'nonpayable',
191
+ type: 'function',
192
+ },
193
+ {
194
+ inputs: [],
195
+ name: 'ceiling',
196
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
197
+ stateMutability: 'view',
198
+ type: 'function',
199
+ },
200
+ {
201
+ inputs: [],
202
+ name: 'close',
203
+ outputs: [],
204
+ stateMutability: 'nonpayable',
205
+ type: 'function',
206
+ },
207
+ {
208
+ inputs: [],
209
+ name: 'dai',
210
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
211
+ stateMutability: 'view',
212
+ type: 'function',
213
+ },
214
+ {
215
+ inputs: [{ internalType: 'address', name: 'usr', type: 'address' }],
216
+ name: 'deny',
217
+ outputs: [],
218
+ stateMutability: 'nonpayable',
219
+ type: 'function',
220
+ },
221
+ {
222
+ inputs: [
223
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
224
+ { internalType: 'uint256', name: 'l2Recipient', type: 'uint256' },
225
+ ],
226
+ name: 'deposit',
227
+ outputs: [],
228
+ stateMutability: 'payable',
229
+ type: 'function',
230
+ },
231
+ {
232
+ inputs: [],
233
+ name: 'escrow',
234
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
235
+ stateMutability: 'view',
236
+ type: 'function',
237
+ },
238
+ {
239
+ inputs: [
240
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
241
+ { internalType: 'uint256', name: 'l2Sender', type: 'uint256' },
242
+ ],
243
+ name: 'forceWithdrawal',
244
+ outputs: [],
245
+ stateMutability: 'payable',
246
+ type: 'function',
247
+ },
248
+ {
249
+ inputs: [],
250
+ name: 'isOpen',
251
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
252
+ stateMutability: 'view',
253
+ type: 'function',
254
+ },
255
+ {
256
+ inputs: [],
257
+ name: 'l2Dai',
258
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
259
+ stateMutability: 'view',
260
+ type: 'function',
261
+ },
262
+ {
263
+ inputs: [],
264
+ name: 'l2DaiBridge',
265
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
266
+ stateMutability: 'view',
267
+ type: 'function',
268
+ },
269
+ {
270
+ inputs: [],
271
+ name: 'maxDeposit',
272
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
273
+ stateMutability: 'view',
274
+ type: 'function',
275
+ },
276
+ {
277
+ inputs: [{ internalType: 'address', name: 'usr', type: 'address' }],
278
+ name: 'rely',
279
+ outputs: [],
280
+ stateMutability: 'nonpayable',
281
+ type: 'function',
282
+ },
283
+ {
284
+ inputs: [{ internalType: 'uint256', name: '_ceiling', type: 'uint256' }],
285
+ name: 'setCeiling',
286
+ outputs: [],
287
+ stateMutability: 'nonpayable',
288
+ type: 'function',
289
+ },
290
+ {
291
+ inputs: [{ internalType: 'uint256', name: '_maxDeposit', type: 'uint256' }],
292
+ name: 'setMaxDeposit',
293
+ outputs: [],
294
+ stateMutability: 'nonpayable',
295
+ type: 'function',
296
+ },
297
+ {
298
+ inputs: [],
299
+ name: 'starkNet',
300
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
301
+ stateMutability: 'view',
302
+ type: 'function',
303
+ },
304
+ {
305
+ inputs: [
306
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
307
+ { internalType: 'uint256', name: 'l2Recipient', type: 'uint256' },
308
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
309
+ ],
310
+ name: 'startDepositCancellation',
311
+ outputs: [],
312
+ stateMutability: 'nonpayable',
313
+ type: 'function',
314
+ },
315
+ {
316
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
317
+ name: 'wards',
318
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
319
+ stateMutability: 'view',
320
+ type: 'function',
321
+ },
322
+ {
323
+ inputs: [
324
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
325
+ { internalType: 'address', name: 'l1Recipient', type: 'address' },
326
+ ],
327
+ name: 'withdraw',
328
+ outputs: [],
329
+ stateMutability: 'nonpayable',
330
+ type: 'function',
331
+ },
332
+ ];
333
+ //# sourceMappingURL=bridge-dai.abi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bridge-dai.abi.js","sourceRoot":"","sources":["../../../src/abi/l1bridge/bridge-dai.abi.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE;YAC/D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;YAC1D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;YAC5D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YAC7D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE;SACnE;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,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E,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QACjE,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE;YAC5D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE;SAClE;QACD,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;CACF,CAAC"}
@@ -0,0 +1,28 @@
1
+ export declare const BRIDGE_L1_ETH_TO_STARKNET_ABI: ({
2
+ anonymous: boolean;
3
+ inputs: {
4
+ indexed: boolean;
5
+ internalType: string;
6
+ name: string;
7
+ type: string;
8
+ }[];
9
+ name: string;
10
+ type: string;
11
+ outputs?: undefined;
12
+ stateMutability?: undefined;
13
+ } | {
14
+ inputs: {
15
+ internalType: string;
16
+ name: string;
17
+ type: string;
18
+ }[];
19
+ name: string;
20
+ outputs: {
21
+ internalType: string;
22
+ name: string;
23
+ type: string;
24
+ }[];
25
+ stateMutability: string;
26
+ type: string;
27
+ anonymous?: undefined;
28
+ })[];