Skip to content

Commit f9b4ddb

Browse files
committed
tweaks before launch
1 parent 02d23de commit f9b4ddb

20 files changed

Lines changed: 439 additions & 219 deletions

Documentation/Model-workflow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ Reach out to the DIN-Representative through any of the following channels:
6363

6464
| Channel | Link / Handle |
6565
|----------|--------------|
66-
| Discord | `#model-onboarding` channel on the [Infinte Zero Foundation* Discord](https://discord.gg/fSWPgdMA6) server
67-
| Telegram | To be announced |
66+
| Discord | `#model-onboarding` channel on the Infinte Zero Foundation* Discord server: https://discord.gg/fSWPgdMA6
67+
| Telegram | https://t.me/+I4Tl7foCVwwwM2Vk |
6868
| Email | umermajeed.cto@gmail.com ** |
6969

7070
> *DIN Protocol is developed and maintained by Infinite Zero Foundation
71-
> ** Please mention "DIN Protocol Model Registration Request" in the subject of the email
71+
> ** Dr. Umer Majeed is the CTO of Infinite Zero Foundation , Please mention "DIN Protocol Model Registration Request" in the subject of the email
7272
7373
### Required Information for Your Request
7474

dincli/abis/DINModelRegistry.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
},
239239
{
240240
"inputs": [],
241-
"name": "proprietaryFee",
241+
"name": "proprietaryFeeL2",
242242
"outputs": [
243243
{
244244
"internalType": "uint256",

dincli/abis/DINTaskAuditor.json

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
"abi": [
33
{
44
"inputs": [
5-
{
6-
"internalType": "address",
7-
"name": "_mockusdt",
8-
"type": "address"
9-
},
105
{
116
"internalType": "address",
127
"name": "_dinvalidatorStakeContract_address",
@@ -43,17 +38,6 @@
4338
"name": "OwnableUnauthorizedAccount",
4439
"type": "error"
4540
},
46-
{
47-
"inputs": [
48-
{
49-
"internalType": "address",
50-
"name": "token",
51-
"type": "address"
52-
}
53-
],
54-
"name": "SafeERC20FailedOperation",
55-
"type": "error"
56-
},
5741
{
5842
"inputs": [],
5943
"name": "TA_AlreadySubmitted",
@@ -64,11 +48,6 @@
6448
"name": "TA_AlreadyVoted",
6549
"type": "error"
6650
},
67-
{
68-
"inputs": [],
69-
"name": "TA_AmountMustBePositive",
70-
"type": "error"
71-
},
7251
{
7352
"inputs": [],
7453
"name": "TA_AuditorAlreadyRegistered",
@@ -638,19 +617,6 @@
638617
"stateMutability": "nonpayable",
639618
"type": "function"
640619
},
641-
{
642-
"inputs": [
643-
{
644-
"internalType": "uint256",
645-
"name": "_amount",
646-
"type": "uint256"
647-
}
648-
],
649-
"name": "depositReward",
650-
"outputs": [],
651-
"stateMutability": "nonpayable",
652-
"type": "function"
653-
},
654620
{
655621
"inputs": [
656622
{
@@ -1017,19 +983,6 @@
1017983
"stateMutability": "view",
1018984
"type": "function"
1019985
},
1020-
{
1021-
"inputs": [],
1022-
"name": "mockusdt",
1023-
"outputs": [
1024-
{
1025-
"internalType": "contract IERC20",
1026-
"name": "",
1027-
"type": "address"
1028-
}
1029-
],
1030-
"stateMutability": "view",
1031-
"type": "function"
1032-
},
1033986
{
1034987
"inputs": [],
1035988
"name": "owner",

dincli/abis/DinCoordinator.json

Lines changed: 171 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,66 @@
55
"stateMutability": "nonpayable",
66
"type": "constructor"
77
},
8+
{
9+
"inputs": [],
10+
"name": "InvalidAddress",
11+
"type": "error"
12+
},
13+
{
14+
"inputs": [
15+
{
16+
"internalType": "address",
17+
"name": "owner",
18+
"type": "address"
19+
}
20+
],
21+
"name": "OwnableInvalidOwner",
22+
"type": "error"
23+
},
24+
{
25+
"inputs": [
26+
{
27+
"internalType": "address",
28+
"name": "account",
29+
"type": "address"
30+
}
31+
],
32+
"name": "OwnableUnauthorizedAccount",
33+
"type": "error"
34+
},
35+
{
36+
"inputs": [],
37+
"name": "ReentrancyGuardReentrantCall",
38+
"type": "error"
39+
},
40+
{
41+
"inputs": [],
42+
"name": "TransferFailed",
43+
"type": "error"
44+
},
45+
{
46+
"inputs": [],
47+
"name": "ValidatorStakeContractNotSet",
48+
"type": "error"
49+
},
50+
{
51+
"inputs": [],
52+
"name": "ZeroValue",
53+
"type": "error"
54+
},
55+
{
56+
"anonymous": false,
57+
"inputs": [
58+
{
59+
"indexed": false,
60+
"internalType": "uint256",
61+
"name": "newRate",
62+
"type": "uint256"
63+
}
64+
],
65+
"name": "DinPerEthUpdated",
66+
"type": "event"
67+
},
868
{
969
"anonymous": false,
1070
"inputs": [
@@ -27,44 +87,76 @@
2787
"type": "uint256"
2888
}
2989
],
30-
"name": "DepositAndMint",
90+
"name": "EthDepositAndDINminted",
3191
"type": "event"
3292
},
3393
{
34-
"inputs": [],
35-
"name": "DIN_PER_ETH",
36-
"outputs": [
94+
"anonymous": false,
95+
"inputs": [
3796
{
38-
"internalType": "uint256",
39-
"name": "",
40-
"type": "uint256"
97+
"indexed": true,
98+
"internalType": "address",
99+
"name": "previousOwner",
100+
"type": "address"
101+
},
102+
{
103+
"indexed": true,
104+
"internalType": "address",
105+
"name": "newOwner",
106+
"type": "address"
41107
}
42108
],
43-
"stateMutability": "view",
44-
"type": "function"
109+
"name": "OwnershipTransferred",
110+
"type": "event"
45111
},
46112
{
113+
"anonymous": false,
47114
"inputs": [
48115
{
116+
"indexed": true,
49117
"internalType": "address",
50-
"name": "_dinvalidatorStakeContract",
118+
"name": "slasher",
51119
"type": "address"
52120
}
53121
],
54-
"name": "add_dinvalidatorStakeContract",
55-
"outputs": [],
56-
"stateMutability": "nonpayable",
57-
"type": "function"
122+
"name": "SlasherContractAdded",
123+
"type": "event"
58124
},
59125
{
126+
"anonymous": false,
60127
"inputs": [
61128
{
129+
"indexed": true,
62130
"internalType": "address",
63-
"name": "_slasher_contract",
131+
"name": "slasher",
64132
"type": "address"
65133
}
66134
],
67-
"name": "add_slasher_contract",
135+
"name": "SlasherContractRemoved",
136+
"type": "event"
137+
},
138+
{
139+
"anonymous": false,
140+
"inputs": [
141+
{
142+
"indexed": true,
143+
"internalType": "address",
144+
"name": "validatorStakeContract",
145+
"type": "address"
146+
}
147+
],
148+
"name": "ValidatorStakeContractUpdated",
149+
"type": "event"
150+
},
151+
{
152+
"inputs": [
153+
{
154+
"internalType": "address",
155+
"name": "slasherContract",
156+
"type": "address"
157+
}
158+
],
159+
"name": "addSlasherContract",
68160
"outputs": [],
69161
"stateMutability": "nonpayable",
70162
"type": "function"
@@ -78,7 +170,20 @@
78170
},
79171
{
80172
"inputs": [],
81-
"name": "dintoken",
173+
"name": "dinPerEth",
174+
"outputs": [
175+
{
176+
"internalType": "uint256",
177+
"name": "",
178+
"type": "uint256"
179+
}
180+
],
181+
"stateMutability": "view",
182+
"type": "function"
183+
},
184+
{
185+
"inputs": [],
186+
"name": "dinToken",
82187
"outputs": [
83188
{
84189
"internalType": "contract DinToken",
@@ -91,7 +196,7 @@
91196
},
92197
{
93198
"inputs": [],
94-
"name": "dinvalidatorStakeContract",
199+
"name": "dinValidatorStakeContract",
95200
"outputs": [
96201
{
97202
"internalType": "contract IDinValidatorStake",
@@ -119,11 +224,57 @@
119224
"inputs": [
120225
{
121226
"internalType": "address",
122-
"name": "_slasher_contract",
227+
"name": "slasherContract",
228+
"type": "address"
229+
}
230+
],
231+
"name": "removeSlasherContract",
232+
"outputs": [],
233+
"stateMutability": "nonpayable",
234+
"type": "function"
235+
},
236+
{
237+
"inputs": [],
238+
"name": "renounceOwnership",
239+
"outputs": [],
240+
"stateMutability": "nonpayable",
241+
"type": "function"
242+
},
243+
{
244+
"inputs": [
245+
{
246+
"internalType": "address",
247+
"name": "newOwner",
248+
"type": "address"
249+
}
250+
],
251+
"name": "transferOwnership",
252+
"outputs": [],
253+
"stateMutability": "nonpayable",
254+
"type": "function"
255+
},
256+
{
257+
"inputs": [
258+
{
259+
"internalType": "uint256",
260+
"name": "newRate",
261+
"type": "uint256"
262+
}
263+
],
264+
"name": "updateDinPerEth",
265+
"outputs": [],
266+
"stateMutability": "nonpayable",
267+
"type": "function"
268+
},
269+
{
270+
"inputs": [
271+
{
272+
"internalType": "address",
273+
"name": "validatorStakeContract",
123274
"type": "address"
124275
}
125276
],
126-
"name": "remove_slasher_contract",
277+
"name": "updateValidatorStakeContract",
127278
"outputs": [],
128279
"stateMutability": "nonpayable",
129280
"type": "function"

0 commit comments

Comments
 (0)