Skip to content
Open
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 .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
packages/sui-grpc/src/proto/** linguist-generated=true
packages/typescript/src/graphql/generated/** linguist-generated=true
packages/sui/src/graphql/generated/** linguist-generated=true
packages/graphql-transport/src/generated/** linguist-generated=true
packages/suins-v2/src/contracts/** linguist-generated=true
packages/codegen/tests/generated/** linguist-generated=true
Expand Down
6 changes: 3 additions & 3 deletions graphql.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import type { IGraphQLConfig } from 'graphql-config';
const config: IGraphQLConfig = {
projects: {
tsSDK: {
schema: './packages/typescript/src/graphql/generated/latest/schema.graphql',
schema: './packages/sui/src/graphql/generated/latest/schema.graphql',
documents: [
'./packages/graphql-transport/src/**/*.ts',
'./packages/graphql-transport/src/**/*.graphql',
'./packages/typescript/src/graphql/queries/**/*.graphql',
'./packages/sui/src/graphql/queries/**/*.graphql',
],
include: [
'./packages/graphql-transport/src/**/*.ts',
'./packages/graphql-transport/src/**/*.graphql',
'./packages/typescript/src/graphql/queries/**/*.graphql',
'./packages/sui/src/graphql/queries/**/*.graphql',
],
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/create-dapp/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"rootDir": "src",
"emitDeclarationOnly": false
},
"references": [{ "path": "../typescript" }, { "path": "../dapp-kit" }]
"references": [{ "path": "../sui" }, { "path": "../dapp-kit" }]
}
2 changes: 1 addition & 1 deletion packages/dapp-kit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"rootDir": "src"
},
"references": [
{ "path": "../typescript" },
{ "path": "../sui" },
{ "path": "../wallet-standard" },
{ "path": "../zksend" }
]
Expand Down
9 changes: 4 additions & 5 deletions packages/dapp-kit/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ export default defineConfig({
'@mysten/wallet-standard': new URL('../wallet-standard/src', import.meta.url).pathname,
'@mysten/bcs': new URL('../bcs/src', import.meta.url).pathname,
'@mysten/utils': new URL('../utils/src', import.meta.url).pathname,
'@mysten/sui/keypairs/ed25519': new URL('../typescript/src/keypairs/ed25519', import.meta.url)
.pathname,
'@mysten/sui/client': new URL('../typescript/src/client', import.meta.url).pathname,
'@mysten/sui/utils': new URL('../typescript/src/utils', import.meta.url).pathname,
'@mysten/sui/transactions': new URL('../typescript/src/transactions', import.meta.url)
'@mysten/sui/keypairs/ed25519': new URL('../sui/src/keypairs/ed25519', import.meta.url)
.pathname,
'@mysten/sui/client': new URL('../sui/src/client', import.meta.url).pathname,
'@mysten/sui/utils': new URL('../sui/src/utils', import.meta.url).pathname,
'@mysten/sui/transactions': new URL('../sui/src/transactions', import.meta.url).pathname,
},
},
});
2 changes: 1 addition & 1 deletion packages/deepbook-v3/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"isolatedModules": true,
"rootDir": "src"
},
"references": [{ "path": "../typescript" }]
"references": [{ "path": "../sui" }]
}
2 changes: 1 addition & 1 deletion packages/deepbook/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"isolatedModules": true,
"rootDir": "src"
},
"references": [{ "path": "../typescript" }]
"references": [{ "path": "../sui" }]
}
4 changes: 2 additions & 2 deletions packages/docs/content/typescript/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ pnpm sdk build
```

With the SDK built, you can import the library from your `sui` project. To do so, use a path to the
`ts-sdks/packages/typescript` directory that is relative to your project. For example, if you
`ts-sdks/packages/sui` directory that is relative to your project. For example, if you
created a folder `my-sui-project` at the same level as `sui`, use the following to import the
locally built Sui TypeScript package:

```bash
pnpm add ../ts-sdks/packages/typescript
pnpm add ../ts-sdks/packages/sui
```
2 changes: 1 addition & 1 deletion packages/docs/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"../slush-wallet",
"../suins",
"../sui-grpc",
"../typescript",
"../sui",
"../utils",
"../wallet-standard",
"../walrus",
Expand Down
2 changes: 1 addition & 1 deletion packages/enoki/demo/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ReactDOM from 'react-dom/client';

import '@mysten/dapp-kit/dist/index.css';

import { getFullnodeUrl } from '../../typescript/src/client/network.ts';
import { getFullnodeUrl } from '../../sui/src/client/network.ts';
import { App } from './App.tsx';
import { RegisterEnokiWallets } from './RegisterEnokiWallets.tsx';

Expand Down
2 changes: 1 addition & 1 deletion packages/enoki/demo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"noFallthroughCasesInSwitch": true
},
"include": ["."],
"references": [{ "path": "../tsconfig.json" }, { "path": "../../typescript/" }]
"references": [{ "path": "../tsconfig.json" }, { "path": "../../sui/" }]
}
2 changes: 1 addition & 1 deletion packages/enoki/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"jsx": "react-jsx",
"rootDir": "src"
},
"references": [{ "path": "../typescript" }]
"references": [{ "path": "../sui" }]
}
6 changes: 3 additions & 3 deletions packages/graphql-transport/test/compatability.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
SuiClient,
SuiObjectData,
SuiTransactionBlockResponse,
} from '../../typescript/src/client/index.js';
import { Transaction } from '../../typescript/src/transactions/index.js';
import { publishPackage, setup, TestToolbox } from '../../typescript/test/e2e/utils/setup';
} from '../../sui/src/client/index.js';
import { Transaction } from '../../sui/src/transactions/index.js';
import { publishPackage, setup, TestToolbox } from '../../sui/test/e2e/utils/setup';
import { SuiClientGraphQLTransport } from '../src/transport';

const DEFAULT_GRAPHQL_URL = import.meta.env.GRAPHQL_URL ?? 'http://127.0.0.1:9125';
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-transport/test/globalSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default async function setup({ provide }: GlobalSetupContext) {
'--with-graphql',
])
.withCopyDirectoriesToContainer([
{ source: resolve(__dirname, '../../typescript/test/e2e/data'), target: '/test-data' },
{ source: resolve(__dirname, '../../sui/test/e2e/data'), target: '/test-data' },
])
.withNetwork(network)
.withExposedPorts(9000, 9123, 9124, 9125)
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-transport/test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../tsconfig.esm.json",
"include": ["./**/*", "../src", "../../typescript"],
"include": ["./**/*", "../src", "../../sui"],
"compilerOptions": {
"rootDir": "../..",
"noEmit": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/graphql-transport/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"rootDir": "src",
"paths": {
"@mysten/sui/client": ["../../typescrupt/src/client"],
"@mysten/sui/transactions": ["../../typescript/src/transactions"]
"@mysten/sui/transactions": ["../../sui/src/transactions"]
}
},
"references": [{ "path": "../wallet-standard" }, { "path": "../typescript" }]
"references": [{ "path": "../wallet-standard" }, { "path": "../sui" }]
}
4 changes: 2 additions & 2 deletions packages/graphql-transport/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export default defineConfig({
alias: {
'@mysten/bcs': new URL('../bcs/src', import.meta.url).pathname,
'@mysten/utils': new URL('../utils/src', import.meta.url).pathname,
'@mysten/sui/transactions': new URL('../typescript/src/transactions', import.meta.url)
'@mysten/sui/transactions': new URL('../sui/src/transactions', import.meta.url)
.pathname,
'@mysten/sui': new URL('../typescript/src', import.meta.url).pathname,
'@mysten/sui': new URL('../sui/src', import.meta.url).pathname,
},
},
});
2 changes: 1 addition & 1 deletion packages/kiosk/test/e2e/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.esm.json",
"include": ["./**/*", "../../src", "../../../typescript"],
"include": ["./**/*", "../../src", "../../../sui"],
"compilerOptions": {
"rootDir": "../../..",
"noEmit": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/kiosk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"isolatedModules": true,
"rootDir": "src"
},
"references": [{ "path": "../typescript" }]
"references": [{ "path": "../sui" }]
}
5 changes: 2 additions & 3 deletions packages/kiosk/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ export default defineConfig({
alias: {
'@mysten/bcs': new URL('../bcs/src', import.meta.url).pathname,
'@mysten/utils': new URL('../utils/src', import.meta.url).pathname,
'@mysten/sui/transactions': new URL('../typescript/src/transactions', import.meta.url)
.pathname,
'@mysten/sui': new URL('../typescript/src', import.meta.url).pathname,
'@mysten/sui/transactions': new URL('../sui/src/transactions', import.meta.url).pathname,
'@mysten/sui': new URL('../sui/src', import.meta.url).pathname,
},
},
});
2 changes: 1 addition & 1 deletion packages/ledgerjs-hw-app-sui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"isolatedModules": true,
"rootDir": "src"
},
"references": [{ "path": "../typescript" }]
"references": [{ "path": "../sui" }]
}
2 changes: 1 addition & 1 deletion packages/mvr-static/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"rootDir": "src",
"emitDeclarationOnly": false
},
"references": [{ "path": "../typescript" }]
"references": [{ "path": "../sui" }]
}
2 changes: 1 addition & 1 deletion packages/signers/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"isolatedModules": true,
"rootDir": "src"
},
"references": [{ "path": "../typescript" }]
"references": [{ "path": "../sui" }]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/typescript/README.md → packages/sui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To get started you need to install [pnpm](https://pnpm.io/), then run the follow
# Install all dependencies
$ pnpm install

# Run `build` for the TypeScript SDK if you're in the `sdk/typescript` project
# Run `build` for the TypeScript SDK if you're in the `sdk/sui` project
$ pnpm run build

# Run `sdk build` for the TypeScript SDK if you're in the root of `sui` repo
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/suins-v2/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"isolatedModules": true,
"rootDir": "src"
},
"references": [{ "path": "../typescript" }]
"references": [{ "path": "../sui" }]
}
2 changes: 1 addition & 1 deletion packages/suins/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"isolatedModules": true,
"rootDir": "src"
},
"references": [{ "path": "../typescript" }]
"references": [{ "path": "../sui" }]
}
2 changes: 1 addition & 1 deletion packages/wallet-standard/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"isolatedModules": true,
"rootDir": "src"
},
"references": [{ "path": "../typescript" }]
"references": [{ "path": "../sui" }]
}
Loading
Loading