@0xmonaco/contracts 0.0.0-develop-20260120180031

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,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,CAAC,OAAO,cAAc,CAAC,CAAC,WAAW,CAAC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,42 @@
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 ABIs for all protocol contracts.
11
+ * These ABIs are used to interact with the deployed contracts.
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * import { CONTRACT_ABIS, CONTRACT_ADDRESSES } from '@0xmonaco/contracts';
16
+ *
17
+ * // Create a contract instance using viem for testnet (chain ID 1328)
18
+ * const vaultContract = {
19
+ * address: CONTRACT_ADDRESSES[1328].vault,
20
+ * abi: CONTRACT_ABIS.vault,
21
+ * };
22
+ * ```
23
+ */
24
+ export const CONTRACT_ABIS = {
25
+ /** Vault contract ABI */
26
+ vault: VAULT_ABI,
27
+ };
28
+ export const TESTNET_TOKENS = {
29
+ MockUSDC: {
30
+ address: "0x6A86dA986797D59A839D136dB490292Cd560C131",
31
+ decimals: 6,
32
+ symbol: "MockUSDC",
33
+ name: "Mock USDC",
34
+ },
35
+ MockMTK: {
36
+ address: "0x428F82f1ECa4AA6f6c75D77cBd2a9ceB94cde343",
37
+ decimals: 18,
38
+ symbol: "MockMTK",
39
+ name: "Mock MTK",
40
+ },
41
+ };
42
+ //# 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,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.0.0-develop-20260120180031",
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.9.2"
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
+ }