@gmx-io/sdk 0.0.3 → 0.0.5

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 (90) hide show
  1. package/build/src/abis/CustomErrors.json +3196 -3196
  2. package/build/src/abis/DataStore.json +1335 -1335
  3. package/build/src/abis/ERC721.json +399 -399
  4. package/build/src/abis/EventEmitter.json +1967 -1967
  5. package/build/src/abis/ExchangeRouter.json +1461 -1461
  6. package/build/src/abis/GMT.json +478 -478
  7. package/build/src/abis/GlpManager.json +590 -589
  8. package/build/src/abis/GlvReader.json +1338 -1337
  9. package/build/src/abis/GlvRouter.json +595 -594
  10. package/build/src/abis/GmxMigrator.json +601 -601
  11. package/build/src/abis/GovToken.json +1040 -1040
  12. package/build/src/abis/MintableBaseToken.json +645 -645
  13. package/build/src/abis/Multicall.json +310 -310
  14. package/build/src/abis/OrderBook.json +1995 -1995
  15. package/build/src/abis/OrderBookReader.json +103 -103
  16. package/build/src/abis/OrderExecutor.json +108 -108
  17. package/build/src/abis/PositionManager.json +1162 -1162
  18. package/build/src/abis/PositionRouter.json +2028 -2028
  19. package/build/src/abis/Reader.json +328 -328
  20. package/build/src/abis/ReaderV2.json +628 -628
  21. package/build/src/abis/ReferralStorage.json +460 -460
  22. package/build/src/abis/RewardReader.json +78 -78
  23. package/build/src/abis/RewardRouter.json +767 -767
  24. package/build/src/abis/RewardTracker.json +848 -848
  25. package/build/src/abis/Router-v2.json +602 -602
  26. package/build/src/abis/Router.json +602 -602
  27. package/build/src/abis/SubaccountRouter.json +572 -572
  28. package/build/src/abis/SyntheticsReader.json +4238 -4238
  29. package/build/src/abis/SyntheticsRouter.json +67 -67
  30. package/build/src/abis/Timelock.json +1735 -1735
  31. package/build/src/abis/Token.json +311 -311
  32. package/build/src/abis/Treasury.json +375 -375
  33. package/build/src/abis/UniPool.json +81 -81
  34. package/build/src/abis/UniswapV2.json +1 -1
  35. package/build/src/abis/Vault.json +3218 -3218
  36. package/build/src/abis/VaultReader.json +81 -81
  37. package/build/src/abis/VaultV2.json +3017 -3017
  38. package/build/src/abis/VaultV2b.json +3218 -3218
  39. package/build/src/abis/Vester.json +942 -942
  40. package/build/src/abis/WETH.json +289 -289
  41. package/build/src/abis/YieldFarm.json +556 -556
  42. package/build/src/abis/YieldToken.json +512 -512
  43. package/build/src/prebuilt/hashedMarketConfigKeys.json +3656 -3656
  44. package/build/src/prebuilt/hashedMarketValuesKeys.json +1101 -1101
  45. package/package.json +7 -7
  46. package/build/abis/CustomErrors.json +0 -3254
  47. package/build/abis/DataStore.json +0 -1440
  48. package/build/abis/ERC721.json +0 -442
  49. package/build/abis/EventEmitter.json +0 -2065
  50. package/build/abis/ExchangeRouter.json +0 -1598
  51. package/build/abis/GMT.json +0 -522
  52. package/build/abis/GlpManager.json +0 -592
  53. package/build/abis/GlvReader.json +0 -1425
  54. package/build/abis/GlvRouter.json +0 -613
  55. package/build/abis/GmxMigrator.json +0 -657
  56. package/build/abis/GovToken.json +0 -1121
  57. package/build/abis/MintableBaseToken.json +0 -696
  58. package/build/abis/Multicall.json +0 -333
  59. package/build/abis/OrderBook.json +0 -1997
  60. package/build/abis/OrderBookReader.json +0 -111
  61. package/build/abis/OrderExecutor.json +0 -122
  62. package/build/abis/PositionManager.json +0 -1165
  63. package/build/abis/PositionRouter.json +0 -2030
  64. package/build/abis/Reader.json +0 -355
  65. package/build/abis/ReaderV2.json +0 -630
  66. package/build/abis/ReferralStorage.json +0 -507
  67. package/build/abis/RewardReader.json +0 -86
  68. package/build/abis/RewardRouter.json +0 -769
  69. package/build/abis/RewardTracker.json +0 -918
  70. package/build/abis/Router-v2.json +0 -605
  71. package/build/abis/Router.json +0 -605
  72. package/build/abis/SubaccountRouter.json +0 -648
  73. package/build/abis/SyntheticsReader.json +0 -4577
  74. package/build/abis/SyntheticsRouter.json +0 -77
  75. package/build/abis/Timelock.json +0 -1737
  76. package/build/abis/Token.json +0 -345
  77. package/build/abis/Treasury.json +0 -411
  78. package/build/abis/UniPool.json +0 -89
  79. package/build/abis/UniswapV2.json +0 -1
  80. package/build/abis/Vault.json +0 -3220
  81. package/build/abis/VaultReader.json +0 -87
  82. package/build/abis/VaultV2.json +0 -3019
  83. package/build/abis/VaultV2b.json +0 -3220
  84. package/build/abis/Vester.json +0 -1031
  85. package/build/abis/WETH.json +0 -320
  86. package/build/abis/YieldFarm.json +0 -599
  87. package/build/abis/YieldToken.json +0 -560
  88. package/build/prebuilt/hashedMarketConfigKeys.json +0 -3658
  89. package/build/prebuilt/hashedMarketValuesKeys.json +0 -1103
  90. /package/build/{prebuilt → src/prebuilt}/index.ts +0 -0
@@ -1,1121 +1,1121 @@
1
1
  {
2
- "address": "0x2A29D3a792000750807cc401806d6fd539928481",
3
- "abi": [
4
- {
5
- "inputs": [
6
- {
7
- "internalType": "contract RoleStore",
8
- "name": "roleStore_",
9
- "type": "address"
10
- },
11
- {
12
- "internalType": "string",
13
- "name": "name_",
14
- "type": "string"
15
- },
16
- {
17
- "internalType": "string",
18
- "name": "symbol_",
19
- "type": "string"
20
- },
21
- {
22
- "internalType": "uint8",
23
- "name": "decimals_",
24
- "type": "uint8"
25
- }
26
- ],
27
- "stateMutability": "nonpayable",
28
- "type": "constructor"
2
+ "address": "0x2A29D3a792000750807cc401806d6fd539928481",
3
+ "abi": [
4
+ {
5
+ "inputs": [
6
+ {
7
+ "internalType": "contract RoleStore",
8
+ "name": "roleStore_",
9
+ "type": "address"
29
10
  },
30
11
  {
31
- "inputs": [],
32
- "name": "InvalidShortString",
33
- "type": "error"
12
+ "internalType": "string",
13
+ "name": "name_",
14
+ "type": "string"
34
15
  },
35
16
  {
36
- "inputs": [
37
- {
38
- "internalType": "string",
39
- "name": "str",
40
- "type": "string"
41
- }
42
- ],
43
- "name": "StringTooLong",
44
- "type": "error"
17
+ "internalType": "string",
18
+ "name": "symbol_",
19
+ "type": "string"
45
20
  },
46
21
  {
47
- "inputs": [
48
- {
49
- "internalType": "address",
50
- "name": "msgSender",
51
- "type": "address"
52
- },
53
- {
54
- "internalType": "string",
55
- "name": "role",
56
- "type": "string"
57
- }
58
- ],
59
- "name": "Unauthorized",
60
- "type": "error"
22
+ "internalType": "uint8",
23
+ "name": "decimals_",
24
+ "type": "uint8"
25
+ }
26
+ ],
27
+ "stateMutability": "nonpayable",
28
+ "type": "constructor"
29
+ },
30
+ {
31
+ "inputs": [],
32
+ "name": "InvalidShortString",
33
+ "type": "error"
34
+ },
35
+ {
36
+ "inputs": [
37
+ {
38
+ "internalType": "string",
39
+ "name": "str",
40
+ "type": "string"
41
+ }
42
+ ],
43
+ "name": "StringTooLong",
44
+ "type": "error"
45
+ },
46
+ {
47
+ "inputs": [
48
+ {
49
+ "internalType": "address",
50
+ "name": "msgSender",
51
+ "type": "address"
61
52
  },
62
53
  {
63
- "anonymous": false,
64
- "inputs": [
65
- {
66
- "indexed": true,
67
- "internalType": "address",
68
- "name": "owner",
69
- "type": "address"
70
- },
71
- {
72
- "indexed": true,
73
- "internalType": "address",
74
- "name": "spender",
75
- "type": "address"
76
- },
77
- {
78
- "indexed": false,
79
- "internalType": "uint256",
80
- "name": "value",
81
- "type": "uint256"
82
- }
83
- ],
84
- "name": "Approval",
85
- "type": "event"
54
+ "internalType": "string",
55
+ "name": "role",
56
+ "type": "string"
57
+ }
58
+ ],
59
+ "name": "Unauthorized",
60
+ "type": "error"
61
+ },
62
+ {
63
+ "anonymous": false,
64
+ "inputs": [
65
+ {
66
+ "indexed": true,
67
+ "internalType": "address",
68
+ "name": "owner",
69
+ "type": "address"
86
70
  },
87
71
  {
88
- "anonymous": false,
89
- "inputs": [
90
- {
91
- "indexed": true,
92
- "internalType": "address",
93
- "name": "delegator",
94
- "type": "address"
95
- },
96
- {
97
- "indexed": true,
98
- "internalType": "address",
99
- "name": "fromDelegate",
100
- "type": "address"
101
- },
102
- {
103
- "indexed": true,
104
- "internalType": "address",
105
- "name": "toDelegate",
106
- "type": "address"
107
- }
108
- ],
109
- "name": "DelegateChanged",
110
- "type": "event"
72
+ "indexed": true,
73
+ "internalType": "address",
74
+ "name": "spender",
75
+ "type": "address"
111
76
  },
112
77
  {
113
- "anonymous": false,
114
- "inputs": [
115
- {
116
- "indexed": true,
117
- "internalType": "address",
118
- "name": "delegate",
119
- "type": "address"
120
- },
121
- {
122
- "indexed": false,
123
- "internalType": "uint256",
124
- "name": "previousBalance",
125
- "type": "uint256"
126
- },
127
- {
128
- "indexed": false,
129
- "internalType": "uint256",
130
- "name": "newBalance",
131
- "type": "uint256"
132
- }
133
- ],
134
- "name": "DelegateVotesChanged",
135
- "type": "event"
78
+ "indexed": false,
79
+ "internalType": "uint256",
80
+ "name": "value",
81
+ "type": "uint256"
82
+ }
83
+ ],
84
+ "name": "Approval",
85
+ "type": "event"
86
+ },
87
+ {
88
+ "anonymous": false,
89
+ "inputs": [
90
+ {
91
+ "indexed": true,
92
+ "internalType": "address",
93
+ "name": "delegator",
94
+ "type": "address"
136
95
  },
137
96
  {
138
- "anonymous": false,
139
- "inputs": [],
140
- "name": "EIP712DomainChanged",
141
- "type": "event"
97
+ "indexed": true,
98
+ "internalType": "address",
99
+ "name": "fromDelegate",
100
+ "type": "address"
142
101
  },
143
102
  {
144
- "anonymous": false,
145
- "inputs": [
146
- {
147
- "indexed": true,
148
- "internalType": "address",
149
- "name": "from",
150
- "type": "address"
151
- },
152
- {
153
- "indexed": true,
154
- "internalType": "address",
155
- "name": "to",
156
- "type": "address"
157
- },
158
- {
159
- "indexed": false,
160
- "internalType": "uint256",
161
- "name": "value",
162
- "type": "uint256"
163
- }
164
- ],
165
- "name": "Transfer",
166
- "type": "event"
103
+ "indexed": true,
104
+ "internalType": "address",
105
+ "name": "toDelegate",
106
+ "type": "address"
107
+ }
108
+ ],
109
+ "name": "DelegateChanged",
110
+ "type": "event"
111
+ },
112
+ {
113
+ "anonymous": false,
114
+ "inputs": [
115
+ {
116
+ "indexed": true,
117
+ "internalType": "address",
118
+ "name": "delegate",
119
+ "type": "address"
167
120
  },
168
121
  {
169
- "inputs": [],
170
- "name": "CLOCK_MODE",
171
- "outputs": [
172
- {
173
- "internalType": "string",
174
- "name": "",
175
- "type": "string"
176
- }
177
- ],
178
- "stateMutability": "view",
179
- "type": "function"
122
+ "indexed": false,
123
+ "internalType": "uint256",
124
+ "name": "previousBalance",
125
+ "type": "uint256"
180
126
  },
181
127
  {
182
- "inputs": [],
183
- "name": "DOMAIN_SEPARATOR",
184
- "outputs": [
185
- {
186
- "internalType": "bytes32",
187
- "name": "",
188
- "type": "bytes32"
189
- }
190
- ],
191
- "stateMutability": "view",
192
- "type": "function"
128
+ "indexed": false,
129
+ "internalType": "uint256",
130
+ "name": "newBalance",
131
+ "type": "uint256"
132
+ }
133
+ ],
134
+ "name": "DelegateVotesChanged",
135
+ "type": "event"
136
+ },
137
+ {
138
+ "anonymous": false,
139
+ "inputs": [],
140
+ "name": "EIP712DomainChanged",
141
+ "type": "event"
142
+ },
143
+ {
144
+ "anonymous": false,
145
+ "inputs": [
146
+ {
147
+ "indexed": true,
148
+ "internalType": "address",
149
+ "name": "from",
150
+ "type": "address"
193
151
  },
194
152
  {
195
- "inputs": [
196
- {
197
- "internalType": "address",
198
- "name": "owner",
199
- "type": "address"
200
- },
201
- {
202
- "internalType": "address",
203
- "name": "spender",
204
- "type": "address"
205
- }
206
- ],
207
- "name": "allowance",
208
- "outputs": [
209
- {
210
- "internalType": "uint256",
211
- "name": "",
212
- "type": "uint256"
213
- }
214
- ],
215
- "stateMutability": "view",
216
- "type": "function"
153
+ "indexed": true,
154
+ "internalType": "address",
155
+ "name": "to",
156
+ "type": "address"
217
157
  },
218
158
  {
219
- "inputs": [
220
- {
221
- "internalType": "address",
222
- "name": "spender",
223
- "type": "address"
224
- },
225
- {
226
- "internalType": "uint256",
227
- "name": "amount",
228
- "type": "uint256"
229
- }
230
- ],
231
- "name": "approve",
232
- "outputs": [
233
- {
234
- "internalType": "bool",
235
- "name": "",
236
- "type": "bool"
237
- }
238
- ],
239
- "stateMutability": "nonpayable",
240
- "type": "function"
159
+ "indexed": false,
160
+ "internalType": "uint256",
161
+ "name": "value",
162
+ "type": "uint256"
163
+ }
164
+ ],
165
+ "name": "Transfer",
166
+ "type": "event"
167
+ },
168
+ {
169
+ "inputs": [],
170
+ "name": "CLOCK_MODE",
171
+ "outputs": [
172
+ {
173
+ "internalType": "string",
174
+ "name": "",
175
+ "type": "string"
176
+ }
177
+ ],
178
+ "stateMutability": "view",
179
+ "type": "function"
180
+ },
181
+ {
182
+ "inputs": [],
183
+ "name": "DOMAIN_SEPARATOR",
184
+ "outputs": [
185
+ {
186
+ "internalType": "bytes32",
187
+ "name": "",
188
+ "type": "bytes32"
189
+ }
190
+ ],
191
+ "stateMutability": "view",
192
+ "type": "function"
193
+ },
194
+ {
195
+ "inputs": [
196
+ {
197
+ "internalType": "address",
198
+ "name": "owner",
199
+ "type": "address"
241
200
  },
242
201
  {
243
- "inputs": [
244
- {
245
- "internalType": "address",
246
- "name": "account",
247
- "type": "address"
248
- }
249
- ],
250
- "name": "balanceOf",
251
- "outputs": [
252
- {
253
- "internalType": "uint256",
254
- "name": "",
255
- "type": "uint256"
256
- }
257
- ],
258
- "stateMutability": "view",
259
- "type": "function"
202
+ "internalType": "address",
203
+ "name": "spender",
204
+ "type": "address"
205
+ }
206
+ ],
207
+ "name": "allowance",
208
+ "outputs": [
209
+ {
210
+ "internalType": "uint256",
211
+ "name": "",
212
+ "type": "uint256"
213
+ }
214
+ ],
215
+ "stateMutability": "view",
216
+ "type": "function"
217
+ },
218
+ {
219
+ "inputs": [
220
+ {
221
+ "internalType": "address",
222
+ "name": "spender",
223
+ "type": "address"
260
224
  },
261
225
  {
262
- "inputs": [
263
- {
264
- "internalType": "address",
265
- "name": "account",
266
- "type": "address"
267
- },
268
- {
269
- "internalType": "uint256",
270
- "name": "amount",
271
- "type": "uint256"
272
- }
273
- ],
274
- "name": "burn",
275
- "outputs": [],
276
- "stateMutability": "nonpayable",
277
- "type": "function"
226
+ "internalType": "uint256",
227
+ "name": "amount",
228
+ "type": "uint256"
229
+ }
230
+ ],
231
+ "name": "approve",
232
+ "outputs": [
233
+ {
234
+ "internalType": "bool",
235
+ "name": "",
236
+ "type": "bool"
237
+ }
238
+ ],
239
+ "stateMutability": "nonpayable",
240
+ "type": "function"
241
+ },
242
+ {
243
+ "inputs": [
244
+ {
245
+ "internalType": "address",
246
+ "name": "account",
247
+ "type": "address"
248
+ }
249
+ ],
250
+ "name": "balanceOf",
251
+ "outputs": [
252
+ {
253
+ "internalType": "uint256",
254
+ "name": "",
255
+ "type": "uint256"
256
+ }
257
+ ],
258
+ "stateMutability": "view",
259
+ "type": "function"
260
+ },
261
+ {
262
+ "inputs": [
263
+ {
264
+ "internalType": "address",
265
+ "name": "account",
266
+ "type": "address"
278
267
  },
279
268
  {
280
- "inputs": [
281
- {
282
- "internalType": "address",
283
- "name": "account",
284
- "type": "address"
285
- },
286
- {
287
- "internalType": "uint32",
288
- "name": "pos",
289
- "type": "uint32"
290
- }
291
- ],
292
- "name": "checkpoints",
293
- "outputs": [
294
- {
295
- "components": [
296
- {
297
- "internalType": "uint32",
298
- "name": "fromBlock",
299
- "type": "uint32"
300
- },
301
- {
302
- "internalType": "uint224",
303
- "name": "votes",
304
- "type": "uint224"
305
- }
306
- ],
307
- "internalType": "struct ERC20Votes.Checkpoint",
308
- "name": "",
309
- "type": "tuple"
310
- }
311
- ],
312
- "stateMutability": "view",
313
- "type": "function"
269
+ "internalType": "uint256",
270
+ "name": "amount",
271
+ "type": "uint256"
272
+ }
273
+ ],
274
+ "name": "burn",
275
+ "outputs": [],
276
+ "stateMutability": "nonpayable",
277
+ "type": "function"
278
+ },
279
+ {
280
+ "inputs": [
281
+ {
282
+ "internalType": "address",
283
+ "name": "account",
284
+ "type": "address"
314
285
  },
315
286
  {
316
- "inputs": [],
317
- "name": "clock",
318
- "outputs": [
319
- {
320
- "internalType": "uint48",
321
- "name": "",
322
- "type": "uint48"
323
- }
324
- ],
325
- "stateMutability": "view",
326
- "type": "function"
287
+ "internalType": "uint32",
288
+ "name": "pos",
289
+ "type": "uint32"
290
+ }
291
+ ],
292
+ "name": "checkpoints",
293
+ "outputs": [
294
+ {
295
+ "components": [
296
+ {
297
+ "internalType": "uint32",
298
+ "name": "fromBlock",
299
+ "type": "uint32"
300
+ },
301
+ {
302
+ "internalType": "uint224",
303
+ "name": "votes",
304
+ "type": "uint224"
305
+ }
306
+ ],
307
+ "internalType": "struct ERC20Votes.Checkpoint",
308
+ "name": "",
309
+ "type": "tuple"
310
+ }
311
+ ],
312
+ "stateMutability": "view",
313
+ "type": "function"
314
+ },
315
+ {
316
+ "inputs": [],
317
+ "name": "clock",
318
+ "outputs": [
319
+ {
320
+ "internalType": "uint48",
321
+ "name": "",
322
+ "type": "uint48"
323
+ }
324
+ ],
325
+ "stateMutability": "view",
326
+ "type": "function"
327
+ },
328
+ {
329
+ "inputs": [],
330
+ "name": "decimals",
331
+ "outputs": [
332
+ {
333
+ "internalType": "uint8",
334
+ "name": "",
335
+ "type": "uint8"
336
+ }
337
+ ],
338
+ "stateMutability": "view",
339
+ "type": "function"
340
+ },
341
+ {
342
+ "inputs": [
343
+ {
344
+ "internalType": "address",
345
+ "name": "spender",
346
+ "type": "address"
327
347
  },
328
348
  {
329
- "inputs": [],
330
- "name": "decimals",
331
- "outputs": [
332
- {
333
- "internalType": "uint8",
334
- "name": "",
335
- "type": "uint8"
336
- }
337
- ],
338
- "stateMutability": "view",
339
- "type": "function"
349
+ "internalType": "uint256",
350
+ "name": "subtractedValue",
351
+ "type": "uint256"
352
+ }
353
+ ],
354
+ "name": "decreaseAllowance",
355
+ "outputs": [
356
+ {
357
+ "internalType": "bool",
358
+ "name": "",
359
+ "type": "bool"
360
+ }
361
+ ],
362
+ "stateMutability": "nonpayable",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "inputs": [
367
+ {
368
+ "internalType": "address",
369
+ "name": "delegatee",
370
+ "type": "address"
371
+ }
372
+ ],
373
+ "name": "delegate",
374
+ "outputs": [],
375
+ "stateMutability": "nonpayable",
376
+ "type": "function"
377
+ },
378
+ {
379
+ "inputs": [
380
+ {
381
+ "internalType": "address",
382
+ "name": "delegatee",
383
+ "type": "address"
340
384
  },
341
385
  {
342
- "inputs": [
343
- {
344
- "internalType": "address",
345
- "name": "spender",
346
- "type": "address"
347
- },
348
- {
349
- "internalType": "uint256",
350
- "name": "subtractedValue",
351
- "type": "uint256"
352
- }
353
- ],
354
- "name": "decreaseAllowance",
355
- "outputs": [
356
- {
357
- "internalType": "bool",
358
- "name": "",
359
- "type": "bool"
360
- }
361
- ],
362
- "stateMutability": "nonpayable",
363
- "type": "function"
386
+ "internalType": "uint256",
387
+ "name": "nonce",
388
+ "type": "uint256"
364
389
  },
365
390
  {
366
- "inputs": [
367
- {
368
- "internalType": "address",
369
- "name": "delegatee",
370
- "type": "address"
371
- }
372
- ],
373
- "name": "delegate",
374
- "outputs": [],
375
- "stateMutability": "nonpayable",
376
- "type": "function"
391
+ "internalType": "uint256",
392
+ "name": "expiry",
393
+ "type": "uint256"
377
394
  },
378
395
  {
379
- "inputs": [
380
- {
381
- "internalType": "address",
382
- "name": "delegatee",
383
- "type": "address"
384
- },
385
- {
386
- "internalType": "uint256",
387
- "name": "nonce",
388
- "type": "uint256"
389
- },
390
- {
391
- "internalType": "uint256",
392
- "name": "expiry",
393
- "type": "uint256"
394
- },
395
- {
396
- "internalType": "uint8",
397
- "name": "v",
398
- "type": "uint8"
399
- },
400
- {
401
- "internalType": "bytes32",
402
- "name": "r",
403
- "type": "bytes32"
404
- },
405
- {
406
- "internalType": "bytes32",
407
- "name": "s",
408
- "type": "bytes32"
409
- }
410
- ],
411
- "name": "delegateBySig",
412
- "outputs": [],
413
- "stateMutability": "nonpayable",
414
- "type": "function"
396
+ "internalType": "uint8",
397
+ "name": "v",
398
+ "type": "uint8"
415
399
  },
416
400
  {
417
- "inputs": [
418
- {
419
- "internalType": "address",
420
- "name": "account",
421
- "type": "address"
422
- }
423
- ],
424
- "name": "delegates",
425
- "outputs": [
426
- {
427
- "internalType": "address",
428
- "name": "",
429
- "type": "address"
430
- }
431
- ],
432
- "stateMutability": "view",
433
- "type": "function"
401
+ "internalType": "bytes32",
402
+ "name": "r",
403
+ "type": "bytes32"
434
404
  },
435
405
  {
436
- "inputs": [],
437
- "name": "eip712Domain",
438
- "outputs": [
439
- {
440
- "internalType": "bytes1",
441
- "name": "fields",
442
- "type": "bytes1"
443
- },
444
- {
445
- "internalType": "string",
446
- "name": "name",
447
- "type": "string"
448
- },
449
- {
450
- "internalType": "string",
451
- "name": "version",
452
- "type": "string"
453
- },
454
- {
455
- "internalType": "uint256",
456
- "name": "chainId",
457
- "type": "uint256"
458
- },
459
- {
460
- "internalType": "address",
461
- "name": "verifyingContract",
462
- "type": "address"
463
- },
464
- {
465
- "internalType": "bytes32",
466
- "name": "salt",
467
- "type": "bytes32"
468
- },
469
- {
470
- "internalType": "uint256[]",
471
- "name": "extensions",
472
- "type": "uint256[]"
473
- }
474
- ],
475
- "stateMutability": "view",
476
- "type": "function"
406
+ "internalType": "bytes32",
407
+ "name": "s",
408
+ "type": "bytes32"
409
+ }
410
+ ],
411
+ "name": "delegateBySig",
412
+ "outputs": [],
413
+ "stateMutability": "nonpayable",
414
+ "type": "function"
415
+ },
416
+ {
417
+ "inputs": [
418
+ {
419
+ "internalType": "address",
420
+ "name": "account",
421
+ "type": "address"
422
+ }
423
+ ],
424
+ "name": "delegates",
425
+ "outputs": [
426
+ {
427
+ "internalType": "address",
428
+ "name": "",
429
+ "type": "address"
430
+ }
431
+ ],
432
+ "stateMutability": "view",
433
+ "type": "function"
434
+ },
435
+ {
436
+ "inputs": [],
437
+ "name": "eip712Domain",
438
+ "outputs": [
439
+ {
440
+ "internalType": "bytes1",
441
+ "name": "fields",
442
+ "type": "bytes1"
477
443
  },
478
444
  {
479
- "inputs": [
480
- {
481
- "internalType": "uint256",
482
- "name": "timepoint",
483
- "type": "uint256"
484
- }
485
- ],
486
- "name": "getPastTotalSupply",
487
- "outputs": [
488
- {
489
- "internalType": "uint256",
490
- "name": "",
491
- "type": "uint256"
492
- }
493
- ],
494
- "stateMutability": "view",
495
- "type": "function"
445
+ "internalType": "string",
446
+ "name": "name",
447
+ "type": "string"
496
448
  },
497
449
  {
498
- "inputs": [
499
- {
500
- "internalType": "address",
501
- "name": "account",
502
- "type": "address"
503
- },
504
- {
505
- "internalType": "uint256",
506
- "name": "timepoint",
507
- "type": "uint256"
508
- }
509
- ],
510
- "name": "getPastVotes",
511
- "outputs": [
512
- {
513
- "internalType": "uint256",
514
- "name": "",
515
- "type": "uint256"
516
- }
517
- ],
518
- "stateMutability": "view",
519
- "type": "function"
450
+ "internalType": "string",
451
+ "name": "version",
452
+ "type": "string"
520
453
  },
521
454
  {
522
- "inputs": [
523
- {
524
- "internalType": "address",
525
- "name": "account",
526
- "type": "address"
527
- }
528
- ],
529
- "name": "getVotes",
530
- "outputs": [
531
- {
532
- "internalType": "uint256",
533
- "name": "",
534
- "type": "uint256"
535
- }
536
- ],
537
- "stateMutability": "view",
538
- "type": "function"
455
+ "internalType": "uint256",
456
+ "name": "chainId",
457
+ "type": "uint256"
539
458
  },
540
459
  {
541
- "inputs": [
542
- {
543
- "internalType": "address",
544
- "name": "spender",
545
- "type": "address"
546
- },
547
- {
548
- "internalType": "uint256",
549
- "name": "addedValue",
550
- "type": "uint256"
551
- }
552
- ],
553
- "name": "increaseAllowance",
554
- "outputs": [
555
- {
556
- "internalType": "bool",
557
- "name": "",
558
- "type": "bool"
559
- }
560
- ],
561
- "stateMutability": "nonpayable",
562
- "type": "function"
460
+ "internalType": "address",
461
+ "name": "verifyingContract",
462
+ "type": "address"
563
463
  },
564
464
  {
565
- "inputs": [
566
- {
567
- "internalType": "address",
568
- "name": "account",
569
- "type": "address"
570
- },
571
- {
572
- "internalType": "uint256",
573
- "name": "amount",
574
- "type": "uint256"
575
- }
576
- ],
577
- "name": "mint",
578
- "outputs": [],
579
- "stateMutability": "nonpayable",
580
- "type": "function"
465
+ "internalType": "bytes32",
466
+ "name": "salt",
467
+ "type": "bytes32"
581
468
  },
582
469
  {
583
- "inputs": [],
584
- "name": "name",
585
- "outputs": [
586
- {
587
- "internalType": "string",
588
- "name": "",
589
- "type": "string"
590
- }
591
- ],
592
- "stateMutability": "view",
593
- "type": "function"
470
+ "internalType": "uint256[]",
471
+ "name": "extensions",
472
+ "type": "uint256[]"
473
+ }
474
+ ],
475
+ "stateMutability": "view",
476
+ "type": "function"
477
+ },
478
+ {
479
+ "inputs": [
480
+ {
481
+ "internalType": "uint256",
482
+ "name": "timepoint",
483
+ "type": "uint256"
484
+ }
485
+ ],
486
+ "name": "getPastTotalSupply",
487
+ "outputs": [
488
+ {
489
+ "internalType": "uint256",
490
+ "name": "",
491
+ "type": "uint256"
492
+ }
493
+ ],
494
+ "stateMutability": "view",
495
+ "type": "function"
496
+ },
497
+ {
498
+ "inputs": [
499
+ {
500
+ "internalType": "address",
501
+ "name": "account",
502
+ "type": "address"
594
503
  },
595
504
  {
596
- "inputs": [
597
- {
598
- "internalType": "address",
599
- "name": "owner",
600
- "type": "address"
601
- }
602
- ],
603
- "name": "nonces",
604
- "outputs": [
605
- {
606
- "internalType": "uint256",
607
- "name": "",
608
- "type": "uint256"
609
- }
610
- ],
611
- "stateMutability": "view",
612
- "type": "function"
505
+ "internalType": "uint256",
506
+ "name": "timepoint",
507
+ "type": "uint256"
508
+ }
509
+ ],
510
+ "name": "getPastVotes",
511
+ "outputs": [
512
+ {
513
+ "internalType": "uint256",
514
+ "name": "",
515
+ "type": "uint256"
516
+ }
517
+ ],
518
+ "stateMutability": "view",
519
+ "type": "function"
520
+ },
521
+ {
522
+ "inputs": [
523
+ {
524
+ "internalType": "address",
525
+ "name": "account",
526
+ "type": "address"
527
+ }
528
+ ],
529
+ "name": "getVotes",
530
+ "outputs": [
531
+ {
532
+ "internalType": "uint256",
533
+ "name": "",
534
+ "type": "uint256"
535
+ }
536
+ ],
537
+ "stateMutability": "view",
538
+ "type": "function"
539
+ },
540
+ {
541
+ "inputs": [
542
+ {
543
+ "internalType": "address",
544
+ "name": "spender",
545
+ "type": "address"
613
546
  },
614
547
  {
615
- "inputs": [
616
- {
617
- "internalType": "address",
618
- "name": "account",
619
- "type": "address"
620
- }
621
- ],
622
- "name": "numCheckpoints",
623
- "outputs": [
624
- {
625
- "internalType": "uint32",
626
- "name": "",
627
- "type": "uint32"
628
- }
629
- ],
630
- "stateMutability": "view",
631
- "type": "function"
548
+ "internalType": "uint256",
549
+ "name": "addedValue",
550
+ "type": "uint256"
551
+ }
552
+ ],
553
+ "name": "increaseAllowance",
554
+ "outputs": [
555
+ {
556
+ "internalType": "bool",
557
+ "name": "",
558
+ "type": "bool"
559
+ }
560
+ ],
561
+ "stateMutability": "nonpayable",
562
+ "type": "function"
563
+ },
564
+ {
565
+ "inputs": [
566
+ {
567
+ "internalType": "address",
568
+ "name": "account",
569
+ "type": "address"
632
570
  },
633
571
  {
634
- "inputs": [
635
- {
636
- "internalType": "address",
637
- "name": "owner",
638
- "type": "address"
639
- },
640
- {
641
- "internalType": "address",
642
- "name": "spender",
643
- "type": "address"
644
- },
645
- {
646
- "internalType": "uint256",
647
- "name": "value",
648
- "type": "uint256"
649
- },
650
- {
651
- "internalType": "uint256",
652
- "name": "deadline",
653
- "type": "uint256"
654
- },
655
- {
656
- "internalType": "uint8",
657
- "name": "v",
658
- "type": "uint8"
659
- },
660
- {
661
- "internalType": "bytes32",
662
- "name": "r",
663
- "type": "bytes32"
664
- },
665
- {
666
- "internalType": "bytes32",
667
- "name": "s",
668
- "type": "bytes32"
669
- }
670
- ],
671
- "name": "permit",
672
- "outputs": [],
673
- "stateMutability": "nonpayable",
674
- "type": "function"
572
+ "internalType": "uint256",
573
+ "name": "amount",
574
+ "type": "uint256"
575
+ }
576
+ ],
577
+ "name": "mint",
578
+ "outputs": [],
579
+ "stateMutability": "nonpayable",
580
+ "type": "function"
581
+ },
582
+ {
583
+ "inputs": [],
584
+ "name": "name",
585
+ "outputs": [
586
+ {
587
+ "internalType": "string",
588
+ "name": "",
589
+ "type": "string"
590
+ }
591
+ ],
592
+ "stateMutability": "view",
593
+ "type": "function"
594
+ },
595
+ {
596
+ "inputs": [
597
+ {
598
+ "internalType": "address",
599
+ "name": "owner",
600
+ "type": "address"
601
+ }
602
+ ],
603
+ "name": "nonces",
604
+ "outputs": [
605
+ {
606
+ "internalType": "uint256",
607
+ "name": "",
608
+ "type": "uint256"
609
+ }
610
+ ],
611
+ "stateMutability": "view",
612
+ "type": "function"
613
+ },
614
+ {
615
+ "inputs": [
616
+ {
617
+ "internalType": "address",
618
+ "name": "account",
619
+ "type": "address"
620
+ }
621
+ ],
622
+ "name": "numCheckpoints",
623
+ "outputs": [
624
+ {
625
+ "internalType": "uint32",
626
+ "name": "",
627
+ "type": "uint32"
628
+ }
629
+ ],
630
+ "stateMutability": "view",
631
+ "type": "function"
632
+ },
633
+ {
634
+ "inputs": [
635
+ {
636
+ "internalType": "address",
637
+ "name": "owner",
638
+ "type": "address"
675
639
  },
676
640
  {
677
- "inputs": [],
678
- "name": "roleStore",
679
- "outputs": [
680
- {
681
- "internalType": "contract RoleStore",
682
- "name": "",
683
- "type": "address"
684
- }
685
- ],
686
- "stateMutability": "view",
687
- "type": "function"
641
+ "internalType": "address",
642
+ "name": "spender",
643
+ "type": "address"
688
644
  },
689
645
  {
690
- "inputs": [],
691
- "name": "symbol",
692
- "outputs": [
693
- {
694
- "internalType": "string",
695
- "name": "",
696
- "type": "string"
697
- }
698
- ],
699
- "stateMutability": "view",
700
- "type": "function"
646
+ "internalType": "uint256",
647
+ "name": "value",
648
+ "type": "uint256"
701
649
  },
702
650
  {
703
- "inputs": [],
704
- "name": "totalSupply",
705
- "outputs": [
706
- {
707
- "internalType": "uint256",
708
- "name": "",
709
- "type": "uint256"
710
- }
711
- ],
712
- "stateMutability": "view",
713
- "type": "function"
651
+ "internalType": "uint256",
652
+ "name": "deadline",
653
+ "type": "uint256"
714
654
  },
715
655
  {
716
- "inputs": [
717
- {
718
- "internalType": "address",
719
- "name": "to",
720
- "type": "address"
721
- },
722
- {
723
- "internalType": "uint256",
724
- "name": "amount",
725
- "type": "uint256"
726
- }
727
- ],
728
- "name": "transfer",
729
- "outputs": [
730
- {
731
- "internalType": "bool",
732
- "name": "",
733
- "type": "bool"
734
- }
735
- ],
736
- "stateMutability": "nonpayable",
737
- "type": "function"
656
+ "internalType": "uint8",
657
+ "name": "v",
658
+ "type": "uint8"
738
659
  },
739
660
  {
740
- "inputs": [
741
- {
742
- "internalType": "address",
743
- "name": "from",
744
- "type": "address"
745
- },
746
- {
747
- "internalType": "address",
748
- "name": "to",
749
- "type": "address"
750
- },
751
- {
752
- "internalType": "uint256",
753
- "name": "amount",
754
- "type": "uint256"
755
- }
756
- ],
757
- "name": "transferFrom",
758
- "outputs": [
759
- {
760
- "internalType": "bool",
761
- "name": "",
762
- "type": "bool"
763
- }
764
- ],
765
- "stateMutability": "nonpayable",
766
- "type": "function"
661
+ "internalType": "bytes32",
662
+ "name": "r",
663
+ "type": "bytes32"
664
+ },
665
+ {
666
+ "internalType": "bytes32",
667
+ "name": "s",
668
+ "type": "bytes32"
767
669
  }
768
- ],
769
- "transactionHash": "0xf41d2b874807c8dea4d0b21d1215669c990495bda5cdfa8ef7bb822e6edf3043",
770
- "receipt": {
771
- "to": null,
772
- "from": "0xE7BfFf2aB721264887230037940490351700a068",
773
- "contractAddress": "0x2A29D3a792000750807cc401806d6fd539928481",
774
- "transactionIndex": 1,
775
- "gasUsed": "15199775",
776
- "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
777
- "blockHash": "0xc6e67e18e1c484c3ddd3cd5db795adc007a2633bf83bfc7d1c28ee352d90f9f6",
778
- "transactionHash": "0xf41d2b874807c8dea4d0b21d1215669c990495bda5cdfa8ef7bb822e6edf3043",
779
- "logs": [],
780
- "blockNumber": 168596066,
781
- "cumulativeGasUsed": "15199775",
782
- "status": 1,
783
- "byzantium": true
670
+ ],
671
+ "name": "permit",
672
+ "outputs": [],
673
+ "stateMutability": "nonpayable",
674
+ "type": "function"
784
675
  },
785
- "args": [
786
- "0x3c3d99FD298f679DBC2CEcd132b4eC4d0F5e6e72",
787
- "GMX DAO",
788
- "GMX_DAO",
789
- 18
790
- ],
791
- "numDeployments": 1,
792
- "solcInputHash": "ddb2cd26020caa6335eda5082c5c80ae",
793
- "libraries": {},
794
- "devdoc": {
795
- "events": {
796
- "Approval(address,address,uint256)": {
797
- "details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."
798
- },
799
- "DelegateChanged(address,address,address)": {
800
- "details": "Emitted when an account changes their delegate."
801
- },
802
- "DelegateVotesChanged(address,uint256,uint256)": {
803
- "details": "Emitted when a token transfer or delegate change results in changes to a delegate's number of votes."
804
- },
805
- "EIP712DomainChanged()": {
806
- "details": "MAY be emitted to signal that the domain could have changed."
807
- },
808
- "Transfer(address,address,uint256)": {
809
- "details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."
810
- }
676
+ {
677
+ "inputs": [],
678
+ "name": "roleStore",
679
+ "outputs": [
680
+ {
681
+ "internalType": "contract RoleStore",
682
+ "name": "",
683
+ "type": "address"
684
+ }
685
+ ],
686
+ "stateMutability": "view",
687
+ "type": "function"
688
+ },
689
+ {
690
+ "inputs": [],
691
+ "name": "symbol",
692
+ "outputs": [
693
+ {
694
+ "internalType": "string",
695
+ "name": "",
696
+ "type": "string"
697
+ }
698
+ ],
699
+ "stateMutability": "view",
700
+ "type": "function"
701
+ },
702
+ {
703
+ "inputs": [],
704
+ "name": "totalSupply",
705
+ "outputs": [
706
+ {
707
+ "internalType": "uint256",
708
+ "name": "",
709
+ "type": "uint256"
710
+ }
711
+ ],
712
+ "stateMutability": "view",
713
+ "type": "function"
714
+ },
715
+ {
716
+ "inputs": [
717
+ {
718
+ "internalType": "address",
719
+ "name": "to",
720
+ "type": "address"
811
721
  },
812
- "kind": "dev",
813
- "methods": {
814
- "CLOCK_MODE()": {
815
- "details": "Description of the clock"
816
- },
817
- "DOMAIN_SEPARATOR()": {
818
- "details": "See {IERC20Permit-DOMAIN_SEPARATOR}."
819
- },
820
- "allowance(address,address)": {
821
- "details": "See {IERC20-allowance}."
822
- },
823
- "approve(address,uint256)": {
824
- "details": "See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address."
825
- },
826
- "balanceOf(address)": {
827
- "details": "See {IERC20-balanceOf}."
828
- },
829
- "checkpoints(address,uint32)": {
830
- "details": "Get the `pos`-th checkpoint for `account`."
831
- },
832
- "clock()": {
833
- "details": "Clock used for flagging checkpoints. Can be overridden to implement timestamp based checkpoints (and voting)."
834
- },
835
- "decimals()": {
836
- "details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the default value returned by this function, unless it's overridden. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."
837
- },
838
- "decreaseAllowance(address,uint256)": {
839
- "details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."
840
- },
841
- "delegate(address)": {
842
- "details": "Delegate votes from the sender to `delegatee`."
843
- },
844
- "delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32)": {
845
- "details": "Delegates votes from signer to `delegatee`"
846
- },
847
- "delegates(address)": {
848
- "details": "Get the address `account` is currently delegating to."
849
- },
850
- "eip712Domain()": {
851
- "details": "See {EIP-5267}. _Available since v4.9._"
852
- },
853
- "getPastTotalSupply(uint256)": {
854
- "details": "Retrieve the `totalSupply` at the end of `timepoint`. Note, this value is the sum of all balances. It is NOT the sum of all the delegated votes! Requirements: - `timepoint` must be in the past"
855
- },
856
- "getPastVotes(address,uint256)": {
857
- "details": "Retrieve the number of votes for `account` at the end of `timepoint`. Requirements: - `timepoint` must be in the past"
858
- },
859
- "getVotes(address)": {
860
- "details": "Gets the current votes balance for `account`"
861
- },
862
- "increaseAllowance(address,uint256)": {
863
- "details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."
864
- },
865
- "name()": {
866
- "details": "Returns the name of the token."
867
- },
868
- "nonces(address)": {
869
- "details": "See {IERC20Permit-nonces}."
870
- },
871
- "numCheckpoints(address)": {
872
- "details": "Get number of checkpoints for `account`."
873
- },
874
- "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": {
875
- "details": "See {IERC20Permit-permit}."
876
- },
877
- "symbol()": {
878
- "details": "Returns the symbol of the token, usually a shorter version of the name."
879
- },
880
- "totalSupply()": {
881
- "details": "See {IERC20-totalSupply}."
882
- },
883
- "transfer(address,uint256)": {
884
- "details": "See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`."
885
- },
886
- "transferFrom(address,address,uint256)": {
887
- "details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`."
888
- }
722
+ {
723
+ "internalType": "uint256",
724
+ "name": "amount",
725
+ "type": "uint256"
726
+ }
727
+ ],
728
+ "name": "transfer",
729
+ "outputs": [
730
+ {
731
+ "internalType": "bool",
732
+ "name": "",
733
+ "type": "bool"
734
+ }
735
+ ],
736
+ "stateMutability": "nonpayable",
737
+ "type": "function"
738
+ },
739
+ {
740
+ "inputs": [
741
+ {
742
+ "internalType": "address",
743
+ "name": "from",
744
+ "type": "address"
889
745
  },
890
- "version": 1
746
+ {
747
+ "internalType": "address",
748
+ "name": "to",
749
+ "type": "address"
750
+ },
751
+ {
752
+ "internalType": "uint256",
753
+ "name": "amount",
754
+ "type": "uint256"
755
+ }
756
+ ],
757
+ "name": "transferFrom",
758
+ "outputs": [
759
+ {
760
+ "internalType": "bool",
761
+ "name": "",
762
+ "type": "bool"
763
+ }
764
+ ],
765
+ "stateMutability": "nonpayable",
766
+ "type": "function"
767
+ }
768
+ ],
769
+ "transactionHash": "0xf41d2b874807c8dea4d0b21d1215669c990495bda5cdfa8ef7bb822e6edf3043",
770
+ "receipt": {
771
+ "to": null,
772
+ "from": "0xE7BfFf2aB721264887230037940490351700a068",
773
+ "contractAddress": "0x2A29D3a792000750807cc401806d6fd539928481",
774
+ "transactionIndex": 1,
775
+ "gasUsed": "15199775",
776
+ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
777
+ "blockHash": "0xc6e67e18e1c484c3ddd3cd5db795adc007a2633bf83bfc7d1c28ee352d90f9f6",
778
+ "transactionHash": "0xf41d2b874807c8dea4d0b21d1215669c990495bda5cdfa8ef7bb822e6edf3043",
779
+ "logs": [],
780
+ "blockNumber": 168596066,
781
+ "cumulativeGasUsed": "15199775",
782
+ "status": 1,
783
+ "byzantium": true
784
+ },
785
+ "args": [
786
+ "0x3c3d99FD298f679DBC2CEcd132b4eC4d0F5e6e72",
787
+ "GMX DAO",
788
+ "GMX_DAO",
789
+ 18
790
+ ],
791
+ "numDeployments": 1,
792
+ "solcInputHash": "ddb2cd26020caa6335eda5082c5c80ae",
793
+ "libraries": {},
794
+ "devdoc": {
795
+ "events": {
796
+ "Approval(address,address,uint256)": {
797
+ "details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."
798
+ },
799
+ "DelegateChanged(address,address,address)": {
800
+ "details": "Emitted when an account changes their delegate."
801
+ },
802
+ "DelegateVotesChanged(address,uint256,uint256)": {
803
+ "details": "Emitted when a token transfer or delegate change results in changes to a delegate's number of votes."
804
+ },
805
+ "EIP712DomainChanged()": {
806
+ "details": "MAY be emitted to signal that the domain could have changed."
807
+ },
808
+ "Transfer(address,address,uint256)": {
809
+ "details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."
810
+ }
891
811
  },
892
- "userdoc": {
893
- "kind": "user",
894
- "methods": {},
895
- "version": 1
812
+ "kind": "dev",
813
+ "methods": {
814
+ "CLOCK_MODE()": {
815
+ "details": "Description of the clock"
816
+ },
817
+ "DOMAIN_SEPARATOR()": {
818
+ "details": "See {IERC20Permit-DOMAIN_SEPARATOR}."
819
+ },
820
+ "allowance(address,address)": {
821
+ "details": "See {IERC20-allowance}."
822
+ },
823
+ "approve(address,uint256)": {
824
+ "details": "See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address."
825
+ },
826
+ "balanceOf(address)": {
827
+ "details": "See {IERC20-balanceOf}."
828
+ },
829
+ "checkpoints(address,uint32)": {
830
+ "details": "Get the `pos`-th checkpoint for `account`."
831
+ },
832
+ "clock()": {
833
+ "details": "Clock used for flagging checkpoints. Can be overridden to implement timestamp based checkpoints (and voting)."
834
+ },
835
+ "decimals()": {
836
+ "details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the default value returned by this function, unless it's overridden. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."
837
+ },
838
+ "decreaseAllowance(address,uint256)": {
839
+ "details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."
840
+ },
841
+ "delegate(address)": {
842
+ "details": "Delegate votes from the sender to `delegatee`."
843
+ },
844
+ "delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32)": {
845
+ "details": "Delegates votes from signer to `delegatee`"
846
+ },
847
+ "delegates(address)": {
848
+ "details": "Get the address `account` is currently delegating to."
849
+ },
850
+ "eip712Domain()": {
851
+ "details": "See {EIP-5267}. _Available since v4.9._"
852
+ },
853
+ "getPastTotalSupply(uint256)": {
854
+ "details": "Retrieve the `totalSupply` at the end of `timepoint`. Note, this value is the sum of all balances. It is NOT the sum of all the delegated votes! Requirements: - `timepoint` must be in the past"
855
+ },
856
+ "getPastVotes(address,uint256)": {
857
+ "details": "Retrieve the number of votes for `account` at the end of `timepoint`. Requirements: - `timepoint` must be in the past"
858
+ },
859
+ "getVotes(address)": {
860
+ "details": "Gets the current votes balance for `account`"
861
+ },
862
+ "increaseAllowance(address,uint256)": {
863
+ "details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address."
864
+ },
865
+ "name()": {
866
+ "details": "Returns the name of the token."
867
+ },
868
+ "nonces(address)": {
869
+ "details": "See {IERC20Permit-nonces}."
870
+ },
871
+ "numCheckpoints(address)": {
872
+ "details": "Get number of checkpoints for `account`."
873
+ },
874
+ "permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": {
875
+ "details": "See {IERC20Permit-permit}."
876
+ },
877
+ "symbol()": {
878
+ "details": "Returns the symbol of the token, usually a shorter version of the name."
879
+ },
880
+ "totalSupply()": {
881
+ "details": "See {IERC20-totalSupply}."
882
+ },
883
+ "transfer(address,uint256)": {
884
+ "details": "See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`."
885
+ },
886
+ "transferFrom(address,address,uint256)": {
887
+ "details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`."
888
+ }
896
889
  },
897
- "storageLayout": {
898
- "storage": [
899
- {
900
- "astId": 207,
901
- "contract": "contracts/gov/GovToken.sol:GovToken",
902
- "label": "_balances",
903
- "offset": 0,
904
- "slot": "0",
905
- "type": "t_mapping(t_address,t_uint256)"
906
- },
907
- {
908
- "astId": 213,
909
- "contract": "contracts/gov/GovToken.sol:GovToken",
910
- "label": "_allowances",
911
- "offset": 0,
912
- "slot": "1",
913
- "type": "t_mapping(t_address,t_mapping(t_address,t_uint256))"
914
- },
915
- {
916
- "astId": 215,
917
- "contract": "contracts/gov/GovToken.sol:GovToken",
918
- "label": "_totalSupply",
919
- "offset": 0,
920
- "slot": "2",
921
- "type": "t_uint256"
922
- },
923
- {
924
- "astId": 217,
925
- "contract": "contracts/gov/GovToken.sol:GovToken",
926
- "label": "_name",
927
- "offset": 0,
928
- "slot": "3",
929
- "type": "t_string_storage"
930
- },
931
- {
932
- "astId": 219,
933
- "contract": "contracts/gov/GovToken.sol:GovToken",
934
- "label": "_symbol",
935
- "offset": 0,
936
- "slot": "4",
937
- "type": "t_string_storage"
938
- },
939
- {
940
- "astId": 3579,
941
- "contract": "contracts/gov/GovToken.sol:GovToken",
942
- "label": "_nameFallback",
943
- "offset": 0,
944
- "slot": "5",
945
- "type": "t_string_storage"
946
- },
947
- {
948
- "astId": 3581,
949
- "contract": "contracts/gov/GovToken.sol:GovToken",
950
- "label": "_versionFallback",
951
- "offset": 0,
952
- "slot": "6",
953
- "type": "t_string_storage"
954
- },
955
- {
956
- "astId": 879,
957
- "contract": "contracts/gov/GovToken.sol:GovToken",
958
- "label": "_nonces",
959
- "offset": 0,
960
- "slot": "7",
961
- "type": "t_mapping(t_address,t_struct(Counter)2557_storage)"
962
- },
963
- {
964
- "astId": 887,
965
- "contract": "contracts/gov/GovToken.sol:GovToken",
966
- "label": "_PERMIT_TYPEHASH_DEPRECATED_SLOT",
967
- "offset": 0,
968
- "slot": "8",
969
- "type": "t_bytes32"
970
- },
971
- {
972
- "astId": 1054,
973
- "contract": "contracts/gov/GovToken.sol:GovToken",
974
- "label": "_delegates",
975
- "offset": 0,
976
- "slot": "9",
977
- "type": "t_mapping(t_address,t_address)"
978
- },
979
- {
980
- "astId": 1060,
981
- "contract": "contracts/gov/GovToken.sol:GovToken",
982
- "label": "_checkpoints",
983
- "offset": 0,
984
- "slot": "10",
985
- "type": "t_mapping(t_address,t_array(t_struct(Checkpoint)1045_storage)dyn_storage)"
986
- },
987
- {
988
- "astId": 1064,
989
- "contract": "contracts/gov/GovToken.sol:GovToken",
990
- "label": "_totalSupplyCheckpoints",
991
- "offset": 0,
992
- "slot": "11",
993
- "type": "t_array(t_struct(Checkpoint)1045_storage)dyn_storage"
994
- },
995
- {
996
- "astId": 27701,
997
- "contract": "contracts/gov/GovToken.sol:GovToken",
998
- "label": "_decimals",
999
- "offset": 0,
1000
- "slot": "12",
1001
- "type": "t_uint8"
1002
- }
890
+ "version": 1
891
+ },
892
+ "userdoc": {
893
+ "kind": "user",
894
+ "methods": {},
895
+ "version": 1
896
+ },
897
+ "storageLayout": {
898
+ "storage": [
899
+ {
900
+ "astId": 207,
901
+ "contract": "contracts/gov/GovToken.sol:GovToken",
902
+ "label": "_balances",
903
+ "offset": 0,
904
+ "slot": "0",
905
+ "type": "t_mapping(t_address,t_uint256)"
906
+ },
907
+ {
908
+ "astId": 213,
909
+ "contract": "contracts/gov/GovToken.sol:GovToken",
910
+ "label": "_allowances",
911
+ "offset": 0,
912
+ "slot": "1",
913
+ "type": "t_mapping(t_address,t_mapping(t_address,t_uint256))"
914
+ },
915
+ {
916
+ "astId": 215,
917
+ "contract": "contracts/gov/GovToken.sol:GovToken",
918
+ "label": "_totalSupply",
919
+ "offset": 0,
920
+ "slot": "2",
921
+ "type": "t_uint256"
922
+ },
923
+ {
924
+ "astId": 217,
925
+ "contract": "contracts/gov/GovToken.sol:GovToken",
926
+ "label": "_name",
927
+ "offset": 0,
928
+ "slot": "3",
929
+ "type": "t_string_storage"
930
+ },
931
+ {
932
+ "astId": 219,
933
+ "contract": "contracts/gov/GovToken.sol:GovToken",
934
+ "label": "_symbol",
935
+ "offset": 0,
936
+ "slot": "4",
937
+ "type": "t_string_storage"
938
+ },
939
+ {
940
+ "astId": 3579,
941
+ "contract": "contracts/gov/GovToken.sol:GovToken",
942
+ "label": "_nameFallback",
943
+ "offset": 0,
944
+ "slot": "5",
945
+ "type": "t_string_storage"
946
+ },
947
+ {
948
+ "astId": 3581,
949
+ "contract": "contracts/gov/GovToken.sol:GovToken",
950
+ "label": "_versionFallback",
951
+ "offset": 0,
952
+ "slot": "6",
953
+ "type": "t_string_storage"
954
+ },
955
+ {
956
+ "astId": 879,
957
+ "contract": "contracts/gov/GovToken.sol:GovToken",
958
+ "label": "_nonces",
959
+ "offset": 0,
960
+ "slot": "7",
961
+ "type": "t_mapping(t_address,t_struct(Counter)2557_storage)"
962
+ },
963
+ {
964
+ "astId": 887,
965
+ "contract": "contracts/gov/GovToken.sol:GovToken",
966
+ "label": "_PERMIT_TYPEHASH_DEPRECATED_SLOT",
967
+ "offset": 0,
968
+ "slot": "8",
969
+ "type": "t_bytes32"
970
+ },
971
+ {
972
+ "astId": 1054,
973
+ "contract": "contracts/gov/GovToken.sol:GovToken",
974
+ "label": "_delegates",
975
+ "offset": 0,
976
+ "slot": "9",
977
+ "type": "t_mapping(t_address,t_address)"
978
+ },
979
+ {
980
+ "astId": 1060,
981
+ "contract": "contracts/gov/GovToken.sol:GovToken",
982
+ "label": "_checkpoints",
983
+ "offset": 0,
984
+ "slot": "10",
985
+ "type": "t_mapping(t_address,t_array(t_struct(Checkpoint)1045_storage)dyn_storage)"
986
+ },
987
+ {
988
+ "astId": 1064,
989
+ "contract": "contracts/gov/GovToken.sol:GovToken",
990
+ "label": "_totalSupplyCheckpoints",
991
+ "offset": 0,
992
+ "slot": "11",
993
+ "type": "t_array(t_struct(Checkpoint)1045_storage)dyn_storage"
994
+ },
995
+ {
996
+ "astId": 27701,
997
+ "contract": "contracts/gov/GovToken.sol:GovToken",
998
+ "label": "_decimals",
999
+ "offset": 0,
1000
+ "slot": "12",
1001
+ "type": "t_uint8"
1002
+ }
1003
+ ],
1004
+ "types": {
1005
+ "t_address": {
1006
+ "encoding": "inplace",
1007
+ "label": "address",
1008
+ "numberOfBytes": "20"
1009
+ },
1010
+ "t_array(t_struct(Checkpoint)1045_storage)dyn_storage": {
1011
+ "base": "t_struct(Checkpoint)1045_storage",
1012
+ "encoding": "dynamic_array",
1013
+ "label": "struct ERC20Votes.Checkpoint[]",
1014
+ "numberOfBytes": "32"
1015
+ },
1016
+ "t_bytes32": {
1017
+ "encoding": "inplace",
1018
+ "label": "bytes32",
1019
+ "numberOfBytes": "32"
1020
+ },
1021
+ "t_mapping(t_address,t_address)": {
1022
+ "encoding": "mapping",
1023
+ "key": "t_address",
1024
+ "label": "mapping(address => address)",
1025
+ "numberOfBytes": "32",
1026
+ "value": "t_address"
1027
+ },
1028
+ "t_mapping(t_address,t_array(t_struct(Checkpoint)1045_storage)dyn_storage)": {
1029
+ "encoding": "mapping",
1030
+ "key": "t_address",
1031
+ "label": "mapping(address => struct ERC20Votes.Checkpoint[])",
1032
+ "numberOfBytes": "32",
1033
+ "value": "t_array(t_struct(Checkpoint)1045_storage)dyn_storage"
1034
+ },
1035
+ "t_mapping(t_address,t_mapping(t_address,t_uint256))": {
1036
+ "encoding": "mapping",
1037
+ "key": "t_address",
1038
+ "label": "mapping(address => mapping(address => uint256))",
1039
+ "numberOfBytes": "32",
1040
+ "value": "t_mapping(t_address,t_uint256)"
1041
+ },
1042
+ "t_mapping(t_address,t_struct(Counter)2557_storage)": {
1043
+ "encoding": "mapping",
1044
+ "key": "t_address",
1045
+ "label": "mapping(address => struct Counters.Counter)",
1046
+ "numberOfBytes": "32",
1047
+ "value": "t_struct(Counter)2557_storage"
1048
+ },
1049
+ "t_mapping(t_address,t_uint256)": {
1050
+ "encoding": "mapping",
1051
+ "key": "t_address",
1052
+ "label": "mapping(address => uint256)",
1053
+ "numberOfBytes": "32",
1054
+ "value": "t_uint256"
1055
+ },
1056
+ "t_string_storage": {
1057
+ "encoding": "bytes",
1058
+ "label": "string",
1059
+ "numberOfBytes": "32"
1060
+ },
1061
+ "t_struct(Checkpoint)1045_storage": {
1062
+ "encoding": "inplace",
1063
+ "label": "struct ERC20Votes.Checkpoint",
1064
+ "members": [
1065
+ {
1066
+ "astId": 1042,
1067
+ "contract": "contracts/gov/GovToken.sol:GovToken",
1068
+ "label": "fromBlock",
1069
+ "offset": 0,
1070
+ "slot": "0",
1071
+ "type": "t_uint32"
1072
+ },
1073
+ {
1074
+ "astId": 1044,
1075
+ "contract": "contracts/gov/GovToken.sol:GovToken",
1076
+ "label": "votes",
1077
+ "offset": 4,
1078
+ "slot": "0",
1079
+ "type": "t_uint224"
1080
+ }
1003
1081
  ],
1004
- "types": {
1005
- "t_address": {
1006
- "encoding": "inplace",
1007
- "label": "address",
1008
- "numberOfBytes": "20"
1009
- },
1010
- "t_array(t_struct(Checkpoint)1045_storage)dyn_storage": {
1011
- "base": "t_struct(Checkpoint)1045_storage",
1012
- "encoding": "dynamic_array",
1013
- "label": "struct ERC20Votes.Checkpoint[]",
1014
- "numberOfBytes": "32"
1015
- },
1016
- "t_bytes32": {
1017
- "encoding": "inplace",
1018
- "label": "bytes32",
1019
- "numberOfBytes": "32"
1020
- },
1021
- "t_mapping(t_address,t_address)": {
1022
- "encoding": "mapping",
1023
- "key": "t_address",
1024
- "label": "mapping(address => address)",
1025
- "numberOfBytes": "32",
1026
- "value": "t_address"
1027
- },
1028
- "t_mapping(t_address,t_array(t_struct(Checkpoint)1045_storage)dyn_storage)": {
1029
- "encoding": "mapping",
1030
- "key": "t_address",
1031
- "label": "mapping(address => struct ERC20Votes.Checkpoint[])",
1032
- "numberOfBytes": "32",
1033
- "value": "t_array(t_struct(Checkpoint)1045_storage)dyn_storage"
1034
- },
1035
- "t_mapping(t_address,t_mapping(t_address,t_uint256))": {
1036
- "encoding": "mapping",
1037
- "key": "t_address",
1038
- "label": "mapping(address => mapping(address => uint256))",
1039
- "numberOfBytes": "32",
1040
- "value": "t_mapping(t_address,t_uint256)"
1041
- },
1042
- "t_mapping(t_address,t_struct(Counter)2557_storage)": {
1043
- "encoding": "mapping",
1044
- "key": "t_address",
1045
- "label": "mapping(address => struct Counters.Counter)",
1046
- "numberOfBytes": "32",
1047
- "value": "t_struct(Counter)2557_storage"
1048
- },
1049
- "t_mapping(t_address,t_uint256)": {
1050
- "encoding": "mapping",
1051
- "key": "t_address",
1052
- "label": "mapping(address => uint256)",
1053
- "numberOfBytes": "32",
1054
- "value": "t_uint256"
1055
- },
1056
- "t_string_storage": {
1057
- "encoding": "bytes",
1058
- "label": "string",
1059
- "numberOfBytes": "32"
1060
- },
1061
- "t_struct(Checkpoint)1045_storage": {
1062
- "encoding": "inplace",
1063
- "label": "struct ERC20Votes.Checkpoint",
1064
- "members": [
1065
- {
1066
- "astId": 1042,
1067
- "contract": "contracts/gov/GovToken.sol:GovToken",
1068
- "label": "fromBlock",
1069
- "offset": 0,
1070
- "slot": "0",
1071
- "type": "t_uint32"
1072
- },
1073
- {
1074
- "astId": 1044,
1075
- "contract": "contracts/gov/GovToken.sol:GovToken",
1076
- "label": "votes",
1077
- "offset": 4,
1078
- "slot": "0",
1079
- "type": "t_uint224"
1080
- }
1081
- ],
1082
- "numberOfBytes": "32"
1083
- },
1084
- "t_struct(Counter)2557_storage": {
1085
- "encoding": "inplace",
1086
- "label": "struct Counters.Counter",
1087
- "members": [
1088
- {
1089
- "astId": 2556,
1090
- "contract": "contracts/gov/GovToken.sol:GovToken",
1091
- "label": "_value",
1092
- "offset": 0,
1093
- "slot": "0",
1094
- "type": "t_uint256"
1095
- }
1096
- ],
1097
- "numberOfBytes": "32"
1098
- },
1099
- "t_uint224": {
1100
- "encoding": "inplace",
1101
- "label": "uint224",
1102
- "numberOfBytes": "28"
1103
- },
1104
- "t_uint256": {
1105
- "encoding": "inplace",
1106
- "label": "uint256",
1107
- "numberOfBytes": "32"
1108
- },
1109
- "t_uint32": {
1110
- "encoding": "inplace",
1111
- "label": "uint32",
1112
- "numberOfBytes": "4"
1113
- },
1114
- "t_uint8": {
1115
- "encoding": "inplace",
1116
- "label": "uint8",
1117
- "numberOfBytes": "1"
1118
- }
1119
- }
1082
+ "numberOfBytes": "32"
1083
+ },
1084
+ "t_struct(Counter)2557_storage": {
1085
+ "encoding": "inplace",
1086
+ "label": "struct Counters.Counter",
1087
+ "members": [
1088
+ {
1089
+ "astId": 2556,
1090
+ "contract": "contracts/gov/GovToken.sol:GovToken",
1091
+ "label": "_value",
1092
+ "offset": 0,
1093
+ "slot": "0",
1094
+ "type": "t_uint256"
1095
+ }
1096
+ ],
1097
+ "numberOfBytes": "32"
1098
+ },
1099
+ "t_uint224": {
1100
+ "encoding": "inplace",
1101
+ "label": "uint224",
1102
+ "numberOfBytes": "28"
1103
+ },
1104
+ "t_uint256": {
1105
+ "encoding": "inplace",
1106
+ "label": "uint256",
1107
+ "numberOfBytes": "32"
1108
+ },
1109
+ "t_uint32": {
1110
+ "encoding": "inplace",
1111
+ "label": "uint32",
1112
+ "numberOfBytes": "4"
1113
+ },
1114
+ "t_uint8": {
1115
+ "encoding": "inplace",
1116
+ "label": "uint8",
1117
+ "numberOfBytes": "1"
1118
+ }
1120
1119
  }
1121
- }
1120
+ }
1121
+ }