Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Commit f31a905

Browse files
committed
Add in set token count and fix prettier
1 parent 40facc6 commit f31a905

28 files changed

+584
-808
lines changed

.eslintrc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ module.exports = {
55
extends: [
66
'eslint:recommended',
77
'plugin:@typescript-eslint/eslint-recommended',
8-
'plugin:@typescript-eslint/recommended',
9-
'prettier/@typescript-eslint'
8+
'plugin:@typescript-eslint/recommended'
109
],
1110
parserOptions: {
1211
ecmaVersion: 2020,

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ Steps:
1616
1. `git clone https://github.com/SetProtocol/set-protocol-v2-subgraph.git && cd set-protocol-v2-subgraph`
1717
2. `yarn install`
1818
3. `yarn gen-deployment <NETWORK_NAME>` hardhat or mainnet
19-
4a. (If deploying to hosted service) `yarn graph auth https://api.thegraph.com/deploy/ <ACCESS_TOKEN>`
19+
4. (If deploying to hosted service) `yarn graph auth https://api.thegraph.com/deploy/ <ACCESS_TOKEN>`
20+
5. `graph deploy --product hosted-service justinkchen/set-protocol-v2-matic`
21+
2022

2123
Using Graph Subgraph Studio
2224
1. `graph auth --studio <API KEY>` (see more at https://thegraph.com/studio/subgraph/set-protocol-v2/)

abis/BasicIssuanceModule.json

Lines changed: 16 additions & 9 deletions
Large diffs are not rendered by default.

abis/Controller.json

Lines changed: 68 additions & 35 deletions
Large diffs are not rendered by default.

abis/ERC20.json

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@
9191
}
9292
],
9393
"stateMutability": "view",
94-
"type": "function"
94+
"type": "function",
95+
"gas": "0xaeb690"
9596
},
9697
{
9798
"inputs": [
@@ -115,7 +116,8 @@
115116
}
116117
],
117118
"stateMutability": "nonpayable",
118-
"type": "function"
119+
"type": "function",
120+
"gas": "0xaeb690"
119121
},
120122
{
121123
"inputs": [
@@ -134,7 +136,8 @@
134136
}
135137
],
136138
"stateMutability": "view",
137-
"type": "function"
139+
"type": "function",
140+
"gas": "0xaeb690"
138141
},
139142
{
140143
"inputs": [],
@@ -147,7 +150,8 @@
147150
}
148151
],
149152
"stateMutability": "view",
150-
"type": "function"
153+
"type": "function",
154+
"gas": "0xaeb690"
151155
},
152156
{
153157
"inputs": [
@@ -171,7 +175,8 @@
171175
}
172176
],
173177
"stateMutability": "nonpayable",
174-
"type": "function"
178+
"type": "function",
179+
"gas": "0xaeb690"
175180
},
176181
{
177182
"inputs": [
@@ -195,7 +200,8 @@
195200
}
196201
],
197202
"stateMutability": "nonpayable",
198-
"type": "function"
203+
"type": "function",
204+
"gas": "0xaeb690"
199205
},
200206
{
201207
"inputs": [],
@@ -208,7 +214,8 @@
208214
}
209215
],
210216
"stateMutability": "view",
211-
"type": "function"
217+
"type": "function",
218+
"gas": "0xaeb690"
212219
},
213220
{
214221
"inputs": [],
@@ -221,7 +228,8 @@
221228
}
222229
],
223230
"stateMutability": "view",
224-
"type": "function"
231+
"type": "function",
232+
"gas": "0xaeb690"
225233
},
226234
{
227235
"inputs": [],
@@ -234,7 +242,8 @@
234242
}
235243
],
236244
"stateMutability": "view",
237-
"type": "function"
245+
"type": "function",
246+
"gas": "0xaeb690"
238247
},
239248
{
240249
"inputs": [
@@ -258,7 +267,8 @@
258267
}
259268
],
260269
"stateMutability": "nonpayable",
261-
"type": "function"
270+
"type": "function",
271+
"gas": "0xaeb690"
262272
},
263273
{
264274
"inputs": [
@@ -287,7 +297,8 @@
287297
}
288298
],
289299
"stateMutability": "nonpayable",
290-
"type": "function"
300+
"type": "function",
301+
"gas": "0xaeb690"
291302
}
292303
],
293304
"bytecode": "0x60806040523480156200001157600080fd5b5060405162000ca538038062000ca5833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b5060405250508251620001b491506003906020850190620001e0565b508051620001ca906004906020840190620001e0565b50506005805460ff191660121790555062000285565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200022357805160ff191683800117855562000253565b8280016001018555821562000253579182015b828111156200025357825182559160200191906001019062000236565b506200026192915062000265565b5090565b6200028291905b808211156200026157600081556001016200026c565b90565b610a1080620002956000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b03813516906020013561034f565b604080519115158252519081900360200190f35b61017361036c565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b03813581169160208101359091169060400135610372565b6101c36103ff565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610408565b6101736004803603602081101561021b57600080fd5b50356001600160a01b031661045c565b6100b6610477565b6101576004803603604081101561024957600080fd5b506001600160a01b0381351690602001356104d8565b6101576004803603604081101561027557600080fd5b506001600160a01b038135169060200135610546565b610173600480360360408110156102a157600080fd5b506001600160a01b038135811691602001351661055a565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b820191906000526020600020905b81548152906001019060200180831161032857829003601f168201915b5050505050905090565b600061036361035c610585565b8484610589565b50600192915050565b60025490565b600061037f848484610675565b6103f58461038b610585565b6103f085604051806060016040528060288152602001610945602891396001600160a01b038a166000908152600160205260408120906103c9610585565b6001600160a01b03168152602081019190915260400160002054919063ffffffff6107dc16565b610589565b5060019392505050565b60055460ff1690565b6000610363610415610585565b846103f08560016000610426610585565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61087316565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156103455780601f1061031a57610100808354040283529160200191610345565b60006103636104e5610585565b846103f0856040518060600160405280602581526020016109b6602591396001600061050f610585565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff6107dc16565b6000610363610553610585565b8484610675565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3390565b6001600160a01b0383166105ce5760405162461bcd60e51b81526004018080602001828103825260248152602001806109926024913960400191505060405180910390fd5b6001600160a01b0382166106135760405162461bcd60e51b81526004018080602001828103825260228152602001806108fd6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166106ba5760405162461bcd60e51b815260040180806020018281038252602581526020018061096d6025913960400191505060405180910390fd5b6001600160a01b0382166106ff5760405162461bcd60e51b81526004018080602001828103825260238152602001806108da6023913960400191505060405180910390fd5b61070a8383836108d4565b61074d8160405180606001604052806026815260200161091f602691396001600160a01b038616600090815260208190526040902054919063ffffffff6107dc16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610782908263ffffffff61087316565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561086b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610830578181015183820152602001610818565b50505050905090810190601f16801561085d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000828201838110156108cd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122040675a59678433c5bbc8c96bb03d9ab3aa74e11f68a3fed253d79b514d8dc6e464736f6c634300060a0033",

0 commit comments

Comments
 (0)