Skip to content

Improve testing workflow #175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
582a191
move contracts, compact to packages, add compact-std, add testing
andrew-fleming Jul 13, 2025
84f77fe
remove duplicate method
andrew-fleming Jul 13, 2025
bd2642b
fix comments
andrew-fleming Jul 13, 2025
bbf0f33
remove newline between imports
andrew-fleming Jul 13, 2025
3707320
improve spacing in tests
andrew-fleming Jul 13, 2025
6432d04
normalize deps
andrew-fleming Jul 13, 2025
bfb64d5
add line
andrew-fleming Jul 13, 2025
d96a31c
remove json
andrew-fleming Jul 13, 2025
0c38801
move archive/, fix conflicts
andrew-fleming Jul 14, 2025
3d3d376
Apply suggestions from code review
andrew-fleming Jul 19, 2025
d50c069
remove 'current' from state getters
andrew-fleming Jul 19, 2025
6bd2e04
Apply suggestions from code review
andrew-fleming Jul 19, 2025
fa86d82
Merge branch 'try-testing-package' of https://github.com/OpenZeppelin…
andrew-fleming Jul 19, 2025
dbf005a
fix fmt
andrew-fleming Jul 20, 2025
c73468b
add missing type
andrew-fleming Jul 20, 2025
97f4c7a
export extract types
andrew-fleming Jul 20, 2025
f8198ce
use extract types
andrew-fleming Jul 20, 2025
266a060
move contracts back to root
andrew-fleming Jul 21, 2025
572ed25
move types to types file, tidy up
andrew-fleming Jul 21, 2025
abe5fc8
improve ContextlessCircuits doc comments
andrew-fleming Jul 21, 2025
05be29d
Merge branch 'main' into try-testing-package
andrew-fleming Jul 21, 2025
4d1987e
update yarn.lock
andrew-fleming Jul 21, 2025
fa7f52d
fix import paths
andrew-fleming Jul 21, 2025
1902e6d
fix conflicts
andrew-fleming Jul 23, 2025
11fa102
Merge branch 'main' into try-testing-package
andrew-fleming Jul 23, 2025
35de6d4
Merge branch 'main' into try-testing-package
andrew-fleming Aug 8, 2025
9366636
fix fmt
andrew-fleming Aug 8, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import {
type CircuitContext,
type CoinPublicKey,
type ContractState,
QueryContext,
constructorContext,
emptyZswapLocalState,
QueryContext,
} from '@midnight-ntwrk/compact-runtime';
import { sampleContractAddress } from '@midnight-ntwrk/zswap';
import {
type ContractAddress,
type Either,
type Ledger,
ledger,
Contract as MockAccessControl,
type ZswapCoinPublicKey,
ledger,
} from '../../artifacts/MockAccessControl/contract/index.cjs'; // Combined imports
import {
type AccessControlPrivateState,
Expand Down
2 changes: 2 additions & 0 deletions contracts/nonFungibleToken/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"@openzeppelin-compact/compact": "workspace:^"
},
"devDependencies": {
"@openzeppelin-compact/compact-std": "workspace:^",
"@openzeppelin-compact/testing": "workspace:^",
"@types/node": "22.14.0",
"ts-node": "^10.9.2",
"typescript": "^5.2.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
pragma language_version >= 0.16.0;

import CompactStandardLibrary;

import "../../NonFungibleToken" prefix NonFungibleToken_;

export { ZswapCoinPublicKey, ContractAddress, Either, Maybe };

/**
* @description `init` is a param for testing.
* If `init` is true, initialize the contract with `_name` and `_symbol`.
Expand Down
Loading
Loading