@0xmonaco/contracts 0.1.0

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB;;QAG3B,gDAAgD;;;;QAKhD,gDAAgD;;;CAG1C,CAAC;AAEX;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa;IACxB,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEjB,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;;;;;;;CAajB,CAAC;AAGX,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,cAAc,CAAC;AACtD,MAAM,MAAM,WAAW,GAAG,OAAO,cAAc,CAAC,WAAW,CAAC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,69 @@
1
+ /**
2
+ * @0xmonaco/contracts
3
+ *
4
+ * Smart contract ABIs and addresses for the Monaco protocol.
5
+ * This package provides the interface definitions and deployed addresses
6
+ * for all Monaco protocol contracts.
7
+ */
8
+ import { VAULT_ABI } from "./abis";
9
+ /**
10
+ * Contract addresses for different networks.
11
+ * Each network is identified by its chain ID.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * import { CONTRACT_ADDRESSES } from '@0xmonaco/contracts';
16
+ *
17
+ * // Get vault address on Atlantic-2 testnet (chain ID 1328)
18
+ * const vaultAddress = CONTRACT_ADDRESSES[1328].vault;
19
+ *
20
+ * // Get vault address on Pacific-1 mainnet (chain ID 1329)
21
+ * const mainnetVaultAddress = CONTRACT_ADDRESSES[1329].vault;
22
+ * ```
23
+ */
24
+ export const CONTRACT_ADDRESSES = {
25
+ // Atlantic-2 (Testnet) DEPLOYED
26
+ 1328: {
27
+ /** Vault contract for managing user balances */
28
+ vault: "0xe4fe155Dc29AbFccCa18949d04Ca6d6e6bc2Ec51",
29
+ },
30
+ // Pacific-1 (Mainnet) TBD
31
+ 1329: {
32
+ /** Vault contract for managing user balances */
33
+ vault: "0xe4fe155Dc29AbFccCa18949d04Ca6d6e6bc2Ec51",
34
+ },
35
+ };
36
+ /**
37
+ * Contract ABIs for all protocol contracts.
38
+ * These ABIs are used to interact with the deployed contracts.
39
+ *
40
+ * @example
41
+ * ```typescript
42
+ * import { CONTRACT_ABIS, CONTRACT_ADDRESSES } from '@0xmonaco/contracts';
43
+ *
44
+ * // Create a contract instance using viem for testnet (chain ID 1328)
45
+ * const vaultContract = {
46
+ * address: CONTRACT_ADDRESSES[1328].vault,
47
+ * abi: CONTRACT_ABIS.vault,
48
+ * };
49
+ * ```
50
+ */
51
+ export const CONTRACT_ABIS = {
52
+ /** Vault contract ABI */
53
+ vault: VAULT_ABI,
54
+ };
55
+ export const TESTNET_TOKENS = {
56
+ MockUSDC: {
57
+ address: "0x6A86dA986797D59A839D136dB490292Cd560C131",
58
+ decimals: 6,
59
+ symbol: "MockUSDC",
60
+ name: "Mock USDC",
61
+ },
62
+ MockMTK: {
63
+ address: "0x428F82f1ECa4AA6f6c75D77cBd2a9ceB94cde343",
64
+ decimals: 18,
65
+ symbol: "MockMTK",
66
+ name: "Mock MTK",
67
+ },
68
+ };
69
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,gCAAgC;IAChC,IAAI,EAAE;QACJ,gDAAgD;QAChD,KAAK,EAAE,4CAA4C;KACpD;IACD,0BAA0B;IAC1B,IAAI,EAAE;QACJ,gDAAgD;QAChD,KAAK,EAAE,4CAA4C;KACpD;CACO,CAAC;AAEX;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,yBAAyB;IACzB,KAAK,EAAE,SAAS;CACR,CAAC;AAEX,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,QAAQ,EAAE;QACR,OAAO,EAAE,4CAA4C;QACrD,QAAQ,EAAE,CAAC;QACX,MAAM,EAAE,UAAU;QAClB,IAAI,EAAE,WAAW;KAClB;IACD,OAAO,EAAE;QACP,OAAO,EAAE,4CAA4C;QACrD,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,SAAS;QACjB,IAAI,EAAE,UAAU;KACjB;CACO,CAAC"}
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@0xmonaco/contracts",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "dependencies": {},
12
+ "devDependencies": {
13
+ "typescript": "^5.8.3"
14
+ },
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "default": "./dist/index.js"
19
+ }
20
+ },
21
+ "scripts": {
22
+ "build": "tsc -b",
23
+ "dev": "tsc --watch",
24
+ "clean": "rm -rf dist",
25
+ "lint": "eslint src --ext .ts"
26
+ }
27
+ }