Skip to content

Commit

Permalink
Add graphql package (MystenLabs#16067)
Browse files Browse the repository at this point in the history
## Description 

Describe the changes or additions included in this PR.

## Test Plan 

How did you test the new or updated feature?

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
hayes-mysten authored Feb 8, 2024
1 parent 9e9738d commit 4830361
Showing 43 changed files with 19,329 additions and 13,341 deletions.
16 changes: 16 additions & 0 deletions .changeset/chilly-years-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'@mysten/ledgerjs-hw-app-sui': patch
'@mysten/wallet-standard': patch
'@mysten/suins-toolkit': patch
'@mysten/create-dapp': patch
'@mysten/sui.js': patch
'@mysten/dapp-kit': patch
'@mysten/deepbook': patch
'@mysten/zklogin': patch
'@mysten/zksend': patch
'@mysten/enoki': patch
'@mysten/kiosk': patch
'@mysten/bcs': patch
---

Updated typescript version
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -9,3 +9,4 @@ sui_core/tests/staged/sui.yaml text eol=lf

# These files are auto generated
sdk/graphql-transport/src/queries/generated.ts linguist-generated=true
sdk/typescript/src/graphql/generated/** linguist-generated=true
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@ jobs:
- name: Run TS SDK e2e tests
if: ${{ needs.diff.outputs.isTypescriptSDK == 'true' || needs.diff.outputs.isRust == 'true'}}
run: pnpm dlx concurrently --kill-others --success command-1 "$E2E_RUN_LOCAL_NET_CMD" 'pnpm --filter @mysten/sui.js'
run: pnpm dlx concurrently --kill-others --success command-1 "$E2E_RUN_LOCAL_NET_CMD" 'pnpm --filter @mysten/sui.js test:e2e'

- name: Run RPC/GrpahQL comaptability e2e tests
if: ${{ needs.diff.outputs.isGraphQlTransport == 'true' || needs.diff.outputs.isRust == 'true'}}
2 changes: 1 addition & 1 deletion apps/core/package.json
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@
"@vanilla-extract/vite-plugin": "^3.9.0",
"postcss": "^8.4.31",
"tailwindcss": "^3.3.3",
"typescript": "^5.1.6",
"typescript": "^5.3.3",
"vite": "^4.4.4",
"vitest": "^0.33.0"
}
2 changes: 1 addition & 1 deletion apps/explorer/package.json
Original file line number Diff line number Diff line change
@@ -105,7 +105,7 @@
"storybook": "^7.1.0",
"tailwindcss": "^3.3.3",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.1.6",
"typescript": "^5.3.3",
"vite": "^4.4.4",
"vite-plugin-rewrite-all": "^1.0.1",
"vite-plugin-svgr": "^3.2.0",
2 changes: 1 addition & 1 deletion apps/icons/package.json
Original file line number Diff line number Diff line change
@@ -21,6 +21,6 @@
"@types/react": "^18.2.15",
"react": "^18.2.0",
"rimraf": "^5.0.1",
"typescript": "^5.1.6"
"typescript": "^5.3.3"
}
}
2 changes: 1 addition & 1 deletion apps/ui/package.json
Original file line number Diff line number Diff line change
@@ -53,6 +53,6 @@
"prop-types": "^15.8.1",
"storybook": "^7.1.0",
"tailwindcss": "^3.3.3",
"typescript": "^5.1.6"
"typescript": "^5.3.3"
}
}
2 changes: 1 addition & 1 deletion apps/wallet/package.json
Original file line number Diff line number Diff line change
@@ -92,7 +92,7 @@
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.1.6",
"typescript": "^5.3.3",
"vite": "^4.4.4",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.33.0",
4 changes: 3 additions & 1 deletion crates/x/src/lint.rs
Original file line number Diff line number Diff line change
@@ -131,7 +131,9 @@ pub fn handle_lint_results_exclude_external_crate_checks(
let mut errs = false;
for (source, message) in &results.messages {
if let LintKind::Content(path) = source.kind() {
if (path.starts_with(EXTERNAL_CRATE_DIR) || path.starts_with(CREATE_DAPP_TEMPLATE_DIR))
if (path.starts_with(EXTERNAL_CRATE_DIR)
|| path.starts_with(CREATE_DAPP_TEMPLATE_DIR)
|| path.to_string().contains("/generated/"))
&& source.name() == "license-header"
{
continue;
2 changes: 1 addition & 1 deletion dapps/kiosk/package.json
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@
"autoprefixer": "^10.4.14",
"postcss": "^8.4.31",
"tailwindcss": "^3.3.3",
"typescript": "^5.1.6",
"typescript": "^5.3.3",
"vite": "^4.4.4"
}
}
2 changes: 1 addition & 1 deletion dapps/multisig-toolkit/package.json
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@
"postcss": "^8.4.31",
"tailwindcss": "^3.3.3",
"tailwindcss-animate": "^1.0.6",
"typescript": "^5.1.6",
"typescript": "^5.3.3",
"vite": "^4.4.4",
"vite-tsconfig-paths": "^4.2.0"
}
2 changes: 1 addition & 1 deletion dapps/sponsored-transactions/package.json
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@
"autoprefixer": "^10.4.14",
"postcss": "^8.4.31",
"tailwindcss": "^3.3.3",
"typescript": "^5.1.6",
"typescript": "^5.3.3",
"vite": "^4.4.4"
}
}
34 changes: 17 additions & 17 deletions examples/mev_bot/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "mev-bot",
"version": "1.0.0",
"main": "src/index.ts",
"type": "module",
"author": "Patrick <patrick@mystenlabs.com>",
"license": "MIT",
"scripts": {
"start": "npx ts-node --esm src/index.ts"
},
"dependencies": {
"@mysten/sui.js": "^0.39.0",
"p-limit": "^4.0.0"
},
"devDependencies": {
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
}
"name": "mev-bot",
"version": "1.0.0",
"main": "src/index.ts",
"type": "module",
"author": "Patrick <patrick@mystenlabs.com>",
"license": "MIT",
"scripts": {
"start": "npx ts-node --esm src/index.ts"
},
"dependencies": {
"@mysten/sui.js": "^0.39.0",
"p-limit": "^4.0.0"
},
"devDependencies": {
"ts-node": "^10.9.1",
"typescript": "^5.3.3"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -61,6 +61,6 @@
"prettier-plugin-tailwindcss": "^0.4.1",
"tsx": "^3.12.7",
"turbo": "^1.10.8",
"typescript": "^5.1.6"
"typescript": "^5.3.3"
}
}
Loading

0 comments on commit 4830361

Please sign in to comment.