Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

# Global:

* @OpenZeppelin/contracts-midnight-maintainers
* @OpenZeppelin/contracts-midnight-maintainers
46 changes: 24 additions & 22 deletions compact/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
{
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"declaration": true,
"lib": ["es2023"],
"module": "nodenext",
"target": "es2022",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"moduleResolution": "node16",
"sourceMap": true,
"rewriteRelativeImportExtensions": true,
"erasableSyntaxOnly": true,
"verbatimModuleSyntax": true
},
"include": [
"src/**/*"
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"declaration": true,
"lib": [
"es2022"
],
"exclude": [
"node_modules",
"dist"
]
"module": "nodenext",
"target": "es2022",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"moduleResolution": "nodenext",
"sourceMap": true,
"rewriteRelativeImportExtensions": true,
"erasableSyntaxOnly": true,
"verbatimModuleSyntax": true
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"dist"
]
}
4 changes: 2 additions & 2 deletions contracts/fungibleToken/src/test/FungibleToken.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CoinPublicKey } from '@midnight-ntwrk/compact-runtime';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { FungibleTokenSimulator } from './simulators/FungibleTokenSimulator';
import * as utils from './utils/address';
import { FungibleTokenSimulator } from './simulators/FungibleTokenSimulator.js';
import * as utils from './utils/address.js';

// Metadata
const EMPTY_STRING = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import {
import {
type FungibleTokenPrivateState,
FungibleTokenWitnesses,
} from '../../witnesses/FungibleTokenWitnesses';
import type { IContractSimulator } from '../types/test';
} from '../../witnesses/FungibleTokenWitnesses.js';
import type { IContractSimulator } from '../types/test.js';

/**
* @description A simulator implementation of a FungibleToken contract for testing purposes.
Expand Down
2 changes: 1 addition & 1 deletion contracts/fungibleToken/src/test/utils/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
QueryContext,
emptyZswapLocalState,
} from '@midnight-ntwrk/compact-runtime';
import type { IContractSimulator } from '../types/test';
import type { IContractSimulator } from '../types/test.js';

/**
* Constructs a `CircuitContext` from the given state and sender information.
Expand Down
12 changes: 8 additions & 4 deletions contracts/fungibleToken/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"include": ["src/**/*.ts"],
"include": [
"src/**/*.ts"
],
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"declaration": true,
"lib": ["ESNext"],
"lib": [
"ES2022"
],
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "node",
"module": "nodenext",
"moduleResolution": "nodenext",
"allowJs": true,
"forceConsistentCasingInFileNames": true,
"noImplicitAny": true,
Expand Down
32 changes: 32 additions & 0 deletions contracts/nonFungibleToken/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "@openzeppelin-midnight/non-fungible-token",
"private": true,
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"scripts": {
"compact": "compact-compiler",
"build": "compact-builder && tsc",
"test": "vitest run",
"types": "tsc -p tsconfig.json --noEmit",
"clean": "git clean -fXd"
},
"dependencies": {
"@openzeppelin-midnight/compact": "workspace:^"
},
"devDependencies": {
"@types/node": "22.14.0",
"ts-node": "^10.9.2",
"typescript": "^5.2.2",
"vitest": "^3.1.3"
}
}
Loading