@towns-protocol/generated 0.0.213 → 0.0.214
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.
- package/deployments/gamma/base/addresses/swapRouter.json +3 -0
- package/deployments/omega/base/addresses/swapRouter.json +3 -0
- package/dev/abis/ISwapFacet.abi.json +320 -0
- package/dev/abis/ISwapFacet.abi.ts +320 -0
- package/dev/abis/ISwapFacetBase.abi.json +79 -0
- package/dev/abis/ISwapFacetBase.abi.ts +79 -0
- package/dev/abis/ISwapRouter.abi.json +189 -0
- package/dev/abis/ISwapRouter.abi.ts +189 -0
- package/dev/abis/ISwapRouterBase.abi.json +116 -0
- package/dev/abis/ISwapRouterBase.abi.ts +116 -0
- package/dev/typings/ISwapFacet.ts +415 -0
- package/dev/typings/ISwapRouter.ts +250 -0
- package/dev/typings/factories/ISwapFacet__factory.ts +341 -0
- package/dev/typings/factories/ISwapRouter__factory.ts +210 -0
- package/dev/typings/factories/Roles__factory.ts +1 -1
- package/dev/typings/factories/index.ts +2 -0
- package/dev/typings/index.ts +4 -0
- package/package.json +2 -2
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "event",
|
|
4
|
+
"name": "SwapExecuted",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "recipient",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"indexed": true,
|
|
10
|
+
"internalType": "address"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "tokenIn",
|
|
14
|
+
"type": "address",
|
|
15
|
+
"indexed": true,
|
|
16
|
+
"internalType": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "tokenOut",
|
|
20
|
+
"type": "address",
|
|
21
|
+
"indexed": true,
|
|
22
|
+
"internalType": "address"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "amountIn",
|
|
26
|
+
"type": "uint256",
|
|
27
|
+
"indexed": false,
|
|
28
|
+
"internalType": "uint256"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "amountOut",
|
|
32
|
+
"type": "uint256",
|
|
33
|
+
"indexed": false,
|
|
34
|
+
"internalType": "uint256"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "poster",
|
|
38
|
+
"type": "address",
|
|
39
|
+
"indexed": false,
|
|
40
|
+
"internalType": "address"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"anonymous": false
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "event",
|
|
47
|
+
"name": "SwapFeeConfigUpdated",
|
|
48
|
+
"inputs": [
|
|
49
|
+
{
|
|
50
|
+
"name": "posterFeeBps",
|
|
51
|
+
"type": "uint16",
|
|
52
|
+
"indexed": false,
|
|
53
|
+
"internalType": "uint16"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "collectPosterFeeToSpace",
|
|
57
|
+
"type": "bool",
|
|
58
|
+
"indexed": false,
|
|
59
|
+
"internalType": "bool"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"anonymous": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "error",
|
|
66
|
+
"name": "SwapFacet__SwapFailed",
|
|
67
|
+
"inputs": []
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "error",
|
|
71
|
+
"name": "SwapFacet__SwapRouterNotSet",
|
|
72
|
+
"inputs": []
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "error",
|
|
76
|
+
"name": "SwapFacet__TotalFeeTooHigh",
|
|
77
|
+
"inputs": []
|
|
78
|
+
}
|
|
79
|
+
]
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
"type": "event",
|
|
4
|
+
"name": "SwapExecuted",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "recipient",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"indexed": true,
|
|
10
|
+
"internalType": "address"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "tokenIn",
|
|
14
|
+
"type": "address",
|
|
15
|
+
"indexed": true,
|
|
16
|
+
"internalType": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "tokenOut",
|
|
20
|
+
"type": "address",
|
|
21
|
+
"indexed": true,
|
|
22
|
+
"internalType": "address"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "amountIn",
|
|
26
|
+
"type": "uint256",
|
|
27
|
+
"indexed": false,
|
|
28
|
+
"internalType": "uint256"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "amountOut",
|
|
32
|
+
"type": "uint256",
|
|
33
|
+
"indexed": false,
|
|
34
|
+
"internalType": "uint256"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "poster",
|
|
38
|
+
"type": "address",
|
|
39
|
+
"indexed": false,
|
|
40
|
+
"internalType": "address"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"anonymous": false
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "event",
|
|
47
|
+
"name": "SwapFeeConfigUpdated",
|
|
48
|
+
"inputs": [
|
|
49
|
+
{
|
|
50
|
+
"name": "posterFeeBps",
|
|
51
|
+
"type": "uint16",
|
|
52
|
+
"indexed": false,
|
|
53
|
+
"internalType": "uint16"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "collectPosterFeeToSpace",
|
|
57
|
+
"type": "bool",
|
|
58
|
+
"indexed": false,
|
|
59
|
+
"internalType": "bool"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"anonymous": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "error",
|
|
66
|
+
"name": "SwapFacet__SwapFailed",
|
|
67
|
+
"inputs": []
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "error",
|
|
71
|
+
"name": "SwapFacet__SwapRouterNotSet",
|
|
72
|
+
"inputs": []
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "error",
|
|
76
|
+
"name": "SwapFacet__TotalFeeTooHigh",
|
|
77
|
+
"inputs": []
|
|
78
|
+
}
|
|
79
|
+
] as const
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "executeSwap",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "params",
|
|
8
|
+
"type": "tuple",
|
|
9
|
+
"internalType": "struct ISwapRouterBase.ExactInputParams",
|
|
10
|
+
"components": [
|
|
11
|
+
{
|
|
12
|
+
"name": "tokenIn",
|
|
13
|
+
"type": "address",
|
|
14
|
+
"internalType": "address"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "tokenOut",
|
|
18
|
+
"type": "address",
|
|
19
|
+
"internalType": "address"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "amountIn",
|
|
23
|
+
"type": "uint256",
|
|
24
|
+
"internalType": "uint256"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "minAmountOut",
|
|
28
|
+
"type": "uint256",
|
|
29
|
+
"internalType": "uint256"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "recipient",
|
|
33
|
+
"type": "address",
|
|
34
|
+
"internalType": "address"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "routerParams",
|
|
40
|
+
"type": "tuple",
|
|
41
|
+
"internalType": "struct ISwapRouterBase.RouterParams",
|
|
42
|
+
"components": [
|
|
43
|
+
{
|
|
44
|
+
"name": "router",
|
|
45
|
+
"type": "address",
|
|
46
|
+
"internalType": "address"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "approveTarget",
|
|
50
|
+
"type": "address",
|
|
51
|
+
"internalType": "address"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "swapData",
|
|
55
|
+
"type": "bytes",
|
|
56
|
+
"internalType": "bytes"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "poster",
|
|
62
|
+
"type": "address",
|
|
63
|
+
"internalType": "address"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"outputs": [
|
|
67
|
+
{
|
|
68
|
+
"name": "amountOut",
|
|
69
|
+
"type": "uint256",
|
|
70
|
+
"internalType": "uint256"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"stateMutability": "payable"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "event",
|
|
77
|
+
"name": "FeeDistribution",
|
|
78
|
+
"inputs": [
|
|
79
|
+
{
|
|
80
|
+
"name": "token",
|
|
81
|
+
"type": "address",
|
|
82
|
+
"indexed": true,
|
|
83
|
+
"internalType": "address"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "treasury",
|
|
87
|
+
"type": "address",
|
|
88
|
+
"indexed": true,
|
|
89
|
+
"internalType": "address"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "poster",
|
|
93
|
+
"type": "address",
|
|
94
|
+
"indexed": true,
|
|
95
|
+
"internalType": "address"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "treasuryAmount",
|
|
99
|
+
"type": "uint256",
|
|
100
|
+
"indexed": false,
|
|
101
|
+
"internalType": "uint256"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "posterAmount",
|
|
105
|
+
"type": "uint256",
|
|
106
|
+
"indexed": false,
|
|
107
|
+
"internalType": "uint256"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"anonymous": false
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "event",
|
|
114
|
+
"name": "Swap",
|
|
115
|
+
"inputs": [
|
|
116
|
+
{
|
|
117
|
+
"name": "router",
|
|
118
|
+
"type": "address",
|
|
119
|
+
"indexed": true,
|
|
120
|
+
"internalType": "address"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "caller",
|
|
124
|
+
"type": "address",
|
|
125
|
+
"indexed": true,
|
|
126
|
+
"internalType": "address"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "tokenIn",
|
|
130
|
+
"type": "address",
|
|
131
|
+
"indexed": false,
|
|
132
|
+
"internalType": "address"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "tokenOut",
|
|
136
|
+
"type": "address",
|
|
137
|
+
"indexed": false,
|
|
138
|
+
"internalType": "address"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "amountIn",
|
|
142
|
+
"type": "uint256",
|
|
143
|
+
"indexed": false,
|
|
144
|
+
"internalType": "uint256"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "amountOut",
|
|
148
|
+
"type": "uint256",
|
|
149
|
+
"indexed": false,
|
|
150
|
+
"internalType": "uint256"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "recipient",
|
|
154
|
+
"type": "address",
|
|
155
|
+
"indexed": false,
|
|
156
|
+
"internalType": "address"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"anonymous": false
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"type": "event",
|
|
163
|
+
"name": "SwapRouterInitialized",
|
|
164
|
+
"inputs": [
|
|
165
|
+
{
|
|
166
|
+
"name": "spaceFactory",
|
|
167
|
+
"type": "address",
|
|
168
|
+
"indexed": false,
|
|
169
|
+
"internalType": "address"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"anonymous": false
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"type": "error",
|
|
176
|
+
"name": "SwapRouter__InsufficientOutput",
|
|
177
|
+
"inputs": []
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"type": "error",
|
|
181
|
+
"name": "SwapRouter__InvalidAmount",
|
|
182
|
+
"inputs": []
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"type": "error",
|
|
186
|
+
"name": "SwapRouter__InvalidRouter",
|
|
187
|
+
"inputs": []
|
|
188
|
+
}
|
|
189
|
+
]
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "executeSwap",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "params",
|
|
8
|
+
"type": "tuple",
|
|
9
|
+
"internalType": "struct ISwapRouterBase.ExactInputParams",
|
|
10
|
+
"components": [
|
|
11
|
+
{
|
|
12
|
+
"name": "tokenIn",
|
|
13
|
+
"type": "address",
|
|
14
|
+
"internalType": "address"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "tokenOut",
|
|
18
|
+
"type": "address",
|
|
19
|
+
"internalType": "address"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "amountIn",
|
|
23
|
+
"type": "uint256",
|
|
24
|
+
"internalType": "uint256"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "minAmountOut",
|
|
28
|
+
"type": "uint256",
|
|
29
|
+
"internalType": "uint256"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "recipient",
|
|
33
|
+
"type": "address",
|
|
34
|
+
"internalType": "address"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "routerParams",
|
|
40
|
+
"type": "tuple",
|
|
41
|
+
"internalType": "struct ISwapRouterBase.RouterParams",
|
|
42
|
+
"components": [
|
|
43
|
+
{
|
|
44
|
+
"name": "router",
|
|
45
|
+
"type": "address",
|
|
46
|
+
"internalType": "address"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "approveTarget",
|
|
50
|
+
"type": "address",
|
|
51
|
+
"internalType": "address"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "swapData",
|
|
55
|
+
"type": "bytes",
|
|
56
|
+
"internalType": "bytes"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "poster",
|
|
62
|
+
"type": "address",
|
|
63
|
+
"internalType": "address"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"outputs": [
|
|
67
|
+
{
|
|
68
|
+
"name": "amountOut",
|
|
69
|
+
"type": "uint256",
|
|
70
|
+
"internalType": "uint256"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"stateMutability": "payable"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "event",
|
|
77
|
+
"name": "FeeDistribution",
|
|
78
|
+
"inputs": [
|
|
79
|
+
{
|
|
80
|
+
"name": "token",
|
|
81
|
+
"type": "address",
|
|
82
|
+
"indexed": true,
|
|
83
|
+
"internalType": "address"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "treasury",
|
|
87
|
+
"type": "address",
|
|
88
|
+
"indexed": true,
|
|
89
|
+
"internalType": "address"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "poster",
|
|
93
|
+
"type": "address",
|
|
94
|
+
"indexed": true,
|
|
95
|
+
"internalType": "address"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "treasuryAmount",
|
|
99
|
+
"type": "uint256",
|
|
100
|
+
"indexed": false,
|
|
101
|
+
"internalType": "uint256"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "posterAmount",
|
|
105
|
+
"type": "uint256",
|
|
106
|
+
"indexed": false,
|
|
107
|
+
"internalType": "uint256"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"anonymous": false
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "event",
|
|
114
|
+
"name": "Swap",
|
|
115
|
+
"inputs": [
|
|
116
|
+
{
|
|
117
|
+
"name": "router",
|
|
118
|
+
"type": "address",
|
|
119
|
+
"indexed": true,
|
|
120
|
+
"internalType": "address"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "caller",
|
|
124
|
+
"type": "address",
|
|
125
|
+
"indexed": true,
|
|
126
|
+
"internalType": "address"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "tokenIn",
|
|
130
|
+
"type": "address",
|
|
131
|
+
"indexed": false,
|
|
132
|
+
"internalType": "address"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "tokenOut",
|
|
136
|
+
"type": "address",
|
|
137
|
+
"indexed": false,
|
|
138
|
+
"internalType": "address"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "amountIn",
|
|
142
|
+
"type": "uint256",
|
|
143
|
+
"indexed": false,
|
|
144
|
+
"internalType": "uint256"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "amountOut",
|
|
148
|
+
"type": "uint256",
|
|
149
|
+
"indexed": false,
|
|
150
|
+
"internalType": "uint256"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "recipient",
|
|
154
|
+
"type": "address",
|
|
155
|
+
"indexed": false,
|
|
156
|
+
"internalType": "address"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"anonymous": false
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"type": "event",
|
|
163
|
+
"name": "SwapRouterInitialized",
|
|
164
|
+
"inputs": [
|
|
165
|
+
{
|
|
166
|
+
"name": "spaceFactory",
|
|
167
|
+
"type": "address",
|
|
168
|
+
"indexed": false,
|
|
169
|
+
"internalType": "address"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"anonymous": false
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"type": "error",
|
|
176
|
+
"name": "SwapRouter__InsufficientOutput",
|
|
177
|
+
"inputs": []
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"type": "error",
|
|
181
|
+
"name": "SwapRouter__InvalidAmount",
|
|
182
|
+
"inputs": []
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"type": "error",
|
|
186
|
+
"name": "SwapRouter__InvalidRouter",
|
|
187
|
+
"inputs": []
|
|
188
|
+
}
|
|
189
|
+
] as const
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "event",
|
|
4
|
+
"name": "FeeDistribution",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "token",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"indexed": true,
|
|
10
|
+
"internalType": "address"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "treasury",
|
|
14
|
+
"type": "address",
|
|
15
|
+
"indexed": true,
|
|
16
|
+
"internalType": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "poster",
|
|
20
|
+
"type": "address",
|
|
21
|
+
"indexed": true,
|
|
22
|
+
"internalType": "address"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "treasuryAmount",
|
|
26
|
+
"type": "uint256",
|
|
27
|
+
"indexed": false,
|
|
28
|
+
"internalType": "uint256"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "posterAmount",
|
|
32
|
+
"type": "uint256",
|
|
33
|
+
"indexed": false,
|
|
34
|
+
"internalType": "uint256"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"anonymous": false
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "event",
|
|
41
|
+
"name": "Swap",
|
|
42
|
+
"inputs": [
|
|
43
|
+
{
|
|
44
|
+
"name": "router",
|
|
45
|
+
"type": "address",
|
|
46
|
+
"indexed": true,
|
|
47
|
+
"internalType": "address"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "caller",
|
|
51
|
+
"type": "address",
|
|
52
|
+
"indexed": true,
|
|
53
|
+
"internalType": "address"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "tokenIn",
|
|
57
|
+
"type": "address",
|
|
58
|
+
"indexed": false,
|
|
59
|
+
"internalType": "address"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "tokenOut",
|
|
63
|
+
"type": "address",
|
|
64
|
+
"indexed": false,
|
|
65
|
+
"internalType": "address"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "amountIn",
|
|
69
|
+
"type": "uint256",
|
|
70
|
+
"indexed": false,
|
|
71
|
+
"internalType": "uint256"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "amountOut",
|
|
75
|
+
"type": "uint256",
|
|
76
|
+
"indexed": false,
|
|
77
|
+
"internalType": "uint256"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "recipient",
|
|
81
|
+
"type": "address",
|
|
82
|
+
"indexed": false,
|
|
83
|
+
"internalType": "address"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"anonymous": false
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"type": "event",
|
|
90
|
+
"name": "SwapRouterInitialized",
|
|
91
|
+
"inputs": [
|
|
92
|
+
{
|
|
93
|
+
"name": "spaceFactory",
|
|
94
|
+
"type": "address",
|
|
95
|
+
"indexed": false,
|
|
96
|
+
"internalType": "address"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"anonymous": false
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "error",
|
|
103
|
+
"name": "SwapRouter__InsufficientOutput",
|
|
104
|
+
"inputs": []
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"type": "error",
|
|
108
|
+
"name": "SwapRouter__InvalidAmount",
|
|
109
|
+
"inputs": []
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "error",
|
|
113
|
+
"name": "SwapRouter__InvalidRouter",
|
|
114
|
+
"inputs": []
|
|
115
|
+
}
|
|
116
|
+
]
|