sablier 2.0.3-beta.1 → 2.0.3-beta.2

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.
@@ -0,0 +1,239 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ { "name": "initialAttestor", "type": "address", "internalType": "address" },
6
+ { "name": "initialComptroller", "type": "address", "internalType": "address" }
7
+ ],
8
+ "stateMutability": "nonpayable"
9
+ },
10
+ {
11
+ "type": "function",
12
+ "name": "attestor",
13
+ "inputs": [],
14
+ "outputs": [{ "name": "", "type": "address", "internalType": "address" }],
15
+ "stateMutability": "view"
16
+ },
17
+ {
18
+ "type": "function",
19
+ "name": "comptroller",
20
+ "inputs": [],
21
+ "outputs": [{ "name": "", "type": "address", "internalType": "contract ISablierComptroller" }],
22
+ "stateMutability": "view"
23
+ },
24
+ {
25
+ "type": "function",
26
+ "name": "computeMerkleInstant",
27
+ "inputs": [
28
+ { "name": "campaignCreator", "type": "address", "internalType": "address" },
29
+ {
30
+ "name": "campaignParams",
31
+ "type": "tuple",
32
+ "internalType": "struct MerkleInstant.ConstructorParams",
33
+ "components": [
34
+ { "name": "campaignName", "type": "string", "internalType": "string" },
35
+ { "name": "campaignStartTime", "type": "uint40", "internalType": "uint40" },
36
+ { "name": "claimType", "type": "uint8", "internalType": "enum ClaimType" },
37
+ { "name": "expiration", "type": "uint40", "internalType": "uint40" },
38
+ { "name": "initialAdmin", "type": "address", "internalType": "address" },
39
+ { "name": "ipfsCID", "type": "string", "internalType": "string" },
40
+ { "name": "merkleRoot", "type": "bytes32", "internalType": "bytes32" },
41
+ { "name": "token", "type": "address", "internalType": "contract IERC20" }
42
+ ]
43
+ }
44
+ ],
45
+ "outputs": [{ "name": "merkleInstant", "type": "address", "internalType": "address" }],
46
+ "stateMutability": "view"
47
+ },
48
+ {
49
+ "type": "function",
50
+ "name": "createMerkleInstant",
51
+ "inputs": [
52
+ {
53
+ "name": "campaignParams",
54
+ "type": "tuple",
55
+ "internalType": "struct MerkleInstant.ConstructorParams",
56
+ "components": [
57
+ { "name": "campaignName", "type": "string", "internalType": "string" },
58
+ { "name": "campaignStartTime", "type": "uint40", "internalType": "uint40" },
59
+ { "name": "claimType", "type": "uint8", "internalType": "enum ClaimType" },
60
+ { "name": "expiration", "type": "uint40", "internalType": "uint40" },
61
+ { "name": "initialAdmin", "type": "address", "internalType": "address" },
62
+ { "name": "ipfsCID", "type": "string", "internalType": "string" },
63
+ { "name": "merkleRoot", "type": "bytes32", "internalType": "bytes32" },
64
+ { "name": "token", "type": "address", "internalType": "contract IERC20" }
65
+ ]
66
+ },
67
+ { "name": "aggregateAmount", "type": "uint256", "internalType": "uint256" },
68
+ { "name": "recipientCount", "type": "uint256", "internalType": "uint256" }
69
+ ],
70
+ "outputs": [
71
+ {
72
+ "name": "merkleInstant",
73
+ "type": "address",
74
+ "internalType": "contract ISablierMerkleInstant"
75
+ }
76
+ ],
77
+ "stateMutability": "nonpayable"
78
+ },
79
+ {
80
+ "type": "function",
81
+ "name": "nativeToken",
82
+ "inputs": [],
83
+ "outputs": [{ "name": "", "type": "address", "internalType": "address" }],
84
+ "stateMutability": "view"
85
+ },
86
+ {
87
+ "type": "function",
88
+ "name": "setAttestor",
89
+ "inputs": [{ "name": "newAttestor", "type": "address", "internalType": "address" }],
90
+ "outputs": [],
91
+ "stateMutability": "nonpayable"
92
+ },
93
+ {
94
+ "type": "function",
95
+ "name": "setComptroller",
96
+ "inputs": [
97
+ {
98
+ "name": "newComptroller",
99
+ "type": "address",
100
+ "internalType": "contract ISablierComptroller"
101
+ }
102
+ ],
103
+ "outputs": [],
104
+ "stateMutability": "nonpayable"
105
+ },
106
+ {
107
+ "type": "function",
108
+ "name": "setNativeToken",
109
+ "inputs": [{ "name": "newNativeToken", "type": "address", "internalType": "address" }],
110
+ "outputs": [],
111
+ "stateMutability": "nonpayable"
112
+ },
113
+ {
114
+ "type": "function",
115
+ "name": "transferFeesToComptroller",
116
+ "inputs": [],
117
+ "outputs": [],
118
+ "stateMutability": "nonpayable"
119
+ },
120
+ {
121
+ "type": "event",
122
+ "name": "CreateMerkleInstant",
123
+ "inputs": [
124
+ {
125
+ "name": "merkleInstant",
126
+ "type": "address",
127
+ "indexed": true,
128
+ "internalType": "contract ISablierMerkleInstant"
129
+ },
130
+ {
131
+ "name": "campaignParams",
132
+ "type": "tuple",
133
+ "indexed": false,
134
+ "internalType": "struct MerkleInstant.ConstructorParams",
135
+ "components": [
136
+ { "name": "campaignName", "type": "string", "internalType": "string" },
137
+ { "name": "campaignStartTime", "type": "uint40", "internalType": "uint40" },
138
+ { "name": "claimType", "type": "uint8", "internalType": "enum ClaimType" },
139
+ { "name": "expiration", "type": "uint40", "internalType": "uint40" },
140
+ { "name": "initialAdmin", "type": "address", "internalType": "address" },
141
+ { "name": "ipfsCID", "type": "string", "internalType": "string" },
142
+ { "name": "merkleRoot", "type": "bytes32", "internalType": "bytes32" },
143
+ { "name": "token", "type": "address", "internalType": "contract IERC20" }
144
+ ]
145
+ },
146
+ { "name": "aggregateAmount", "type": "uint256", "indexed": false, "internalType": "uint256" },
147
+ { "name": "recipientCount", "type": "uint256", "indexed": false, "internalType": "uint256" },
148
+ { "name": "attestor", "type": "address", "indexed": false, "internalType": "address" },
149
+ { "name": "comptroller", "type": "address", "indexed": false, "internalType": "address" },
150
+ { "name": "minFeeUSD", "type": "uint256", "indexed": false, "internalType": "uint256" }
151
+ ],
152
+ "anonymous": false
153
+ },
154
+ {
155
+ "type": "event",
156
+ "name": "SetAttestor",
157
+ "inputs": [
158
+ { "name": "comptroller", "type": "address", "indexed": true, "internalType": "address" },
159
+ {
160
+ "name": "previousAttestor",
161
+ "type": "address",
162
+ "indexed": false,
163
+ "internalType": "address"
164
+ },
165
+ { "name": "newAttestor", "type": "address", "indexed": false, "internalType": "address" }
166
+ ],
167
+ "anonymous": false
168
+ },
169
+ {
170
+ "type": "event",
171
+ "name": "SetComptroller",
172
+ "inputs": [
173
+ {
174
+ "name": "oldComptroller",
175
+ "type": "address",
176
+ "indexed": false,
177
+ "internalType": "contract ISablierComptroller"
178
+ },
179
+ {
180
+ "name": "newComptroller",
181
+ "type": "address",
182
+ "indexed": false,
183
+ "internalType": "contract ISablierComptroller"
184
+ }
185
+ ],
186
+ "anonymous": false
187
+ },
188
+ {
189
+ "type": "event",
190
+ "name": "SetNativeToken",
191
+ "inputs": [
192
+ { "name": "comptroller", "type": "address", "indexed": true, "internalType": "address" },
193
+ { "name": "nativeToken", "type": "address", "indexed": false, "internalType": "address" }
194
+ ],
195
+ "anonymous": false
196
+ },
197
+ {
198
+ "type": "event",
199
+ "name": "TransferFeesToComptroller",
200
+ "inputs": [
201
+ {
202
+ "name": "comptroller",
203
+ "type": "address",
204
+ "indexed": true,
205
+ "internalType": "contract ISablierComptroller"
206
+ },
207
+ { "name": "feeAmount", "type": "uint256", "indexed": false, "internalType": "uint256" }
208
+ ],
209
+ "anonymous": false
210
+ },
211
+ {
212
+ "type": "error",
213
+ "name": "Comptrollerable_CallerNotComptroller",
214
+ "inputs": [
215
+ { "name": "comptroller", "type": "address", "internalType": "address" },
216
+ { "name": "caller", "type": "address", "internalType": "address" }
217
+ ]
218
+ },
219
+ {
220
+ "type": "error",
221
+ "name": "Comptrollerable_UnsupportedInterfaceId",
222
+ "inputs": [
223
+ { "name": "previousComptroller", "type": "address", "internalType": "address" },
224
+ { "name": "newComptroller", "type": "address", "internalType": "address" },
225
+ { "name": "minimalInterfaceId", "type": "bytes4", "internalType": "bytes4" }
226
+ ]
227
+ },
228
+ {
229
+ "type": "error",
230
+ "name": "SablierFactoryMerkleBase_ForbidNativeToken",
231
+ "inputs": [{ "name": "nativeToken", "type": "address", "internalType": "address" }]
232
+ },
233
+ {
234
+ "type": "error",
235
+ "name": "SablierFactoryMerkleBase_NativeTokenAlreadySet",
236
+ "inputs": [{ "name": "nativeToken", "type": "address", "internalType": "address" }]
237
+ },
238
+ { "type": "error", "name": "SablierFactoryMerkleBase_NativeTokenZeroAddress", "inputs": [] }
239
+ ]
@@ -0,0 +1,242 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ { "name": "initialAttestor", "type": "address", "internalType": "address" },
6
+ { "name": "initialComptroller", "type": "address", "internalType": "address" }
7
+ ],
8
+ "stateMutability": "nonpayable"
9
+ },
10
+ {
11
+ "type": "function",
12
+ "name": "attestor",
13
+ "inputs": [],
14
+ "outputs": [{ "name": "", "type": "address", "internalType": "address" }],
15
+ "stateMutability": "view"
16
+ },
17
+ {
18
+ "type": "function",
19
+ "name": "comptroller",
20
+ "inputs": [],
21
+ "outputs": [{ "name": "", "type": "address", "internalType": "contract ISablierComptroller" }],
22
+ "stateMutability": "view"
23
+ },
24
+ {
25
+ "type": "function",
26
+ "name": "computeMerkleLL",
27
+ "inputs": [
28
+ { "name": "campaignCreator", "type": "address", "internalType": "address" },
29
+ {
30
+ "name": "campaignParams",
31
+ "type": "tuple",
32
+ "internalType": "struct MerkleLL.ConstructorParams",
33
+ "components": [
34
+ { "name": "campaignName", "type": "string", "internalType": "string" },
35
+ { "name": "campaignStartTime", "type": "uint40", "internalType": "uint40" },
36
+ { "name": "cancelable", "type": "bool", "internalType": "bool" },
37
+ { "name": "claimType", "type": "uint8", "internalType": "enum ClaimType" },
38
+ { "name": "cliffDuration", "type": "uint40", "internalType": "uint40" },
39
+ { "name": "cliffUnlockPercentage", "type": "uint256", "internalType": "UD60x18" },
40
+ { "name": "expiration", "type": "uint40", "internalType": "uint40" },
41
+ { "name": "granularity", "type": "uint40", "internalType": "uint40" },
42
+ { "name": "initialAdmin", "type": "address", "internalType": "address" },
43
+ { "name": "ipfsCID", "type": "string", "internalType": "string" },
44
+ { "name": "lockup", "type": "address", "internalType": "contract ISablierLockup" },
45
+ { "name": "merkleRoot", "type": "bytes32", "internalType": "bytes32" },
46
+ { "name": "shape", "type": "string", "internalType": "string" },
47
+ { "name": "startUnlockPercentage", "type": "uint256", "internalType": "UD60x18" },
48
+ { "name": "token", "type": "address", "internalType": "contract IERC20" },
49
+ { "name": "totalDuration", "type": "uint40", "internalType": "uint40" },
50
+ { "name": "transferable", "type": "bool", "internalType": "bool" },
51
+ { "name": "vestingStartTime", "type": "uint40", "internalType": "uint40" }
52
+ ]
53
+ }
54
+ ],
55
+ "outputs": [{ "name": "merkleLL", "type": "address", "internalType": "address" }],
56
+ "stateMutability": "view"
57
+ },
58
+ {
59
+ "type": "function",
60
+ "name": "createMerkleLL",
61
+ "inputs": [
62
+ {
63
+ "name": "campaignParams",
64
+ "type": "tuple",
65
+ "internalType": "struct MerkleLL.ConstructorParams",
66
+ "components": [
67
+ { "name": "campaignName", "type": "string", "internalType": "string" },
68
+ { "name": "campaignStartTime", "type": "uint40", "internalType": "uint40" },
69
+ { "name": "cancelable", "type": "bool", "internalType": "bool" },
70
+ { "name": "claimType", "type": "uint8", "internalType": "enum ClaimType" },
71
+ { "name": "cliffDuration", "type": "uint40", "internalType": "uint40" },
72
+ { "name": "cliffUnlockPercentage", "type": "uint256", "internalType": "UD60x18" },
73
+ { "name": "expiration", "type": "uint40", "internalType": "uint40" },
74
+ { "name": "granularity", "type": "uint40", "internalType": "uint40" },
75
+ { "name": "initialAdmin", "type": "address", "internalType": "address" },
76
+ { "name": "ipfsCID", "type": "string", "internalType": "string" },
77
+ { "name": "lockup", "type": "address", "internalType": "contract ISablierLockup" },
78
+ { "name": "merkleRoot", "type": "bytes32", "internalType": "bytes32" },
79
+ { "name": "shape", "type": "string", "internalType": "string" },
80
+ { "name": "startUnlockPercentage", "type": "uint256", "internalType": "UD60x18" },
81
+ { "name": "token", "type": "address", "internalType": "contract IERC20" },
82
+ { "name": "totalDuration", "type": "uint40", "internalType": "uint40" },
83
+ { "name": "transferable", "type": "bool", "internalType": "bool" },
84
+ { "name": "vestingStartTime", "type": "uint40", "internalType": "uint40" }
85
+ ]
86
+ },
87
+ { "name": "aggregateAmount", "type": "uint256", "internalType": "uint256" },
88
+ { "name": "recipientCount", "type": "uint256", "internalType": "uint256" }
89
+ ],
90
+ "outputs": [{ "name": "merkleLL", "type": "address", "internalType": "contract ISablierMerkleLL" }],
91
+ "stateMutability": "nonpayable"
92
+ },
93
+ {
94
+ "type": "function",
95
+ "name": "nativeToken",
96
+ "inputs": [],
97
+ "outputs": [{ "name": "", "type": "address", "internalType": "address" }],
98
+ "stateMutability": "view"
99
+ },
100
+ {
101
+ "type": "function",
102
+ "name": "setAttestor",
103
+ "inputs": [{ "name": "newAttestor", "type": "address", "internalType": "address" }],
104
+ "outputs": [],
105
+ "stateMutability": "nonpayable"
106
+ },
107
+ {
108
+ "type": "function",
109
+ "name": "setComptroller",
110
+ "inputs": [{ "name": "newComptroller", "type": "address", "internalType": "contract ISablierComptroller" }],
111
+ "outputs": [],
112
+ "stateMutability": "nonpayable"
113
+ },
114
+ {
115
+ "type": "function",
116
+ "name": "setNativeToken",
117
+ "inputs": [{ "name": "newNativeToken", "type": "address", "internalType": "address" }],
118
+ "outputs": [],
119
+ "stateMutability": "nonpayable"
120
+ },
121
+ {
122
+ "type": "function",
123
+ "name": "transferFeesToComptroller",
124
+ "inputs": [],
125
+ "outputs": [],
126
+ "stateMutability": "nonpayable"
127
+ },
128
+ {
129
+ "type": "event",
130
+ "name": "CreateMerkleLL",
131
+ "inputs": [
132
+ { "name": "merkleLL", "type": "address", "indexed": true, "internalType": "contract ISablierMerkleLL" },
133
+ {
134
+ "name": "campaignParams",
135
+ "type": "tuple",
136
+ "indexed": false,
137
+ "internalType": "struct MerkleLL.ConstructorParams",
138
+ "components": [
139
+ { "name": "campaignName", "type": "string", "internalType": "string" },
140
+ { "name": "campaignStartTime", "type": "uint40", "internalType": "uint40" },
141
+ { "name": "cancelable", "type": "bool", "internalType": "bool" },
142
+ { "name": "claimType", "type": "uint8", "internalType": "enum ClaimType" },
143
+ { "name": "cliffDuration", "type": "uint40", "internalType": "uint40" },
144
+ { "name": "cliffUnlockPercentage", "type": "uint256", "internalType": "UD60x18" },
145
+ { "name": "expiration", "type": "uint40", "internalType": "uint40" },
146
+ { "name": "granularity", "type": "uint40", "internalType": "uint40" },
147
+ { "name": "initialAdmin", "type": "address", "internalType": "address" },
148
+ { "name": "ipfsCID", "type": "string", "internalType": "string" },
149
+ { "name": "lockup", "type": "address", "internalType": "contract ISablierLockup" },
150
+ { "name": "merkleRoot", "type": "bytes32", "internalType": "bytes32" },
151
+ { "name": "shape", "type": "string", "internalType": "string" },
152
+ { "name": "startUnlockPercentage", "type": "uint256", "internalType": "UD60x18" },
153
+ { "name": "token", "type": "address", "internalType": "contract IERC20" },
154
+ { "name": "totalDuration", "type": "uint40", "internalType": "uint40" },
155
+ { "name": "transferable", "type": "bool", "internalType": "bool" },
156
+ { "name": "vestingStartTime", "type": "uint40", "internalType": "uint40" }
157
+ ]
158
+ },
159
+ { "name": "aggregateAmount", "type": "uint256", "indexed": false, "internalType": "uint256" },
160
+ { "name": "recipientCount", "type": "uint256", "indexed": false, "internalType": "uint256" },
161
+ { "name": "attestor", "type": "address", "indexed": false, "internalType": "address" },
162
+ { "name": "comptroller", "type": "address", "indexed": false, "internalType": "address" },
163
+ { "name": "minFeeUSD", "type": "uint256", "indexed": false, "internalType": "uint256" }
164
+ ],
165
+ "anonymous": false
166
+ },
167
+ {
168
+ "type": "event",
169
+ "name": "SetAttestor",
170
+ "inputs": [
171
+ { "name": "comptroller", "type": "address", "indexed": true, "internalType": "address" },
172
+ { "name": "previousAttestor", "type": "address", "indexed": false, "internalType": "address" },
173
+ { "name": "newAttestor", "type": "address", "indexed": false, "internalType": "address" }
174
+ ],
175
+ "anonymous": false
176
+ },
177
+ {
178
+ "type": "event",
179
+ "name": "SetComptroller",
180
+ "inputs": [
181
+ {
182
+ "name": "oldComptroller",
183
+ "type": "address",
184
+ "indexed": false,
185
+ "internalType": "contract ISablierComptroller"
186
+ },
187
+ {
188
+ "name": "newComptroller",
189
+ "type": "address",
190
+ "indexed": false,
191
+ "internalType": "contract ISablierComptroller"
192
+ }
193
+ ],
194
+ "anonymous": false
195
+ },
196
+ {
197
+ "type": "event",
198
+ "name": "SetNativeToken",
199
+ "inputs": [
200
+ { "name": "comptroller", "type": "address", "indexed": true, "internalType": "address" },
201
+ { "name": "nativeToken", "type": "address", "indexed": false, "internalType": "address" }
202
+ ],
203
+ "anonymous": false
204
+ },
205
+ {
206
+ "type": "event",
207
+ "name": "TransferFeesToComptroller",
208
+ "inputs": [
209
+ { "name": "comptroller", "type": "address", "indexed": true, "internalType": "contract ISablierComptroller" },
210
+ { "name": "feeAmount", "type": "uint256", "indexed": false, "internalType": "uint256" }
211
+ ],
212
+ "anonymous": false
213
+ },
214
+ {
215
+ "type": "error",
216
+ "name": "Comptrollerable_CallerNotComptroller",
217
+ "inputs": [
218
+ { "name": "comptroller", "type": "address", "internalType": "address" },
219
+ { "name": "caller", "type": "address", "internalType": "address" }
220
+ ]
221
+ },
222
+ {
223
+ "type": "error",
224
+ "name": "Comptrollerable_UnsupportedInterfaceId",
225
+ "inputs": [
226
+ { "name": "previousComptroller", "type": "address", "internalType": "address" },
227
+ { "name": "newComptroller", "type": "address", "internalType": "address" },
228
+ { "name": "minimalInterfaceId", "type": "bytes4", "internalType": "bytes4" }
229
+ ]
230
+ },
231
+ {
232
+ "type": "error",
233
+ "name": "SablierFactoryMerkleBase_ForbidNativeToken",
234
+ "inputs": [{ "name": "nativeToken", "type": "address", "internalType": "address" }]
235
+ },
236
+ {
237
+ "type": "error",
238
+ "name": "SablierFactoryMerkleBase_NativeTokenAlreadySet",
239
+ "inputs": [{ "name": "nativeToken", "type": "address", "internalType": "address" }]
240
+ },
241
+ { "type": "error", "name": "SablierFactoryMerkleBase_NativeTokenZeroAddress", "inputs": [] }
242
+ ]