@pru.pinya/contracts 1.0.1 → 1.0.3

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 (40) hide show
  1. package/index.js +5 -4
  2. package/package.json +1 -2
  3. package/artifacts/contracts/access/AccessController.sol/AccessController.json +0 -304
  4. package/artifacts/contracts/access/AccessControllerKAP.sol/AccessControllerKAP.json +0 -352
  5. package/artifacts/contracts/access/AccessControllerKAP.sol/IKYCBitkubChain.json +0 -33
  6. package/artifacts/contracts/access/AccessControllerKAP.sol/KYCHandler.json +0 -116
  7. package/artifacts/contracts/access/Authorization.sol/Authorization.json +0 -78
  8. package/artifacts/contracts/access/AuthorizationKAP.sol/AuthorizationKAP.json +0 -155
  9. package/artifacts/contracts/access/Committee.sol/Committee.json +0 -65
  10. package/artifacts/contracts/access/Ownable.sol/Ownable.json +0 -66
  11. package/artifacts/contracts/interfaces/IAdminProjectRouter.sol/IAdminProjectRouter.json +0 -62
  12. package/artifacts/contracts/interfaces/IKYCBitkubChain.sol/IKYCBitkubChain.json +0 -51
  13. package/artifacts/contracts/kyc/KYCHandler.sol/KYCHandler.json +0 -53
  14. package/artifacts/contracts/libs/Address.sol/Address.json +0 -13
  15. package/artifacts/contracts/libs/EnumerableSetAddress.sol/EnumerableSetAddress.json +0 -13
  16. package/artifacts/contracts/libs/EnumerableSetUint.sol/EnumerableSetUint.json +0 -13
  17. package/artifacts/contracts/libs/EnumerateMap.sol/EnumerableMap.json +0 -13
  18. package/artifacts/contracts/libs/String.sol/Strings.json +0 -13
  19. package/artifacts/contracts/token/KAP-1155/KAP1155.sol/KAP1155.json +0 -810
  20. package/artifacts/contracts/token/KAP-1155/interfaces/IKAP1155.sol/IKAP1155.json +0 -403
  21. package/artifacts/contracts/token/KAP-1155/interfaces/IKAP1155Enumerable.sol/IKAP1155Enumerable.json +0 -27
  22. package/artifacts/contracts/token/KAP-1155/interfaces/IKAP1155Metadata.sol/IKAP1155Metadata.json +0 -78
  23. package/artifacts/contracts/token/KAP-1155/interfaces/IKAP1155Receiver.sol/IKAP1155Receiver.json +0 -92
  24. package/artifacts/contracts/token/KAP-20/KAP20.sol/KAP20.json +0 -729
  25. package/artifacts/contracts/token/KAP-20/interfaces/IKAP20.sol/IKAP20.json +0 -294
  26. package/artifacts/contracts/token/KAP-20/interfaces/IKToken.sol/IKToken.json +0 -72
  27. package/artifacts/contracts/token/KAP-22/KAP22.sol/KAP22.json +0 -1022
  28. package/artifacts/contracts/token/KAP-22/interfaces/IKAP22.sol/IKAP22.json +0 -176
  29. package/artifacts/contracts/token/KAP-22/utils/TransferRouter.sol/TransferRouter.json +0 -52
  30. package/artifacts/contracts/token/KAP-22/utils/WhitelistAddress.sol/WhitelistAddress.json +0 -115
  31. package/artifacts/contracts/token/KAP-721/KAP721.sol/KAP721.json +0 -912
  32. package/artifacts/contracts/token/KAP-721/interfaces/IKAP721.sol/IKAP721.json +0 -380
  33. package/artifacts/contracts/token/KAP-721/interfaces/IKAP721Enumerable.sol/IKAP721Enumerable.json +0 -70
  34. package/artifacts/contracts/token/KAP-721/interfaces/IKAP721Metadata.sol/IKAP721Metadata.json +0 -59
  35. package/artifacts/contracts/token/KAP-721/interfaces/IKAP721Receiver.sol/IKAP721Receiver.json +0 -48
  36. package/artifacts/contracts/token/KAP-721/interfaces/IKAP721V2.sol/IKAP721V2.json +0 -103
  37. package/artifacts/contracts/utils/Context.sol/Context.json +0 -13
  38. package/artifacts/contracts/utils/Pausable.sol/Pausable.json +0 -53
  39. package/artifacts/contracts/utils/introspections/IKAP165.sol/IKAP165.json +0 -33
  40. package/artifacts/contracts/utils/introspections/KAP165.sol/KAP165.json +0 -33
package/index.js CHANGED
@@ -1,5 +1,6 @@
1
- const KAP20 = require("./artifacts/contracts/token/KAP20/KAP20.sol/KAP20.json");
2
- const KAP721 = require("./artifacts/contracts/KAP-721/KAP721.sol/KAP721.json");
3
- const KAP1155 = require("./artifacts/contracts/KAP-1155/KAP1155.sol/KAP1155.json");
1
+ import KAP20 from "./artifacts/contracts/token/KAP-20/KAP20.sol/KAP20.json" with { type: "json" };
2
+ import KAP22 from "./artifacts/contracts/token/KAP-22/KAP22.sol/KAP22.json" with { type: "json" };
3
+ import KAP721 from "./artifacts/contracts/token/KAP-721/KAP721.sol/KAP721.json" with { type: "json" };
4
+ import KAP1155 from "./artifacts/contracts/token/KAP-1155/KAP1155.sol/KAP1155.json" with { type: "json" };
4
5
 
5
- module.exports = { KAP20, KAP721, KAP1155 };
6
+ export { KAP20, KAP22, KAP721, KAP1155 };
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@pru.pinya/contracts",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "description": "KubChain smart contract library — KAP20, KAP721, KAP1155",
6
6
  "main": "index.js",
7
7
  "files": [
8
8
  "contracts/**/*.sol",
9
- "artifacts/contracts/**/*.json",
10
9
  "index.js"
11
10
  ],
12
11
  "scripts": {
@@ -1,304 +0,0 @@
1
- {
2
- "_format": "hh3-artifact-1",
3
- "contractName": "AccessController",
4
- "sourceName": "contracts/access/AccessController.sol",
5
- "abi": [
6
- {
7
- "anonymous": false,
8
- "inputs": [
9
- {
10
- "indexed": true,
11
- "internalType": "address",
12
- "name": "oldAdmin",
13
- "type": "address"
14
- },
15
- {
16
- "indexed": true,
17
- "internalType": "address",
18
- "name": "newAdmin",
19
- "type": "address"
20
- },
21
- {
22
- "indexed": true,
23
- "internalType": "address",
24
- "name": "caller",
25
- "type": "address"
26
- }
27
- ],
28
- "name": "AdminProjectRouterSet",
29
- "type": "event"
30
- },
31
- {
32
- "anonymous": false,
33
- "inputs": [
34
- {
35
- "indexed": true,
36
- "internalType": "address",
37
- "name": "oldCommittee",
38
- "type": "address"
39
- },
40
- {
41
- "indexed": true,
42
- "internalType": "address",
43
- "name": "newCommittee",
44
- "type": "address"
45
- },
46
- {
47
- "indexed": true,
48
- "internalType": "address",
49
- "name": "caller",
50
- "type": "address"
51
- }
52
- ],
53
- "name": "CommitteeSet",
54
- "type": "event"
55
- },
56
- {
57
- "anonymous": false,
58
- "inputs": [
59
- {
60
- "indexed": true,
61
- "internalType": "address",
62
- "name": "previousOwner",
63
- "type": "address"
64
- },
65
- {
66
- "indexed": true,
67
- "internalType": "address",
68
- "name": "newOwner",
69
- "type": "address"
70
- }
71
- ],
72
- "name": "OwnershipTransferred",
73
- "type": "event"
74
- },
75
- {
76
- "anonymous": false,
77
- "inputs": [
78
- {
79
- "indexed": true,
80
- "internalType": "address",
81
- "name": "oldTransferRouter",
82
- "type": "address"
83
- },
84
- {
85
- "indexed": true,
86
- "internalType": "address",
87
- "name": "newTransferRouter",
88
- "type": "address"
89
- },
90
- {
91
- "indexed": true,
92
- "internalType": "address",
93
- "name": "caller",
94
- "type": "address"
95
- }
96
- ],
97
- "name": "TransferRouterSet",
98
- "type": "event"
99
- },
100
- {
101
- "inputs": [],
102
- "name": "PROJECT",
103
- "outputs": [
104
- {
105
- "internalType": "string",
106
- "name": "",
107
- "type": "string"
108
- }
109
- ],
110
- "stateMutability": "view",
111
- "type": "function"
112
- },
113
- {
114
- "inputs": [],
115
- "name": "acceptedKYCLevel",
116
- "outputs": [
117
- {
118
- "internalType": "uint256",
119
- "name": "",
120
- "type": "uint256"
121
- }
122
- ],
123
- "stateMutability": "view",
124
- "type": "function"
125
- },
126
- {
127
- "inputs": [],
128
- "name": "activateOnlyKYCAddress",
129
- "outputs": [],
130
- "stateMutability": "nonpayable",
131
- "type": "function"
132
- },
133
- {
134
- "inputs": [],
135
- "name": "adminProjectRouter",
136
- "outputs": [
137
- {
138
- "internalType": "contract IAdminProjectRouter",
139
- "name": "",
140
- "type": "address"
141
- }
142
- ],
143
- "stateMutability": "view",
144
- "type": "function"
145
- },
146
- {
147
- "inputs": [],
148
- "name": "committee",
149
- "outputs": [
150
- {
151
- "internalType": "address",
152
- "name": "",
153
- "type": "address"
154
- }
155
- ],
156
- "stateMutability": "view",
157
- "type": "function"
158
- },
159
- {
160
- "inputs": [],
161
- "name": "isActivatedOnlyKYCAddress",
162
- "outputs": [
163
- {
164
- "internalType": "bool",
165
- "name": "",
166
- "type": "bool"
167
- }
168
- ],
169
- "stateMutability": "view",
170
- "type": "function"
171
- },
172
- {
173
- "inputs": [],
174
- "name": "kyc",
175
- "outputs": [
176
- {
177
- "internalType": "contract IKYCBitkubChain",
178
- "name": "",
179
- "type": "address"
180
- }
181
- ],
182
- "stateMutability": "view",
183
- "type": "function"
184
- },
185
- {
186
- "inputs": [],
187
- "name": "owner",
188
- "outputs": [
189
- {
190
- "internalType": "address",
191
- "name": "",
192
- "type": "address"
193
- }
194
- ],
195
- "stateMutability": "view",
196
- "type": "function"
197
- },
198
- {
199
- "inputs": [],
200
- "name": "renounceOwnership",
201
- "outputs": [],
202
- "stateMutability": "nonpayable",
203
- "type": "function"
204
- },
205
- {
206
- "inputs": [
207
- {
208
- "internalType": "uint256",
209
- "name": "_kycLevel",
210
- "type": "uint256"
211
- }
212
- ],
213
- "name": "setAcceptedKYCLevel",
214
- "outputs": [],
215
- "stateMutability": "nonpayable",
216
- "type": "function"
217
- },
218
- {
219
- "inputs": [
220
- {
221
- "internalType": "address",
222
- "name": "_adminProjectRouter",
223
- "type": "address"
224
- }
225
- ],
226
- "name": "setAdminProjectRouter",
227
- "outputs": [],
228
- "stateMutability": "nonpayable",
229
- "type": "function"
230
- },
231
- {
232
- "inputs": [
233
- {
234
- "internalType": "address",
235
- "name": "_committee",
236
- "type": "address"
237
- }
238
- ],
239
- "name": "setCommittee",
240
- "outputs": [],
241
- "stateMutability": "nonpayable",
242
- "type": "function"
243
- },
244
- {
245
- "inputs": [
246
- {
247
- "internalType": "address",
248
- "name": "_kyc",
249
- "type": "address"
250
- }
251
- ],
252
- "name": "setKYC",
253
- "outputs": [],
254
- "stateMutability": "nonpayable",
255
- "type": "function"
256
- },
257
- {
258
- "inputs": [
259
- {
260
- "internalType": "address",
261
- "name": "_transferRouter",
262
- "type": "address"
263
- }
264
- ],
265
- "name": "setTransferRouter",
266
- "outputs": [],
267
- "stateMutability": "nonpayable",
268
- "type": "function"
269
- },
270
- {
271
- "inputs": [
272
- {
273
- "internalType": "address",
274
- "name": "newOwner",
275
- "type": "address"
276
- }
277
- ],
278
- "name": "transferOwnership",
279
- "outputs": [],
280
- "stateMutability": "nonpayable",
281
- "type": "function"
282
- },
283
- {
284
- "inputs": [],
285
- "name": "transferRouter",
286
- "outputs": [
287
- {
288
- "internalType": "address",
289
- "name": "",
290
- "type": "address"
291
- }
292
- ],
293
- "stateMutability": "view",
294
- "type": "function"
295
- }
296
- ],
297
- "bytecode": "0x",
298
- "deployedBytecode": "0x",
299
- "linkReferences": {},
300
- "deployedLinkReferences": {},
301
- "immutableReferences": {},
302
- "inputSourceName": "project/contracts/access/AccessController.sol",
303
- "buildInfoId": "solc-0_8_0-e831237f77f57735677888cd40a003fe1edbbe4d"
304
- }
@@ -1,352 +0,0 @@
1
- {
2
- "_format": "hh3-artifact-1",
3
- "contractName": "AccessControllerKAP",
4
- "sourceName": "contracts/access/AccessControllerKAP.sol",
5
- "abi": [
6
- {
7
- "anonymous": false,
8
- "inputs": [
9
- {
10
- "indexed": true,
11
- "internalType": "uint256",
12
- "name": "oldAcceptedKYCLevelSet",
13
- "type": "uint256"
14
- },
15
- {
16
- "indexed": true,
17
- "internalType": "uint256",
18
- "name": "newAcceptedKYCLevelSet",
19
- "type": "uint256"
20
- },
21
- {
22
- "indexed": true,
23
- "internalType": "address",
24
- "name": "caller",
25
- "type": "address"
26
- }
27
- ],
28
- "name": "AcceptedKYCLevelSet",
29
- "type": "event"
30
- },
31
- {
32
- "anonymous": false,
33
- "inputs": [
34
- {
35
- "indexed": true,
36
- "internalType": "address",
37
- "name": "oldKYC",
38
- "type": "address"
39
- },
40
- {
41
- "indexed": true,
42
- "internalType": "address",
43
- "name": "newKYC",
44
- "type": "address"
45
- },
46
- {
47
- "indexed": true,
48
- "internalType": "address",
49
- "name": "caller",
50
- "type": "address"
51
- }
52
- ],
53
- "name": "KYCSet",
54
- "type": "event"
55
- },
56
- {
57
- "anonymous": false,
58
- "inputs": [
59
- {
60
- "indexed": true,
61
- "internalType": "address",
62
- "name": "caller",
63
- "type": "address"
64
- }
65
- ],
66
- "name": "OnlyKYCAddressActivated",
67
- "type": "event"
68
- },
69
- {
70
- "anonymous": false,
71
- "inputs": [
72
- {
73
- "indexed": true,
74
- "internalType": "address",
75
- "name": "oldOwner",
76
- "type": "address"
77
- },
78
- {
79
- "indexed": true,
80
- "internalType": "address",
81
- "name": "newOwner",
82
- "type": "address"
83
- },
84
- {
85
- "indexed": true,
86
- "internalType": "address",
87
- "name": "caller",
88
- "type": "address"
89
- }
90
- ],
91
- "name": "OwnerSet",
92
- "type": "event"
93
- },
94
- {
95
- "anonymous": false,
96
- "inputs": [
97
- {
98
- "indexed": true,
99
- "internalType": "address",
100
- "name": "oldTransferRouter",
101
- "type": "address"
102
- },
103
- {
104
- "indexed": true,
105
- "internalType": "address",
106
- "name": "newTransferRouter",
107
- "type": "address"
108
- },
109
- {
110
- "indexed": true,
111
- "internalType": "address",
112
- "name": "caller",
113
- "type": "address"
114
- }
115
- ],
116
- "name": "TransferRouterSet",
117
- "type": "event"
118
- },
119
- {
120
- "inputs": [],
121
- "name": "acceptedKycLevel",
122
- "outputs": [
123
- {
124
- "internalType": "uint256",
125
- "name": "",
126
- "type": "uint256"
127
- }
128
- ],
129
- "stateMutability": "view",
130
- "type": "function"
131
- },
132
- {
133
- "inputs": [],
134
- "name": "activateOnlyKycAddress",
135
- "outputs": [],
136
- "stateMutability": "nonpayable",
137
- "type": "function"
138
- },
139
- {
140
- "inputs": [
141
- {
142
- "internalType": "address",
143
- "name": "_addr",
144
- "type": "address"
145
- }
146
- ],
147
- "name": "addWhitelistAddress",
148
- "outputs": [],
149
- "stateMutability": "nonpayable",
150
- "type": "function"
151
- },
152
- {
153
- "inputs": [],
154
- "name": "isActivatedOnlyKycAddress",
155
- "outputs": [
156
- {
157
- "internalType": "bool",
158
- "name": "",
159
- "type": "bool"
160
- }
161
- ],
162
- "stateMutability": "view",
163
- "type": "function"
164
- },
165
- {
166
- "inputs": [
167
- {
168
- "internalType": "address",
169
- "name": "_addr",
170
- "type": "address"
171
- }
172
- ],
173
- "name": "isWhitelistAddr",
174
- "outputs": [
175
- {
176
- "internalType": "bool",
177
- "name": "",
178
- "type": "bool"
179
- }
180
- ],
181
- "stateMutability": "view",
182
- "type": "function"
183
- },
184
- {
185
- "inputs": [],
186
- "name": "kyc",
187
- "outputs": [
188
- {
189
- "internalType": "contract IKYCBitkubChain",
190
- "name": "",
191
- "type": "address"
192
- }
193
- ],
194
- "stateMutability": "view",
195
- "type": "function"
196
- },
197
- {
198
- "inputs": [],
199
- "name": "owner",
200
- "outputs": [
201
- {
202
- "internalType": "address",
203
- "name": "",
204
- "type": "address"
205
- }
206
- ],
207
- "stateMutability": "view",
208
- "type": "function"
209
- },
210
- {
211
- "inputs": [
212
- {
213
- "internalType": "address",
214
- "name": "_addr",
215
- "type": "address"
216
- }
217
- ],
218
- "name": "revokeWhitelistAddress",
219
- "outputs": [],
220
- "stateMutability": "nonpayable",
221
- "type": "function"
222
- },
223
- {
224
- "inputs": [
225
- {
226
- "internalType": "uint256",
227
- "name": "_kycLevel",
228
- "type": "uint256"
229
- }
230
- ],
231
- "name": "setAcceptedKycLevel",
232
- "outputs": [],
233
- "stateMutability": "nonpayable",
234
- "type": "function"
235
- },
236
- {
237
- "inputs": [
238
- {
239
- "internalType": "contract IKYCBitkubChain",
240
- "name": "_kyc",
241
- "type": "address"
242
- }
243
- ],
244
- "name": "setKyc",
245
- "outputs": [],
246
- "stateMutability": "nonpayable",
247
- "type": "function"
248
- },
249
- {
250
- "inputs": [
251
- {
252
- "internalType": "address",
253
- "name": "_owner",
254
- "type": "address"
255
- }
256
- ],
257
- "name": "setOwner",
258
- "outputs": [],
259
- "stateMutability": "nonpayable",
260
- "type": "function"
261
- },
262
- {
263
- "inputs": [
264
- {
265
- "internalType": "address",
266
- "name": "_transferRouter",
267
- "type": "address"
268
- }
269
- ],
270
- "name": "setTransferRouter",
271
- "outputs": [],
272
- "stateMutability": "nonpayable",
273
- "type": "function"
274
- },
275
- {
276
- "inputs": [],
277
- "name": "transferRouter",
278
- "outputs": [
279
- {
280
- "internalType": "address",
281
- "name": "",
282
- "type": "address"
283
- }
284
- ],
285
- "stateMutability": "view",
286
- "type": "function"
287
- },
288
- {
289
- "inputs": [
290
- {
291
- "internalType": "uint256",
292
- "name": "_index",
293
- "type": "uint256"
294
- }
295
- ],
296
- "name": "whitelistAddrByIndex",
297
- "outputs": [
298
- {
299
- "internalType": "address",
300
- "name": "",
301
- "type": "address"
302
- }
303
- ],
304
- "stateMutability": "view",
305
- "type": "function"
306
- },
307
- {
308
- "inputs": [
309
- {
310
- "internalType": "uint256",
311
- "name": "_page",
312
- "type": "uint256"
313
- },
314
- {
315
- "internalType": "uint256",
316
- "name": "_limit",
317
- "type": "uint256"
318
- }
319
- ],
320
- "name": "whitelistAddrByPage",
321
- "outputs": [
322
- {
323
- "internalType": "address[]",
324
- "name": "",
325
- "type": "address[]"
326
- }
327
- ],
328
- "stateMutability": "view",
329
- "type": "function"
330
- },
331
- {
332
- "inputs": [],
333
- "name": "whitelistAddrLength",
334
- "outputs": [
335
- {
336
- "internalType": "uint256",
337
- "name": "",
338
- "type": "uint256"
339
- }
340
- ],
341
- "stateMutability": "view",
342
- "type": "function"
343
- }
344
- ],
345
- "bytecode": "0x",
346
- "deployedBytecode": "0x",
347
- "linkReferences": {},
348
- "deployedLinkReferences": {},
349
- "immutableReferences": {},
350
- "inputSourceName": "project/contracts/access/AccessControllerKAP.sol",
351
- "buildInfoId": "solc-0_8_0-e831237f77f57735677888cd40a003fe1edbbe4d"
352
- }