anchor/tests/package.json

70 lines
1.6 KiB
JSON
Raw Normal View History

{
"name": "anchor-tests",
"private": true,
"scripts": {
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
},
"workspaces": [
"anchor-cli-account",
"anchor-cli-idl",
"cashiers-check",
"cfo",
"chat",
"composite",
"custom-coder",
"errors",
"escrow",
"events",
2022-02-17 11:23:21 -08:00
"floats",
"ido-pool",
"interface",
"lockup",
"misc",
"multisig",
Feat: Optional Positional Accounts (#2101) * optional accounts initial implementation * cargo fmt * panic if Account related traits are run on none * Allow empty accounts to deserialize to None for optional accounts * implement constraints for optional accounts * optional accounts to idl gen * accountstruct helper method * implemented to_account_metas and infos * add test program * Rename optional to is_optional * added more traits * added TryKey error * fix has_one * update prelude * is_optional * add is_optional helper method * Add TryAccountInfos trait * improve constraint parser * initial work on TryToAccountInfo * Rename to TryToAccountInfo * finished implementing tryToAccountInfo * Using program method * Formatting * Fix program function call * Remove function return borrow * Fix access to program field * finished implementing tryToAccountInfo * add exit try_to_account_infos * descriptive ID path * try_to_account_info * fix close constraint * update test files * completed typescript optional accounts implementation * fix try accounts for init * update tests * fix to_account_metas * update tests * fix linting * remove types/node * update yarn.lock maybe? * update optional test * update optional test * update optional rust cli test * fix linting and tests * fix tests * update try_accounts to pass in accs during constraint gen * Add default impl for TryToAccountInfos * Removed TryToAccountInfos trait * Formatting * remove unneccesary traits and improve constraint gen drastically * fix exit generation * clippy * improve cross check error message * improve comments * more comments * update constraints hopefully good now? * add new errors to ts client * add new errors to ts client * update optional test * update anchor ts client * update misc crate * linting * temporarily comment out optional rs tests * update ts * remove local test files * linting * optional client tests * fix other lints to make the test pass * remove comments * remove misc-optional for now * update optional program * update optional program and client tests again * update optional program and client tests again again * added initialize tests that should pass * undo unrelated anchor.toml change * update close on optional program and improve tests * update optional program again. * update optional program and optional tests * fix has one error message * fix client example tests * update lockfile * update lockfile * regenerate lockfile * reset lockfile * reset ts yarn lockfile * update no caching tests * update exit codegen to use generate_optional_check * remove `try_to_account_infos` * update parser to ignore method calls in constraints * refactor and improve optional checks in constraints * add misc-optional program and tests * enable cpi for optional tests * Revert "enable cpi for optional tests" This reverts commit c864cd5d4f019e6bd5f93641e01bd82fc74041d4. * simplify misc tests * update version * fix rust version and resolve merge conflicts * prevent Option on composite accounts * hopefully fixed ts stuff? * hopefully fixed ts stuff? * testing * hopefully done? * update misc test * fix optional tests * fix ts * fix ts again! * linting urg * allow-missing-optionals feature * fix client tests * add bnjs types to tests Co-authored-by: febo <febo@kent.ac.uk> Co-authored-by: Henry-E <henry.elder@adaptcentre.ie>
2022-12-12 07:32:59 -08:00
"optional",
"permissioned-markets",
"pda-derivation",
"relations-derivation",
"pyth",
"realloc",
"spl/token-proxy",
"swap",
"system-accounts",
"sysvars",
"tictactoe",
"typescript",
"validator-clone",
"zero-copy",
2022-03-24 11:40:38 -07:00
"declare-id",
"cpi-returns",
"multiple-suites",
"multiple-suites-run-single",
"bpf-upgradeable-state"
],
"dependencies": {
"@coral-xyz/anchor": "file:../ts/packages/anchor",
"@project-serum/common": "^0.0.1-beta.3",
"@project-serum/serum": "^0.13.60",
"@coral-xyz/spl-associated-token-account": "file:../ts/packages/spl-associated-token-account",
"@coral-xyz/spl-token": "file:../ts/packages/spl-token",
"@solana/spl-token": "^0.1.8",
Feat: Optional Positional Accounts (#2101) * optional accounts initial implementation * cargo fmt * panic if Account related traits are run on none * Allow empty accounts to deserialize to None for optional accounts * implement constraints for optional accounts * optional accounts to idl gen * accountstruct helper method * implemented to_account_metas and infos * add test program * Rename optional to is_optional * added more traits * added TryKey error * fix has_one * update prelude * is_optional * add is_optional helper method * Add TryAccountInfos trait * improve constraint parser * initial work on TryToAccountInfo * Rename to TryToAccountInfo * finished implementing tryToAccountInfo * Using program method * Formatting * Fix program function call * Remove function return borrow * Fix access to program field * finished implementing tryToAccountInfo * add exit try_to_account_infos * descriptive ID path * try_to_account_info * fix close constraint * update test files * completed typescript optional accounts implementation * fix try accounts for init * update tests * fix to_account_metas * update tests * fix linting * remove types/node * update yarn.lock maybe? * update optional test * update optional test * update optional rust cli test * fix linting and tests * fix tests * update try_accounts to pass in accs during constraint gen * Add default impl for TryToAccountInfos * Removed TryToAccountInfos trait * Formatting * remove unneccesary traits and improve constraint gen drastically * fix exit generation * clippy * improve cross check error message * improve comments * more comments * update constraints hopefully good now? * add new errors to ts client * add new errors to ts client * update optional test * update anchor ts client * update misc crate * linting * temporarily comment out optional rs tests * update ts * remove local test files * linting * optional client tests * fix other lints to make the test pass * remove comments * remove misc-optional for now * update optional program * update optional program and client tests again * update optional program and client tests again again * added initialize tests that should pass * undo unrelated anchor.toml change * update close on optional program and improve tests * update optional program again. * update optional program and optional tests * fix has one error message * fix client example tests * update lockfile * update lockfile * regenerate lockfile * reset lockfile * reset ts yarn lockfile * update no caching tests * update exit codegen to use generate_optional_check * remove `try_to_account_infos` * update parser to ignore method calls in constraints * refactor and improve optional checks in constraints * add misc-optional program and tests * enable cpi for optional tests * Revert "enable cpi for optional tests" This reverts commit c864cd5d4f019e6bd5f93641e01bd82fc74041d4. * simplify misc tests * update version * fix rust version and resolve merge conflicts * prevent Option on composite accounts * hopefully fixed ts stuff? * hopefully fixed ts stuff? * testing * hopefully done? * update misc test * fix optional tests * fix ts * fix ts again! * linting urg * allow-missing-optionals feature * fix client tests * add bnjs types to tests Co-authored-by: febo <febo@kent.ac.uk> Co-authored-by: Henry-E <henry.elder@adaptcentre.ie>
2022-12-12 07:32:59 -08:00
"@solana/web3.js": "^1.68.0"
},
"resolutions": {
"@coral-xyz/anchor/@solana/web3.js": "^1.68.0"
},
"devDependencies": {
"@types/chai": "^4.3.0",
"@types/mocha": "^9.1.0",
"@types/node": "^14.14.37",
Feat: Optional Positional Accounts (#2101) * optional accounts initial implementation * cargo fmt * panic if Account related traits are run on none * Allow empty accounts to deserialize to None for optional accounts * implement constraints for optional accounts * optional accounts to idl gen * accountstruct helper method * implemented to_account_metas and infos * add test program * Rename optional to is_optional * added more traits * added TryKey error * fix has_one * update prelude * is_optional * add is_optional helper method * Add TryAccountInfos trait * improve constraint parser * initial work on TryToAccountInfo * Rename to TryToAccountInfo * finished implementing tryToAccountInfo * Using program method * Formatting * Fix program function call * Remove function return borrow * Fix access to program field * finished implementing tryToAccountInfo * add exit try_to_account_infos * descriptive ID path * try_to_account_info * fix close constraint * update test files * completed typescript optional accounts implementation * fix try accounts for init * update tests * fix to_account_metas * update tests * fix linting * remove types/node * update yarn.lock maybe? * update optional test * update optional test * update optional rust cli test * fix linting and tests * fix tests * update try_accounts to pass in accs during constraint gen * Add default impl for TryToAccountInfos * Removed TryToAccountInfos trait * Formatting * remove unneccesary traits and improve constraint gen drastically * fix exit generation * clippy * improve cross check error message * improve comments * more comments * update constraints hopefully good now? * add new errors to ts client * add new errors to ts client * update optional test * update anchor ts client * update misc crate * linting * temporarily comment out optional rs tests * update ts * remove local test files * linting * optional client tests * fix other lints to make the test pass * remove comments * remove misc-optional for now * update optional program * update optional program and client tests again * update optional program and client tests again again * added initialize tests that should pass * undo unrelated anchor.toml change * update close on optional program and improve tests * update optional program again. * update optional program and optional tests * fix has one error message * fix client example tests * update lockfile * update lockfile * regenerate lockfile * reset lockfile * reset ts yarn lockfile * update no caching tests * update exit codegen to use generate_optional_check * remove `try_to_account_infos` * update parser to ignore method calls in constraints * refactor and improve optional checks in constraints * add misc-optional program and tests * enable cpi for optional tests * Revert "enable cpi for optional tests" This reverts commit c864cd5d4f019e6bd5f93641e01bd82fc74041d4. * simplify misc tests * update version * fix rust version and resolve merge conflicts * prevent Option on composite accounts * hopefully fixed ts stuff? * hopefully fixed ts stuff? * testing * hopefully done? * update misc test * fix optional tests * fix ts * fix ts again! * linting urg * allow-missing-optionals feature * fix client tests * add bnjs types to tests Co-authored-by: febo <febo@kent.ac.uk> Co-authored-by: Henry-E <henry.elder@adaptcentre.ie>
2022-12-12 07:32:59 -08:00
"@types/bn.js": "^5.1.1",
"chai": "^4.3.4",
"mocha": "^10.0.0",
"prettier": "^2.5.1",
"ts-mocha": "^10.0.0",
"tsc": "^2.0.4",
"typescript": "^4.4.4"
}
}