@linealqorum/js 0.0.0-stage → 0.0.1
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/package.json +16 -5
- package/src/artifact-service.js +94 -0
- package/src/artifacts/artifacts.d.ts +13 -0
- package/src/artifacts/build-info/solc-0_8_30-e703f2fe389268a2246aec69fef2175182b7b532.json +392 -0
- package/src/artifacts/build-info/solc-0_8_30-e703f2fe389268a2246aec69fef2175182b7b532.output.json +1 -0
- package/src/artifacts/contracts/Counter.sol/Counter.json +60 -0
- package/src/artifacts/contracts/Counter.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/core/BaseAccount.sol/BaseAccount.json +116 -0
- package/src/artifacts/contracts/core/BaseAccount.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/core/BasePaymaster.sol/BasePaymaster.json +281 -0
- package/src/artifacts/contracts/core/BasePaymaster.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/core/EntryPoint.sol/EntryPoint.json +1019 -0
- package/src/artifacts/contracts/core/EntryPoint.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/core/EntryPointSimulations.sol/EntryPointSimulations.json +1324 -0
- package/src/artifacts/contracts/core/EntryPointSimulations.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/core/Groth16Verifier.sol/Groth16Verifier.json +48 -0
- package/src/artifacts/contracts/core/Groth16Verifier.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/core/Helpers.sol/artifacts.d.ts +0 -0
- package/src/artifacts/contracts/core/LinealDeployer.sol/LinealDeployer.json +51 -0
- package/src/artifacts/contracts/core/LinealDeployer.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/core/NonceManager.sol/NonceManager.json +75 -0
- package/src/artifacts/contracts/core/NonceManager.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/core/SenderCreator.sol/SenderCreator.json +33 -0
- package/src/artifacts/contracts/core/SenderCreator.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/core/StakeManager.sol/StakeManager.json +299 -0
- package/src/artifacts/contracts/core/StakeManager.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/core/UserOperationLib.sol/UserOperationLib.json +53 -0
- package/src/artifacts/contracts/core/UserOperationLib.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/Liquidity/LinealDex.sol/LinealDex.json +530 -0
- package/src/artifacts/contracts/economy/Liquidity/LinealDex.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/Liquidity/LinealLiquidity.sol/LinealLiquidity.json +876 -0
- package/src/artifacts/contracts/economy/Liquidity/LinealLiquidity.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/Liquidity/LinealMilestones.sol/ILinealCitizens.json +46 -0
- package/src/artifacts/contracts/economy/Liquidity/LinealMilestones.sol/LinealMilestones.json +986 -0
- package/src/artifacts/contracts/economy/Liquidity/LinealMilestones.sol/artifacts.d.ts +43 -0
- package/src/artifacts/contracts/economy/Liquidity/LinealSeed.sol/LinealSeed.json +808 -0
- package/src/artifacts/contracts/economy/Liquidity/LinealSeed.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/accounts/LinealAccount.sol/LinealAccount.json +591 -0
- package/src/artifacts/contracts/economy/accounts/LinealAccount.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/accounts/LinealAccountFactory.sol/LinealAccountFactory.json +101 -0
- package/src/artifacts/contracts/economy/accounts/LinealAccountFactory.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/accounts/callback/TokenCallbackHandler.sol/TokenCallbackHandler.json +145 -0
- package/src/artifacts/contracts/economy/accounts/callback/TokenCallbackHandler.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/banks/LinealBank.sol/IBankDeposit.json +56 -0
- package/src/artifacts/contracts/economy/banks/LinealBank.sol/ICitizensAccounts.json +33 -0
- package/src/artifacts/contracts/economy/banks/LinealBank.sol/IInstitutionIdentity.json +27 -0
- package/src/artifacts/contracts/economy/banks/LinealBank.sol/ILinealTransactions.json +53 -0
- package/src/artifacts/contracts/economy/banks/LinealBank.sol/LinealBank.json +1072 -0
- package/src/artifacts/contracts/economy/banks/LinealBank.sol/artifacts.d.ts +91 -0
- package/src/artifacts/contracts/economy/banks/LinealQantum.sol/LinealQantum.json +496 -0
- package/src/artifacts/contracts/economy/banks/LinealQantum.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/banks/LinealTransaction.sol/ILinealBank.json +27 -0
- package/src/artifacts/contracts/economy/banks/LinealTransaction.sol/LinealTransactions.json +1352 -0
- package/src/artifacts/contracts/economy/banks/LinealTransaction.sol/artifacts.d.ts +43 -0
- package/src/artifacts/contracts/economy/interfaces/ICLPStablecoin.sol/ICLPStablecoin.json +459 -0
- package/src/artifacts/contracts/economy/interfaces/ICLPStablecoin.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/interfaces/IDEXRouter.sol/IDEXRouter.json +117 -0
- package/src/artifacts/contracts/economy/interfaces/IDEXRouter.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/interfaces/IFeeSplitter.sol/IFeeSplitter.json +40 -0
- package/src/artifacts/contracts/economy/interfaces/IFeeSplitter.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/interfaces/IIncomeToken.sol/IIncomeToken.json +197 -0
- package/src/artifacts/contracts/economy/interfaces/IIncomeToken.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/interfaces/ILinealIdentity.sol/ILinealIdentity.json +90 -0
- package/src/artifacts/contracts/economy/interfaces/ILinealIdentity.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/interfaces/IMetricsAdapter.sol/IMetricsAdapter.json +32 -0
- package/src/artifacts/contracts/economy/interfaces/IMetricsAdapter.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/interfaces/IQorumsToken.sol/IQorumsToken.json +267 -0
- package/src/artifacts/contracts/economy/interfaces/IQorumsToken.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/paymasters/LinealPaymaster.sol/LinealPaymaster.json +487 -0
- package/src/artifacts/contracts/economy/paymasters/LinealPaymaster.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/paymasters/LinealRouter.sol/LinealRouter.json +945 -0
- package/src/artifacts/contracts/economy/paymasters/LinealRouter.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/economy/token/LinealToken.sol/LinealToken.json +1567 -0
- package/src/artifacts/contracts/economy/token/LinealToken.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/governance/LinealQorum.sol/LinealQorum.json +567 -0
- package/src/artifacts/contracts/governance/LinealQorum.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/institution/LinealCitizens.sol/LinealCitizens.json +986 -0
- package/src/artifacts/contracts/institution/LinealCitizens.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/institution/LinealInstitution.sol/LinealInstitution.json +1607 -0
- package/src/artifacts/contracts/institution/LinealInstitution.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/institution/LinealTender.sol/LinealTender.json +1055 -0
- package/src/artifacts/contracts/institution/LinealTender.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/interfaces/IAccount.sol/IAccount.json +90 -0
- package/src/artifacts/contracts/interfaces/IAccount.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/interfaces/IAccountExecute.sol/IAccountExecute.json +79 -0
- package/src/artifacts/contracts/interfaces/IAccountExecute.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/interfaces/IAggregator.sol/IAggregator.json +211 -0
- package/src/artifacts/contracts/interfaces/IAggregator.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +809 -0
- package/src/artifacts/contracts/interfaces/IEntryPoint.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/interfaces/IEntryPointSimulations.sol/IEntryPointSimulations.json +1097 -0
- package/src/artifacts/contracts/interfaces/IEntryPointSimulations.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/interfaces/IMetricsAdapter.sol/IMetricsAdapter.json +32 -0
- package/src/artifacts/contracts/interfaces/IMetricsAdapter.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/interfaces/INonceManager.sol/INonceManager.json +51 -0
- package/src/artifacts/contracts/interfaces/INonceManager.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/interfaces/IPaymaster.sol/IPaymaster.json +123 -0
- package/src/artifacts/contracts/interfaces/IPaymaster.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/interfaces/IQorumsToken.sol/IQorumsToken.json +267 -0
- package/src/artifacts/contracts/interfaces/IQorumsToken.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/interfaces/IStakeManager.sol/IStakeManager.json +256 -0
- package/src/artifacts/contracts/interfaces/IStakeManager.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/interfaces/PackedUserOperation.sol/artifacts.d.ts +0 -0
- package/src/artifacts/contracts/kernel/LinealEconomy.sol/LinealEconomicKernel.json +743 -0
- package/src/artifacts/contracts/kernel/LinealEconomy.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/social/LinealStorage.sol/PostBoard.json +1317 -0
- package/src/artifacts/contracts/social/LinealStorage.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/test.sol/LinealSecureStorage.json +634 -0
- package/src/artifacts/contracts/test.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/utils/Exec.sol/Exec.json +13 -0
- package/src/artifacts/contracts/utils/Exec.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/utils/IOracle.sol/IOracle.json +60 -0
- package/src/artifacts/contracts/utils/IOracle.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/utils/OracleHelper.sol/OracleHelper.json +84 -0
- package/src/artifacts/contracts/utils/OracleHelper.sol/artifacts.d.ts +27 -0
- package/src/artifacts/contracts/utils/UniswapHelper.sol/UniswapHelper.json +132 -0
- package/src/artifacts/contracts/utils/UniswapHelper.sol/artifacts.d.ts +27 -0
- package/src/contract-service.js +53 -0
- package/src/database/mongodb.js +181 -0
- package/src/index.js +11 -0
- package/src/middleware/actionMiddleware.js +17 -0
- package/src/middleware/actionsMiddleware.js +18 -0
- package/src/middleware/authMachineMiddleware.js +34 -0
- package/src/middleware/middleware.js +36 -0
- package/src/middleware/onlyQorum.js +57 -0
- package/src/middleware/onlyServer.js +36 -0
- package/src/middleware/readStateMiddleware.js +19 -0
- package/src/middleware/unauthorizeMiddleware.js +37 -0
- package/src/middleware/userOperation.js +25 -0
- package/src/operation-service.js +71 -0
- package/src/schemas/abiFolderSchema.js +9 -0
- package/src/schemas/abiSchema.js +16 -0
- package/src/schemas/applicationSchema.js +32 -0
- package/src/schemas/authorizedWalletSchema.js +9 -0
- package/src/schemas/deploySchema.js +11 -0
- package/src/schemas/expenseSchema.js +17 -0
- package/src/schemas/feeSchema.js +17 -0
- package/src/schemas/fixedExpenseSchema.js +18 -0
- package/src/schemas/fixedFeeSchema.js +17 -0
- package/src/schemas/identitySchema.js +33 -0
- package/src/schemas/institutionSchema.js +28 -0
- package/src/schemas/onlyQorumSchema.js +27 -0
- package/src/schemas/onlyServerSchema.js +26 -0
- package/src/schemas/serverWalletSchema.js +9 -0
- package/src/schemas/subaccountSchema.js +31 -0
- package/src/schemas/tenderSchema.js +36 -0
- package/src/schemas/transactionSchema.js +29 -0
- package/src/schemas/userOperationSchema.js +15 -0
- package/src/schemas/valuationSchema.js +10 -0
- package/src/signer-client.js +280 -0
- package/README.md +0 -3
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh3-artifact-1",
|
|
3
|
+
"contractName": "ICLPStablecoin",
|
|
4
|
+
"sourceName": "contracts/economy/interfaces/ICLPStablecoin.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"anonymous": false,
|
|
8
|
+
"inputs": [
|
|
9
|
+
{
|
|
10
|
+
"indexed": true,
|
|
11
|
+
"internalType": "address",
|
|
12
|
+
"name": "owner",
|
|
13
|
+
"type": "address"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"indexed": true,
|
|
17
|
+
"internalType": "address",
|
|
18
|
+
"name": "spender",
|
|
19
|
+
"type": "address"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"indexed": false,
|
|
23
|
+
"internalType": "uint256",
|
|
24
|
+
"name": "value",
|
|
25
|
+
"type": "uint256"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"name": "Approval",
|
|
29
|
+
"type": "event"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"anonymous": false,
|
|
33
|
+
"inputs": [
|
|
34
|
+
{
|
|
35
|
+
"indexed": true,
|
|
36
|
+
"internalType": "address",
|
|
37
|
+
"name": "from",
|
|
38
|
+
"type": "address"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"indexed": true,
|
|
42
|
+
"internalType": "address",
|
|
43
|
+
"name": "to",
|
|
44
|
+
"type": "address"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"indexed": false,
|
|
48
|
+
"internalType": "uint256",
|
|
49
|
+
"name": "value",
|
|
50
|
+
"type": "uint256"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"name": "Transfer",
|
|
54
|
+
"type": "event"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"inputs": [
|
|
58
|
+
{
|
|
59
|
+
"internalType": "address",
|
|
60
|
+
"name": "owner",
|
|
61
|
+
"type": "address"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"internalType": "address",
|
|
65
|
+
"name": "spender",
|
|
66
|
+
"type": "address"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"name": "allowance",
|
|
70
|
+
"outputs": [
|
|
71
|
+
{
|
|
72
|
+
"internalType": "uint256",
|
|
73
|
+
"name": "",
|
|
74
|
+
"type": "uint256"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"stateMutability": "view",
|
|
78
|
+
"type": "function"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"inputs": [
|
|
82
|
+
{
|
|
83
|
+
"internalType": "address",
|
|
84
|
+
"name": "spender",
|
|
85
|
+
"type": "address"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"internalType": "uint256",
|
|
89
|
+
"name": "value",
|
|
90
|
+
"type": "uint256"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"name": "approve",
|
|
94
|
+
"outputs": [
|
|
95
|
+
{
|
|
96
|
+
"internalType": "bool",
|
|
97
|
+
"name": "",
|
|
98
|
+
"type": "bool"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"stateMutability": "nonpayable",
|
|
102
|
+
"type": "function"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"inputs": [
|
|
106
|
+
{
|
|
107
|
+
"internalType": "address",
|
|
108
|
+
"name": "account",
|
|
109
|
+
"type": "address"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"name": "balanceOf",
|
|
113
|
+
"outputs": [
|
|
114
|
+
{
|
|
115
|
+
"internalType": "uint256",
|
|
116
|
+
"name": "",
|
|
117
|
+
"type": "uint256"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"stateMutability": "view",
|
|
121
|
+
"type": "function"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"inputs": [
|
|
125
|
+
{
|
|
126
|
+
"internalType": "address",
|
|
127
|
+
"name": "from",
|
|
128
|
+
"type": "address"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"internalType": "uint256",
|
|
132
|
+
"name": "amount",
|
|
133
|
+
"type": "uint256"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"internalType": "bytes32",
|
|
137
|
+
"name": "withdrawalReference",
|
|
138
|
+
"type": "bytes32"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"internalType": "string",
|
|
142
|
+
"name": "_secret",
|
|
143
|
+
"type": "string"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"name": "burn",
|
|
147
|
+
"outputs": [],
|
|
148
|
+
"stateMutability": "nonpayable",
|
|
149
|
+
"type": "function"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"inputs": [],
|
|
153
|
+
"name": "getCirculatingSupply",
|
|
154
|
+
"outputs": [
|
|
155
|
+
{
|
|
156
|
+
"internalType": "uint256",
|
|
157
|
+
"name": "",
|
|
158
|
+
"type": "uint256"
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"stateMutability": "view",
|
|
162
|
+
"type": "function"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"inputs": [],
|
|
166
|
+
"name": "getDailyMintBurnVolume",
|
|
167
|
+
"outputs": [
|
|
168
|
+
{
|
|
169
|
+
"internalType": "uint256",
|
|
170
|
+
"name": "minted",
|
|
171
|
+
"type": "uint256"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"internalType": "uint256",
|
|
175
|
+
"name": "burned",
|
|
176
|
+
"type": "uint256"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"stateMutability": "view",
|
|
180
|
+
"type": "function"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"inputs": [
|
|
184
|
+
{
|
|
185
|
+
"internalType": "address",
|
|
186
|
+
"name": "account",
|
|
187
|
+
"type": "address"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"name": "getDailyTransferVolume",
|
|
191
|
+
"outputs": [
|
|
192
|
+
{
|
|
193
|
+
"internalType": "uint256",
|
|
194
|
+
"name": "",
|
|
195
|
+
"type": "uint256"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"stateMutability": "view",
|
|
199
|
+
"type": "function"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"inputs": [
|
|
203
|
+
{
|
|
204
|
+
"internalType": "address",
|
|
205
|
+
"name": "account",
|
|
206
|
+
"type": "address"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"name": "isBlacklisted",
|
|
210
|
+
"outputs": [
|
|
211
|
+
{
|
|
212
|
+
"internalType": "bool",
|
|
213
|
+
"name": "",
|
|
214
|
+
"type": "bool"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"stateMutability": "view",
|
|
218
|
+
"type": "function"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"inputs": [
|
|
222
|
+
{
|
|
223
|
+
"internalType": "address",
|
|
224
|
+
"name": "account",
|
|
225
|
+
"type": "address"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"name": "isWhitelisted",
|
|
229
|
+
"outputs": [
|
|
230
|
+
{
|
|
231
|
+
"internalType": "bool",
|
|
232
|
+
"name": "",
|
|
233
|
+
"type": "bool"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"stateMutability": "view",
|
|
237
|
+
"type": "function"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"inputs": [
|
|
241
|
+
{
|
|
242
|
+
"internalType": "address",
|
|
243
|
+
"name": "to",
|
|
244
|
+
"type": "address"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"internalType": "uint256",
|
|
248
|
+
"name": "amount",
|
|
249
|
+
"type": "uint256"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"internalType": "bytes32",
|
|
253
|
+
"name": "depositReference",
|
|
254
|
+
"type": "bytes32"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"internalType": "string",
|
|
258
|
+
"name": "_secret",
|
|
259
|
+
"type": "string"
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"name": "mint",
|
|
263
|
+
"outputs": [],
|
|
264
|
+
"stateMutability": "nonpayable",
|
|
265
|
+
"type": "function"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"inputs": [
|
|
269
|
+
{
|
|
270
|
+
"internalType": "string",
|
|
271
|
+
"name": "_secret",
|
|
272
|
+
"type": "string"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"name": "pause",
|
|
276
|
+
"outputs": [],
|
|
277
|
+
"stateMutability": "nonpayable",
|
|
278
|
+
"type": "function"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"inputs": [
|
|
282
|
+
{
|
|
283
|
+
"internalType": "address",
|
|
284
|
+
"name": "from",
|
|
285
|
+
"type": "address"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"internalType": "address",
|
|
289
|
+
"name": "to",
|
|
290
|
+
"type": "address"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"internalType": "uint256",
|
|
294
|
+
"name": "amount",
|
|
295
|
+
"type": "uint256"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"internalType": "string",
|
|
299
|
+
"name": "reason",
|
|
300
|
+
"type": "string"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"internalType": "string",
|
|
304
|
+
"name": "_secret",
|
|
305
|
+
"type": "string"
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"name": "recoverFunds",
|
|
309
|
+
"outputs": [],
|
|
310
|
+
"stateMutability": "nonpayable",
|
|
311
|
+
"type": "function"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"inputs": [],
|
|
315
|
+
"name": "reserveBank",
|
|
316
|
+
"outputs": [
|
|
317
|
+
{
|
|
318
|
+
"internalType": "address",
|
|
319
|
+
"name": "",
|
|
320
|
+
"type": "address"
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"stateMutability": "view",
|
|
324
|
+
"type": "function"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"inputs": [
|
|
328
|
+
{
|
|
329
|
+
"internalType": "address",
|
|
330
|
+
"name": "account",
|
|
331
|
+
"type": "address"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"internalType": "bool",
|
|
335
|
+
"name": "status",
|
|
336
|
+
"type": "bool"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"internalType": "string",
|
|
340
|
+
"name": "_secret",
|
|
341
|
+
"type": "string"
|
|
342
|
+
}
|
|
343
|
+
],
|
|
344
|
+
"name": "setBlacklist",
|
|
345
|
+
"outputs": [],
|
|
346
|
+
"stateMutability": "nonpayable",
|
|
347
|
+
"type": "function"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"inputs": [
|
|
351
|
+
{
|
|
352
|
+
"internalType": "address",
|
|
353
|
+
"name": "account",
|
|
354
|
+
"type": "address"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"internalType": "bool",
|
|
358
|
+
"name": "status",
|
|
359
|
+
"type": "bool"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"internalType": "string",
|
|
363
|
+
"name": "_secret",
|
|
364
|
+
"type": "string"
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"name": "setWhitelist",
|
|
368
|
+
"outputs": [],
|
|
369
|
+
"stateMutability": "nonpayable",
|
|
370
|
+
"type": "function"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"inputs": [],
|
|
374
|
+
"name": "totalSupply",
|
|
375
|
+
"outputs": [
|
|
376
|
+
{
|
|
377
|
+
"internalType": "uint256",
|
|
378
|
+
"name": "",
|
|
379
|
+
"type": "uint256"
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"stateMutability": "view",
|
|
383
|
+
"type": "function"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"inputs": [
|
|
387
|
+
{
|
|
388
|
+
"internalType": "address",
|
|
389
|
+
"name": "to",
|
|
390
|
+
"type": "address"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"internalType": "uint256",
|
|
394
|
+
"name": "value",
|
|
395
|
+
"type": "uint256"
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"name": "transfer",
|
|
399
|
+
"outputs": [
|
|
400
|
+
{
|
|
401
|
+
"internalType": "bool",
|
|
402
|
+
"name": "",
|
|
403
|
+
"type": "bool"
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"stateMutability": "nonpayable",
|
|
407
|
+
"type": "function"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"inputs": [
|
|
411
|
+
{
|
|
412
|
+
"internalType": "address",
|
|
413
|
+
"name": "from",
|
|
414
|
+
"type": "address"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"internalType": "address",
|
|
418
|
+
"name": "to",
|
|
419
|
+
"type": "address"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"internalType": "uint256",
|
|
423
|
+
"name": "value",
|
|
424
|
+
"type": "uint256"
|
|
425
|
+
}
|
|
426
|
+
],
|
|
427
|
+
"name": "transferFrom",
|
|
428
|
+
"outputs": [
|
|
429
|
+
{
|
|
430
|
+
"internalType": "bool",
|
|
431
|
+
"name": "",
|
|
432
|
+
"type": "bool"
|
|
433
|
+
}
|
|
434
|
+
],
|
|
435
|
+
"stateMutability": "nonpayable",
|
|
436
|
+
"type": "function"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"inputs": [
|
|
440
|
+
{
|
|
441
|
+
"internalType": "string",
|
|
442
|
+
"name": "_secret",
|
|
443
|
+
"type": "string"
|
|
444
|
+
}
|
|
445
|
+
],
|
|
446
|
+
"name": "unpause",
|
|
447
|
+
"outputs": [],
|
|
448
|
+
"stateMutability": "nonpayable",
|
|
449
|
+
"type": "function"
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
"bytecode": "0x",
|
|
453
|
+
"deployedBytecode": "0x",
|
|
454
|
+
"linkReferences": {},
|
|
455
|
+
"deployedLinkReferences": {},
|
|
456
|
+
"immutableReferences": {},
|
|
457
|
+
"inputSourceName": "project/contracts/economy/interfaces/ICLPStablecoin.sol",
|
|
458
|
+
"buildInfoId": "solc-0_8_30-e703f2fe389268a2246aec69fef2175182b7b532"
|
|
459
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// This file was autogenerated by Hardhat, do not edit it.
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// eslint-disable
|
|
5
|
+
// biome-ignore format: see above
|
|
6
|
+
|
|
7
|
+
export interface ICLPStablecoin$Type {
|
|
8
|
+
readonly _format: "hh3-artifact-1";
|
|
9
|
+
readonly contractName: "ICLPStablecoin";
|
|
10
|
+
readonly sourceName: "contracts/economy/interfaces/ICLPStablecoin.sol";
|
|
11
|
+
readonly abi: [{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"withdrawalReference","type":"bytes32"},{"internalType":"string","name":"_secret","type":"string"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCirculatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDailyMintBurnVolume","outputs":[{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"burned","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getDailyTransferVolume","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"depositReference","type":"bytes32"},{"internalType":"string","name":"_secret","type":"string"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_secret","type":"string"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"reason","type":"string"},{"internalType":"string","name":"_secret","type":"string"}],"name":"recoverFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveBank","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"status","type":"bool"},{"internalType":"string","name":"_secret","type":"string"}],"name":"setBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"status","type":"bool"},{"internalType":"string","name":"_secret","type":"string"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_secret","type":"string"}],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}];
|
|
12
|
+
readonly bytecode: "0x";
|
|
13
|
+
readonly deployedBytecode: "0x";
|
|
14
|
+
readonly linkReferences: {};
|
|
15
|
+
readonly deployedLinkReferences: {};
|
|
16
|
+
readonly immutableReferences: {};
|
|
17
|
+
readonly inputSourceName: "project/contracts/economy/interfaces/ICLPStablecoin.sol";
|
|
18
|
+
readonly buildInfoId: "solc-0_8_30-e703f2fe389268a2246aec69fef2175182b7b532";
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
import "hardhat/types/artifacts";
|
|
22
|
+
declare module "hardhat/types/artifacts" {
|
|
23
|
+
interface ArtifactMap {
|
|
24
|
+
["ICLPStablecoin"]: ICLPStablecoin$Type;
|
|
25
|
+
["contracts/economy/interfaces/ICLPStablecoin.sol:ICLPStablecoin"]: ICLPStablecoin$Type;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh3-artifact-1",
|
|
3
|
+
"contractName": "IDEXRouter",
|
|
4
|
+
"sourceName": "contracts/economy/interfaces/IDEXRouter.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "tokenA",
|
|
11
|
+
"type": "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "address",
|
|
15
|
+
"name": "tokenB",
|
|
16
|
+
"type": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "uint256",
|
|
20
|
+
"name": "amountA",
|
|
21
|
+
"type": "uint256"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "uint256",
|
|
25
|
+
"name": "amountB",
|
|
26
|
+
"type": "uint256"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "uint256",
|
|
30
|
+
"name": "amountAMin",
|
|
31
|
+
"type": "uint256"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"internalType": "uint256",
|
|
35
|
+
"name": "amountBMin",
|
|
36
|
+
"type": "uint256"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"internalType": "address",
|
|
40
|
+
"name": "to",
|
|
41
|
+
"type": "address"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"internalType": "uint256",
|
|
45
|
+
"name": "deadline",
|
|
46
|
+
"type": "uint256"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"name": "addLiquidity",
|
|
50
|
+
"outputs": [
|
|
51
|
+
{
|
|
52
|
+
"internalType": "uint256",
|
|
53
|
+
"name": "",
|
|
54
|
+
"type": "uint256"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"internalType": "uint256",
|
|
58
|
+
"name": "",
|
|
59
|
+
"type": "uint256"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"internalType": "uint256",
|
|
63
|
+
"name": "",
|
|
64
|
+
"type": "uint256"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"stateMutability": "nonpayable",
|
|
68
|
+
"type": "function"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"inputs": [
|
|
72
|
+
{
|
|
73
|
+
"internalType": "uint256",
|
|
74
|
+
"name": "amountIn",
|
|
75
|
+
"type": "uint256"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"internalType": "uint256",
|
|
79
|
+
"name": "amountOutMin",
|
|
80
|
+
"type": "uint256"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"internalType": "address[]",
|
|
84
|
+
"name": "path",
|
|
85
|
+
"type": "address[]"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"internalType": "address",
|
|
89
|
+
"name": "to",
|
|
90
|
+
"type": "address"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"internalType": "uint256",
|
|
94
|
+
"name": "deadline",
|
|
95
|
+
"type": "uint256"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"name": "swapExactTokensForTokens",
|
|
99
|
+
"outputs": [
|
|
100
|
+
{
|
|
101
|
+
"internalType": "uint256[]",
|
|
102
|
+
"name": "amounts",
|
|
103
|
+
"type": "uint256[]"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"stateMutability": "nonpayable",
|
|
107
|
+
"type": "function"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"bytecode": "0x",
|
|
111
|
+
"deployedBytecode": "0x",
|
|
112
|
+
"linkReferences": {},
|
|
113
|
+
"deployedLinkReferences": {},
|
|
114
|
+
"immutableReferences": {},
|
|
115
|
+
"inputSourceName": "project/contracts/economy/interfaces/IDEXRouter.sol",
|
|
116
|
+
"buildInfoId": "solc-0_8_30-e703f2fe389268a2246aec69fef2175182b7b532"
|
|
117
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// This file was autogenerated by Hardhat, do not edit it.
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
// tslint:disable
|
|
4
|
+
// eslint-disable
|
|
5
|
+
// biome-ignore format: see above
|
|
6
|
+
|
|
7
|
+
export interface IDEXRouter$Type {
|
|
8
|
+
readonly _format: "hh3-artifact-1";
|
|
9
|
+
readonly contractName: "IDEXRouter";
|
|
10
|
+
readonly sourceName: "contracts/economy/interfaces/IDEXRouter.sol";
|
|
11
|
+
readonly abi: [{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"addLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapExactTokensForTokens","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"}];
|
|
12
|
+
readonly bytecode: "0x";
|
|
13
|
+
readonly deployedBytecode: "0x";
|
|
14
|
+
readonly linkReferences: {};
|
|
15
|
+
readonly deployedLinkReferences: {};
|
|
16
|
+
readonly immutableReferences: {};
|
|
17
|
+
readonly inputSourceName: "project/contracts/economy/interfaces/IDEXRouter.sol";
|
|
18
|
+
readonly buildInfoId: "solc-0_8_30-e703f2fe389268a2246aec69fef2175182b7b532";
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
import "hardhat/types/artifacts";
|
|
22
|
+
declare module "hardhat/types/artifacts" {
|
|
23
|
+
interface ArtifactMap {
|
|
24
|
+
["IDEXRouter"]: IDEXRouter$Type;
|
|
25
|
+
["contracts/economy/interfaces/IDEXRouter.sol:IDEXRouter"]: IDEXRouter$Type;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh3-artifact-1",
|
|
3
|
+
"contractName": "IFeeSplitter",
|
|
4
|
+
"sourceName": "contracts/economy/interfaces/IFeeSplitter.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint256",
|
|
10
|
+
"name": "amount",
|
|
11
|
+
"type": "uint256"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"name": "collectAndRouteFees",
|
|
15
|
+
"outputs": [],
|
|
16
|
+
"stateMutability": "nonpayable",
|
|
17
|
+
"type": "function"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"inputs": [
|
|
21
|
+
{
|
|
22
|
+
"internalType": "address",
|
|
23
|
+
"name": "_sender",
|
|
24
|
+
"type": "address"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"name": "grantProductSenderRole",
|
|
28
|
+
"outputs": [],
|
|
29
|
+
"stateMutability": "nonpayable",
|
|
30
|
+
"type": "function"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"bytecode": "0x",
|
|
34
|
+
"deployedBytecode": "0x",
|
|
35
|
+
"linkReferences": {},
|
|
36
|
+
"deployedLinkReferences": {},
|
|
37
|
+
"immutableReferences": {},
|
|
38
|
+
"inputSourceName": "project/contracts/economy/interfaces/IFeeSplitter.sol",
|
|
39
|
+
"buildInfoId": "solc-0_8_30-e703f2fe389268a2246aec69fef2175182b7b532"
|
|
40
|
+
}
|