@varun-ai07/covenant-mcp 2.3.5 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auto-verifier.js +15 -15
- package/dist/auto-verifier.js.map +1 -1
- package/dist/cli.js +9 -2
- package/dist/cli.js.map +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
- package/dist/sdk/chunk-3R2WXEXL.mjs +0 -828
- package/dist/sdk/chunk-6ORMNSPN.mjs +0 -842
- package/dist/sdk/chunk-FH2MCRWQ.mjs +0 -8732
- package/dist/sdk/chunk-Y3YIH5K3.mjs +0 -816
- package/dist/sdk/config.d.ts +0 -121
- package/dist/sdk/config.d.ts.map +0 -1
- package/dist/sdk/config.js +0 -196
- package/dist/sdk/config.js.map +0 -1
- package/dist/sdk/contracts/AgentCollective.json +0 -467
- package/dist/sdk/contracts/AgentRegistry.d.ts +0 -144
- package/dist/sdk/contracts/AgentRegistry.d.ts.map +0 -1
- package/dist/sdk/contracts/AgentRegistry.js +0 -92
- package/dist/sdk/contracts/AgentRegistry.js.map +0 -1
- package/dist/sdk/contracts/COVENANTRouter.json +0 -206
- package/dist/sdk/contracts/CovenantArbitration.json +0 -546
- package/dist/sdk/contracts/CovenantAttestation.json +0 -476
- package/dist/sdk/contracts/CovenantEscrow.d.ts +0 -70
- package/dist/sdk/contracts/CovenantEscrow.d.ts.map +0 -1
- package/dist/sdk/contracts/CovenantEscrow.js +0 -3
- package/dist/sdk/contracts/CovenantEscrow.js.map +0 -1
- package/dist/sdk/contracts/CovenantEscrow.json +0 -783
- package/dist/sdk/contracts/CovenantGovernance.json +0 -729
- package/dist/sdk/contracts/CovenantIdentity.d.ts +0 -70
- package/dist/sdk/contracts/CovenantIdentity.d.ts.map +0 -1
- package/dist/sdk/contracts/CovenantIdentity.js +0 -3
- package/dist/sdk/contracts/CovenantIdentity.js.map +0 -1
- package/dist/sdk/contracts/CovenantIdentity.json +0 -800
- package/dist/sdk/contracts/CovenantSettlement.json +0 -609
- package/dist/sdk/contracts/DisputeResolution.d.ts +0 -122
- package/dist/sdk/contracts/DisputeResolution.d.ts.map +0 -1
- package/dist/sdk/contracts/DisputeResolution.js +0 -86
- package/dist/sdk/contracts/DisputeResolution.js.map +0 -1
- package/dist/sdk/contracts/GrantProgram.json +0 -373
- package/dist/sdk/contracts/InsurancePool.d.ts +0 -209
- package/dist/sdk/contracts/InsurancePool.d.ts.map +0 -1
- package/dist/sdk/contracts/InsurancePool.js +0 -153
- package/dist/sdk/contracts/InsurancePool.js.map +0 -1
- package/dist/sdk/contracts/InsurancePool.json +0 -456
- package/dist/sdk/contracts/MultiTokenEscrow.json +0 -435
- package/dist/sdk/contracts/OpenTaskMarket.d.ts +0 -190
- package/dist/sdk/contracts/OpenTaskMarket.d.ts.map +0 -1
- package/dist/sdk/contracts/OpenTaskMarket.js +0 -117
- package/dist/sdk/contracts/OpenTaskMarket.js.map +0 -1
- package/dist/sdk/contracts/ParallelTaskBatch.json +0 -511
- package/dist/sdk/contracts/ReceiptVerifierV2.d.ts +0 -168
- package/dist/sdk/contracts/ReceiptVerifierV2.d.ts.map +0 -1
- package/dist/sdk/contracts/ReceiptVerifierV2.js +0 -109
- package/dist/sdk/contracts/ReceiptVerifierV2.js.map +0 -1
- package/dist/sdk/contracts/RevisionManager.json +0 -489
- package/dist/sdk/contracts/TaskEscrow.d.ts +0 -222
- package/dist/sdk/contracts/TaskEscrow.d.ts.map +0 -1
- package/dist/sdk/contracts/TaskEscrow.js +0 -144
- package/dist/sdk/contracts/TaskEscrow.js.map +0 -1
- package/dist/sdk/contracts/TrainingMarketplace.json +0 -357
- package/dist/sdk/index.d.mts +0 -385
- package/dist/sdk/index.d.ts +0 -35
- package/dist/sdk/index.d.ts.map +0 -1
- package/dist/sdk/index.js +0 -284
- package/dist/sdk/index.js.map +0 -1
- package/dist/sdk/index.mjs +0 -32
- package/dist/sdk/types.d.ts +0 -110
- package/dist/sdk/types.d.ts.map +0 -1
- package/dist/sdk/types.js +0 -17
- package/dist/sdk/types.js.map +0 -1
- package/dist/sdk/v2.d.mts +0 -100
- package/dist/sdk/v2.d.ts +0 -100
- package/dist/sdk/v2.d.ts.map +0 -1
- package/dist/sdk/v2.js +0 -2615
- package/dist/sdk/v2.js.map +0 -1
- package/dist/sdk/v2.mjs +0 -571
- package/dist/sdk/v5-extensions.d.ts +0 -133
- package/dist/sdk/v5-extensions.d.ts.map +0 -1
- package/dist/sdk/v5-extensions.js +0 -993
- package/dist/sdk/v5-extensions.js.map +0 -1
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Minimal ABI for DisputeResolution (v2 extension)
|
|
3
|
-
*/
|
|
4
|
-
export declare const DisputeResolutionABI: readonly [{
|
|
5
|
-
readonly name: "getDispute";
|
|
6
|
-
readonly type: "function";
|
|
7
|
-
readonly stateMutability: "view";
|
|
8
|
-
readonly inputs: readonly [{
|
|
9
|
-
readonly name: "disputeId";
|
|
10
|
-
readonly type: "uint256";
|
|
11
|
-
}];
|
|
12
|
-
readonly outputs: readonly [{
|
|
13
|
-
readonly type: "tuple";
|
|
14
|
-
readonly components: readonly [{
|
|
15
|
-
readonly name: "taskId";
|
|
16
|
-
readonly type: "uint256";
|
|
17
|
-
}, {
|
|
18
|
-
readonly name: "filedBy";
|
|
19
|
-
readonly type: "address";
|
|
20
|
-
}, {
|
|
21
|
-
readonly name: "bondAmount";
|
|
22
|
-
readonly type: "uint256";
|
|
23
|
-
}, {
|
|
24
|
-
readonly name: "votingEndsAt";
|
|
25
|
-
readonly type: "uint256";
|
|
26
|
-
}, {
|
|
27
|
-
readonly name: "resolved";
|
|
28
|
-
readonly type: "bool";
|
|
29
|
-
}, {
|
|
30
|
-
readonly name: "workerWins";
|
|
31
|
-
readonly type: "bool";
|
|
32
|
-
}, {
|
|
33
|
-
readonly name: "workerShare";
|
|
34
|
-
readonly type: "uint256";
|
|
35
|
-
}];
|
|
36
|
-
}];
|
|
37
|
-
}, {
|
|
38
|
-
readonly name: "disputeCounter";
|
|
39
|
-
readonly type: "function";
|
|
40
|
-
readonly stateMutability: "view";
|
|
41
|
-
readonly inputs: readonly [];
|
|
42
|
-
readonly outputs: readonly [{
|
|
43
|
-
readonly name: "";
|
|
44
|
-
readonly type: "uint256";
|
|
45
|
-
}];
|
|
46
|
-
}, {
|
|
47
|
-
readonly name: "DISPUTE_BOND";
|
|
48
|
-
readonly type: "function";
|
|
49
|
-
readonly stateMutability: "view";
|
|
50
|
-
readonly inputs: readonly [];
|
|
51
|
-
readonly outputs: readonly [{
|
|
52
|
-
readonly name: "";
|
|
53
|
-
readonly type: "uint256";
|
|
54
|
-
}];
|
|
55
|
-
}, {
|
|
56
|
-
readonly name: "VOTING_DURATION";
|
|
57
|
-
readonly type: "function";
|
|
58
|
-
readonly stateMutability: "view";
|
|
59
|
-
readonly inputs: readonly [];
|
|
60
|
-
readonly outputs: readonly [{
|
|
61
|
-
readonly name: "";
|
|
62
|
-
readonly type: "uint256";
|
|
63
|
-
}];
|
|
64
|
-
}, {
|
|
65
|
-
readonly name: "fileDispute";
|
|
66
|
-
readonly type: "function";
|
|
67
|
-
readonly stateMutability: "payable";
|
|
68
|
-
readonly inputs: readonly [{
|
|
69
|
-
readonly name: "taskId";
|
|
70
|
-
readonly type: "uint256";
|
|
71
|
-
}];
|
|
72
|
-
readonly outputs: readonly [];
|
|
73
|
-
}, {
|
|
74
|
-
readonly name: "resolveDispute";
|
|
75
|
-
readonly type: "function";
|
|
76
|
-
readonly stateMutability: "nonpayable";
|
|
77
|
-
readonly inputs: readonly [{
|
|
78
|
-
readonly name: "disputeId";
|
|
79
|
-
readonly type: "uint256";
|
|
80
|
-
}, {
|
|
81
|
-
readonly name: "workerWins";
|
|
82
|
-
readonly type: "bool";
|
|
83
|
-
}, {
|
|
84
|
-
readonly name: "workerShare";
|
|
85
|
-
readonly type: "uint256";
|
|
86
|
-
}];
|
|
87
|
-
readonly outputs: readonly [];
|
|
88
|
-
}, {
|
|
89
|
-
readonly name: "DisputeFiled";
|
|
90
|
-
readonly type: "event";
|
|
91
|
-
readonly inputs: readonly [{
|
|
92
|
-
readonly name: "disputeId";
|
|
93
|
-
readonly type: "uint256";
|
|
94
|
-
readonly indexed: true;
|
|
95
|
-
}, {
|
|
96
|
-
readonly name: "taskId";
|
|
97
|
-
readonly type: "uint256";
|
|
98
|
-
readonly indexed: true;
|
|
99
|
-
}, {
|
|
100
|
-
readonly name: "filedBy";
|
|
101
|
-
readonly type: "address";
|
|
102
|
-
readonly indexed: true;
|
|
103
|
-
}];
|
|
104
|
-
}, {
|
|
105
|
-
readonly name: "DisputeResolved";
|
|
106
|
-
readonly type: "event";
|
|
107
|
-
readonly inputs: readonly [{
|
|
108
|
-
readonly name: "disputeId";
|
|
109
|
-
readonly type: "uint256";
|
|
110
|
-
readonly indexed: true;
|
|
111
|
-
}, {
|
|
112
|
-
readonly name: "workerWins";
|
|
113
|
-
readonly type: "bool";
|
|
114
|
-
readonly indexed: false;
|
|
115
|
-
}, {
|
|
116
|
-
readonly name: "workerShare";
|
|
117
|
-
readonly type: "uint256";
|
|
118
|
-
readonly indexed: false;
|
|
119
|
-
}];
|
|
120
|
-
}];
|
|
121
|
-
export type DisputeResolutionABIType = typeof DisputeResolutionABI;
|
|
122
|
-
//# sourceMappingURL=DisputeResolution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DisputeResolution.d.ts","sourceRoot":"","sources":["../../../src/sdk/contracts/DisputeResolution.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiFvB,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,OAAO,oBAAoB,CAAC"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Minimal ABI for DisputeResolution (v2 extension)
|
|
3
|
-
*/
|
|
4
|
-
export const DisputeResolutionABI = [
|
|
5
|
-
// Read functions
|
|
6
|
-
{
|
|
7
|
-
name: "getDispute",
|
|
8
|
-
type: "function",
|
|
9
|
-
stateMutability: "view",
|
|
10
|
-
inputs: [{ name: "disputeId", type: "uint256" }],
|
|
11
|
-
outputs: [
|
|
12
|
-
{
|
|
13
|
-
type: "tuple",
|
|
14
|
-
components: [
|
|
15
|
-
{ name: "taskId", type: "uint256" },
|
|
16
|
-
{ name: "filedBy", type: "address" },
|
|
17
|
-
{ name: "bondAmount", type: "uint256" },
|
|
18
|
-
{ name: "votingEndsAt", type: "uint256" },
|
|
19
|
-
{ name: "resolved", type: "bool" },
|
|
20
|
-
{ name: "workerWins", type: "bool" },
|
|
21
|
-
{ name: "workerShare", type: "uint256" },
|
|
22
|
-
],
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
name: "disputeCounter",
|
|
28
|
-
type: "function",
|
|
29
|
-
stateMutability: "view",
|
|
30
|
-
inputs: [],
|
|
31
|
-
outputs: [{ name: "", type: "uint256" }],
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: "DISPUTE_BOND",
|
|
35
|
-
type: "function",
|
|
36
|
-
stateMutability: "view",
|
|
37
|
-
inputs: [],
|
|
38
|
-
outputs: [{ name: "", type: "uint256" }],
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: "VOTING_DURATION",
|
|
42
|
-
type: "function",
|
|
43
|
-
stateMutability: "view",
|
|
44
|
-
inputs: [],
|
|
45
|
-
outputs: [{ name: "", type: "uint256" }],
|
|
46
|
-
},
|
|
47
|
-
// Write functions
|
|
48
|
-
{
|
|
49
|
-
name: "fileDispute",
|
|
50
|
-
type: "function",
|
|
51
|
-
stateMutability: "payable",
|
|
52
|
-
inputs: [{ name: "taskId", type: "uint256" }],
|
|
53
|
-
outputs: [],
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: "resolveDispute",
|
|
57
|
-
type: "function",
|
|
58
|
-
stateMutability: "nonpayable",
|
|
59
|
-
inputs: [
|
|
60
|
-
{ name: "disputeId", type: "uint256" },
|
|
61
|
-
{ name: "workerWins", type: "bool" },
|
|
62
|
-
{ name: "workerShare", type: "uint256" },
|
|
63
|
-
],
|
|
64
|
-
outputs: [],
|
|
65
|
-
},
|
|
66
|
-
// Events
|
|
67
|
-
{
|
|
68
|
-
name: "DisputeFiled",
|
|
69
|
-
type: "event",
|
|
70
|
-
inputs: [
|
|
71
|
-
{ name: "disputeId", type: "uint256", indexed: true },
|
|
72
|
-
{ name: "taskId", type: "uint256", indexed: true },
|
|
73
|
-
{ name: "filedBy", type: "address", indexed: true },
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: "DisputeResolved",
|
|
78
|
-
type: "event",
|
|
79
|
-
inputs: [
|
|
80
|
-
{ name: "disputeId", type: "uint256", indexed: true },
|
|
81
|
-
{ name: "workerWins", type: "bool", indexed: false },
|
|
82
|
-
{ name: "workerShare", type: "uint256", indexed: false },
|
|
83
|
-
],
|
|
84
|
-
},
|
|
85
|
-
];
|
|
86
|
-
//# sourceMappingURL=DisputeResolution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DisputeResolution.js","sourceRoot":"","sources":["../../../src/sdk/contracts/DisputeResolution.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_format": "hh-sol-artifact-1",
|
|
3
|
-
"contractName": "GrantProgram",
|
|
4
|
-
"sourceName": "contracts/v5/extensions/GrantProgram.sol",
|
|
5
|
-
"abi": [
|
|
6
|
-
{
|
|
7
|
-
"inputs": [],
|
|
8
|
-
"stateMutability": "nonpayable",
|
|
9
|
-
"type": "constructor"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"inputs": [],
|
|
13
|
-
"name": "AlreadyDisbursed",
|
|
14
|
-
"type": "error"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"inputs": [],
|
|
18
|
-
"name": "AlreadyVoted",
|
|
19
|
-
"type": "error"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"inputs": [],
|
|
23
|
-
"name": "GrantNotActive",
|
|
24
|
-
"type": "error"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"inputs": [],
|
|
28
|
-
"name": "InsufficientTreasury",
|
|
29
|
-
"type": "error"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"inputs": [],
|
|
33
|
-
"name": "InvalidAddress",
|
|
34
|
-
"type": "error"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"inputs": [],
|
|
38
|
-
"name": "InvalidAmount",
|
|
39
|
-
"type": "error"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"inputs": [],
|
|
43
|
-
"name": "NotApproved",
|
|
44
|
-
"type": "error"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"anonymous": false,
|
|
48
|
-
"inputs": [
|
|
49
|
-
{
|
|
50
|
-
"indexed": true,
|
|
51
|
-
"internalType": "uint256",
|
|
52
|
-
"name": "grantId",
|
|
53
|
-
"type": "uint256"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"indexed": true,
|
|
57
|
-
"internalType": "address",
|
|
58
|
-
"name": "applicant",
|
|
59
|
-
"type": "address"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"indexed": false,
|
|
63
|
-
"internalType": "uint256",
|
|
64
|
-
"name": "amount",
|
|
65
|
-
"type": "uint256"
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"name": "GrantApplied",
|
|
69
|
-
"type": "event"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"anonymous": false,
|
|
73
|
-
"inputs": [
|
|
74
|
-
{
|
|
75
|
-
"indexed": true,
|
|
76
|
-
"internalType": "uint256",
|
|
77
|
-
"name": "grantId",
|
|
78
|
-
"type": "uint256"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"indexed": true,
|
|
82
|
-
"internalType": "address",
|
|
83
|
-
"name": "applicant",
|
|
84
|
-
"type": "address"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"indexed": false,
|
|
88
|
-
"internalType": "uint256",
|
|
89
|
-
"name": "amount",
|
|
90
|
-
"type": "uint256"
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
"name": "GrantDisbursed",
|
|
94
|
-
"type": "event"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"anonymous": false,
|
|
98
|
-
"inputs": [
|
|
99
|
-
{
|
|
100
|
-
"indexed": true,
|
|
101
|
-
"internalType": "uint256",
|
|
102
|
-
"name": "grantId",
|
|
103
|
-
"type": "uint256"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"indexed": true,
|
|
107
|
-
"internalType": "address",
|
|
108
|
-
"name": "voter",
|
|
109
|
-
"type": "address"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"indexed": false,
|
|
113
|
-
"internalType": "bool",
|
|
114
|
-
"name": "inFavor",
|
|
115
|
-
"type": "bool"
|
|
116
|
-
}
|
|
117
|
-
],
|
|
118
|
-
"name": "GrantVoted",
|
|
119
|
-
"type": "event"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"anonymous": false,
|
|
123
|
-
"inputs": [
|
|
124
|
-
{
|
|
125
|
-
"indexed": false,
|
|
126
|
-
"internalType": "uint8",
|
|
127
|
-
"name": "version",
|
|
128
|
-
"type": "uint8"
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
"name": "Initialized",
|
|
132
|
-
"type": "event"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"anonymous": false,
|
|
136
|
-
"inputs": [
|
|
137
|
-
{
|
|
138
|
-
"indexed": true,
|
|
139
|
-
"internalType": "address",
|
|
140
|
-
"name": "previousOwner",
|
|
141
|
-
"type": "address"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"indexed": true,
|
|
145
|
-
"internalType": "address",
|
|
146
|
-
"name": "newOwner",
|
|
147
|
-
"type": "address"
|
|
148
|
-
}
|
|
149
|
-
],
|
|
150
|
-
"name": "OwnershipTransferred",
|
|
151
|
-
"type": "event"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"inputs": [
|
|
155
|
-
{
|
|
156
|
-
"internalType": "uint256",
|
|
157
|
-
"name": "amount",
|
|
158
|
-
"type": "uint256"
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
"name": "applyGrant",
|
|
162
|
-
"outputs": [
|
|
163
|
-
{
|
|
164
|
-
"internalType": "uint256",
|
|
165
|
-
"name": "",
|
|
166
|
-
"type": "uint256"
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
"stateMutability": "nonpayable",
|
|
170
|
-
"type": "function"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
"inputs": [],
|
|
174
|
-
"name": "deposit",
|
|
175
|
-
"outputs": [],
|
|
176
|
-
"stateMutability": "payable",
|
|
177
|
-
"type": "function"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"inputs": [
|
|
181
|
-
{
|
|
182
|
-
"internalType": "uint256",
|
|
183
|
-
"name": "grantId",
|
|
184
|
-
"type": "uint256"
|
|
185
|
-
}
|
|
186
|
-
],
|
|
187
|
-
"name": "disburseGrant",
|
|
188
|
-
"outputs": [],
|
|
189
|
-
"stateMutability": "nonpayable",
|
|
190
|
-
"type": "function"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"inputs": [
|
|
194
|
-
{
|
|
195
|
-
"internalType": "address",
|
|
196
|
-
"name": "to",
|
|
197
|
-
"type": "address"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"internalType": "uint256",
|
|
201
|
-
"name": "amount",
|
|
202
|
-
"type": "uint256"
|
|
203
|
-
}
|
|
204
|
-
],
|
|
205
|
-
"name": "emergencyWithdraw",
|
|
206
|
-
"outputs": [],
|
|
207
|
-
"stateMutability": "nonpayable",
|
|
208
|
-
"type": "function"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"inputs": [],
|
|
212
|
-
"name": "grantCount",
|
|
213
|
-
"outputs": [
|
|
214
|
-
{
|
|
215
|
-
"internalType": "uint256",
|
|
216
|
-
"name": "",
|
|
217
|
-
"type": "uint256"
|
|
218
|
-
}
|
|
219
|
-
],
|
|
220
|
-
"stateMutability": "view",
|
|
221
|
-
"type": "function"
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"inputs": [
|
|
225
|
-
{
|
|
226
|
-
"internalType": "uint256",
|
|
227
|
-
"name": "",
|
|
228
|
-
"type": "uint256"
|
|
229
|
-
}
|
|
230
|
-
],
|
|
231
|
-
"name": "grants",
|
|
232
|
-
"outputs": [
|
|
233
|
-
{
|
|
234
|
-
"internalType": "address",
|
|
235
|
-
"name": "applicant",
|
|
236
|
-
"type": "address"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"internalType": "uint256",
|
|
240
|
-
"name": "amount",
|
|
241
|
-
"type": "uint256"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"internalType": "bool",
|
|
245
|
-
"name": "approved",
|
|
246
|
-
"type": "bool"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"internalType": "bool",
|
|
250
|
-
"name": "disbursed",
|
|
251
|
-
"type": "bool"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"internalType": "uint256",
|
|
255
|
-
"name": "votesFor",
|
|
256
|
-
"type": "uint256"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"internalType": "uint256",
|
|
260
|
-
"name": "votesAgainst",
|
|
261
|
-
"type": "uint256"
|
|
262
|
-
}
|
|
263
|
-
],
|
|
264
|
-
"stateMutability": "view",
|
|
265
|
-
"type": "function"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"inputs": [],
|
|
269
|
-
"name": "initialize",
|
|
270
|
-
"outputs": [],
|
|
271
|
-
"stateMutability": "nonpayable",
|
|
272
|
-
"type": "function"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"inputs": [],
|
|
276
|
-
"name": "owner",
|
|
277
|
-
"outputs": [
|
|
278
|
-
{
|
|
279
|
-
"internalType": "address",
|
|
280
|
-
"name": "",
|
|
281
|
-
"type": "address"
|
|
282
|
-
}
|
|
283
|
-
],
|
|
284
|
-
"stateMutability": "view",
|
|
285
|
-
"type": "function"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"inputs": [],
|
|
289
|
-
"name": "renounceOwnership",
|
|
290
|
-
"outputs": [],
|
|
291
|
-
"stateMutability": "nonpayable",
|
|
292
|
-
"type": "function"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"inputs": [
|
|
296
|
-
{
|
|
297
|
-
"internalType": "uint256",
|
|
298
|
-
"name": "_period",
|
|
299
|
-
"type": "uint256"
|
|
300
|
-
}
|
|
301
|
-
],
|
|
302
|
-
"name": "setVotingPeriod",
|
|
303
|
-
"outputs": [],
|
|
304
|
-
"stateMutability": "nonpayable",
|
|
305
|
-
"type": "function"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"inputs": [
|
|
309
|
-
{
|
|
310
|
-
"internalType": "address",
|
|
311
|
-
"name": "newOwner",
|
|
312
|
-
"type": "address"
|
|
313
|
-
}
|
|
314
|
-
],
|
|
315
|
-
"name": "transferOwnership",
|
|
316
|
-
"outputs": [],
|
|
317
|
-
"stateMutability": "nonpayable",
|
|
318
|
-
"type": "function"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
"inputs": [],
|
|
322
|
-
"name": "treasury",
|
|
323
|
-
"outputs": [
|
|
324
|
-
{
|
|
325
|
-
"internalType": "uint256",
|
|
326
|
-
"name": "",
|
|
327
|
-
"type": "uint256"
|
|
328
|
-
}
|
|
329
|
-
],
|
|
330
|
-
"stateMutability": "view",
|
|
331
|
-
"type": "function"
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
"inputs": [
|
|
335
|
-
{
|
|
336
|
-
"internalType": "uint256",
|
|
337
|
-
"name": "grantId",
|
|
338
|
-
"type": "uint256"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"internalType": "bool",
|
|
342
|
-
"name": "inFavor",
|
|
343
|
-
"type": "bool"
|
|
344
|
-
}
|
|
345
|
-
],
|
|
346
|
-
"name": "voteGrant",
|
|
347
|
-
"outputs": [],
|
|
348
|
-
"stateMutability": "nonpayable",
|
|
349
|
-
"type": "function"
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
"inputs": [],
|
|
353
|
-
"name": "votingPeriod",
|
|
354
|
-
"outputs": [
|
|
355
|
-
{
|
|
356
|
-
"internalType": "uint256",
|
|
357
|
-
"name": "",
|
|
358
|
-
"type": "uint256"
|
|
359
|
-
}
|
|
360
|
-
],
|
|
361
|
-
"stateMutability": "view",
|
|
362
|
-
"type": "function"
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
"stateMutability": "payable",
|
|
366
|
-
"type": "receive"
|
|
367
|
-
}
|
|
368
|
-
],
|
|
369
|
-
"bytecode": "0x6080806040523461001d5762093a80609a55610a0090816100238239f35b600080fdfe6080604081815260049081361015610022575b505050361561002057600080fd5b005b600092833560e01c90816302a251a3146107ff575080630c0debea1461079357806361d027b31461077457806363e39f7f146105e4578063715018a6146105965780637ed8904f146104645780638129fc1c146103325780638da5cb5b1461030957806395ccea6714610297578063cab4267214610278578063d0e30db014610243578063ea0217cf1461021d578063f2fde38b1461018b5763fe7822e6036100125734610187578060031936011261018757813590602435928315159384810361018357838652609760205282862080549091906001600160a01b0316158015610175575b61016257156101505760039150016101208154610896565b90555b519182527f8e4d6a093523bcf947fa3b30e33b713a9df2ce480a8b0d54a85e9aaa4a64f01960203393a380f35b0161015b8154610896565b9055610123565b8351600162fce84b60e01b031981528390fd5b5060ff600283015416610108565b8580fd5b8280fd5b509034610187576020366003190112610187576101a661081b565b916101af6108bb565b6001600160a01b038316156101cb57836101c884610913565b80f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b50503461023f57602036600319011261023f576102386108bb565b35609a5580f35b5080fd5b50508160031936011261023f5760995490348201809211610265575060995580f35b634e487b7160e01b835260119052602482fd5b83823461023f578160031936011261023f576020906098549051908152f35b5034610187578060031936011261018757828080806102b461081b565b6102bc6108bb565b602435905af16102ca610836565b50156102d4578280f35b906020606492519162461bcd60e51b8352820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b6044820152fd5b83823461023f578160031936011261023f5760335490516001600160a01b039091168152602090f35b509034610187578260031936011261018757825460ff8160081c161591828093610457575b8015610440575b156103e6575060ff1981166001178455816103d5575b5061038e60ff845460081c166103898161094a565b61094a565b61039733610913565b61039f575080f35b60207f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989161ff001984541684555160018152a180f35b61ffff191661010117835538610374565b608490602085519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b50303b15801561035e5750600160ff83161461035e565b50600160ff831610610357565b5034610187576020366003190112610187578135918215801561058b575b61057d57610491609854610896565b6098819055825160c0810195909291906001600160401b0387118488101761056a57602096855233845286840186815285850190828252606086019083825287608088019480865260a0890196818852815260978c52209660018060a01b0390511660018060a01b031988541617875551600187015560028601915115159060ff61ff0084549251151560081b1692169061ffff19161717905551600384015551910155609854918151908152827f1295d33624eba43c235efbabd3058e9ce9cba1a6fe29e5c229ca8e5f8e24edba853393a351908152f35b634e487b7160e01b815260418352602490fd5b905163162908e360e11b8152fd5b506099548311610482565b83346105e157806003193601126105e1576105af6108bb565b603380546001600160a01b0319811690915581906001600160a01b03166000805160206109ab8339815191528280a380f35b80fd5b5034610187576020366003190112610187578135906106016108bb565b600260655414610732576002606555818452609760205280842092600284019384549460ff8616158015610725575b6107155760995490600183019687548093106107055761ff0019166101001790556099549081039081116106f25760995560018060a01b039186808080868654168a54905af161067e610836565b50156106bd5750916020917f8933b9b5b0399b53eb2382f20d540f3f3d374e82082f838159997c3e38d4188293541694549051908152a3600160655580f35b606490602085519162461bcd60e51b8352820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152fd5b634e487b7160e01b875260118352602487fd5b85516310162d2d60e01b81528590fd5b835163dd291bd160e01b81528390fd5b5060ff8660081c16610630565b5162461bcd60e51b8152602081840152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b83823461023f578160031936011261023f576020906099549051908152f35b5034610187576020366003190112610187578060c0938335815260976020522060ff60018060a01b03825416936001830154936002840154916003850154940154948151968752602087015282821615159086015260081c1615156060840152608083015260a0820152f35b84903461023f578160031936011261023f57602090609a548152f35b600435906001600160a01b038216820361083157565b600080fd5b3d15610891576001600160401b03903d82811161087b5760405192601f8201601f19908116603f011684019081118482101761087b5760405282523d6000602084013e565b634e487b7160e01b600052604160045260246000fd5b606090565b60001981146108a55760010190565b634e487b7160e01b600052601160045260246000fd5b6033546001600160a01b031633036108cf57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b603380546001600160a01b039283166001600160a01b0319821681179092559091166000805160206109ab833981519152600080a3565b1561095157565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fdfe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a26469706673582212204dc8e13dc2a8cd86a0e776d47f19e378b05375e7ab4613faf76e9411559744de64736f6c63430008180033",
|
|
370
|
-
"deployedBytecode": "0x6080604081815260049081361015610022575b505050361561002057600080fd5b005b600092833560e01c90816302a251a3146107ff575080630c0debea1461079357806361d027b31461077457806363e39f7f146105e4578063715018a6146105965780637ed8904f146104645780638129fc1c146103325780638da5cb5b1461030957806395ccea6714610297578063cab4267214610278578063d0e30db014610243578063ea0217cf1461021d578063f2fde38b1461018b5763fe7822e6036100125734610187578060031936011261018757813590602435928315159384810361018357838652609760205282862080549091906001600160a01b0316158015610175575b61016257156101505760039150016101208154610896565b90555b519182527f8e4d6a093523bcf947fa3b30e33b713a9df2ce480a8b0d54a85e9aaa4a64f01960203393a380f35b0161015b8154610896565b9055610123565b8351600162fce84b60e01b031981528390fd5b5060ff600283015416610108565b8580fd5b8280fd5b509034610187576020366003190112610187576101a661081b565b916101af6108bb565b6001600160a01b038316156101cb57836101c884610913565b80f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b50503461023f57602036600319011261023f576102386108bb565b35609a5580f35b5080fd5b50508160031936011261023f5760995490348201809211610265575060995580f35b634e487b7160e01b835260119052602482fd5b83823461023f578160031936011261023f576020906098549051908152f35b5034610187578060031936011261018757828080806102b461081b565b6102bc6108bb565b602435905af16102ca610836565b50156102d4578280f35b906020606492519162461bcd60e51b8352820152600f60248201526e1dda5d1a191c985dc819985a5b1959608a1b6044820152fd5b83823461023f578160031936011261023f5760335490516001600160a01b039091168152602090f35b509034610187578260031936011261018757825460ff8160081c161591828093610457575b8015610440575b156103e6575060ff1981166001178455816103d5575b5061038e60ff845460081c166103898161094a565b61094a565b61039733610913565b61039f575080f35b60207f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989161ff001984541684555160018152a180f35b61ffff191661010117835538610374565b608490602085519162461bcd60e51b8352820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152fd5b50303b15801561035e5750600160ff83161461035e565b50600160ff831610610357565b5034610187576020366003190112610187578135918215801561058b575b61057d57610491609854610896565b6098819055825160c0810195909291906001600160401b0387118488101761056a57602096855233845286840186815285850190828252606086019083825287608088019480865260a0890196818852815260978c52209660018060a01b0390511660018060a01b031988541617875551600187015560028601915115159060ff61ff0084549251151560081b1692169061ffff19161717905551600384015551910155609854918151908152827f1295d33624eba43c235efbabd3058e9ce9cba1a6fe29e5c229ca8e5f8e24edba853393a351908152f35b634e487b7160e01b815260418352602490fd5b905163162908e360e11b8152fd5b506099548311610482565b83346105e157806003193601126105e1576105af6108bb565b603380546001600160a01b0319811690915581906001600160a01b03166000805160206109ab8339815191528280a380f35b80fd5b5034610187576020366003190112610187578135906106016108bb565b600260655414610732576002606555818452609760205280842092600284019384549460ff8616158015610725575b6107155760995490600183019687548093106107055761ff0019166101001790556099549081039081116106f25760995560018060a01b039186808080868654168a54905af161067e610836565b50156106bd5750916020917f8933b9b5b0399b53eb2382f20d540f3f3d374e82082f838159997c3e38d4188293541694549051908152a3600160655580f35b606490602085519162461bcd60e51b8352820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152fd5b634e487b7160e01b875260118352602487fd5b85516310162d2d60e01b81528590fd5b835163dd291bd160e01b81528390fd5b5060ff8660081c16610630565b5162461bcd60e51b8152602081840152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b83823461023f578160031936011261023f576020906099549051908152f35b5034610187576020366003190112610187578060c0938335815260976020522060ff60018060a01b03825416936001830154936002840154916003850154940154948151968752602087015282821615159086015260081c1615156060840152608083015260a0820152f35b84903461023f578160031936011261023f57602090609a548152f35b600435906001600160a01b038216820361083157565b600080fd5b3d15610891576001600160401b03903d82811161087b5760405192601f8201601f19908116603f011684019081118482101761087b5760405282523d6000602084013e565b634e487b7160e01b600052604160045260246000fd5b606090565b60001981146108a55760010190565b634e487b7160e01b600052601160045260246000fd5b6033546001600160a01b031633036108cf57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b603380546001600160a01b039283166001600160a01b0319821681179092559091166000805160206109ab833981519152600080a3565b1561095157565b60405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608490fdfe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a26469706673582212204dc8e13dc2a8cd86a0e776d47f19e378b05375e7ab4613faf76e9411559744de64736f6c63430008180033",
|
|
371
|
-
"linkReferences": {},
|
|
372
|
-
"deployedLinkReferences": {}
|
|
373
|
-
}
|