-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
32 lines (27 loc) · 1.23 KB
/
index.js
File metadata and controls
32 lines (27 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
* erc1450-reference - npm Package Exports
*
* This file provides easy access to all contract artifacts (ABIs, bytecode, metadata)
* for both basic (immutable) and upgradeable contract implementations.
*
* Usage:
* const { ERC1450Upgradeable, RTAProxyUpgradeable } = require('erc1450-reference');
*
* // Access ABI and bytecode
* const abi = RTAProxyUpgradeable.abi;
* const bytecode = RTAProxyUpgradeable.bytecode;
*/
module.exports = {
// Basic Contracts (Immutable)
ERC1450: require('./artifacts/contracts/ERC1450.sol/ERC1450.json'),
RTAProxy: require('./artifacts/contracts/RTAProxy.sol/RTAProxy.json'),
// Upgradeable Contracts (UUPS Pattern)
ERC1450Upgradeable: require('./artifacts/contracts/upgradeable/ERC1450Upgradeable.sol/ERC1450Upgradeable.json'),
RTAProxyUpgradeable: require('./artifacts/contracts/upgradeable/RTAProxyUpgradeable.sol/RTAProxyUpgradeable.json'),
// Proxy Contract (OpenZeppelin)
ERC1967Proxy: require('./artifacts/contracts/ERC1967Proxy.sol/ERC1967Proxy.json'),
// Interfaces
IERC1450: require('./artifacts/contracts/interfaces/IERC1450.sol/IERC1450.json'),
// Libraries
ERC1450Constants: require('./artifacts/contracts/libraries/ERC1450Constants.sol/ERC1450Constants.json'),
};